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
c0a9c133a5b5b1fb377b607bba4ad720d1d8c696
src/ggrc/assets/stylesheets/modules/_related-list.scss
src/ggrc/assets/stylesheets/modules/_related-list.scss
/* * Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file> * Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> * Created By: vladan@reciprocitylabs.com * Maintained By: vladan@reciprocitylabs.com */ .past-items-list { @extend %reset-list; > li { margin-bottom:...
/* * Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file> * Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> * Created By: vladan@reciprocitylabs.com * Maintained By: vladan@reciprocitylabs.com */ .past-items-list { @extend %reset-list; > li { margin-bot...
Fix tab indentation on related list
Fix tab indentation on related list
SCSS
apache-2.0
VinnieJohns/ggrc-core,josthkko/ggrc-core,prasannav7/ggrc-core,jmakov/ggrc-core,prasannav7/ggrc-core,j0gurt/ggrc-core,andrei-karalionak/ggrc-core,selahssea/ggrc-core,NejcZupec/ggrc-core,andrei-karalionak/ggrc-core,plamut/ggrc-core,kr41/ggrc-core,plamut/ggrc-core,kr41/ggrc-core,NejcZupec/ggrc-core,edofic/ggrc-core,josthk...
scss
## Code Before: /* * Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file> * Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> * Created By: vladan@reciprocitylabs.com * Maintained By: vladan@reciprocitylabs.com */ .past-items-list { @extend %reset-list; > li { ...
/* * Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file> * Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> * Created By: vladan@reciprocitylabs.com * Maintained By: vladan@reciprocitylabs.com */ .past-items-list { - @extend %reset-list; ? ^ +...
76
1.617021
38
38
fbb9d30f44ad3373b96ef0319a4fb404b60be5de
critical-mutex.c
critical-mutex.c
static uv_mutex_t mutex; static uv_thread_t thread; static int crit_data = 0; static void thread_cb(void* arg) { uv_mutex_lock(&mutex); printf("thread mutex start\n"); crit_data = 2; printf("thread mutex end\n"); uv_mutex_unlock(&mutex); } int main() { assert(0 == uv_mutex_init(&mutex)); assert(0 ==...
static uv_mutex_t mutex; static uv_thread_t thread; static void thread_cb(void* arg) { printf("thread_cb\n"); uv_mutex_lock(&mutex); printf("thread mutex\n"); uv_mutex_unlock(&mutex); } int main() { assert(0 == uv_mutex_init(&mutex)); assert(0 == uv_thread_create(&thread, thread_cb, NULL)); uv_mutex_l...
Make use of mutex easier to see
Make use of mutex easier to see With the access to the data, the use of the actual mutex could have been confused. By simply using the mutex the example is a lot more clear.
C
mit
trevnorris/libuv-examples
c
## Code Before: static uv_mutex_t mutex; static uv_thread_t thread; static int crit_data = 0; static void thread_cb(void* arg) { uv_mutex_lock(&mutex); printf("thread mutex start\n"); crit_data = 2; printf("thread mutex end\n"); uv_mutex_unlock(&mutex); } int main() { assert(0 == uv_mutex_init(&mutex)...
static uv_mutex_t mutex; static uv_thread_t thread; - static int crit_data = 0; - - static void thread_cb(void* arg) { + printf("thread_cb\n"); uv_mutex_lock(&mutex); - printf("thread mutex start\n"); - crit_data = 2; - printf("thread mutex end\n"); ? ---- + printf("th...
10
0.3125
2
8
847143cd60986c6558167a8ad28a778b09330a7c
gocd/server.py
gocd/server.py
import urllib2 from urlparse import urljoin from gocd.api import Pipeline class Server(object): def __init__(self, host, user=None, password=None): self.host = host self.user = user self.password = password if self.user and self.password: self._add_basic_auth() ...
import urllib2 from urlparse import urljoin from gocd.api import Pipeline class Server(object): def __init__(self, host, user=None, password=None): self.host = host self.user = user self.password = password if self.user and self.password: self._add_basic_auth() ...
Remove hard coded realm and assume any is fine
Remove hard coded realm and assume any is fine
Python
mit
henriquegemignani/py-gocd,gaqzi/py-gocd
python
## Code Before: import urllib2 from urlparse import urljoin from gocd.api import Pipeline class Server(object): def __init__(self, host, user=None, password=None): self.host = host self.user = user self.password = password if self.user and self.password: self._add_ba...
import urllib2 from urlparse import urljoin from gocd.api import Pipeline class Server(object): def __init__(self, host, user=None, password=None): self.host = host self.user = user self.password = password if self.user and self.password: ...
6
0.130435
4
2
27f6c19e5e9c6f0417ca8ba313075e0c3110faa1
Magic/src/main/resources/examples/survival/wands/divinghelmet.yml
Magic/src/main/resources/examples/survival/wands/divinghelmet.yml
divinghelmet: icon: light_blue_stained_glass{CustomModelData:18001} legacy_icon: stained_glass:3 indestructible: true locked: true keep: true quiet: 2 mana_regeneration_boost: -0.1 potion_effects: conduit_power worn: true wearable: helmet
divinghelmet: icon: light_blue_stained_glass{CustomModelData:18001} migrate_legacy_icons: "light_blue_stained_glass": light_blue_stained_glass{CustomModelData:18001} "stained_glass:3": light_blue_stained_glass{CustomModelData:18001} legacy_icon: stained_glass:3 indestructible: true l...
Add icon migration for diving helmet
Add icon migration for diving helmet
YAML
mit
elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicPlugin
yaml
## Code Before: divinghelmet: icon: light_blue_stained_glass{CustomModelData:18001} legacy_icon: stained_glass:3 indestructible: true locked: true keep: true quiet: 2 mana_regeneration_boost: -0.1 potion_effects: conduit_power worn: true wearable: helmet ## Instruction: Add icon...
divinghelmet: icon: light_blue_stained_glass{CustomModelData:18001} + migrate_legacy_icons: + "light_blue_stained_glass": light_blue_stained_glass{CustomModelData:18001} + "stained_glass:3": light_blue_stained_glass{CustomModelData:18001} legacy_icon: stained_glass:3 indestructib...
3
0.272727
3
0
19952d7f437270065a693dc886c867329ec7c4a0
startzone.py
startzone.py
import xmlrpclib from supervisor.xmlrpc import SupervisorTransport def start_zone(port=1300, zoneid="defaultzone", processgroup='zones', autorestart=False): s = xmlrpclib.ServerProxy('http://localhost:9001') import socket try: version = s.twiddler.getAPIVersion() except(socket.error), exc: ...
import xmlrpclib from supervisor.xmlrpc import SupervisorTransport def start_zone(port=1300, zoneid="defaultzone", processgroup='zones', autorestart=False): s = xmlrpclib.ServerProxy('http://localhost:9001') import socket try: version = s.twiddler.getAPIVersion() except(socket.error), exc: ...
Fix up some settings for start_zone()
Fix up some settings for start_zone()
Python
agpl-3.0
cnelsonsic/SimpleMMO,cnelsonsic/SimpleMMO,cnelsonsic/SimpleMMO
python
## Code Before: import xmlrpclib from supervisor.xmlrpc import SupervisorTransport def start_zone(port=1300, zoneid="defaultzone", processgroup='zones', autorestart=False): s = xmlrpclib.ServerProxy('http://localhost:9001') import socket try: version = s.twiddler.getAPIVersion() except(socket....
import xmlrpclib from supervisor.xmlrpc import SupervisorTransport def start_zone(port=1300, zoneid="defaultzone", processgroup='zones', autorestart=False): s = xmlrpclib.ServerProxy('http://localhost:9001') import socket try: version = s.twiddler.getAPIVersion() except(soc...
4
0.108108
2
2
51a0993def81210f62de245c2b0f63e3adae353c
git/aliases.zsh
git/aliases.zsh
alias gd='git diff' alias gpb='git checkout $(git branch | cut -c 3- | pick)' alias gcb='git copy-branch-name' alias gdb='git branch -D $(git branch | cut -c 3- | pick)' alias gpri='git rebase -i $(git branch | cut -c 3- | pick)' alias ggui='/usr/local/opt/git/libexec/git-core/git-gui &' alias gm='git merge' alias edit...
hub_path=$(which hub) if (( $+commands[hub] )) then alias git=$hub_path fi # The rest of my fun git aliases alias gd='git diff' alias gpb='git checkout $(git branch | cut -c 3- | pick)' alias gcb='git copy-branch-name' alias gdb='git branch -D $(git branch | cut -c 3- | pick)' alias gpri='git rebase -i $(git branch ...
Revert "Remove alias from git"
Revert "Remove alias from git" This reverts commit 8a3f724c07529f78ddb62ead8cc025b478104a61.
Shell
mit
marionzualo/dotfiles
shell
## Code Before: alias gd='git diff' alias gpb='git checkout $(git branch | cut -c 3- | pick)' alias gcb='git copy-branch-name' alias gdb='git branch -D $(git branch | cut -c 3- | pick)' alias gpri='git rebase -i $(git branch | cut -c 3- | pick)' alias ggui='/usr/local/opt/git/libexec/git-core/git-gui &' alias gm='git m...
+ hub_path=$(which hub) + if (( $+commands[hub] )) + then + alias git=$hub_path + fi + + # The rest of my fun git aliases alias gd='git diff' alias gpb='git checkout $(git branch | cut -c 3- | pick)' alias gcb='git copy-branch-name' alias gdb='git branch -D $(git branch | cut -c 3- | pick)' alias gpri='git...
7
0.875
7
0
513a71ad7c6874bc530a3fc9bad17ffd27d600d8
projects/samskivert/src/java/com/samskivert/swing/util/Task.java
projects/samskivert/src/java/com/samskivert/swing/util/Task.java
// // $Id: Task.java,v 1.1 2000/12/06 03:25:19 mdb Exp $ package com.samskivert.swing.util; /** * A swing application requests that a task be invoked by the task * master. The task master invokes the task on a separate thread and * informs the swing application when the task has completed via the task * observer ...
// // $Id: Task.java,v 1.2 2000/12/07 05:41:30 mdb Exp $ package com.samskivert.swing.util; /** * A swing application requests that a task be invoked by the task * master. The task master invokes the task on a separate thread and * informs the swing application when the task has completed via the task * observer ...
Allow tasks to throw an exception so that it can be caught and passed to the task observer.
Allow tasks to throw an exception so that it can be caught and passed to the task observer. git-svn-id: 64ebf368729f38804935acb7146e017e0f909c6b@24 6335cc39-0255-0410-8fd6-9bcaacd3b74c
Java
lgpl-2.1
samskivert/samskivert,samskivert/samskivert
java
## Code Before: // // $Id: Task.java,v 1.1 2000/12/06 03:25:19 mdb Exp $ package com.samskivert.swing.util; /** * A swing application requests that a task be invoked by the task * master. The task master invokes the task on a separate thread and * informs the swing application when the task has completed via the t...
// - // $Id: Task.java,v 1.1 2000/12/06 03:25:19 mdb Exp $ ? ^ ^ --- ^ + // $Id: Task.java,v 1.2 2000/12/07 05:41:30 mdb Exp $ ? ^ ^ + ^^^ package com.samskivert.swing.util; /** * A swing application requests that a task be invoked by ...
4
0.121212
2
2
3350102e997c9e81a63bce738b2167296d44b502
test/executor/TestExecutor.sh
test/executor/TestExecutor.sh
include string.util.StringUtil TestExecutor(){ executeTest(){ local group=${1} shift local tests=(${@}) for test in ${tests[@]}; do local testName=$(StringUtil capitalize ${test}) if [[ $(${group} test${testName}) == FAIL ]]; then echo ${group}#test${testName} fi done } ${@} }
include command.validator.CommandValidator include string.util.StringUtil TestExecutor(){ executeTest(){ local _tests=( $(CommandValidator getValidFunctions bash-toolbox/test/${1}.sh) ) local tests=() for _test in ${_tests[@]}; do if [[ ${_test} != ${1} && ${_test} != run ]]; then if [[ $(${1} ${...
Determine the tests dynamically so that we don't need to pass in all the tests names
Determine the tests dynamically so that we don't need to pass in all the tests names
Shell
mit
anthony-chu/bash-toolbox
shell
## Code Before: include string.util.StringUtil TestExecutor(){ executeTest(){ local group=${1} shift local tests=(${@}) for test in ${tests[@]}; do local testName=$(StringUtil capitalize ${test}) if [[ $(${group} test${testName}) == FAIL ]]; then echo ${group}#test${testName} fi done } ${@...
+ include command.validator.CommandValidator + include string.util.StringUtil TestExecutor(){ executeTest(){ - local group=${1} - shift - local tests=(${@}) ? ----- + local _tests=( ? + + $(CommandValidator getValidFunctions bash-toolbox/test/${1}.sh) + ) + local te...
20
1.052632
12
8
8624431e62ef37e9570f53ec3fbe561d7991e9c1
README.md
README.md
Autofac.Extras.Alternatives ======================= An Autofac extension that adds support for alternatives to some of the Autofac-provided relationship types. This includes recognition of `IReadOnlyDictionary<TKey, TValue>` as a relationship type that provides the same capabilities as the built-in Autofac type `IInde...
Autofac.Extras.Alternatives ======================= An Autofac extension that adds support for alternatives to some of the Autofac-provided relationship types. This includes recognition of `IReadOnlyDictionary<TKey, TValue>` as a relationship type that provides the same capabilities as the built-in Autofac type `IInde...
Add AppVeyor badge to readme.
Add AppVeyor badge to readme.
Markdown
apache-2.0
mthamil/Autofac.Extras.Alternatives
markdown
## Code Before: Autofac.Extras.Alternatives ======================= An Autofac extension that adds support for alternatives to some of the Autofac-provided relationship types. This includes recognition of `IReadOnlyDictionary<TKey, TValue>` as a relationship type that provides the same capabilities as the built-in Aut...
Autofac.Extras.Alternatives ======================= An Autofac extension that adds support for alternatives to some of the Autofac-provided relationship types. This includes recognition of `IReadOnlyDictionary<TKey, TValue>` as a relationship type that provides the same capabilities as the built-in Autofac...
2
0.125
2
0
1111f1e40937e6a3a0a38302d3fa839731dc16d3
htdocs/menu.html
htdocs/menu.html
<html><head><title>?</title></head> <body bgcolor="WHITE" text="BLACK" link="BLUE" alink="RED" vlink="#AA00AA"> <table border=0 width="100%"> <tr> <td align=center>[<a href="/Status" target=main>Status</a>]</td> <td align=center>[<a href="/Connections" target=main>Connections</a>]</td> <td align=cente...
<html><head><title>?</title></head> <body bgcolor="WHITE" text="BLACK" link="BLUE" alink="RED" vlink="#AA00AA"> <table border=0 width="100%"> <tr> <td align=center>[<a href="/Status" target=main>Status</a>]</td> <td align=center>[<a href="/Connections" target=main>Connections</a>]</td> <td align=cente...
Remove old stuff that does not work.
Remove old stuff that does not work.
HTML
apache-2.0
curious-attempt-bunny/rabbit-http-proxy-fake-desktop-headers,toonetown/rabbit-maven
html
## Code Before: <html><head><title>?</title></head> <body bgcolor="WHITE" text="BLACK" link="BLUE" alink="RED" vlink="#AA00AA"> <table border=0 width="100%"> <tr> <td align=center>[<a href="/Status" target=main>Status</a>]</td> <td align=center>[<a href="/Connections" target=main>Connections</a>]</td> ...
<html><head><title>?</title></head> <body bgcolor="WHITE" text="BLACK" link="BLUE" alink="RED" vlink="#AA00AA"> <table border=0 width="100%"> <tr> <td align=center>[<a href="/Status" target=main>Status</a>]</td> <td align=center>[<a href="/Connections" target=main>Connections</a>]</td> <...
3
0.15
0
3
83cba43ba3e68bc909113e54d71b6e923f2b64bc
winforms-converter/requirements.md
winforms-converter/requirements.md
--- title: Requirements page_title: Requirements | WinForms Converter description: This article explains which what you require in order to convert your projects. slug: winforms/winforms-converter/requirements tags: covert, winforms, requirements published: True position: 2 --- # Requirements The following article l...
--- title: Requirements page_title: Requirements | WinForms Converter description: This article explains which what you require in order to convert your projects. slug: winforms/winforms-converter/requirements tags: covert, winforms, requirements published: True position: 2 --- # Requirements The following article l...
Add notes for the WinForms Converter
Add notes for the WinForms Converter
Markdown
apache-2.0
telerik/winforms-docs,telerik/winforms-docs,telerik/winforms-docs
markdown
## Code Before: --- title: Requirements page_title: Requirements | WinForms Converter description: This article explains which what you require in order to convert your projects. slug: winforms/winforms-converter/requirements tags: covert, winforms, requirements published: True position: 2 --- # Requirements The fol...
--- title: Requirements page_title: Requirements | WinForms Converter description: This article explains which what you require in order to convert your projects. slug: winforms/winforms-converter/requirements tags: covert, winforms, requirements published: True position: 2 --- # Requirements ...
4
0.166667
4
0
0498e1575f59880b4f7667f0d99bfbd993f2fcd5
profiles/backends.py
profiles/backends.py
from django.contrib.auth import get_user_model from django.contrib.auth.backends import ModelBackend class CaseInsensitiveModelBackend(ModelBackend): def authenticate(email=None, password=None, **kwargs): """ Created by LNguyen( Date: 14Dec2017 Description: Method to handle backen...
from django.contrib.auth import get_user_model from django.contrib.auth.backends import ModelBackend class CaseInsensitiveModelBackend(ModelBackend): def authenticate(email=None, password=None, **kwargs): """ Created by LNguyen( Date: 14Dec2017 Description: Method to handle backen...
Fix issues with changing passwords
Fix issues with changing passwords
Python
mit
gdit-cnd/RAPID,LindaTNguyen/RAPID,LindaTNguyen/RAPID,gdit-cnd/RAPID,gdit-cnd/RAPID,gdit-cnd/RAPID,gdit-cnd/RAPID,LindaTNguyen/RAPID,LindaTNguyen/RAPID,LindaTNguyen/RAPID
python
## Code Before: from django.contrib.auth import get_user_model from django.contrib.auth.backends import ModelBackend class CaseInsensitiveModelBackend(ModelBackend): def authenticate(email=None, password=None, **kwargs): """ Created by LNguyen( Date: 14Dec2017 Description: Method ...
from django.contrib.auth import get_user_model from django.contrib.auth.backends import ModelBackend class CaseInsensitiveModelBackend(ModelBackend): def authenticate(email=None, password=None, **kwargs): """ Created by LNguyen( Date: 14Dec2017 Description: M...
5
0.178571
4
1
4f800c8bd7af1a8e40859477dac75035886c3850
src/main/SchemaResolver.js
src/main/SchemaResolver.js
/** * @class SchemaResolver * Class exposing a method to resolve schema references to schema objects in a * schema. */ define([ ], function ( ) { return function(resolvers) { /** * Given the passed subobject walk its properties looking for $refs and * replace them with the loaded sche...
/** * @class SchemaResolver * Class exposing a method to resolve schema references to schema objects in a * schema. */ define([ ], function ( ) { return function(resolvers) { /** * Given the passed subobject walk its properties looking for $refs and * replace them with the loaded sche...
Fix missed resolve check on converted resolver.
Fix missed resolve check on converted resolver.
JavaScript
apache-2.0
atsid/schematic-js,atsid/schematic-js
javascript
## Code Before: /** * @class SchemaResolver * Class exposing a method to resolve schema references to schema objects in a * schema. */ define([ ], function ( ) { return function(resolvers) { /** * Given the passed subobject walk its properties looking for $refs and * replace them with...
/** * @class SchemaResolver * Class exposing a method to resolve schema references to schema objects in a * schema. */ define([ ], function ( ) { return function(resolvers) { /** * Given the passed subobject walk its properties looking for $refs and * replace...
2
0.05
1
1
934c409756da664bc6a82d0c477beca242bfbc50
js/app/utils.js
js/app/utils.js
define(["jquery", "underscore", "backbone"], function($, _, Backbone) { var Utils = {}; Utils.logIn = function() { $.ajax({ url: '/service/me/login', async: false, dataType: 'json' }); }; Utils.loadView = function(viewToLoad) { $('#page-content').html(""); if (typeof viewToLoad === 'function') { ...
define(["jquery", "underscore", "backbone"], function($, _, Backbone) { var Utils = {}; Utils.logIn = function(response) { $.ajax({ url: '/service/me/login?token=', async: false, dataType: 'json' }); }; Utils.loadView = function(viewToLoad) { $('#page-content').html(""); if (typeof viewToLoad ===...
Prepare to pass OAuth token.
Prepare to pass OAuth token.
JavaScript
mit
burnflare/CrowdBuy,burnflare/CrowdBuy
javascript
## Code Before: define(["jquery", "underscore", "backbone"], function($, _, Backbone) { var Utils = {}; Utils.logIn = function() { $.ajax({ url: '/service/me/login', async: false, dataType: 'json' }); }; Utils.loadView = function(viewToLoad) { $('#page-content').html(""); if (typeof viewToLoad ==...
define(["jquery", "underscore", "backbone"], function($, _, Backbone) { var Utils = {}; - Utils.logIn = function() { + Utils.logIn = function(response) { ? ++++++++ $.ajax({ - url: '/service/me/login', + url: '/service/me/login?token=', ? +++++++ ...
4
0.16
2
2
6102d23428644383bf771cd79d5f0ba8f1df097c
README.md
README.md
FontPainter is a javascript library to do custom web font rendering in the browser. ## Font support FontPainter currently has the following limitations for font rendering: - Only support horizontal type - Only supports LTR type - Only parses .svg format fonts
FontPainter is a javascript library to do custom web font rendering in the browser. ## API Documentation API documentation is rendered using TypeDoc. You can view the rendered docs at https://flut1.github.io/fontpainter/ ## Font support FontPainter currently has the following limitations for font rendering: - Onl...
Add link do docs in readme
Add link do docs in readme
Markdown
mit
flut1/fontpainter,flut1/fontpainter,flut1/fontpainter
markdown
## Code Before: FontPainter is a javascript library to do custom web font rendering in the browser. ## Font support FontPainter currently has the following limitations for font rendering: - Only support horizontal type - Only supports LTR type - Only parses .svg format fonts ## Instruction: Add link do docs in ...
FontPainter is a javascript library to do custom web font rendering in the browser. + + ## API Documentation + API documentation is rendered using TypeDoc. You can view the rendered docs at + https://flut1.github.io/fontpainter/ ## Font support FontPainter currently has the following limitations for font...
4
0.444444
4
0
9a24a8efe2a349dd2d740937c18718194f499cde
app/components/admin/search_component.html.erb
app/components/admin/search_component.html.erb
<div class="small-12 medium-6"> <%= form_for(User.new, url: url, as: :user, method: :get) do |f| %> <div class="input-group"> <%= text_field_tag :name_or_email, params[:name_or_email].to_s, placeholder: t("admin.shared.user_search.placeholder") %> <div class="input-group-button"> <%= f.submi...
<div class="small-12 medium-6"> <%= form_tag(url, method: :get) do |f| %> <div class="input-group"> <%= text_field_tag :name_or_email, params[:name_or_email].to_s, placeholder: t("admin.shared.user_search.placeholder") %> <div class="input-group-button"> <%= submit_tag t("admin.shared.user_s...
Use form_tag in search form
Use form_tag in search form This form does not depend on an object at all, so we can use a generic tag which is model-independent.
HTML+ERB
agpl-3.0
consul/consul,consul/consul,consul/consul,consul/consul,consul/consul
html+erb
## Code Before: <div class="small-12 medium-6"> <%= form_for(User.new, url: url, as: :user, method: :get) do |f| %> <div class="input-group"> <%= text_field_tag :name_or_email, params[:name_or_email].to_s, placeholder: t("admin.shared.user_search.placeholder") %> <div class="input-group-button"> ...
<div class="small-12 medium-6"> - <%= form_for(User.new, url: url, as: :user, method: :get) do |f| %> + <%= form_tag(url, method: :get) do |f| %> <div class="input-group"> <%= text_field_tag :name_or_email, params[:name_or_email].to_s, placeholder: t("admin.shared.user_search.placeholder") %> ...
4
0.4
2
2
7a03c6e0131e3e592e1a7c7ea041217e8bc56bff
plugins/provisioners/docker/cap/linux/docker_installed.rb
plugins/provisioners/docker/cap/linux/docker_installed.rb
module VagrantPlugins module DockerProvisioner module Cap module Linux module DockerInstalled def self.docker_installed(machine) paths = [ "/usr/bin/docker", "/usr/local/bin/docker", "/usr/sbin/docker", ] paths....
module VagrantPlugins module DockerProvisioner module Cap module Linux module DockerInstalled def self.docker_installed(machine) paths = [ "/bin/docker", "/usr/bin/docker", "/usr/local/bin/docker", "/usr/sbin/docker", ...
Add /bin/docker to path list for installation verification
Add /bin/docker to path list for installation verification
Ruby
mit
crashlytics/vagrant,bdwyertech/vagrant,mwrock/vagrant,PatrickLang/vagrant,sni/vagrant,PatrickLang/vagrant,marxarelli/vagrant,jtopper/vagrant,jtopper/vagrant,bryson/vagrant,bshurts/vagrant,mwrock/vagrant,mitchellh/vagrant,benh57/vagrant,justincampbell/vagrant,bshurts/vagrant,jtopper/vagrant,chrisroberts/vagrant,taliesin...
ruby
## Code Before: module VagrantPlugins module DockerProvisioner module Cap module Linux module DockerInstalled def self.docker_installed(machine) paths = [ "/usr/bin/docker", "/usr/local/bin/docker", "/usr/sbin/docker", ] ...
module VagrantPlugins module DockerProvisioner module Cap module Linux module DockerInstalled def self.docker_installed(machine) paths = [ + "/bin/docker", "/usr/bin/docker", "/usr/local/bin/docker", "/...
1
0.04
1
0
2c739b8d663827dd610f9c2e4562797b72f56ce3
lib/kosapi_client/oauth2_http_adapter.rb
lib/kosapi_client/oauth2_http_adapter.rb
require 'oauth2' module KOSapiClient class OAuth2HttpAdapter DEFAULT_AUTH_URL = 'https://auth.fit.cvut.cz/oauth/oauth/authorize' DEFAULT_TOKEN_URL = 'https://auth.fit.cvut.cz/oauth/oauth/token' def initialize(credentials, root_url, opts = {}) auth_url = opts[:auth_url] || DEFAULT_AUTH_URL t...
require 'oauth2' module KOSapiClient class OAuth2HttpAdapter DEFAULT_AUTH_URL = 'https://auth.fit.cvut.cz/oauth/oauth/authorize' DEFAULT_TOKEN_URL = 'https://auth.fit.cvut.cz/oauth/oauth/token' def initialize(credentials, root_url, opts = {}) auth_url = opts[:auth_url] || DEFAULT_AUTH_URL t...
Set Ox as default MultiXML parser.
Set Ox as default MultiXML parser.
Ruby
mit
cvut/kosapi_client.rb,cvut/kosapi_client.rb
ruby
## Code Before: require 'oauth2' module KOSapiClient class OAuth2HttpAdapter DEFAULT_AUTH_URL = 'https://auth.fit.cvut.cz/oauth/oauth/authorize' DEFAULT_TOKEN_URL = 'https://auth.fit.cvut.cz/oauth/oauth/token' def initialize(credentials, root_url, opts = {}) auth_url = opts[:auth_url] || DEFAULT_...
require 'oauth2' module KOSapiClient class OAuth2HttpAdapter DEFAULT_AUTH_URL = 'https://auth.fit.cvut.cz/oauth/oauth/authorize' DEFAULT_TOKEN_URL = 'https://auth.fit.cvut.cz/oauth/oauth/token' def initialize(credentials, root_url, opts = {}) auth_url = opts[:auth_url] || DEFA...
1
0.028571
1
0
4c927b055f5ea0f1095ed5a6eb68253f0c004733
src/Conversation/Conversation.js
src/Conversation/Conversation.js
import React, { PropTypes } from 'react'; import Messages from '../Messages/Messages'; class Conversation extends React.Component { constructor(props, context) { super(props, context); this.state = { messages: [], messagesToBeDisplayed: props.messages }; } componentDidMount...
import React, { PropTypes } from 'react'; import Messages from '../Messages/Messages'; class Conversation extends React.Component { constructor(props, context) { super(props, context); this.state = { messages: [], messagesToBeDisplayed: props.messages }; } componentDidMount...
Stop the interval when all messages have been displadyed
Stop the interval when all messages have been displadyed
JavaScript
mit
sevenleaps/chat-template,sevenleaps/chat-template
javascript
## Code Before: import React, { PropTypes } from 'react'; import Messages from '../Messages/Messages'; class Conversation extends React.Component { constructor(props, context) { super(props, context); this.state = { messages: [], messagesToBeDisplayed: props.messages }; } c...
import React, { PropTypes } from 'react'; import Messages from '../Messages/Messages'; class Conversation extends React.Component { constructor(props, context) { super(props, context); this.state = { messages: [], messagesToBeDisplayed: props.messages }; ...
14
0.229508
9
5
0b41bdf6897bb070fc3d90aa5d90228e744dee60
sunpy/util/map_manager.py
sunpy/util/map_manager.py
import weakref import sunpy class MapManager(weakref.WeakSet): """Weak referenced set of maps created using functions decorated by manage_maps.""" def __repr__(self): return str(self.data) def manage_maps(fn): """Maps returned by functions decorated with manage_maps (eg. sunpy.make_map) will ...
import weakref import sunpy class MapManager(weakref.WeakSet): """Weak referenced set of maps created using functions decorated by manage_maps.""" pass def manage_maps(fn): """Maps returned by functions decorated with manage_maps (eg. sunpy.make_map) will be registered in the sunpy.map_manager list.""...
Remove manager repr (user should not need to view contents)
Remove manager repr (user should not need to view contents)
Python
bsd-2-clause
mjm159/sunpy,dpshelio/sunpy,dpshelio/sunpy,Alex-Ian-Hamilton/sunpy,dpshelio/sunpy,Alex-Ian-Hamilton/sunpy,Alex-Ian-Hamilton/sunpy,mjm159/sunpy
python
## Code Before: import weakref import sunpy class MapManager(weakref.WeakSet): """Weak referenced set of maps created using functions decorated by manage_maps.""" def __repr__(self): return str(self.data) def manage_maps(fn): """Maps returned by functions decorated with manage_maps (eg. sunpy.mak...
import weakref import sunpy class MapManager(weakref.WeakSet): """Weak referenced set of maps created using functions decorated by manage_maps.""" + pass - - def __repr__(self): - return str(self.data) def manage_maps(fn): """Maps returned by functions decorated with manage_ma...
4
0.222222
1
3
721668156130ffeb9f724ce9efc8f1f0d8c7f6f2
tests/quick/se/70.tgen/tgen-simple-dram.cfg
tests/quick/se/70.tgen/tgen-simple-dram.cfg
STATE 0 100 IDLE #STATE 1 10000000000 TRACE tests/quick/se/70.tgen/tgen-simple-dram.trc 0 #STATE 1 1000000000 RANDOM 101 0 134217728 64 2000 2000 0 STATE 1 1000000000 LINEAR 100 0 134217728 64 2000 2000 0 INIT 0 TRANSITION 0 1 1 TRANSITION 1 1 1
STATE 0 100 IDLE STATE 1 1000000000 LINEAR 100 0 134217728 64 30000 30000 0 INIT 0 TRANSITION 0 1 1 TRANSITION 1 1 1
Reduce DRAM controller regression traffic rate
config: Reduce DRAM controller regression traffic rate This patch changes the traffic generator period such that it does not completely saturate the DRAM controller and create an ever-growing backlog in the queued port. A separate patch updates the stats.
INI
bsd-3-clause
gem5/gem5,gedare/gem5,austinharris/gem5-riscv,briancoutinho0905/2dsampling,powerjg/gem5-ci-test,qizenguf/MLC-STT,HwisooSo/gemV-update,Weil0ng/gem5,Weil0ng/gem5,powerjg/gem5-ci-test,HwisooSo/gemV-update,cancro7/gem5,cancro7/gem5,joerocklin/gem5,briancoutinho0905/2dsampling,KuroeKurose/gem5,markoshorro/gem5,joerocklin/ge...
ini
## Code Before: STATE 0 100 IDLE #STATE 1 10000000000 TRACE tests/quick/se/70.tgen/tgen-simple-dram.trc 0 #STATE 1 1000000000 RANDOM 101 0 134217728 64 2000 2000 0 STATE 1 1000000000 LINEAR 100 0 134217728 64 2000 2000 0 INIT 0 TRANSITION 0 1 1 TRANSITION 1 1 1 ## Instruction: config: Reduce DRAM controller regressio...
STATE 0 100 IDLE - #STATE 1 10000000000 TRACE tests/quick/se/70.tgen/tgen-simple-dram.trc 0 - #STATE 1 1000000000 RANDOM 101 0 134217728 64 2000 2000 0 - STATE 1 1000000000 LINEAR 100 0 134217728 64 2000 2000 0 ? ^ ^ + STATE 1 1000000000 LINEAR 100 0 134217728 64 3000...
4
0.571429
1
3
7caef6417b9dc6bb0498cf267972c658f68f83e5
spec/mongoid/query_cache_spec.rb
spec/mongoid/query_cache_spec.rb
require "spec_helper" describe Mongoid::QueryCache do context "when querying in the same collection" do before do Band.all.to_a end context "with same selector" do it "does not query again" do expect_no_queries do Band.all.to_a end end end context ...
require "spec_helper" describe Mongoid::QueryCache do context "when querying in the same collection" do before do Band.all.to_a end context "with same selector" do it "does not query again" do expect_no_queries do Band.all.to_a end end end context ...
Add more tests to query cache
Add more tests to query cache
Ruby
mit
sivagollapalli/mongoid,narutosanjiv/mongoid,jbrien/mongoid,timgluz/mongoid,kayakyakr/mongoid,hxx/mongoid,sivagollapalli/mongoid,tricknotes/mongoid,drobune/mongoid,zenjoy/mongoid,rpocklin/mongoid,tricknotes/mongoid,zBMNForks/mongoid,nusco/mongoid,zaithottakath/mongoid,estolfo/mongoid,simi/mongoid,nviennot/mongoid,joshso...
ruby
## Code Before: require "spec_helper" describe Mongoid::QueryCache do context "when querying in the same collection" do before do Band.all.to_a end context "with same selector" do it "does not query again" do expect_no_queries do Band.all.to_a end end e...
require "spec_helper" describe Mongoid::QueryCache do context "when querying in the same collection" do before do Band.all.to_a end context "with same selector" do it "does not query again" do expect_no_queries do Band.all.to_a end...
52
1.238095
52
0
a76a994399ed2604e4e627f3e9c42edd255a89f9
app/assets/stylesheets/gend_image_pages.css.scss
app/assets/stylesheets/gend_image_pages.css.scss
// Place all the styles related to the GendImagePages controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ .meme-meta { margin-top: 10px; } a.btn { margin-top: 4px; } blockquote h1 { font-weight: normal; font-size: 14px; line-hei...
// Place all the styles related to the GendImagePages controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ .meme-meta { margin-top: 10px; word-wrap: break-word; } a.btn { margin-top: 4px; } blockquote h1 { font-weight: normal; fo...
Break long links on gend image page for mobile.
Break long links on gend image page for mobile.
SCSS
mit
mmb/meme_captain_web,mmb/meme_captain_web,mmb/meme_captain_web,mmb/meme_captain_web
scss
## Code Before: // Place all the styles related to the GendImagePages controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ .meme-meta { margin-top: 10px; } a.btn { margin-top: 4px; } blockquote h1 { font-weight: normal; font-size: ...
// Place all the styles related to the GendImagePages controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ .meme-meta { margin-top: 10px; + word-wrap: break-word; } a.btn { margin-top: 4px; } blockquote h1 {...
1
0.047619
1
0
01db92eb2f195c5b1fdb58399601ff014f99b992
py2app/apptemplate/lib/__error__.sh
py2app/apptemplate/lib/__error__.sh
if ( test -n "$2" ) ; then echo "$1 Error" echo "An unexpected error has occurred during execution of the main script" echo "" echo "$2: $3" echo "" echo "See the Console for a detailed traceback." else echo "$1 Error" echo "MacPython 2.3 is required to run this application."; echo "ERRORURL: http://homepages...
if ( test -n "$2" ) ; then echo "$1 Error" echo "An unexpected error has occurred during execution of the main script" echo "" echo "$2: $3" echo "" echo "See the Console for a detailed traceback." else echo "$1 Error" # Usage: ERRORURL <anURL> <a button label>, this is used by the # bundle runner to put up...
Remove a reference to the MacPython website from the error dialog that is displayed when an application terminates with an uncaught exception.
Remove a reference to the MacPython website from the error dialog that is displayed when an application terminates with an uncaught exception.
Shell
mit
hsoft/pluginbuilder
shell
## Code Before: if ( test -n "$2" ) ; then echo "$1 Error" echo "An unexpected error has occurred during execution of the main script" echo "" echo "$2: $3" echo "" echo "See the Console for a detailed traceback." else echo "$1 Error" echo "MacPython 2.3 is required to run this application."; echo "ERRORURL: ...
if ( test -n "$2" ) ; then echo "$1 Error" echo "An unexpected error has occurred during execution of the main script" echo "" echo "$2: $3" echo "" echo "See the Console for a detailed traceback." else echo "$1 Error" - echo "MacPython 2.3 is required to run this application."; + + # Usage...
7
0.583333
5
2
a4933c13b99ac9258f891ac466641e5f8c45699d
core/app/classes/formatted_comment_content.rb
core/app/classes/formatted_comment_content.rb
class FormattedCommentContent include ActionView::Helpers::TagHelper def initialize text @text = text end def html urls_to_link_tags ERB::Util.html_escape(@text).to_str end private AUTO_LINK_RE = %r{(?:(http|https)://|www\.)[^\s<\u00A0]+}i FACTLINK_PRETTY_URL = %r{#{FactlinkUI::Application.c...
class FormattedCommentContent include ActionView::Helpers::TagHelper def initialize text @text = text end def html urls_to_link_tags ERB::Util.html_escape(@text).to_str end private AUTO_LINK_RE = %r{(?:(?<scheme>http|https)://|www\.)[^\s<\u00A0]+}i FACTLINK_PRETTY_URL = %r{#{FactlinkUI::Appl...
Use named groups in regexes
Use named groups in regexes
Ruby
mit
Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core
ruby
## Code Before: class FormattedCommentContent include ActionView::Helpers::TagHelper def initialize text @text = text end def html urls_to_link_tags ERB::Util.html_escape(@text).to_str end private AUTO_LINK_RE = %r{(?:(http|https)://|www\.)[^\s<\u00A0]+}i FACTLINK_PRETTY_URL = %r{#{FactlinkU...
class FormattedCommentContent include ActionView::Helpers::TagHelper def initialize text @text = text end def html urls_to_link_tags ERB::Util.html_escape(@text).to_str end private - AUTO_LINK_RE = %r{(?:(http|https)://|www\.)[^\s<\u00A0]+}i + AUTO_LINK_RE = %r{(?:(...
10
0.25
4
6
b00816e95feda55da18df33b9572783201b84bfe
lib/template-data.js
lib/template-data.js
var config = require('./config') module.exports = { site: { title: config.title, baseURL: config.baseURL } }
var config = require('./config') module.exports = { site: config }
Change the templateData object to just include all config data until a blacklist is established.
Change the templateData object to just include all config data until a blacklist is established.
JavaScript
mit
philipwalton/ingen
javascript
## Code Before: var config = require('./config') module.exports = { site: { title: config.title, baseURL: config.baseURL } } ## Instruction: Change the templateData object to just include all config data until a blacklist is established. ## Code After: var config = require('./config') module.exports = {...
var config = require('./config') module.exports = { + site: config - site: { - title: config.title, - baseURL: config.baseURL - } }
5
0.625
1
4
123cca13ab4561dc2e427acf0cf5e7abd1b35ee0
packages/openmoko-projects/assassin-thumbnail.bb
packages/openmoko-projects/assassin-thumbnail.bb
DESCRIPTION = "Assassin Packages Thumbnails" HOMEPAGE = "http://assassin.projects.openmoko.org/" LICENSE = "GPL" RDEPENDS = "assassin" PV = "0.1+svnr${SRCPV}" PR = "r1" SRC_URI = "svn://svn.openmoko.org/trunk/src/target/thumbnails/;module=result;proto=https" do_install() { install -d ${D}${THUMBNAIL_DIR} ...
DESCRIPTION = "Assassin Packages Thumbnails" HOMEPAGE = "http://assassin.projects.openmoko.org/" PKG_TAGS_${PN} = "group::unknown" LICENSE = "GPL" RDEPENDS = "assassin" PV = "0.1+svnr${SRCPV}" PR = "r0" SRC_URI = "svn://svn.openmoko.org/trunk/src/target/thumbnails/;module=result;proto=https" do_install() { in...
Revert "[alias name] Adding alias name tags for packages"
Revert "[alias name] Adding alias name tags for packages" This reverts commit ac7bec3cdab4ee8b7a4445be166c82c9432e3ac1.
BitBake
mit
thebohemian/openembedded,giobauermeister/openembedded,scottellis/overo-oe,buglabs/oe-buglabs,hulifox008/openembedded,SIFTeam/openembedded,crystalfontz/openembedded,openembedded/openembedded,dave-billin/overo-ui-moos-auv,sledz/oe,popazerty/openembedded-cuberevo,philb/pbcl-oe-2010,crystalfontz/openembedded,nvl1109/openem...
bitbake
## Code Before: DESCRIPTION = "Assassin Packages Thumbnails" HOMEPAGE = "http://assassin.projects.openmoko.org/" LICENSE = "GPL" RDEPENDS = "assassin" PV = "0.1+svnr${SRCPV}" PR = "r1" SRC_URI = "svn://svn.openmoko.org/trunk/src/target/thumbnails/;module=result;proto=https" do_install() { install -d ${D}${THU...
DESCRIPTION = "Assassin Packages Thumbnails" HOMEPAGE = "http://assassin.projects.openmoko.org/" + PKG_TAGS_${PN} = "group::unknown" LICENSE = "GPL" RDEPENDS = "assassin" PV = "0.1+svnr${SRCPV}" - PR = "r1" ? ^ + PR = "r0" ? ^ SRC_URI = "svn://svn.openmoko.org/trunk/src/target/thumbnails/...
3
0.166667
2
1
851e0740c1ab5a0c9f4772f4fd0c0959b64b7566
updateAll.sh
updateAll.sh
tsc -p csServerComp (cd csComp && npm update) tsc -p csComp (cd example && npm update) (cd example/public && bower install) (cd example/ && gulp all) tsc -p example tsc -p test
tsc -p csServerComp (cd csComp && npm update) tsc -p csComp (cd example && npm update) (cd example/public && bower install) (cd example/ && gulp all) tsc -p example (cd example/ && gulp built_csComp.d.ts) tsc -p test
Add gulp task to updateall
Add gulp task to updateall
Shell
mit
indodutch/csWeb,TNOCS/csWeb,indodutch/csWeb,mkuzak/csWeb,TNOCS/csWeb,indodutch/csWeb,mkuzak/csWeb,TNOCS/csWeb,c-martinez/csWeb,mkuzak/csWeb,c-martinez/csWeb,mkuzak/csWeb,c-martinez/csWeb
shell
## Code Before: tsc -p csServerComp (cd csComp && npm update) tsc -p csComp (cd example && npm update) (cd example/public && bower install) (cd example/ && gulp all) tsc -p example tsc -p test ## Instruction: Add gulp task to updateall ## Code After: tsc -p csServerComp (cd csComp && npm update) tsc -p csComp (cd exa...
tsc -p csServerComp (cd csComp && npm update) tsc -p csComp (cd example && npm update) (cd example/public && bower install) (cd example/ && gulp all) tsc -p example + (cd example/ && gulp built_csComp.d.ts) tsc -p test
1
0.125
1
0
f566e0e36269ea2cd1e82c6af712097917effd4a
dlrn/migrations/versions/2d503b5034b7_rename_artifacts.py
dlrn/migrations/versions/2d503b5034b7_rename_artifacts.py
from alembic import op # revision identifiers, used by Alembic. revision = '2d503b5034b7' down_revision = '2a0313a8a7d6' branch_labels = None depends_on = None def upgrade(): with op.batch_alter_table("commits") as batch_op: batch_op.alter_column('rpms', new_column_name='artifacts') def downgrade(): ...
from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '2d503b5034b7' down_revision = '2a0313a8a7d6' branch_labels = None depends_on = None def upgrade(): with op.batch_alter_table("commits") as batch_op: batch_op.alter_column('rpms', existing_type=sa.Text(),...
Fix alembic migration for rpms->artifacts rename
Fix alembic migration for rpms->artifacts rename The migration does not work on MySQL-based engines, because it requires setting the existing_type parameter [1]. It worked fine on SQLite, though. [1] - https://alembic.sqlalchemy.org/en/latest/ops.html#alembic.operations.Operations.alter_column Change-Id: If0cc05af84...
Python
apache-2.0
openstack-packages/delorean,openstack-packages/delorean,openstack-packages/DLRN,openstack-packages/DLRN
python
## Code Before: from alembic import op # revision identifiers, used by Alembic. revision = '2d503b5034b7' down_revision = '2a0313a8a7d6' branch_labels = None depends_on = None def upgrade(): with op.batch_alter_table("commits") as batch_op: batch_op.alter_column('rpms', new_column_name='artifacts') d...
from alembic import op + import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '2d503b5034b7' down_revision = '2a0313a8a7d6' branch_labels = None depends_on = None def upgrade(): with op.batch_alter_table("commits") as batch_op: - batch_op.alter_column('r...
7
0.368421
5
2
1e082f8c39dd1a1d41064f522db10478b0c820e1
icekit/page_types/layout_page/page_type_plugins.py
icekit/page_types/layout_page/page_type_plugins.py
from django.conf.urls import patterns, url from fluent_pages.extensions import page_type_pool from fluent_pages.integration.fluent_contents.page_type_plugins import FluentContentsPagePlugin from fluent_pages.models import UrlNode from . import admin, models # Register this plugin to the page plugin pool. @page_type_...
from django.conf.urls import patterns, url from fluent_pages.extensions import page_type_pool from fluent_pages.integration.fluent_contents.page_type_plugins import FluentContentsPagePlugin from fluent_pages.models import UrlNode from . import admin, models # Register this plugin to the page plugin pool. @page_type_...
Add smart template render method to LayoutPage
Add smart template render method to LayoutPage
Python
mit
ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit
python
## Code Before: from django.conf.urls import patterns, url from fluent_pages.extensions import page_type_pool from fluent_pages.integration.fluent_contents.page_type_plugins import FluentContentsPagePlugin from fluent_pages.models import UrlNode from . import admin, models # Register this plugin to the page plugin p...
from django.conf.urls import patterns, url from fluent_pages.extensions import page_type_pool from fluent_pages.integration.fluent_contents.page_type_plugins import FluentContentsPagePlugin from fluent_pages.models import UrlNode from . import admin, models # Register this plugin to the page plugin...
5
0.357143
5
0
fae3e55b1c472cd314676431a34fe6e160418626
tests/test_command_line.py
tests/test_command_line.py
import os import subprocess class TestCommandLine(object): def setup(self): """Set up the environment by moving to the demos directory.""" os.chdir("demos") def teardown(self): os.chdir("..") def add(self, *args): self.db.add_all(args) self.db.commit() def t...
import os import subprocess from dallinger.command_line import heroku_id class TestCommandLine(object): def setup(self): """Set up the environment by moving to the demos directory.""" os.chdir("demos") def teardown(self): os.chdir("..") def add(self, *args): self.db.add_...
Test for Heroku app name length
Test for Heroku app name length
Python
mit
jcpeterson/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger
python
## Code Before: import os import subprocess class TestCommandLine(object): def setup(self): """Set up the environment by moving to the demos directory.""" os.chdir("demos") def teardown(self): os.chdir("..") def add(self, *args): self.db.add_all(args) self.db.com...
import os import subprocess + from dallinger.command_line import heroku_id class TestCommandLine(object): def setup(self): """Set up the environment by moving to the demos directory.""" os.chdir("demos") def teardown(self): os.chdir("..") def add(self...
5
0.25
5
0
0d44fa937798861438c9bacf033aa1f27e68d119
config/secrets.yml
config/secrets.yml
development: secret_key_base: 9681e12f70aa75fcf94a467821803a2bf8979a20388cf842aad0a5e44c63d8f6eeb757dab4dd31b870cbd12e66907eba4231b3da0ae17e02fc41886fdab721d7 test: secret_key_base: fde628fa241d74a55d7b0fc8fe1b650091e296d6a4d1e51beba3bfa2ed5c143801c28aaadf318aaefc4423bca781f9715441298052b4f704a8c44f97968feb00 pro...
development: secret_key_base: 9681e12f70aa75fcf94a467821803a2bf8979a20388cf842aad0a5e44c63d8f6eeb757dab4dd31b870cbd12e66907eba4231b3da0ae17e02fc41886fdab721d7 test: secret_key_base: fde628fa241d74a55d7b0fc8fe1b650091e296d6a4d1e51beba3bfa2ed5c143801c28aaadf318aaefc4423bca781f9715441298052b4f704a8c44f97968feb00 sta...
Add secret token for staging environment
Add secret token for staging environment
YAML
agpl-3.0
coopdevs/timeoverflow,coopdevs/timeoverflow,coopdevs/timeoverflow,coopdevs/timeoverflow
yaml
## Code Before: development: secret_key_base: 9681e12f70aa75fcf94a467821803a2bf8979a20388cf842aad0a5e44c63d8f6eeb757dab4dd31b870cbd12e66907eba4231b3da0ae17e02fc41886fdab721d7 test: secret_key_base: fde628fa241d74a55d7b0fc8fe1b650091e296d6a4d1e51beba3bfa2ed5c143801c28aaadf318aaefc4423bca781f9715441298052b4f704a8c44...
development: secret_key_base: 9681e12f70aa75fcf94a467821803a2bf8979a20388cf842aad0a5e44c63d8f6eeb757dab4dd31b870cbd12e66907eba4231b3da0ae17e02fc41886fdab721d7 test: secret_key_base: fde628fa241d74a55d7b0fc8fe1b650091e296d6a4d1e51beba3bfa2ed5c143801c28aaadf318aaefc4423bca781f9715441298052b4f704a8c44f97968...
3
0.375
3
0
21cb2badd2729b4c677fa41b564a4634af0fcd0d
src/main/java/com/gr8pefish/portablecrafting/items/craftingItems/ItemSubCrafting.java
src/main/java/com/gr8pefish/portablecrafting/items/craftingItems/ItemSubCrafting.java
package com.gr8pefish.portablecrafting.items.craftingItems; import com.gr8pefish.portablecrafting.items.ItemBase; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.S...
package com.gr8pefish.portablecrafting.items.craftingItems; import com.gr8pefish.portablecrafting.items.ItemBase; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.S...
Fix registry for no-longer-present subItem
Fix registry for no-longer-present subItem
Java
mit
gr8pefish/PortableCrafting
java
## Code Before: package com.gr8pefish.portablecrafting.items.craftingItems; import com.gr8pefish.portablecrafting.items.ItemBase; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge....
package com.gr8pefish.portablecrafting.items.craftingItems; import com.gr8pefish.portablecrafting.items.ItemBase; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge....
2
0.0625
1
1
9ed093d37cc265e8c8021767e9efc3a6d754d95e
api/app/mailers/club_application_mailer.rb
api/app/mailers/club_application_mailer.rb
class ClubApplicationMailer < ApplicationMailer default from: 'Hack Club Team <team@hackclub.com>' def application_confirmation(application) @application = application to = Mail::Address.new @application.email to.display_name = @application.full_name mail(to: to.format, subject: 'Application Conf...
class ClubApplicationMailer < ApplicationMailer default from: 'Hack Club Team <team@hackclub.com>' def application_confirmation(application) @application = application to = Mail::Address.new @application.email to.display_name = @application.full_name mail(to: to.format, subject: 'Application Conf...
Add ID to title of club application
Add ID to title of club application
Ruby
mit
hackclub/api,hackclub/api,hackclub/api
ruby
## Code Before: class ClubApplicationMailer < ApplicationMailer default from: 'Hack Club Team <team@hackclub.com>' def application_confirmation(application) @application = application to = Mail::Address.new @application.email to.display_name = @application.full_name mail(to: to.format, subject: '...
class ClubApplicationMailer < ApplicationMailer default from: 'Hack Club Team <team@hackclub.com>' def application_confirmation(application) @application = application to = Mail::Address.new @application.email to.display_name = @application.full_name mail(to: to.format, subjec...
2
0.08
1
1
97ae270c41aebb84134a402e0c1cb5d561e2322f
extensions/smallrye-reactive-messaging-rabbitmq/deployment/src/main/resources/dev-templates/embedded.html
extensions/smallrye-reactive-messaging-rabbitmq/deployment/src/main/resources/dev-templates/embedded.html
<a href="localhost:{info:rabbitHttpPort.httpPort}" class="badge badge-light"> <i class="fa fa-external-link-alt fa-fw"></i> RabbitMQ management UI <span class="badge badge-light">{info:rabbitHttpPort.httpPort}</span></a> <br>
<a target="_blank" href="http://localhost:{info:rabbitHttpPort.httpPort}" class="badge badge-light"> <i class="fa fa-external-link-alt fa-fw"></i> RabbitMQ management UI <span class="badge badge-light">{info:rabbitHttpPort.httpPort}</span></a> <br>
Make RabbitMQ link in DevUI an external link
Make RabbitMQ link in DevUI an external link
HTML
apache-2.0
quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus
html
## Code Before: <a href="localhost:{info:rabbitHttpPort.httpPort}" class="badge badge-light"> <i class="fa fa-external-link-alt fa-fw"></i> RabbitMQ management UI <span class="badge badge-light">{info:rabbitHttpPort.httpPort}</span></a> <br> ## Instruction: Make RabbitMQ link in DevUI an external link ## Code Afte...
- <a href="localhost:{info:rabbitHttpPort.httpPort}" class="badge badge-light"> + <a target="_blank" href="http://localhost:{info:rabbitHttpPort.httpPort}" class="badge badge-light"> ? ++++++++++++++++ +++++++ <i class="fa fa-external-link-alt fa-fw"></i> RabbitMQ management UI <span class="badge badge...
2
0.5
1
1
25d44026edee88d857ed4a565dd5407e6491d3ea
server/test/functional/config/configSpec.js
server/test/functional/config/configSpec.js
'use strict'; var expect = require('chai').expect, config = require('../../../config/config'); describe('config', function () { describe('getConfig', function () { var configDirectory = '../../../config/'; describe('existing configuration', function () { var testCases = [ ...
'use strict'; var expect = require('chai').expect, config = require('../../../config/config'); describe('config', function () { describe('getConfig', function () { var configDirectory = '../../../config/'; describe('existing configuration', function () { var testCases = [ ...
Fix config test expected error message.
Fix config test expected error message.
JavaScript
mit
lxanders/community
javascript
## Code Before: 'use strict'; var expect = require('chai').expect, config = require('../../../config/config'); describe('config', function () { describe('getConfig', function () { var configDirectory = '../../../config/'; describe('existing configuration', function () { var tes...
'use strict'; var expect = require('chai').expect, config = require('../../../config/config'); describe('config', function () { describe('getConfig', function () { var configDirectory = '../../../config/'; describe('existing configuration', function () { ...
3
0.069767
2
1
2fdca9dde9519d6e2e275e520fd5a84de202b5ba
plugin/markdown_pl.vim
plugin/markdown_pl.vim
let s:save_cpo = &cpo set cpo&vim if exists('g:markdown_pl_loaded') finish endif let g:markdown_pl_home = fnamemodify(expand('<sfile>'), ':p:h:h:gs?\\?/?') command! -nargs=0 MarkDownPreview call MarkDownPreview() function! MarkDownPreview() let s:fileName = expand("%:p:r").'.html' silent exec '!'.g:mark...
let s:save_cpo = &cpo set cpo&vim if exists('g:markdown_pl_loaded') finish endif let g:markdown_pl_home = fnamemodify(expand('<sfile>'), ':p:h:h:gs?\\?/?') command! -nargs=0 MarkDownPreview call MarkDownPreview() function! MarkDownPreview() let s:fileName = expand("%:p:r").'.html' silent exec '!'.g:mark...
Remove generate file after preview
Remove generate file after preview
VimL
bsd-3-clause
wsdjeg/MarkDown.pl
viml
## Code Before: let s:save_cpo = &cpo set cpo&vim if exists('g:markdown_pl_loaded') finish endif let g:markdown_pl_home = fnamemodify(expand('<sfile>'), ':p:h:h:gs?\\?/?') command! -nargs=0 MarkDownPreview call MarkDownPreview() function! MarkDownPreview() let s:fileName = expand("%:p:r").'.html' silent...
let s:save_cpo = &cpo set cpo&vim if exists('g:markdown_pl_loaded') finish endif let g:markdown_pl_home = fnamemodify(expand('<sfile>'), ':p:h:h:gs?\\?/?') command! -nargs=0 MarkDownPreview call MarkDownPreview() function! MarkDownPreview() let s:fileName = expand("%:p:r").'.html' ...
5
0.217391
2
3
564d271084a2734c846a2c6150f4a84f340bde0d
spec/support/factories/sermons.rb
spec/support/factories/sermons.rb
FactoryGirl.define do factory :sermon do group name { Forgery('lorem_ipsum').sentence } published_at { DateTime.now } speaker { Forgery('name').full_name } audio_url { "http://#{Forgery('internet').domain_name}/audio.mp3" } banner_url { "http://#{Forgery('internet').domain_name}/banner.jpg" } ...
FactoryGirl.define do factory :sermon do group name { Forgery('lorem_ipsum').sentence } published_at { DateTime.now } speaker { Forgery('name').full_name } trait :completed do notes { Forgery(:lorem_ipsum).words(10) } series { Forgery('lorem_ipsum').title } audio_url { "http://#...
Revert to minimal sermon factory
Revert to minimal sermon factory
Ruby
mit
openmcac/basechurch,openmcac/basechurch,openmcac/basechurch,openmcac/basechurch
ruby
## Code Before: FactoryGirl.define do factory :sermon do group name { Forgery('lorem_ipsum').sentence } published_at { DateTime.now } speaker { Forgery('name').full_name } audio_url { "http://#{Forgery('internet').domain_name}/audio.mp3" } banner_url { "http://#{Forgery('internet').domain_name...
FactoryGirl.define do factory :sermon do group name { Forgery('lorem_ipsum').sentence } published_at { DateTime.now } speaker { Forgery('name').full_name } - audio_url { "http://#{Forgery('internet').domain_name}/audio.mp3" } - banner_url { "http://#{Forgery('internet').domain_name...
5
0.3125
2
3
4fa40687a50cc494136ea1acff05049892e90231
lib/square/connect/connections/items.rb
lib/square/connect/connections/items.rb
module Square module Connect module Connections module Items def items(params = nil) access_token_required! items = handle_response do access_token.get endpoint_for(identifier, :items), params end items.collect do |item| Item.new item.m...
module Square module Connect module Connections module Items def items(params = nil) access_token_required! items = handle_response do access_token.get endpoint_for(identifier, :items), params end items.collect do |item| Item.new item.m...
Make sure to set access token
Make sure to set access token
Ruby
mit
namedpipe/square
ruby
## Code Before: module Square module Connect module Connections module Items def items(params = nil) access_token_required! items = handle_response do access_token.get endpoint_for(identifier, :items), params end items.collect do |item| ...
module Square module Connect module Connections module Items def items(params = nil) access_token_required! items = handle_response do access_token.get endpoint_for(identifier, :items), params end items.collect do |item| ...
1
0.017857
1
0
2240e9b206d020508bef2d23a5c98fc538a674aa
index.js
index.js
const request = require('request'); const fs = require('fs'); const DL_DIR = 'downloads'; const ENDPOINT = 'http://117.56.91.94/KMPublic/searchresult/searchservice.aspx' + '?region=documentcategory' + '&searchcategory=207' + '&desc=true' + '&sort=_l_last_modified_datetime' + '&pageindex=0' + '&pagesize=10...
const request = require('request'); const cheerio = require('cheerio'); const fs = require('fs'); const DL_DIR = 'downloads'; const ENDPOINT = 'http://117.56.91.94/KMPublic/searchresult/searchservice.aspx' + '?region=documentcategory' + '&searchcategory=207' + '&desc=true' + '&sort=_l_last_modified_datetime' ...
Read document and list attachments
Read document and list attachments
JavaScript
mit
zhusee2/kmpublic-download
javascript
## Code Before: const request = require('request'); const fs = require('fs'); const DL_DIR = 'downloads'; const ENDPOINT = 'http://117.56.91.94/KMPublic/searchresult/searchservice.aspx' + '?region=documentcategory' + '&searchcategory=207' + '&desc=true' + '&sort=_l_last_modified_datetime' + '&pageindex=0' ...
const request = require('request'); + const cheerio = require('cheerio'); const fs = require('fs'); const DL_DIR = 'downloads'; const ENDPOINT = 'http://117.56.91.94/KMPublic/searchresult/searchservice.aspx' + '?region=documentcategory' + '&searchcategory=207' + '&desc=true' + '&sort=_l_la...
25
0.925926
24
1
4d25ffd5f558f718a60b082a303eb1bb317ffdda
app/assets/javascripts/backbone/views/transition_view.js.coffee
app/assets/javascripts/backbone/views/transition_view.js.coffee
class UIDemo.Views.TransitionView extends Backbone.View transitionRemoveClass: (className, $el = @$el) -> p = @_transitionPromise($el) @_delay(=> $el.removeClass className).then -> p transitionAddClass: (className, $el = @$el) -> p = @_transitionPromise($el) @_delay(=> $el.addClass className).the...
class UIDemo.Views.TransitionView extends Backbone.View transitionRemoveClass: (className, $el = @$el) -> p = @_transitionPromise($el) @_delay(=> $el.removeClass className).then -> p transitionAddClass: (className, $el = @$el) -> p = @_transitionPromise($el) @_delay(=> $el.addClass className).the...
Remove asynchronous working if transitions are disabled
Remove asynchronous working if transitions are disabled
CoffeeScript
mit
matthijsgroen/backbone-ui-transitions-demo,matthijsgroen/backbone-ui-transitions-demo
coffeescript
## Code Before: class UIDemo.Views.TransitionView extends Backbone.View transitionRemoveClass: (className, $el = @$el) -> p = @_transitionPromise($el) @_delay(=> $el.removeClass className).then -> p transitionAddClass: (className, $el = @$el) -> p = @_transitionPromise($el) @_delay(=> $el.addClas...
class UIDemo.Views.TransitionView extends Backbone.View transitionRemoveClass: (className, $el = @$el) -> p = @_transitionPromise($el) @_delay(=> $el.removeClass className).then -> p transitionAddClass: (className, $el = @$el) -> p = @_transitionPromise($el) @_delay(=> $el.add...
5
0.104167
4
1
19e5351511bcabf38fffbbe2b15ca55a423cf469
.travis.yml
.travis.yml
language: ruby before_install: - sudo apt-get install git subversion mercurial - gem install rspec -v "~> 3.0" rvm: - 2.5 - 2.6 - 2.7 - jruby - rbx-2
language: ruby before_install: - sudo apt-get install git subversion mercurial - gem install rspec -v "~> 3.0" rvm: - 2.5 - 2.6 - 2.7 - jruby
Remove rbx-2 from the test matrix.
Remove rbx-2 from the test matrix.
YAML
mit
postmodern/rubygems-tasks
yaml
## Code Before: language: ruby before_install: - sudo apt-get install git subversion mercurial - gem install rspec -v "~> 3.0" rvm: - 2.5 - 2.6 - 2.7 - jruby - rbx-2 ## Instruction: Remove rbx-2 from the test matrix. ## Code After: language: ruby before_install: - sudo apt-get install git subversion m...
language: ruby before_install: - sudo apt-get install git subversion mercurial - gem install rspec -v "~> 3.0" rvm: - 2.5 - 2.6 - 2.7 - jruby - - rbx-2
1
0.1
0
1
5d238418e1a9f19d194fd0e55750bea2c36b37a6
doc/index.rst
doc/index.rst
=============================== Gerbi's CMS documentation =============================== Welcome on the documentation of the simple multilingual Gerbi CMS (package name: django-page-cms). You track the latest changes to the code base on the `github project page <http://github.com/batiste/django-page-cms>`_. To get mo...
=============================== Gerbi's CMS documentation =============================== Welcome on the documentation of the simple multilingual Gerbi CMS (package name: django-page-cms). You track the latest changes to the code base on the `github project page <http://github.com/batiste/django-page-cms>`_. To get mo...
Include building the doc in the doc
Include building the doc in the doc
reStructuredText
bsd-3-clause
batiste/django-page-cms,batiste/django-page-cms,batiste/django-page-cms
restructuredtext
## Code Before: =============================== Gerbi's CMS documentation =============================== Welcome on the documentation of the simple multilingual Gerbi CMS (package name: django-page-cms). You track the latest changes to the code base on the `github project page <http://github.com/batiste/django-page-c...
=============================== Gerbi's CMS documentation =============================== Welcome on the documentation of the simple multilingual Gerbi CMS (package name: django-page-cms). You track the latest changes to the code base on the `github project page <http://github.com/batiste/django-page-cms>`...
5
0.104167
5
0
97f4c0734539c4e3269a8c058e6f8a25b49cf6a5
src/my_functions.cpp
src/my_functions.cpp
std::string createString(){ std::string hi("Hello world!"); return hi; } std::vector<std::string> createVector(){ std::vector<std::string> my_vector; my_vector.push_back(createString()); my_vector.push_back(createString()); my_vector.push_back(createString()); return my_vector; } int putStringsInVector(int nu...
std::string createString(){ std::string hi("Hello world!"); return hi; } std::vector<std::string> createVector(){ std::vector<std::string> my_vector; my_vector.push_back(createString()); my_vector.push_back(createString()); my_vector.push_back(createString()); return my_vector; } int putStringsInVector(int nu...
Add code for function test.
Add code for function test.
C++
mit
irawoodring/CIS263-Intro_to_cpp
c++
## Code Before: std::string createString(){ std::string hi("Hello world!"); return hi; } std::vector<std::string> createVector(){ std::vector<std::string> my_vector; my_vector.push_back(createString()); my_vector.push_back(createString()); my_vector.push_back(createString()); return my_vector; } int putString...
std::string createString(){ std::string hi("Hello world!"); return hi; } std::vector<std::string> createVector(){ std::vector<std::string> my_vector; my_vector.push_back(createString()); my_vector.push_back(createString()); my_vector.push_back(createString()); return my_vector; } ...
9
0.428571
9
0
bd8b23d4bad4191367e7c5eb3297769a2477afec
scripts/createSrcAndDocPackage.sh
scripts/createSrcAndDocPackage.sh
if [[ $# != 2 ]]; then cat <<USAGE usage: $0 <branch> <version> Creates tar and zip source package from origin/<branch> and documentation-zip from current checkout. Files and directories are named after <version>. example: $0 2.0.0 2.0.0-rc1 USAGE exit 1 fi BRANCH=$1 VERSION=$2 cd `dirname $0`/.. ...
if [[ $# != 2 ]]; then cat <<USAGE usage: $0 <refspec> <version> Creates tar and zip source package from <refspec> and documentation-zip from current checkout. Files and directories are named after <version>. example: $0 origin/2.0.0 2.0.0-rc1 USAGE exit 1 fi BRANCH=$1 VERSION=$2 cd `dirname $0`/....
Make src packaging script more flexible.
Make src packaging script more flexible.
Shell
lgpl-2.1
amyvmiwei/qt-creator,darksylinc/qt-creator,AltarBeastiful/qt-creator,sandsmark/qtcreator-minimap,darksylinc/qt-creator,Distrotech/qtcreator,hdweiss/qt-creator-visualizer,omniacreator/qtcreator,jonnor/qt-creator,syntheticpp/qt-creator,colede/qtcreator,xianian/qt-creator,pcacjr/qt-creator,jonnor/qt-creator,AltarBeastiful...
shell
## Code Before: if [[ $# != 2 ]]; then cat <<USAGE usage: $0 <branch> <version> Creates tar and zip source package from origin/<branch> and documentation-zip from current checkout. Files and directories are named after <version>. example: $0 2.0.0 2.0.0-rc1 USAGE exit 1 fi BRANCH=$1 VERSION=$2 cd ...
if [[ $# != 2 ]]; then cat <<USAGE usage: - $0 <branch> <version> ? - ^^ - + $0 <refspec> <version> ? ^^^^^ - Creates tar and zip source package from origin/<branch> and documentation-zip from current checkout. ? ^ ^^^^^^^^^^ - + Creates tar...
10
0.37037
5
5
b47feb8122cbfb9b56ab135402a4be0f94bbc46c
mariaDB4j-maven-plugin/src/it/start-stop-skip/verify.groovy
mariaDB4j-maven-plugin/src/it/start-stop-skip/verify.groovy
import static org.junit.Assert.assertFalse def file = new File(basedir, "build.log") assertFalse 'MariaDB4j should not have run', file.text.contains("Installing a new embedded database") assertFalse 'MariaDB4j Should not attempt to stop', file.text.contains('Shutdown Hook Deletion Thread for Temporary DB')
import static org.junit.Assert.assertFalse def file = new File(basedir, "build.log") assertFalse 'MariaDB4j should not have run', file.text.contains("Installing a new embedded database") assertFalse 'MariaDB4j Should not attempt to stop', file.text.contains('ShutdownHook quietly deleting temporary DB data directory')
Update assertion to use current shutdown thread log message
Update assertion to use current shutdown thread log message
Groovy
apache-2.0
vorburger/MariaDB4j,vorburger/MariaDB4j
groovy
## Code Before: import static org.junit.Assert.assertFalse def file = new File(basedir, "build.log") assertFalse 'MariaDB4j should not have run', file.text.contains("Installing a new embedded database") assertFalse 'MariaDB4j Should not attempt to stop', file.text.contains('Shutdown Hook Deletion Thread for Temporary ...
import static org.junit.Assert.assertFalse def file = new File(basedir, "build.log") assertFalse 'MariaDB4j should not have run', file.text.contains("Installing a new embedded database") - assertFalse 'MariaDB4j Should not attempt to stop', file.text.contains('Shutdown Hook Deletion Thread for Temporary DB') ?...
2
0.4
1
1
77d72fe0502c64294dbacdbf8defbb44ee21c088
schools/admin.py
schools/admin.py
from django.contrib import admin from .models import * class SchoolBuildingPhotoInline(admin.TabularInline): model = SchoolBuildingPhoto @admin.register(SchoolBuilding) class SchoolBuildingAdmin(admin.ModelAdmin): fields = ('school', 'building', 'begin_year', 'end_year') readonly_fields = fields lis...
from django.contrib import admin from .models import * class SchoolBuildingPhotoInline(admin.TabularInline): model = SchoolBuildingPhoto @admin.register(SchoolBuilding) class SchoolBuildingAdmin(admin.ModelAdmin): fields = ('school', 'building', 'begin_year', 'end_year') readonly_fields = fields sea...
Add search based on school name
Add search based on school name
Python
agpl-3.0
City-of-Helsinki/kore,City-of-Helsinki/kore,Rikuoja/kore,Rikuoja/kore
python
## Code Before: from django.contrib import admin from .models import * class SchoolBuildingPhotoInline(admin.TabularInline): model = SchoolBuildingPhoto @admin.register(SchoolBuilding) class SchoolBuildingAdmin(admin.ModelAdmin): fields = ('school', 'building', 'begin_year', 'end_year') readonly_fields ...
from django.contrib import admin from .models import * class SchoolBuildingPhotoInline(admin.TabularInline): model = SchoolBuildingPhoto @admin.register(SchoolBuilding) class SchoolBuildingAdmin(admin.ModelAdmin): fields = ('school', 'building', 'begin_year', 'end_year') readonly...
1
0.066667
1
0
7b87c75c1235732716455cad016c848c6930f03e
app/services/tags/create_service.rb
app/services/tags/create_service.rb
module Tags class CreateService < BaseService def execute(tag_name, target, message, release_description = nil) valid_tag = Gitlab::GitRefValidator.validate(tag_name) return error('Tag name invalid') unless valid_tag repository = project.repository message&.strip! new_tag = nil ...
module Tags class CreateService < BaseService def execute(tag_name, target, message, release_description = nil) valid_tag = Gitlab::GitRefValidator.validate(tag_name) return error('Tag name invalid') unless valid_tag repository = project.repository message = message&.strip new_tag...
Tag message is frozen so avoid stripping destructively
Tag message is frozen so avoid stripping destructively
Ruby
mit
mmkassem/gitlabhq,mmkassem/gitlabhq,axilleas/gitlabhq,dreampet/gitlab,jirutka/gitlabhq,axilleas/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,jirutka/gitlabhq,stoplightio/gitlabhq,axilleas/gitlabhq,iiet/iiet-git,jirutka/gitlabhq,stoplightio/gitlabhq,axilleas/gitlabhq,iiet/iiet-git,dreampet/gitlab,dreampet/gitlab,jiru...
ruby
## Code Before: module Tags class CreateService < BaseService def execute(tag_name, target, message, release_description = nil) valid_tag = Gitlab::GitRefValidator.validate(tag_name) return error('Tag name invalid') unless valid_tag repository = project.repository message&.strip! ...
module Tags class CreateService < BaseService def execute(tag_name, target, message, release_description = nil) valid_tag = Gitlab::GitRefValidator.validate(tag_name) return error('Tag name invalid') unless valid_tag repository = project.repository - message&.strip! ? ...
2
0.060606
1
1
0f746248186d0cb05527127b25b73110329a7f6b
src/scss/modules/_pagination.scss
src/scss/modules/_pagination.scss
/*---------------------------------------------------------------------------*\ BREADCRUMBS \*---------------------------------------------------------------------------*/ /** * A breadcrumb trail that can be configured with separators. * * Usage: <div class="breadcrumbs"> <a class="breadcrumbs_crumb" href="#...
/*---------------------------------------------------------------------------*\ PAGINATION \*---------------------------------------------------------------------------*/ /** * Pagination. * * Usage: * */ /*---------------------------------------------------------------------------*\ VARIABLES \*--------...
Create placeholder file for the pagination module
Create placeholder file for the pagination module
SCSS
mit
aptuitiv/cacao
scss
## Code Before: /*---------------------------------------------------------------------------*\ BREADCRUMBS \*---------------------------------------------------------------------------*/ /** * A breadcrumb trail that can be configured with separators. * * Usage: <div class="breadcrumbs"> <a class="breadcrumb...
/*---------------------------------------------------------------------------*\ - BREADCRUMBS + PAGINATION \*---------------------------------------------------------------------------*/ /** - * A breadcrumb trail that can be configured with separators. + * Pagination. * * Usage: - - <div class="bre...
85
0.772727
2
83
abb0c4643d56a16ef60b0f29b08407ac6378e043
src/main/java/net/exkazuu/FileManager.xtend
src/main/java/net/exkazuu/FileManager.xtend
package net.exkazuu import java.io.File import java.util.List import java.util.ArrayList import java.io.FileReader import java.io.LineNumberReader class FileManager { String root new(String root) { this.root = root } def getDirList() { return new File(root).listFiles } def List<String>...
package net.exkazuu import java.io.File import java.util.List import java.util.ArrayList import java.io.FileReader import java.io.LineNumberReader class FileManager { String root new(String root) { this.root = root } def getDirList() { return new File(root).listFiles } def List<String>...
Modify code by the comment.
Modify code by the comment.
Xtend
apache-2.0
exKAZUu/RepositoryProbe
xtend
## Code Before: package net.exkazuu import java.io.File import java.util.List import java.util.ArrayList import java.io.FileReader import java.io.LineNumberReader class FileManager { String root new(String root) { this.root = root } def getDirList() { return new File(root).listFiles } def List<String> ge...
package net.exkazuu import java.io.File import java.util.List import java.util.ArrayList import java.io.FileReader import java.io.LineNumberReader class FileManager { String root new(String root) { this.root = root } def getDirList() { return new File(root).listFiles } ...
8
0.150943
2
6
c9e5c8a42ceb67787d060b8bc1e0235214c70891
src/bin/typings-list.ts
src/bin/typings-list.ts
import minimist = require('minimist') import extend = require('xtend') import { loader, archifyDependencyTree } from '../utils/cli' import { PROJECT_NAME } from '../utils/config' import { resolveTypeDependencies } from '../lib/dependencies' interface Args { verbose: boolean help: boolean ambient: boolean } con...
import minimist = require('minimist') import extend = require('xtend') import { loader, archifyDependencyTree } from '../utils/cli' import { PROJECT_NAME } from '../utils/config' import { resolveTypeDependencies } from '../lib/dependencies' interface Args { verbose: boolean help: boolean ambient: boolean prod...
Add `production` flag to `ls`
Add `production` flag to `ls`
TypeScript
mit
typings/typings,typings/typings
typescript
## Code Before: import minimist = require('minimist') import extend = require('xtend') import { loader, archifyDependencyTree } from '../utils/cli' import { PROJECT_NAME } from '../utils/config' import { resolveTypeDependencies } from '../lib/dependencies' interface Args { verbose: boolean help: boolean ambient...
import minimist = require('minimist') import extend = require('xtend') import { loader, archifyDependencyTree } from '../utils/cli' import { PROJECT_NAME } from '../utils/config' import { resolveTypeDependencies } from '../lib/dependencies' interface Args { verbose: boolean help: boolean a...
7
0.179487
4
3
c840616609e27b2ecbe98c1e3a5b4175e98a4cbf
docs/_posts/2017-01-31-bash-unix-env.md
docs/_posts/2017-01-31-bash-unix-env.md
--- layout: post title: Navigating bash and UNIX environments -- Akos, Mitch, and Matthias comments: true category: upcoming tags: meeting <+ tags +> ---
--- layout: post title: Navigating bash and UNIX environments -- Akos, Mitch, and Matthias comments: true category: upcoming tags: meeting <+ tags +> --- # Possible topics - UNIX in general (intro, some history, roles of UNIX in society) - Shells and command-line interactions - Shell scripting (intro) # Learning re...
Add brief description and links to UNIX/BASH post
Add brief description and links to UNIX/BASH post
Markdown
bsd-3-clause
thehackerwithin/berkeley,thehackerwithin/berkeley,thehackerwithin/berkeley,thehackerwithin/berkeley,thehackerwithin/berkeley,thehackerwithin/berkeley
markdown
## Code Before: --- layout: post title: Navigating bash and UNIX environments -- Akos, Mitch, and Matthias comments: true category: upcoming tags: meeting <+ tags +> --- ## Instruction: Add brief description and links to UNIX/BASH post ## Code After: --- layout: post title: Navigating bash and UNIX environments -- ...
--- layout: post title: Navigating bash and UNIX environments -- Akos, Mitch, and Matthias comments: true category: upcoming tags: meeting <+ tags +> --- + # Possible topics + - UNIX in general (intro, some history, roles of UNIX in society) + - Shells and command-line interactions + - Shell scripti...
13
1.444444
13
0
7ee566be0abd41a551265712064335b5cec05439
ui.apps/src/main/README.md
ui.apps/src/main/README.md
Copy the two Webpack folders into your project: - `webpack.core` contains basic configurations for npm, Webpack, Babel and Jest. Our goal for further development of this project is to allow you to update this folder without having to manually configure it again. For that reason, since version 2.0.0, we have a second ...
Copy the two Webpack folders into your project: - `webpack.core` contains basic configurations for npm, Webpack, Babel and Jest. Our goal for further development of this project is to allow you to update this folder without having to manually configure it again. For that reason, since version 2.0.0, we have a second ...
Remove no longer necessary ".babelrc" instructions
Remove no longer necessary ".babelrc" instructions
Markdown
mit
infielddigital/aem-webpack-example,infielddigital/aem-webpack-example
markdown
## Code Before: Copy the two Webpack folders into your project: - `webpack.core` contains basic configurations for npm, Webpack, Babel and Jest. Our goal for further development of this project is to allow you to update this folder without having to manually configure it again. For that reason, since version 2.0.0, w...
Copy the two Webpack folders into your project: - `webpack.core` contains basic configurations for npm, Webpack, Babel and Jest. Our goal for further development of this project is to allow you to update this folder without having to manually configure it again. For that reason, since version 2.0.0, we have a...
4
0.235294
0
4
2b465d4ed422ee2fd0d7e7bc6c1e3a49a68a1bd2
README.md
README.md
[![Build Status](https://travis-ci.org/tatsuyafw/amc.svg)](https://travis-ci.org/tatsuyafw/amc) CLI tool to open AWS Management Console with your browser. ## Usage ```sh $ amc ec2 => open EC2 management console. ```
[![Build Status](https://travis-ci.org/tatsuyafw/amc.svg?branch=master)](https://travis-ci.org/tatsuyafw/amc) CLI tool to open AWS Management Console with your browser. ## Usage ```sh $ amc ec2 => open EC2 management console. ```
Fix the travis batch branch on master
Fix the travis batch branch on master
Markdown
mit
tatsuyafw/amc
markdown
## Code Before: [![Build Status](https://travis-ci.org/tatsuyafw/amc.svg)](https://travis-ci.org/tatsuyafw/amc) CLI tool to open AWS Management Console with your browser. ## Usage ```sh $ amc ec2 => open EC2 management console. ``` ## Instruction: Fix the travis batch branch on master ## Code After: [![Build Sta...
- [![Build Status](https://travis-ci.org/tatsuyafw/amc.svg)](https://travis-ci.org/tatsuyafw/amc) + [![Build Status](https://travis-ci.org/tatsuyafw/amc.svg?branch=master)](https://travis-ci.org/tatsuyafw/amc) ? ++++++++++++++ CLI tool to open AWS Managem...
2
0.181818
1
1
2ef30a8bd847c9473606b12b77f56059ae6433be
src/assets/scss/components/_overlay.scss
src/assets/scss/components/_overlay.scss
.overlay { display: none; background: rgba(255,255,255,0.85); position: fixed; top: 0; bottom: 0; left: 0; right: 0; z-index: 100; } .overlay:target { display: block; } .overlay__dialog { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; transform: translate(0, -500%)...
.overlay { display: none; background: rgba(255,255,255,0.85); position: fixed; top: 0; bottom: 0; left: 0; right: 0; z-index: 100; } .overlay:target { display: block; } .overlay__dialog { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; transform: translate(0, -500%)...
Add momentum scrolling to ios
Add momentum scrolling to ios
SCSS
mit
lewisnyman/lewisnyman.co.uk-source,lewisnyman/lewisnyman.co.uk-source,lewisnyman/lewisnyman.co.uk-source
scss
## Code Before: .overlay { display: none; background: rgba(255,255,255,0.85); position: fixed; top: 0; bottom: 0; left: 0; right: 0; z-index: 100; } .overlay:target { display: block; } .overlay__dialog { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; transform: tra...
.overlay { display: none; background: rgba(255,255,255,0.85); position: fixed; top: 0; bottom: 0; left: 0; right: 0; z-index: 100; } .overlay:target { display: block; } .overlay__dialog { display: none; position: fixed; top: 0; left: 0; right: 0; bot...
1
0.022222
1
0
7756a578608dd2cf13191491674b8e198cee0fed
.travis.yml
.travis.yml
language: cpp compiler: - gcc script: - mkdir build - cd build - cmake .. - cmake --build . --target all -- - cmake --build . --target package -- after_script: - ctest - cmake --build . --target Continous
language: cpp compiler: - gcc before_script: - sudo apt-get update -qq - sudo apt-get install libboost-dev script: - mkdir build - cd build - cmake .. - cmake --build . --target all -- - cmake --build . --target package -- after_script: - ctest - cmake --build . --target Continous
Install boost dev packages on Travis container before building.
Install boost dev packages on Travis container before building. Signed-off-by: Peter Hille (png!das-system) <4b8373d016f277527198385ba72fda0feb5da015@das-system-networks.de>
YAML
bsd-3-clause
png85/dsnutil_cpp
yaml
## Code Before: language: cpp compiler: - gcc script: - mkdir build - cd build - cmake .. - cmake --build . --target all -- - cmake --build . --target package -- after_script: - ctest - cmake --build . --target Continous ## Instruction: Install boost dev packages on Travis container before building. ...
language: cpp compiler: - gcc + + before_script: + - sudo apt-get update -qq + - sudo apt-get install libboost-dev script: - mkdir build - cd build - cmake .. - cmake --build . --target all -- - cmake --build . --target package -- after_script: - ctest - cmake --build ...
4
0.285714
4
0
070c9bb6105e5ed71b9f9b0822312bc2f2dfbcb5
bgp/flowspec/src/main/resources/org/opendaylight/blueprint/bgp-flowspec.xml
bgp/flowspec/src/main/resources/org/opendaylight/blueprint/bgp-flowspec.xml
<?xml version="1.0" encoding="UTF-8"?> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"> <bean id="flowSpecExtensionContext" class="org.opendaylight.protocol.bgp.flowspec.SimpleFlowspecExtensionProviderContext"/> <bean id="flowSpec...
<?xml version="1.0" encoding="UTF-8"?> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"> <bean id="flowSpecExtensionContext" class="org.opendaylight.protocol.bgp.flowspec.SimpleFlowspecExtensionProviderContext"/> <bean id="flowSpec...
Fix BGP-FS's BGPActivator bean arguments
Fix BGP-FS's BGPActivator bean arguments Flowspec's BGPActivator constructor signature has changed recently, reflect the change in the blueprint container. Change-Id: I2a3e477b2ec36b4f51dfbf4f53905ab58540f7a5 Signed-off-by: Milos Fabian <30e73a9e3eec1d469ad8bf9af4dd80a6e9c3a404@cisco.com>
XML
epl-1.0
opendaylight/bgpcep
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"> <bean id="flowSpecExtensionContext" class="org.opendaylight.protocol.bgp.flowspec.SimpleFlowspecExtensionProviderContext"/> <b...
<?xml version="1.0" encoding="UTF-8"?> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"> <bean id="flowSpecExtensionContext" class="org.opendaylight.protocol.bgp.flowspec.SimpleFlowspecExtensionProviderContext"/> <bea...
1
0.04
0
1
df55617448625673676ef57cb5b2e16098a4d825
src/sidebar-overlay/components/CongratsMessage.tsx
src/sidebar-overlay/components/CongratsMessage.tsx
import React, { PureComponent } from 'react' import { browser } from 'webextension-polyfill-ts' const styles = require('./CongratsMessage.css') const partyPopperIcon = browser.runtime.getURL('/img/party_popper.svg') class CongratsMessage extends PureComponent { moreAboutSidebar = () => { browser.tabs.cre...
import React, { PureComponent } from 'react' import { browser } from 'webextension-polyfill-ts' import { remoteFunction } from 'src/util/webextensionRPC' const styles = require('./CongratsMessage.css') const partyPopperIcon = browser.runtime.getURL('/img/party_popper.svg') class CongratsMessage extends PureComponent...
Use remote function to open dashboard.
Use remote function to open dashboard. In the CongratsMessage button. Fixes issue where the button wasn't working in Firefox. Also, should fix the issue where this didn't work in content script.
TypeScript
mit
WorldBrain/WebMemex,WorldBrain/WebMemex
typescript
## Code Before: import React, { PureComponent } from 'react' import { browser } from 'webextension-polyfill-ts' const styles = require('./CongratsMessage.css') const partyPopperIcon = browser.runtime.getURL('/img/party_popper.svg') class CongratsMessage extends PureComponent { moreAboutSidebar = () => { ...
import React, { PureComponent } from 'react' import { browser } from 'webextension-polyfill-ts' + import { remoteFunction } from 'src/util/webextensionRPC' const styles = require('./CongratsMessage.css') const partyPopperIcon = browser.runtime.getURL('/img/party_popper.svg') class CongratsMessage ext...
9
0.214286
4
5
897bb79e9c7bf3ef698d72e99832c0914b37e507
.travis.yml
.travis.yml
language: node_js node_js: - "0.8" - "0.10" before_script: - npm install -g component script: npm test notifications: irc: "irc.freenode.org#fbp"
language: node_js node_js: - "0.8" - "0.10" - "0.11" before_script: - npm install -g component script: npm test notifications: irc: "irc.freenode.org#fbp"
Test with Node.js 0.11 as well
Test with Node.js 0.11 as well
YAML
mit
jonnor/noflo,npmcomponent/noflo-noflo,trustmaster/noflo,lxfschr/noflo,jonnor/noflo,lxfschr/noflo,trustmaster/noflo,noflo/noflo,saurabhsood91/noflo,saurabhsood91/noflo
yaml
## Code Before: language: node_js node_js: - "0.8" - "0.10" before_script: - npm install -g component script: npm test notifications: irc: "irc.freenode.org#fbp" ## Instruction: Test with Node.js 0.11 as well ## Code After: language: node_js node_js: - "0.8" - "0.10" - "0.11" before_script: - np...
language: node_js node_js: - "0.8" - "0.10" + - "0.11" before_script: - npm install -g component script: npm test notifications: irc: "irc.freenode.org#fbp"
1
0.083333
1
0
4b765ef82c90fb2a4cb627c2a6860f60d84e29a4
Casks/lytro-desktop.rb
Casks/lytro-desktop.rb
cask 'lytro-desktop' do version '4.3.3,151118.98' sha256 '500b28ed7d67aaf18a59a8770e3fb83a4b96e692728ddbd522a52879af758966' # amazonaws.com/lytro-desktop-support was verified as official when first introduced to the cask url "https://s3.amazonaws.com/lytro-distro/lytro-#{version.after_comma}.dmg" appcast 'ht...
cask 'lytro-desktop' do version '4.3.3,151118.98' sha256 '500b28ed7d67aaf18a59a8770e3fb83a4b96e692728ddbd522a52879af758966' # amazonaws.com/lytro-distro was verified as official when first introduced to the cask url "https://s3.amazonaws.com/lytro-distro/lytro-#{version.after_comma}.dmg" appcast 'https://pic...
Fix `url` stanza comment for Lytro Desktop.
Fix `url` stanza comment for Lytro Desktop.
Ruby
bsd-2-clause
vitorgalvao/homebrew-cask,bosr/homebrew-cask,jalaziz/homebrew-cask,Cottser/homebrew-cask,jconley/homebrew-cask,seanzxx/homebrew-cask,jedahan/homebrew-cask,lifepillar/homebrew-cask,joschi/homebrew-cask,mattrobenolt/homebrew-cask,sscotth/homebrew-cask,sscotth/homebrew-cask,josa42/homebrew-cask,cprecioso/homebrew-cask,rog...
ruby
## Code Before: cask 'lytro-desktop' do version '4.3.3,151118.98' sha256 '500b28ed7d67aaf18a59a8770e3fb83a4b96e692728ddbd522a52879af758966' # amazonaws.com/lytro-desktop-support was verified as official when first introduced to the cask url "https://s3.amazonaws.com/lytro-distro/lytro-#{version.after_comma}.dm...
cask 'lytro-desktop' do version '4.3.3,151118.98' sha256 '500b28ed7d67aaf18a59a8770e3fb83a4b96e692728ddbd522a52879af758966' - # amazonaws.com/lytro-desktop-support was verified as official when first introduced to the cask ? ^ - --------- + # amazonaws.com/lytro-distro was ve...
2
0.142857
1
1
10bfa701f352e0f916b1edd9913bee788f09568f
oscar/apps/catalogue/managers.py
oscar/apps/catalogue/managers.py
from django.db import models class ProductManager(models.Manager): def base_queryset(self): """ Return ``QuerySet`` with related content pre-loaded. """ return self.get_query_set().select_related('product_class')\ .prefetch_related('variants', ...
from django.db import models class ProductQuerySet(models.query.QuerySet): def base_queryset(self): """ Applies select_related and prefetch_related for commonly related models to save on queries """ return self.select_related('product_class')\ .prefetch_related...
Allow chaining of Product's custom querysets
Allow chaining of Product's custom querysets This aligns the implementation of Oscar specific QuerySet Methods with the implementation in current django core[1]. While this is not DRY, it does deliver on chainability and can be seen as preparation to take advantage of the improvements coming to this part of django in ...
Python
bsd-3-clause
thechampanurag/django-oscar,mexeniz/django-oscar,jinnykoo/wuyisj,monikasulik/django-oscar,dongguangming/django-oscar,QLGu/django-oscar,WadeYuChen/django-oscar,josesanch/django-oscar,vovanbo/django-oscar,sonofatailor/django-oscar,ahmetdaglarbas/e-commerce,itbabu/django-oscar,WadeYuChen/django-oscar,anentropic/django-osc...
python
## Code Before: from django.db import models class ProductManager(models.Manager): def base_queryset(self): """ Return ``QuerySet`` with related content pre-loaded. """ return self.get_query_set().select_related('product_class')\ .prefetch_related('variants', ...
from django.db import models - class ProductManager(models.Manager): + class ProductQuerySet(models.query.QuerySet): def base_queryset(self): """ - Return ``QuerySet`` with related content pre-loaded. + Applies select_related and prefetch_related for commonly related + ...
40
1.538462
33
7
e2437ba31ea2c7f35afaeb2ec966062b2dfa2f5e
manage.py
manage.py
from os.path import abspath from flask import current_app as app from app import create_app, db # from app.model import init_db from flask.ext.script import Manager manager = Manager(create_app) manager.add_option('-m', '--cfgmode', dest='config_mode', default='Development') manager.add_option('-f', '--cfgfile', dest...
from os.path import abspath from flask import current_app as app from app import create_app, db # from app.model import init_db, populate_db() from flask.ext.script import Manager manager = Manager(create_app) manager.add_option('-m', '--cfgmode', dest='config_mode', default='Development') manager.add_option('-f', '-...
Add popdb() and edit descriptions
Add popdb() and edit descriptions
Python
mit
nerevu/prometheus-api,nerevu/prometheus-api,nerevu/prometheus-api
python
## Code Before: from os.path import abspath from flask import current_app as app from app import create_app, db # from app.model import init_db from flask.ext.script import Manager manager = Manager(create_app) manager.add_option('-m', '--cfgmode', dest='config_mode', default='Development') manager.add_option('-f', '...
from os.path import abspath from flask import current_app as app from app import create_app, db - # from app.model import init_db + # from app.model import init_db, populate_db() ? +++++++++++++++ from flask.ext.script import Manager manager = Manager(create_app) manage...
28
0.571429
19
9
b0e05495d46f45bea07de5bbdf359fdf8416c7f3
test/conjoiner.js
test/conjoiner.js
'use strict'; var conjoiners = require('../lib/conjoiners'); exports['simple inter-process communication'] = function(test) { test.expect(3); var value = 'test_value'; var cj1 = {}; var cj1Name = 'test'; var cj2 = { onTransenlightenment: function (event) { test.equal(event.pro...
'use strict'; var conjoiners = require('../lib/conjoiners'); exports['simple inter-process communication'] = function(test) { test.expect(3); var value = 'test_value'; var cj1 = {}; var cj1Name = 'test'; var cj2 = { onTransenlightenment: function (event) { test.equal(event.pro...
Test should not rely on setTimeout
Test should not rely on setTimeout
JavaScript
apache-2.0
conjoiners/conjoiners-node.js
javascript
## Code Before: 'use strict'; var conjoiners = require('../lib/conjoiners'); exports['simple inter-process communication'] = function(test) { test.expect(3); var value = 'test_value'; var cj1 = {}; var cj1Name = 'test'; var cj2 = { onTransenlightenment: function (event) { test...
'use strict'; var conjoiners = require('../lib/conjoiners'); exports['simple inter-process communication'] = function(test) { test.expect(3); var value = 'test_value'; var cj1 = {}; var cj1Name = 'test'; var cj2 = { onTransenlightenment: function (event) { ...
7
0.25
2
5
700f316c0ca9aa873181111752ba99b0f17a1d35
src-es6/test/classTest.js
src-es6/test/classTest.js
import test from 'tape' import { Vector, Polygon, Rectangle, Circle, ShapeEventEmitter } from '..' test('Polygon#contains', t => { t.plan(5) //Disable warning about missing 'new'. That's what we are testing /*jshint -W064 */ /*eslint-disable new-cap */ t.throws(()=> Polygon(), TypeError) t.throws(()=> Rect...
import test from 'tape' import { Vector, Polygon, Rectangle, Circle, ShapeEventEmitter } from '..' test('Classtest', t => { t.plan(5) //Disable warning about missing 'new'. That's what we are testing /*jshint -W064 */ /*eslint-disable new-cap */ t.throws(()=> Polygon(), TypeError) t.throws(()=> Rectangle()...
Fix name for the classtest
Fix name for the classtest
JavaScript
mit
tillarnold/shapes
javascript
## Code Before: import test from 'tape' import { Vector, Polygon, Rectangle, Circle, ShapeEventEmitter } from '..' test('Polygon#contains', t => { t.plan(5) //Disable warning about missing 'new'. That's what we are testing /*jshint -W064 */ /*eslint-disable new-cap */ t.throws(()=> Polygon(), TypeError) t....
import test from 'tape' import { Vector, Polygon, Rectangle, Circle, ShapeEventEmitter } from '..' - test('Polygon#contains', t => { + test('Classtest', t => { t.plan(5) //Disable warning about missing 'new'. That's what we are testing /*jshint -W064 */ /*eslint-disable new-cap */ t.throws(()...
2
0.117647
1
1
c40b81c8960477cf4e4f1812b26f794b62c46efd
README.md
README.md
node-fanin [![Build Status][1]][2] ========== A simple concurrency pattern: fan-in Status: Untested in production, but ready to be. ## Why do you need fan-in? - You want to make `total` asynchronous calls simultaneously and make a callback when all have finished. - You may want to save the callback values of these ...
node-fanin [![Build Status][1]][2] ========== A simple concurrency pattern: fan-in Status: Untested in production, but ready to be. ## Why do you need fan-in? - You want to make `n` asynchronous calls simultaneously and make a callback when all have finished. - You may want to save the callback values of these call...
Make readme markdown npm friendly
Make readme markdown npm friendly
Markdown
mit
yanatan16/node-fanin
markdown
## Code Before: node-fanin [![Build Status][1]][2] ========== A simple concurrency pattern: fan-in Status: Untested in production, but ready to be. ## Why do you need fan-in? - You want to make `total` asynchronous calls simultaneously and make a callback when all have finished. - You may want to save the callback ...
node-fanin [![Build Status][1]][2] ========== A simple concurrency pattern: fan-in Status: Untested in production, but ready to be. ## Why do you need fan-in? - - You want to make `total` asynchronous calls simultaneously and make a callback when all have finished. ? ^^^^^ + -...
17
0.361702
8
9
e5d4685e2aec3c40253a62f75b1266024ad3af2f
src/server/config/index.js
src/server/config/index.js
import Joi from 'joi'; import jsonServerConfig from 'config/server.json'; import schema from './schema.js'; class ServerConfig { constructor() { this._jsonConfig = jsonServerConfig; /** * Validate the JSON config */ try { Joi.validate(this._jsonConfig, schema); } catch (e) { co...
import Joi from 'joi'; import jsonServerConfig from 'config/server.json'; import schema from './schema.js'; class ServerConfig { constructor() { /** * Validate the JSON config */ try { this._jsonConfig = Joi.validate(jsonServerConfig, schema).value; } catch (e) { console.error('The ...
Update logger and add config
Update logger and add config
JavaScript
mit
LuudJanssen/plus-min-list,LuudJanssen/plus-min-list,LuudJanssen/plus-min-list
javascript
## Code Before: import Joi from 'joi'; import jsonServerConfig from 'config/server.json'; import schema from './schema.js'; class ServerConfig { constructor() { this._jsonConfig = jsonServerConfig; /** * Validate the JSON config */ try { Joi.validate(this._jsonConfig, schema); } catc...
import Joi from 'joi'; import jsonServerConfig from 'config/server.json'; import schema from './schema.js'; class ServerConfig { constructor() { - this._jsonConfig = jsonServerConfig; - /** * Validate the JSON config */ try { - Joi.validate(this._jsonConfig, schema); ...
4
0.166667
1
3
a612e39f2395aa04bb3fd063188c4a1038324b04
stock.py
stock.py
class Stock: def __init__(self, symbol): self.symbol = symbol self.price = None def update(self, timestamp, price): self.price = price
class Stock: def __init__(self, symbol): self.symbol = symbol self.price = None def update(self, timestamp, price): if price < 0: raise ValueError("price should not be negative") self.price = price
Update update method for negative price exception.
Update update method for negative price exception.
Python
mit
bsmukasa/stock_alerter
python
## Code Before: class Stock: def __init__(self, symbol): self.symbol = symbol self.price = None def update(self, timestamp, price): self.price = price ## Instruction: Update update method for negative price exception. ## Code After: class Stock: def __init__(self, symbol): ...
class Stock: def __init__(self, symbol): self.symbol = symbol self.price = None def update(self, timestamp, price): + if price < 0: + raise ValueError("price should not be negative") self.price = price
2
0.285714
2
0
436649e73792da529b5418cf1e8cf3cdf72a6e81
src/utils.js
src/utils.js
import { spawn } from 'child_process' const MONTH_NAMES = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] // Simple util for calling a child process export function cmd (string, options = {}) { const [ cmd, ...args ] = string.split(' ') re...
import { spawn } from 'child_process' const MONTH_NAMES = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] // Simple util for calling a child process export function cmd (string) { const [ cmd, ...args ] = string.split(' ') return new Promi...
Remove unused options param from cmd util
Remove unused options param from cmd util
JavaScript
mit
CookPete/auto-changelog,CookPete/auto-changelog
javascript
## Code Before: import { spawn } from 'child_process' const MONTH_NAMES = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] // Simple util for calling a child process export function cmd (string, options = {}) { const [ cmd, ...args ] = string...
import { spawn } from 'child_process' const MONTH_NAMES = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] // Simple util for calling a child process - export function cmd (string, options = {}) { ? --------...
4
0.125
2
2
3196853a02a0eacc5b5f452fdd18d926b928559e
straw-ios-service-http-spec.js
straw-ios-service-http-spec.js
/* global straw, describe, it, chai */ var expect = chai.expect; describe('straw.service.http', function () { 'use strict'; it('is a object', function () { expect(straw.service.http).to.be.a('object'); }); describe('get', function () { it('is a function', function () { ...
/* global straw, describe, it, chai, sinon */ var expect = chai.expect; describe('straw.service.http', function () { 'use strict'; it('is a object', function () { expect(straw.service.http).to.be.a('object'); }); describe('.get', function () { it('is a function', function () { ...
Add the test of get
Add the test of get
JavaScript
mit
strawjs/straw-ios-service-http.js
javascript
## Code Before: /* global straw, describe, it, chai */ var expect = chai.expect; describe('straw.service.http', function () { 'use strict'; it('is a object', function () { expect(straw.service.http).to.be.a('object'); }); describe('get', function () { it('is a function', function (...
- /* global straw, describe, it, chai */ + /* global straw, describe, it, chai, sinon */ ? +++++++ var expect = chai.expect; describe('straw.service.http', function () { 'use strict'; it('is a object', function () { expect(straw.service.http).to.be....
16
0.761905
14
2
7a47d27709c5f0fb12a31b04cf81b7b90c5dd3bb
EDMGen.html
EDMGen.html
<script src="js/genEDM.js"> </script> <script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script> <div style="margin: 20%"> <h1> EDM Generator (under construction)</h1> <div> [HUMOR] Generates any number of names i...
<script src="js/genEDM.js"> </script> <div style="margin: 20%"> <h1> EDM Generator (under construction)</h1> <div> [HUMOR] Generates any number of names in the style of EDM artist names </div> <h4> Number of Names </h4> <div> <input id="number" type="number" name="number of names" min="1" max="10"> <button type="button...
Fix charm breaking on edm site
Fix charm breaking on edm site
HTML
mit
techlover10/techlover10.github.io,techlover10/techlover10.github.io
html
## Code Before: <script src="js/genEDM.js"> </script> <script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script> <div style="margin: 20%"> <h1> EDM Generator (under construction)</h1> <div> [HUMOR] Generates any n...
<script src="js/genEDM.js"> </script> - <script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script> <div style="margin: 20%"> <h1> EDM Generator (under construction)</h1> <div> [HUMOR] Generates any number ...
1
0.071429
0
1
25abed8e1a6d5326690db34cc87a1a9e99acbca1
build/build_afl.sh
build/build_afl.sh
pushd $(dirname "$0") >/dev/null BUILD_DIR="`pwd`" popd >/dev/null cd $BUILD_DIR # require afl 1.83b AFL_URL="http://lcamtuf.coredump.cx/afl/releases/afl-1.83b.tgz" ARCHIVE="`basename -- "$AFL_URL"`" wget -O "$ARCHIVE" -- "$AFL_URL" || exit 1 rm -rf "afl-1.83b" || exit 1 tar xf "$ARCHIVE" || exit 1 # apply the dr...
pushd $(dirname "$0") >/dev/null BUILD_DIR="`pwd`" popd >/dev/null cd $BUILD_DIR # require afl 1.83b VERS="1.83b" AFL_URL="http://lcamtuf.coredump.cx/afl/releases/afl-$VERS.tgz" ARCHIVE="`basename -- "$AFL_URL"`" wget -O "$ARCHIVE" -- "$AFL_URL" || exit 1 rm -rf "afl-$VERS" || exit 1 tar xf "$ARCHIVE" || exit 1 #...
Put afl version number into an environment variable and soft link the afl build directory to 'afl'
Put afl version number into an environment variable and soft link the afl build directory to 'afl'
Shell
bsd-2-clause
shellphish/driller
shell
## Code Before: pushd $(dirname "$0") >/dev/null BUILD_DIR="`pwd`" popd >/dev/null cd $BUILD_DIR # require afl 1.83b AFL_URL="http://lcamtuf.coredump.cx/afl/releases/afl-1.83b.tgz" ARCHIVE="`basename -- "$AFL_URL"`" wget -O "$ARCHIVE" -- "$AFL_URL" || exit 1 rm -rf "afl-1.83b" || exit 1 tar xf "$ARCHIVE" || exit 1...
pushd $(dirname "$0") >/dev/null BUILD_DIR="`pwd`" popd >/dev/null cd $BUILD_DIR # require afl 1.83b + VERS="1.83b" - AFL_URL="http://lcamtuf.coredump.cx/afl/releases/afl-1.83b.tgz" ? ^^^^^ + AFL_URL="http://lcamtuf.coredump.cx/afl/releases/afl-$VERS...
10
0.333333
7
3
411ac9be4931ab8c3d46baf82c9d9230fb60a091
src/pericles/routes.clj
src/pericles/routes.clj
(ns pericles.routes (:require [compojure.core :refer :all] [compojure.route :as route] [compojure.coercions :refer [as-int]] [ring.middleware.defaults :refer [wrap-defaults api-defaults]] [ring.util.http-response :as resp] [gpio.core :as gpio] [p...
(ns pericles.routes (:require [compojure.core :refer :all] [compojure.route :as route] [compojure.coercions :refer [as-int]] [ring.middleware.defaults :refer [wrap-defaults api-defaults]] [ring.util.http-response :as resp] [gpio.core :as gpio] [p...
Read port on load; Redirect / to index.html
Read port on load; Redirect / to index.html
Clojure
epl-1.0
dimitrijer/pericles,dimitrijer/pericles
clojure
## Code Before: (ns pericles.routes (:require [compojure.core :refer :all] [compojure.route :as route] [compojure.coercions :refer [as-int]] [ring.middleware.defaults :refer [wrap-defaults api-defaults]] [ring.util.http-response :as resp] [gpio.core :as gpio...
(ns pericles.routes (:require [compojure.core :refer :all] [compojure.route :as route] [compojure.coercions :refer [as-int]] [ring.middleware.defaults :refer [wrap-defaults api-defaults]] [ring.util.http-response :as resp] [gpio.core :as gpio] ...
2
0.083333
1
1
b2b1c2b8543cae37990262b2a811a9b0f26327da
arm/utils/locker.py
arm/utils/locker.py
from kvs import CacheKvs class Locker(object): """ locker for move the locker """ LOCKER_KEY = 'locker' EXPIRES = 5 # 5 sec def __init__(self, key=None): self.key = self.LOCKER_KEY if key: self.key += '.{}'.format(key) self.locker = CacheKvs(self.key) ...
from kvs import CacheKvs class Locker(object): """ locker for move the locker """ LOCKER_KEY = 'locker' EXPIRES = 5 # 5 sec def __init__(self, key=None): self.key = self.LOCKER_KEY if key: self.key += '.{}'.format(key) self.locker = CacheKvs(self.key) ...
Fix redis lock, use SETNX
Fix redis lock, use SETNX
Python
mit
mapler/tuesday,mapler/tuesday,mapler/tuesday
python
## Code Before: from kvs import CacheKvs class Locker(object): """ locker for move the locker """ LOCKER_KEY = 'locker' EXPIRES = 5 # 5 sec def __init__(self, key=None): self.key = self.LOCKER_KEY if key: self.key += '.{}'.format(key) self.locker = CacheK...
from kvs import CacheKvs class Locker(object): """ locker for move the locker """ LOCKER_KEY = 'locker' EXPIRES = 5 # 5 sec def __init__(self, key=None): self.key = self.LOCKER_KEY if key: self.key += '.{}'.format(key) self...
16
0.421053
7
9
943fda9bf20a2a852d8a6646f4e099f96a800138
packages/co/core-compiler.yaml
packages/co/core-compiler.yaml
homepage: https://github.com/aneksteind/Core#readme changelog-type: '' hash: 6f2ebf9e83fd38492a7add3c71c57e59dbc01eb2034374749d4e0a607e46ae6a test-bench-deps: {} maintainer: aneksteind@gmail.com synopsis: compile your own mini functional language with Core changelog: '' basic-deps: base: ! '>=4.7 && <5' unordered-c...
homepage: https://github.com/aneksteind/Core#readme changelog-type: '' hash: ecbee79cdeef270e2718b4c12a5b0d1ee9cacd0350e564d8326efdb5082c7e13 test-bench-deps: {} maintainer: aneksteind@gmail.com synopsis: compile your own mini functional language with Core changelog: '' basic-deps: base: ! '>=4.7 && <5' unordered-c...
Update from Hackage at 2017-08-06T01:02:07Z
Update from Hackage at 2017-08-06T01:02:07Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/aneksteind/Core#readme changelog-type: '' hash: 6f2ebf9e83fd38492a7add3c71c57e59dbc01eb2034374749d4e0a607e46ae6a test-bench-deps: {} maintainer: aneksteind@gmail.com synopsis: compile your own mini functional language with Core changelog: '' basic-deps: base: ! '>=4.7 && <...
homepage: https://github.com/aneksteind/Core#readme changelog-type: '' - hash: 6f2ebf9e83fd38492a7add3c71c57e59dbc01eb2034374749d4e0a607e46ae6a + hash: ecbee79cdeef270e2718b4c12a5b0d1ee9cacd0350e564d8326efdb5082c7e13 test-bench-deps: {} maintainer: aneksteind@gmail.com synopsis: compile your own mini function...
5
0.208333
3
2
b4473d45ba5925551334762bc02708fcb373c957
config.py
config.py
CONFIG = { 'database': './ida_info.sqlite3', 'out_dir': './code_gen/', 'verbose': False }
CONFIG = { 'database': './ida_info.sqlite3', 'out_dir': './code_gen/', 'verbose': False, 'page_size': 100 }
Add page size for sql query
Add page size for sql query
Python
mit
goodwinxp/ATFGenerator,goodwinxp/ATFGenerator,goodwinxp/ATFGenerator
python
## Code Before: CONFIG = { 'database': './ida_info.sqlite3', 'out_dir': './code_gen/', 'verbose': False } ## Instruction: Add page size for sql query ## Code After: CONFIG = { 'database': './ida_info.sqlite3', 'out_dir': './code_gen/', 'verbose': False, 'page_size': 100 }
CONFIG = { 'database': './ida_info.sqlite3', 'out_dir': './code_gen/', - 'verbose': False + 'verbose': False, ? + + 'page_size': 100 }
3
0.6
2
1
8e0d174cc74fee170bb2749e51f8e14057b48996
app/assets/stylesheets/global/_site-header.scss
app/assets/stylesheets/global/_site-header.scss
.site-header { .container { @media (min-width: $grid-float-breakpoint) and (max-width: $screen-md-max) { width: 100%; } } form[role="search"] { // restrict width of search form to avoid nav-bar wrapping @media (min-width: $grid-float-breakpoint) and (max-width: 67em) { width: 13em; ...
.site-header { .container { @media (min-width: $grid-float-breakpoint) and (max-width: $screen-md-max) { width: 100%; } } } // override bootstrap default height, which // is too short for our content. .navbar-fixed-top .navbar-collapse { max-height: 420px; } .help .glyphicon-new-window { font-si...
Remove CSS that restricted the search box size
Remove CSS that restricted the search box size It seems we don't need to worry about restricting the size now that we have more room.
SCSS
agpl-3.0
otherchirps/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,openaustralia/morph
scss
## Code Before: .site-header { .container { @media (min-width: $grid-float-breakpoint) and (max-width: $screen-md-max) { width: 100%; } } form[role="search"] { // restrict width of search form to avoid nav-bar wrapping @media (min-width: $grid-float-breakpoint) and (max-width: 67em) { ...
.site-header { .container { @media (min-width: $grid-float-breakpoint) and (max-width: $screen-md-max) { width: 100%; - } - } - - form[role="search"] { - // restrict width of search form to avoid nav-bar wrapping - @media (min-width: $grid-float-breakpoint) and (max-width: 67em) { -...
7
0.291667
0
7
f346650c733d1f4775dc5dfb280565c207e3211e
src/utils/validators.ts
src/utils/validators.ts
import * as _ from 'lodash'; import * as moment from 'moment'; import { badRequest } from 'boom'; import * as Joi from 'joi'; namespace schemas { export const username = Joi.string().token().empty().min(2).max(20).label('Username'); export const password = Joi.string().empty().min(1).label('Password'); export co...
import * as _ from 'lodash'; import * as moment from 'moment'; import { badRequest } from 'boom'; import * as Joi from 'joi'; namespace schemas { export const username = Joi.string().token().empty().min(2).max(20).label('Username'); export const password = Joi.string().empty().min(1).label('Password'); export co...
Set minimum and maximum to transaction amount
Set minimum and maximum to transaction amount
TypeScript
mit
majori/piikki
typescript
## Code Before: import * as _ from 'lodash'; import * as moment from 'moment'; import { badRequest } from 'boom'; import * as Joi from 'joi'; namespace schemas { export const username = Joi.string().token().empty().min(2).max(20).label('Username'); export const password = Joi.string().empty().min(1).label('Passwor...
import * as _ from 'lodash'; import * as moment from 'moment'; import { badRequest } from 'boom'; import * as Joi from 'joi'; namespace schemas { export const username = Joi.string().token().empty().min(2).max(20).label('Username'); export const password = Joi.string().empty().min(1).label('Passwor...
2
0.058824
1
1
843676b04d11bcbdfd09e24e5e61a3ef6340542d
lib/generators/templates/create_diffit_table.rb
lib/generators/templates/create_diffit_table.rb
class CreateColumnDiffs < ActiveRecord::Migration def change create_table :column_diffs do |t| t.datetime :changed_at t.string :model_name t.integer :record_id t.string :column_name t.hstore :value end add_index :column_diffs, :changed_at add_index :column_diffs, ...
class CreateColumnDiffs < ActiveRecord::Migration def change create_table :column_diffs do |t| t.datetime :changed_at t.string :table_name t.integer :record_id t.string :column_name t.hstore :value end add_index :column_diffs, :changed_at add_index :column_diffs, ...
Rename model_name to table_name in diff table
Rename model_name to table_name in diff table
Ruby
mit
gazay/diffit,gazay/diffit,gazay/diffit
ruby
## Code Before: class CreateColumnDiffs < ActiveRecord::Migration def change create_table :column_diffs do |t| t.datetime :changed_at t.string :model_name t.integer :record_id t.string :column_name t.hstore :value end add_index :column_diffs, :changed_at add_index...
class CreateColumnDiffs < ActiveRecord::Migration def change create_table :column_diffs do |t| t.datetime :changed_at - t.string :model_name ? ^^^ - + t.string :table_name ? ^^^^ t.integer :record_id t.string :column_name ...
8
0.5
4
4
8d400ef82be7cdde34c1fa88b78b05bc47e9894c
app/views/adhoq/queries/index.html.slim
app/views/adhoq/queries/index.html.slim
.col-md-12 ol.breadcrumb li.active Index #queries.col-md-3 section.queries = render 'queries', queries: @queries #the-query.col-md-9 = render 'query', query: @queries.first
.col-md-12 ol.breadcrumb li.active Index #queries.col-md-3 section.queries = render 'queries', queries: @queries #the-query.col-md-9 - if first_query = @queries.first = render 'query', query: first_query
Fix error when no Query record
Fix error when no Query record
Slim
mit
esminc/adhoq,mataki/adhoq,mataki/adhoq,joker1007/adhoq,joker1007/adhoq,joker1007/adhoq,esminc/adhoq,esminc/adhoq,mataki/adhoq
slim
## Code Before: .col-md-12 ol.breadcrumb li.active Index #queries.col-md-3 section.queries = render 'queries', queries: @queries #the-query.col-md-9 = render 'query', query: @queries.first ## Instruction: Fix error when no Query record ## Code After: .col-md-12 ol.breadcrumb li.active Index #qu...
.col-md-12 ol.breadcrumb li.active Index #queries.col-md-3 section.queries = render 'queries', queries: @queries #the-query.col-md-9 + - if first_query = @queries.first - = render 'query', query: @queries.first ? --------- + = render 'query', query: fi...
3
0.3
2
1
316c885ff2c13a5f333a5cb2bca31407a9011f00
package_test/test_testsuite.sh
package_test/test_testsuite.sh
if [ -z "${BRANCH}" ] ; then echo "Error : BRANCH env variable not defined" exit 1 fi wd=`pwd` echo Working dir $wd # Get testsuite git clone git@github.com:C2SM-RCM/testsuite cd testsuite git checkout ${BRANCH} echo "Last commit in testsuite repo:" git --no-pager log -1 cd $wd # First, test cosmo-pompa...
if [ -z "${BRANCH}" ] ; then echo "Error : BRANCH env variable not defined" exit 1 fi if [ -z "${ORGANIZATION}" ] ; then export ORGANIZATION="C2SM-RCM" fi wd=`pwd` echo Working dir $wd # Get testsuite git clone git@github.com:${ORGANIZATION}/testsuite cd testsuite git checkout ${BRANCH} echo "Last c...
Add github ORGANIZATION variable to testsuite_test
Add github ORGANIZATION variable to testsuite_test
Shell
bsd-2-clause
C2SM-RCM/buildenv,C2SM-RCM/buildenv
shell
## Code Before: if [ -z "${BRANCH}" ] ; then echo "Error : BRANCH env variable not defined" exit 1 fi wd=`pwd` echo Working dir $wd # Get testsuite git clone git@github.com:C2SM-RCM/testsuite cd testsuite git checkout ${BRANCH} echo "Last commit in testsuite repo:" git --no-pager log -1 cd $wd # First, ...
if [ -z "${BRANCH}" ] ; then echo "Error : BRANCH env variable not defined" exit 1 fi + if [ -z "${ORGANIZATION}" ] ; then + export ORGANIZATION="C2SM-RCM" + fi wd=`pwd` echo Working dir $wd # Get testsuite - git clone git@github.com:C2SM-RCM/testsuite ? ...
5
0.131579
4
1
b5c1c67a6b193c3df733f18079b9b822682076f3
docs/views/layout_unbranded.html
docs/views/layout_unbranded.html
{% extends "template.njk" %} {% block head %} <link href="/public/stylesheets/unbranded.css" media="screen" rel="stylesheet" type="text/css"> {% endblock %} {% block header %}{% endblock %} {% block footer %}{% endblock %} {% block body_end %} {% include "includes/scripts.html" %} {% endblock %}
{% extends "template.njk" %} {% block headIcons %} <link rel="shortcut icon" href="{{ asset_path }}images/unbranded.ico?0.18.3" type="image/x-icon" /> <link rel="mask-icon" href="{{ asset_path }}images/gov.uk_logotype_crown.svg?0.18.3" color="#0b0c0c"> <link rel="apple-touch-icon-precomposed" sizes="152x152" hre...
Set custom head icons in unbranded template
Set custom head icons in unbranded template
HTML
mit
dwpdigitaltech/hrt-prototype,alphagov/govuk_prototype_kit,alphagov/govuk_prototype_kit,alphagov/govuk_prototype_kit,dwpdigitaltech/hrt-prototype,dwpdigitaltech/hrt-prototype
html
## Code Before: {% extends "template.njk" %} {% block head %} <link href="/public/stylesheets/unbranded.css" media="screen" rel="stylesheet" type="text/css"> {% endblock %} {% block header %}{% endblock %} {% block footer %}{% endblock %} {% block body_end %} {% include "includes/scripts.html" %} {% endblock %} ...
{% extends "template.njk" %} + + {% block headIcons %} + <link rel="shortcut icon" href="{{ asset_path }}images/unbranded.ico?0.18.3" type="image/x-icon" /> + <link rel="mask-icon" href="{{ asset_path }}images/gov.uk_logotype_crown.svg?0.18.3" color="#0b0c0c"> + <link rel="apple-touch-icon-precomposed" sizes="...
9
0.75
9
0
0bc4b35e1ceda5e3c833b20c2a584f13c07def65
app/ReactiveMap.js
app/ReactiveMap.js
import { default as React, Component } from 'react'; import { render } from 'react-dom'; var helper = require('./helper.js'); export class ReactiveMap extends Component { constructor(props) { super(props); this.appbaseRef = helper.getAppbaseRef(this.props.config); } render() { return false; } }
import { default as React, Component } from 'react'; import { render } from 'react-dom'; var helper = require('./helper.js'); export class ReactiveMap extends Component { constructor(props) { super(props); helper.setConfigObject(this.props.config); } render() { return false; } }
Set the config object in Reactive Map
Set the config object in Reactive Map
JavaScript
apache-2.0
appbaseio/reactive-maps,appbaseio/reactive-maps
javascript
## Code Before: import { default as React, Component } from 'react'; import { render } from 'react-dom'; var helper = require('./helper.js'); export class ReactiveMap extends Component { constructor(props) { super(props); this.appbaseRef = helper.getAppbaseRef(this.props.config); } render() { return...
import { default as React, Component } from 'react'; import { render } from 'react-dom'; var helper = require('./helper.js'); export class ReactiveMap extends Component { constructor(props) { super(props); - this.appbaseRef = helper.getAppbaseRef(this.props.config); + helper.setConfigObj...
2
0.133333
1
1
483d62c5d39223424ceb182666b606848d96a681
rundeckapp/grails-spa/packages/ui-trellis/theme/scss/paper/_view.scss
rundeckapp/grails-spa/packages/ui-trellis/theme/scss/paper/_view.scss
.view { height: 100vh; width: 100vw; overflow: hidden; display: grid; grid-template-areas: "header" "main" "utility"; grid-template-rows: min-content 1fr 22px; grid-template-columns: 1fr; } .view > section { overflow: hidden; } #section-header { position:...
.view { height: 100vh; width: 100vw; overflow: hidden; display: grid; grid-template-areas: "header" "main" "utility"; grid-template-rows: min-content 1fr 22px; grid-template-columns: 1fr; } .view > section { overflow: hidden; } #section-header { position:...
Adjust zindex so bars are above main area
Adjust zindex so bars are above main area
SCSS
apache-2.0
rundeck/rundeck,rundeck/rundeck,rundeck/rundeck,variacode/rundeck,variacode/rundeck,rundeck/rundeck,rundeck/rundeck,variacode/rundeck,variacode/rundeck,variacode/rundeck
scss
## Code Before: .view { height: 100vh; width: 100vw; overflow: hidden; display: grid; grid-template-areas: "header" "main" "utility"; grid-template-rows: min-content 1fr 22px; grid-template-columns: 1fr; } .view > section { overflow: hidden; } #section-header...
.view { height: 100vh; width: 100vw; overflow: hidden; display: grid; grid-template-areas: "header" "main" "utility"; grid-template-rows: min-content 1fr 22px; grid-template-columns: 1fr; } .view > section { overflow: hidden...
3
0.04918
3
0
7245ec3088f760f70bc165b0af3571870e1aac0f
README.md
README.md
The UI Extensions SDK is a JavaScript library that allows developers to create custom UI Extensions for the Contentful Web App. Every UI Extension has to include the library in its source. ## Resources - [UI Extensions general documentation](https://www.contentful.com/developers/docs/extensibility/ui-extensions/) - ...
The UI Extensions SDK is a JavaScript library that allows developers to create custom UI Extensions for the Contentful Web App. Every UI Extension has to include the library in its source. ## Resources - [UI Extensions general documentation](https://www.contentful.com/developers/docs/extensibility/ui-extensions/) - ...
Add a link for Forma guide
Add a link for Forma guide
Markdown
mit
contentful/widget-sdk
markdown
## Code Before: The UI Extensions SDK is a JavaScript library that allows developers to create custom UI Extensions for the Contentful Web App. Every UI Extension has to include the library in its source. ## Resources - [UI Extensions general documentation](https://www.contentful.com/developers/docs/extensibility/ui...
The UI Extensions SDK is a JavaScript library that allows developers to create custom UI Extensions for the Contentful Web App. Every UI Extension has to include the library in its source. ## Resources - [UI Extensions general documentation](https://www.contentful.com/developers/docs/extensibility/ui-e...
1
0.045455
1
0
85e99b82e4db8653661f02307dd2a70cc655ed9a
test/controllers/transition_landing_page_controller_test.rb
test/controllers/transition_landing_page_controller_test.rb
require "test_helper" describe TransitionLandingPageController do include TaxonHelpers include GovukAbTesting::MinitestHelpers describe "GET show" do before do brexit_taxon = taxon brexit_taxon["base_path"] = "/transition" stub_content_store_has_item(brexit_taxon["base_path"], brexit_taxon...
require "test_helper" describe TransitionLandingPageController do include TaxonHelpers include GovukAbTesting::MinitestHelpers describe "GET show" do before do brexit_taxon = taxon brexit_taxon["base_path"] = "/transition" stub_content_store_has_item(brexit_taxon["base_path"], brexit_taxon...
Add tests for accounts A/B test
Add tests for accounts A/B test
Ruby
mit
alphagov/collections,alphagov/collections,alphagov/collections,alphagov/collections
ruby
## Code Before: require "test_helper" describe TransitionLandingPageController do include TaxonHelpers include GovukAbTesting::MinitestHelpers describe "GET show" do before do brexit_taxon = taxon brexit_taxon["base_path"] = "/transition" stub_content_store_has_item(brexit_taxon["base_path...
require "test_helper" describe TransitionLandingPageController do include TaxonHelpers include GovukAbTesting::MinitestHelpers describe "GET show" do before do brexit_taxon = taxon brexit_taxon["base_path"] = "/transition" stub_content_store_has_item(brexit_taxon["bas...
29
1.208333
29
0
57a494f94d8550a9539c2008ae626cfe9bddaaf9
tools/webpack.assets.json
tools/webpack.assets.json
{ "activity": "./static/third/sorttable/sorttable.js", "portico": [ "./static/js/portico/header.js" ], "common": [ "string.prototype.startswith", "./node_modules/jquery/dist/jquery.js", "./node_modules/underscore/underscore.js", "./stat...
{ "activity": "./static/third/sorttable/sorttable.js", "portico": [ "./static/js/portico/header.js" ], "common": [ "string.prototype.startswith", "string.prototype.codepointat", "./node_modules/jquery/dist/jquery.js", "./node_modules/un...
Add codepointat polyfill to `common` entry point.
browser-support: Add codepointat polyfill to `common` entry point. Adds string.prototype.codepointat which was added as a polyfill earlier to the project but was not added to `common` entry point.
JSON
apache-2.0
eeshangarg/zulip,zulip/zulip,andersk/zulip,tommyip/zulip,punchagan/zulip,showell/zulip,synicalsyntax/zulip,eeshangarg/zulip,hackerkid/zulip,rht/zulip,tommyip/zulip,punchagan/zulip,timabbott/zulip,timabbott/zulip,showell/zulip,zulip/zulip,kou/zulip,dhcrzf/zulip,punchagan/zulip,shubhamdhama/zulip,synicalsyntax/zulip,tomm...
json
## Code Before: { "activity": "./static/third/sorttable/sorttable.js", "portico": [ "./static/js/portico/header.js" ], "common": [ "string.prototype.startswith", "./node_modules/jquery/dist/jquery.js", "./node_modules/underscore/underscore.js", ...
{ "activity": "./static/third/sorttable/sorttable.js", "portico": [ "./static/js/portico/header.js" ], "common": [ "string.prototype.startswith", + "string.prototype.codepointat", "./node_modules/jquery/dist/jquery.js", ...
1
0.030303
1
0
6ba0e4a593b214f3cfdecdd5923e0e33f0b174f0
server/src/pages/homepage/controller.js
server/src/pages/homepage/controller.js
/* globals Mozilla */ const page = require("./page").page; let model; exports.launch = function(m) { model = m; render(); }; function render() { page.render(model); } document.addEventListener("addon-present", () => { if (location.hash === "#hello") { document.dispatchEvent(new CustomEvent("request-onbo...
/* globals Mozilla */ const page = require("./page").page; let model; exports.launch = function(m) { model = m; render(); }; function render() { page.render(model); } document.addEventListener("addon-present", () => { if (location.hash === "#hello") { document.dispatchEvent(new CustomEvent("request-onbo...
Fix bug when UITour-lib.js loads after homepage-bundle.js
Fix bug when UITour-lib.js loads after homepage-bundle.js The UITour-lib.js library is loaded async, and the homepage-bundle can potentially load and run before it (we saw this in Sentry). This puts in a 1 second retry when that happens.
JavaScript
mpl-2.0
mozilla-services/pageshot,mozilla-services/screenshots,mozilla-services/pageshot,mozilla-services/pageshot,mozilla-services/screenshots,mozilla-services/screenshots,mozilla-services/pageshot,mozilla-services/screenshots
javascript
## Code Before: /* globals Mozilla */ const page = require("./page").page; let model; exports.launch = function(m) { model = m; render(); }; function render() { page.render(model); } document.addEventListener("addon-present", () => { if (location.hash === "#hello") { document.dispatchEvent(new CustomEve...
/* globals Mozilla */ const page = require("./page").page; let model; exports.launch = function(m) { model = m; render(); }; function render() { page.render(model); } document.addEventListener("addon-present", () => { if (location.hash === "#hello") { document.dispatchE...
18
0.6
17
1
083e928a4b8260b92646fe2ce14a34b6e67c8bb4
app/initializers/clock-service.js
app/initializers/clock-service.js
// Based on "Continous Redrawing of Objects" // http://emberjs.com/guides/cookbook/working_with_objects/continuous_redrawing_of_views/ // // #pulse is updated every ~15-seconds // var ClockService = Ember.Object.extend({ pulse: Ember.computed.oneWay('_minutes').readOnly(), tick: function () { var clock = this; ...
// Based on "Continous Redrawing of Objects" // http://emberjs.com/guides/cookbook/working_with_objects/continuous_redrawing_of_views/ // // #pulse is updated every ~15-seconds // var ClockService = Ember.Object.extend({ pulse: Ember.computed.oneWay('_minutes').readOnly(), tick: function () { var clock = this; ...
Fix for stalling acceptance tests.
Fix for stalling acceptance tests.
JavaScript
mit
substantial/substantial-dash-client
javascript
## Code Before: // Based on "Continous Redrawing of Objects" // http://emberjs.com/guides/cookbook/working_with_objects/continuous_redrawing_of_views/ // // #pulse is updated every ~15-seconds // var ClockService = Ember.Object.extend({ pulse: Ember.computed.oneWay('_minutes').readOnly(), tick: function () { va...
// Based on "Continous Redrawing of Objects" // http://emberjs.com/guides/cookbook/working_with_objects/continuous_redrawing_of_views/ // // #pulse is updated every ~15-seconds // var ClockService = Ember.Object.extend({ pulse: Ember.computed.oneWay('_minutes').readOnly(), tick: function () { ...
15
0.517241
10
5
5fee3028e3b4ca43ffc3d1d2b3465b678a8f7fd5
configs/emacs.d/pkgs/pkg-idris.el
configs/emacs.d/pkgs/pkg-idris.el
(use-package idris-mode :ensure t ) (provide 'pkg-idris)
(use-package idris-mode :ensure t :init (custom-set-faces '(idris-semantic-bound-face ((t (:foreground "#fe8019")))) '(idris-semantic-data-face ((t (:foreground "#8ec07c")))) '(idris-semantic-function-face ((t (:foreground "#d3869b")))) '(idris-semantic-implicit-face ((t (:foreground "#303030")))) ...
Fix type faces of idris-mode
Fix type faces of idris-mode
Emacs Lisp
mit
noraesae/dotfiles,noraesae/dotfiles,noraesae/dotfiles
emacs-lisp
## Code Before: (use-package idris-mode :ensure t ) (provide 'pkg-idris) ## Instruction: Fix type faces of idris-mode ## Code After: (use-package idris-mode :ensure t :init (custom-set-faces '(idris-semantic-bound-face ((t (:foreground "#fe8019")))) '(idris-semantic-data-face ((t (:foreground "#8ec07...
(use-package idris-mode :ensure t + :init + (custom-set-faces + '(idris-semantic-bound-face ((t (:foreground "#fe8019")))) + '(idris-semantic-data-face ((t (:foreground "#8ec07c")))) + '(idris-semantic-function-face ((t (:foreground "#d3869b")))) + '(idris-semantic-implicit-face ((t (:foreground "...
11
2.2
11
0
ac4ba28e3b3c221f378edb2d0abbc8cc77a8eae4
src/libmv/multiview/panography_coeffs.py
src/libmv/multiview/panography_coeffs.py
import sympy f2, a12, a1, a2, b12, b1, b2 = sympy.symbols('f2 a12 a1 a2 b12 b1 b2') # Equation 12 from the brown paper; see panography.h equation_12 = ((a12 + f2)**2 * (b1 + f2) * (b2 + f2) - (b12 + f2)**2 * (a1 + f2) * (a2 + f2)) d = equation_12.as_poly(f2).as_dict() print ' // Coefficients in asce...
import sympy f2, a12, a1, a2, b12, b1, b2 = sympy.symbols('f2 a12 a1 a2 b12 b1 b2') # Equation 12 from the brown paper; see panography.h equation_12 = ((a12 + f2)**2 * (b1 + f2) * (b2 + f2) - (b12 + f2)**2 * (a1 + f2) * (a2 + f2)) d = equation_12.as_poly(f2).as_dict() print ' // Coefficients in asc...
Add xcas source code to obtain panography shared Focal polynomial solver.
Add xcas source code to obtain panography shared Focal polynomial solver.
Python
mit
leoujz/libmv,Shinohara-Takayuki/libmv,tanmengwen/libmv,KangKyungSoo/libmv,jackyspeed/libmv,Ashwinning/libmv,Shinohara-Takayuki/libmv,jackyspeed/libmv,manjunathnarayana/libmv,manjunathnarayana/libmv,KangKyungSoo/libmv,leoujz/libmv,hjm168168/libmv,jackyspeed/libmv,Shinohara-Takayuki/libmv,sanyaade-g2g-repos/libmv,tanmeng...
python
## Code Before: import sympy f2, a12, a1, a2, b12, b1, b2 = sympy.symbols('f2 a12 a1 a2 b12 b1 b2') # Equation 12 from the brown paper; see panography.h equation_12 = ((a12 + f2)**2 * (b1 + f2) * (b2 + f2) - (b12 + f2)**2 * (a1 + f2) * (a2 + f2)) d = equation_12.as_poly(f2).as_dict() print ' // Coef...
+ import sympy f2, a12, a1, a2, b12, b1, b2 = sympy.symbols('f2 a12 a1 a2 b12 b1 b2') # Equation 12 from the brown paper; see panography.h equation_12 = ((a12 + f2)**2 * (b1 + f2) * (b2 + f2) - (b12 + f2)**2 * (a1 + f2) * (a2 + f2)) d = equation_12.as_poly(f2).as_dict() print '...
11
0.733333
11
0
58bc4820878f0f266d54058d73f39bf9d113366a
app/assets/stylesheets/partials/content/_fixed_sidebar.sass
app/assets/stylesheets/partials/content/_fixed_sidebar.sass
// Fixed Sidebar .container-fluid > .sidebar position: fixed top: 66px right: 20px left: initial .container-fluid > .content margin-left: 20px margin-right: 240px
// Fixed Sidebar .container-fluid > .sidebar position: fixed top: 66px right: 20px left: initial // Chrome left: auto // Firefox .container-fluid > .content margin-left: 20px margin-right: 240px
Fix right side sidebar for firefox.
Fix right side sidebar for firefox.
Sass
agpl-3.0
wtag/bookyt,hauledev/bookyt,silvermind/bookyt,gaapt/bookyt,huerlisi/bookyt,xuewenfei/bookyt,hauledev/bookyt,gaapt/bookyt,silvermind/bookyt,gaapt/bookyt,huerlisi/bookyt,silvermind/bookyt,wtag/bookyt,hauledev/bookyt,gaapt/bookyt,huerlisi/bookyt,xuewenfei/bookyt,silvermind/bookyt,wtag/bookyt,hauledev/bookyt,xuewenfei/book...
sass
## Code Before: // Fixed Sidebar .container-fluid > .sidebar position: fixed top: 66px right: 20px left: initial .container-fluid > .content margin-left: 20px margin-right: 240px ## Instruction: Fix right side sidebar for firefox. ## Code After: // Fixed Sidebar .container-fluid > .sidebar ...
// Fixed Sidebar .container-fluid > .sidebar position: fixed top: 66px right: 20px - left: initial + left: initial // Chrome ? ++++++++++ + left: auto // Firefox .container-fluid > .content margin-left: 20px margin-right: 240px
3
0.3
2
1
37da6856d16b9ac1f201ec6fdabe9d81b9677a30
php-tools.css
php-tools.css
/*--- SETTINGS DIALOG ---*/ .php-lint-settings-dialog label { width: 100%; display: inline-block; } .php-lint-settings-dialog fieldset { margin-bottom: 1em; } .php-lint-settings-dialog legend { margin: 0 0 .25em; color: inherit; } .php-lint-settings-dialog input { vertical-align: middle; margin-bottom: 0;...
/*--- SETTINGS DIALOG ---*/ .php-lint-settings-dialog label { width: 100%; display: inline-block; } .php-lint-settings-dialog fieldset { margin-bottom: 1em; } .php-lint-settings-dialog legend { margin: 0 0 .25em; color: inherit; } .php-lint-settings-dialog input { vertical-align: middle; ...
Fix styling issue in settings dialog.
Fix styling issue in settings dialog.
CSS
mit
mikaeljorhult/brackets-php-code-quality-tools,mikaeljorhult/brackets-php-code-quality-tools
css
## Code Before: /*--- SETTINGS DIALOG ---*/ .php-lint-settings-dialog label { width: 100%; display: inline-block; } .php-lint-settings-dialog fieldset { margin-bottom: 1em; } .php-lint-settings-dialog legend { margin: 0 0 .25em; color: inherit; } .php-lint-settings-dialog input { vertical-align: middle; m...
- /*--- SETTINGS DIALOG ---*/ ? ---- + /*--- SETTINGS DIALOG ---*/ .php-lint-settings-dialog label { - width: 100%; ? ^ + width: 100%; ? ^^^^ - display: inline-block; ? ^ + display: inline-block; ? ^^^^ } .php-lint-settings-dialog fieldset { - margin-bottom: 1em; ? ^ + margin-bottom: 1...
33
0.891892
19
14
4b52f6281f2ec44ea6eef35a60e01a49e858197b
parfait-core/src/test/java/com/custardsource/parfait/CompositeMonitoringViewTest.java
parfait-core/src/test/java/com/custardsource/parfait/CompositeMonitoringViewTest.java
package com.custardsource.parfait; import org.junit.Before; import org.junit.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import java.util.Collection; import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; public class Co...
package com.custardsource.parfait; import org.junit.Before; import org.junit.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import java.util.Collection; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.verify; import stati...
Make test names more readable and add missing test case (Cowan's review comments)
Make test names more readable and add missing test case (Cowan's review comments)
Java
apache-2.0
timols/parfait,performancecopilot/parfait,performancecopilot/parfait,akshayahn/parfait
java
## Code Before: package com.custardsource.parfait; import org.junit.Before; import org.junit.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import java.util.Collection; import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; ...
package com.custardsource.parfait; import org.junit.Before; import org.junit.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import java.util.Collection; + import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.mockito.Mock...
13
0.209677
10
3
e4b42540336c9eae539b12fdd05e9f9a9ed7ae93
doc/outcome-templates.md
doc/outcome-templates.md
The ERB outcome templates live in `lib/smart_answer_flows/<flow-name>/<outcome-name>.govspeak.erb`.
Outcome templates live in `lib/smart_answer_flows/<flow-name>/outcomes/<outcome-name>.govspeak.erb`. Content is defined in `content_for` blocks. The templates can contain content for the `title`, `body` and `next_steps`, all of which are optional. ## Example ``` <% content_for :title do %> <% unless calculator.h...
Update docs for Outcome templates
Update docs for Outcome templates
Markdown
mit
stwalsh/smart-answers,aledelcueto/smart-answers,aledelcueto/smart-answers,stwalsh/smart-answers,stwalsh/smart-answers,stwalsh/smart-answers,alphagov/smart-answers,alphagov/smart-answers,alphagov/smart-answers,aledelcueto/smart-answers,alphagov/smart-answers,aledelcueto/smart-answers
markdown
## Code Before: The ERB outcome templates live in `lib/smart_answer_flows/<flow-name>/<outcome-name>.govspeak.erb`. ## Instruction: Update docs for Outcome templates ## Code After: Outcome templates live in `lib/smart_answer_flows/<flow-name>/outcomes/<outcome-name>.govspeak.erb`. Content is defined in `content_fo...
- The ERB outcome templates live in `lib/smart_answer_flows/<flow-name>/<outcome-name>.govspeak.erb`. ? ^^^^^^^^^ + Outcome templates live in `lib/smart_answer_flows/<flow-name>/outcomes/<outcome-name>.govspeak.erb`. ? ^ +++++++++ + + Content is defined ...
24
12
23
1
f4f99e96d7b57c431c7538d31b04c2b358128815
app/src/lib/stores/helpers/onboarding-tutorial.ts
app/src/lib/stores/helpers/onboarding-tutorial.ts
export class OnboardingTutorial { public constructor() { this.skipInstallEditor = false this.skipCreatePR = false } getCurrentStep() { // call all other methods to check where we're at } isEditorInstalled() { if (this.skipInstallEditor) { return true } return false } isBra...
export class OnboardingTutorial { public constructor() { this.skipInstallEditor = false this.skipCreatePR = false } public getCurrentStep() { // call all other methods to check where we're at } if (this.skipInstallEditor) { private async isEditorInstalled(): Promise<boolean> { return t...
Add accessibility modifier and return type
Add accessibility modifier and return type
TypeScript
mit
j-f1/forked-desktop,desktop/desktop,kactus-io/kactus,say25/desktop,shiftkey/desktop,j-f1/forked-desktop,artivilla/desktop,say25/desktop,desktop/desktop,artivilla/desktop,desktop/desktop,shiftkey/desktop,shiftkey/desktop,kactus-io/kactus,desktop/desktop,artivilla/desktop,artivilla/desktop,kactus-io/kactus,j-f1/forked-de...
typescript
## Code Before: export class OnboardingTutorial { public constructor() { this.skipInstallEditor = false this.skipCreatePR = false } getCurrentStep() { // call all other methods to check where we're at } isEditorInstalled() { if (this.skipInstallEditor) { return true } return fa...
export class OnboardingTutorial { public constructor() { this.skipInstallEditor = false this.skipCreatePR = false } - getCurrentStep() { + public getCurrentStep() { ? +++++++ // call all other methods to check where we're at } - isEditorInstalled() { if (this.skipInst...
18
0.375
9
9
91fc21bb4bc27061458a92521bc77047d63c7dbc
test/helpers/connection.json
test/helpers/connection.json
{ "hosts" : [ "172.16.22.114:9160" ], "timeout" : 3000 }
{ "hosts" : [ "localhost:9160" ], "timeout" : 3000 }
Test on localhost on Travis, please.
Test on localhost on Travis, please.
JSON
mit
lyveminds/scamandrios
json
## Code Before: { "hosts" : [ "172.16.22.114:9160" ], "timeout" : 3000 } ## Instruction: Test on localhost on Travis, please. ## Code After: { "hosts" : [ "localhost:9160" ], "timeout" : 3000 }
{ - "hosts" : [ "172.16.22.114:9160" ], + "hosts" : [ "localhost:9160" ], "timeout" : 3000 }
2
0.5
1
1
b4fdec74ac1af2b50ab5c79f6127d87033a9d297
wagtail/wagtailsearch/signal_handlers.py
wagtail/wagtailsearch/signal_handlers.py
from django.db.models.signals import post_save, post_delete from django.db import models from wagtail.wagtailsearch.index import Indexed from wagtail.wagtailsearch.backends import get_search_backends def post_save_signal_handler(instance, **kwargs): for backend in get_search_backends(): backend.add(insta...
from django.db.models.signals import post_save, post_delete from django.db import models from wagtail.wagtailsearch.index import Indexed from wagtail.wagtailsearch.backends import get_search_backends def post_save_signal_handler(instance, **kwargs): if instance not in type(instance).get_indexed_objects(): ...
Make search signal handlers use get_indexed_objects
Make search signal handlers use get_indexed_objects
Python
bsd-3-clause
rv816/wagtail,serzans/wagtail,serzans/wagtail,FlipperPA/wagtail,iansprice/wagtail,nrsimha/wagtail,Toshakins/wagtail,kurtrwall/wagtail,jorge-marques/wagtail,stevenewey/wagtail,darith27/wagtail,kaedroho/wagtail,iho/wagtail,WQuanfeng/wagtail,nealtodd/wagtail,quru/wagtail,mikedingjan/wagtail,timorieber/wagtail,timorieber/w...
python
## Code Before: from django.db.models.signals import post_save, post_delete from django.db import models from wagtail.wagtailsearch.index import Indexed from wagtail.wagtailsearch.backends import get_search_backends def post_save_signal_handler(instance, **kwargs): for backend in get_search_backends(): b...
from django.db.models.signals import post_save, post_delete from django.db import models from wagtail.wagtailsearch.index import Indexed from wagtail.wagtailsearch.backends import get_search_backends def post_save_signal_handler(instance, **kwargs): + if instance not in type(instance).get_indexed...
7
0.28
7
0
972140cc6ff11e17a728bdf990f86f01333c059f
tox.ini
tox.ini
[tox] envlist = py{36, 37, 38, 39} [testenv] deps= -r requirements_for_test.txt commands = make test make integration-test # environment variables used by the tests passenv = NOTIFY_API_URL API_KEY FUNCTIONAL_TEST_EMAIL FUNCTIONAL_TEST_NUMBER EMAIL_TEMPLATE_ID LETTER_TEMPLATE_ID SMS_TEMPLATE_ID ...
[tox] envlist = py{36, 37, 38, 39} [testenv] allowlist_externals = make deps= -r requirements_for_test.txt commands = make test make integration-test # environment variables used by the tests passenv = NOTIFY_API_URL API_KEY FUNCTIONAL_TEST_EMAIL FUNCTIONAL_TEST_NUMBER EMAIL_TEMPLATE_ID LETTER_TEM...
Fix warning about running external command in Tox
Fix warning about running external command in Tox Fixes: WARNING: test command found but not installed in testenv cmd: /usr/bin/make env: /Users/benthorner/Documents/Projects/python-client/.tox/py36 Maybe you forgot to specify a dependency? See also the allowlist_externals envconfig setting.
INI
mit
alphagov/notifications-python-client,alphagov/notifications-python-client
ini
## Code Before: [tox] envlist = py{36, 37, 38, 39} [testenv] deps= -r requirements_for_test.txt commands = make test make integration-test # environment variables used by the tests passenv = NOTIFY_API_URL API_KEY FUNCTIONAL_TEST_EMAIL FUNCTIONAL_TEST_NUMBER EMAIL_TEMPLATE_ID LETTER_TEMPLATE_ID ...
[tox] envlist = py{36, 37, 38, 39} [testenv] + allowlist_externals = make deps= -r requirements_for_test.txt commands = make test make integration-test # environment variables used by the tests passenv = NOTIFY_API_URL API_KEY FUNCTIONAL_TEST_EMAIL FUNCTIONAL_TEST_NUM...
1
0.041667
1
0
31bbec5d55437d36b78ca1c36dee19e74203695b
setup.py
setup.py
from distutils.core import setup setup( name = 'ffn', version = '0.1.0', author = 'Michal Januszewski', author_email = 'mjanusz@google.com', packages = ['ffn', 'ffn.inference', 'ffn.training', 'ffn.utils'], scripts = ['build_coordinates.py', 'compute_partitions.py', 'run_inference.py', 'train.py'], url = ...
from distutils.core import setup setup( name = 'ffn', version = '0.1.0', author = 'Michal Januszewski', author_email = 'mjanusz@google.com', packages = ['ffn', 'ffn.inference', 'ffn.training', 'ffn.training.models', 'ffn.utils'], scripts = ['build_coordinates.py', 'compute_partitions.py', 'run_inference.py'...
Add ffn.training.models and switch to Pillow.
Add ffn.training.models and switch to Pillow. It is still easier to use this repo via git clone rather than pip install, e.g. from Colab. But this seemed worth updating anyway.
Python
apache-2.0
google/ffn
python
## Code Before: from distutils.core import setup setup( name = 'ffn', version = '0.1.0', author = 'Michal Januszewski', author_email = 'mjanusz@google.com', packages = ['ffn', 'ffn.inference', 'ffn.training', 'ffn.utils'], scripts = ['build_coordinates.py', 'compute_partitions.py', 'run_inference.py', 'trai...
from distutils.core import setup setup( name = 'ffn', version = '0.1.0', author = 'Michal Januszewski', author_email = 'mjanusz@google.com', - packages = ['ffn', 'ffn.inference', 'ffn.training', 'ffn.utils'], + packages = ['ffn', 'ffn.inference', 'ffn.training', 'ffn.training.models', 'ffn.ut...
4
0.25
2
2
df449280b7aa5c94d78dd6ea6018955fe69e658a
pokedex/data/csv/languages.csv
pokedex/data/csv/languages.csv
id,iso639,iso3166,identifier,official,order 1,ja,jp,ja,1,1 2,ja,jp,roomaji,1,2 3,ko,kr,ko,1, 4,zh,cn,zh,1, 5,fr,fr,fr,1, 6,de,de,de,1, 7,es,es,es,1, 8,it,it,it,1, 9,en,us,en,1,0 10,cs,cz,cs,0,
id,iso639,iso3166,identifier,official,order 1,ja,jp,ja,1,1 2,ja,jp,roomaji,1,2 3,ko,kr,ko,1, 4,zh,cn,zh,1, 5,fr,fr,fr,1, 6,de,de,de,1, 7,es,es,es,1, 8,it,it,it,1, 9,en,us,en,1,0 10,cs,cz,cs,0, 11,ja,jp,ja-kanji,1,
Add a separate fucking language for kanji.
Add a separate fucking language for kanji.
CSV
mit
veekun/pokedex,RK905/pokedex-1,veekun/pokedex,DaMouse404/pokedex,xfix/pokedex,mschex1/pokedex
csv
## Code Before: id,iso639,iso3166,identifier,official,order 1,ja,jp,ja,1,1 2,ja,jp,roomaji,1,2 3,ko,kr,ko,1, 4,zh,cn,zh,1, 5,fr,fr,fr,1, 6,de,de,de,1, 7,es,es,es,1, 8,it,it,it,1, 9,en,us,en,1,0 10,cs,cz,cs,0, ## Instruction: Add a separate fucking language for kanji. ## Code After: id,iso639,iso3166,identifier,offici...
id,iso639,iso3166,identifier,official,order 1,ja,jp,ja,1,1 2,ja,jp,roomaji,1,2 3,ko,kr,ko,1, 4,zh,cn,zh,1, 5,fr,fr,fr,1, 6,de,de,de,1, 7,es,es,es,1, 8,it,it,it,1, 9,en,us,en,1,0 10,cs,cz,cs,0, + 11,ja,jp,ja-kanji,1,
1
0.090909
1
0