commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201
values | license stringclasses 13
values | repos stringlengths 6 116k | config stringclasses 201
values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
828dd8aa1b11841ffb5df82bbd9cdea4b8700892 | README.md | README.md |
This project aims to bring Google's new [Material Design](https://www.google.com/design/spec/material-design/introduction.html) to Ember. The goal is to encapsulate everything possible in Ember components. This project is packaged as an [Ember-cli](http://www.ember-cli.com/) addon. This allows a much nicer "plug and p... |
This project aims to bring Google's new [Material Design](https://www.google.com/design/spec/material-design/introduction.html) to Ember. The goal is to encapsulate everything possible in Ember components. This project is packaged as an [Ember-cli](http://www.ember-cli.com/) addon. This allows a much nicer "plug and p... | Add note about generator command | Add note about generator command
| Markdown | mit | tmclouisluk/ember-paper,EricSchank/ember-paper,elwayman02/ember-paper,peec/ember-paper,DanChadwick/ember-paper,pauln/ember-paper,mhretab/ember-paper,xomaczar/ember-paper,miguelcobain/ember-paper,joukevandermaas/ember-paper,bjornharrtell/ember-paper,yastupin/ember-paper,baroquon/ember-paper,PartCycleTech/ember-paper,bjo... | markdown | ## Code Before:
This project aims to bring Google's new [Material Design](https://www.google.com/design/spec/material-design/introduction.html) to Ember. The goal is to encapsulate everything possible in Ember components. This project is packaged as an [Ember-cli](http://www.ember-cli.com/) addon. This allows a much n... |
This project aims to bring Google's new [Material Design](https://www.google.com/design/spec/material-design/introduction.html) to Ember. The goal is to encapsulate everything possible in Ember components. This project is packaged as an [Ember-cli](http://www.ember-cli.com/) addon. This allows a much nicer "plug a... | 1 | 0.05 | 1 | 0 |
093a5d0517ddd480efa456f9726f6fb17099e885 | app/components/LoggedInUser/UserLanguageSelector.jsx | app/components/LoggedInUser/UserLanguageSelector.jsx | import React from 'react'
import LanguageSelector from '../App/LanguageSelector'
import i18n from '../../i18n/i18n'
import { withLoggedInUser } from './UserProvider'
import { updateUserInfo } from '../../API/http_api/current_user'
/**
* Updates the locale for loggedInUser, notify i18n to refresh the
* interface.
*/... | import React from 'react'
import LanguageSelector from '../App/LanguageSelector'
import i18n from '../../i18n/i18n'
import { withLoggedInUser } from './UserProvider'
import { updateUserInfo } from '../../API/http_api/current_user'
/**
* Updates the locale for loggedInUser, notify i18n to refresh the
* interface.
*/... | Save locale in API when changing it | fix(LanguageSelector): Save locale in API when changing it | JSX | agpl-3.0 | CaptainFact/captain-fact-frontend,CaptainFact/captain-fact-frontend,CaptainFact/captain-fact-frontend | jsx | ## Code Before:
import React from 'react'
import LanguageSelector from '../App/LanguageSelector'
import i18n from '../../i18n/i18n'
import { withLoggedInUser } from './UserProvider'
import { updateUserInfo } from '../../API/http_api/current_user'
/**
* Updates the locale for loggedInUser, notify i18n to refresh the
... | import React from 'react'
import LanguageSelector from '../App/LanguageSelector'
import i18n from '../../i18n/i18n'
import { withLoggedInUser } from './UserProvider'
import { updateUserInfo } from '../../API/http_api/current_user'
/**
* Updates the locale for loggedInUser, notify i18n to refresh the
... | 2 | 0.057143 | 1 | 1 |
b94b511626f4fb0fdceabebf3ee46b583316a692 | .travis.yml | .travis.yml | dist: trusty
sudo: false
language: ruby
bundler_args: "--without development"
services:
- rabbitmq
rvm:
- '2.4.1'
- '2.3.4'
- '2.2.7'
gemfile:
- gemfiles/Gemfile.rails-master
- gemfiles/Gemfile.rails-5-1
- gemfiles/Gemfile.rails-5-0
- gemfiles/Gemfile.rails-4-2
script:
- bundle exec rake spec:msgr
- bundle exec rake sp... | dist: trusty
sudo: false
language: ruby
bundler_args: "--without development"
services:
- rabbitmq
rvm:
- '2.4.1'
- '2.3.4'
- '2.2.7'
gemfile:
- gemfiles/Gemfile.rails-5-1
- gemfiles/Gemfile.rails-5-0
- gemfiles/Gemfile.rails-4-2
- gemfiles/Gemfile.rails-master
script:
- bundle exec rake spec:msgr
- bundle exec rake sp... | Move rails master gemfile to bottom | Move rails master gemfile to bottom
This should avoid beeing used in deploy job
| YAML | mit | jgraichen/msgr,jgraichen/msgr | yaml | ## Code Before:
dist: trusty
sudo: false
language: ruby
bundler_args: "--without development"
services:
- rabbitmq
rvm:
- '2.4.1'
- '2.3.4'
- '2.2.7'
gemfile:
- gemfiles/Gemfile.rails-master
- gemfiles/Gemfile.rails-5-1
- gemfiles/Gemfile.rails-5-0
- gemfiles/Gemfile.rails-4-2
script:
- bundle exec rake spec:msgr
- bun... | dist: trusty
sudo: false
language: ruby
bundler_args: "--without development"
services:
- rabbitmq
rvm:
- '2.4.1'
- '2.3.4'
- '2.2.7'
gemfile:
- - gemfiles/Gemfile.rails-master
- gemfiles/Gemfile.rails-5-1
- gemfiles/Gemfile.rails-5-0
- gemfiles/Gemfile.rails-4-2
+ - gemfiles/Gemfile.rails-m... | 2 | 0.057143 | 1 | 1 |
eba11e0499fcae166c22a4597c4c23bbf6f22b9f | README.rst | README.rst | burrito
=======
|Build Status|
burrito, canonically pronounced *boar-eee-toe*, is a Python framework for
wrapping and controlling command-line applications.
Installation
------------
To install burrito::
pip install burrito
Running the tests
-----------------
To run burrito's unit tests::
nosetests
The... | burrito
=======
|Build Status|
burrito, canonically pronounced *boar-eee-toe*, is a Python framework for
wrapping and controlling command-line applications.
What's with the name?
---------------------
This tool allows developers to wrap command line applications, just as burritos
wrap delicious foods. Both hide the... | Add description of package name | Add description of package name
| reStructuredText | bsd-3-clause | biocore/burrito,ssorgatem/burrito | restructuredtext | ## Code Before:
burrito
=======
|Build Status|
burrito, canonically pronounced *boar-eee-toe*, is a Python framework for
wrapping and controlling command-line applications.
Installation
------------
To install burrito::
pip install burrito
Running the tests
-----------------
To run burrito's unit tests::
... | burrito
=======
|Build Status|
burrito, canonically pronounced *boar-eee-toe*, is a Python framework for
wrapping and controlling command-line applications.
+
+ What's with the name?
+ ---------------------
+
+ This tool allows developers to wrap command line applications, just as burritos
+ wrap deli... | 6 | 0.166667 | 6 | 0 |
0f9ad1518c389853ef4b9bd03d28d31a71555585 | README.md | README.md |
Automatic OS configuration for ikr.su
# Installation
On Debian Wheezy
# echo 'deb http://http.debian.net/debian wheezy-backports main' >> /etc/apt/sources.list
# apt-get update
# apt-get -t wheezy-backports install salt-minion
# git clone https://github.com/ikr/ikr.su-server.git
# salt-call -c /... |
Automatic OS configuration for ikr.su
# Installation
On Debian Wheezy
# echo 'deb http://http.debian.net/debian wheezy-backports main' >> /etc/apt/sources.list
# apt-get update
# apt-get -t wheezy-backports install salt-minion
# git clone https://github.com/ikr/ikr.su-server.git
# salt-call -c /... | Restructure the Notes section a bit | Restructure the Notes section a bit
| Markdown | mit | ikr/ikr.su-server,ikr/ikr.su-server | markdown | ## Code Before:
Automatic OS configuration for ikr.su
# Installation
On Debian Wheezy
# echo 'deb http://http.debian.net/debian wheezy-backports main' >> /etc/apt/sources.list
# apt-get update
# apt-get -t wheezy-backports install salt-minion
# git clone https://github.com/ikr/ikr.su-server.git
... |
Automatic OS configuration for ikr.su
# Installation
On Debian Wheezy
# echo 'deb http://http.debian.net/debian wheezy-backports main' >> /etc/apt/sources.list
# apt-get update
# apt-get -t wheezy-backports install salt-minion
# git clone https://github.com/ikr/ikr.su-server.gi... | 9 | 0.310345 | 7 | 2 |
1d64f6730e77a2f297eb1b1c19eb92db889de354 | spec/toy/plugins_spec.rb | spec/toy/plugins_spec.rb | require 'helper'
describe Toy::Plugins do
uses_constants('User', 'Game')
it "keeps track of class that include toy store" do
Toy.models.should == [User, Game]
end
describe ".plugin" do
before do
@mod = Module.new {
extend ActiveSupport::Concern
module ClassMethods
def... | require 'helper'
describe Toy::Plugins do
uses_constants('User', 'Game')
it "keeps track of class that include toy store" do
Toy.models.should == [User, Game]
end
describe ".plugin" do
before do
@mod = Module.new {
extend ActiveSupport::Concern
def bar
'bar'
e... | Fix tests for ruby 1.8 | Fix tests for ruby 1.8
| Ruby | bsd-3-clause | jnunemaker/toystore | ruby | ## Code Before:
require 'helper'
describe Toy::Plugins do
uses_constants('User', 'Game')
it "keeps track of class that include toy store" do
Toy.models.should == [User, Game]
end
describe ".plugin" do
before do
@mod = Module.new {
extend ActiveSupport::Concern
module ClassMetho... | require 'helper'
describe Toy::Plugins do
uses_constants('User', 'Game')
it "keeps track of class that include toy store" do
Toy.models.should == [User, Game]
end
describe ".plugin" do
before do
@mod = Module.new {
extend ActiveSupport::Concern
- mod... | 14 | 0.304348 | 8 | 6 |
4d1428dd416f3fa3e94da287cc3e2d8669488579 | metadata/de.karbach.tac.txt | metadata/de.karbach.tac.txt | Categories:Games
License:GPLv2
Web Site:
Source Code:https://github.com/CarstenKarbach/MoTAC
Issue Tracker:https://github.com/CarstenKarbach/MoTAC/issues
Auto Name:MoTAC
Summary:Digital TAC board
Description:
Play [http://www.spiel-tac.de/ TAC] on the go.
.
Repo Type:git
Repo:https://github.com/CarstenKarbach/MoTAC
... | Categories:Games
License:GPLv2
Web Site:
Source Code:https://github.com/CarstenKarbach/MoTAC
Issue Tracker:https://github.com/CarstenKarbach/MoTAC/issues
Auto Name:MoTAC
Summary:Digital TAC board
Description:
Play [http://www.spiel-tac.de/ TAC] on the go.
.
Repo Type:git
Repo:https://github.com/CarstenKarbach/MoTAC
... | Update MoTAC to 1.22 (5) | Update MoTAC to 1.22 (5)
| Text | agpl-3.0 | f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata | text | ## Code Before:
Categories:Games
License:GPLv2
Web Site:
Source Code:https://github.com/CarstenKarbach/MoTAC
Issue Tracker:https://github.com/CarstenKarbach/MoTAC/issues
Auto Name:MoTAC
Summary:Digital TAC board
Description:
Play [http://www.spiel-tac.de/ TAC] on the go.
.
Repo Type:git
Repo:https://github.com/Carste... | Categories:Games
License:GPLv2
Web Site:
Source Code:https://github.com/CarstenKarbach/MoTAC
Issue Tracker:https://github.com/CarstenKarbach/MoTAC/issues
Auto Name:MoTAC
Summary:Digital TAC board
Description:
Play [http://www.spiel-tac.de/ TAC] on the go.
.
Repo Type:git
Repo:https://githu... | 4 | 0.166667 | 4 | 0 |
d12edc3d53874e9e3ce6fc5b2d07239f92cc6f74 | protected/modules/admin/views/default/index.php | protected/modules/admin/views/default/index.php | <div class="row-fluid">
<? $count = 0; ?>
<? foreach($files as $file): ?>
<? if ($count % 2 == 0): ?>
</div>
<div class="row-fluid">
<? endif; ?>
<? $this->renderFile($file); ?>
<? $count++; ?>
<? endforeach; ?>
</div> | <div class="row-fluid">
<?php $count = 0; ?>
<?php foreach($files as $file): ?>
<?php if ($count % 2 == 0): ?>
</div>
<div class="row-fluid">
<?php endif; ?>
<?php $this->renderFile($file); ?>
<?php $count++; ?>
<?php endforeach; ?>
</div> | Fix <? -> <?php regression | Fix <? -> <?php regression
Fixes #8 | PHP | bsd-3-clause | charlesportwoodii/CiiMS | php | ## Code Before:
<div class="row-fluid">
<? $count = 0; ?>
<? foreach($files as $file): ?>
<? if ($count % 2 == 0): ?>
</div>
<div class="row-fluid">
<? endif; ?>
<? $this->renderFile($file); ?>
<? $count++; ?>
<? endforeach; ?>
</div>
## Instruction:
Fix <? -> <?php regression
Fixes #8
## Code Af... | <div class="row-fluid">
- <? $count = 0; ?>
+ <?php $count = 0; ?>
? +++
- <? foreach($files as $file): ?>
+ <?php foreach($files as $file): ?>
? +++
- <? if ($count % 2 == 0): ?>
+ <?php if ($count % 2 == 0): ?>
? +++
</div>
<div class="row-fluid">
- <? endif; ?>
+ <?php endif; ?>... | 14 | 1.166667 | 7 | 7 |
6ebe9c3115d6268f63f730df59f59dbd97536b17 | spec/db_spec_helper.rb | spec/db_spec_helper.rb | require 'spec_helper'
require 'database_cleaner'
logfile = File.expand_path('log/test.log')
FileUtils.mkdir_p File.dirname(logfile)
ActiveRecord::Base.logger = Logger.new(logfile) if defined?(ActiveRecord::Base)
db_config = YAML.load_file('config/database.yml')['test']
ActiveRecord::Base.establish_connection(db_confi... | require 'spec_helper'
require 'database_cleaner'
logfile = File.expand_path('log/test.log')
FileUtils.mkdir_p File.dirname(logfile)
ActiveRecord::Base.logger = Logger.new(logfile) if defined?(ActiveRecord::Base)
db_config = YAML.load_file('config/database.yml')['test']
host = db_config['host']
fail("Can't run destru... | Check before accidentally blowing away a shared database | Check before accidentally blowing away a shared database
| Ruby | mit | CDLUC3/dash2-migrator,CDLUC3/dash2-migrator | ruby | ## Code Before:
require 'spec_helper'
require 'database_cleaner'
logfile = File.expand_path('log/test.log')
FileUtils.mkdir_p File.dirname(logfile)
ActiveRecord::Base.logger = Logger.new(logfile) if defined?(ActiveRecord::Base)
db_config = YAML.load_file('config/database.yml')['test']
ActiveRecord::Base.establish_con... | require 'spec_helper'
require 'database_cleaner'
logfile = File.expand_path('log/test.log')
FileUtils.mkdir_p File.dirname(logfile)
ActiveRecord::Base.logger = Logger.new(logfile) if defined?(ActiveRecord::Base)
db_config = YAML.load_file('config/database.yml')['test']
+
+ host = db_config['host']
+ ... | 4 | 0.181818 | 4 | 0 |
2dbc4e2aec98aba8a0e307f951b412464db8b078 | della/user_manager/urls.py | della/user_manager/urls.py | from django.conf.urls import url
from django.contrib.auth import views as auth_views
from .views import (SignupView, UserProfileUpdateView, DrawNamesView,
UserProfileDetailView, ActivateView)
urlpatterns = [
url(r'^login/$', auth_views.login, name='login',
kwargs={'template_name': 'use... | from django.conf.urls import url
from django.contrib.auth import views as auth_views
from .views import (SignupView, UserProfileUpdateView, DrawNamesView,
UserProfileDetailView, ActivateView)
urlpatterns = [
url(r'^login/$', auth_views.login, name='login',
kwargs={'template_name': 'use... | Add name for url config of `ActivateView` | Add name for url config of `ActivateView`
| Python | mit | avinassh/della,avinassh/della,avinassh/della | python | ## Code Before:
from django.conf.urls import url
from django.contrib.auth import views as auth_views
from .views import (SignupView, UserProfileUpdateView, DrawNamesView,
UserProfileDetailView, ActivateView)
urlpatterns = [
url(r'^login/$', auth_views.login, name='login',
kwargs={'temp... | from django.conf.urls import url
from django.contrib.auth import views as auth_views
from .views import (SignupView, UserProfileUpdateView, DrawNamesView,
UserProfileDetailView, ActivateView)
urlpatterns = [
url(r'^login/$', auth_views.login, name='login',
kwargs={'te... | 2 | 0.105263 | 1 | 1 |
c75b9da41d35619b135a3c9ecf4843328f604ca9 | pkgs/development/libraries/libmtp/default.nix | pkgs/development/libraries/libmtp/default.nix | { stdenv, fetchurl, pkgconfig, libusb1, libiconv }:
stdenv.mkDerivation rec {
name = "libmtp-1.1.18";
src = fetchurl {
url = "mirror://sourceforge/libmtp/${name}.tar.gz";
sha256 = "1w41l93yi0dmw218daiw36rylkc8rammxx37csh1ij24q18gx03j";
};
outputs = [ "bin" "dev" "out" ];
buildInputs = [ libiconv ]... | { stdenv, fetchFromGitHub, autoconf, automake, gettext, libtool, pkgconfig
, libusb1
, libiconv
}:
stdenv.mkDerivation rec {
pname = "libmtp";
version = "1.1.18";
src = fetchFromGitHub {
owner = "libmtp";
repo = "libmtp";
rev = "libmtp-${builtins.replaceStrings [ "." ] [ "-" ] version}";
sha256 ... | Switch to Github, allow building from repo. | libmtp: Switch to Github, allow building from repo.
Github is where upstream's development happens now,
and building from repo makes adding patches and overriding the commit easier.
Also use pname+version, see #103997.
| Nix | mit | NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs | nix | ## Code Before:
{ stdenv, fetchurl, pkgconfig, libusb1, libiconv }:
stdenv.mkDerivation rec {
name = "libmtp-1.1.18";
src = fetchurl {
url = "mirror://sourceforge/libmtp/${name}.tar.gz";
sha256 = "1w41l93yi0dmw218daiw36rylkc8rammxx37csh1ij24q18gx03j";
};
outputs = [ "bin" "dev" "out" ];
buildInput... | - { stdenv, fetchurl, pkgconfig, libusb1, libiconv }:
+ { stdenv, fetchFromGitHub, autoconf, automake, gettext, libtool, pkgconfig
+ , libusb1
+ , libiconv
+ }:
stdenv.mkDerivation rec {
- name = "libmtp-1.1.18";
? -------
+ pname = "libmtp";
? +
+ version = "1.1.18";
- src = fetchur... | 38 | 1.225806 | 30 | 8 |
58a42f1fa90665c1b61db5ed3e9ce53b145dbdf8 | code/scala/src/main/scala/knub/master_thesis/PreprocessingPipe.scala | code/scala/src/main/scala/knub/master_thesis/PreprocessingPipe.scala | package knub.master_thesis
import java.io.File
import java.util.regex.Pattern
import cc.mallet.pipe.{Pipe, SerialPipes}
import cc.mallet.pipe._
import knub.master_thesis.preprocessing.UseFixedVocabulary
import scala.collection.mutable
import scala.collection.JavaConverters._
import scala.io.Source
object Preprocess... | package knub.master_thesis
import java.io.File
import java.util.regex.Pattern
import cc.mallet.pipe.{Pipe, SerialPipes}
import cc.mallet.pipe._
import knub.master_thesis.preprocessing.{UseFixedVocabulary, UseOnlyFirstNWordsOfDocument}
import scala.collection.mutable
import scala.collection.JavaConverters._
import sc... | Use 2000 first words of document | Use 2000 first words of document
| Scala | apache-2.0 | knub/master-thesis,knub/master-thesis,knub/master-thesis,knub/master-thesis | scala | ## Code Before:
package knub.master_thesis
import java.io.File
import java.util.regex.Pattern
import cc.mallet.pipe.{Pipe, SerialPipes}
import cc.mallet.pipe._
import knub.master_thesis.preprocessing.UseFixedVocabulary
import scala.collection.mutable
import scala.collection.JavaConverters._
import scala.io.Source
o... | package knub.master_thesis
import java.io.File
import java.util.regex.Pattern
import cc.mallet.pipe.{Pipe, SerialPipes}
import cc.mallet.pipe._
- import knub.master_thesis.preprocessing.UseFixedVocabulary
+ import knub.master_thesis.preprocessing.{UseFixedVocabulary, UseOnlyFirstNWordsOfDocument}
? ... | 6 | 0.176471 | 3 | 3 |
d27ded9fb8c833b2f21fedade5cbef9ab831453e | src/ggrc/models/hooks/comment.py | src/ggrc/models/hooks/comment.py |
"""A module with Comment object creation hooks"""
from ggrc import db
from ggrc.login import get_current_user_id
from ggrc.models.all_models import Comment, ObjectOwner
from ggrc.services.common import Resource
def init_hook():
"""Initialize all hooks"""
# pylint: disable=unused-variable
@Resource.model_post... |
"""A module with Comment object creation hooks"""
from ggrc import db
from ggrc.login import get_current_user_id
from ggrc.models.all_models import Comment, ObjectOwner
from ggrc.services.common import Resource
def init_hook():
"""Initialize all hooks"""
# pylint: disable=unused-variable
@Resource.collection... | Fix creating revisions of ObjectOwner of Comment | Fix creating revisions of ObjectOwner of Comment
| Python | apache-2.0 | josthkko/ggrc-core,AleksNeStu/ggrc-core,andrei-karalionak/ggrc-core,kr41/ggrc-core,j0gurt/ggrc-core,kr41/ggrc-core,selahssea/ggrc-core,plamut/ggrc-core,j0gurt/ggrc-core,kr41/ggrc-core,plamut/ggrc-core,selahssea/ggrc-core,j0gurt/ggrc-core,AleksNeStu/ggrc-core,josthkko/ggrc-core,AleksNeStu/ggrc-core,josthkko/ggrc-core,j0... | python | ## Code Before:
"""A module with Comment object creation hooks"""
from ggrc import db
from ggrc.login import get_current_user_id
from ggrc.models.all_models import Comment, ObjectOwner
from ggrc.services.common import Resource
def init_hook():
"""Initialize all hooks"""
# pylint: disable=unused-variable
@Res... |
"""A module with Comment object creation hooks"""
from ggrc import db
from ggrc.login import get_current_user_id
from ggrc.models.all_models import Comment, ObjectOwner
from ggrc.services.common import Resource
def init_hook():
"""Initialize all hooks"""
+ # pylint: disable=unused-variable... | 33 | 0.916667 | 11 | 22 |
de42731ab97a7d4272c44cc750891906aa5b4417 | buildlet/runner/ipythonparallel.py | buildlet/runner/ipythonparallel.py |
import IPython.parallel
from .simple import SimpleRunner
from .mixinparallel import MixInParallelRunner
class IPythonParallelRunner(MixInParallelRunner, SimpleRunner):
def submit_tasks(self):
self.client = IPython.parallel.Client()
self.view = view = self.client.load_balanced_view()
sel... |
import IPython.parallel
from .simple import SimpleRunner
from .mixinparallel import MixInParallelRunner
class IPythonParallelRunner(MixInParallelRunner, SimpleRunner):
def submit_tasks(self):
self.client = IPython.parallel.Client()
self.view = view = self.client.load_balanced_view()
sel... | Raise error if any in IPythonParallelRunner.wait_tasks | Raise error if any in IPythonParallelRunner.wait_tasks
| Python | bsd-3-clause | tkf/buildlet | python | ## Code Before:
import IPython.parallel
from .simple import SimpleRunner
from .mixinparallel import MixInParallelRunner
class IPythonParallelRunner(MixInParallelRunner, SimpleRunner):
def submit_tasks(self):
self.client = IPython.parallel.Client()
self.view = view = self.client.load_balanced_vi... |
import IPython.parallel
from .simple import SimpleRunner
from .mixinparallel import MixInParallelRunner
class IPythonParallelRunner(MixInParallelRunner, SimpleRunner):
def submit_tasks(self):
self.client = IPython.parallel.Client()
self.view = view = self.client.load_bal... | 3 | 0.142857 | 2 | 1 |
b9a2399e148be7660c51501da2015e31b96914cb | lib/vagrant-parallels/guest_cap/linux/mount_parallels_shared_folder.rb | lib/vagrant-parallels/guest_cap/linux/mount_parallels_shared_folder.rb | module VagrantPlugins
module Parallels
module GuestLinuxCap
class MountParallelsSharedFolder
def self.mount_parallels_shared_folder(machine, name, guestpath, options)
machine.communicate.tap do |comm|
# clear prior symlink
if comm.test("test -L \"#{guestpath}\"", :... | module VagrantPlugins
module Parallels
module GuestLinuxCap
class MountParallelsSharedFolder
def self.mount_parallels_shared_folder(machine, name, guestpath, options)
# Expand the guest path so we can handle things like "~/vagrant"
expanded_guest_path = machine.guest.capability(... | Use 'shell_expand_guest_path' guest capability to expand "~/" in shared folder mounts | Use 'shell_expand_guest_path' guest capability to expand "~/" in shared folder mounts
This was copied from the official NFS mount capability
| Ruby | mit | kidaa/vagrant-parallels,Kast0rTr0y/vagrant-parallels,Kast0rTr0y/vagrant-parallels,legal90/vagrant-parallels,Parallels/vagrant-parallels,kidaa/vagrant-parallels,kidaa/vagrant-parallels,Gray-Wind/vagrant-parallels,KillerDesigner/vagrant-parallels,Parallels/vagrant-parallels,legal90/vagrant-parallels,Parallels/vagrant-par... | ruby | ## Code Before:
module VagrantPlugins
module Parallels
module GuestLinuxCap
class MountParallelsSharedFolder
def self.mount_parallels_shared_folder(machine, name, guestpath, options)
machine.communicate.tap do |comm|
# clear prior symlink
if comm.test("test -L \"#{... | module VagrantPlugins
module Parallels
module GuestLinuxCap
class MountParallelsSharedFolder
def self.mount_parallels_shared_folder(machine, name, guestpath, options)
+ # Expand the guest path so we can handle things like "~/vagrant"
+ expanded_guest_path = machine.g... | 16 | 0.516129 | 10 | 6 |
a30c60e57956b73736581746a0e161a45a05edd2 | assets/js/public/controllers/statisticController.js | assets/js/public/controllers/statisticController.js | angular.module('zoomableApp').controller('statisticController', function($scope, moment){
// VARIABLES
$scope.criteria = 'DAY'; // default set to day for date criteria
$scope.startDate = moment().subtract(1, 'month').toDate(); // default start date is previous month
$scope.minDate = moment().subtract(1, 'mont... | angular.module('zoomableApp').controller('statisticController', function($scope, moment){
// VARIABLES
$scope.criteria = 'DAY'; // default set to day for date criteria
$scope.startDate = moment().subtract(1, 'months').toDate(); // default start date is previous month
$scope.minDate = moment().subtract(1, 'mon... | Update default dates for statistic view | Update default dates for statistic view
| JavaScript | mit | nus-mtp/zoomable.js,nus-mtp/zoomable.js,nus-mtp/zoomable.js | javascript | ## Code Before:
angular.module('zoomableApp').controller('statisticController', function($scope, moment){
// VARIABLES
$scope.criteria = 'DAY'; // default set to day for date criteria
$scope.startDate = moment().subtract(1, 'month').toDate(); // default start date is previous month
$scope.minDate = moment().s... | angular.module('zoomableApp').controller('statisticController', function($scope, moment){
// VARIABLES
$scope.criteria = 'DAY'; // default set to day for date criteria
- $scope.startDate = moment().subtract(1, 'month').toDate(); // default start date is previous month
+ $scope.startDate = moment().subtr... | 8 | 0.615385 | 4 | 4 |
f563228ae337cea4f19dd94724ea494db589c939 | app/views/user/index.html.haml | app/views/user/index.html.haml |
.col-md-6
= render :partial => "shared/article_entry_form"
.col-md-6
%h3
The last few articles you added to Cutouts:
- @allArticles.each do |article|
= render "shared/article_single", :object => article
|
.col-md-6
= render :partial => "shared/article_entry_form"
.col-md-6
%h3
The last few articles you added to Cutouts:
%span.pull-right #{link_to(fa_icon("list"), list_articles_index_path, title: "See all your articles")}
- @allArticles.each do |article|
= render "shared/article_single", :object => ... | Add a link to all articles on the homepage | Add a link to all articles on the homepage
Signed-off-by: Siddharth Kannan <7a804f1d08bac02a84ba1822c22c8bf38be68ecc@tutanota.com>
| Haml | mit | icyflame/cutouts,icyflame/cutouts,icyflame/cutouts,icyflame/cutouts,icyflame/cutouts | haml | ## Code Before:
.col-md-6
= render :partial => "shared/article_entry_form"
.col-md-6
%h3
The last few articles you added to Cutouts:
- @allArticles.each do |article|
= render "shared/article_single", :object => article
## Instruction:
Add a link to all articles on the homepage
Signed-off-by: Siddhar... |
.col-md-6
= render :partial => "shared/article_entry_form"
.col-md-6
%h3
The last few articles you added to Cutouts:
+ %span.pull-right #{link_to(fa_icon("list"), list_articles_index_path, title: "See all your articles")}
- @allArticles.each do |article|
= render "shared/articl... | 1 | 0.1 | 1 | 0 |
e091aebd9d2a89dcd1db2a13285d4c0de2f74e0a | emacs/emacs.d.symlink/init.el | emacs/emacs.d.symlink/init.el | (require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
(defvar my-packages '(starter-kit starter-kit-ruby starter-kit-js
starter-k... | (require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
(defvar my-packages '(starter-kit
starter-kit-ruby
starter-kit-js... | Add Erlang & Haskell support to Emacs | Add Erlang & Haskell support to Emacs
| Emacs Lisp | mit | jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles | emacs-lisp | ## Code Before:
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
(defvar my-packages '(starter-kit starter-kit-ruby starter-kit-js
... | (require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
- (defvar my-packages '(starter-kit starter-kit-ruby starter-kit-js
- ... | 13 | 0.419355 | 10 | 3 |
0685a6a009bf352b0d2a63de328219249d97e08c | install.sh | install.sh |
OS=$(uname -s)
ARCH=$(uname -m)
VER=$(uname -r)
DISTRO=""
SKIP_PATTERN="#"
if [ -f /etc/redhat-release ]; then
DISTRO="RedHat"
INSTALL_SCRIPT="yum.sh"
elif [ -f /etc/debian_version ]; then
DISTRO="Debian"
INSTALL_SCRIPT="apt.sh"
elif [ "$OS" == "Darwin" ]; then
DISTRO="Mac OSX"
INSTALL_SCRIPT="... |
OS=$(uname -s)
ARCH=$(uname -m)
VER=$(uname -r)
DISTRO=""
SKIP_PATTERN="#"
if [ -f /etc/redhat-release ]; then
DISTRO="RedHat"
INSTALL_SCRIPT="yum.sh"
elif [ -f /etc/debian_version ]; then
DISTRO="Debian"
INSTALL_SCRIPT="apt.sh"
elif [ "$OS" == "Darwin" ]; then
DISTRO="Mac OSX"
INSTALL_SCRIPT="... | Fix bash can't wait for another bash | Fix bash can't wait for another bash
| Shell | mit | shengyu7697/1nv | shell | ## Code Before:
OS=$(uname -s)
ARCH=$(uname -m)
VER=$(uname -r)
DISTRO=""
SKIP_PATTERN="#"
if [ -f /etc/redhat-release ]; then
DISTRO="RedHat"
INSTALL_SCRIPT="yum.sh"
elif [ -f /etc/debian_version ]; then
DISTRO="Debian"
INSTALL_SCRIPT="apt.sh"
elif [ "$OS" == "Darwin" ]; then
DISTRO="Mac OSX"
... |
OS=$(uname -s)
ARCH=$(uname -m)
VER=$(uname -r)
DISTRO=""
SKIP_PATTERN="#"
if [ -f /etc/redhat-release ]; then
DISTRO="RedHat"
INSTALL_SCRIPT="yum.sh"
elif [ -f /etc/debian_version ]; then
DISTRO="Debian"
INSTALL_SCRIPT="apt.sh"
elif [ "$OS" == "Darwin" ]; then
DISTRO="M... | 3 | 0.061224 | 2 | 1 |
1b0a8398d50576fb746accb652968bdcbb737905 | src/table-sortable.styl | src/table-sortable.styl | // sortable effect
.table-sortable {
table {
th {
white-space: nowrap;
}
.column-sort {
color: #222;
&:hover,
&:focus {
color: #222;
text-decoration: none;
}
> .overflow-ellipsis {
... | // sortable effect
.table-sortable {
table {
> thead > tr > th {
white-space: nowrap;
padding: 0;
> *:first-child {
padding: 8px 12px;
}
}
.column-sort {
color: #222;
&:hover,
&:focus {
... | Adjust hover style of sorting header. | Adjust hover style of sorting header.
| Stylus | mit | trendmicro-frontend/react-table | stylus | ## Code Before:
// sortable effect
.table-sortable {
table {
th {
white-space: nowrap;
}
.column-sort {
color: #222;
&:hover,
&:focus {
color: #222;
text-decoration: none;
}
> .overflow... | // sortable effect
.table-sortable {
table {
- th {
+ > thead > tr > th {
white-space: nowrap;
+ padding: 0;
+
+ > *:first-child {
+ padding: 8px 12px;
+ }
}
.column-sort {
color: #222;
... | 7 | 0.155556 | 6 | 1 |
ccedfc73e5616d53371234dfe1a2d4713242078c | README.md | README.md | 
-----
### Welcome to the **nanoFramework** Visual Studio extension repository!
This repo contains **nanoFramework** Visual Studio extension and associated tools.
## Build status
| Component | Build ... | 
-----
### Welcome to the **nanoFramework** Visual Studio extension repository!
This repo contains **nanoFramework** Visual Studio extension and associated tools.
## Build status
| Component | Build ... | Add VS marketplace badge and link to extension | Add VS marketplace badge and link to extension | Markdown | mit | nanoframework/nf-Visual-Studio-extension,Eclo/nf-Visual-Studio-extension,Eclo/nf-Visual-Studio-extension,Eclo/nf-Visual-Studio-extension | markdown | ## Code Before:

-----
### Welcome to the **nanoFramework** Visual Studio extension repository!
This repo contains **nanoFramework** Visual Studio extension and associated tools.
## Build status
| Co... | 
-----
### Welcome to the **nanoFramework** Visual Studio extension repository!
This repo contains **nanoFramework** Visual Studio extension and associated tools.
## Build status
... | 4 | 0.111111 | 2 | 2 |
6d35f6d1aee4f6fc3c39b5f3621bd8ea20d461b0 | metadata/com.markuspage.android.atimetracker.txt | metadata/com.markuspage.android.atimetracker.txt | Categories:Office
License:GPLv2+
Web Site:
Source Code:https://github.com/netmackan/ATimeTracker
Issue Tracker:https://github.com/netmackan/ATimeTracker/issues
Auto Name:A Time Tracker
Summary:Time Tracker
Description:
Easily start/stop time tracking for any tasks. Offers summary report view and
export.
.
Repo Type:g... | Categories:Office
License:GPLv2+
Web Site:
Source Code:https://github.com/netmackan/ATimeTracker
Issue Tracker:https://github.com/netmackan/ATimeTracker/issues
Auto Name:A Time Tracker
Summary:Time Tracker
Description:
Easily start/stop time tracking for any tasks. Offers summary report view and
export.
.
Repo Type:g... | Update A Time Tracker to 0.21 (21) | Update A Time Tracker to 0.21 (21)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata | text | ## Code Before:
Categories:Office
License:GPLv2+
Web Site:
Source Code:https://github.com/netmackan/ATimeTracker
Issue Tracker:https://github.com/netmackan/ATimeTracker/issues
Auto Name:A Time Tracker
Summary:Time Tracker
Description:
Easily start/stop time tracking for any tasks. Offers summary report view and
export... | Categories:Office
License:GPLv2+
Web Site:
Source Code:https://github.com/netmackan/ATimeTracker
Issue Tracker:https://github.com/netmackan/ATimeTracker/issues
Auto Name:A Time Tracker
Summary:Time Tracker
Description:
Easily start/stop time tracking for any tasks. Offers summary report view and
... | 4 | 0.121212 | 4 | 0 |
b9aa93c127573b4b1d068290bb4ca2e3eaf4b82c | GerritCommon/src/main/java/com.holmsted/file/FileWriter.java | GerritCommon/src/main/java/com.holmsted/file/FileWriter.java | package com.holmsted.file;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
public class FileWriter {
public static void writeFile(String filename, String contents... | package com.holmsted.file;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import javax.annotation.Nonnull;
public class FileWriter {
public static void writeFil... | Create directories for output if they don't already exist | Create directories for output if they don't already exist
Especially the downloader should do this to allow for easier
scripting.
| Java | mit | holmari/gerritstats,holmari/gerritstats,holmari/gerritstats,holmari/gerritstats | java | ## Code Before:
package com.holmsted.file;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
public class FileWriter {
public static void writeFile(String filename,... | package com.holmsted.file;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
+ import javax.annotation.Nonnull;
+
public class FileWriter {
... | 14 | 0.341463 | 14 | 0 |
327913be97e9a92a4f0c34578b1a5471a21851ec | staticcheck/testdata/CheckLeakyTimeTick.go | staticcheck/testdata/CheckLeakyTimeTick.go | package pkg
import "time"
func fn1() {
for range time.Tick(0) {
println("")
}
}
func fn2() {
for range time.Tick(0) { // MATCH /leaks the underlying ticker/
println("")
if true {
break
}
}
}
func fn3() {
for range time.Tick(0) { // MATCH /leaks the underlying ticker/
println("")
if true {
ret... | package pkg
import "time"
func fn1() {
for range time.Tick(0) {
println("")
}
}
func fn2() {
for range time.Tick(0) { // MATCH /leaks the underlying ticker/
println("")
if true {
break
}
}
}
func fn3() {
for range time.Tick(0) { // MATCH /leaks the underlying ticker/
println("")
if true {
ret... | Add test for non-leaky time.Tick in closure | Add test for non-leaky time.Tick in closure
Updates gh-62
| Go | mit | dominikh/go-tools,dominikh/go-tools,dominikh/go-tools,dominikh/go-tools | go | ## Code Before:
package pkg
import "time"
func fn1() {
for range time.Tick(0) {
println("")
}
}
func fn2() {
for range time.Tick(0) { // MATCH /leaks the underlying ticker/
println("")
if true {
break
}
}
}
func fn3() {
for range time.Tick(0) { // MATCH /leaks the underlying ticker/
println("")
... | package pkg
import "time"
func fn1() {
for range time.Tick(0) {
println("")
}
}
func fn2() {
for range time.Tick(0) { // MATCH /leaks the underlying ticker/
println("")
if true {
break
}
}
}
func fn3() {
for range time.Tick(0) { // MATCH /leaks the underlyin... | 8 | 0.228571 | 8 | 0 |
b84b7a370e6eec4ccfc4d8e4a9b7426391dc8c0b | app/views/finders/_facet_tags.html.erb | app/views/finders/_facet_tags.html.erb | <% if local_assigns[:applied_filters] %>
<div class="facet-tags" data-module="track-click">
<% local_assigns[:applied_filters].each do |applied_filter| %>
<div class="facet-tags__group">
<% applied_filter.each do |filter| %>
<div class="facet-tags__wrapper">
<p class="facet-tag... | <% if local_assigns[:screen_reader_filter_description] %>
<span class="govuk-visually-hidden">
<%= result_set_presenter.displayed_total %>
<%= local_assigns[:screen_reader_filter_description] %>
</span>
<% end %>
<% if local_assigns[:applied_filters] %>
<div class="facet-tags" data-module="track-click">
... | Change order of results and filter info | Change order of results and filter info
Screen readers will now read out the number of
results, followed by the filters applied. This is
more sensible. https://trello.com/c/okfLseFa/
895-hidden-text-for-screen-readers-is-in-the-wrong-place
| HTML+ERB | mit | alphagov/finder-frontend,alphagov/finder-frontend,alphagov/finder-frontend,alphagov/finder-frontend | html+erb | ## Code Before:
<% if local_assigns[:applied_filters] %>
<div class="facet-tags" data-module="track-click">
<% local_assigns[:applied_filters].each do |applied_filter| %>
<div class="facet-tags__group">
<% applied_filter.each do |filter| %>
<div class="facet-tags__wrapper">
<p ... | + <% if local_assigns[:screen_reader_filter_description] %>
+ <span class="govuk-visually-hidden">
+ <%= result_set_presenter.displayed_total %>
+ <%= local_assigns[:screen_reader_filter_description] %>
+ </span>
+ <% end %>
+
<% if local_assigns[:applied_filters] %>
<div class="facet-tags" data-modu... | 14 | 0.451613 | 7 | 7 |
3e8d7a851965322a5a5c3a4aa5db1bf3747a5d54 | bin/transmission.rb | bin/transmission.rb |
require 'rubygems'
require 'yaml'
require 'transmission-client'
require 'lib/transmission-connect'
CONFIG = "config/transmission.yml"
result = []
while true
begin
EventMachine.run do
transmission = Configuration.new(YAML.load_file(CONFIG))
transmission.each do |client|
EM.add_periodic_timer... |
require 'rubygems'
require 'yaml'
require 'transmission-client'
require 'lib/transmission-connect'
CONFIG = "config/transmission.yml"
@exit = false
trap("INT") do
EventMachine::stop_event_loop
@exit = true
end
trap("TERM") do
EventMachine::stop_event_loop
@exit = true
end
while !@exit
begin
EventMach... | Handle system signals and correct exit from app | Handle system signals and correct exit from app
| Ruby | mit | Daem0n/transmission-connect | ruby | ## Code Before:
require 'rubygems'
require 'yaml'
require 'transmission-client'
require 'lib/transmission-connect'
CONFIG = "config/transmission.yml"
result = []
while true
begin
EventMachine.run do
transmission = Configuration.new(YAML.load_file(CONFIG))
transmission.each do |client|
EM.ad... |
require 'rubygems'
require 'yaml'
require 'transmission-client'
require 'lib/transmission-connect'
CONFIG = "config/transmission.yml"
- result = []
+ @exit = false
- while true
+ trap("INT") do
+ EventMachine::stop_event_loop
+ @exit = true
+ end
+
+ trap("TERM") do
+ EventMachine::stop_event_... | 14 | 0.451613 | 12 | 2 |
70e33c077939c0053edd15fc1fcfd5b09ac1d36e | lib/tasks/scheduler.rake | lib/tasks/scheduler.rake | desc "This task is called by the Heroku scheduler add-on"
task :tuesday_newsletter => :environment do
TuesdayNewslettersJob.perform_now
end | require 'date'
desc "This task is called by the Heroku scheduler add-on"
task :tuesday_newsletter => :environment do
TuesdayNewslettersJob.perform_now if Date.today.tuesday?
end | Check if Tuesday before performing task | Check if Tuesday before performing task
| Ruby | mit | StartupWichita/startupwichita.com,StartupWichita/startupwichita.com,StartupWichita/startupwichita.com | ruby | ## Code Before:
desc "This task is called by the Heroku scheduler add-on"
task :tuesday_newsletter => :environment do
TuesdayNewslettersJob.perform_now
end
## Instruction:
Check if Tuesday before performing task
## Code After:
require 'date'
desc "This task is called by the Heroku scheduler add-on"
task :tuesday_n... | + require 'date'
desc "This task is called by the Heroku scheduler add-on"
task :tuesday_newsletter => :environment do
- TuesdayNewslettersJob.perform_now
+ TuesdayNewslettersJob.perform_now if Date.today.tuesday?
? +++++++++++++++++++++++
end | 3 | 0.75 | 2 | 1 |
6443a0a67637ee056d50008ccd08dafdbd0f4ae1 | codegen/Cargo.toml | codegen/Cargo.toml | [package]
name = "syn-internal-codegen"
version = "0.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>", "Nika Layzell <nika@thelayzells.com>"]
edition = "2018"
publish = false # this is an internal crate which should never be published
[dependencies]
color-backtrace = "0.2"
failure = "0.1"
indexmap = { version = "1.... | [package]
name = "syn-internal-codegen"
version = "0.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>", "Nika Layzell <nika@thelayzells.com>"]
edition = "2018"
publish = false # this is an internal crate which should never be published
[dependencies]
color-backtrace = "0.2"
failure = "0.1"
indexmap = { version = "1.... | Update crossbeam build failure workaround | Update crossbeam build failure workaround
| TOML | apache-2.0 | dtolnay/syn | toml | ## Code Before:
[package]
name = "syn-internal-codegen"
version = "0.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>", "Nika Layzell <nika@thelayzells.com>"]
edition = "2018"
publish = false # this is an internal crate which should never be published
[dependencies]
color-backtrace = "0.2"
failure = "0.1"
indexmap =... | [package]
name = "syn-internal-codegen"
version = "0.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>", "Nika Layzell <nika@thelayzells.com>"]
edition = "2018"
publish = false # this is an internal crate which should never be published
[dependencies]
color-backtrace = "0.2"
failure = "0.1"
in... | 8 | 0.266667 | 4 | 4 |
2c8615108844ff6177e415ff28086835856c0390 | app/views/charge_booking_templates/_charge_booking_template.html.haml | app/views/charge_booking_templates/_charge_booking_template.html.haml | - item_action ||= lambda{|object| url_for(object)}
%tr[charge_booking_template]
%td
= link_to "%s (%s)" % [charge_booking_template.title, charge_booking_template.code], item_action.call(charge_booking_template)
- if charge_booking_template.comments.present?
%hr{:style => "height: 1px; margin: 0"}/
... | - item_action ||= lambda{|object| url_for(object)}
%tr[charge_booking_template]
%td
= link_to "%s (%s)" % [charge_booking_template.title, charge_booking_template.code], item_action.call(charge_booking_template)
- if charge_booking_template.comments.present?
%hr{:style => "height: 1px; margin: 0"}/
... | Support AJAX deletion for charge booking templates. | Support AJAX deletion for charge booking templates.
| Haml | agpl-3.0 | xuewenfei/bookyt,gaapt/bookyt,hauledev/bookyt,hauledev/bookyt,silvermind/bookyt,xuewenfei/bookyt,hauledev/bookyt,gaapt/bookyt,huerlisi/bookyt,wtag/bookyt,huerlisi/bookyt,huerlisi/bookyt,silvermind/bookyt,gaapt/bookyt,gaapt/bookyt,silvermind/bookyt,hauledev/bookyt,silvermind/bookyt,wtag/bookyt,xuewenfei/bookyt,wtag/book... | haml | ## Code Before:
- item_action ||= lambda{|object| url_for(object)}
%tr[charge_booking_template]
%td
= link_to "%s (%s)" % [charge_booking_template.title, charge_booking_template.code], item_action.call(charge_booking_template)
- if charge_booking_template.comments.present?
%hr{:style => "height: 1px; m... | - item_action ||= lambda{|object| url_for(object)}
%tr[charge_booking_template]
%td
= link_to "%s (%s)" % [charge_booking_template.title, charge_booking_template.code], item_action.call(charge_booking_template)
- if charge_booking_template.comments.present?
%hr{:style => "height: 1px; mar... | 2 | 0.133333 | 1 | 1 |
67f376ff9d2597d618b697d9e45b7ce48cf96dbb | index/bindex.go | index/bindex.go | package index
type Index struct {
br *blob_reader
Docs map[uint32][]byte
Attrs map[string][]IbDoc
}
func Open(name string) (*Index, error) {
var in Index
var err error
in.br, err = open_blob_reader(name)
if err != nil {
return nil, err
}
in.Docs = make(map[uint32][]byte)
for _, d := range in.br.get_... | package index
import (
"bconf"
)
type Index struct {
br *blob_reader
Docs map[uint32][]byte
Attrs map[string][]IbDoc
Meta bconf.Bconf
header string
}
func Open(name string) (*Index, error) {
var in Index
var err error
in.br, err = open_blob_reader(name)
if err != nil {
return nil, err
}
in.Docs =... | Implement meta by using the bconf package (separate repository). | Implement meta by using the bconf package (separate repository).
| Go | isc | art4711/bsearch | go | ## Code Before:
package index
type Index struct {
br *blob_reader
Docs map[uint32][]byte
Attrs map[string][]IbDoc
}
func Open(name string) (*Index, error) {
var in Index
var err error
in.br, err = open_blob_reader(name)
if err != nil {
return nil, err
}
in.Docs = make(map[uint32][]byte)
for _, d := ... | package index
+
+ import (
+ "bconf"
+ )
type Index struct {
br *blob_reader
Docs map[uint32][]byte
Attrs map[string][]IbDoc
+ Meta bconf.Bconf
+ header string
}
func Open(name string) (*Index, error) {
var in Index
var err error
in.br, err = open_blob_reader(name)
if err !... | 25 | 0.78125 | 24 | 1 |
79104f00818c7e0744d4d14cf53b8f3f56c2b327 | RELEASE.md | RELEASE.md |
To release a new version of ThirtyInch to [jcenter](https://jcenter.bintray.com) we have to run the following command:
```
./gradlew clean bundleRelease bintrayUpload -PbintrayUser=BINTRAY_USERNAME -PbintrayKey=BINTRAY_KEY -PdryRun=false
```
As we use [bintray-release](https://github.com/novoda/bintray-release) you ca... |
To release a new version of ThirtyInch to [jcenter](https://jcenter.bintray.com) we have to run the following command:
```
./gradlew clean bundleRelease bintrayUpload -PbintrayUser=BINTRAY_USERNAME -PbintrayKey=BINTRAY_KEY -PdryRun=false
```
As we use [bintray-release](https://github.com/novoda/bintray-release) you ca... | Fix failing local publish sample | Fix failing local publish sample
| Markdown | apache-2.0 | grandcentrix/ThirtyInch,grandcentrix/ThirtyInch | markdown | ## Code Before:
To release a new version of ThirtyInch to [jcenter](https://jcenter.bintray.com) we have to run the following command:
```
./gradlew clean bundleRelease bintrayUpload -PbintrayUser=BINTRAY_USERNAME -PbintrayKey=BINTRAY_KEY -PdryRun=false
```
As we use [bintray-release](https://github.com/novoda/bintray... |
To release a new version of ThirtyInch to [jcenter](https://jcenter.bintray.com) we have to run the following command:
```
./gradlew clean bundleRelease bintrayUpload -PbintrayUser=BINTRAY_USERNAME -PbintrayKey=BINTRAY_KEY -PdryRun=false
```
As we use [bintray-release](https://github.com/novoda/bintray-rel... | 4 | 0.173913 | 2 | 2 |
99c07f02d64ea243db17766570e9b38cf8068788 | vespamalloc/src/vespamalloc/CMakeLists.txt | vespamalloc/src/vespamalloc/CMakeLists.txt | vespa_add_library(vespamalloc
SOURCES
$<TARGET_OBJECTS:vespamalloc_malloc>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
dl
)
vespa_add_library(vespamallocd
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocd>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vesp... | vespa_add_library(vespamalloc
SOURCES
$<TARGET_OBJECTS:vespamalloc_malloc>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
atomic
dl
)
vespa_add_library(vespamallocd
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocd>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL... | Add link time dependency to atomic library (needed on Ubuntu 18.04) | Add link time dependency to atomic library (needed on Ubuntu 18.04)
| Text | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa | text | ## Code Before:
vespa_add_library(vespamalloc
SOURCES
$<TARGET_OBJECTS:vespamalloc_malloc>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
dl
)
vespa_add_library(vespamallocd
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocd>
$<TARGET_OBJECTS:vespamalloc_util>
IN... | vespa_add_library(vespamalloc
SOURCES
$<TARGET_OBJECTS:vespamalloc_malloc>
$<TARGET_OBJECTS:vespamalloc_util>
INSTALL lib64/vespa/malloc
DEPENDS
+ atomic
dl
)
vespa_add_library(vespamallocd
SOURCES
$<TARGET_OBJECTS:vespamalloc_mallocd>
$<TARGET_OBJECTS:ves... | 5 | 0.131579 | 5 | 0 |
658d13058e6fa0da5ea9224951ba64e0be5fae09 | elmstreet/src/Main.elm | elmstreet/src/Main.elm | module Main exposing (..)
import Browser
import Html exposing (Html, text, div, h1, img)
import Html.Attributes exposing (src)
---- MODEL ----
type alias Model =
{}
init : ( Model, Cmd Msg )
init =
( {}, Cmd.none )
---- UPDATE ----
type Msg
= NoOp
update : Msg -> Model -> ( Model, Cmd Msg )
up... | module Main exposing (Model, Msg(..), init, main, update, view)
import Browser
import Html exposing (Html, button, div, h1, img, text)
import Html.Attributes exposing (src)
import Html.Events exposing (onClick)
---- MODEL ----
type alias Model =
Int
init : ( Model, Cmd Msg )
init =
( 0, Cmd.none )
--... | Add counter example in Elm | Add counter example in Elm
| Elm | mit | kevgathuku/trackflix,kevgathuku/trackflix | elm | ## Code Before:
module Main exposing (..)
import Browser
import Html exposing (Html, text, div, h1, img)
import Html.Attributes exposing (src)
---- MODEL ----
type alias Model =
{}
init : ( Model, Cmd Msg )
init =
( {}, Cmd.none )
---- UPDATE ----
type Msg
= NoOp
update : Msg -> Model -> ( Mod... | - module Main exposing (..)
+ module Main exposing (Model, Msg(..), init, main, update, view)
import Browser
- import Html exposing (Html, text, div, h1, img)
? --
+ import Html exposing (Html, button, div, h1, img, text)
? ++ ++ ++++++
imp... | 39 | 0.696429 | 28 | 11 |
75b32696a778300b94cf33c4622f3e67c92f9531 | src/components/widget/Widget.js | src/components/widget/Widget.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import WidgetBody from './WidgetBody';
import WidgetFooter from './WidgetFooter';
import WidgetHeader from './WidgetHeader';
import theme from './theme.css';
class Widget extends PureComponent {
render() {
... | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import WidgetBody from './WidgetBody';
import WidgetFooter from './WidgetFooter';
import WidgetHeader from './WidgetHeader';
import theme from './theme.css';
const SIZES = {
small: 3,
medium: 4,
large: 5,
... | Implement size prop and pass down to children | Implement size prop and pass down to children
| JavaScript | mit | teamleadercrm/teamleader-ui | javascript | ## Code Before:
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import WidgetBody from './WidgetBody';
import WidgetFooter from './WidgetFooter';
import WidgetHeader from './WidgetHeader';
import theme from './theme.css';
class Widget extends PureComponent {
... | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import WidgetBody from './WidgetBody';
import WidgetFooter from './WidgetFooter';
import WidgetHeader from './WidgetHeader';
import theme from './theme.css';
+ const SIZES = {
+ small: 3,
+ m... | 20 | 0.666667 | 18 | 2 |
a41c009c5ff7e52416861cf87a908186ee93d2b4 | Casks/blender.rb | Casks/blender.rb | cask :v1 => 'blender' do
version '2.76'
sha256 '542bc7fe9871c5a8f80efd5b9657416eda45d3dbeb455189367303203da695c9'
url "https://download.blender.org/release/Blender#{version.to_f}/blender-#{version}-OSX_10.6-x86_64.zip"
name 'Blender'
homepage 'https://www.blender.org/'
license :gpl
app 'Blender.app'
a... | cask :v1 => 'blender' do
version '2.76a'
sha256 '37b583d19eb16123065b62a7c05c574d9ebee2ff7497c1180466447ce6dab383'
url "https://download.blender.org/release/Blender#{version.to_f}/blender-#{version}-OSX_10.6-x86_64.zip"
name 'Blender'
homepage 'https://www.blender.org/'
license :gpl
app 'Blender.app'
... | Upgrade Blender to 2.76a bugfix release | Upgrade Blender to 2.76a bugfix release
| Ruby | bsd-2-clause | xight/homebrew-cask,sgnh/homebrew-cask,cprecioso/homebrew-cask,napaxton/homebrew-cask,nrlquaker/homebrew-cask,mjdescy/homebrew-cask,lifepillar/homebrew-cask,Keloran/homebrew-cask,mchlrmrz/homebrew-cask,chuanxd/homebrew-cask,vin047/homebrew-cask,Saklad5/homebrew-cask,antogg/homebrew-cask,asins/homebrew-cask,greg5green/h... | ruby | ## Code Before:
cask :v1 => 'blender' do
version '2.76'
sha256 '542bc7fe9871c5a8f80efd5b9657416eda45d3dbeb455189367303203da695c9'
url "https://download.blender.org/release/Blender#{version.to_f}/blender-#{version}-OSX_10.6-x86_64.zip"
name 'Blender'
homepage 'https://www.blender.org/'
license :gpl
app '... | cask :v1 => 'blender' do
- version '2.76'
+ version '2.76a'
? +
- sha256 '542bc7fe9871c5a8f80efd5b9657416eda45d3dbeb455189367303203da695c9'
+ sha256 '37b583d19eb16123065b62a7c05c574d9ebee2ff7497c1180466447ce6dab383'
url "https://download.blender.org/release/Blender#{version.to_f}/blende... | 4 | 0.333333 | 2 | 2 |
3bfdd5244238c8c4779c7e95ba685074f98a3c87 | templates/default/server.xml.erb | templates/default/server.xml.erb | <server description="<%= @description %>">
<!-- Enable features -->
<featureManager>
<% @features.each do |feature| -%>
<feature><%= feature %></feature>
<% end -%>
</featureManager>
<% @httpendpoints.each do |httpendpoint| -%>
<httpEndpoint id="<%= httpendpoint["id"] %>"
hos... | <server description="<%= @description %>">
<!-- Enable features -->
<% if @features != nil && @features.size > 0 -%>
<featureManager>
<% @features.each do |feature| -%>
<feature><%= feature %></feature>
<% end -%>
</featureManager>
<% end -%>
<% if @httpendpoints != nil && @httpendpoints.size ... | Update template to make elements and attributes optional. | Update template to make elements and attributes optional.
| HTML+ERB | apache-2.0 | WASdev/ci.chef.wlp,WASdev/ci.chef.wlp | html+erb | ## Code Before:
<server description="<%= @description %>">
<!-- Enable features -->
<featureManager>
<% @features.each do |feature| -%>
<feature><%= feature %></feature>
<% end -%>
</featureManager>
<% @httpendpoints.each do |httpendpoint| -%>
<httpEndpoint id="<%= httpendpoint["id"] %>"
... | <server description="<%= @description %>">
<!-- Enable features -->
+ <% if @features != nil && @features.size > 0 -%>
<featureManager>
- <% @features.each do |feature| -%>
+ <% @features.each do |feature| -%>
? ++
<feature><%= feature %></feature>
+ <% end -%>
+ </featureManager>
... | 18 | 0.75 | 11 | 7 |
a67637c1ee3ed832294e8bacf9b83209678d1c49 | test/helper.rb | test/helper.rb | ENV["RAILS_ENV"] = "test"
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
require 'minitest/autorun'
require 'webmock/minitest'
module MiniTest
class Test
def setup
WebMock.reset!
WebMock.disable_net_connect!(allow_localhost: true)
ElasticRecord::Config.models.e... | ENV["RAILS_ENV"] = "test"
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
require 'minitest/autorun'
require 'webmock/minitest'
WebMock.disable_net_connect!(allow_localhost: true)
module MiniTest
class Test
def setup
WebMock.reset!
ElasticRecord::Config.models.each do... | Move disable_net_connect outside of setup | Move disable_net_connect outside of setup
| Ruby | apache-2.0 | data-axle/elastic_record,data-axle/elastic_record,data-axle/elastic_record,data-axle/elastic_record | ruby | ## Code Before:
ENV["RAILS_ENV"] = "test"
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
require 'minitest/autorun'
require 'webmock/minitest'
module MiniTest
class Test
def setup
WebMock.reset!
WebMock.disable_net_connect!(allow_localhost: true)
ElasticRecord:... | ENV["RAILS_ENV"] = "test"
- require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
? -
+ require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
require 'minitest/autorun'
require 'webmock/minites... | 5 | 0.2 | 3 | 2 |
33d1b6678dbe9769fcbba8dc1a4a0bb73b6134f1 | bash/.bashrc.d/erlang.sh | bash/.bashrc.d/erlang.sh | export ERL_AFLAGS="-kernel shell_history enabled"
| export ERL_AFLAGS="-kernel shell_history enabled"
if [ -f $HOME/.cache/rebar3/bin ]; then
export PATH=$HOME/.cache/rebar3/bin
fi
| Add rebar3 to path when it exists | Add rebar3 to path when it exists
| Shell | mit | J3RN/dotfiles | shell | ## Code Before:
export ERL_AFLAGS="-kernel shell_history enabled"
## Instruction:
Add rebar3 to path when it exists
## Code After:
export ERL_AFLAGS="-kernel shell_history enabled"
if [ -f $HOME/.cache/rebar3/bin ]; then
export PATH=$HOME/.cache/rebar3/bin
fi
| export ERL_AFLAGS="-kernel shell_history enabled"
+
+ if [ -f $HOME/.cache/rebar3/bin ]; then
+ export PATH=$HOME/.cache/rebar3/bin
+ fi | 4 | 4 | 4 | 0 |
80448aa6664d13dd58ed42c06248ca4532431aab | dakota_utils/convert.py | dakota_utils/convert.py |
import shutil
from subprocess import check_call, CalledProcessError
from dakota_utils.read import get_names
def has_interface_column(tab_file):
'''
Returns True if the tabular output file has the v6.1 'interface' column.
'''
try:
val = get_names(tab_file)[1] == 'interface'
except IOError:... |
import shutil
from subprocess import check_call, CalledProcessError
from .read import get_names
def has_interface_column(tab_file):
'''
Returns True if the tabular output file has the v6.1 'interface' column.
'''
try:
val = get_names(tab_file)[1] == 'interface'
except IOError:
rai... | Use a relative import to get the read module | Use a relative import to get the read module
| Python | mit | mdpiper/dakota-experiments,mdpiper/dakota-experiments,mcflugen/dakota-experiments,mdpiper/dakota-experiments,mcflugen/dakota-experiments | python | ## Code Before:
import shutil
from subprocess import check_call, CalledProcessError
from dakota_utils.read import get_names
def has_interface_column(tab_file):
'''
Returns True if the tabular output file has the v6.1 'interface' column.
'''
try:
val = get_names(tab_file)[1] == 'interface'
... |
import shutil
from subprocess import check_call, CalledProcessError
- from dakota_utils.read import get_names
? ------------
+ from .read import get_names
def has_interface_column(tab_file):
'''
Returns True if the tabular output file has the v6.1 'interface' column.
'''
try... | 2 | 0.068966 | 1 | 1 |
69165e31f60a868fcac3f3b659838ee634f5d1d6 | bundles/dsls/tools.vitruv.dsls.reactions/src/tools/vitruv/dsls/reactions/ReactionsLanguageStandaloneSetup.xtend | bundles/dsls/tools.vitruv.dsls.reactions/src/tools/vitruv/dsls/reactions/ReactionsLanguageStandaloneSetup.xtend | /*
* generated by Xtext 2.9.0
*/
package tools.vitruv.dsls.reactions
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
class ReactionsLanguageStandaloneSetup extends ReactionsLanguageStandaloneSetupGenerated {
def static void doSetup() {
new ReactionsLanguageStanda... | /*
* generated by Xtext 2.9.0
*/
package tools.vitruv.dsls.reactions
import org.eclipse.emf.ecore.plugin.EcorePlugin
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
class ReactionsLanguageStandaloneSetup extends ReactionsLanguageStandaloneSetupGenerated {
def stat... | Initialize metamodels when running Reactions language generator | Initialize metamodels when running Reactions language generator
| Xtend | epl-1.0 | vitruv-tools/Vitruv | xtend | ## Code Before:
/*
* generated by Xtext 2.9.0
*/
package tools.vitruv.dsls.reactions
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
class ReactionsLanguageStandaloneSetup extends ReactionsLanguageStandaloneSetupGenerated {
def static void doSetup() {
new Reactio... | /*
* generated by Xtext 2.9.0
*/
package tools.vitruv.dsls.reactions
+
+ import org.eclipse.emf.ecore.plugin.EcorePlugin
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
class ReactionsLanguageStandaloneSetup extends ReactionsLanguageStandaloneSetup... | 4 | 0.285714 | 4 | 0 |
48a21e76ad3a9063930872a8a13bba2c1a5bd0ad | scripts/runProduction.sh | scripts/runProduction.sh | echo "Running Production Site"
sudo chmod 755 ./
nvm use
yarn
./build.js -run --settings settings.json | echo "Running Production Site"
sudo chmod 755 ./
. ~/.nvm/nvm.sh
nvm use
yarn
./build.js -run --settings settings.json | Make sure nvm is available to us | Make sure nvm is available to us
| Shell | mit | Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2 | shell | ## Code Before:
echo "Running Production Site"
sudo chmod 755 ./
nvm use
yarn
./build.js -run --settings settings.json
## Instruction:
Make sure nvm is available to us
## Code After:
echo "Running Production Site"
sudo chmod 755 ./
. ~/.nvm/nvm.sh
nvm use
yarn
./build.js -run --settings settings.json | echo "Running Production Site"
sudo chmod 755 ./
+ . ~/.nvm/nvm.sh
nvm use
yarn
./build.js -run --settings settings.json | 1 | 0.2 | 1 | 0 |
525cf9c7f1c4591950bae90e9a7b54723c430add | lib/vm/development/rake_tasks.rb | lib/vm/development/rake_tasks.rb | require 'vm/development/rake/build_tasks'
VmDevelopment::BuildTasks.new
STDOUT.sync = true
| require 'vm/development/rake/build_tasks'
VmDevelopment::BuildTasks.new
STDOUT.sync = true
STDERR.sync = true
| Make sure stderr sync is also true | Make sure stderr sync is also true | Ruby | mit | RallySoftware/vm-development | ruby | ## Code Before:
require 'vm/development/rake/build_tasks'
VmDevelopment::BuildTasks.new
STDOUT.sync = true
## Instruction:
Make sure stderr sync is also true
## Code After:
require 'vm/development/rake/build_tasks'
VmDevelopment::BuildTasks.new
STDOUT.sync = true
STDERR.sync = true
| require 'vm/development/rake/build_tasks'
VmDevelopment::BuildTasks.new
STDOUT.sync = true
+ STDERR.sync = true | 1 | 0.2 | 1 | 0 |
e04123ce0b368b19015270b1fc1bd1f706c765cf | pwm/_compat.py | pwm/_compat.py | # pylint: disable=unused-import
import sys
PY2 = sys.version_info[0] == 2
if PY2: # pragma: no cover
from ConfigParser import RawConfigParser
from httplib import HTTPConnection
input = raw_input
def ord_byte(char):
''' convert a single character into integer representation '''
return ... | # pylint: disable=unused-import
import sys
PY2 = sys.version_info[0] == 2
if PY2: # pragma: no cover
from ConfigParser import RawConfigParser
from httplib import HTTPConnection
input = raw_input
def ord_byte(char):
''' convert a single character into integer representation '''
return ... | Fix python 3 input compatiblity | Fix python 3 input compatiblity
| Python | mit | thusoy/pwm,thusoy/pwm | python | ## Code Before:
# pylint: disable=unused-import
import sys
PY2 = sys.version_info[0] == 2
if PY2: # pragma: no cover
from ConfigParser import RawConfigParser
from httplib import HTTPConnection
input = raw_input
def ord_byte(char):
''' convert a single character into integer representation '''... | # pylint: disable=unused-import
import sys
PY2 = sys.version_info[0] == 2
if PY2: # pragma: no cover
from ConfigParser import RawConfigParser
from httplib import HTTPConnection
input = raw_input
def ord_byte(char):
''' convert a single character into integer representa... | 1 | 0.052632 | 1 | 0 |
b9f8a83c6f9b5b97252ca99f862c8c61eb2a778b | app/views/users/_form.html.haml | app/views/users/_form.html.haml | = form_for @user, :html => { :class => 'form-horizontal' } do |f|
.control-group
= f.label :name, :class => 'control-label'
.controls
= f.text_field :name, :class => 'text_field', :required => true
.control-group
= f.label :email, :class => 'control-label'
.controls
= f.email_field :emai... | = form_for @user, :html => { :class => 'form-horizontal' } do |f|
.control-group
= f.label :name, :class => 'control-label'
.controls
= f.text_field :name, :class => 'text_field', :required => true
.control-group
= f.label :email, :class => 'control-label'
.controls
= f.email_field :emai... | Fix step on balance field | Fix step on balance field
HTML5 compliant browsers like Chrome would not allow you to enter
decimal numbers
| Haml | mit | Piratonym/mete,YtvwlD/mete,mraerino/mete,mraerino/mete,mraerino/mete,YtvwlD/mete,chaosdorf/mete,Piratonym/mete,YtvwlD/mete,YtvwlD/mete,chaosdorf/mete,chaosdorf/mete,chaosdorf/mete | haml | ## Code Before:
= form_for @user, :html => { :class => 'form-horizontal' } do |f|
.control-group
= f.label :name, :class => 'control-label'
.controls
= f.text_field :name, :class => 'text_field', :required => true
.control-group
= f.label :email, :class => 'control-label'
.controls
= f.e... | = form_for @user, :html => { :class => 'form-horizontal' } do |f|
.control-group
= f.label :name, :class => 'control-label'
.controls
= f.text_field :name, :class => 'text_field', :required => true
.control-group
= f.label :email, :class => 'control-label'
.controls
= f... | 2 | 0.111111 | 1 | 1 |
a6247ccbecf4cc518132cebed87fc86777c1e0f1 | bin/paths.zsh | bin/paths.zsh | export PATH="$PATH:$DOTFILES/bin"
# Add paths for homebrew on OS X
if [ $OSX ]; then
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
fi
| export PATH="$PATH:$DOTFILES/bin"
# Add paths for homebrew on OS X
if [ $OSX ]; then
export PATH="/usr/local/share/npm/bin:/usr/local/bin:/usr/local/sbin:$PATH"
fi
| Add path for NPM binaries | Add path for NPM binaries
| Shell | mit | openfirmware/dotfiles,openfirmware/dotfiles,openfirmware/dotfiles | shell | ## Code Before:
export PATH="$PATH:$DOTFILES/bin"
# Add paths for homebrew on OS X
if [ $OSX ]; then
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
fi
## Instruction:
Add path for NPM binaries
## Code After:
export PATH="$PATH:$DOTFILES/bin"
# Add paths for homebrew on OS X
if [ $OSX ]; then
export PATH="/usr... | export PATH="$PATH:$DOTFILES/bin"
# Add paths for homebrew on OS X
if [ $OSX ]; then
- export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
+ export PATH="/usr/local/share/npm/bin:/usr/local/bin:/usr/local/sbin:$PATH"
? +++++++++++++++++++++++++
fi | 2 | 0.333333 | 1 | 1 |
175dcdb44e5f5913597bd2ae9d9b9b3a20de039f | lib/hyalite/main.rb | lib/hyalite/main.rb | require 'opal'
require 'opal-browser'
Opal.append_path File.expand_path('../../../client', __FILE__)
| require 'opal'
Opal.append_path File.expand_path('../../../client', __FILE__)
| Fix opal-browser is not found | Fix opal-browser is not found
| Ruby | mit | youchan/hyalite | ruby | ## Code Before:
require 'opal'
require 'opal-browser'
Opal.append_path File.expand_path('../../../client', __FILE__)
## Instruction:
Fix opal-browser is not found
## Code After:
require 'opal'
Opal.append_path File.expand_path('../../../client', __FILE__)
| require 'opal'
- require 'opal-browser'
Opal.append_path File.expand_path('../../../client', __FILE__)
| 1 | 0.2 | 0 | 1 |
21407f7d73d98bc9b130059510eafbce881044b1 | README.md | README.md | Contact Improv LA website
======================
Based on [t413.com/SinglePaged](http://t413.com/SinglePaged)
## Running locally
See [Github Pages](https://help.github.com/articles/using-jekyll-with-pages/)
| Contact Improv LA website
======================
Based on [t413.com/SinglePaged](http://t413.com/SinglePaged)
## Running locally
See [Github Pages](https://help.github.com/articles/using-jekyll-with-pages/)
## Setup for contactimprovla.com
* Added a CNAME file with the custom domain per [GitHub Pages custom domain ... | Add note on how hosting works | Add note on how hosting works
| Markdown | mit | contactimprovla/contactimprovla.github.io,contactimprovla/contactimprovla.github.io,contactimprovla/contactimprovla.github.io | markdown | ## Code Before:
Contact Improv LA website
======================
Based on [t413.com/SinglePaged](http://t413.com/SinglePaged)
## Running locally
See [Github Pages](https://help.github.com/articles/using-jekyll-with-pages/)
## Instruction:
Add note on how hosting works
## Code After:
Contact Improv LA website
======... | Contact Improv LA website
======================
Based on [t413.com/SinglePaged](http://t413.com/SinglePaged)
## Running locally
See [Github Pages](https://help.github.com/articles/using-jekyll-with-pages/)
+
+ ## Setup for contactimprovla.com
+
+ * Added a CNAME file with the custom domain per [GitHu... | 5 | 0.714286 | 5 | 0 |
14567914ae7ff5ee19b7bc9c0954254ed1da924e | VagrantBox/DebianJessieBaseBox/bootstrap-vz-manifests/virtualbox-vagrant.manifest.yml | VagrantBox/DebianJessieBaseBox/bootstrap-vz-manifests/virtualbox-vagrant.manifest.yml | ---
provider:
name: virtualbox
guest_additions: /usr/share/virtualbox/VBoxGuestAdditions.iso
bootstrapper:
workspace: /target
mirror: http://ftp.fr.debian.org/debian
image:
name: debian-{system.release}-{system.architecture}-{%y}{%m}{%d}
description: Debian {system.release} {system.architecture}
system:
r... | ---
provider:
name: virtualbox
guest_additions: /usr/share/virtualbox/VBoxGuestAdditions.iso
bootstrapper:
workspace: /target
mirror: http://ftp.fr.debian.org/debian
image:
name: debian-{system.release}-{system.architecture}-{%y}{%m}{%d}
description: Debian {system.release} {system.architecture}
system:
r... | Add zerofree to avoid having to manually trim the filesystem | Add zerofree to avoid having to manually trim the filesystem
| YAML | mit | digitalquest/moocbdvm,digitalquest/moocbdvm,digitalquest/moocbdvm,digitalquest/moocbdvm | yaml | ## Code Before:
---
provider:
name: virtualbox
guest_additions: /usr/share/virtualbox/VBoxGuestAdditions.iso
bootstrapper:
workspace: /target
mirror: http://ftp.fr.debian.org/debian
image:
name: debian-{system.release}-{system.architecture}-{%y}{%m}{%d}
description: Debian {system.release} {system.architect... | ---
provider:
name: virtualbox
guest_additions: /usr/share/virtualbox/VBoxGuestAdditions.iso
bootstrapper:
workspace: /target
mirror: http://ftp.fr.debian.org/debian
image:
name: debian-{system.release}-{system.architecture}-{%y}{%m}{%d}
description: Debian {system.release} {system.archi... | 3 | 0.090909 | 3 | 0 |
7021607470a1bef4c002667316fe6b7d636609ab | core/app/assets/stylesheets/buttons/extension-button.scss | core/app/assets/stylesheets/buttons/extension-button.scss | %extension-install-button {
vertical-align: top;
margin-right: 10px;
background-size: 32px 32px;
display: inline-block;
height: 50px;
width: 32px;
background: no-repeat 0px 9px;
}
.install-chrome {
@extend %extension-install-button;
background-image: image-url('browser-icons/Chrome-32x3... | %extension-install-button {
vertical-align: top;
margin-right: 10px;
background-size: 32px 32px;
display: inline-block;
height: 50px;
width: 32px;
background: no-repeat 0px 9px;
}
.install-chrome {
@extend %extension-install-button;
background-image: asset-data-url('browser-icons/Chrome... | Use asset data URL instead of image url | Use asset data URL instead of image url
| SCSS | mit | daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core | scss | ## Code Before:
%extension-install-button {
vertical-align: top;
margin-right: 10px;
background-size: 32px 32px;
display: inline-block;
height: 50px;
width: 32px;
background: no-repeat 0px 9px;
}
.install-chrome {
@extend %extension-install-button;
background-image: image-url('browser-i... | %extension-install-button {
vertical-align: top;
margin-right: 10px;
background-size: 32px 32px;
display: inline-block;
height: 50px;
width: 32px;
background: no-repeat 0px 9px;
}
.install-chrome {
@extend %extension-install-button;
- background-image: image-url(... | 6 | 0.25 | 3 | 3 |
df71b062f109c09107eacc5870acc5f638c7811c | README.markdown | README.markdown | 
Modern development is highly asynchronous: isn’t it about time iOS developers had tools that made programming asynchronously powerful, easy and delightful?
# How To Get Started
* Read PromiseKit’s [comprehensive learning guide](http://promisekit.org/in... | 
Modern development is highly asynchronous: isn’t it about time iOS developers had tools that made programming asynchronously powerful, easy and delightful?
# How To Get Started
* Read PromiseKit’s [comprehensive learning guide](http://promisekit.org/in... | Clarify which variant you get | Clarify which variant you get | Markdown | mit | mxcl/PromiseKit,allen-zeng/PromiseKit,mxcl/PromiseKit,allen-zeng/PromiseKit,mxcl/PromiseKit | markdown | ## Code Before:

Modern development is highly asynchronous: isn’t it about time iOS developers had tools that made programming asynchronously powerful, easy and delightful?
# How To Get Started
* Read PromiseKit’s [comprehensive learning guide](http://p... | 
Modern development is highly asynchronous: isn’t it about time iOS developers had tools that made programming asynchronously powerful, easy and delightful?
# How To Get Started
* Read PromiseKit’s [comprehensive learning guide](http://pro... | 13 | 0.52 | 7 | 6 |
3881d720d7234630bba091f9ffb4efbd11ef781f | lib/git_tracker/branch.rb | lib/git_tracker/branch.rb | require 'English'
module GitTracker
module Branch
def self.story_number
current[/#?(?<number>\d+)/, :number]
end
def self.current
branch_path = `git symbolic-ref HEAD`
abort unless $CHILD_STATUS.exitstatus == 0
branch_path[%r{refs/heads/(?<name>.+)}, :name] || ''
end
end
... | require 'English'
module GitTracker
module Branch
def self.story_number
current[/#?(?<number>\d+)/, :number]
end
def self.current
branch_path = `git symbolic-ref HEAD`
abort unless exit_successful?
branch_path[%r{refs/heads/(?<name>.+)}, :name] || ''
end
private
d... | Refactor to a named method, for sanity | Refactor to a named method, for sanity
| Ruby | mit | KensoDev/git_tracker,stevenharman/git_tracker,stevenharman/git_tracker,KensoDev/git_tracker | ruby | ## Code Before:
require 'English'
module GitTracker
module Branch
def self.story_number
current[/#?(?<number>\d+)/, :number]
end
def self.current
branch_path = `git symbolic-ref HEAD`
abort unless $CHILD_STATUS.exitstatus == 0
branch_path[%r{refs/heads/(?<name>.+)}, :name] || '... | require 'English'
module GitTracker
module Branch
def self.story_number
current[/#?(?<number>\d+)/, :number]
end
def self.current
branch_path = `git symbolic-ref HEAD`
- abort unless $CHILD_STATUS.exitstatus == 0
+ abort unless exit_successful?
b... | 8 | 0.470588 | 7 | 1 |
5b0bd07758f66971d55b127f41313d022774aa78 | app/views/layouts/devise.html.haml | app/views/layouts/devise.html.haml | !!! 5
%html(lang="en")
%head
%meta(charset="utf-8")
%meta(name="viewport" content="width=device-width, initial-scale=1.0")
%title= content_for?(:title) ? yield(:title) : "Flareteam"
= csrf_meta_tags
/ Le HTML5 shim, for IE6-8 support of HTML elements
/[if lt IE 9]
= javascript_include_ta... | !!! 5
%html(lang='en')
%head
%meta(charset='utf-8')
%meta(name='viewport' content='width=device-width, initial-scale=1.0')
%title= content_for?(:title) ? yield(:title) : 'Flareteam'
= csrf_meta_tags
-# Le HTML5 shim, for IE6-8 support of HTML elements
/[if lt IE 9]
= javascript_include_t... | Add GA to devise layout | Add GA to devise layout
| Haml | mit | williamv/Flareteam,williamv/Flareteam | haml | ## Code Before:
!!! 5
%html(lang="en")
%head
%meta(charset="utf-8")
%meta(name="viewport" content="width=device-width, initial-scale=1.0")
%title= content_for?(:title) ? yield(:title) : "Flareteam"
= csrf_meta_tags
/ Le HTML5 shim, for IE6-8 support of HTML elements
/[if lt IE 9]
= javas... | !!! 5
- %html(lang="en")
? ^ ^
+ %html(lang='en')
? ^ ^
%head
- %meta(charset="utf-8")
? ^ ^
+ %meta(charset='utf-8')
? ^ ^
- %meta(name="viewport" content="width=device-width, initial-scale=1.0")
? ^ ^ ... | 32 | 1.032258 | 16 | 16 |
fea4d8c46bdef00859831056daa17c1ee0826cb5 | src/js/app.js | src/js/app.js | /**
* Angular.js application configuration
*
* @author eugene.trounev(a)gmail.com
*/
angular.module('app', [
'ngRoute',
'com.likalo.ui'
])
.constant('APP_META', {
title: 'pal-pal',
description: 'A simple palette management tool.',
icon: 'palette'
})
.constant('APP_API', {
user: '/api/use... | /**
* Angular.js application configuration
*
* @author eugene.trounev(a)gmail.com
*/
angular.module('app', [
'ngRoute',
'com.likalo.ui'
])
.constant('APP_META', {
title: 'pal-pal',
description: 'A simple palette management tool.',
icon: 'palette'
})
.config([
'$routeProvider',
'$locat... | Remove API since we aren't using it | Remove API since we aren't using it | JavaScript | mit | it-s/pal-pal,it-s/pal-pal | javascript | ## Code Before:
/**
* Angular.js application configuration
*
* @author eugene.trounev(a)gmail.com
*/
angular.module('app', [
'ngRoute',
'com.likalo.ui'
])
.constant('APP_META', {
title: 'pal-pal',
description: 'A simple palette management tool.',
icon: 'palette'
})
.constant('APP_API', {
... | /**
* Angular.js application configuration
*
* @author eugene.trounev(a)gmail.com
*/
angular.module('app', [
'ngRoute',
'com.likalo.ui'
])
.constant('APP_META', {
title: 'pal-pal',
description: 'A simple palette management tool.',
icon: 'palette'
- })
- .constant('... | 6 | 0.153846 | 3 | 3 |
160a6eff6e8dc3b63838de6bf9c2f88105393b00 | README.md | README.md | This is a collection of runnable console applications that highlights the features of Kotlin programming language. | This is a collection of runnable console applications that highlights the features of "Kotlin programming language":http://confluence.jetbrains.net/display/Kotlin/Welcome.
| Add link to Kotlin documentation. | Add link to Kotlin documentation.
| Markdown | bsd-3-clause | dodyg/Kotlin101,mewebstudio/Kotlin101 | markdown | ## Code Before:
This is a collection of runnable console applications that highlights the features of Kotlin programming language.
## Instruction:
Add link to Kotlin documentation.
## Code After:
This is a collection of runnable console applications that highlights the features of "Kotlin programming language":http://... | - This is a collection of runnable console applications that highlights the features of Kotlin programming language.
+ This is a collection of runnable console applications that highlights the features of "Kotlin programming language":http://confluence.jetbrains.net/display/Kotlin/Welcome.
? ... | 2 | 2 | 1 | 1 |
3ce2371ae7e9679a070b174bfdc6a50d8f9c0be8 | status/README.md | status/README.md | Skia Status
===========
Skia Status is a server which displays information about the current Skia status.
### Skia Status ###
It needs the following project level metadata set:
metadata.COOKIESALT
metadata.CLIENT_ID
metadata.CLIENT_SECRET
metadata.INFLUXDB_NAME
metadata.INFLUXDB_PASSWORD
The cli... | Skia Status
===========
Skia Status is a server which displays information about the current Skia status.
| Remove out of date docs | [Status] Remove out of date docs
Change-Id: Iecf728d9133cd499f83f8a9bd4147c8537c025bc
Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/291364
Reviewed-by: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com>
| Markdown | bsd-3-clause | google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot | markdown | ## Code Before:
Skia Status
===========
Skia Status is a server which displays information about the current Skia status.
### Skia Status ###
It needs the following project level metadata set:
metadata.COOKIESALT
metadata.CLIENT_ID
metadata.CLIENT_SECRET
metadata.INFLUXDB_NAME
metadata.INFLUXDB_P... | Skia Status
===========
Skia Status is a server which displays information about the current Skia status.
-
- ### Skia Status ###
- It needs the following project level metadata set:
-
- metadata.COOKIESALT
- metadata.CLIENT_ID
- metadata.CLIENT_SECRET
- metadata.INFLUXDB_NAME
- metadata.... | 23 | 0.851852 | 0 | 23 |
3b5f55d3c6555a26365a9f21bd2e154eb0aafbcf | index.php | index.php | <?php
/**
* @file index.php
* Friendica
*/
require __DIR__ . '/vendor/autoload.php';
// We assume that the index.php is called by a frontend process
// The value is set to "true" by default in App
$a = new Friendica\App(__DIR__, false);
$a->runFrontend();
| <?php
/**
* @file index.php
* Friendica
*/
if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
die('Vendor path not found. Please execute "bin/composer.phar --no-dev install" on the command line in the web root.');
}
require __DIR__ . '/vendor/autoload.php';
// We assume that the index.php is called by a front... | Check if the vendor path is missing and complain about it | Check if the vendor path is missing and complain about it
| PHP | agpl-3.0 | annando/friendica,friendica/friendica,annando/friendica,tobiasd/friendica,fabrixxm/friendica,tobiasd/friendica,friendica/friendica,fabrixxm/friendica,annando/friendica,tobiasd/friendica,annando/friendica,annando/friendica,fabrixxm/friendica,friendica/friendica,tobiasd/friendica,friendica/friendica,fabrixxm/friendica,fa... | php | ## Code Before:
<?php
/**
* @file index.php
* Friendica
*/
require __DIR__ . '/vendor/autoload.php';
// We assume that the index.php is called by a frontend process
// The value is set to "true" by default in App
$a = new Friendica\App(__DIR__, false);
$a->runFrontend();
## Instruction:
Check if the vendor path ... | <?php
/**
* @file index.php
* Friendica
*/
+
+ if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
+ die('Vendor path not found. Please execute "bin/composer.phar --no-dev install" on the command line in the web root.');
+ }
require __DIR__ . '/vendor/autoload.php';
// We assume that the inde... | 4 | 0.307692 | 4 | 0 |
5e0ffd75d1287ea3ac93a3470b77992d5d056e09 | .travis.yml | .travis.yml | sudo: false
language: java
cache:
directories:
- "$HOME/.m2/repository"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
after_success:
mvn package
deploy:
provider: releases
api_key:
secure: CkiqeHfVkf6HeYW6wpBDg8j4GcW3+6I3EKqPXX8CI3oZdM32RU2jU8Jo977g2tLpMvPQRMO+pFXUMTBU1ScTG7eQz0fYoseoCfrTNU2ANHh6vdrIVEvxKXAj... | sudo: false
language: java
cache:
directories:
- "$HOME/.m2/repository"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
mvn package
deploy:
provider: releases
api_key:
secure: CkiqeHfVkf6HeYW6wpBDg8j4GcW3+6I3EKqPXX8CI3oZdM32RU2jU8Jo977g2... | Add code coverage, only package on deploy | Add code coverage, only package on deploy
| YAML | bsd-3-clause | gmr/rabbitmq-flume-plugin,aweber/rabbitmq-flume-plugin,gmr/rabbitmq-flume-plugin,aweber/rabbitmq-flume-plugin | yaml | ## Code Before:
sudo: false
language: java
cache:
directories:
- "$HOME/.m2/repository"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
after_success:
mvn package
deploy:
provider: releases
api_key:
secure: CkiqeHfVkf6HeYW6wpBDg8j4GcW3+6I3EKqPXX8CI3oZdM32RU2jU8Jo977g2tLpMvPQRMO+pFXUMTBU1ScTG7eQz0fYoseoCfrTNU2A... | sudo: false
language: java
cache:
directories:
- "$HOME/.m2/repository"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
after_success:
+ - bash <(curl -s https://codecov.io/bash)
+ before_deploy:
mvn package
deploy:
provider: releases
api_key:
secure: CkiqeHfVkf6HeYW6wpBDg8j4GcW... | 2 | 0.095238 | 2 | 0 |
dae58cc4c282fbcd7ebe1a08361ba915939f8650 | builds/terraform/platform/iam_policy_document.tf | builds/terraform/platform/iam_policy_document.tf | data "aws_iam_policy_document" "travis_permissions" {
statement {
actions = [
"ecr:*",
]
resources = [
"*",
]
}
statement {
actions = [
"s3:*",
]
resources = [
"${var.infra_bucket_arn}",
"${var.infra_bucket_arn}/*",
]
}
statement {
actions ... | data "aws_iam_policy_document" "travis_permissions" {
statement {
actions = [
"ecr:*",
]
resources = [
"*",
]
}
statement {
actions = [
"s3:*",
]
resources = [
"${var.infra_bucket_arn}",
"${var.infra_bucket_arn}/*",
]
}
statement {
actions ... | Add the IAM GetUser permission | Add the IAM GetUser permission
| HCL | mit | wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api | hcl | ## Code Before:
data "aws_iam_policy_document" "travis_permissions" {
statement {
actions = [
"ecr:*",
]
resources = [
"*",
]
}
statement {
actions = [
"s3:*",
]
resources = [
"${var.infra_bucket_arn}",
"${var.infra_bucket_arn}/*",
]
}
statemen... | data "aws_iam_policy_document" "travis_permissions" {
statement {
actions = [
"ecr:*",
]
resources = [
"*",
]
}
statement {
actions = [
"s3:*",
]
resources = [
"${var.infra_bucket_arn}",
"${var.infra_bucket_arn}/*",... | 10 | 0.2 | 10 | 0 |
47064f7b4d7a40fd762cf7da881e86c07072c4e0 | README.md | README.md | spreed-turnservicecli
=====================
[](https://godoc.org/github.com/strukturag/spreed-turnservicecli)
[](https://travis-ci.org/strukturag/sp... | spreed-turnservicecli
=====================
spreed-turnservicecli is a Go client library providing a TURN service credentials client and API data structure.
[](https://godoc.org/github.com/strukturag/spreed-turnservicecli)
[](https://godoc.org/github.com/strukturag/spreed-turnservicecli)
[](https://travis-ci.o... | spreed-turnservicecli
=====================
+
+ spreed-turnservicecli is a Go client library providing a TURN service credentials client and API data structure.
[](https://godoc.org/github.com/strukturag/spreed-turnservicecli)
... | 4 | 0.363636 | 2 | 2 |
20e9250e9eefb6fd4b085d5d7a4d49a907821fcb | README.md | README.md | shape_learning is a library for simultaneously learning multiple shape models based on user input, such as demonstrations.
Python dependencies:
```
enum, scipy, recordtype
```
The `ShapeModeler` class manages a model of a particular shape, for example a letter. The current implementation uses a principle component an... | shape_learning is a library for simultaneously learning multiple shape models based on user input, such as demonstrations.
Python dependencies:
```
enum, scipy, recordtype
```
The `ShapeModeler` class manages a model of a particular shape, for example a letter. The current implementation uses a principle component an... | Update readme to include shape model gui | Update readme to include shape model gui
| Markdown | isc | chili-epfl/shape_learning,alexis-jacq/shape_learning,FerranGarcia/shape_learning | markdown | ## Code Before:
shape_learning is a library for simultaneously learning multiple shape models based on user input, such as demonstrations.
Python dependencies:
```
enum, scipy, recordtype
```
The `ShapeModeler` class manages a model of a particular shape, for example a letter. The current implementation uses a princi... | shape_learning is a library for simultaneously learning multiple shape models based on user input, such as demonstrations.
Python dependencies:
```
enum, scipy, recordtype
```
The `ShapeModeler` class manages a model of a particular shape, for example a letter. The current implementation uses a princi... | 7 | 0.411765 | 6 | 1 |
d707d4bc6dc721af4faea1ed2a6b9eb929a8a962 | ansible/oooq/roles/pre-install-setup/tasks/main.yml | ansible/oooq/roles/pre-install-setup/tasks/main.yml | ---
- name: Make sure rsync is installed
yum: name=rsync state=present
become: true
- name: Copy browbeat to the undercloud
synchronize: "src={{ local_working_dir }}/browbeat dest={{ ansible_env.HOME }}/ use_ssh_args=yes"
- name: Set hosts gen as executable
shell: "chmod +x {{ ansible_env.HOME }}/browbeat/an... | ---
- name: Make sure rsync is installed
yum: name=rsync state=present
become: true
- name: Copy browbeat to the undercloud
synchronize: "src={{ local_working_dir }}/browbeat dest={{ ansible_env.HOME }}/ use_ssh_args=yes"
- name: Set hosts gen as executable
shell: "chmod +x {{ ansible_env.HOME }}/browbeat/an... | Fix source for CI vars file | Fix source for CI vars file
The CI vars file is on the jenkins slave, not on the virthost where we
where trying to copy the data from. The code that was checked in has never
worked, what happened is that with a previous iteration of the commit we
created /tmp/install_vars.yml and since the jenkins machine never gets r... | YAML | apache-2.0 | jkilpatr/browbeat,jkilpatr/browbeat | yaml | ## Code Before:
---
- name: Make sure rsync is installed
yum: name=rsync state=present
become: true
- name: Copy browbeat to the undercloud
synchronize: "src={{ local_working_dir }}/browbeat dest={{ ansible_env.HOME }}/ use_ssh_args=yes"
- name: Set hosts gen as executable
shell: "chmod +x {{ ansible_env.HOM... | ---
- name: Make sure rsync is installed
yum: name=rsync state=present
become: true
- name: Copy browbeat to the undercloud
synchronize: "src={{ local_working_dir }}/browbeat dest={{ ansible_env.HOME }}/ use_ssh_args=yes"
- name: Set hosts gen as executable
shell: "chmod +x {{ ansible_e... | 8 | 0.173913 | 1 | 7 |
e040996646b1ef21e95dc7edd6a124aadab3e08f | zsh/tag.zsh | zsh/tag.zsh | if (( $+commands[tag] )); then
tag() { command tag "$@" && source /tmp/tag_aliases_$USER 2>/dev/null }
alias ag="tag rg"
alias rg="tag rg"
else
alias ag=rg
fi
| if (( $+commands[tag] )); then
tag() { command tag "$@" && source /tmp/tag_aliases_$USER 2>/dev/null }
alias ag="echo 'use s'"
alias s="tag rg"
alias rg="echo 'use s'"
else
alias ag=rg
fi
| Switch to s alias for searching | Switch to s alias for searching
I got tired of change my muscle memory as I changed tools
| Shell | mit | keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles | shell | ## Code Before:
if (( $+commands[tag] )); then
tag() { command tag "$@" && source /tmp/tag_aliases_$USER 2>/dev/null }
alias ag="tag rg"
alias rg="tag rg"
else
alias ag=rg
fi
## Instruction:
Switch to s alias for searching
I got tired of change my muscle memory as I changed tools
## Code After:
if (( $+comma... | if (( $+commands[tag] )); then
tag() { command tag "$@" && source /tmp/tag_aliases_$USER 2>/dev/null }
+ alias ag="echo 'use s'"
- alias ag="tag rg"
? ^^
+ alias s="tag rg"
? ^
- alias rg="tag rg"
+ alias rg="echo 'use s'"
else
alias ag=rg
fi | 5 | 0.714286 | 3 | 2 |
a374e8f532d094abbfe757bed0749f2016b90079 | index.html | index.html | <html>
<head>
<title>Pony Express</title>
<script src="node_modules/phaser/build/phaser.js" defer></script>
<script src="assets/scripts/stages/overworld.js" defer></script>
<script src="assets/scripts/app.js" defer></script>
<link href="assets/styles/app.css" rel="st... | <html>
<head>
<title>Pony Express</title>
<script src="node_modules/phaser/build/phaser.js" defer></script>
<script src="node_modules/knuth-shuffle/index.js"></script>
<script src="node_modules/graphlib/dist/graphlib.min.js"></script>
<script src="assets/scripts/acto... | Add necessary references in page | Add necessary references in page
| HTML | mit | makerslocal/LudumDare36,makerslocal/LudumDare36 | html | ## Code Before:
<html>
<head>
<title>Pony Express</title>
<script src="node_modules/phaser/build/phaser.js" defer></script>
<script src="assets/scripts/stages/overworld.js" defer></script>
<script src="assets/scripts/app.js" defer></script>
<link href="assets/styles/... | <html>
<head>
<title>Pony Express</title>
<script src="node_modules/phaser/build/phaser.js" defer></script>
+ <script src="node_modules/knuth-shuffle/index.js"></script>
+ <script src="node_modules/graphlib/dist/graphlib.min.js"></script>
+
+ <script src="ass... | 6 | 0.5 | 6 | 0 |
0bd17f9ffc647f61203f9cb28321142527ac85e2 | config/version.sh | config/version.sh |
set -e
version=${1?}
host=`uname -n`
if test -d "$srcdir/.git"; then
git=" `git describe --long --dirty`"
else
git=
fi
date="`TZ=GMT0 date +'%Y-%m-%d %T'` +0000"
cat <<E
char *version_str = "nmh-$version$git built $date on $host";
char *version_num = "nmh-$version";
char *user_agent = "nmh/$version";
E
|
set -e
version=${1?}
host=`uname -n`
if test -d "$srcdir/.git"; then
git=" `git -C $srcdir describe --long --dirty`"
else
git=
fi
date="`TZ=GMT0 date +'%Y-%m-%d %T'` +0000"
cat <<E
char *version_str = "nmh-$version$git built $date on $host";
char *version_num = "nmh-$version";
char *user_agent = "nmh/$versio... | Make sure we are in the correct directory when we do "git describe". | Make sure we are in the correct directory when we do "git describe".
| Shell | bsd-3-clause | mcr/nmh,mcr/nmh | shell | ## Code Before:
set -e
version=${1?}
host=`uname -n`
if test -d "$srcdir/.git"; then
git=" `git describe --long --dirty`"
else
git=
fi
date="`TZ=GMT0 date +'%Y-%m-%d %T'` +0000"
cat <<E
char *version_str = "nmh-$version$git built $date on $host";
char *version_num = "nmh-$version";
char *user_agent = "nmh/$v... |
set -e
version=${1?}
host=`uname -n`
if test -d "$srcdir/.git"; then
- git=" `git describe --long --dirty`"
+ git=" `git -C $srcdir describe --long --dirty`"
? +++++++++++
else
git=
fi
date="`TZ=GMT0 date +'%Y-%m-%d %T'` +0000"
cat <<E
char *version_str = "nmh-$ve... | 2 | 0.117647 | 1 | 1 |
2872bbcf5bf31f89bf8e3a193990a3644697da95 | app/server/word-list.js | app/server/word-list.js | var fs = require('fs'),
_ = require('lodash'),
gameConstants = require('../common/game-constants');
var WordList = function WordList(maxLength) {
// Should be stored in a database instead.
this.colors = ['blue', 'darkBlue', 'purple', 'green', 'yellow', 'red'];
var that = this;
/... | var fs = require('fs'),
_ = require('lodash'),
gameConstants = require('../common/game-constants');
var WordList = function WordList(maxLength) {
// Should be stored in a database instead.
this.colors = ['blue', 'purple', 'green', 'yellow', 'red'];
var that = this;
//#GHETTOHACK... | Disable dark blue from being chosen by the worldist | Disable dark blue from being chosen by the worldist
| JavaScript | mit | ekmartin/TyppoJS,ekmartin/TyppoJS | javascript | ## Code Before:
var fs = require('fs'),
_ = require('lodash'),
gameConstants = require('../common/game-constants');
var WordList = function WordList(maxLength) {
// Should be stored in a database instead.
this.colors = ['blue', 'darkBlue', 'purple', 'green', 'yellow', 'red'];
var ... | var fs = require('fs'),
_ = require('lodash'),
gameConstants = require('../common/game-constants');
var WordList = function WordList(maxLength) {
// Should be stored in a database instead.
- this.colors = ['blue', 'darkBlue', 'purple', 'green', 'yellow', 'red'];
? ... | 2 | 0.060606 | 1 | 1 |
5de12ffb71186d0ec0fdba4972769dc832330cb7 | app/controllers/guest_users_controller.rb | app/controllers/guest_users_controller.rb | class GuestUsersController < ApplicationController
def index
@guest_users = GuestUser.all
end
def new
@guest_user = GuestUser.new
end
def create
end
def partial
private
def guest_user_params
params.require(:guest_user).permit(:name, :email)
end
end
| class GuestUsersController < ApplicationController
def index
@guest_users = GuestUser.all
end
def new
@guest_user = GuestUser.new
end
def create
@guest_user = GuestUser.new(guest_user_params)
if @guest_user.save
GuestsCleanupJob.set(wait: 10.seconds).perform_later(@guest_user)
r... | Update guest users create action | Update guest users create action | Ruby | mit | gouf/activejob_demo,gouf/activejob_demo,gouf/activejob_demo,gouf/activejob_demo | ruby | ## Code Before:
class GuestUsersController < ApplicationController
def index
@guest_users = GuestUser.all
end
def new
@guest_user = GuestUser.new
end
def create
end
def partial
private
def guest_user_params
params.require(:guest_user).permit(:name, :email)
end
end
## Instruction:
Up... | class GuestUsersController < ApplicationController
def index
@guest_users = GuestUser.all
end
def new
@guest_user = GuestUser.new
end
def create
+ @guest_user = GuestUser.new(guest_user_params)
+
+ if @guest_user.save
+ GuestsCleanupJob.set(wait: 10.seconds).perfor... | 10 | 0.526316 | 10 | 0 |
49b2be5446b1f20133bf30c4f17ba65f5eb9212e | README.md | README.md | [](http://issuestats.com/github/XomniCloud/xomni-sdk-dotnet)
[](http://badge.fury.io/gh/XomniCloud%2Fxomni-sdk-dotnet)
](http://issuestats.com/github/XomniCloud/xomni-sdk-dotnet)
[](http://badge.fury.io/gh/XomniCloud%2Fxomni-sdk-dotnet)
](http://issuestats.com/github/XomniCloud/xomni-sdk-dotnet)
[](http://badge.fury.io/gh/XomniCloud%2Fxomni-sdk-dotnet)
](http://issuestats.com/github/XomniCloud/xomni-sdk-dotnet)
[](http://badge.fury.io/gh/XomniCloud%2Fxomni-sdk-dotnet)
();
} EXPRESS_TEST_DESCRIPTOR;
#define REGISTER_EXPRESS_TEST(descr) static void _register_express_test(){ \
... | /**
* \file express_tests.h
* \date Jul 4, 2009
* \author anton
* \details
*/
#ifndef EXPRESS_TESTS_H_
#define EXPRESS_TESTS_H_
typedef struct _EXPRESS_TEST_DESCRIPTOR {
const char *name;
int (*exec)();
} EXPRESS_TEST_DESCRIPTOR;
/*
#define REGISTER_EXPRESS_TEST(descr) static void _register_express_test(){ \
... | Change declaration express test macros | Change declaration express test macros | C | bsd-2-clause | vrxfile/embox-trik,vrxfile/embox-trik,vrxfile/embox-trik,Kefir0192/embox,Kefir0192/embox,embox/embox,Kakadu/embox,vrxfile/embox-trik,abusalimov/embox,Kefir0192/embox,mike2390/embox,mike2390/embox,gzoom13/embox,Kakadu/embox,gzoom13/embox,Kakadu/embox,Kakadu/embox,Kakadu/embox,abusalimov/embox,mike2390/embox,abusalimov/e... | c | ## Code Before:
/**
* \file express_tests.h
* \date Jul 4, 2009
* \author anton
* \details
*/
#ifndef EXPRESS_TESTS_H_
#define EXPRESS_TESTS_H_
typedef struct _EXPRESS_TEST_DESCRIPTOR {
const char *name;
int (*exec)();
} EXPRESS_TEST_DESCRIPTOR;
#define REGISTER_EXPRESS_TEST(descr) static void _register_expres... | /**
* \file express_tests.h
* \date Jul 4, 2009
* \author anton
* \details
*/
#ifndef EXPRESS_TESTS_H_
#define EXPRESS_TESTS_H_
typedef struct _EXPRESS_TEST_DESCRIPTOR {
const char *name;
int (*exec)();
} EXPRESS_TEST_DESCRIPTOR;
+ /*
#define REGISTER_EXPRESS_TEST(descr) static vo... | 7 | 0.233333 | 7 | 0 |
bb09481a8356bb0a74c3a63cf615b6bb3d825a66 | README.md | README.md |
My blog powered by [Ghost](https://ghost.org/)
## Development
To start server use
```
npm start
```
|
My blog powered by [Ghost](https://ghost.org/)
## Development
To start server use
```
npm start
```
To rebuild assets user
```
npm run build
```
| Add info about rebuilding assets | Add info about rebuilding assets | Markdown | mit | ertrzyiks/blog.ertrzyiks.pl,ertrzyiks/blog.ertrzyiks.pl,ertrzyiks/blog.ertrzyiks.pl | markdown | ## Code Before:
My blog powered by [Ghost](https://ghost.org/)
## Development
To start server use
```
npm start
```
## Instruction:
Add info about rebuilding assets
## Code After:
My blog powered by [Ghost](https://ghost.org/)
## Development
To start server use
```
npm start
```
To rebuild assets user
```
npm... |
My blog powered by [Ghost](https://ghost.org/)
## Development
To start server use
```
npm start
```
+
+ To rebuild assets user
+ ```
+ npm run build
+ ``` | 5 | 0.555556 | 5 | 0 |
38e0cbf514352521e442b82aae785f91f839b215 | src/lib.rs | src/lib.rs | // The shift characters are stored as nulls, as the conversion code doesn't
// care what value they have. WRU? maps to ASCII ENQ (\x05), I think.
const Ita2Letters = b"\0E\nA SIU\rDRJNFCKTZLWHYPQOBG\0MXV\0";
const Ita2Figures = b"\03\n- \x0787\r\x054',!:(5\")2#6019?&\0./;\0"
#[test]
fn it_works() {
}
| // The shift characters are stored as nulls, as the conversion code doesn't
// care what value they have. WRU? maps to ASCII ENQ (\x05), I think.
const ITA2: (&'static [u8], &'static [u8]) =
(b"\0E\nA SIU\rDRJNFCKTZLWHYPQOBG\0MXV\0",
b"\03\n- \x0787\r\x054',!:(5\")2#6019?&\0./;\0");
#[test]
... | Stop and think and make it compile first | Stop and think and make it compile first
| Rust | mit | mcpherrinm/baudot | rust | ## Code Before:
// The shift characters are stored as nulls, as the conversion code doesn't
// care what value they have. WRU? maps to ASCII ENQ (\x05), I think.
const Ita2Letters = b"\0E\nA SIU\rDRJNFCKTZLWHYPQOBG\0MXV\0";
const Ita2Figures = b"\03\n- \x0787\r\x054',!:(5\")2#6019?&\0./;\0"
#[test]
fn it_works() {
}... | // The shift characters are stored as nulls, as the conversion code doesn't
// care what value they have. WRU? maps to ASCII ENQ (\x05), I think.
- const Ita2Letters = b"\0E\nA SIU\rDRJNFCKTZLWHYPQOBG\0MXV\0";
+ const ITA2: (&'static [u8], &'static [u8]) =
+ (b"\0E\nA SIU\rDRJNFCKTZLWHYPQOBG\0MXV\0",
-... | 5 | 0.555556 | 3 | 2 |
a09a8916044a0231caeff99bfe92994b14ad60fb | project/plugins.sbt | project/plugins.sbt | // The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += Resolver.url("fix-sbt-plugin-releases", url("http://dl.bintray.com/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.pl... | // The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += Resolver.url("fix-sbt-plugin-releases", url("http://dl.bintray.com/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.pl... | Add SBT plugin for generating IntelliJ project files | Add SBT plugin for generating IntelliJ project files
| Scala | apache-2.0 | alxdarksage/BridgePF,alxdarksage/BridgePF,Sage-Bionetworks/BridgePF,DwayneJengSage/BridgePF,DwayneJengSage/BridgePF,DwayneJengSage/BridgePF,Sage-Bionetworks/BridgePF,Sage-Bionetworks/BridgePF,alxdarksage/BridgePF | scala | ## Code Before:
// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += Resolver.url("fix-sbt-plugin-releases", url("http://dl.bintray.com/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
// Use the Play sbt plugin for Play projects
addSbtPlugin(... | // The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += Resolver.url("fix-sbt-plugin-releases", url("http://dl.bintray.com/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
// Use the Play sbt plugin for Play projects
addSbtPlugin("com... | 3 | 0.333333 | 3 | 0 |
c05ebc5bc932a56a1fe52e0d621d83ba6be97607 | app/views/layouts/_toolbar.html.slim | app/views/layouts/_toolbar.html.slim | - if current_user
.row
dl.sub-nav
dd
=link_to 'DWP check', new_dwp_checks_path
=link_to t('descriptors.r2_calculator').to_s, calculator_income_path
-if current_user.admin?
dd.right
=link_to 'Users', users_path
dd.right
=link_to 'Offices', offices_pat... | - if current_user
.row
dl.sub-nav
dd#dwp-check
=link_to 'DWP check', new_dwp_checks_path
dd#income-calc
=link_to t('descriptors.r2_calculator').to_s, calculator_income_path
-if current_user.admin?
dd.right
=link_to 'Users', users_path
dd.right
... | Add toolbar link for income calculator | Add toolbar link for income calculator
| Slim | mit | ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp,ministryofjustice/fr-staffapp | slim | ## Code Before:
- if current_user
.row
dl.sub-nav
dd
=link_to 'DWP check', new_dwp_checks_path
=link_to t('descriptors.r2_calculator').to_s, calculator_income_path
-if current_user.admin?
dd.right
=link_to 'Users', users_path
dd.right
=link_to 'Offic... | - if current_user
.row
dl.sub-nav
- dd
+ dd#dwp-check
=link_to 'DWP check', new_dwp_checks_path
+ dd#income-calc
=link_to t('descriptors.r2_calculator').to_s, calculator_income_path
-if current_user.admin?
dd.right
=link_to 'Users', users_p... | 3 | 0.272727 | 2 | 1 |
def7e9e68f2f733f2e607cc6c827ffdb6f2e9ddb | topics/templates/topics/show_topic.html | topics/templates/topics/show_topic.html | {% extends "layouts/default.html" %}
{% block extra_page_classes %}topic-view {% endblock %}
{% block page_title %}: {{ active_topic.name }}{% endblock %}
{% block content %}
{% for resource in resources %}
{% if resource.section %}
<div class="section_separator"></div>
<h1>{{ resour... | {% extends "layouts/default.html" %}
{% block extra_page_classes %}topic-view {% endblock %}
{% block page_title %}{% if active_topic.name %}: {{ active_topic.name }}{% endif %}{% endblock %}
{% block content %}
{% for resource in resources %}
{% if resource.section %}
<div class="section_separa... | Hide page title on root page | Hide page title on root page
| HTML | mit | andychase/codebook,andychase/codebook | html | ## Code Before:
{% extends "layouts/default.html" %}
{% block extra_page_classes %}topic-view {% endblock %}
{% block page_title %}: {{ active_topic.name }}{% endblock %}
{% block content %}
{% for resource in resources %}
{% if resource.section %}
<div class="section_separator"></div>
... | {% extends "layouts/default.html" %}
{% block extra_page_classes %}topic-view {% endblock %}
- {% block page_title %}: {{ active_topic.name }}{% endblock %}
+ {% block page_title %}{% if active_topic.name %}: {{ active_topic.name }}{% endif %}{% endblock %}
? ++++++++++++++++++++++++++ ... | 2 | 0.064516 | 1 | 1 |
3eba8d104dea9a21650e0dcb52ec8d00d42fe4b0 | plugin.js | plugin.js | 'use strict';
// Make our own plugin main interface an event emitter.
// This can be used to communicate and subscribe to others plugins events.
import { EventEmitter } from 'events';
/**
* Plugin Interface
* @class Plugin
*/
export default class extends EventEmitter {
/**
* Construct the plugin.
*/
con... | 'use strict';
// Make our own plugin main interface an event emitter.
// This can be used to communicate and subscribe to others plugins events.
import { EventEmitter } from 'events';
/**
* Plugin Interface
* @class Plugin
*/
export default class extends EventEmitter {
/**
* Construct the plugin.
*/
con... | Prepare for players and maps update of core. | Prepare for players and maps update of core.
| JavaScript | isc | ManiaJS/plugins,ManiaJS/plugins,ManiaJS/plugins | javascript | ## Code Before:
'use strict';
// Make our own plugin main interface an event emitter.
// This can be used to communicate and subscribe to others plugins events.
import { EventEmitter } from 'events';
/**
* Plugin Interface
* @class Plugin
*/
export default class extends EventEmitter {
/**
* Construct the plu... | 'use strict';
// Make our own plugin main interface an event emitter.
// This can be used to communicate and subscribe to others plugins events.
import { EventEmitter } from 'events';
/**
* Plugin Interface
* @class Plugin
*/
export default class extends EventEmitter {
/**
* Const... | 3 | 0.061224 | 2 | 1 |
69ed6ed37c3e3e8284199fe0f44a4a1b8bdf571e | src/graphql/models/Hyperlink.js | src/graphql/models/Hyperlink.js | import { GraphQLObjectType, GraphQLString } from 'graphql';
function resolveUrl(field) {
return async function({ url }, args, { loaders }) {
const urlEntry = await loaders.urlLoader.load(url);
return urlEntry[field];
};
}
const Hyperlink = new GraphQLObjectType({
name: 'Hyperlink',
description: 'Data ... | import { GraphQLObjectType, GraphQLString } from 'graphql';
function resolveUrl(field) {
return async function({ url }, args, { loaders }) {
const urlEntry = await loaders.urlLoader.load(url);
return urlEntry[field];
};
}
const Hyperlink = new GraphQLObjectType({
name: 'Hyperlink',
description: 'Data ... | Add error field to reveal fetch error | Add error field to reveal fetch error
| JavaScript | mit | MrOrz/rumors-api,MrOrz/rumors-api,cofacts/rumors-api | javascript | ## Code Before:
import { GraphQLObjectType, GraphQLString } from 'graphql';
function resolveUrl(field) {
return async function({ url }, args, { loaders }) {
const urlEntry = await loaders.urlLoader.load(url);
return urlEntry[field];
};
}
const Hyperlink = new GraphQLObjectType({
name: 'Hyperlink',
des... | import { GraphQLObjectType, GraphQLString } from 'graphql';
function resolveUrl(field) {
return async function({ url }, args, { loaders }) {
const urlEntry = await loaders.urlLoader.load(url);
return urlEntry[field];
};
}
const Hyperlink = new GraphQLObjectType({
name: 'Hyperlink',... | 1 | 0.043478 | 1 | 0 |
8bf1552562311517082f7257b194b8b90acf7d03 | pubspec.yaml | pubspec.yaml | name: pixel_canvas
version: 1.0.2-dev
description: A canvas custom element to render/edit pixels
author: Keiichiro Ui <keiichiro.ui@gmail.com>
homepage: https://github.com/kui/pixel_canvas
dependencies:
polymer: '>=0.12.0 <0.13.0'
dev_dependencies:
ghpages_generator: '>=0.2.0 <0.3.0'
path: '>=1.2.0 <1.3.0'
unit... | name: pixel_canvas
version: 1.0.2-dev
author: Keiichiro Ui <keiichiro.ui@gmail.com>
description: A canvas custom element to render/edit pixels
homepage: https://github.com/kui/pixel_canvas
environment:
sdk: '>=1.6.0'
dependencies:
polymer: '>=0.13.0 <0.14.0'
dev_dependencies:
ghpages_generator: '>=0.2.0 <0.3.0'
... | Update to match polymer 0.13.0 | Update to match polymer 0.13.0
| YAML | mit | kui/pixel_canvas,kui/pixel_canvas | yaml | ## Code Before:
name: pixel_canvas
version: 1.0.2-dev
description: A canvas custom element to render/edit pixels
author: Keiichiro Ui <keiichiro.ui@gmail.com>
homepage: https://github.com/kui/pixel_canvas
dependencies:
polymer: '>=0.12.0 <0.13.0'
dev_dependencies:
ghpages_generator: '>=0.2.0 <0.3.0'
path: '>=1.2.... | name: pixel_canvas
version: 1.0.2-dev
+ author: Keiichiro Ui <keiichiro.ui@gmail.com>
description: A canvas custom element to render/edit pixels
- author: Keiichiro Ui <keiichiro.ui@gmail.com>
homepage: https://github.com/kui/pixel_canvas
+ environment:
+ sdk: '>=1.6.0'
dependencies:
- polymer: '>=0.12.0 ... | 6 | 0.4 | 4 | 2 |
43f640a7b16a61c9d5003b2ceea4d8b6c7bceafe | src/main/kotlin/com/github/libkt/LibKt.kt | src/main/kotlin/com/github/libkt/LibKt.kt | package com.github.libkt
import org.bstats.Metrics
import org.bukkit.plugin.java.JavaPlugin
/**
* The main plugin class for libkt.
*/
class LibKt : JavaPlugin() {
/**
* Returns the build number of the libkt plugin
*
* @since b1
*/
val buildNumber: Int by lazy {
try {
... | package com.github.libkt
import org.bstats.Metrics
import org.bukkit.plugin.java.JavaPlugin
/**
* The main plugin class for libkt.
*/
class LibKt : JavaPlugin() {
/**
* Returns the build number of the libkt plugin
*
* @since b1
*/
val buildNumber: Int by lazy {
try {
... | Add warning when build number not present. | Add warning when build number not present.
| Kotlin | mit | libkt/libkt | kotlin | ## Code Before:
package com.github.libkt
import org.bstats.Metrics
import org.bukkit.plugin.java.JavaPlugin
/**
* The main plugin class for libkt.
*/
class LibKt : JavaPlugin() {
/**
* Returns the build number of the libkt plugin
*
* @since b1
*/
val buildNumber: Int by lazy {
t... | package com.github.libkt
import org.bstats.Metrics
import org.bukkit.plugin.java.JavaPlugin
/**
* The main plugin class for libkt.
*/
class LibKt : JavaPlugin() {
/**
* Returns the build number of the libkt plugin
*
* @since b1
*/
val buildNumber: Int by ... | 1 | 0.027778 | 1 | 0 |
d9d11489f22470c5c8d69cc54dcea9ad4c741d11 | Library/Foundation/NSBundle+FileResource.swift | Library/Foundation/NSBundle+FileResource.swift | //
// NSBundle+FileResource.swift
// R.swift.Library
//
// Created by Mathijs Kadijk on 10-01-16.
// Copyright © 2016 Mathijs Kadijk. All rights reserved.
//
import Foundation
public extension NSBundle {
/**
Returns the file URL for the given resource (R.file.*).
- parameter resource: The resource to get... | //
// NSBundle+FileResource.swift
// R.swift.Library
//
// Created by Mathijs Kadijk on 10-01-16.
// Copyright © 2016 Mathijs Kadijk. All rights reserved.
//
import Foundation
public extension NSBundle {
/**
Returns the file URL for the given resource (R.file.*).
- parameter resource: The resource to get... | Make URL-/pathForResource lookup global and local | Make URL-/pathForResource lookup global and local
Docs state that explicit `nil` for localization will not look up resources in the localization folders. That is not what we want, so remove them here and use the overload that looks in all places. :)
| Swift | mit | mac-cain13/R.swift.Library,mac-cain13/R.swift.Library,uny/R.swift.Library,uny/R.swift.Library | swift | ## Code Before:
//
// NSBundle+FileResource.swift
// R.swift.Library
//
// Created by Mathijs Kadijk on 10-01-16.
// Copyright © 2016 Mathijs Kadijk. All rights reserved.
//
import Foundation
public extension NSBundle {
/**
Returns the file URL for the given resource (R.file.*).
- parameter resource: The... | //
// NSBundle+FileResource.swift
// R.swift.Library
//
// Created by Mathijs Kadijk on 10-01-16.
// Copyright © 2016 Mathijs Kadijk. All rights reserved.
//
import Foundation
public extension NSBundle {
/**
Returns the file URL for the given resource (R.file.*).
- parameter... | 4 | 0.121212 | 2 | 2 |
2adc6a189b35ddafdfb73ea42f243f29adf08d4b | .travis.yml | .travis.yml | sudo: required
language: go
go:
- 1.7.1
services:
- docker
install:
- nvm install 6.1
- cd client && npm install && cd -
- go get ./...
- go get github.com/opencontainers/runc/libcontainer/user
script:
- ./build-docker.sh
after_success:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- do... | sudo: required
language: go
go:
- 1.7.1
services:
- docker
env:
- GOOS=linux
- GOARCH=amd64
install:
- nvm install 6.1
- cd client && npm install && cd -
- go get ./...
- go get github.com/opencontainers/runc/libcontainer/user
script:
- ./build-docker.sh
after_success:
- docker login -u $DOCK... | Add explicit os/arch settings for go in Travis | fix: Add explicit os/arch settings for go in Travis
| YAML | mit | jsalonen/swarmist,jsalonen/swarmist | yaml | ## Code Before:
sudo: required
language: go
go:
- 1.7.1
services:
- docker
install:
- nvm install 6.1
- cd client && npm install && cd -
- go get ./...
- go get github.com/opencontainers/runc/libcontainer/user
script:
- ./build-docker.sh
after_success:
- docker login -u $DOCKER_USERNAME -p $DOCKER... | sudo: required
language: go
go:
- 1.7.1
services:
- docker
+
+ env:
+ - GOOS=linux
+ - GOARCH=amd64
install:
- nvm install 6.1
- cd client && npm install && cd -
- go get ./...
- go get github.com/opencontainers/runc/libcontainer/user
script:
- ./build-docker.... | 4 | 0.181818 | 4 | 0 |
8e9087fef8dfc20b67c5d53489f100f38210b80d | alexa/utterances.txt | alexa/utterances.txt | ForMysteries pray the {mysteries} mysteries
ForDay pray the rosary for {day}
ForDay {day}
ForDay pray rosary for {day}
ForMysteries pray the {mysteries} mysteries of the Rosary
ForMysteries {mysteries}
ForMysteries {mysteries} mysteries
Rosary pray rosary
Rosary pray the rosary
Rosary rosary
DivineMercy divine mercy
Di... | ForMysteries pray the {mysteries} mysteries
ForDay pray the rosary for {day}
ForDay {day}
ForDay pray rosary for {day}
ForMysteries pray the {mysteries} mysteries of the Rosary
ForMysteries {mysteries}
ForMysteries {mysteries} mysteries
Rosary pray rosary
Rosary pray the rosary
Rosary rosary
DivineMercy divine mercy
Di... | Add more mappings to "Help" to make it the default for bad input | Add more mappings to "Help" to make it the default for bad input
| Text | mit | JohnMcG/AlexaRosary,JohnMcG/AlexaRosary | text | ## Code Before:
ForMysteries pray the {mysteries} mysteries
ForDay pray the rosary for {day}
ForDay {day}
ForDay pray rosary for {day}
ForMysteries pray the {mysteries} mysteries of the Rosary
ForMysteries {mysteries}
ForMysteries {mysteries} mysteries
Rosary pray rosary
Rosary pray the rosary
Rosary rosary
DivineMercy... | ForMysteries pray the {mysteries} mysteries
ForDay pray the rosary for {day}
ForDay {day}
ForDay pray rosary for {day}
ForMysteries pray the {mysteries} mysteries of the Rosary
ForMysteries {mysteries}
ForMysteries {mysteries} mysteries
Rosary pray rosary
Rosary pray the rosary
Rosary rosary
Divin... | 19 | 1 | 19 | 0 |
1e4c8f27bec53eb024ab9a88973d92f237cbea88 | .travis.yml | .travis.yml | language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
install:
- pip install .
script: py.test
| language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
install:
- pip install .
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq svn
script: py.test
sudo: required | Use py.test on Travis, as our old method failed | Use py.test on Travis, as our old method failed
Signed-off-by: Jord Nijhuis
| YAML | mit | Sidesplitter/SVN-Ignore | yaml | ## Code Before:
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
install:
- pip install .
script: py.test
## Instruction:
Use py.test on Travis, as our old method failed
Signed-off-by: Jord Nijhuis
## Code After:
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
... | language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
install:
- pip install .
+ before_install:
+ - sudo apt-get update -qq
+ - sudo apt-get install -qq svn
script: py.test
+ sudo: required | 4 | 0.363636 | 4 | 0 |
548fb019801028150daf64847ab841ac526f7424 | Casks/switchresx.rb | Casks/switchresx.rb | class Switchresx < Cask
url 'http://www.madrau.com/data/switchresx/SwitchResX4.zip'
homepage 'http://www.madrau.com'
version '4.x'
sha256 :no_check
prefpane 'SwitchResX.prefPane'
caskroom_only true # hack to activate uninstall stanza
uninstall :quit => [
'fr.madrau.switchresx.app',
'fr.madrau.... | class Switchresx < Cask
url 'http://www.madrau.com/data/switchresx/SwitchResX4.zip'
homepage 'http://www.madrau.com'
version '4.4'
sha256 "39c36694a1955f3f97bdb3bcb7591be06b601b9557d539abd05b039bcfb8b19f"
prefpane 'SwitchResX.prefPane'
caskroom_only true # hack to activate uninstall stanza
uninstall :quit... | Fix SwitchResX with a version and sha256 to pass test | Fix SwitchResX with a version and sha256 to pass test
| Ruby | bsd-2-clause | KosherBacon/homebrew-cask,L2G/homebrew-cask,kkdd/homebrew-cask,pgr0ss/homebrew-cask,aki77/homebrew-cask,jalaziz/homebrew-cask,Philosoft/homebrew-cask,gerrymiller/homebrew-cask,AdamCmiel/homebrew-cask,esebastian/homebrew-cask,zhuzihhhh/homebrew-cask,gord1anknot/homebrew-cask,mattfelsen/homebrew-cask,cfillion/homebrew-ca... | ruby | ## Code Before:
class Switchresx < Cask
url 'http://www.madrau.com/data/switchresx/SwitchResX4.zip'
homepage 'http://www.madrau.com'
version '4.x'
sha256 :no_check
prefpane 'SwitchResX.prefPane'
caskroom_only true # hack to activate uninstall stanza
uninstall :quit => [
'fr.madrau.switchresx.app',
... | class Switchresx < Cask
url 'http://www.madrau.com/data/switchresx/SwitchResX4.zip'
homepage 'http://www.madrau.com'
- version '4.x'
? ^
+ version '4.4'
? ^
- sha256 :no_check
+ sha256 "39c36694a1955f3f97bdb3bcb7591be06b601b9557d539abd05b039bcfb8b19f"
prefpane 'SwitchRe... | 4 | 0.2 | 2 | 2 |
8036eeae8a6c42e698c664d03303182e21e296e8 | frontend/.storybook/preview-head.html | frontend/.storybook/preview-head.html | <link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Rubik:500,700" rel="stylesheet">
| <link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Rubik:500,700" rel="stylesheet">
<link href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet">
| Add material components css to storybook | Add material components css to storybook
| HTML | mit | patrick91/pycon,patrick91/pycon | html | ## Code Before:
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Rubik:500,700" rel="stylesheet">
## Instruction:
Add material components css to storybook
## Code After:
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Rubik:500,700" rel="stylesheet">
<link href="https://... | <link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Rubik:500,700" rel="stylesheet">
+ <link href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet"> | 1 | 1 | 1 | 0 |
dcb8254b8b40783dcfa6a542cc15c7286755b2ae | config/initializers/secret_token.rb | config/initializers/secret_token.rb | SoprPlatform::Application.config.secret_key_base = 'e8e6a874de38ce84f1946c25d275b3c2f1ad8476622fdac853bc3056bd14964b7d030cc71339030b030342d7de0334e8087853f91789564e0019857092bae88f'
| SoprPlatform::Application.config.secret_key_base = ENV['SECRET_TOKEN'] || 'e8e6a874de38ce84f1946c25d275b3c2f1ad8476622fdac853bc3056bd14964b7d030cc71339030b030342d7de0334e8087853f91789564e0019857092bae88f'
| Change to read secret_key from env. variable or fallback to current key | Change to read secret_key from env. variable or fallback to current key
| Ruby | mit | SoPR/sopr-platform,SoPR/sopr-platform | ruby | ## Code Before:
SoprPlatform::Application.config.secret_key_base = 'e8e6a874de38ce84f1946c25d275b3c2f1ad8476622fdac853bc3056bd14964b7d030cc71339030b030342d7de0334e8087853f91789564e0019857092bae88f'
## Instruction:
Change to read secret_key from env. variable or fallback to current key
## Code After:
SoprPlatform::App... | - SoprPlatform::Application.config.secret_key_base = 'e8e6a874de38ce84f1946c25d275b3c2f1ad8476622fdac853bc3056bd14964b7d030cc71339030b030342d7de0334e8087853f91789564e0019857092bae88f'
+ SoprPlatform::Application.config.secret_key_base = ENV['SECRET_TOKEN'] || 'e8e6a874de38ce84f1946c25d275b3c2f1ad8476622fdac853bc3056bd1... | 2 | 2 | 1 | 1 |
b7917112def0a4eceb087576b4ccd2d414f9d004 | test/w3c/index.js | test/w3c/index.js | "use strict";
var w3cTest = require("./w3ctest")(exports);
w3cTest("dom/nodes/CharacterData-appendData.html");
w3cTest("dom/nodes/CharacterData-deleteData.html");
w3cTest("dom/nodes/CharacterData-insertData.html");
w3cTest("dom/nodes/CharacterData-replaceData.html");
w3cTest("dom/nodes/DOMImplementation-createDocume... | "use strict";
var w3cTest = require("./w3ctest")(exports);
w3cTest("dom/nodes/CharacterData-appendData.html");
w3cTest("dom/nodes/CharacterData-deleteData.html");
w3cTest("dom/nodes/CharacterData-insertData.html");
w3cTest("dom/nodes/CharacterData-replaceData.html");
w3cTest("dom/nodes/DOMImplementation-createDocume... | Remove failing w3c test due to us not supporting data URIs | Remove failing w3c test due to us not supporting data URIs
| JavaScript | mit | vestineo/jsdom,mbostock/jsdom,susaing/jsdom,Sebmaster/jsdom,Ye-Yong-Chi/jsdom,evanlucas/jsdom,susaing/jsdom,kittens/jsdom,cpojer/jsdom,kesla/jsdom,janusnic/jsdom,Sebmaster/jsdom,Ye-Yong-Chi/jsdom,szarouski/jsdom,snuggs/jsdom,Ye-Yong-Chi/jsdom,AshCoolman/jsdom,szarouski/jsdom,aduyng/jsdom,nicolashenry/jsdom,fiftin/jsdom... | javascript | ## Code Before:
"use strict";
var w3cTest = require("./w3ctest")(exports);
w3cTest("dom/nodes/CharacterData-appendData.html");
w3cTest("dom/nodes/CharacterData-deleteData.html");
w3cTest("dom/nodes/CharacterData-insertData.html");
w3cTest("dom/nodes/CharacterData-replaceData.html");
w3cTest("dom/nodes/DOMImplementat... | "use strict";
var w3cTest = require("./w3ctest")(exports);
w3cTest("dom/nodes/CharacterData-appendData.html");
w3cTest("dom/nodes/CharacterData-deleteData.html");
w3cTest("dom/nodes/CharacterData-insertData.html");
w3cTest("dom/nodes/CharacterData-replaceData.html");
w3cTest("dom/nodes/DOMImplement... | 1 | 0.045455 | 0 | 1 |
eb31c6c85f563bfbde8f7c3f162db5bac494c368 | README.md | README.md | 
Atom is a hackable text editor for the 21st century.
Atom is open source and built on top of [atom-shell](http://github.com/atom/atom-shell).
Atom is designed to be customizable, but also usable without needing... | 
Atom is a hackable text editor for the 21st century.
Atom is open source and built on top of [atom-shell](http://github.com/atom/atom-shell).
Atom is designed to be customizable, but also usable without needing... | Add OS X build requirements | Add OS X build requirements | Markdown | mit | MjAbuz/atom,jacekkopecky/atom,champagnez/atom,RuiDGoncalves/atom,pengshp/atom,jeremyramin/atom,dannyflax/atom,hellendag/atom,KENJU/atom,jtrose2/atom,abe33/atom,decaffeinate-examples/atom,fang-yufeng/atom,targeter21/atom,YunchengLiao/atom,anuwat121/atom,batjko/atom,oggy/atom,RobinTec/atom,fang-yufeng/atom,acontreras89/a... | markdown | ## Code Before:

Atom is a hackable text editor for the 21st century.
Atom is open source and built on top of [atom-shell](http://github.com/atom/atom-shell).
Atom is designed to be customizable, but also usable... | 
Atom is a hackable text editor for the 21st century.
Atom is open source and built on top of [atom-shell](http://github.com/atom/atom-shell).
Atom is designed to be customizable, but also usable w... | 6 | 0.214286 | 6 | 0 |
97cad04065ca86a8d35fbd2cf376b0b85b8453da | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function(grunt) {
// Load tasks
grunt.loadNpmTasks('grunt-wiredep');
grunt.loadNpmTasks('grunt-jslint');
grunt.loadNpmTasks('grunt-jscoverage');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-coveralls');
grunt.initConfig({
wiredep: ... | 'use strict';
module.exports = function(grunt) {
// Load tasks
grunt.loadNpmTasks('grunt-wiredep');
grunt.loadNpmTasks('grunt-jslint');
grunt.loadNpmTasks('grunt-jscoverage');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-coveralls');
grunt.initConfig({
wiredep: ... | Make so that grunt test is more human readable and in travis use grunt travis that do coveralls | Make so that grunt test is more human readable and in travis use grunt travis that do coveralls
| JavaScript | mit | Cultti/copy-and-paste-server,Cultti/copy-and-paste-server | javascript | ## Code Before:
'use strict';
module.exports = function(grunt) {
// Load tasks
grunt.loadNpmTasks('grunt-wiredep');
grunt.loadNpmTasks('grunt-jslint');
grunt.loadNpmTasks('grunt-jscoverage');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-coveralls');
grunt.initConfig({
... | 'use strict';
module.exports = function(grunt) {
// Load tasks
grunt.loadNpmTasks('grunt-wiredep');
grunt.loadNpmTasks('grunt-jslint');
grunt.loadNpmTasks('grunt-jscoverage');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-coveralls');
grunt.initConfig... | 9 | 0.147541 | 6 | 3 |
0b38ef62240fc88a87486e1e81c4313e5ff8d833 | _data/next-event.yml | _data/next-event.yml | date: Wednesday, 12 March 2014
time: 6.30pm – 9.30pm
location: Eden House, 8 Spital Square, London E1 6DU
talks:
- speaker_name: Tom Cowell
speaker_twitter: hairballopolis
info: Topic TBA
image: images/speakers/tom.jpg
- speaker_name: Jamie White
speaker_twitter: jgwhite
info: Topic TBA
imag... | date: Wednesday, 12 March 2014
time: 6.30pm – 9.30pm
location: Eden House, 8 Spital Square, London E1 6DU
talks:
- speaker_name: Tom Cowell
speaker_twitter: hairballopolis
info: Architecting for the Enterprise
image: images/speakers/tom.jpg
- speaker_name: Jamie White
speaker_twitter: jgwhite
in... | Add talk titles for March 2014 | Add talk titles for March 2014
| YAML | mit | emberlondon/emberlondon.github.io,emberlondon/emberlondon.github.io,emberlondon/emberlondon.github.io,emberlondon/emberlondon.github.io | yaml | ## Code Before:
date: Wednesday, 12 March 2014
time: 6.30pm – 9.30pm
location: Eden House, 8 Spital Square, London E1 6DU
talks:
- speaker_name: Tom Cowell
speaker_twitter: hairballopolis
info: Topic TBA
image: images/speakers/tom.jpg
- speaker_name: Jamie White
speaker_twitter: jgwhite
info: To... | date: Wednesday, 12 March 2014
time: 6.30pm – 9.30pm
location: Eden House, 8 Spital Square, London E1 6DU
talks:
- speaker_name: Tom Cowell
speaker_twitter: hairballopolis
- info: Topic TBA
+ info: Architecting for the Enterprise
image: images/speakers/tom.jpg
- speaker_name: Jamie W... | 4 | 0.266667 | 2 | 2 |
0829ca1bb133841efd9ff1753384b0895c1be924 | nightbus/utils.py | nightbus/utils.py |
'''Utility functions.'''
import itertools
def ensure_list(string_or_list_or_none, separator=None):
if isinstance(string_or_list_or_none, str):
if separator:
return string_or_list_or_none.split(separator)
else:
return [string_or_list_or_none]
else:
if separat... |
'''Utility functions.'''
import itertools
def ensure_list(string_or_list_or_none, separator=None):
if isinstance(string_or_list_or_none, str):
if separator:
return string_or_list_or_none.split(separator)
else:
return [string_or_list_or_none]
elif string_or_list_or_n... | Fix crash when no commandline args are passed | Fix crash when no commandline args are passed
Regression from 3513da19363b8b4564f199b469d13486996ede57
| Python | apache-2.0 | ssssam/nightbus,ssssam/nightbus | python | ## Code Before:
'''Utility functions.'''
import itertools
def ensure_list(string_or_list_or_none, separator=None):
if isinstance(string_or_list_or_none, str):
if separator:
return string_or_list_or_none.split(separator)
else:
return [string_or_list_or_none]
else:
... |
'''Utility functions.'''
import itertools
def ensure_list(string_or_list_or_none, separator=None):
if isinstance(string_or_list_or_none, str):
if separator:
return string_or_list_or_none.split(separator)
else:
return [string_or_list_or_none]
... | 6 | 0.3 | 4 | 2 |
8118883c82ee2bf9a83b29e1b283a953196db7d6 | addon/components/docs-header/search-box/component.js | addon/components/docs-header/search-box/component.js | import Component from '@ember/component';
import layout from './template';
import { EKMixin, keyUp } from 'ember-keyboard';
import { on } from '@ember/object/evented';
export default Component.extend(EKMixin, {
layout,
classNames: 'ml-auto',
query: null,
didInsertElement() {
this._super();
this.set(... | import Component from '@ember/component';
import layout from './template';
import { EKMixin, keyUp } from 'ember-keyboard';
import { on } from '@ember/object/evented';
export default Component.extend(EKMixin, {
layout,
classNames: 'ml-auto',
query: null,
didInsertElement() {
this._super();
this.set(... | Remove shortcut for focusing the searchbox | Remove shortcut for focusing the searchbox
| JavaScript | mit | ember-learn/ember-cli-addon-docs,ember-learn/ember-cli-addon-docs,ember-learn/ember-cli-addon-docs | javascript | ## Code Before:
import Component from '@ember/component';
import layout from './template';
import { EKMixin, keyUp } from 'ember-keyboard';
import { on } from '@ember/object/evented';
export default Component.extend(EKMixin, {
layout,
classNames: 'ml-auto',
query: null,
didInsertElement() {
this._super()... | import Component from '@ember/component';
import layout from './template';
import { EKMixin, keyUp } from 'ember-keyboard';
import { on } from '@ember/object/evented';
export default Component.extend(EKMixin, {
layout,
classNames: 'ml-auto',
query: null,
didInsertElement() {
thi... | 3 | 0.115385 | 1 | 2 |
1bee919342b09f03d0643f1c8153430ba1c9f6e1 | functions.zsh | functions.zsh | source_sh () {
emulate -LR sh
. "$@"
}
function fh() { sh -c "$(sed 's/: [0-9]*:0;//' $HISTFILE |fzf)" }
function mkcd() { mkdir -p -v "$1"; cd "$1"; }
function cdtemp() { cd $(mktemp -d) }
function fkill() { ps -ef | sed 1d | fzf -m | awk '{print $2}' | xargs kill -${1:-9} }
function fd() { cd $(find ~/Projects ~... | source_sh () {
emulate -LR sh
. "$@"
}
function fh() { sh -c "$(sed 's/: [0-9]*:0;//' $HISTFILE |fzf)" }
function mkcd() { mkdir -p -v "$1"; cd "$1"; }
function cdtemp() { cd $(mktemp -d) }
function fkill() { ps -ef | sed 1d | fzf -m | awk '{print $2}' | xargs kill -${1:-9} }
function fd() { cd $(find ~/Projects ~... | Fix zen function by adding OpenDNS server | Fix zen function by adding OpenDNS server
| Shell | mit | namsral/dotfiles | shell | ## Code Before:
source_sh () {
emulate -LR sh
. "$@"
}
function fh() { sh -c "$(sed 's/: [0-9]*:0;//' $HISTFILE |fzf)" }
function mkcd() { mkdir -p -v "$1"; cd "$1"; }
function cdtemp() { cd $(mktemp -d) }
function fkill() { ps -ef | sed 1d | fzf -m | awk '{print $2}' | xargs kill -${1:-9} }
function fd() { cd $(f... | source_sh () {
emulate -LR sh
. "$@"
}
function fh() { sh -c "$(sed 's/: [0-9]*:0;//' $HISTFILE |fzf)" }
function mkcd() { mkdir -p -v "$1"; cd "$1"; }
function cdtemp() { cd $(mktemp -d) }
function fkill() { ps -ef | sed 1d | fzf -m | awk '{print $2}' | xargs kill -${1:-9} }
function fd() { cd... | 4 | 0.142857 | 2 | 2 |
d5e3d6c3ca285f1037f284cfb78e279c2d1032ec | dojopuzzles/core/urls.py | dojopuzzles/core/urls.py | from django.urls import path
from core import views
app_name = "core"
urlpatterns = [
path("home/", views.home, name="home"),
path("about/", views.about, name="about"),
]
| from core import views
from django.urls import path
app_name = "core"
urlpatterns = [
path("", views.home, name="home"),
path("about/", views.about, name="about"),
]
| Fix route for main page | Fix route for main page
| Python | mit | rennerocha/dojopuzzles | python | ## Code Before:
from django.urls import path
from core import views
app_name = "core"
urlpatterns = [
path("home/", views.home, name="home"),
path("about/", views.about, name="about"),
]
## Instruction:
Fix route for main page
## Code After:
from core import views
from django.urls import path
app_name = ... | + from core import views
from django.urls import path
-
- from core import views
-
app_name = "core"
urlpatterns = [
- path("home/", views.home, name="home"),
? -----
+ path("", views.home, name="home"),
path("about/", views.about, name="about"),
] | 6 | 0.545455 | 2 | 4 |
b1cfa975eac4c12d48b139e56348050f66adf1e7 | public/css/batali.css | public/css/batali.css | body {
background-image: url('/assets/img/kitchen.jpg');
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-position: 0px -175px;
background-repeat: no-repeat;
}
.navbar {
position: relative;
}
.table {
font-size: 115%;
}
#sub... | body {
background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.45) 100%), url(/assets/img/kitchen.jpg), url(/assets/img/kitchen.jpg);
background: -moz-linear-gradient(top, rgba(220,220,220,0.45) 0%, rgba(220,220,220,0.45) 100%), url(/assets/img/kitchen.jpg);
background: -webkit-gradient(line... | Add transparency to the background image for easier viewing | Add transparency to the background image for easier viewing
| CSS | apache-2.0 | esmet/batali,esmet/batali | css | ## Code Before:
body {
background-image: url('/assets/img/kitchen.jpg');
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-position: 0px -175px;
background-repeat: no-repeat;
}
.navbar {
position: relative;
}
.table {
font-siz... | body {
- background-image: url('/assets/img/kitchen.jpg');
+ background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.45) 100%), url(/assets/img/kitchen.jpg), url(/assets/img/kitchen.jpg);
+ background: -moz-linear-gradient(top, rgba(220,220,220,0.45) 0%, rgba(220,220,220,0.45) 100%), url(... | 12 | 0.571429 | 8 | 4 |
b3361654597d0aa72bf083539c1b1a3283d6225f | web/js/scripts.js | web/js/scripts.js | function toggleMenu()
{
var menu = document.getElementById('main_menu');
if (menu.style.display == "none") {
menu.style.display = "block";
} else {
menu.style.display = "none";
}
}
| function toggleMenu()
{
var menu = document.getElementById('main_menu');
if (menu.style.display == "none" || menu.style.display == "") {
menu.style.display = "block";
} else {
menu.style.display = "none";
}
}
| Fix foldable menu only shown on second click glitch. | Fix foldable menu only shown on second click glitch.
| JavaScript | mit | bostaf/is-silex,bostaf/is-silex,bostaf/is-silex | javascript | ## Code Before:
function toggleMenu()
{
var menu = document.getElementById('main_menu');
if (menu.style.display == "none") {
menu.style.display = "block";
} else {
menu.style.display = "none";
}
}
## Instruction:
Fix foldable menu only shown on second click glitch.
## Code After:
funct... | function toggleMenu()
{
var menu = document.getElementById('main_menu');
- if (menu.style.display == "none") {
+ if (menu.style.display == "none" || menu.style.display == "") {
menu.style.display = "block";
} else {
menu.style.display = "none";
}
} | 2 | 0.222222 | 1 | 1 |
49b8841233f8727bc1411cfa5ab82ce45a9aad80 | app/config/security.yml | app/config/security.yml | security:
# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
providers:
git:
id: app.git_user_provider
encoders:
AppBundle\Security\User\GitUser:
algorithm: bcrypt
cost: 12
firewalls:
# disables a... | security:
# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
providers:
git:
id: app.git_user_provider
encoders:
AppBundle\Security\User\GitUser:
algorithm: bcrypt
cost: 12
firewalls:
# disables a... | Add access to all users | Add access to all users
| YAML | mit | gitdown-wiki/gitdown-wiki,gitdown-wiki/gitdown-wiki,gitdown-wiki/gitdown-wiki | yaml | ## Code Before:
security:
# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
providers:
git:
id: app.git_user_provider
encoders:
AppBundle\Security\User\GitUser:
algorithm: bcrypt
cost: 12
firewalls:
... | security:
# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
providers:
git:
id: app.git_user_provider
encoders:
AppBundle\Security\User\GitUser:
algorithm: bcrypt
cost: 12
firew... | 2 | 0.060606 | 1 | 1 |
d2e57be13fd7537f1c677754e1905b2ea133077f | js/package.json | js/package.json | {
"name": "jupyter-sankey-widget",
"version": "0.2.0",
"description": "Display Sankey diagrams in Jupyter",
"author": "Rick Lupton",
"main": "src/index.js",
"repository": {
"type": "git",
"url": "https://github.com/ricklupton/ipysankeywidget.git"
},
"license": "MIT",
"keywords": [
"jupyter... | {
"name": "jupyter-sankey-widget",
"version": "0.2.0",
"description": "Display Sankey diagrams in Jupyter",
"author": "Rick Lupton",
"main": "src/index.js",
"repository": {
"type": "git",
"url": "https://github.com/ricklupton/ipysankeywidget.git"
},
"license": "MIT",
"keywords": [
"jupyter... | Use my fork of saveSvgAsPng for now | Use my fork of saveSvgAsPng for now
| JSON | mit | ricklupton/ipysankeywidget,ricklupton/ipysankeywidget,ricklupton/ipysankeywidget | json | ## Code Before:
{
"name": "jupyter-sankey-widget",
"version": "0.2.0",
"description": "Display Sankey diagrams in Jupyter",
"author": "Rick Lupton",
"main": "src/index.js",
"repository": {
"type": "git",
"url": "https://github.com/ricklupton/ipysankeywidget.git"
},
"license": "MIT",
"keywords"... | {
"name": "jupyter-sankey-widget",
"version": "0.2.0",
"description": "Display Sankey diagrams in Jupyter",
"author": "Rick Lupton",
"main": "src/index.js",
"repository": {
"type": "git",
"url": "https://github.com/ricklupton/ipysankeywidget.git"
},
"license": "MIT",
"k... | 2 | 0.055556 | 1 | 1 |
7eea6ea0fea136bbd48bb9f60cb9015aed1df37e | src/js/Filter/Filter.ts | src/js/Filter/Filter.ts | ///<reference path="./Interfaces/IFilter.ts" />
///<reference path="./Interfaces/IFilterFunction.ts" />
import * as clone from 'lodash/clone';
class Filter<T> implements IFilter<T>
{
private filterFunctions: IFilterFunction<T>[] = [];
private originalDataSet: T[] = [];
private filteredDataSet: T[] = [];
pr... | ///<reference path="./Interfaces/IFilter.ts" />
///<reference path="./Interfaces/IFilterFunction.ts" />
import * as clone from 'lodash/clone';
class Filter<T> implements IFilter<T>
{
private filterFunctions: IFilterFunction<T>[] = [];
private originalDataSet: T[] = [];
private filteredDataSet: T[] = [];
pr... | Fix filter to return the filtered data set lol | Fix filter to return the filtered data set lol
| TypeScript | mit | harksys/HawkEye,harksys/HawkEye,harksys/HawkEye | typescript | ## Code Before:
///<reference path="./Interfaces/IFilter.ts" />
///<reference path="./Interfaces/IFilterFunction.ts" />
import * as clone from 'lodash/clone';
class Filter<T> implements IFilter<T>
{
private filterFunctions: IFilterFunction<T>[] = [];
private originalDataSet: T[] = [];
private filteredDataSet:... | ///<reference path="./Interfaces/IFilter.ts" />
///<reference path="./Interfaces/IFilterFunction.ts" />
import * as clone from 'lodash/clone';
class Filter<T> implements IFilter<T>
{
private filterFunctions: IFilterFunction<T>[] = [];
private originalDataSet: T[] = [];
private filtered... | 6 | 0.125 | 4 | 2 |
f954d984b6ea0e6f037eaa481e39bb891953696a | src/Backend/Modules/Faq/Layout/Widgets/Feedback.html.twig | src/Backend/Modules/Faq/Layout/Widgets/Feedback.html.twig | {# This file is generated by the Spoon2Twig Converter #}
<div id="widgetFaqFeedback" class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
<a href="{{ geturl('index','faq' ) }}">{{ 'lbl.Faq'|trans|capitalize }}: {{ 'lbl.Feedback'|trans|capitalize }}</a>
</h2>
</div>
<div... | {# This file is generated by the Spoon2Twig Converter #}
<div id="widgetFaqFeedback" class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
<a href="{{ geturl('index','faq' ) }}">{{ 'lbl.Faq'|trans|capitalize }}: {{ 'lbl.Feedback'|trans|capitalize }}</a>
</h2>
</div>
{%... | Fix double panel body faq widget when there are no questions | Fix double panel body faq widget when there are no questions
| Twig | mit | Katrienvh/forkcms,vytsci/forkcms,Katrienvh/forkcms,mathiashelin/forkcms,sumocoders/forkcms,Thijzer/forkcms,mathiashelin/forkcms,tommyvdv/forkcms,jeroendesloovere/forkcms,sumocoders/forkcms,jonasdekeukelaere/forkcms,jonasdekeukelaere/forkcms,vytenizs/forkcms,sumocoders/forkcms,jonasdekeukelaere/forkcms,tommyvdv/forkcms,... | twig | ## Code Before:
{# This file is generated by the Spoon2Twig Converter #}
<div id="widgetFaqFeedback" class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
<a href="{{ geturl('index','faq' ) }}">{{ 'lbl.Faq'|trans|capitalize }}: {{ 'lbl.Feedback'|trans|capitalize }}</a>
</h2>... | {# This file is generated by the Spoon2Twig Converter #}
<div id="widgetFaqFeedback" class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
<a href="{{ geturl('index','faq' ) }}">{{ 'lbl.Faq'|trans|capitalize }}: {{ 'lbl.Feedback'|trans|capitalize }}</a>
</h2>
... | 22 | 0.733333 | 11 | 11 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.