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
f7bfcd7fee64ae9220710835974125f41dae1c50
frappe/core/doctype/role/test_role.py
frappe/core/doctype/role/test_role.py
from __future__ import unicode_literals import frappe import unittest test_records = frappe.get_test_records('Role') class TestUser(unittest.TestCase): def test_disable_role(self): frappe.get_doc("User", "test@example.com").add_roles("_Test Role 3") role = frappe.get_doc("Role", "_Test Role 3") role.disabled = 1 role.save() self.assertTrue("_Test Role 3" not in frappe.get_roles("test@example.com")) frappe.get_doc("User", "test@example.com").add_roles("_Test Role 3") self.assertTrue("_Test Role 3" not in frappe.get_roles("test@example.com")) role = frappe.get_doc("Role", "_Test Role 3") role.disabled = 0 role.save() frappe.get_doc("User", "test@example.com").add_roles("_Test Role 3") self.assertTrue("_Test Role 3" in frappe.get_roles("test@example.com"))
from __future__ import unicode_literals import frappe import unittest test_records = frappe.get_test_records('Role') class TestUser(unittest.TestCase): def test_disable_role(self): frappe.get_doc("User", "test@example.com").add_roles("_Test Role 3") role = frappe.get_doc("Role", "_Test Role 3") role.disabled = 1 role.save() self.assertTrue("_Test Role 3" not in frappe.get_roles("test@example.com")) role = frappe.get_doc("Role", "_Test Role 3") role.disabled = 0 role.save() frappe.get_doc("User", "test@example.com").add_roles("_Test Role 3") self.assertTrue("_Test Role 3" in frappe.get_roles("test@example.com"))
Test Case for disabled role
fix: Test Case for disabled role
Python
mit
mhbu50/frappe,mhbu50/frappe,saurabh6790/frappe,frappe/frappe,saurabh6790/frappe,vjFaLk/frappe,StrellaGroup/frappe,vjFaLk/frappe,yashodhank/frappe,StrellaGroup/frappe,almeidapaulopt/frappe,adityahase/frappe,almeidapaulopt/frappe,adityahase/frappe,adityahase/frappe,adityahase/frappe,mhbu50/frappe,yashodhank/frappe,frappe/frappe,vjFaLk/frappe,vjFaLk/frappe,yashodhank/frappe,almeidapaulopt/frappe,StrellaGroup/frappe,yashodhank/frappe,mhbu50/frappe,almeidapaulopt/frappe,frappe/frappe,saurabh6790/frappe,saurabh6790/frappe
python
## Code Before: from __future__ import unicode_literals import frappe import unittest test_records = frappe.get_test_records('Role') class TestUser(unittest.TestCase): def test_disable_role(self): frappe.get_doc("User", "test@example.com").add_roles("_Test Role 3") role = frappe.get_doc("Role", "_Test Role 3") role.disabled = 1 role.save() self.assertTrue("_Test Role 3" not in frappe.get_roles("test@example.com")) frappe.get_doc("User", "test@example.com").add_roles("_Test Role 3") self.assertTrue("_Test Role 3" not in frappe.get_roles("test@example.com")) role = frappe.get_doc("Role", "_Test Role 3") role.disabled = 0 role.save() frappe.get_doc("User", "test@example.com").add_roles("_Test Role 3") self.assertTrue("_Test Role 3" in frappe.get_roles("test@example.com")) ## Instruction: fix: Test Case for disabled role ## Code After: from __future__ import unicode_literals import frappe import unittest test_records = frappe.get_test_records('Role') class TestUser(unittest.TestCase): def test_disable_role(self): frappe.get_doc("User", "test@example.com").add_roles("_Test Role 3") role = frappe.get_doc("Role", "_Test Role 3") role.disabled = 1 role.save() self.assertTrue("_Test Role 3" not in frappe.get_roles("test@example.com")) role = frappe.get_doc("Role", "_Test Role 3") role.disabled = 0 role.save() frappe.get_doc("User", "test@example.com").add_roles("_Test Role 3") self.assertTrue("_Test Role 3" in frappe.get_roles("test@example.com"))
from __future__ import unicode_literals import frappe import unittest test_records = frappe.get_test_records('Role') class TestUser(unittest.TestCase): def test_disable_role(self): frappe.get_doc("User", "test@example.com").add_roles("_Test Role 3") - + role = frappe.get_doc("Role", "_Test Role 3") role.disabled = 1 role.save() - + self.assertTrue("_Test Role 3" not in frappe.get_roles("test@example.com")) + - - frappe.get_doc("User", "test@example.com").add_roles("_Test Role 3") - self.assertTrue("_Test Role 3" not in frappe.get_roles("test@example.com")) - role = frappe.get_doc("Role", "_Test Role 3") role.disabled = 0 role.save() - + frappe.get_doc("User", "test@example.com").add_roles("_Test Role 3") self.assertTrue("_Test Role 3" in frappe.get_roles("test@example.com")) -
12
0.444444
4
8
9271608c9af71eec13691a5da6458c99791e833c
tests/regression/01-cpa/03-loops.c
tests/regression/01-cpa/03-loops.c
int main () { int i,j,k; i = k = 0; j = 7; while (i < 10) { i++; j = 7; k = 5; } assert(i == 10); // UNKNOWN! assert(k); // UNKNOWN! // k is currenlty 0 \sqcup 5, if we unfolded the loops it would be 5 assert(j==7); return 0; }
int main () { int i,j,k; i = k = 0; j = 7; while (i < 10) { i++; j = 7; k = 5; } // assert(i == 10); // UNKNOWN! // Removed this assertion as it is specific to flat ints and fails as soon as intervals or octagons correctly determine this assert(k); // UNKNOWN! // k is currenlty 0 \sqcup 5, if we unfolded the loops it would be 5 assert(j==7); return 0; }
Remove assert specific to flat ints that will fail when using more poerful domain
Remove assert specific to flat ints that will fail when using more poerful domain
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
c
## Code Before: int main () { int i,j,k; i = k = 0; j = 7; while (i < 10) { i++; j = 7; k = 5; } assert(i == 10); // UNKNOWN! assert(k); // UNKNOWN! // k is currenlty 0 \sqcup 5, if we unfolded the loops it would be 5 assert(j==7); return 0; } ## Instruction: Remove assert specific to flat ints that will fail when using more poerful domain ## Code After: int main () { int i,j,k; i = k = 0; j = 7; while (i < 10) { i++; j = 7; k = 5; } // assert(i == 10); // UNKNOWN! // Removed this assertion as it is specific to flat ints and fails as soon as intervals or octagons correctly determine this assert(k); // UNKNOWN! // k is currenlty 0 \sqcup 5, if we unfolded the loops it would be 5 assert(j==7); return 0; }
int main () { int i,j,k; i = k = 0; j = 7; while (i < 10) { i++; j = 7; k = 5; } - assert(i == 10); // UNKNOWN! + // assert(i == 10); // UNKNOWN! ? +++ + // Removed this assertion as it is specific to flat ints and fails as soon as intervals or octagons correctly determine this assert(k); // UNKNOWN! // k is currenlty 0 \sqcup 5, if we unfolded the loops it would be 5 assert(j==7); return 0; }
3
0.1875
2
1
11244a2e902ed13acabb5a92acc76a2e57b4b41a
internals/generators/container/index.js.hbs
internals/generators/container/index.js.hbs
/* * * {{ properCase name }} * */ import React from 'react'; import { connect } from 'react-redux'; import select{{properCase name}} from './selectors'; {{#if wantCSS}} import styles from './styles.css'; {{/if}} export class {{ properCase name }} extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return ( {{#if wantCSS}} <div className={ styles.{{ camelCase name }} }> {{else}} <div> {{/if}} This is {{properCase name}} container ! </div> ); } } const mapStateToProps = select{{properCase name}}(); function mapDispatchToProps(dispatch) { return { dispatch, }; } export default connect(mapStateToProps, mapDispatchToProps)({{ properCase name }});
/* * * {{ properCase name }} * */ import React from 'react'; import { connect } from 'react-redux'; {{#if wantActionsAndReducer}} import select{{properCase name}} from './selectors'; {{/if}} {{#if wantCSS}} import styles from './styles.css'; {{/if}} export class {{ properCase name }} extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return ( {{#if wantCSS}} <div className={ styles.{{ camelCase name }} }> {{else}} <div> {{/if}} This is {{properCase name}} container ! </div> ); } } {{#if wantActionsAndReducer}} const mapStateToProps = select{{properCase name}}(); {{/if}} function mapDispatchToProps(dispatch) { return { dispatch, }; } {{#if wantActionsAndReducer}} export default connect(mapStateToProps, mapDispatchToProps)({{ properCase name }}); {{else}} export default connect(mapDispatchToProps)({{ properCase name }}); {{/if}}
Add if and if-else to container to link selector
Add if and if-else to container to link selector Modifies internals/generators/container/index.js.hbs with: * if statment wrapped around selector include * if and if-else wrapped around mapSateToProps add
Handlebars
mit
absortium/frontend,kaizen7-nz/gold-star-chart,StrikeForceZero/react-typescript-boilerplate,ipselon/react-boilerplate-clone,samit4me/react-boilerplate,SilentCicero/react-boilerplate,dbrelovsky/react-boilerplate,TheTopazWombat/levt-2,chaintng/react-boilerplate,ipselon/react-boilerplate-clone,jasoncyu/always-be-bulking,gtct/wallet.eine.com,samit4me/react-boilerplate,mxstbr/react-boilerplate,Proxiweb/react-boilerplate,romanvieito/ball-simpler,tomazy/react-boilerplate,absortium/frontend,mxstbr/react-boilerplate,jasoncyu/always-be-bulking,romanvieito/ball-simpler,be-oi/beoi-training-client,haxorbit/chiron,w01fgang/react-boilerplate,Proxiweb/react-boilerplate,mmaedel/react-boilerplate,SilentCicero/react-boilerplate,rlagman/raphthelagman,gtct/wallet.eine.com,perry-ugroop/ugroop-react-dup2,Jan-Jan/react-hackathon-boilerplate,chaintng/react-boilerplate,haithemT/app-test,kossel/react-boilerplate,haxorbit/chiron,s0enke/react-boilerplate,react-boilerplate/react-boilerplate,gihrig/react-boilerplate-logic,s0enke/react-boilerplate,KarandikarMihir/react-boilerplate,StrikeForceZero/react-typescript-boilerplate,JonathanMerklin/react-boilerplate,JonathanMerklin/react-boilerplate,codermango/BetCalculator,s0enke/react-boilerplate,codermango/BetCalculator,abasalilov/react-boilerplate,Dattaya/react-boilerplate-object,mikejong0815/Temp,AnhHT/react-boilerplate,Dmitry-N-Medvedev/motor-collection,gtct/wallet.eine.com,haithemT/app-test,pauleonardo/demo-trans,rlagman/raphthelagman,Dattaya/react-boilerplate-object,Proxiweb/react-boilerplate,gihrig/react-boilerplate,be-oi/beoi-training-client,Demonslyr/Donut.WFE.Customer,shiftunion/bot-a-tron,StrikeForceZero/react-typescript-boilerplate,react-boilerplate/react-boilerplate,KarandikarMihir/react-boilerplate,blockfs/frontend-react,TheTopazWombat/levt-2,tomazy/react-boilerplate,likesalmon/likesalmon-react-boilerplate,Dmitry-N-Medvedev/motor-collection,abasalilov/react-boilerplate,Dmitry-N-Medvedev/motor-collection,pauleonardo/demo-trans,kossel/react-boilerplate,gihrig/react-boilerplate,Jan-Jan/react-hackathon-boilerplate,gihrig/react-boilerplate-logic,perry-ugroop/ugroop-react-dup2,Dmitry-N-Medvedev/motor-collection,shiftunion/bot-a-tron,gtct/wallet.eine.com,mikejong0815/Temp,mmaedel/react-boilerplate,AnhHT/react-boilerplate,kaizen7-nz/gold-star-chart,w01fgang/react-boilerplate,blockfs/frontend-react,dbrelovsky/react-boilerplate,likesalmon/likesalmon-react-boilerplate,Demonslyr/Donut.WFE.Customer
handlebars
## Code Before: /* * * {{ properCase name }} * */ import React from 'react'; import { connect } from 'react-redux'; import select{{properCase name}} from './selectors'; {{#if wantCSS}} import styles from './styles.css'; {{/if}} export class {{ properCase name }} extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return ( {{#if wantCSS}} <div className={ styles.{{ camelCase name }} }> {{else}} <div> {{/if}} This is {{properCase name}} container ! </div> ); } } const mapStateToProps = select{{properCase name}}(); function mapDispatchToProps(dispatch) { return { dispatch, }; } export default connect(mapStateToProps, mapDispatchToProps)({{ properCase name }}); ## Instruction: Add if and if-else to container to link selector Modifies internals/generators/container/index.js.hbs with: * if statment wrapped around selector include * if and if-else wrapped around mapSateToProps add ## Code After: /* * * {{ properCase name }} * */ import React from 'react'; import { connect } from 'react-redux'; {{#if wantActionsAndReducer}} import select{{properCase name}} from './selectors'; {{/if}} {{#if wantCSS}} import styles from './styles.css'; {{/if}} export class {{ properCase name }} extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return ( {{#if wantCSS}} <div className={ styles.{{ camelCase name }} }> {{else}} <div> {{/if}} This is {{properCase name}} container ! </div> ); } } {{#if wantActionsAndReducer}} const mapStateToProps = select{{properCase name}}(); {{/if}} function mapDispatchToProps(dispatch) { return { dispatch, }; } {{#if wantActionsAndReducer}} export default connect(mapStateToProps, mapDispatchToProps)({{ properCase name }}); {{else}} export default connect(mapDispatchToProps)({{ properCase name }}); {{/if}}
/* * * {{ properCase name }} * */ import React from 'react'; import { connect } from 'react-redux'; + {{#if wantActionsAndReducer}} import select{{properCase name}} from './selectors'; + {{/if}} {{#if wantCSS}} import styles from './styles.css'; {{/if}} export class {{ properCase name }} extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return ( {{#if wantCSS}} <div className={ styles.{{ camelCase name }} }> {{else}} <div> {{/if}} This is {{properCase name}} container ! </div> ); } } + {{#if wantActionsAndReducer}} const mapStateToProps = select{{properCase name}}(); + {{/if}} function mapDispatchToProps(dispatch) { return { dispatch, }; } + {{#if wantActionsAndReducer}} export default connect(mapStateToProps, mapDispatchToProps)({{ properCase name }}); + {{else}} + export default connect(mapDispatchToProps)({{ properCase name }}); + {{/if}}
8
0.222222
8
0
3ef0803353f15b32445fc2b1334779c9415dba45
lib/hanami/fumikiri.rb
lib/hanami/fumikiri.rb
module Hanami module Fumikiri module Skip private def authenticate! # no-op implementation end end class InvalidTokenError < StandardError def message "Your token has problems... " end end class MissingTokenError < StandardError def message "No 'Authorisation' header provided." end end def self.included(base) base.class_eval do before :authenticate! expose :current_user end end def current_user validate_jwt @current_user = UserRepository.find(@decoded_token['user_id']) end private def authenticate! redirect_to '/login' unless authenticated? end def authenticated? ! current_user.nil? end def validate_jwt begin auth = request.env['Authorisation'] raise MissingTokenError if auth.nil? token = auth.split(' ').last @decoded_token = JWT.decode(token, ENV['JWT_SECRET']) # make better errors raise InvalidTokenError if @decoded_token['user_id'].empty? rescue JWT::DecodeError # make better errors raise InvalidTokenError end end end end
module Hanami module Fumikiri module Skip private def authenticate! # no-op implementation end end class InvalidTokenError < StandardError def message "Your token has problems... " end end class MissingTokenError < StandardError def message "No 'Authorisation' header provided." end end def self.included(base) base.class_eval do before :authenticate! expose :current_user end end def current_user validate_jwt @current_user = UserRepository.find(@decoded_token['sub']) end private def authenticate! redirect_to '/login' unless authenticated? end def authenticated? ! current_user.nil? end def validate_jwt begin auth = request.env['Authorisation'] raise MissingTokenError if auth.nil? token = auth.split(' ').last @decoded_token = JWT.decode(token, ENV['JWT_SECRET']) # make better errors raise InvalidTokenError if @decoded_token['sub'].empty? rescue JWT::DecodeError # make better errors raise InvalidTokenError end end end end
Replace user_id with "sub" as supported with JWT
Replace user_id with "sub" as supported with JWT
Ruby
mit
theCrab/hanami-fumikiri
ruby
## Code Before: module Hanami module Fumikiri module Skip private def authenticate! # no-op implementation end end class InvalidTokenError < StandardError def message "Your token has problems... " end end class MissingTokenError < StandardError def message "No 'Authorisation' header provided." end end def self.included(base) base.class_eval do before :authenticate! expose :current_user end end def current_user validate_jwt @current_user = UserRepository.find(@decoded_token['user_id']) end private def authenticate! redirect_to '/login' unless authenticated? end def authenticated? ! current_user.nil? end def validate_jwt begin auth = request.env['Authorisation'] raise MissingTokenError if auth.nil? token = auth.split(' ').last @decoded_token = JWT.decode(token, ENV['JWT_SECRET']) # make better errors raise InvalidTokenError if @decoded_token['user_id'].empty? rescue JWT::DecodeError # make better errors raise InvalidTokenError end end end end ## Instruction: Replace user_id with "sub" as supported with JWT ## Code After: module Hanami module Fumikiri module Skip private def authenticate! # no-op implementation end end class InvalidTokenError < StandardError def message "Your token has problems... " end end class MissingTokenError < StandardError def message "No 'Authorisation' header provided." end end def self.included(base) base.class_eval do before :authenticate! expose :current_user end end def current_user validate_jwt @current_user = UserRepository.find(@decoded_token['sub']) end private def authenticate! redirect_to '/login' unless authenticated? end def authenticated? ! current_user.nil? end def validate_jwt begin auth = request.env['Authorisation'] raise MissingTokenError if auth.nil? token = auth.split(' ').last @decoded_token = JWT.decode(token, ENV['JWT_SECRET']) # make better errors raise InvalidTokenError if @decoded_token['sub'].empty? rescue JWT::DecodeError # make better errors raise InvalidTokenError end end end end
module Hanami module Fumikiri module Skip private def authenticate! # no-op implementation end end class InvalidTokenError < StandardError def message "Your token has problems... " end end class MissingTokenError < StandardError def message "No 'Authorisation' header provided." end end def self.included(base) base.class_eval do before :authenticate! expose :current_user end end def current_user validate_jwt - @current_user = UserRepository.find(@decoded_token['user_id']) ? ^^^^^^ + @current_user = UserRepository.find(@decoded_token['sub']) ? + ^ end private def authenticate! redirect_to '/login' unless authenticated? end def authenticated? ! current_user.nil? end def validate_jwt begin auth = request.env['Authorisation'] raise MissingTokenError if auth.nil? token = auth.split(' ').last @decoded_token = JWT.decode(token, ENV['JWT_SECRET']) # make better errors - raise InvalidTokenError if @decoded_token['user_id'].empty? ? ^^^^^^ + raise InvalidTokenError if @decoded_token['sub'].empty? ? + ^ rescue JWT::DecodeError # make better errors raise InvalidTokenError end end end end
4
0.067797
2
2
070b0e11e6c3d32a693792b157c7b334ec3cbd19
common/src/main/java/com/khorn/terraincontrol/configuration/settingType/StringListSetting.java
common/src/main/java/com/khorn/terraincontrol/configuration/settingType/StringListSetting.java
package com.khorn.terraincontrol.configuration.settingType; import com.khorn.terraincontrol.exception.InvalidConfigException; import com.khorn.terraincontrol.util.helpers.StringHelper; import java.util.Arrays; import java.util.List; /** * Reads and writes a list of strings. Strings are read using * {@link StringHelper#readCommaSeperatedString(String)}, and written with a * ", " between each string. * */ class StringListSetting extends Setting<List<String>> { private String[] defaultValue; StringListSetting(String name, String... defaultValue) { super(name); this.defaultValue = defaultValue; } @Override public List<String> getDefaultValue() { return Arrays.asList(defaultValue); } @Override public List<String> read(String string) throws InvalidConfigException { String[] split = StringHelper.readCommaSeperatedString(string); for (int i = 0; i < split.length; i++) { // Trimming the values allows "Value1, Value2" instead of // "Value1,Value2" split[i] = split[i]; } return Arrays.asList(split); } @Override public String write(List<String> value) { return StringHelper.join(value, ", "); } }
package com.khorn.terraincontrol.configuration.settingType; import com.khorn.terraincontrol.exception.InvalidConfigException; import com.khorn.terraincontrol.util.helpers.StringHelper; import java.util.Arrays; import java.util.List; /** * Reads and writes a list of strings. Strings are read using * {@link StringHelper#readCommaSeperatedString(String)}, and written with a * ", " between each string. * */ class StringListSetting extends Setting<List<String>> { private String[] defaultValue; StringListSetting(String name, String... defaultValue) { super(name); this.defaultValue = defaultValue; } @Override public List<String> getDefaultValue() { return Arrays.asList(defaultValue); } @Override public List<String> read(String string) throws InvalidConfigException { return Arrays.asList(StringHelper.readCommaSeperatedString(string)); } @Override public String write(List<String> value) { return StringHelper.join(value, ", "); } }
Remove some unneeded code, as StringHelper.readCommaSeperatedString already trims values
Remove some unneeded code, as StringHelper.readCommaSeperatedString already trims values
Java
mit
whichonespink44/TerrainControl,PG85/OpenTerrainGenerator,LinkBR/TerrainControl,Ezoteric/TerrainControl,MCTCP/TerrainControl
java
## Code Before: package com.khorn.terraincontrol.configuration.settingType; import com.khorn.terraincontrol.exception.InvalidConfigException; import com.khorn.terraincontrol.util.helpers.StringHelper; import java.util.Arrays; import java.util.List; /** * Reads and writes a list of strings. Strings are read using * {@link StringHelper#readCommaSeperatedString(String)}, and written with a * ", " between each string. * */ class StringListSetting extends Setting<List<String>> { private String[] defaultValue; StringListSetting(String name, String... defaultValue) { super(name); this.defaultValue = defaultValue; } @Override public List<String> getDefaultValue() { return Arrays.asList(defaultValue); } @Override public List<String> read(String string) throws InvalidConfigException { String[] split = StringHelper.readCommaSeperatedString(string); for (int i = 0; i < split.length; i++) { // Trimming the values allows "Value1, Value2" instead of // "Value1,Value2" split[i] = split[i]; } return Arrays.asList(split); } @Override public String write(List<String> value) { return StringHelper.join(value, ", "); } } ## Instruction: Remove some unneeded code, as StringHelper.readCommaSeperatedString already trims values ## Code After: package com.khorn.terraincontrol.configuration.settingType; import com.khorn.terraincontrol.exception.InvalidConfigException; import com.khorn.terraincontrol.util.helpers.StringHelper; import java.util.Arrays; import java.util.List; /** * Reads and writes a list of strings. Strings are read using * {@link StringHelper#readCommaSeperatedString(String)}, and written with a * ", " between each string. * */ class StringListSetting extends Setting<List<String>> { private String[] defaultValue; StringListSetting(String name, String... defaultValue) { super(name); this.defaultValue = defaultValue; } @Override public List<String> getDefaultValue() { return Arrays.asList(defaultValue); } @Override public List<String> read(String string) throws InvalidConfigException { return Arrays.asList(StringHelper.readCommaSeperatedString(string)); } @Override public String write(List<String> value) { return StringHelper.join(value, ", "); } }
package com.khorn.terraincontrol.configuration.settingType; import com.khorn.terraincontrol.exception.InvalidConfigException; import com.khorn.terraincontrol.util.helpers.StringHelper; import java.util.Arrays; import java.util.List; /** * Reads and writes a list of strings. Strings are read using * {@link StringHelper#readCommaSeperatedString(String)}, and written with a * ", " between each string. * */ class StringListSetting extends Setting<List<String>> { private String[] defaultValue; StringListSetting(String name, String... defaultValue) { super(name); this.defaultValue = defaultValue; } @Override public List<String> getDefaultValue() { return Arrays.asList(defaultValue); } @Override public List<String> read(String string) throws InvalidConfigException { - String[] split = StringHelper.readCommaSeperatedString(string); ? ^ ----- --- ^^^ + return Arrays.asList(StringHelper.readCommaSeperatedString(string)); ? ^^ + ++++++++++++ ^ + - for (int i = 0; i < split.length; i++) - { - // Trimming the values allows "Value1, Value2" instead of - // "Value1,Value2" - split[i] = split[i]; - } - return Arrays.asList(split); } @Override public String write(List<String> value) { return StringHelper.join(value, ", "); } }
9
0.18
1
8
a57b3df48cd7a36bd6f2a4c98f09c18fd173bdc1
packages/global/styles/07-utilities/_utilities-opacity.scss
packages/global/styles/07-utilities/_utilities-opacity.scss
/* ------------------------------------ *\ OPACITY UTILITIES see `_settings-opacity.scss` \* ------------------------------------ */ @import '@bolt/core'; @mixin bolt-opacity-utils($breakpoint: null) { @each $name, $value in $bolt-opacities { .u-bolt-opacity-#{$name}#{$breakpoint} { @include bolt-opacity($name, $utility: true); } } } @include bolt-opacity-utils; @each $breakpoint in $bolt-breakpoints { $breakpointName: nth($breakpoint, 1); @include bolt-mq($breakpointName) { @include bolt-opacity-utils(\@#{$breakpointName}); } }
/* ------------------------------------ *\ OPACITY UTILITIES see `_settings-opacity.scss` \* ------------------------------------ */ @import '@bolt/core'; @mixin bolt-opacity-utils($breakpoint: null) { @each $name, $value in $bolt-opacities { .u-bolt-opacity-#{$name}#{$breakpoint} { @include bolt-opacity($name, $utility: true); } } } @include bolt-opacity-utils; @each $breakpoint in $bolt-breakpoints { $breakpointName: nth($breakpoint, 1); @include bolt-mq($breakpointName) { @include bolt-opacity-utils(\@#{$breakpointName}); } } // DEPRECATED. These opacity values will be removed in Bolt 3.0. See $bolt-opacities for valid opacity values. // To remove support, delete all the code below this line. $bolt-deprecated-opacities-map: ( 25: 20, 50: 60, 75: 80, ); @mixin bolt-opacity-utils-deprecated($breakpoint: null) { @each $key, $value in $bolt-deprecated-opacities-map { .u-bolt-opacity-#{$key}#{$breakpoint} { @include bolt-opacity($value, $utility: true); } } } @include bolt-opacity-utils-deprecated; @each $breakpoint in $bolt-breakpoints { $breakpointName: nth($breakpoint, 1); @include bolt-mq($breakpointName) { @include bolt-opacity-utils-deprecated(\@#{$breakpointName}); } }
Add support for deprecated opacity utility classes
chore: Add support for deprecated opacity utility classes
SCSS
mit
bolt-design-system/bolt,bolt-design-system/bolt,bolt-design-system/bolt,bolt-design-system/bolt,bolt-design-system/bolt
scss
## Code Before: /* ------------------------------------ *\ OPACITY UTILITIES see `_settings-opacity.scss` \* ------------------------------------ */ @import '@bolt/core'; @mixin bolt-opacity-utils($breakpoint: null) { @each $name, $value in $bolt-opacities { .u-bolt-opacity-#{$name}#{$breakpoint} { @include bolt-opacity($name, $utility: true); } } } @include bolt-opacity-utils; @each $breakpoint in $bolt-breakpoints { $breakpointName: nth($breakpoint, 1); @include bolt-mq($breakpointName) { @include bolt-opacity-utils(\@#{$breakpointName}); } } ## Instruction: chore: Add support for deprecated opacity utility classes ## Code After: /* ------------------------------------ *\ OPACITY UTILITIES see `_settings-opacity.scss` \* ------------------------------------ */ @import '@bolt/core'; @mixin bolt-opacity-utils($breakpoint: null) { @each $name, $value in $bolt-opacities { .u-bolt-opacity-#{$name}#{$breakpoint} { @include bolt-opacity($name, $utility: true); } } } @include bolt-opacity-utils; @each $breakpoint in $bolt-breakpoints { $breakpointName: nth($breakpoint, 1); @include bolt-mq($breakpointName) { @include bolt-opacity-utils(\@#{$breakpointName}); } } // DEPRECATED. These opacity values will be removed in Bolt 3.0. See $bolt-opacities for valid opacity values. // To remove support, delete all the code below this line. $bolt-deprecated-opacities-map: ( 25: 20, 50: 60, 75: 80, ); @mixin bolt-opacity-utils-deprecated($breakpoint: null) { @each $key, $value in $bolt-deprecated-opacities-map { .u-bolt-opacity-#{$key}#{$breakpoint} { @include bolt-opacity($value, $utility: true); } } } @include bolt-opacity-utils-deprecated; @each $breakpoint in $bolt-breakpoints { $breakpointName: nth($breakpoint, 1); @include bolt-mq($breakpointName) { @include bolt-opacity-utils-deprecated(\@#{$breakpointName}); } }
/* ------------------------------------ *\ OPACITY UTILITIES see `_settings-opacity.scss` \* ------------------------------------ */ @import '@bolt/core'; @mixin bolt-opacity-utils($breakpoint: null) { @each $name, $value in $bolt-opacities { .u-bolt-opacity-#{$name}#{$breakpoint} { @include bolt-opacity($name, $utility: true); } } } @include bolt-opacity-utils; @each $breakpoint in $bolt-breakpoints { $breakpointName: nth($breakpoint, 1); @include bolt-mq($breakpointName) { @include bolt-opacity-utils(\@#{$breakpointName}); } } + + + // DEPRECATED. These opacity values will be removed in Bolt 3.0. See $bolt-opacities for valid opacity values. + // To remove support, delete all the code below this line. + $bolt-deprecated-opacities-map: ( + 25: 20, + 50: 60, + 75: 80, + ); + + @mixin bolt-opacity-utils-deprecated($breakpoint: null) { + @each $key, $value in $bolt-deprecated-opacities-map { + .u-bolt-opacity-#{$key}#{$breakpoint} { + @include bolt-opacity($value, $utility: true); + } + } + } + + @include bolt-opacity-utils-deprecated; + + @each $breakpoint in $bolt-breakpoints { + $breakpointName: nth($breakpoint, 1); + @include bolt-mq($breakpointName) { + @include bolt-opacity-utils-deprecated(\@#{$breakpointName}); + } + }
26
1.130435
26
0
946212f26ff72ea89cb549dfd759572975a6b8ad
grammpy_transforms/EpsilonRulesRemove/findTerminalsRewritedToEps.py
grammpy_transforms/EpsilonRulesRemove/findTerminalsRewritedToEps.py
from grammpy import Grammar def find_terminals_rewritable_to_epsilon(grammar: Grammar) -> list: raise NotImplementedError()
from grammpy import Grammar, EPSILON def find_terminals_rewritable_to_epsilon(grammar: Grammar) -> list: rewritable = {EPSILON} while True: working = rewritable.copy() for rule in grammar.rules(): allRewritable = True for symbol in rule.right: if symbol not in rewritable: allRewritable = False if allRewritable: working.add(rule.fromSymbol) if working == rewritable: break rewritable = working rewritable.remove(EPSILON) return [i for i in rewritable]
Implement finding of nonterminals rewritable to epsilon
Implement finding of nonterminals rewritable to epsilon
Python
mit
PatrikValkovic/grammpy
python
## Code Before: from grammpy import Grammar def find_terminals_rewritable_to_epsilon(grammar: Grammar) -> list: raise NotImplementedError() ## Instruction: Implement finding of nonterminals rewritable to epsilon ## Code After: from grammpy import Grammar, EPSILON def find_terminals_rewritable_to_epsilon(grammar: Grammar) -> list: rewritable = {EPSILON} while True: working = rewritable.copy() for rule in grammar.rules(): allRewritable = True for symbol in rule.right: if symbol not in rewritable: allRewritable = False if allRewritable: working.add(rule.fromSymbol) if working == rewritable: break rewritable = working rewritable.remove(EPSILON) return [i for i in rewritable]
- from grammpy import Grammar + from grammpy import Grammar, EPSILON ? +++++++++ def find_terminals_rewritable_to_epsilon(grammar: Grammar) -> list: - raise NotImplementedError() + rewritable = {EPSILON} + while True: + working = rewritable.copy() + for rule in grammar.rules(): + allRewritable = True + for symbol in rule.right: + if symbol not in rewritable: allRewritable = False + if allRewritable: working.add(rule.fromSymbol) + if working == rewritable: break + rewritable = working + rewritable.remove(EPSILON) + return [i for i in rewritable]
15
2.5
13
2
c76646db03ab77aa8ec60c5e5a5bb8d41f3e569f
src/main/resources/db/migration/V1__users.sql
src/main/resources/db/migration/V1__users.sql
CREATE EXTENSION IF NOT EXISTS CITEXT; CREATE TABLE IF NOT EXISTS users ( id SERIAL PRIMARY KEY, nickname CITEXT NOT NULL UNIQUE, fullname TEXT NOT NULL, email CITEXT NOT NULL UNIQUE, about TEXT ); CREATE INDEX IF NOT EXISTS idx_users_nickname ON users (nickname);
CREATE EXTENSION IF NOT EXISTS CITEXT; CREATE TABLE IF NOT EXISTS users ( id SERIAL PRIMARY KEY, nickname CITEXT NOT NULL UNIQUE COLLATE UCS_BASIC, fullname TEXT NOT NULL, email CITEXT NOT NULL UNIQUE, about TEXT ); CREATE INDEX IF NOT EXISTS idx_users_nickname ON users (nickname);
Add Collate for user nickname
Add Collate for user nickname
SQL
mit
kgulyy/database-forum-api
sql
## Code Before: CREATE EXTENSION IF NOT EXISTS CITEXT; CREATE TABLE IF NOT EXISTS users ( id SERIAL PRIMARY KEY, nickname CITEXT NOT NULL UNIQUE, fullname TEXT NOT NULL, email CITEXT NOT NULL UNIQUE, about TEXT ); CREATE INDEX IF NOT EXISTS idx_users_nickname ON users (nickname); ## Instruction: Add Collate for user nickname ## Code After: CREATE EXTENSION IF NOT EXISTS CITEXT; CREATE TABLE IF NOT EXISTS users ( id SERIAL PRIMARY KEY, nickname CITEXT NOT NULL UNIQUE COLLATE UCS_BASIC, fullname TEXT NOT NULL, email CITEXT NOT NULL UNIQUE, about TEXT ); CREATE INDEX IF NOT EXISTS idx_users_nickname ON users (nickname);
CREATE EXTENSION IF NOT EXISTS CITEXT; CREATE TABLE IF NOT EXISTS users ( id SERIAL PRIMARY KEY, - nickname CITEXT NOT NULL UNIQUE, + nickname CITEXT NOT NULL UNIQUE COLLATE UCS_BASIC, ? ++++++++++++++++++ fullname TEXT NOT NULL, email CITEXT NOT NULL UNIQUE, about TEXT ); CREATE INDEX IF NOT EXISTS idx_users_nickname ON users (nickname);
2
0.181818
1
1
ce16cf3a99d6d26ba0e112457b6ea5c5e2765d9b
src/client/app/app.component.scss
src/client/app/app.component.scss
:host { height: 100%; display: block; overflow: hidden; } .container { height: 100%; .toolbar { .toolbar__side-content { flex: 0 0 40px; display: flex; } .toolbar__header { flex: 1; display: flex; justify-content: center; .app-name { font-family: 'Arima Madurai', cursive; font-size: 18px; } } } md-sidenav { width: 300px; } main { flex: 1; display: flex; flex-direction: column; overflow: visible; router-outlet { flex: none; } } ::ng-deep.mat-sidenav-content { display: flex; flex-direction: column; } }
:host { height: 100%; display: block; overflow: hidden; } .container { height: 100%; .toolbar { .toolbar__side-content { flex: 0 0 40px; display: flex; } .toolbar__header { flex: 1; display: flex; justify-content: center; .app-name { font-family: 'Arima Madurai', cursive; font-size: 18px; padding-top: 3px; } } } md-sidenav { width: 300px; } main { flex: 1; display: flex; flex-direction: column; overflow: visible; router-outlet { flex: none; } } ::ng-deep.mat-sidenav-content { display: flex; flex-direction: column; } }
Fix misaligned app name in the header
Fix misaligned app name in the header
SCSS
mit
pglazkov/Linqua.Web,pglazkov/Linqua.Web,pglazkov/Linqua.Web,pglazkov/Linqua.Web
scss
## Code Before: :host { height: 100%; display: block; overflow: hidden; } .container { height: 100%; .toolbar { .toolbar__side-content { flex: 0 0 40px; display: flex; } .toolbar__header { flex: 1; display: flex; justify-content: center; .app-name { font-family: 'Arima Madurai', cursive; font-size: 18px; } } } md-sidenav { width: 300px; } main { flex: 1; display: flex; flex-direction: column; overflow: visible; router-outlet { flex: none; } } ::ng-deep.mat-sidenav-content { display: flex; flex-direction: column; } } ## Instruction: Fix misaligned app name in the header ## Code After: :host { height: 100%; display: block; overflow: hidden; } .container { height: 100%; .toolbar { .toolbar__side-content { flex: 0 0 40px; display: flex; } .toolbar__header { flex: 1; display: flex; justify-content: center; .app-name { font-family: 'Arima Madurai', cursive; font-size: 18px; padding-top: 3px; } } } md-sidenav { width: 300px; } main { flex: 1; display: flex; flex-direction: column; overflow: visible; router-outlet { flex: none; } } ::ng-deep.mat-sidenav-content { display: flex; flex-direction: column; } }
:host { height: 100%; display: block; overflow: hidden; } .container { height: 100%; .toolbar { .toolbar__side-content { flex: 0 0 40px; display: flex; } .toolbar__header { flex: 1; display: flex; justify-content: center; .app-name { font-family: 'Arima Madurai', cursive; font-size: 18px; + padding-top: 3px; } } } md-sidenav { width: 300px; } main { flex: 1; display: flex; flex-direction: column; overflow: visible; router-outlet { flex: none; } } ::ng-deep.mat-sidenav-content { display: flex; flex-direction: column; } }
1
0.020833
1
0
0a95e1bb3802dd0a4453f535a4b9a8320472ef7a
tasks/centos6.yml
tasks/centos6.yml
- name: "Install facette dependencies" yum2: > name={{ item }} enablerepo=epel,wizcorp state=latest with_items: facette_dependencies tags: - facette - pkgs
- name: "Install facette dependencies" yum2: > name={{ item }} enablerepo=rpmforge-extras state=latest with_items: facette_dependencies tags: - facette - pkgs
Fix facette role, update README
Fix facette role, update README
YAML
mit
AerisCloud/ansible-facette,tokyowizard/ansible-facette
yaml
## Code Before: - name: "Install facette dependencies" yum2: > name={{ item }} enablerepo=epel,wizcorp state=latest with_items: facette_dependencies tags: - facette - pkgs ## Instruction: Fix facette role, update README ## Code After: - name: "Install facette dependencies" yum2: > name={{ item }} enablerepo=rpmforge-extras state=latest with_items: facette_dependencies tags: - facette - pkgs
- name: "Install facette dependencies" yum2: > name={{ item }} - enablerepo=epel,wizcorp + enablerepo=rpmforge-extras state=latest with_items: facette_dependencies tags: - facette - pkgs
2
0.222222
1
1
6408985f9c6f3bc2d46e0a80220661cbf8a402b3
src/main/resources/tests/html/NestedFrames.html
src/main/resources/tests/html/NestedFrames.html
<HTML> <HEAD> <TITLE> NestedFrames </TITLE> <META HTTP-EQUIV="Content-Language" CONTENT="en"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html"> <FRAMESET ROWS="40,*,81" cols="100%" FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0"> <FRAME SRC="test_top.html" NAME="topFrame" SCROLLING="NO" NORESIZE > <FRAME SRC="NestedFrames2.slow.html" APPLICATION="yes" NAME="mainFrame" id="foo"> <FRAME SRC="test_bottom.html" NAME="bottomFrame" SCROLLING="NO" NORESIZE> </FRAMESET> <NOFRAMES> <BODY onload="init()"> </BODY> </NOFRAMES> </HTML>
<HTML> <HEAD> <TITLE> NestedFrames </TITLE> <META HTTP-EQUIV="Content-Language" CONTENT="en"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html"> <FRAMESET ROWS="40,*" cols="100%" FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0"> <FRAME SRC="test_top.html" NAME="topFrame" SCROLLING="NO" NORESIZE > <FRAMESET ROWS="*, 40" cols="100%" FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0"> <FRAME SRC="NestedFrames2.slow.html" APPLICATION="yes" NAME="mainFrame" id="foo"> <FRAME SRC="test_bottom.html" NAME="bottomFrame" SCROLLING="NO" NORESIZE> </FRAMESET> </FRAMESET> <NOFRAMES> <BODY onload="init()"> </BODY> </NOFRAMES> </HTML>
Use nested framesets as well as nested frames
Use nested framesets as well as nested frames r4209
HTML
apache-2.0
Herst/selenium,eric-stanley/selenium,freynaud/selenium,minhthuanit/selenium,anshumanchatterji/selenium,jknguyen/josephknguyen-selenium,joshmgrant/selenium,lilredindy/selenium,isaksky/selenium,lummyare/lummyare-test,i17c/selenium,Sravyaksr/selenium,vveliev/selenium,arunsingh/selenium,bayandin/selenium,houchj/selenium,zenefits/selenium,MeetMe/selenium,skurochkin/selenium,bayandin/selenium,krosenvold/selenium-git-release-candidate,sri85/selenium,chrsmithdemos/selenium,vinay-qa/vinayit-android-server-apk,TheBlackTuxCorp/selenium,yukaReal/selenium,xsyntrex/selenium,dbo/selenium,Sravyaksr/selenium,arunsingh/selenium,lrowe/selenium,uchida/selenium,minhthuanit/selenium,denis-vilyuzhanin/selenium-fastview,xmhubj/selenium,gabrielsimas/selenium,telefonicaid/selenium,pulkitsinghal/selenium,rrussell39/selenium,alexec/selenium,oddui/selenium,rrussell39/selenium,lukeis/selenium,sebady/selenium,alb-i986/selenium,jabbrwcky/selenium,krmahadevan/selenium,vveliev/selenium,gorlemik/selenium,dimacus/selenium,SevInf/IEDriver,soundcloud/selenium,alexec/selenium,pulkitsinghal/selenium,5hawnknight/selenium,chrisblock/selenium,quoideneuf/selenium,davehunt/selenium,AutomatedTester/selenium,SevInf/IEDriver,asashour/selenium,vinay-qa/vinayit-android-server-apk,alb-i986/selenium,lummyare/lummyare-test,rovner/selenium,lmtierney/selenium,temyers/selenium,quoideneuf/selenium,jknguyen/josephknguyen-selenium,alexec/selenium,denis-vilyuzhanin/selenium-fastview,gotcha/selenium,carsonmcdonald/selenium,Appdynamics/selenium,lilredindy/selenium,krosenvold/selenium-git-release-candidate,gorlemik/selenium,Ardesco/selenium,blackboarddd/selenium,sag-enorman/selenium,mach6/selenium,krmahadevan/selenium,xmhubj/selenium,vinay-qa/vinayit-android-server-apk,petruc/selenium,joshmgrant/selenium,SeleniumHQ/selenium,sag-enorman/selenium,Dude-X/selenium,sri85/selenium,GorK-ChO/selenium,gorlemik/selenium,asashour/selenium,temyers/selenium,wambat/selenium,p0deje/selenium,clavery/selenium,blackboarddd/selenium,blueyed/selenium,tbeadle/selenium,customcommander/selenium,thanhpete/selenium,juangj/selenium,jsarenik/jajomojo-selenium,lummyare/lummyare-lummy,rplevka/selenium,MCGallaspy/selenium,bayandin/selenium,doungni/selenium,MeetMe/selenium,HtmlUnit/selenium,lummyare/lummyare-lummy,onedox/selenium,carsonmcdonald/selenium,xsyntrex/selenium,SevInf/IEDriver,sevaseva/selenium,sankha93/selenium,gorlemik/selenium,Herst/selenium,valfirst/selenium,customcommander/selenium,SouWilliams/selenium,manuelpirez/selenium,valfirst/selenium,p0deje/selenium,sag-enorman/selenium,mach6/selenium,vveliev/selenium,slongwang/selenium,dandv/selenium,TheBlackTuxCorp/selenium,gemini-testing/selenium,GorK-ChO/selenium,joshuaduffy/selenium,thanhpete/selenium,amikey/selenium,davehunt/selenium,amikey/selenium,o-schneider/selenium,valfirst/selenium,rplevka/selenium,denis-vilyuzhanin/selenium-fastview,onedox/selenium,bartolkaruza/selenium,meksh/selenium,krosenvold/selenium,kalyanjvn1/selenium,jerome-jacob/selenium,TheBlackTuxCorp/selenium,blueyed/selenium,skurochkin/selenium,bmannix/selenium,DrMarcII/selenium,lrowe/selenium,actmd/selenium,gabrielsimas/selenium,jsarenik/jajomojo-selenium,mestihudson/selenium,MCGallaspy/selenium,TikhomirovSergey/selenium,SouWilliams/selenium,lummyare/lummyare-lummy,gotcha/selenium,sevaseva/selenium,i17c/selenium,p0deje/selenium,gregerrag/selenium,jerome-jacob/selenium,gurayinan/selenium,lrowe/selenium,xmhubj/selenium,mestihudson/selenium,joshuaduffy/selenium,freynaud/selenium,titusfortner/selenium,wambat/selenium,5hawnknight/selenium,eric-stanley/selenium,bmannix/selenium,rrussell39/selenium,yukaReal/selenium,chrsmithdemos/selenium,dbo/selenium,dimacus/selenium,amikey/selenium,onedox/selenium,sri85/selenium,o-schneider/selenium,livioc/selenium,gotcha/selenium,SevInf/IEDriver,xsyntrex/selenium,soundcloud/selenium,jerome-jacob/selenium,tarlabs/selenium,dkentw/selenium,markodolancic/selenium,sebady/selenium,chrsmithdemos/selenium,twalpole/selenium,thanhpete/selenium,bartolkaruza/selenium,minhthuanit/selenium,quoideneuf/selenium,dkentw/selenium,jsakamoto/selenium,Dude-X/selenium,titusfortner/selenium,i17c/selenium,tbeadle/selenium,zenefits/selenium,juangj/selenium,markodolancic/selenium,SeleniumHQ/selenium,asashour/selenium,misttechnologies/selenium,xmhubj/selenium,blueyed/selenium,dkentw/selenium,Tom-Trumper/selenium,amar-sharma/selenium,TheBlackTuxCorp/selenium,carsonmcdonald/selenium,Herst/selenium,lrowe/selenium,joshmgrant/selenium,SeleniumHQ/selenium,xmhubj/selenium,denis-vilyuzhanin/selenium-fastview,RamaraoDonta/ramarao-clone,bmannix/selenium,bmannix/selenium,dcjohnson1989/selenium,i17c/selenium,alb-i986/selenium,chrisblock/selenium,orange-tv-blagnac/selenium,gregerrag/selenium,petruc/selenium,dcjohnson1989/selenium,gemini-testing/selenium,juangj/selenium,arunsingh/selenium,titusfortner/selenium,dcjohnson1989/selenium,eric-stanley/selenium,TheBlackTuxCorp/selenium,Sravyaksr/selenium,gabrielsimas/selenium,i17c/selenium,thanhpete/selenium,soundcloud/selenium,uchida/selenium,s2oBCN/selenium,tkurnosova/selenium,soundcloud/selenium,manuelpirez/selenium,5hawnknight/selenium,joshmgrant/selenium,alb-i986/selenium,davehunt/selenium,mojwang/selenium,dimacus/selenium,gurayinan/selenium,dandv/selenium,freynaud/selenium,temyers/selenium,dbo/selenium,GorK-ChO/selenium,twalpole/selenium,telefonicaid/selenium,xmhubj/selenium,dimacus/selenium,lummyare/lummyare-test,zenefits/selenium,alb-i986/selenium,SeleniumHQ/selenium,joshmgrant/selenium,gurayinan/selenium,telefonicaid/selenium,gurayinan/selenium,gemini-testing/selenium,gemini-testing/selenium,valfirst/selenium,bartolkaruza/selenium,jerome-jacob/selenium,mojwang/selenium,slongwang/selenium,pulkitsinghal/selenium,lummyare/lummyare-lummy,AutomatedTester/selenium,gabrielsimas/selenium,denis-vilyuzhanin/selenium-fastview,Sravyaksr/selenium,mestihudson/selenium,asolntsev/selenium,mojwang/selenium,anshumanchatterji/selenium,quoideneuf/selenium,asolntsev/selenium,rrussell39/selenium,clavery/selenium,kalyanjvn1/selenium,sebady/selenium,xsyntrex/selenium,carsonmcdonald/selenium,o-schneider/selenium,krmahadevan/selenium,krosenvold/selenium,Jarob22/selenium,kalyanjvn1/selenium,Tom-Trumper/selenium,minhthuanit/selenium,gotcha/selenium,arunsingh/selenium,alexec/selenium,gregerrag/selenium,dibagga/selenium,p0deje/selenium,dibagga/selenium,isaksky/selenium,dimacus/selenium,mestihudson/selenium,livioc/selenium,juangj/selenium,zenefits/selenium,tbeadle/selenium,GorK-ChO/selenium,lukeis/selenium,Jarob22/selenium,minhthuanit/selenium,carlosroh/selenium,mestihudson/selenium,jsakamoto/selenium,tarlabs/selenium,rplevka/selenium,wambat/selenium,slongwang/selenium,o-schneider/selenium,onedox/selenium,krmahadevan/selenium,doungni/selenium,gurayinan/selenium,customcommander/selenium,misttechnologies/selenium,joshuaduffy/selenium,Dude-X/selenium,JosephCastro/selenium,arunsingh/selenium,houchj/selenium,gotcha/selenium,bmannix/selenium,xsyntrex/selenium,yukaReal/selenium,blueyed/selenium,uchida/selenium,arunsingh/selenium,p0deje/selenium,oddui/selenium,bayandin/selenium,kalyanjvn1/selenium,sankha93/selenium,joshuaduffy/selenium,Dude-X/selenium,eric-stanley/selenium,chrisblock/selenium,markodolancic/selenium,alexec/selenium,quoideneuf/selenium,RamaraoDonta/ramarao-clone,Jarob22/selenium,gorlemik/selenium,compstak/selenium,Appdynamics/selenium,jabbrwcky/selenium,onedox/selenium,orange-tv-blagnac/selenium,rplevka/selenium,chrisblock/selenium,wambat/selenium,lilredindy/selenium,lmtierney/selenium,tkurnosova/selenium,stupidnetizen/selenium,o-schneider/selenium,dbo/selenium,Jarob22/selenium,DrMarcII/selenium,misttechnologies/selenium,wambat/selenium,bartolkaruza/selenium,actmd/selenium,freynaud/selenium,o-schneider/selenium,bmannix/selenium,houchj/selenium,twalpole/selenium,p0deje/selenium,Sravyaksr/selenium,chrsmithdemos/selenium,carlosroh/selenium,amikey/selenium,pulkitsinghal/selenium,eric-stanley/selenium,gregerrag/selenium,chrsmithdemos/selenium,freynaud/selenium,arunsingh/selenium,dbo/selenium,rovner/selenium,sag-enorman/selenium,mach6/selenium,dandv/selenium,AutomatedTester/selenium,carlosroh/selenium,RamaraoDonta/ramarao-clone,sankha93/selenium,HtmlUnit/selenium,meksh/selenium,amar-sharma/selenium,dkentw/selenium,lukeis/selenium,misttechnologies/selenium,amikey/selenium,markodolancic/selenium,markodolancic/selenium,petruc/selenium,DrMarcII/selenium,p0deje/selenium,krosenvold/selenium,Sravyaksr/selenium,gorlemik/selenium,DrMarcII/selenium,MCGallaspy/selenium,SeleniumHQ/selenium,bartolkaruza/selenium,doungni/selenium,actmd/selenium,isaksky/selenium,sankha93/selenium,customcommander/selenium,carlosroh/selenium,mojwang/selenium,gurayinan/selenium,jknguyen/josephknguyen-selenium,gorlemik/selenium,rrussell39/selenium,yukaReal/selenium,tbeadle/selenium,SouWilliams/selenium,titusfortner/selenium,stupidnetizen/selenium,oddui/selenium,gabrielsimas/selenium,denis-vilyuzhanin/selenium-fastview,jsarenik/jajomojo-selenium,sankha93/selenium,knorrium/selenium,carlosroh/selenium,uchida/selenium,houchj/selenium,SeleniumHQ/selenium,lummyare/lummyare-test,lrowe/selenium,dimacus/selenium,clavery/selenium,aluedeke/chromedriver,DrMarcII/selenium,sevaseva/selenium,Appdynamics/selenium,lilredindy/selenium,dibagga/selenium,chrsmithdemos/selenium,carsonmcdonald/selenium,slongwang/selenium,Dude-X/selenium,SouWilliams/selenium,clavery/selenium,titusfortner/selenium,isaksky/selenium,dcjohnson1989/selenium,gemini-testing/selenium,lummyare/lummyare-lummy,actmd/selenium,MeetMe/selenium,sankha93/selenium,jerome-jacob/selenium,petruc/selenium,lmtierney/selenium,AutomatedTester/selenium,jknguyen/josephknguyen-selenium,MCGallaspy/selenium,AutomatedTester/selenium,pulkitsinghal/selenium,rrussell39/selenium,RamaraoDonta/ramarao-clone,sebady/selenium,dandv/selenium,alb-i986/selenium,gorlemik/selenium,chrisblock/selenium,jsarenik/jajomojo-selenium,mestihudson/selenium,krmahadevan/selenium,krosenvold/selenium,markodolancic/selenium,lummyare/lummyare-lummy,RamaraoDonta/ramarao-clone,dandv/selenium,asolntsev/selenium,twalpole/selenium,twalpole/selenium,i17c/selenium,joshbruning/selenium,Herst/selenium,lukeis/selenium,soundcloud/selenium,sag-enorman/selenium,lummyare/lummyare-test,petruc/selenium,clavery/selenium,zenefits/selenium,DrMarcII/selenium,SouWilliams/selenium,mestihudson/selenium,blueyed/selenium,alexec/selenium,joshuaduffy/selenium,joshuaduffy/selenium,onedox/selenium,Tom-Trumper/selenium,mach6/selenium,Tom-Trumper/selenium,jerome-jacob/selenium,amikey/selenium,meksh/selenium,manuelpirez/selenium,uchida/selenium,dcjohnson1989/selenium,davehunt/selenium,slongwang/selenium,temyers/selenium,gemini-testing/selenium,temyers/selenium,BlackSmith/selenium,BlackSmith/selenium,krosenvold/selenium-git-release-candidate,compstak/selenium,gotcha/selenium,gurayinan/selenium,tkurnosova/selenium,BlackSmith/selenium,customcommander/selenium,TheBlackTuxCorp/selenium,telefonicaid/selenium,jerome-jacob/selenium,jsakamoto/selenium,jsakamoto/selenium,asashour/selenium,soundcloud/selenium,petruc/selenium,oddui/selenium,wambat/selenium,lilredindy/selenium,doungni/selenium,mojwang/selenium,carsonmcdonald/selenium,aluedeke/chromedriver,Ardesco/selenium,petruc/selenium,slongwang/selenium,s2oBCN/selenium,bayandin/selenium,lukeis/selenium,MeetMe/selenium,tbeadle/selenium,SevInf/IEDriver,dkentw/selenium,livioc/selenium,minhthuanit/selenium,sag-enorman/selenium,rplevka/selenium,compstak/selenium,Dude-X/selenium,5hawnknight/selenium,misttechnologies/selenium,krosenvold/selenium,JosephCastro/selenium,temyers/selenium,denis-vilyuzhanin/selenium-fastview,bmannix/selenium,dbo/selenium,MCGallaspy/selenium,yukaReal/selenium,HtmlUnit/selenium,xmhubj/selenium,krosenvold/selenium-git-release-candidate,RamaraoDonta/ramarao-clone,aluedeke/chromedriver,manuelpirez/selenium,knorrium/selenium,soundcloud/selenium,SevInf/IEDriver,sri85/selenium,skurochkin/selenium,chrsmithdemos/selenium,sri85/selenium,meksh/selenium,skurochkin/selenium,DrMarcII/selenium,krosenvold/selenium-git-release-candidate,s2oBCN/selenium,jknguyen/josephknguyen-selenium,lukeis/selenium,vveliev/selenium,valfirst/selenium,blueyed/selenium,customcommander/selenium,freynaud/selenium,p0deje/selenium,vinay-qa/vinayit-android-server-apk,stupidnetizen/selenium,SeleniumHQ/selenium,GorK-ChO/selenium,Jarob22/selenium,yukaReal/selenium,gorlemik/selenium,lmtierney/selenium,livioc/selenium,minhthuanit/selenium,titusfortner/selenium,sag-enorman/selenium,knorrium/selenium,skurochkin/selenium,tarlabs/selenium,tkurnosova/selenium,tarlabs/selenium,zenefits/selenium,alexec/selenium,RamaraoDonta/ramarao-clone,thanhpete/selenium,misttechnologies/selenium,misttechnologies/selenium,Jarob22/selenium,joshmgrant/selenium,jknguyen/josephknguyen-selenium,mestihudson/selenium,bayandin/selenium,twalpole/selenium,telefonicaid/selenium,gregerrag/selenium,AutomatedTester/selenium,isaksky/selenium,livioc/selenium,tbeadle/selenium,TikhomirovSergey/selenium,sevaseva/selenium,vinay-qa/vinayit-android-server-apk,vinay-qa/vinayit-android-server-apk,lilredindy/selenium,dibagga/selenium,zenefits/selenium,isaksky/selenium,kalyanjvn1/selenium,orange-tv-blagnac/selenium,dimacus/selenium,knorrium/selenium,juangj/selenium,MCGallaspy/selenium,onedox/selenium,sebady/selenium,davehunt/selenium,jabbrwcky/selenium,manuelpirez/selenium,lmtierney/selenium,s2oBCN/selenium,lummyare/lummyare-lummy,soundcloud/selenium,Appdynamics/selenium,chrisblock/selenium,vveliev/selenium,krosenvold/selenium,MeetMe/selenium,dbo/selenium,blueyed/selenium,clavery/selenium,isaksky/selenium,SouWilliams/selenium,lummyare/lummyare-test,sevaseva/selenium,lilredindy/selenium,markodolancic/selenium,rplevka/selenium,tarlabs/selenium,s2oBCN/selenium,jabbrwcky/selenium,twalpole/selenium,telefonicaid/selenium,BlackSmith/selenium,mach6/selenium,asolntsev/selenium,MeetMe/selenium,TheBlackTuxCorp/selenium,bartolkaruza/selenium,jsakamoto/selenium,BlackSmith/selenium,amar-sharma/selenium,TheBlackTuxCorp/selenium,Herst/selenium,customcommander/selenium,bayandin/selenium,SouWilliams/selenium,rrussell39/selenium,amikey/selenium,Herst/selenium,vinay-qa/vinayit-android-server-apk,arunsingh/selenium,gurayinan/selenium,mach6/selenium,pulkitsinghal/selenium,onedox/selenium,bmannix/selenium,doungni/selenium,carlosroh/selenium,telefonicaid/selenium,TikhomirovSergey/selenium,arunsingh/selenium,asolntsev/selenium,meksh/selenium,valfirst/selenium,blueyed/selenium,MeetMe/selenium,eric-stanley/selenium,amar-sharma/selenium,knorrium/selenium,p0deje/selenium,titusfortner/selenium,dkentw/selenium,joshbruning/selenium,anshumanchatterji/selenium,joshbruning/selenium,jsakamoto/selenium,uchida/selenium,orange-tv-blagnac/selenium,s2oBCN/selenium,alb-i986/selenium,o-schneider/selenium,gotcha/selenium,tkurnosova/selenium,AutomatedTester/selenium,houchj/selenium,dibagga/selenium,dibagga/selenium,joshmgrant/selenium,amar-sharma/selenium,stupidnetizen/selenium,amar-sharma/selenium,titusfortner/selenium,jsarenik/jajomojo-selenium,houchj/selenium,livioc/selenium,gotcha/selenium,tbeadle/selenium,slongwang/selenium,uchida/selenium,skurochkin/selenium,zenefits/selenium,xsyntrex/selenium,mojwang/selenium,markodolancic/selenium,onedox/selenium,lukeis/selenium,knorrium/selenium,joshbruning/selenium,rovner/selenium,dbo/selenium,meksh/selenium,misttechnologies/selenium,anshumanchatterji/selenium,asolntsev/selenium,Ardesco/selenium,lrowe/selenium,jsarenik/jajomojo-selenium,SevInf/IEDriver,dcjohnson1989/selenium,bayandin/selenium,compstak/selenium,joshmgrant/selenium,krosenvold/selenium,thanhpete/selenium,temyers/selenium,anshumanchatterji/selenium,TikhomirovSergey/selenium,mojwang/selenium,clavery/selenium,houchj/selenium,amikey/selenium,knorrium/selenium,tkurnosova/selenium,AutomatedTester/selenium,i17c/selenium,HtmlUnit/selenium,sevaseva/selenium,joshbruning/selenium,joshuaduffy/selenium,temyers/selenium,i17c/selenium,blackboarddd/selenium,MCGallaspy/selenium,Ardesco/selenium,vveliev/selenium,Tom-Trumper/selenium,SouWilliams/selenium,meksh/selenium,chrsmithdemos/selenium,JosephCastro/selenium,vinay-qa/vinayit-android-server-apk,oddui/selenium,krmahadevan/selenium,sag-enorman/selenium,krmahadevan/selenium,JosephCastro/selenium,joshmgrant/selenium,tarlabs/selenium,JosephCastro/selenium,doungni/selenium,actmd/selenium,joshuaduffy/selenium,lmtierney/selenium,alexec/selenium,Sravyaksr/selenium,TikhomirovSergey/selenium,dandv/selenium,SeleniumHQ/selenium,rovner/selenium,meksh/selenium,asolntsev/selenium,Appdynamics/selenium,rplevka/selenium,RamaraoDonta/ramarao-clone,kalyanjvn1/selenium,amar-sharma/selenium,tarlabs/selenium,HtmlUnit/selenium,eric-stanley/selenium,GorK-ChO/selenium,JosephCastro/selenium,krosenvold/selenium,titusfortner/selenium,skurochkin/selenium,dcjohnson1989/selenium,joshmgrant/selenium,uchida/selenium,5hawnknight/selenium,alexec/selenium,juangj/selenium,vveliev/selenium,dandv/selenium,stupidnetizen/selenium,anshumanchatterji/selenium,gregerrag/selenium,bartolkaruza/selenium,livioc/selenium,petruc/selenium,doungni/selenium,dbo/selenium,krosenvold/selenium-git-release-candidate,asashour/selenium,clavery/selenium,jabbrwcky/selenium,denis-vilyuzhanin/selenium-fastview,davehunt/selenium,gemini-testing/selenium,compstak/selenium,oddui/selenium,lmtierney/selenium,SeleniumHQ/selenium,gurayinan/selenium,alb-i986/selenium,lrowe/selenium,lilredindy/selenium,davehunt/selenium,BlackSmith/selenium,asolntsev/selenium,houchj/selenium,manuelpirez/selenium,gotcha/selenium,xsyntrex/selenium,asashour/selenium,clavery/selenium,pulkitsinghal/selenium,Tom-Trumper/selenium,dibagga/selenium,freynaud/selenium,TikhomirovSergey/selenium,jerome-jacob/selenium,SevInf/IEDriver,Tom-Trumper/selenium,sebady/selenium,jsarenik/jajomojo-selenium,gabrielsimas/selenium,lummyare/lummyare-lummy,amikey/selenium,valfirst/selenium,lummyare/lummyare-lummy,kalyanjvn1/selenium,Tom-Trumper/selenium,gabrielsimas/selenium,carlosroh/selenium,slongwang/selenium,manuelpirez/selenium,tkurnosova/selenium,lmtierney/selenium,blackboarddd/selenium,bartolkaruza/selenium,dimacus/selenium,carlosroh/selenium,wambat/selenium,Ardesco/selenium,HtmlUnit/selenium,blackboarddd/selenium,misttechnologies/selenium,bartolkaruza/selenium,carlosroh/selenium,oddui/selenium,blueyed/selenium,orange-tv-blagnac/selenium,sebady/selenium,mojwang/selenium,GorK-ChO/selenium,sevaseva/selenium,livioc/selenium,dimacus/selenium,gregerrag/selenium,MeetMe/selenium,thanhpete/selenium,jerome-jacob/selenium,rovner/selenium,slongwang/selenium,manuelpirez/selenium,5hawnknight/selenium,asashour/selenium,AutomatedTester/selenium,MCGallaspy/selenium,petruc/selenium,Jarob22/selenium,blackboarddd/selenium,sevaseva/selenium,twalpole/selenium,valfirst/selenium,stupidnetizen/selenium,Herst/selenium,titusfortner/selenium,Ardesco/selenium,rovner/selenium,twalpole/selenium,Tom-Trumper/selenium,lummyare/lummyare-test,Dude-X/selenium,compstak/selenium,chrisblock/selenium,kalyanjvn1/selenium,manuelpirez/selenium,o-schneider/selenium,jknguyen/josephknguyen-selenium,chrsmithdemos/selenium,lummyare/lummyare-test,tarlabs/selenium,blackboarddd/selenium,krosenvold/selenium,isaksky/selenium,sag-enorman/selenium,blackboarddd/selenium,dibagga/selenium,JosephCastro/selenium,xsyntrex/selenium,lmtierney/selenium,asashour/selenium,amar-sharma/selenium,krosenvold/selenium-git-release-candidate,wambat/selenium,telefonicaid/selenium,skurochkin/selenium,jsakamoto/selenium,Ardesco/selenium,GorK-ChO/selenium,mach6/selenium,amar-sharma/selenium,HtmlUnit/selenium,krmahadevan/selenium,dkentw/selenium,carsonmcdonald/selenium,SouWilliams/selenium,5hawnknight/selenium,BlackSmith/selenium,xmhubj/selenium,compstak/selenium,xmhubj/selenium,aluedeke/chromedriver,Appdynamics/selenium,valfirst/selenium,jknguyen/josephknguyen-selenium,bayandin/selenium,jsarenik/jajomojo-selenium,eric-stanley/selenium,SevInf/IEDriver,uchida/selenium,joshbruning/selenium,dkentw/selenium,joshbruning/selenium,mach6/selenium,freynaud/selenium,anshumanchatterji/selenium,vveliev/selenium,valfirst/selenium,Appdynamics/selenium,rovner/selenium,doungni/selenium,Appdynamics/selenium,TikhomirovSergey/selenium,tbeadle/selenium,vinay-qa/vinayit-android-server-apk,Herst/selenium,vveliev/selenium,xsyntrex/selenium,rrussell39/selenium,orange-tv-blagnac/selenium,compstak/selenium,markodolancic/selenium,isaksky/selenium,sri85/selenium,jsarenik/jajomojo-selenium,lrowe/selenium,orange-tv-blagnac/selenium,juangj/selenium,Ardesco/selenium,mojwang/selenium,5hawnknight/selenium,gabrielsimas/selenium,jsakamoto/selenium,customcommander/selenium,minhthuanit/selenium,gregerrag/selenium,Dude-X/selenium,sankha93/selenium,soundcloud/selenium,jabbrwcky/selenium,rovner/selenium,oddui/selenium,stupidnetizen/selenium,dcjohnson1989/selenium,blackboarddd/selenium,sebady/selenium,pulkitsinghal/selenium,jabbrwcky/selenium,aluedeke/chromedriver,SeleniumHQ/selenium,tkurnosova/selenium,jabbrwcky/selenium,s2oBCN/selenium,davehunt/selenium,temyers/selenium,actmd/selenium,joshbruning/selenium,lukeis/selenium,knorrium/selenium,DrMarcII/selenium,alb-i986/selenium,dandv/selenium,MCGallaspy/selenium,aluedeke/chromedriver,BlackSmith/selenium,pulkitsinghal/selenium,rplevka/selenium,gemini-testing/selenium,jsakamoto/selenium,jknguyen/josephknguyen-selenium,HtmlUnit/selenium,quoideneuf/selenium,stupidnetizen/selenium,rplevka/selenium,Appdynamics/selenium,aluedeke/chromedriver,s2oBCN/selenium,dibagga/selenium,krosenvold/selenium-git-release-candidate,5hawnknight/selenium,Ardesco/selenium,Sravyaksr/selenium,compstak/selenium,actmd/selenium,lilredindy/selenium,dkentw/selenium,joshbruning/selenium,yukaReal/selenium,bmannix/selenium,tarlabs/selenium,RamaraoDonta/ramarao-clone,yukaReal/selenium,gabrielsimas/selenium,JosephCastro/selenium,dandv/selenium,juangj/selenium,anshumanchatterji/selenium,anshumanchatterji/selenium,livioc/selenium,juangj/selenium,quoideneuf/selenium,eric-stanley/selenium,telefonicaid/selenium,lukeis/selenium,JosephCastro/selenium,wambat/selenium,lummyare/lummyare-test,asashour/selenium,HtmlUnit/selenium,skurochkin/selenium,actmd/selenium,asolntsev/selenium,titusfortner/selenium,customcommander/selenium,Dude-X/selenium,gregerrag/selenium,doungni/selenium,i17c/selenium,Sravyaksr/selenium,dcjohnson1989/selenium,tbeadle/selenium,joshuaduffy/selenium,sri85/selenium,sri85/selenium,SeleniumHQ/selenium,MeetMe/selenium,sevaseva/selenium,aluedeke/chromedriver,tkurnosova/selenium,GorK-ChO/selenium,actmd/selenium,quoideneuf/selenium,kalyanjvn1/selenium,freynaud/selenium,carsonmcdonald/selenium,thanhpete/selenium,meksh/selenium,yukaReal/selenium,davehunt/selenium,TikhomirovSergey/selenium,quoideneuf/selenium,sri85/selenium,orange-tv-blagnac/selenium,rrussell39/selenium,zenefits/selenium,mestihudson/selenium,BlackSmith/selenium,sebady/selenium,carsonmcdonald/selenium,o-schneider/selenium,TikhomirovSergey/selenium,Jarob22/selenium,denis-vilyuzhanin/selenium-fastview,houchj/selenium,thanhpete/selenium,lrowe/selenium,rovner/selenium,mach6/selenium,valfirst/selenium,sankha93/selenium,HtmlUnit/selenium,aluedeke/chromedriver,chrisblock/selenium,stupidnetizen/selenium,jabbrwcky/selenium,DrMarcII/selenium,knorrium/selenium,oddui/selenium,sankha93/selenium,minhthuanit/selenium,Jarob22/selenium,gemini-testing/selenium,krmahadevan/selenium,s2oBCN/selenium,Herst/selenium,joshmgrant/selenium,orange-tv-blagnac/selenium,TheBlackTuxCorp/selenium,chrisblock/selenium
html
## Code Before: <HTML> <HEAD> <TITLE> NestedFrames </TITLE> <META HTTP-EQUIV="Content-Language" CONTENT="en"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html"> <FRAMESET ROWS="40,*,81" cols="100%" FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0"> <FRAME SRC="test_top.html" NAME="topFrame" SCROLLING="NO" NORESIZE > <FRAME SRC="NestedFrames2.slow.html" APPLICATION="yes" NAME="mainFrame" id="foo"> <FRAME SRC="test_bottom.html" NAME="bottomFrame" SCROLLING="NO" NORESIZE> </FRAMESET> <NOFRAMES> <BODY onload="init()"> </BODY> </NOFRAMES> </HTML> ## Instruction: Use nested framesets as well as nested frames r4209 ## Code After: <HTML> <HEAD> <TITLE> NestedFrames </TITLE> <META HTTP-EQUIV="Content-Language" CONTENT="en"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html"> <FRAMESET ROWS="40,*" cols="100%" FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0"> <FRAME SRC="test_top.html" NAME="topFrame" SCROLLING="NO" NORESIZE > <FRAMESET ROWS="*, 40" cols="100%" FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0"> <FRAME SRC="NestedFrames2.slow.html" APPLICATION="yes" NAME="mainFrame" id="foo"> <FRAME SRC="test_bottom.html" NAME="bottomFrame" SCROLLING="NO" NORESIZE> </FRAMESET> </FRAMESET> <NOFRAMES> <BODY onload="init()"> </BODY> </NOFRAMES> </HTML>
<HTML> <HEAD> <TITLE> NestedFrames </TITLE> <META HTTP-EQUIV="Content-Language" CONTENT="en"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html"> - <FRAMESET ROWS="40,*,81" cols="100%" FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0"> ? --- + <FRAMESET ROWS="40,*" cols="100%" FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0"> <FRAME SRC="test_top.html" NAME="topFrame" SCROLLING="NO" NORESIZE > + <FRAMESET ROWS="*, 40" cols="100%" FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0"> - <FRAME SRC="NestedFrames2.slow.html" APPLICATION="yes" NAME="mainFrame" id="foo"> + <FRAME SRC="NestedFrames2.slow.html" APPLICATION="yes" NAME="mainFrame" id="foo"> ? + - <FRAME SRC="test_bottom.html" NAME="bottomFrame" SCROLLING="NO" NORESIZE> + <FRAME SRC="test_bottom.html" NAME="bottomFrame" SCROLLING="NO" NORESIZE> ? + + </FRAMESET> </FRAMESET> <NOFRAMES> <BODY onload="init()"> </BODY> </NOFRAMES> </HTML>
8
0.421053
5
3
25e74a4edc4d16f05d9e41b78e62e9d60d1a38eb
hammerspoon/control-escape.lua
hammerspoon/control-escape.lua
-- Credit for this implementation goes to @arbelt and @jasoncodes 🙇⚡️😻 -- -- https://gist.github.com/arbelt/b91e1f38a0880afb316dd5b5732759f1 -- https://github.com/jasoncodes/dotfiles/blob/ac9f3ac/hammerspoon/control_escape.lua send_escape = false last_mods = {} control_key_handler = function() send_escape = false end control_key_timer = hs.timer.delayed.new(0.15, control_key_handler) control_handler = function(evt) local new_mods = evt:getFlags() if last_mods["ctrl"] == new_mods["ctrl"] then return false end if not last_mods["ctrl"] then last_mods = new_mods send_escape = true control_key_timer:start() else if send_escape then hs.eventtap.keyStroke({}, "ESCAPE") end last_mods = new_mods control_key_timer:stop() end return false end control_tap = hs.eventtap.new({hs.eventtap.event.types.flagsChanged}, control_handler) control_tap:start() other_handler = function(evt) send_escape = false return false end other_tap = hs.eventtap.new({hs.eventtap.event.types.keyDown}, other_handler) other_tap:start()
-- Credit for this implementation goes to @arbelt and @jasoncodes 🙇⚡️😻 -- -- https://gist.github.com/arbelt/b91e1f38a0880afb316dd5b5732759f1 -- https://github.com/jasoncodes/dotfiles/blob/ac9f3ac/hammerspoon/control_escape.lua send_escape = false last_mods = {} control_key_handler = function() send_escape = false end control_key_timer = hs.timer.delayed.new(0.15, control_key_handler) control_handler = function(evt) local new_mods = evt:getFlags() if last_mods["ctrl"] == new_mods["ctrl"] then return false end if not last_mods["ctrl"] then last_mods = new_mods send_escape = true control_key_timer:start() else if send_escape then keyUpDown({}, 'escape') end last_mods = new_mods control_key_timer:stop() end return false end control_tap = hs.eventtap.new({hs.eventtap.event.types.flagsChanged}, control_handler) control_tap:start() other_handler = function(evt) send_escape = false return false end other_tap = hs.eventtap.new({hs.eventtap.event.types.keyDown}, other_handler) other_tap:start()
Use custom keystroke fn to trigger esc faster after ctrl tap
Use custom keystroke fn to trigger esc faster after ctrl tap
Lua
mit
jasonrudolph/keyboard,jasonrudolph/keyboard
lua
## Code Before: -- Credit for this implementation goes to @arbelt and @jasoncodes 🙇⚡️😻 -- -- https://gist.github.com/arbelt/b91e1f38a0880afb316dd5b5732759f1 -- https://github.com/jasoncodes/dotfiles/blob/ac9f3ac/hammerspoon/control_escape.lua send_escape = false last_mods = {} control_key_handler = function() send_escape = false end control_key_timer = hs.timer.delayed.new(0.15, control_key_handler) control_handler = function(evt) local new_mods = evt:getFlags() if last_mods["ctrl"] == new_mods["ctrl"] then return false end if not last_mods["ctrl"] then last_mods = new_mods send_escape = true control_key_timer:start() else if send_escape then hs.eventtap.keyStroke({}, "ESCAPE") end last_mods = new_mods control_key_timer:stop() end return false end control_tap = hs.eventtap.new({hs.eventtap.event.types.flagsChanged}, control_handler) control_tap:start() other_handler = function(evt) send_escape = false return false end other_tap = hs.eventtap.new({hs.eventtap.event.types.keyDown}, other_handler) other_tap:start() ## Instruction: Use custom keystroke fn to trigger esc faster after ctrl tap ## Code After: -- Credit for this implementation goes to @arbelt and @jasoncodes 🙇⚡️😻 -- -- https://gist.github.com/arbelt/b91e1f38a0880afb316dd5b5732759f1 -- https://github.com/jasoncodes/dotfiles/blob/ac9f3ac/hammerspoon/control_escape.lua send_escape = false last_mods = {} control_key_handler = function() send_escape = false end control_key_timer = hs.timer.delayed.new(0.15, control_key_handler) control_handler = function(evt) local new_mods = evt:getFlags() if last_mods["ctrl"] == new_mods["ctrl"] then return false end if not last_mods["ctrl"] then last_mods = new_mods send_escape = true control_key_timer:start() else if send_escape then keyUpDown({}, 'escape') end last_mods = new_mods control_key_timer:stop() end return false end control_tap = hs.eventtap.new({hs.eventtap.event.types.flagsChanged}, control_handler) control_tap:start() other_handler = function(evt) send_escape = false return false end other_tap = hs.eventtap.new({hs.eventtap.event.types.keyDown}, other_handler) other_tap:start()
-- Credit for this implementation goes to @arbelt and @jasoncodes 🙇⚡️😻 -- -- https://gist.github.com/arbelt/b91e1f38a0880afb316dd5b5732759f1 -- https://github.com/jasoncodes/dotfiles/blob/ac9f3ac/hammerspoon/control_escape.lua send_escape = false last_mods = {} control_key_handler = function() send_escape = false end control_key_timer = hs.timer.delayed.new(0.15, control_key_handler) control_handler = function(evt) local new_mods = evt:getFlags() if last_mods["ctrl"] == new_mods["ctrl"] then return false end if not last_mods["ctrl"] then last_mods = new_mods send_escape = true control_key_timer:start() else if send_escape then - hs.eventtap.keyStroke({}, "ESCAPE") + keyUpDown({}, 'escape') end last_mods = new_mods control_key_timer:stop() end return false end control_tap = hs.eventtap.new({hs.eventtap.event.types.flagsChanged}, control_handler) control_tap:start() other_handler = function(evt) send_escape = false return false end other_tap = hs.eventtap.new({hs.eventtap.event.types.keyDown}, other_handler) other_tap:start()
2
0.046512
1
1
21e5beee94ad077072a080efd4e14346a2d77b79
lib/recaptcha_mailhide/configuration.rb
lib/recaptcha_mailhide/configuration.rb
module RecaptchaMailhide class Configuration attr_accessor :private_key, :public_key end end
module RecaptchaMailhide class Configuration attr_writer :private_key, :public_key def private_key raise "RecaptchaMailhide's private_key is not set. If you're using Rails add an initializer to config/initializers." unless @private_key @private_key end def public_key raise "RecaptchaMailhide's public_key is not set. If you're using Rails add an initializer to config/initializers." unless @public_key @public_key end end end
Make private_key and public_key raise exceptions if missing from config.
Make private_key and public_key raise exceptions if missing from config.
Ruby
mit
pilaf/recaptcha-mailhide
ruby
## Code Before: module RecaptchaMailhide class Configuration attr_accessor :private_key, :public_key end end ## Instruction: Make private_key and public_key raise exceptions if missing from config. ## Code After: module RecaptchaMailhide class Configuration attr_writer :private_key, :public_key def private_key raise "RecaptchaMailhide's private_key is not set. If you're using Rails add an initializer to config/initializers." unless @private_key @private_key end def public_key raise "RecaptchaMailhide's public_key is not set. If you're using Rails add an initializer to config/initializers." unless @public_key @public_key end end end
module RecaptchaMailhide class Configuration - attr_accessor :private_key, :public_key ? ^^^ --- + attr_writer :private_key, :public_key ? ^^^^ + + def private_key + raise "RecaptchaMailhide's private_key is not set. If you're using Rails add an initializer to config/initializers." unless @private_key + @private_key + end + + def public_key + raise "RecaptchaMailhide's public_key is not set. If you're using Rails add an initializer to config/initializers." unless @public_key + @public_key + end end end
12
2.4
11
1
8edef45bbc1f014960a4f2f3869954711091867d
src/main/java/jp/ne/naokiur/design/pattern/memento/App.java
src/main/java/jp/ne/naokiur/design/pattern/memento/App.java
package jp.ne.naokiur.design.pattern.memento; public class App { public static void main(String[] args) { CanvasVersionManagement management = new CanvasVersionManagement(); Canvas canvas = new Canvas(); canvas.paint("test"); System.out.println(canvas.getPainting()); management.add(1, canvas.createMemento()); canvas.paint("hoge"); System.out.println(canvas.getPainting()); management.add(2, canvas.createMemento()); canvas.revertMemento(management.getVersions().get(1)); System.out.println(canvas.getPainting()); } }
package jp.ne.naokiur.design.pattern.memento; public class App { public static void main(String[] args) { CanvasVersionManagement management = new CanvasVersionManagement(); Canvas canvas = new Canvas(); canvas.paint("test"); System.out.println(canvas.getPainting()); management.add(1, canvas.createMemento()); canvas.paint("hoge"); System.out.println(canvas.getPainting()); management.add(2, canvas.createMemento()); canvas.revertMemento(management.getVersions().get(1)); System.out.println(canvas.getPainting()); canvas.revertMemento(management.getVersions().get(2)); System.out.println(canvas.getPainting()); canvas.paint("fuga"); System.out.println(canvas.getPainting()); management.add(3, canvas.createMemento()); canvas.revertMemento(management.getVersions().get(1)); System.out.println(canvas.getPainting()); } }
Change confirmation of execution code..
Change confirmation of execution code..
Java
apache-2.0
naokiur/design-pattern-sample
java
## Code Before: package jp.ne.naokiur.design.pattern.memento; public class App { public static void main(String[] args) { CanvasVersionManagement management = new CanvasVersionManagement(); Canvas canvas = new Canvas(); canvas.paint("test"); System.out.println(canvas.getPainting()); management.add(1, canvas.createMemento()); canvas.paint("hoge"); System.out.println(canvas.getPainting()); management.add(2, canvas.createMemento()); canvas.revertMemento(management.getVersions().get(1)); System.out.println(canvas.getPainting()); } } ## Instruction: Change confirmation of execution code.. ## Code After: package jp.ne.naokiur.design.pattern.memento; public class App { public static void main(String[] args) { CanvasVersionManagement management = new CanvasVersionManagement(); Canvas canvas = new Canvas(); canvas.paint("test"); System.out.println(canvas.getPainting()); management.add(1, canvas.createMemento()); canvas.paint("hoge"); System.out.println(canvas.getPainting()); management.add(2, canvas.createMemento()); canvas.revertMemento(management.getVersions().get(1)); System.out.println(canvas.getPainting()); canvas.revertMemento(management.getVersions().get(2)); System.out.println(canvas.getPainting()); canvas.paint("fuga"); System.out.println(canvas.getPainting()); management.add(3, canvas.createMemento()); canvas.revertMemento(management.getVersions().get(1)); System.out.println(canvas.getPainting()); } }
package jp.ne.naokiur.design.pattern.memento; public class App { public static void main(String[] args) { CanvasVersionManagement management = new CanvasVersionManagement(); Canvas canvas = new Canvas(); canvas.paint("test"); System.out.println(canvas.getPainting()); management.add(1, canvas.createMemento()); canvas.paint("hoge"); System.out.println(canvas.getPainting()); management.add(2, canvas.createMemento()); canvas.revertMemento(management.getVersions().get(1)); System.out.println(canvas.getPainting()); + + canvas.revertMemento(management.getVersions().get(2)); + System.out.println(canvas.getPainting()); + + canvas.paint("fuga"); + System.out.println(canvas.getPainting()); + management.add(3, canvas.createMemento()); + + canvas.revertMemento(management.getVersions().get(1)); + System.out.println(canvas.getPainting()); } }
10
0.5
10
0
27035a5ade0a7a9c230b9c2184c0c0970e0f63f3
app/Http/Controllers/ItemsController.php
app/Http/Controllers/ItemsController.php
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Item; use Auth; class ItemsController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('guest'); } /** * Show the application dashboard. * * @return \Illuminate\Http\Response */ public function index() { return view('home'); } public function readItems() { $faves = Item::all(); return $faves; } public function storeItem(Request $request) { $data = new Item(); $data->name = $request->name; $data->user_id = Auth::user()->id; $data->save(); return $data; } public function deleteItem(Request $request) { Item::find($request->id)->delete (); } }
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Item; use Auth; class ItemsController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { } /** * Show the application dashboard. * * @return \Illuminate\Http\Response */ public function index() { return view('home'); } public function readItems() { $items = Item::with('category')->get(); return $items; } public function storeItem(Request $request) { $data = new Item(); $data->name = $request->name; $data->category_id = $request->category_id; $data->user_id = Auth::user()->id; $data->save(); return $data; } public function deleteItem(Request $request) { Item::find($request->id)->delete (); } }
Update faves to items, remove guest middleware
Update faves to items, remove guest middleware
PHP
agpl-3.0
snipe/lessthanthrees,snipe/lessthanthrees,snipe/lessthanthrees
php
## Code Before: <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Item; use Auth; class ItemsController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('guest'); } /** * Show the application dashboard. * * @return \Illuminate\Http\Response */ public function index() { return view('home'); } public function readItems() { $faves = Item::all(); return $faves; } public function storeItem(Request $request) { $data = new Item(); $data->name = $request->name; $data->user_id = Auth::user()->id; $data->save(); return $data; } public function deleteItem(Request $request) { Item::find($request->id)->delete (); } } ## Instruction: Update faves to items, remove guest middleware ## Code After: <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Item; use Auth; class ItemsController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { } /** * Show the application dashboard. * * @return \Illuminate\Http\Response */ public function index() { return view('home'); } public function readItems() { $items = Item::with('category')->get(); return $items; } public function storeItem(Request $request) { $data = new Item(); $data->name = $request->name; $data->category_id = $request->category_id; $data->user_id = Auth::user()->id; $data->save(); return $data; } public function deleteItem(Request $request) { Item::find($request->id)->delete (); } }
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Item; use Auth; class ItemsController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { - $this->middleware('guest'); + } /** * Show the application dashboard. * * @return \Illuminate\Http\Response */ public function index() { return view('home'); } public function readItems() { - $faves = Item::all(); + $items = Item::with('category')->get(); - return $faves; ? ^^^ + return $items; ? ^^ + } public function storeItem(Request $request) { $data = new Item(); $data->name = $request->name; + $data->category_id = $request->category_id; $data->user_id = Auth::user()->id; $data->save(); return $data; } public function deleteItem(Request $request) { Item::find($request->id)->delete (); } }
7
0.145833
4
3
b9d167fa9ca3f1c2fd57d9d080f382aa037d0047
.travis.yml
.travis.yml
sudo: false os: - linux - osx addons: apt: packages: - vim-gtk - silversearcher-ag before_script: - if [[ "$TRAVIS_OS_NAME" == osx ]]; then brew update && brew install vim; fi script: - test/run
language: vim before_script: - sudo apt-get -qq update - sudo apt-get install -y vim-gtk - sudo apt-get install -y silversearcher-ag script: - test/run
Revert "Tests: OSX and Linux on contained-based infrastructure"
Revert "Tests: OSX and Linux on contained-based infrastructure" Travis' addon system doesn't support the silversearcher-ag package yet. :\ This reverts commit e874d15d25878d7cf46c62505ab0aa31b866ffd4.
YAML
mit
mhinz/vim-grepper
yaml
## Code Before: sudo: false os: - linux - osx addons: apt: packages: - vim-gtk - silversearcher-ag before_script: - if [[ "$TRAVIS_OS_NAME" == osx ]]; then brew update && brew install vim; fi script: - test/run ## Instruction: Revert "Tests: OSX and Linux on contained-based infrastructure" Travis' addon system doesn't support the silversearcher-ag package yet. :\ This reverts commit e874d15d25878d7cf46c62505ab0aa31b866ffd4. ## Code After: language: vim before_script: - sudo apt-get -qq update - sudo apt-get install -y vim-gtk - sudo apt-get install -y silversearcher-ag script: - test/run
+ language: vim - sudo: false - - os: - - linux - - osx - - addons: - apt: - packages: - - vim-gtk - - silversearcher-ag before_script: - - if [[ "$TRAVIS_OS_NAME" == osx ]]; then brew update && brew install vim; fi + - sudo apt-get -qq update + - sudo apt-get install -y vim-gtk + - sudo apt-get install -y silversearcher-ag script: - - test/run + - test/run ? ++
18
1.058824
5
13
7e3dfe47598401f4d5b96a377927473bb8adc244
bush/aws/base.py
bush/aws/base.py
from bush.aws.session import create_session class AWSBase: # USAGE = "" # SUB_COMMANDS = [] def __init__(self, options, resource_name): self.name = resource_name self.options = options self.session = create_session(options) self.resource = self.session.resource(resource_name) self.client = self.session.client(resource_name)
from bush.aws.session import create_session class AWSBase: # USAGE = "" # SUB_COMMANDS = [] def __init__(self, options, resource_name): self.name = resource_name self.options = options self.session = create_session(options) @property def resource(self): if not hasattr(self, '__resource'): self.__set_resource() return self.__resource @property def client(self): if not hasattr(self, '__client'): self.__set_client() return self.__client def __set_resource(self): self.__resource = self.session.resource(self.name) def __set_client(self): self.__client = self.session.client(self.name)
Set resource and client when it is needed
Set resource and client when it is needed
Python
mit
okamos/bush
python
## Code Before: from bush.aws.session import create_session class AWSBase: # USAGE = "" # SUB_COMMANDS = [] def __init__(self, options, resource_name): self.name = resource_name self.options = options self.session = create_session(options) self.resource = self.session.resource(resource_name) self.client = self.session.client(resource_name) ## Instruction: Set resource and client when it is needed ## Code After: from bush.aws.session import create_session class AWSBase: # USAGE = "" # SUB_COMMANDS = [] def __init__(self, options, resource_name): self.name = resource_name self.options = options self.session = create_session(options) @property def resource(self): if not hasattr(self, '__resource'): self.__set_resource() return self.__resource @property def client(self): if not hasattr(self, '__client'): self.__set_client() return self.__client def __set_resource(self): self.__resource = self.session.resource(self.name) def __set_client(self): self.__client = self.session.client(self.name)
from bush.aws.session import create_session class AWSBase: # USAGE = "" # SUB_COMMANDS = [] def __init__(self, options, resource_name): self.name = resource_name self.options = options self.session = create_session(options) + + @property + def resource(self): + if not hasattr(self, '__resource'): + self.__set_resource() + return self.__resource + + @property + def client(self): + if not hasattr(self, '__client'): + self.__set_client() + return self.__client + + def __set_resource(self): - self.resource = self.session.resource(resource_name) ? ^ ^^^^^^^ + self.__resource = self.session.resource(self.name) ? ++ ^ ^^^ + + def __set_client(self): - self.client = self.session.client(resource_name) ? ^ ^^^^^^^ + self.__client = self.session.client(self.name) ? ++ ^ ^^^
20
1.538462
18
2
ca0dc4833455e4f3fb44b0090b8d10c38aec2cc2
app/views/polls/answer.js.coffee
app/views/polls/answer.js.coffee
$(".polls").fadeOut 500, -> $(".polls[data-id='<%= @poll.id %>']").replaceWith("<%= escape_javascript(render :partial => "polls/poll", :locals => {:previous_poll => @poll}) %>") $(".polls").show()
$(".polls").fadeOut 500, -> $(".polls[data-id='<%= @poll.id %>']").replaceWith("<%= escape_javascript(render :partial => "polls/poll", :locals => {:last_completed_poll => @poll}) %>") $(".polls").show()
Fix bug when voting where local had been mis-named
Fix bug when voting where local had been mis-named
CoffeeScript
mit
rails-school/school,rails-school/school,rails-school/school
coffeescript
## Code Before: $(".polls").fadeOut 500, -> $(".polls[data-id='<%= @poll.id %>']").replaceWith("<%= escape_javascript(render :partial => "polls/poll", :locals => {:previous_poll => @poll}) %>") $(".polls").show() ## Instruction: Fix bug when voting where local had been mis-named ## Code After: $(".polls").fadeOut 500, -> $(".polls[data-id='<%= @poll.id %>']").replaceWith("<%= escape_javascript(render :partial => "polls/poll", :locals => {:last_completed_poll => @poll}) %>") $(".polls").show()
$(".polls").fadeOut 500, -> - $(".polls[data-id='<%= @poll.id %>']").replaceWith("<%= escape_javascript(render :partial => "polls/poll", :locals => {:previous_poll => @poll}) %>") ? ^ ^^^^^ + $(".polls[data-id='<%= @poll.id %>']").replaceWith("<%= escape_javascript(render :partial => "polls/poll", :locals => {:last_completed_poll => @poll}) %>") ? ++++++++ ^ ^^^ $(".polls").show()
2
0.666667
1
1
593c58c3524d60c8d714bf9cb20dd309b8208be0
Pod/Classes/Networking/DownloadManager/MODownloadManagerDelegate.swift
Pod/Classes/Networking/DownloadManager/MODownloadManagerDelegate.swift
import Foundation public protocol MODownloadManagerDelegate { func downloadRequestDidUpdateProgress(downloadModel: MODownloadModel, index: Int) func downloadRequestStarted(downloadOperation: DownloadOperation, index: Int) func downloadRequestPaused(downloadModel: MODownloadModel, index: Int) func downloadRequestedResumed(downloadModel: MODownloadModel, index: Int) func downloadRequesteDeleted(downloadModel: MODownloadModel, index: Int) func downloadRequestCancelled(downloadModel: MODownloadModel, index: Int) func downloadRequestFinished(downloadModel: MODownloadModel, errorOptional: NSError?) func downloadRequestFailed(downloadModel: MODownloadModel, errorOptional: NSError?) } public protocol DownloadManager { var delegate: MODownloadManagerDelegate? { get set } func startDownload(asset: Asset) func pauseDownload(asset: Asset) func cancelDownload(asset: Asset) func deleteDownload(asset: Asset) func resumeDownload(asset: Asset) } public protocol Asset { var id: String { get } var fileName: String { get } var fileURL: String { get } }
import Foundation public protocol MODownloadManagerDelegate { func downloadRequestDidUpdateProgress(downloadModel: MODownloadModel, index: Int) func downloadRequestStarted(downloadOperation: DownloadOperation, index: Int) func downloadRequestPaused(downloadModel: MODownloadModel, index: Int) func downloadRequestedResumed(downloadModel: MODownloadModel, index: Int) func downloadRequesteDeleted(downloadModel: MODownloadModel, index: Int) func downloadRequestCancelled(downloadModel: MODownloadModel, index: Int) func downloadRequestFinished(downloadModel: MODownloadModel, errorOptional: NSError?) func downloadRequestFailed(downloadModel: MODownloadModel, errorOptional: NSError?) } public protocol DownloadManager { var delegate: MODownloadManagerDelegate? { get set } var downloadQueue: [DownloadOperation] { get } func startDownload(asset: Asset) func pauseDownload(asset: Asset) func cancelDownload(asset: Asset) func deleteDownload(asset: Asset) func resumeDownload(asset: Asset) } public protocol Asset { var id: String { get } var fileName: String { get } var fileURL: String { get } }
Update to protocol so all downloadManagers will need to implement a download queue
Update to protocol so all downloadManagers will need to implement a download queue
Swift
apache-2.0
imobilize/Molib
swift
## Code Before: import Foundation public protocol MODownloadManagerDelegate { func downloadRequestDidUpdateProgress(downloadModel: MODownloadModel, index: Int) func downloadRequestStarted(downloadOperation: DownloadOperation, index: Int) func downloadRequestPaused(downloadModel: MODownloadModel, index: Int) func downloadRequestedResumed(downloadModel: MODownloadModel, index: Int) func downloadRequesteDeleted(downloadModel: MODownloadModel, index: Int) func downloadRequestCancelled(downloadModel: MODownloadModel, index: Int) func downloadRequestFinished(downloadModel: MODownloadModel, errorOptional: NSError?) func downloadRequestFailed(downloadModel: MODownloadModel, errorOptional: NSError?) } public protocol DownloadManager { var delegate: MODownloadManagerDelegate? { get set } func startDownload(asset: Asset) func pauseDownload(asset: Asset) func cancelDownload(asset: Asset) func deleteDownload(asset: Asset) func resumeDownload(asset: Asset) } public protocol Asset { var id: String { get } var fileName: String { get } var fileURL: String { get } } ## Instruction: Update to protocol so all downloadManagers will need to implement a download queue ## Code After: import Foundation public protocol MODownloadManagerDelegate { func downloadRequestDidUpdateProgress(downloadModel: MODownloadModel, index: Int) func downloadRequestStarted(downloadOperation: DownloadOperation, index: Int) func downloadRequestPaused(downloadModel: MODownloadModel, index: Int) func downloadRequestedResumed(downloadModel: MODownloadModel, index: Int) func downloadRequesteDeleted(downloadModel: MODownloadModel, index: Int) func downloadRequestCancelled(downloadModel: MODownloadModel, index: Int) func downloadRequestFinished(downloadModel: MODownloadModel, errorOptional: NSError?) func downloadRequestFailed(downloadModel: MODownloadModel, errorOptional: NSError?) } public protocol DownloadManager { var delegate: MODownloadManagerDelegate? { get set } var downloadQueue: [DownloadOperation] { get } func startDownload(asset: Asset) func pauseDownload(asset: Asset) func cancelDownload(asset: Asset) func deleteDownload(asset: Asset) func resumeDownload(asset: Asset) } public protocol Asset { var id: String { get } var fileName: String { get } var fileURL: String { get } }
import Foundation public protocol MODownloadManagerDelegate { func downloadRequestDidUpdateProgress(downloadModel: MODownloadModel, index: Int) func downloadRequestStarted(downloadOperation: DownloadOperation, index: Int) func downloadRequestPaused(downloadModel: MODownloadModel, index: Int) func downloadRequestedResumed(downloadModel: MODownloadModel, index: Int) func downloadRequesteDeleted(downloadModel: MODownloadModel, index: Int) func downloadRequestCancelled(downloadModel: MODownloadModel, index: Int) func downloadRequestFinished(downloadModel: MODownloadModel, errorOptional: NSError?) func downloadRequestFailed(downloadModel: MODownloadModel, errorOptional: NSError?) } public protocol DownloadManager { var delegate: MODownloadManagerDelegate? { get set } + var downloadQueue: [DownloadOperation] { get } + func startDownload(asset: Asset) func pauseDownload(asset: Asset) func cancelDownload(asset: Asset) func deleteDownload(asset: Asset) func resumeDownload(asset: Asset) } public protocol Asset { var id: String { get } var fileName: String { get } var fileURL: String { get } }
2
0.042553
2
0
19807281238c44b5c596cbb15fbbc4358031b77b
theme.toml
theme.toml
name = "Hugo Bootstrap Premium" license = "MIT" licenselink = "https://github.com/appernetic/hugo-bootstrap-mod/LICENSE.md" description = "A hugo theme using bootstrap, bootswatch, font-awesome, highlight.js and a popover email opt-in form" homepage = "https://github.com/appernetic/hugo-bootstrap-premium" tags = ["blog", "technical", "personal"] features = ["blog", "technical", "personal, popover opt-in form"] min_version = 0.15 [author] name = "Göran Svensson" homepage = "http://appernetic.github.io" [original] author = "Murali Rath/Steven Enten" homepage = "https://github.com/enten/hyde-y" repo = "https://github.com/enten/hyde-y"
name = "Hugo Bootstrap Premium" license = "MIT" licenselink = "https://github.com/appernetic/hugo-bootstrap-premium/LICENSE.md" description = "A hugo theme using bootstrap, bootswatch, font-awesome, highlight.js and a popover email opt-in form" homepage = "https://github.com/appernetic/hugo-bootstrap-premium" tags = ["blog", "technical", "personal"] features = ["blog", "technical", "personal"] min_version = 0.15 [author] name = "Göran Svensson" homepage = "http://appernetic.github.io" [original] author = "Murali Rath/Steven Enten" homepage = "https://github.com/enten/hyde-y" repo = "https://github.com/enten/hyde-y"
Remove popup as a feature and give it the right name
Remove popup as a feature and give it the right name
TOML
mit
appernetic/hugo-bootstrap-premium,appernetic/hugo-bootstrap-premium
toml
## Code Before: name = "Hugo Bootstrap Premium" license = "MIT" licenselink = "https://github.com/appernetic/hugo-bootstrap-mod/LICENSE.md" description = "A hugo theme using bootstrap, bootswatch, font-awesome, highlight.js and a popover email opt-in form" homepage = "https://github.com/appernetic/hugo-bootstrap-premium" tags = ["blog", "technical", "personal"] features = ["blog", "technical", "personal, popover opt-in form"] min_version = 0.15 [author] name = "Göran Svensson" homepage = "http://appernetic.github.io" [original] author = "Murali Rath/Steven Enten" homepage = "https://github.com/enten/hyde-y" repo = "https://github.com/enten/hyde-y" ## Instruction: Remove popup as a feature and give it the right name ## Code After: name = "Hugo Bootstrap Premium" license = "MIT" licenselink = "https://github.com/appernetic/hugo-bootstrap-premium/LICENSE.md" description = "A hugo theme using bootstrap, bootswatch, font-awesome, highlight.js and a popover email opt-in form" homepage = "https://github.com/appernetic/hugo-bootstrap-premium" tags = ["blog", "technical", "personal"] features = ["blog", "technical", "personal"] min_version = 0.15 [author] name = "Göran Svensson" homepage = "http://appernetic.github.io" [original] author = "Murali Rath/Steven Enten" homepage = "https://github.com/enten/hyde-y" repo = "https://github.com/enten/hyde-y"
name = "Hugo Bootstrap Premium" license = "MIT" - licenselink = "https://github.com/appernetic/hugo-bootstrap-mod/LICENSE.md" ? ^^ + licenselink = "https://github.com/appernetic/hugo-bootstrap-premium/LICENSE.md" ? +++ ^^^ description = "A hugo theme using bootstrap, bootswatch, font-awesome, highlight.js and a popover email opt-in form" homepage = "https://github.com/appernetic/hugo-bootstrap-premium" tags = ["blog", "technical", "personal"] - features = ["blog", "technical", "personal, popover opt-in form"] ? --------------------- + features = ["blog", "technical", "personal"] min_version = 0.15 [author] name = "Göran Svensson" homepage = "http://appernetic.github.io" [original] author = "Murali Rath/Steven Enten" homepage = "https://github.com/enten/hyde-y" repo = "https://github.com/enten/hyde-y"
4
0.235294
2
2
757f06b2bce261d570a501bb41452495a0525150
make/make_files.go
make/make_files.go
package make import ( "fmt" log "github.com/Sirupsen/logrus" "os" "strings" "time" ) // InstallFileSystem installs a basic private file system for any given input. func (Site *Site) InstallFileSystem(DirectoryPath string) { // Test the file system, create it if it doesn't exist! dirPath := fmt.Sprintf(strings.Join([]string{Site.Path, Site.Domain + ".latest", "sites", Site.Name, DirectoryPath}, "/")) _, err := os.Stat(dirPath + "/" + dirPath) if err != nil { dirErr := os.MkdirAll(dirPath, 0755) if dirErr != nil { log.Errorln("Couldn't create file system at", dirPath, dirErr) } else { log.Infoln("Created file system at", dirPath) time.Sleep(1 * time.Second) } } }
package make import ( "fmt" log "github.com/Sirupsen/logrus" "os" "strings" "time" ) // InstallFileSystem installs a basic private file system for any given input. func (Site *Site) InstallFileSystem(DirectoryPath string) { // Test the file system, create it if it doesn't exist! dirPath := fmt.Sprintf(strings.Join([]string{Site.Path, Site.TimeStampGet(), "sites", Site.Name, DirectoryPath}, "/")) _, err := os.Stat(dirPath + "/" + dirPath) if err != nil { dirErr := os.MkdirAll(dirPath, 0755) if dirErr != nil { log.Errorln("Couldn't create file system at", dirPath, dirErr) } else { log.Infoln("Created file system at", dirPath) time.Sleep(1 * time.Second) } } }
Change path to install file systems - should not be created inside non-existant folder.
Change path to install file systems - should not be created inside non-existant folder.
Go
mit
fubarhouse/golang-drush
go
## Code Before: package make import ( "fmt" log "github.com/Sirupsen/logrus" "os" "strings" "time" ) // InstallFileSystem installs a basic private file system for any given input. func (Site *Site) InstallFileSystem(DirectoryPath string) { // Test the file system, create it if it doesn't exist! dirPath := fmt.Sprintf(strings.Join([]string{Site.Path, Site.Domain + ".latest", "sites", Site.Name, DirectoryPath}, "/")) _, err := os.Stat(dirPath + "/" + dirPath) if err != nil { dirErr := os.MkdirAll(dirPath, 0755) if dirErr != nil { log.Errorln("Couldn't create file system at", dirPath, dirErr) } else { log.Infoln("Created file system at", dirPath) time.Sleep(1 * time.Second) } } } ## Instruction: Change path to install file systems - should not be created inside non-existant folder. ## Code After: package make import ( "fmt" log "github.com/Sirupsen/logrus" "os" "strings" "time" ) // InstallFileSystem installs a basic private file system for any given input. func (Site *Site) InstallFileSystem(DirectoryPath string) { // Test the file system, create it if it doesn't exist! dirPath := fmt.Sprintf(strings.Join([]string{Site.Path, Site.TimeStampGet(), "sites", Site.Name, DirectoryPath}, "/")) _, err := os.Stat(dirPath + "/" + dirPath) if err != nil { dirErr := os.MkdirAll(dirPath, 0755) if dirErr != nil { log.Errorln("Couldn't create file system at", dirPath, dirErr) } else { log.Infoln("Created file system at", dirPath) time.Sleep(1 * time.Second) } } }
package make import ( "fmt" log "github.com/Sirupsen/logrus" "os" "strings" "time" ) // InstallFileSystem installs a basic private file system for any given input. func (Site *Site) InstallFileSystem(DirectoryPath string) { // Test the file system, create it if it doesn't exist! - dirPath := fmt.Sprintf(strings.Join([]string{Site.Path, Site.Domain + ".latest", "sites", Site.Name, DirectoryPath}, "/")) ? ^^ ^^^^^^^^^ ^^^^ + dirPath := fmt.Sprintf(strings.Join([]string{Site.Path, Site.TimeStampGet(), "sites", Site.Name, DirectoryPath}, "/")) ? ^^ +++ ^^^^ ^^ _, err := os.Stat(dirPath + "/" + dirPath) if err != nil { dirErr := os.MkdirAll(dirPath, 0755) if dirErr != nil { log.Errorln("Couldn't create file system at", dirPath, dirErr) } else { log.Infoln("Created file system at", dirPath) time.Sleep(1 * time.Second) } } }
2
0.08
1
1
4c005519c45c7bb16f1ae6791d81927e129446d8
lib/web_console/view.rb
lib/web_console/view.rb
module WebConsole class View < ActionView::Base # Execute a block only on error pages. # # The error pages are special, because they are the only pages that # currently require multiple bindings. We get those from exceptions. def only_on_error_page(*args) yield if @env['web_console.exception'].present? end # Render JavaScript inside a script tag and a closure. # # This one lets write JavaScript that will automatically get wrapped in a # script tag and enclosed in a closure, so you don't have to worry for # leaking globals, unless you explicitly want to. def render_javascript(template) render(template: template, layout: 'layouts/javascript') end # Render inlined string to be used inside of JavaScript code. # # The inlined string is returned as an actual JavaScript string. You # don't need to wrap the result yourself. def render_inlined_string(template) render(template: template, layout: 'layouts/inlined_string') end # Escaped alias for "ActionView::Helpers::TranslationHelper.t". def t(key, options = {}) super.gsub("\n", "\\n") end end end
module WebConsole class View < ActionView::Base # Execute a block only on error pages. # # The error pages are special, because they are the only pages that # currently require multiple bindings. We get those from exceptions. def only_on_error_page(*args) yield if @env['web_console.exception'].present? end # Render JavaScript inside a script tag and a closure. # # This one lets write JavaScript that will automatically get wrapped in a # script tag and enclosed in a closure, so you don't have to worry for # leaking globals, unless you explicitly want to. def render_javascript(template) render(template: template, layout: 'layouts/javascript') end # Render inlined string to be used inside of JavaScript code. # # The inlined string is returned as an actual JavaScript string. You # don't need to wrap the result yourself. def render_inlined_string(template) render(template: template, layout: 'layouts/inlined_string') end # Override method for ActionView::Helpers::TranslationHelper#t. # # This method escapes the original return value for JavaScript, since the # method returns a HTML tag with some attributes when the key is not found, # so it could cause a syntax error if we use the value in the string literals. def t(key, options = {}) j super end end end
Use j() for i18n translating text
Use j() for i18n translating text
Ruby
mit
gsamokovarov/web-console,eileencodes/web-console,zBMNForks/web-console,tabislick/web-console,zBMNForks/web-console,sh19910711/web-console,eileencodes/web-console,gsamokovarov/web-console,eileencodes/web-console,zBMNForks/web-console,gsamokovarov/web-console,tabislick/web-console,sh19910711/web-console,rails/web-console,tabislick/web-console,zBMNForks/web-console,rails/web-console,tabislick/web-console,eileencodes/web-console,rails/web-console,sh19910711/web-console,sh19910711/web-console,gsamokovarov/web-console,rails/web-console
ruby
## Code Before: module WebConsole class View < ActionView::Base # Execute a block only on error pages. # # The error pages are special, because they are the only pages that # currently require multiple bindings. We get those from exceptions. def only_on_error_page(*args) yield if @env['web_console.exception'].present? end # Render JavaScript inside a script tag and a closure. # # This one lets write JavaScript that will automatically get wrapped in a # script tag and enclosed in a closure, so you don't have to worry for # leaking globals, unless you explicitly want to. def render_javascript(template) render(template: template, layout: 'layouts/javascript') end # Render inlined string to be used inside of JavaScript code. # # The inlined string is returned as an actual JavaScript string. You # don't need to wrap the result yourself. def render_inlined_string(template) render(template: template, layout: 'layouts/inlined_string') end # Escaped alias for "ActionView::Helpers::TranslationHelper.t". def t(key, options = {}) super.gsub("\n", "\\n") end end end ## Instruction: Use j() for i18n translating text ## Code After: module WebConsole class View < ActionView::Base # Execute a block only on error pages. # # The error pages are special, because they are the only pages that # currently require multiple bindings. We get those from exceptions. def only_on_error_page(*args) yield if @env['web_console.exception'].present? end # Render JavaScript inside a script tag and a closure. # # This one lets write JavaScript that will automatically get wrapped in a # script tag and enclosed in a closure, so you don't have to worry for # leaking globals, unless you explicitly want to. def render_javascript(template) render(template: template, layout: 'layouts/javascript') end # Render inlined string to be used inside of JavaScript code. # # The inlined string is returned as an actual JavaScript string. You # don't need to wrap the result yourself. def render_inlined_string(template) render(template: template, layout: 'layouts/inlined_string') end # Override method for ActionView::Helpers::TranslationHelper#t. # # This method escapes the original return value for JavaScript, since the # method returns a HTML tag with some attributes when the key is not found, # so it could cause a syntax error if we use the value in the string literals. def t(key, options = {}) j super end end end
module WebConsole class View < ActionView::Base # Execute a block only on error pages. # # The error pages are special, because they are the only pages that # currently require multiple bindings. We get those from exceptions. def only_on_error_page(*args) yield if @env['web_console.exception'].present? end # Render JavaScript inside a script tag and a closure. # # This one lets write JavaScript that will automatically get wrapped in a # script tag and enclosed in a closure, so you don't have to worry for # leaking globals, unless you explicitly want to. def render_javascript(template) render(template: template, layout: 'layouts/javascript') end # Render inlined string to be used inside of JavaScript code. # # The inlined string is returned as an actual JavaScript string. You # don't need to wrap the result yourself. def render_inlined_string(template) render(template: template, layout: 'layouts/inlined_string') end - # Escaped alias for "ActionView::Helpers::TranslationHelper.t". ? ^^^^^ ^^^^^ - --- + # Override method for ActionView::Helpers::TranslationHelper#t. ? ^^ +++ + ^^^^^^ ++ + # + # This method escapes the original return value for JavaScript, since the + # method returns a HTML tag with some attributes when the key is not found, + # so it could cause a syntax error if we use the value in the string literals. def t(key, options = {}) - super.gsub("\n", "\\n") + j super end end end
8
0.242424
6
2
2ec071af3a9fb0f83949df8410558d2e1f9d226d
spring-boot-cli/samples/integration.groovy
spring-boot-cli/samples/integration.groovy
package org.test @Configuration @EnableIntegration @Grab("jackson-databind") class SpringIntegrationExample implements CommandLineRunner { @Autowired private ApplicationContext context; @Bean DirectChannel input() { new DirectChannel(); } @Override void run(String... args) { println() println '>>>> ' + new MessagingTemplate(input()).convertSendAndReceive("World", String) + ' <<<<' println() /* * Since this is a simple application that we want to exit right away, * close the context. For an active integration application, with pollers * etc, you can either suspend the main thread here (e.g. with System.in.read()), * or exit the run() method without closing the context, and stop the * application later using some other technique (kill, JMX etc). */ context.close() } } @MessageEndpoint class HelloTransformer { @Transformer(inputChannel="input") String transform(String payload) { "Hello, ${payload}" } }
package org.test @Configuration @EnableIntegration class SpringIntegrationExample implements CommandLineRunner { @Autowired private ApplicationContext context; @Bean DirectChannel input() { new DirectChannel(); } @Override void run(String... args) { println() println '>>>> ' + new MessagingTemplate(input()).convertSendAndReceive("World", String) + ' <<<<' println() /* * Since this is a simple application that we want to exit right away, * close the context. For an active integration application, with pollers * etc, you can either suspend the main thread here (e.g. with System.in.read()), * or exit the run() method without closing the context, and stop the * application later using some other technique (kill, JMX etc). */ context.close() } } @MessageEndpoint class HelloTransformer { @Transformer(inputChannel="input") String transform(String payload) { "Hello, ${payload}" } }
Revert "Add temporary work around for regression in Spring Integration"
Revert "Add temporary work around for regression in Spring Integration" This reverts commit 71b53e816d5831ad6872757ad2ee99e1f878d752.
Groovy
apache-2.0
bbrouwer/spring-boot,mbenson/spring-boot,michael-simons/spring-boot,mbenson/spring-boot,olivergierke/spring-boot,isopov/spring-boot,isopov/spring-boot,ihoneymon/spring-boot,donhuvy/spring-boot,ihoneymon/spring-boot,dreis2211/spring-boot,rweisleder/spring-boot,kdvolder/spring-boot,ptahchiev/spring-boot,michael-simons/spring-boot,wilkinsona/spring-boot,Nowheresly/spring-boot,Buzzardo/spring-boot,eddumelendez/spring-boot,shangyi0102/spring-boot,ihoneymon/spring-boot,tsachev/spring-boot,spring-projects/spring-boot,jxblum/spring-boot,donhuvy/spring-boot,NetoDevel/spring-boot,tsachev/spring-boot,vpavic/spring-boot,dreis2211/spring-boot,jayarampradhan/spring-boot,chrylis/spring-boot,shakuzen/spring-boot,jxblum/spring-boot,htynkn/spring-boot,kamilszymanski/spring-boot,NetoDevel/spring-boot,lburgazzoli/spring-boot,vpavic/spring-boot,DeezCashews/spring-boot,DeezCashews/spring-boot,vpavic/spring-boot,jxblum/spring-boot,linead/spring-boot,linead/spring-boot,jxblum/spring-boot,mdeinum/spring-boot,DeezCashews/spring-boot,ilayaperumalg/spring-boot,aahlenst/spring-boot,bjornlindstrom/spring-boot,ihoneymon/spring-boot,wilkinsona/spring-boot,lburgazzoli/spring-boot,eddumelendez/spring-boot,jxblum/spring-boot,bclozel/spring-boot,hello2009chen/spring-boot,mosoft521/spring-boot,dreis2211/spring-boot,kamilszymanski/spring-boot,linead/spring-boot,rweisleder/spring-boot,chrylis/spring-boot,chrylis/spring-boot,htynkn/spring-boot,bjornlindstrom/spring-boot,habuma/spring-boot,wilkinsona/spring-boot,spring-projects/spring-boot,mdeinum/spring-boot,tsachev/spring-boot,wilkinsona/spring-boot,htynkn/spring-boot,Buzzardo/spring-boot,vpavic/spring-boot,shakuzen/spring-boot,spring-projects/spring-boot,shangyi0102/spring-boot,kamilszymanski/spring-boot,donhuvy/spring-boot,pvorb/spring-boot,joshiste/spring-boot,rweisleder/spring-boot,dreis2211/spring-boot,mosoft521/spring-boot,royclarkson/spring-boot,Nowheresly/spring-boot,donhuvy/spring-boot,ihoneymon/spring-boot,bbrouwer/spring-boot,royclarkson/spring-boot,isopov/spring-boot,mbenson/spring-boot,donhuvy/spring-boot,ilayaperumalg/spring-boot,eddumelendez/spring-boot,vakninr/spring-boot,mosoft521/spring-boot,tiarebalbi/spring-boot,spring-projects/spring-boot,lburgazzoli/spring-boot,aahlenst/spring-boot,habuma/spring-boot,zhanhb/spring-boot,joshiste/spring-boot,tsachev/spring-boot,joshiste/spring-boot,deki/spring-boot,rweisleder/spring-boot,aahlenst/spring-boot,wilkinsona/spring-boot,Nowheresly/spring-boot,lburgazzoli/spring-boot,drumonii/spring-boot,philwebb/spring-boot,aahlenst/spring-boot,ptahchiev/spring-boot,aahlenst/spring-boot,mbenson/spring-boot,tiarebalbi/spring-boot,olivergierke/spring-boot,joshiste/spring-boot,ilayaperumalg/spring-boot,philwebb/spring-boot,felipeg48/spring-boot,ptahchiev/spring-boot,scottfrederick/spring-boot,felipeg48/spring-boot,Buzzardo/spring-boot,jayarampradhan/spring-boot,zhanhb/spring-boot,bclozel/spring-boot,felipeg48/spring-boot,tsachev/spring-boot,yangdd1205/spring-boot,Buzzardo/spring-boot,ilayaperumalg/spring-boot,yangdd1205/spring-boot,olivergierke/spring-boot,shakuzen/spring-boot,linead/spring-boot,chrylis/spring-boot,ilayaperumalg/spring-boot,habuma/spring-boot,sebastiankirsch/spring-boot,pvorb/spring-boot,drumonii/spring-boot,shakuzen/spring-boot,ptahchiev/spring-boot,felipeg48/spring-boot,sebastiankirsch/spring-boot,zhanhb/spring-boot,Buzzardo/spring-boot,NetoDevel/spring-boot,vakninr/spring-boot,shangyi0102/spring-boot,isopov/spring-boot,felipeg48/spring-boot,htynkn/spring-boot,tiarebalbi/spring-boot,michael-simons/spring-boot,eddumelendez/spring-boot,bclozel/spring-boot,linead/spring-boot,mosoft521/spring-boot,hello2009chen/spring-boot,bclozel/spring-boot,hello2009chen/spring-boot,sebastiankirsch/spring-boot,tiarebalbi/spring-boot,tsachev/spring-boot,tiarebalbi/spring-boot,eddumelendez/spring-boot,scottfrederick/spring-boot,dreis2211/spring-boot,vpavic/spring-boot,Buzzardo/spring-boot,ihoneymon/spring-boot,habuma/spring-boot,olivergierke/spring-boot,zhanhb/spring-boot,donhuvy/spring-boot,wilkinsona/spring-boot,vakninr/spring-boot,pvorb/spring-boot,kdvolder/spring-boot,shangyi0102/spring-boot,jayarampradhan/spring-boot,kdvolder/spring-boot,mbenson/spring-boot,philwebb/spring-boot,vakninr/spring-boot,rweisleder/spring-boot,jxblum/spring-boot,philwebb/spring-boot,dreis2211/spring-boot,scottfrederick/spring-boot,sebastiankirsch/spring-boot,bjornlindstrom/spring-boot,habuma/spring-boot,aahlenst/spring-boot,kamilszymanski/spring-boot,joshiste/spring-boot,michael-simons/spring-boot,pvorb/spring-boot,mdeinum/spring-boot,Nowheresly/spring-boot,deki/spring-boot,zhanhb/spring-boot,drumonii/spring-boot,royclarkson/spring-boot,drumonii/spring-boot,bbrouwer/spring-boot,jayarampradhan/spring-boot,htynkn/spring-boot,bclozel/spring-boot,chrylis/spring-boot,DeezCashews/spring-boot,sebastiankirsch/spring-boot,vpavic/spring-boot,spring-projects/spring-boot,drumonii/spring-boot,shangyi0102/spring-boot,felipeg48/spring-boot,hello2009chen/spring-boot,jayarampradhan/spring-boot,rweisleder/spring-boot,isopov/spring-boot,pvorb/spring-boot,mdeinum/spring-boot,lburgazzoli/spring-boot,mosoft521/spring-boot,bbrouwer/spring-boot,mbenson/spring-boot,kamilszymanski/spring-boot,kdvolder/spring-boot,NetoDevel/spring-boot,habuma/spring-boot,deki/spring-boot,scottfrederick/spring-boot,vakninr/spring-boot,scottfrederick/spring-boot,deki/spring-boot,NetoDevel/spring-boot,deki/spring-boot,spring-projects/spring-boot,mdeinum/spring-boot,ptahchiev/spring-boot,royclarkson/spring-boot,chrylis/spring-boot,isopov/spring-boot,Nowheresly/spring-boot,kdvolder/spring-boot,michael-simons/spring-boot,kdvolder/spring-boot,zhanhb/spring-boot,philwebb/spring-boot,htynkn/spring-boot,tiarebalbi/spring-boot,mdeinum/spring-boot,olivergierke/spring-boot,hello2009chen/spring-boot,yangdd1205/spring-boot,philwebb/spring-boot,bbrouwer/spring-boot,scottfrederick/spring-boot,michael-simons/spring-boot,ptahchiev/spring-boot,royclarkson/spring-boot,DeezCashews/spring-boot,shakuzen/spring-boot,bclozel/spring-boot,bjornlindstrom/spring-boot,drumonii/spring-boot,eddumelendez/spring-boot,ilayaperumalg/spring-boot,shakuzen/spring-boot,bjornlindstrom/spring-boot,joshiste/spring-boot
groovy
## Code Before: package org.test @Configuration @EnableIntegration @Grab("jackson-databind") class SpringIntegrationExample implements CommandLineRunner { @Autowired private ApplicationContext context; @Bean DirectChannel input() { new DirectChannel(); } @Override void run(String... args) { println() println '>>>> ' + new MessagingTemplate(input()).convertSendAndReceive("World", String) + ' <<<<' println() /* * Since this is a simple application that we want to exit right away, * close the context. For an active integration application, with pollers * etc, you can either suspend the main thread here (e.g. with System.in.read()), * or exit the run() method without closing the context, and stop the * application later using some other technique (kill, JMX etc). */ context.close() } } @MessageEndpoint class HelloTransformer { @Transformer(inputChannel="input") String transform(String payload) { "Hello, ${payload}" } } ## Instruction: Revert "Add temporary work around for regression in Spring Integration" This reverts commit 71b53e816d5831ad6872757ad2ee99e1f878d752. ## Code After: package org.test @Configuration @EnableIntegration class SpringIntegrationExample implements CommandLineRunner { @Autowired private ApplicationContext context; @Bean DirectChannel input() { new DirectChannel(); } @Override void run(String... args) { println() println '>>>> ' + new MessagingTemplate(input()).convertSendAndReceive("World", String) + ' <<<<' println() /* * Since this is a simple application that we want to exit right away, * close the context. For an active integration application, with pollers * etc, you can either suspend the main thread here (e.g. with System.in.read()), * or exit the run() method without closing the context, and stop the * application later using some other technique (kill, JMX etc). */ context.close() } } @MessageEndpoint class HelloTransformer { @Transformer(inputChannel="input") String transform(String payload) { "Hello, ${payload}" } }
package org.test @Configuration @EnableIntegration - @Grab("jackson-databind") class SpringIntegrationExample implements CommandLineRunner { @Autowired private ApplicationContext context; @Bean DirectChannel input() { new DirectChannel(); } @Override void run(String... args) { println() println '>>>> ' + new MessagingTemplate(input()).convertSendAndReceive("World", String) + ' <<<<' println() /* * Since this is a simple application that we want to exit right away, * close the context. For an active integration application, with pollers * etc, you can either suspend the main thread here (e.g. with System.in.read()), * or exit the run() method without closing the context, and stop the * application later using some other technique (kill, JMX etc). */ context.close() } } @MessageEndpoint class HelloTransformer { @Transformer(inputChannel="input") String transform(String payload) { "Hello, ${payload}" } }
1
0.025
0
1
0f14c3d95fbc597bb49e0d7e9d9acfb152c240a8
server/src/test/scala/org/http4s/server/middleware/UrlFormLifterSpec.scala
server/src/test/scala/org/http4s/server/middleware/UrlFormLifterSpec.scala
package org.http4s package server.middleware import org.http4s.server.HttpService class UrlFormLifterSpec extends Http4sSpec { val urlForm = UrlForm("foo" -> "bar") val service = UrlFormLifter(HttpService { case r@Request(Method.POST,_,_,_,_,_) => r.uri.multiParams.get("foo") match { case Some(ps) => Response(status = Status.Ok).withBody(ps.mkString(",")) case None => Response(status = Status.BadRequest).withBody("No Foo") } }) "UrlFormLifter" should { "Add application/x-www-form-urlencoded bodies to the query params" in { val req = Request(method = Method.POST).withBody(urlForm).run val resp = service(req).run resp.status must_== Status.Ok } "Add application/x-www-form-urlencoded bodies after query params" in { val req = Request(method = Method.POST, uri = Uri.uri("/foo?foo=biz")).withBody(urlForm).run val resp = service(req).run resp.status must_== Status.Ok resp.as[String].run must_== "biz,bar" } "Ignore Requests that don't have application/x-www-form-urlencoded bodies" in { val req = Request(method = Method.POST).withBody("foo").run val resp = service(req).run resp.status must_== Status.BadRequest } } }
package org.http4s package server.middleware import org.http4s.server.HttpService class UrlFormLifterSpec extends Http4sSpec { val urlForm = UrlForm("foo" -> "bar") val service = UrlFormLifter(HttpService { case r@Request(Method.POST,_,_,_,_,_) => r.uri.multiParams.get("foo") match { case Some(ps) => Response(status = Status.Ok).withBody(ps.mkString(",")) case None => Response(status = Status.BadRequest).withBody("No Foo") } }) "UrlFormLifter" should { "Add application/x-www-form-urlencoded bodies to the query params" in { val req = Request(method = Method.POST).withBody(urlForm).run val resp = service.apply(req).run resp.status must_== Status.Ok } "Add application/x-www-form-urlencoded bodies after query params" in { val req = Request(method = Method.POST, uri = Uri.uri("/foo?foo=biz")).withBody(urlForm).run val resp = service.apply(req).run resp.status must_== Status.Ok resp.as[String].run must_== "biz,bar" } "Ignore Requests that don't have application/x-www-form-urlencoded bodies" in { val req = Request(method = Method.POST).withBody("foo").run val resp = service.apply(req).run resp.status must_== Status.BadRequest } } }
Apply changes for upgrade to scalaz-specs2 0.4.0 to previously unmerged test files
Apply changes for upgrade to scalaz-specs2 0.4.0 to previously unmerged test files
Scala
apache-2.0
ZizhengTai/http4s,reactormonk/http4s,aeons/http4s,m4dc4p/http4s,ChristopherDavenport/http4s,rossabaker/http4s,http4s/http4s,hvesalai/http4s,ZizhengTai/http4s,aeons/http4s,ZizhengTai/http4s,reactormonk/http4s,m4dc4p/http4s,ChristopherDavenport/http4s,m4dc4p/http4s,hvesalai/http4s,reactormonk/http4s,rossabaker/http4s,ChristopherDavenport/http4s,hvesalai/http4s,aeons/http4s
scala
## Code Before: package org.http4s package server.middleware import org.http4s.server.HttpService class UrlFormLifterSpec extends Http4sSpec { val urlForm = UrlForm("foo" -> "bar") val service = UrlFormLifter(HttpService { case r@Request(Method.POST,_,_,_,_,_) => r.uri.multiParams.get("foo") match { case Some(ps) => Response(status = Status.Ok).withBody(ps.mkString(",")) case None => Response(status = Status.BadRequest).withBody("No Foo") } }) "UrlFormLifter" should { "Add application/x-www-form-urlencoded bodies to the query params" in { val req = Request(method = Method.POST).withBody(urlForm).run val resp = service(req).run resp.status must_== Status.Ok } "Add application/x-www-form-urlencoded bodies after query params" in { val req = Request(method = Method.POST, uri = Uri.uri("/foo?foo=biz")).withBody(urlForm).run val resp = service(req).run resp.status must_== Status.Ok resp.as[String].run must_== "biz,bar" } "Ignore Requests that don't have application/x-www-form-urlencoded bodies" in { val req = Request(method = Method.POST).withBody("foo").run val resp = service(req).run resp.status must_== Status.BadRequest } } } ## Instruction: Apply changes for upgrade to scalaz-specs2 0.4.0 to previously unmerged test files ## Code After: package org.http4s package server.middleware import org.http4s.server.HttpService class UrlFormLifterSpec extends Http4sSpec { val urlForm = UrlForm("foo" -> "bar") val service = UrlFormLifter(HttpService { case r@Request(Method.POST,_,_,_,_,_) => r.uri.multiParams.get("foo") match { case Some(ps) => Response(status = Status.Ok).withBody(ps.mkString(",")) case None => Response(status = Status.BadRequest).withBody("No Foo") } }) "UrlFormLifter" should { "Add application/x-www-form-urlencoded bodies to the query params" in { val req = Request(method = Method.POST).withBody(urlForm).run val resp = service.apply(req).run resp.status must_== Status.Ok } "Add application/x-www-form-urlencoded bodies after query params" in { val req = Request(method = Method.POST, uri = Uri.uri("/foo?foo=biz")).withBody(urlForm).run val resp = service.apply(req).run resp.status must_== Status.Ok resp.as[String].run must_== "biz,bar" } "Ignore Requests that don't have application/x-www-form-urlencoded bodies" in { val req = Request(method = Method.POST).withBody("foo").run val resp = service.apply(req).run resp.status must_== Status.BadRequest } } }
package org.http4s package server.middleware import org.http4s.server.HttpService class UrlFormLifterSpec extends Http4sSpec { val urlForm = UrlForm("foo" -> "bar") val service = UrlFormLifter(HttpService { case r@Request(Method.POST,_,_,_,_,_) => r.uri.multiParams.get("foo") match { case Some(ps) => Response(status = Status.Ok).withBody(ps.mkString(",")) case None => Response(status = Status.BadRequest).withBody("No Foo") } }) "UrlFormLifter" should { "Add application/x-www-form-urlencoded bodies to the query params" in { val req = Request(method = Method.POST).withBody(urlForm).run - val resp = service(req).run + val resp = service.apply(req).run ? ++++++ resp.status must_== Status.Ok } "Add application/x-www-form-urlencoded bodies after query params" in { val req = Request(method = Method.POST, uri = Uri.uri("/foo?foo=biz")).withBody(urlForm).run - val resp = service(req).run + val resp = service.apply(req).run ? ++++++ resp.status must_== Status.Ok resp.as[String].run must_== "biz,bar" } "Ignore Requests that don't have application/x-www-form-urlencoded bodies" in { val req = Request(method = Method.POST).withBody("foo").run - val resp = service(req).run + val resp = service.apply(req).run ? ++++++ resp.status must_== Status.BadRequest } } }
6
0.146341
3
3
ac3e9216bdbd13447b4573f8b7b6547596c1c72d
elisp/mode-customizations.el
elisp/mode-customizations.el
;; Conventional max line length in Racket is 102 columns (add-hook 'racket-mode-hook (lambda () (column-marker-1 102))) (add-hook 'racket-mode-hook (lambda () (setq fill-column 102))) ;; Show a column marker in markdown mode (add-hook 'markdown-mode-hook (lambda () (column-marker-1 80))) ;; Paredit for all S-expression-based programming modes (add-hook 'emacs-lisp-mode-hook 'paredit-mode) (add-hook 'scheme-mode-hook 'paredit-mode) (add-hook 'racket-mode-hook 'paredit-mode) ;; Fix magit commit message editor, as seen here: http://stackoverflow.com/a/19265280/21957 (if (equal 'darwin system-type) (set-variable 'magit-emacsclient-executable "/usr/local/bin/emacsclient"))
;; Conventional max line length in Racket is 102 columns (add-hook 'racket-mode-hook (lambda () (column-marker-1 102))) (add-hook 'racket-mode-hook (lambda () (setq fill-column 102))) ;; Conventional max line length in Rust is 102 columns (add-hook 'rust-mode-hook (lambda () (column-marker-1 99))) (add-hook 'rust-mode-hook (lambda () (setq fill-column 99))) ;; Show a column marker in markdown mode (add-hook 'markdown-mode-hook (lambda () (column-marker-1 80))) ;; Paredit for all S-expression-based programming modes (add-hook 'emacs-lisp-mode-hook 'paredit-mode) (add-hook 'scheme-mode-hook 'paredit-mode) (add-hook 'racket-mode-hook 'paredit-mode) ;; Fix magit commit message editor, as seen here: http://stackoverflow.com/a/19265280/21957 (if (equal 'darwin system-type) (set-variable 'magit-emacsclient-executable "/usr/local/bin/emacsclient"))
Add line length check for Rust
Add line length check for Rust
Emacs Lisp
mit
schuster/dotfiles
emacs-lisp
## Code Before: ;; Conventional max line length in Racket is 102 columns (add-hook 'racket-mode-hook (lambda () (column-marker-1 102))) (add-hook 'racket-mode-hook (lambda () (setq fill-column 102))) ;; Show a column marker in markdown mode (add-hook 'markdown-mode-hook (lambda () (column-marker-1 80))) ;; Paredit for all S-expression-based programming modes (add-hook 'emacs-lisp-mode-hook 'paredit-mode) (add-hook 'scheme-mode-hook 'paredit-mode) (add-hook 'racket-mode-hook 'paredit-mode) ;; Fix magit commit message editor, as seen here: http://stackoverflow.com/a/19265280/21957 (if (equal 'darwin system-type) (set-variable 'magit-emacsclient-executable "/usr/local/bin/emacsclient")) ## Instruction: Add line length check for Rust ## Code After: ;; Conventional max line length in Racket is 102 columns (add-hook 'racket-mode-hook (lambda () (column-marker-1 102))) (add-hook 'racket-mode-hook (lambda () (setq fill-column 102))) ;; Conventional max line length in Rust is 102 columns (add-hook 'rust-mode-hook (lambda () (column-marker-1 99))) (add-hook 'rust-mode-hook (lambda () (setq fill-column 99))) ;; Show a column marker in markdown mode (add-hook 'markdown-mode-hook (lambda () (column-marker-1 80))) ;; Paredit for all S-expression-based programming modes (add-hook 'emacs-lisp-mode-hook 'paredit-mode) (add-hook 'scheme-mode-hook 'paredit-mode) (add-hook 'racket-mode-hook 'paredit-mode) ;; Fix magit commit message editor, as seen here: http://stackoverflow.com/a/19265280/21957 (if (equal 'darwin system-type) (set-variable 'magit-emacsclient-executable "/usr/local/bin/emacsclient"))
;; Conventional max line length in Racket is 102 columns (add-hook 'racket-mode-hook (lambda () (column-marker-1 102))) (add-hook 'racket-mode-hook (lambda () (setq fill-column 102))) + + ;; Conventional max line length in Rust is 102 columns + (add-hook 'rust-mode-hook (lambda () (column-marker-1 99))) + (add-hook 'rust-mode-hook (lambda () (setq fill-column 99))) ;; Show a column marker in markdown mode (add-hook 'markdown-mode-hook (lambda () (column-marker-1 80))) ;; Paredit for all S-expression-based programming modes (add-hook 'emacs-lisp-mode-hook 'paredit-mode) (add-hook 'scheme-mode-hook 'paredit-mode) (add-hook 'racket-mode-hook 'paredit-mode) ;; Fix magit commit message editor, as seen here: http://stackoverflow.com/a/19265280/21957 (if (equal 'darwin system-type) (set-variable 'magit-emacsclient-executable "/usr/local/bin/emacsclient"))
4
0.25
4
0
ec1ba3a60a1050180e87fce582128a82e64e132a
admin/views/assets/stylesheets/scss/app/_modals.scss
admin/views/assets/stylesheets/scss/app/_modals.scss
// Modals // -------------------------------------------------- .qor-datepicker .modal-content .modal-body { padding: 0; }
// Modals // -------------------------------------------------- .qor-datepicker .modal-content .modal-body { padding: 0; } .modal-body { word-break: break-word; }
Break word in modal body
Break word in modal body
SCSS
mit
lance2088/qor,qor/qor,youprofit/qor,trigrass2/qor,shaunstanislaus/qor,strogo/qor,codevlabs/qor,gavinzhs/qor,qor/qor,shaunstanislaus/qor,shidao-fm/qor,youprofit/qor,insionng/qor,insionng/qor,lance2088/qor,codedogfish/qor,qor/qor,codevlabs/qor,jmptrader/qor,amirrpp/qor,shidao-fm/qor,gavinzhs/qor,codedogfish/qor,jmptrader/qor,trigrass2/qor,strogo/qor,amirrpp/qor,yanzay/qor,yanzay/qor
scss
## Code Before: // Modals // -------------------------------------------------- .qor-datepicker .modal-content .modal-body { padding: 0; } ## Instruction: Break word in modal body ## Code After: // Modals // -------------------------------------------------- .qor-datepicker .modal-content .modal-body { padding: 0; } .modal-body { word-break: break-word; }
// Modals // -------------------------------------------------- .qor-datepicker .modal-content .modal-body { padding: 0; } + + .modal-body { + word-break: break-word; + }
4
0.666667
4
0
631610ea27db08e125d40eae0c9273561f32fff8
project.clj
project.clj
(defproject get-here "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.5.1"] [org.clojure/data.csv "0.1.2"] [clj-time "0.7.0"] [aysylu/loom "0.4.2"] [ring "1.3.0"] [ring/ring-jetty-adapter "1.3.0"] [ring/ring-json "0.3.1"] [cheshire "5.3.1"] [compojure "1.1.8"] [org.clojure/core.memoize "0.5.6"]] :main get-here.core :profiles {:dev {:main get-here.core/-dev-main}} :min-lein-version "2.0.0" :uberjar-name "get-here.jar")
(defproject get-here "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.6.0"] [org.clojure/data.csv "0.1.2"] [clj-time "0.7.0"] [aysylu/loom "0.4.2"] [ring "1.3.0"] [ring/ring-jetty-adapter "1.3.0"] [ring/ring-json "0.3.1"] [cheshire "5.3.1"] [compojure "1.1.8"] [org.clojure/core.memoize "0.5.6"]] :main get-here.core :profiles {:dev {:main get-here.core/-dev-main}} :min-lein-version "2.0.0" :jar-name "get-here.jar" :uberjar-name "get-standalone-here.jar")
Rename jars, upgrade to Clojure 1.6
Rename jars, upgrade to Clojure 1.6
Clojure
mit
lemongrabs/get-here,lemongrabs/get-here
clojure
## Code Before: (defproject get-here "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.5.1"] [org.clojure/data.csv "0.1.2"] [clj-time "0.7.0"] [aysylu/loom "0.4.2"] [ring "1.3.0"] [ring/ring-jetty-adapter "1.3.0"] [ring/ring-json "0.3.1"] [cheshire "5.3.1"] [compojure "1.1.8"] [org.clojure/core.memoize "0.5.6"]] :main get-here.core :profiles {:dev {:main get-here.core/-dev-main}} :min-lein-version "2.0.0" :uberjar-name "get-here.jar") ## Instruction: Rename jars, upgrade to Clojure 1.6 ## Code After: (defproject get-here "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.6.0"] [org.clojure/data.csv "0.1.2"] [clj-time "0.7.0"] [aysylu/loom "0.4.2"] [ring "1.3.0"] [ring/ring-jetty-adapter "1.3.0"] [ring/ring-json "0.3.1"] [cheshire "5.3.1"] [compojure "1.1.8"] [org.clojure/core.memoize "0.5.6"]] :main get-here.core :profiles {:dev {:main get-here.core/-dev-main}} :min-lein-version "2.0.0" :jar-name "get-here.jar" :uberjar-name "get-standalone-here.jar")
(defproject get-here "0.1.0-SNAPSHOT" - :dependencies [[org.clojure/clojure "1.5.1"] ? ^ ^ + :dependencies [[org.clojure/clojure "1.6.0"] ? ^ ^ [org.clojure/data.csv "0.1.2"] [clj-time "0.7.0"] [aysylu/loom "0.4.2"] [ring "1.3.0"] [ring/ring-jetty-adapter "1.3.0"] [ring/ring-json "0.3.1"] [cheshire "5.3.1"] [compojure "1.1.8"] [org.clojure/core.memoize "0.5.6"]] :main get-here.core :profiles {:dev {:main get-here.core/-dev-main}} :min-lein-version "2.0.0" - :uberjar-name "get-here.jar") ? ---- - + :jar-name "get-here.jar" + :uberjar-name "get-standalone-here.jar")
5
0.277778
3
2
2feedb17e692a7e47bc771d3a96cf318901c60e4
utils/Ascii.java
utils/Ascii.java
// // Ascii.java // /** Outputs the readable ASCII table from 32 to 127. */ public class Ascii { public static void main(String[] args) { for (int i=32; i<128; i++) { String s = "" + i; if (i < 100) s = " " + s; if (i < 10) s = " " + s; System.out.print(s + " " + (char) i + "\t"); if (i % 10 == 1) System.out.println(); } System.out.println(); } }
// // Ascii.java // /** Outputs the readable ASCII table from 32 to 127. */ public class Ascii { public static void main(String[] args) { int max = 255; if (args.length > 0) max = Integer.parseInt(args[0]); for (int i=32; i<=max; i++) { String s = "" + i; if (i < 100) s = " " + s; if (i < 10) s = " " + s; System.out.print(s + " " + (char) i + "\t"); if (i % 10 == 1) System.out.println(); } System.out.println(); } }
Add option to specify maximum character to list in the table; default maximum to 255 instead of 127.
Add option to specify maximum character to list in the table; default maximum to 255 instead of 127.
Java
bsd-2-clause
scifio/scifio
java
## Code Before: // // Ascii.java // /** Outputs the readable ASCII table from 32 to 127. */ public class Ascii { public static void main(String[] args) { for (int i=32; i<128; i++) { String s = "" + i; if (i < 100) s = " " + s; if (i < 10) s = " " + s; System.out.print(s + " " + (char) i + "\t"); if (i % 10 == 1) System.out.println(); } System.out.println(); } } ## Instruction: Add option to specify maximum character to list in the table; default maximum to 255 instead of 127. ## Code After: // // Ascii.java // /** Outputs the readable ASCII table from 32 to 127. */ public class Ascii { public static void main(String[] args) { int max = 255; if (args.length > 0) max = Integer.parseInt(args[0]); for (int i=32; i<=max; i++) { String s = "" + i; if (i < 100) s = " " + s; if (i < 10) s = " " + s; System.out.print(s + " " + (char) i + "\t"); if (i % 10 == 1) System.out.println(); } System.out.println(); } }
// // Ascii.java // /** Outputs the readable ASCII table from 32 to 127. */ public class Ascii { public static void main(String[] args) { + int max = 255; + if (args.length > 0) max = Integer.parseInt(args[0]); - for (int i=32; i<128; i++) { ? ^^^ + for (int i=32; i<=max; i++) { ? ^^^^ String s = "" + i; if (i < 100) s = " " + s; if (i < 10) s = " " + s; System.out.print(s + " " + (char) i + "\t"); if (i % 10 == 1) System.out.println(); } System.out.println(); } }
4
0.210526
3
1
67a3aee413c05e895ed200b6cb1912bcebd538dd
eloquent_js_exercises/chapter05/chapter05_ex04.js
eloquent_js_exercises/chapter05/chapter05_ex04.js
function every(array, test) { for (var i = 0; i < array.length; ++i) { if (!test(array[i])) return false; } return true; } function some(array, test) { for (var i = 0; i < array.length; ++i) { if (test(array[i])) return true; } return false; }
function dominantDirection(text) { let scripts = countBy(text, char => { let script = characterScript(char.codePointAt(0)); return script ? script.direction : "none"; }).filter(({name}) => name != "none"); return scripts.reduce((a, b) => a.count > b.count ? a : b).name; }
Add Chapter 05, exercise 4
Add Chapter 05, exercise 4
JavaScript
mit
bewuethr/ctci
javascript
## Code Before: function every(array, test) { for (var i = 0; i < array.length; ++i) { if (!test(array[i])) return false; } return true; } function some(array, test) { for (var i = 0; i < array.length; ++i) { if (test(array[i])) return true; } return false; } ## Instruction: Add Chapter 05, exercise 4 ## Code After: function dominantDirection(text) { let scripts = countBy(text, char => { let script = characterScript(char.codePointAt(0)); return script ? script.direction : "none"; }).filter(({name}) => name != "none"); return scripts.reduce((a, b) => a.count > b.count ? a : b).name; }
- function every(array, test) { - for (var i = 0; i < array.length; ++i) { - if (!test(array[i])) - return false; - } - return true; + function dominantDirection(text) { + let scripts = countBy(text, char => { + let script = characterScript(char.codePointAt(0)); + return script ? script.direction : "none"; + }).filter(({name}) => name != "none"); + + return scripts.reduce((a, b) => a.count > b.count ? a : b).name; } - - function some(array, test) { - for (var i = 0; i < array.length; ++i) { - if (test(array[i])) - return true; - } - return false; - }
21
1.4
7
14
78ee08ed3cc4c7f8f1e5c34a0731a6e0ef3d517f
com.woltlab.wcf/update_5.3.sql
com.woltlab.wcf/update_5.3.sql
DELETE FROM wcf1_style_variable WHERE variableName = 'useGoogleFont'; DELETE FROM wcf1_package_update_server WHERE (serverURL LIKE '%//update.woltlab.com%' OR serverURL LIKE '%//store.woltlab.com%') AND serverURL NOT LIKE '%/5.3%';
DELETE FROM wcf1_style_variable WHERE variableName = 'useGoogleFont'; -- Purge the existing official package servers to clean up any mess. DELETE FROM wcf1_package_update_server WHERE LOWER(serverURL) REGEXP 'https?://(?:store|update)\.woltlab\.com/.*'; -- Insert the default official package servers that will be dynamically adjusted. INSERT INTO wcf1_package_update_server (serverURL) VALUES ('http://update.woltlab.com/5.3/'), ('http://store.woltlab.com/5.3/');
Set up the proper default package servers
Set up the proper default package servers
SQL
lgpl-2.1
WoltLab/WCF,Cyperghost/WCF,Cyperghost/WCF,Cyperghost/WCF,SoftCreatR/WCF,WoltLab/WCF,SoftCreatR/WCF,WoltLab/WCF,Cyperghost/WCF,WoltLab/WCF,SoftCreatR/WCF,Cyperghost/WCF,SoftCreatR/WCF
sql
## Code Before: DELETE FROM wcf1_style_variable WHERE variableName = 'useGoogleFont'; DELETE FROM wcf1_package_update_server WHERE (serverURL LIKE '%//update.woltlab.com%' OR serverURL LIKE '%//store.woltlab.com%') AND serverURL NOT LIKE '%/5.3%'; ## Instruction: Set up the proper default package servers ## Code After: DELETE FROM wcf1_style_variable WHERE variableName = 'useGoogleFont'; -- Purge the existing official package servers to clean up any mess. DELETE FROM wcf1_package_update_server WHERE LOWER(serverURL) REGEXP 'https?://(?:store|update)\.woltlab\.com/.*'; -- Insert the default official package servers that will be dynamically adjusted. INSERT INTO wcf1_package_update_server (serverURL) VALUES ('http://update.woltlab.com/5.3/'), ('http://store.woltlab.com/5.3/');
DELETE FROM wcf1_style_variable WHERE variableName = 'useGoogleFont'; - DELETE FROM wcf1_package_update_server WHERE (serverURL LIKE '%//update.woltlab.com%' OR serverURL LIKE '%//store.woltlab.com%') AND serverURL NOT LIKE '%/5.3%'; + -- Purge the existing official package servers to clean up any mess. + DELETE FROM wcf1_package_update_server WHERE LOWER(serverURL) REGEXP 'https?://(?:store|update)\.woltlab\.com/.*'; + + -- Insert the default official package servers that will be dynamically adjusted. + INSERT INTO wcf1_package_update_server (serverURL) VALUES ('http://update.woltlab.com/5.3/'), ('http://store.woltlab.com/5.3/');
6
2
5
1
d7ea4e0a5d58c2a975070f3337f12c8a4d7aa819
app/javascript/app/components/ndcs/ndcs-country-accordion/ndcs-country-accordion-actions.js
app/javascript/app/components/ndcs/ndcs-country-accordion/ndcs-country-accordion-actions.js
import { createAction } from 'redux-actions'; import { createThunkAction } from 'utils/redux'; const fetchNdcsCountryAccordionInit = createAction( 'fetchNdcsCountryAccordionInit' ); const fetchNdcsCountryAccordionReady = createAction( 'fetchNdcsCountryAccordionReady' ); const fetchNdcsCountryAccordionFailed = createAction( 'fetchNdcsCountryAccordionFailed' ); const fetchNdcsCountryAccordion = createThunkAction( 'fetchNdcsCountryAccordion', params => dispatch => { const { locations, category, compare, lts } = params; if (locations) { dispatch(fetchNdcsCountryAccordionInit()); fetch( `/api/v1/ndcs?location=${locations}&category=${category}${ lts ? '&source=LTS' : '' }${!compare ? '&filter=overview' : ''}` ) .then(response => { if (response.ok) return response.json(); throw Error(response.statusText); }) .then(data => dispatch(fetchNdcsCountryAccordionReady(data))) .catch(error => { dispatch(fetchNdcsCountryAccordionFailed()); console.info(error); }); } } ); export default { fetchNdcsCountryAccordion, fetchNdcsCountryAccordionInit, fetchNdcsCountryAccordionReady, fetchNdcsCountryAccordionFailed };
import { createAction } from 'redux-actions'; import { createThunkAction } from 'utils/redux'; const fetchNdcsCountryAccordionInit = createAction( 'fetchNdcsCountryAccordionInit' ); const fetchNdcsCountryAccordionReady = createAction( 'fetchNdcsCountryAccordionReady' ); const fetchNdcsCountryAccordionFailed = createAction( 'fetchNdcsCountryAccordionFailed' ); const fetchNdcsCountryAccordion = createThunkAction( 'fetchNdcsCountryAccordion', params => dispatch => { const { locations, category, compare, lts } = params; if (locations) { dispatch(fetchNdcsCountryAccordionInit()); fetch( `/api/v1/ndcs?location=${locations}&category=${category}${ lts ? '&source=LTS' : '&source[]=CAIT&source[]=WB&source[]=NDC Explore' }${!compare ? '&filter=overview' : ''}` ) .then(response => { if (response.ok) return response.json(); throw Error(response.statusText); }) .then(data => dispatch(fetchNdcsCountryAccordionReady(data))) .catch(error => { dispatch(fetchNdcsCountryAccordionFailed()); console.info(error); }); } } ); export default { fetchNdcsCountryAccordion, fetchNdcsCountryAccordionInit, fetchNdcsCountryAccordionReady, fetchNdcsCountryAccordionFailed };
Set right source when not LTS
Set right source when not LTS
JavaScript
mit
Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch
javascript
## Code Before: import { createAction } from 'redux-actions'; import { createThunkAction } from 'utils/redux'; const fetchNdcsCountryAccordionInit = createAction( 'fetchNdcsCountryAccordionInit' ); const fetchNdcsCountryAccordionReady = createAction( 'fetchNdcsCountryAccordionReady' ); const fetchNdcsCountryAccordionFailed = createAction( 'fetchNdcsCountryAccordionFailed' ); const fetchNdcsCountryAccordion = createThunkAction( 'fetchNdcsCountryAccordion', params => dispatch => { const { locations, category, compare, lts } = params; if (locations) { dispatch(fetchNdcsCountryAccordionInit()); fetch( `/api/v1/ndcs?location=${locations}&category=${category}${ lts ? '&source=LTS' : '' }${!compare ? '&filter=overview' : ''}` ) .then(response => { if (response.ok) return response.json(); throw Error(response.statusText); }) .then(data => dispatch(fetchNdcsCountryAccordionReady(data))) .catch(error => { dispatch(fetchNdcsCountryAccordionFailed()); console.info(error); }); } } ); export default { fetchNdcsCountryAccordion, fetchNdcsCountryAccordionInit, fetchNdcsCountryAccordionReady, fetchNdcsCountryAccordionFailed }; ## Instruction: Set right source when not LTS ## Code After: import { createAction } from 'redux-actions'; import { createThunkAction } from 'utils/redux'; const fetchNdcsCountryAccordionInit = createAction( 'fetchNdcsCountryAccordionInit' ); const fetchNdcsCountryAccordionReady = createAction( 'fetchNdcsCountryAccordionReady' ); const fetchNdcsCountryAccordionFailed = createAction( 'fetchNdcsCountryAccordionFailed' ); const fetchNdcsCountryAccordion = createThunkAction( 'fetchNdcsCountryAccordion', params => dispatch => { const { locations, category, compare, lts } = params; if (locations) { dispatch(fetchNdcsCountryAccordionInit()); fetch( `/api/v1/ndcs?location=${locations}&category=${category}${ lts ? '&source=LTS' : '&source[]=CAIT&source[]=WB&source[]=NDC Explore' }${!compare ? '&filter=overview' : ''}` ) .then(response => { if (response.ok) return response.json(); throw Error(response.statusText); }) .then(data => dispatch(fetchNdcsCountryAccordionReady(data))) .catch(error => { dispatch(fetchNdcsCountryAccordionFailed()); console.info(error); }); } } ); export default { fetchNdcsCountryAccordion, fetchNdcsCountryAccordionInit, fetchNdcsCountryAccordionReady, fetchNdcsCountryAccordionFailed };
import { createAction } from 'redux-actions'; import { createThunkAction } from 'utils/redux'; const fetchNdcsCountryAccordionInit = createAction( 'fetchNdcsCountryAccordionInit' ); const fetchNdcsCountryAccordionReady = createAction( 'fetchNdcsCountryAccordionReady' ); const fetchNdcsCountryAccordionFailed = createAction( 'fetchNdcsCountryAccordionFailed' ); const fetchNdcsCountryAccordion = createThunkAction( 'fetchNdcsCountryAccordion', params => dispatch => { const { locations, category, compare, lts } = params; if (locations) { dispatch(fetchNdcsCountryAccordionInit()); fetch( `/api/v1/ndcs?location=${locations}&category=${category}${ + lts - lts ? '&source=LTS' : '' ? ^^^ ----- + ? '&source=LTS' ? ^ + : '&source[]=CAIT&source[]=WB&source[]=NDC Explore' }${!compare ? '&filter=overview' : ''}` ) .then(response => { if (response.ok) return response.json(); throw Error(response.statusText); }) .then(data => dispatch(fetchNdcsCountryAccordionReady(data))) .catch(error => { dispatch(fetchNdcsCountryAccordionFailed()); console.info(error); }); } } ); export default { fetchNdcsCountryAccordion, fetchNdcsCountryAccordionInit, fetchNdcsCountryAccordionReady, fetchNdcsCountryAccordionFailed };
4
0.093023
3
1
2d58b481b48b20e4fe14bd1fc4f9dbfdf39c5897
src/components/widgets/LightEntityThumbnail.vue
src/components/widgets/LightEntityThumbnail.vue
<template functional> <img class="thumbnail-picture" :style="{ width: props.width + 'px', height: props.height + 'px' }" v-lazy="'/api/pictures/' + props.type + '/preview-files/' + props.previewFileId + '.png'" :key="props.previewFileId" v-bind="data.attrs" v-if="props.previewFileId" /> <span :class="{ 'thumbnail-picture': true, 'thumbnail-empty': true }" :style="{ width: props.width + 'px', height: props.height + 'px', }" v-bind="data.attrs" v-else> </span> </template> <script> export default { name: 'light-entity-thumbnail', functional: true, props: { previewFileId: { default: '', type: String }, width: { default: 150, type: Number }, height: { default: 50, type: Number }, type: { default: 'thumbnails', type: String } } } </script> <style lang="scss"> .dark .thumbnail-picture { background-color: $dark-grey-lighter; border-color: $dark-grey-light; } span.thumbnail-empty { background: $white-grey; display: block; margin: 0; } </style>
<template functional> <img class="thumbnail-picture" :style="{ width: props.width, height: props.height }" v-lazy="'/api/pictures/' + props.type + '/preview-files/' + props.previewFileId + '.png'" :key="props.previewFileId" v-bind="data.attrs" v-if="props.previewFileId" /> <span :class="{ 'thumbnail-picture': true, 'thumbnail-empty': true }" :style="{ width: props.width, height: props.emptyHeight ? props.emptyHeight : props.height, }" v-bind="data.attrs" v-else> </span> </template> <script> export default { name: 'light-entity-thumbnail', functional: true, props: { previewFileId: { default: '', type: String }, width: { default: '150px', type: String }, height: { default: '50px', type: String }, emptyHeight: { type: String }, type: { default: 'thumbnails', type: String } } } </script> <style lang="scss"> .dark .thumbnail-picture { background-color: $dark-grey-lighter; border-color: $dark-grey-light; } span.thumbnail-empty { background: $white-grey; display: block; margin: 0; } </style>
Allow to use auto height/width for thumbnail widget
Allow to use auto height/width for thumbnail widget
Vue
agpl-3.0
cgwire/kitsu,cgwire/kitsu
vue
## Code Before: <template functional> <img class="thumbnail-picture" :style="{ width: props.width + 'px', height: props.height + 'px' }" v-lazy="'/api/pictures/' + props.type + '/preview-files/' + props.previewFileId + '.png'" :key="props.previewFileId" v-bind="data.attrs" v-if="props.previewFileId" /> <span :class="{ 'thumbnail-picture': true, 'thumbnail-empty': true }" :style="{ width: props.width + 'px', height: props.height + 'px', }" v-bind="data.attrs" v-else> </span> </template> <script> export default { name: 'light-entity-thumbnail', functional: true, props: { previewFileId: { default: '', type: String }, width: { default: 150, type: Number }, height: { default: 50, type: Number }, type: { default: 'thumbnails', type: String } } } </script> <style lang="scss"> .dark .thumbnail-picture { background-color: $dark-grey-lighter; border-color: $dark-grey-light; } span.thumbnail-empty { background: $white-grey; display: block; margin: 0; } </style> ## Instruction: Allow to use auto height/width for thumbnail widget ## Code After: <template functional> <img class="thumbnail-picture" :style="{ width: props.width, height: props.height }" v-lazy="'/api/pictures/' + props.type + '/preview-files/' + props.previewFileId + '.png'" :key="props.previewFileId" v-bind="data.attrs" v-if="props.previewFileId" /> <span :class="{ 'thumbnail-picture': true, 'thumbnail-empty': true }" :style="{ width: props.width, height: props.emptyHeight ? props.emptyHeight : props.height, }" v-bind="data.attrs" v-else> </span> </template> <script> export default { name: 'light-entity-thumbnail', functional: true, props: { previewFileId: { default: '', type: String }, width: { default: '150px', type: String }, height: { default: '50px', type: String }, emptyHeight: { type: String }, type: { default: 'thumbnails', type: String } } } </script> <style lang="scss"> .dark .thumbnail-picture { background-color: $dark-grey-lighter; border-color: $dark-grey-light; } span.thumbnail-empty { background: $white-grey; display: block; margin: 0; } </style>
<template functional> <img class="thumbnail-picture" :style="{ - width: props.width + 'px', ? ------- + width: props.width, - height: props.height + 'px' ? ------- + height: props.height }" v-lazy="'/api/pictures/' + props.type + '/preview-files/' + props.previewFileId + '.png'" :key="props.previewFileId" v-bind="data.attrs" v-if="props.previewFileId" /> <span :class="{ 'thumbnail-picture': true, 'thumbnail-empty': true }" :style="{ - width: props.width + 'px', ? ------- + width: props.width, - height: props.height + 'px', + height: props.emptyHeight ? props.emptyHeight : props.height, }" v-bind="data.attrs" v-else> </span> </template> <script> export default { name: 'light-entity-thumbnail', functional: true, props: { previewFileId: { default: '', type: String }, width: { - default: 150, + default: '150px', ? + +++ - type: Number + type: String }, height: { - default: 50, + default: '50px', ? + +++ - type: Number + type: String + }, + emptyHeight: { + type: String }, type: { default: 'thumbnails', type: String } } } </script> <style lang="scss"> .dark .thumbnail-picture { background-color: $dark-grey-lighter; border-color: $dark-grey-light; } span.thumbnail-empty { background: $white-grey; display: block; margin: 0; } </style>
19
0.296875
11
8
a57ad591e6c25a501c984db543116ada39ec57ea
src/store/modules/editor/getters.js
src/store/modules/editor/getters.js
export default { // Get an array specifying the tools included in the current step. getStepTools: state => { if (state.steps && state.steps[state.activeStep].tools) { return state.steps[state.activeStep].tools } else { return ['pan', 'circle', 'rectangle', 'path', 'pencil', 'move', 'node', 'count', 'delete', 'megas', 'filter'] } } }
export default { // Get an array specifying the tools included in the current step. getStepTools: state => { if (state.steps && state.steps[state.activeStep].tools) { return state.steps[state.activeStep].tools } else { return ['pan', 'circle', 'rectangle', 'path', 'pencil', 'polygon', 'move', 'node', 'count', 'delete', 'megas', 'filter'] } } }
Add polygon tool to default set
Add polygon tool to default set
JavaScript
mit
alanaberdeen/AIDA,alanaberdeen/annotate,alanaberdeen/AIDA,alanaberdeen/annotate
javascript
## Code Before: export default { // Get an array specifying the tools included in the current step. getStepTools: state => { if (state.steps && state.steps[state.activeStep].tools) { return state.steps[state.activeStep].tools } else { return ['pan', 'circle', 'rectangle', 'path', 'pencil', 'move', 'node', 'count', 'delete', 'megas', 'filter'] } } } ## Instruction: Add polygon tool to default set ## Code After: export default { // Get an array specifying the tools included in the current step. getStepTools: state => { if (state.steps && state.steps[state.activeStep].tools) { return state.steps[state.activeStep].tools } else { return ['pan', 'circle', 'rectangle', 'path', 'pencil', 'polygon', 'move', 'node', 'count', 'delete', 'megas', 'filter'] } } }
export default { // Get an array specifying the tools included in the current step. getStepTools: state => { if (state.steps && state.steps[state.activeStep].tools) { return state.steps[state.activeStep].tools } else { - return ['pan', 'circle', 'rectangle', 'path', 'pencil', 'move', 'node', 'count', 'delete', 'megas', 'filter'] + return ['pan', 'circle', 'rectangle', 'path', 'pencil', 'polygon', 'move', 'node', 'count', 'delete', 'megas', 'filter'] ? +++++++++++ } } }
2
0.2
1
1
41b0cd6c63f0df01500e528d6980406b77d1c0e7
sublevel/sublevels.js
sublevel/sublevels.js
const level = require('level'); const path = require('path'); const SubLevel = require('level-sublevel'); const dbPath = process.env.DB_PATH || path.join(__dirname,'graftonDB'); const db = SubLevel(level(dbPath,{ valueEncoding:'json' })); exports.base = db; exports.users = db.sublevel('users'); exports.messages = db.sublevel('messages');
const level = require('level'); const path = require('path'); const SubLevel = require('level-sublevel'); const dbPath = process.env.DB_PATH || path.join(__dirname,'graftonDB'); const db = SubLevel(level(dbPath,{ valueEncoding:'json' })); exports.base = db; exports.users = db.sublevel('users'); exports.messages = db.sublevel('messages'); require('./sublevels_user_hook');
Add new hook for users
Add new hook for users
JavaScript
mit
thewazir/grafton
javascript
## Code Before: const level = require('level'); const path = require('path'); const SubLevel = require('level-sublevel'); const dbPath = process.env.DB_PATH || path.join(__dirname,'graftonDB'); const db = SubLevel(level(dbPath,{ valueEncoding:'json' })); exports.base = db; exports.users = db.sublevel('users'); exports.messages = db.sublevel('messages'); ## Instruction: Add new hook for users ## Code After: const level = require('level'); const path = require('path'); const SubLevel = require('level-sublevel'); const dbPath = process.env.DB_PATH || path.join(__dirname,'graftonDB'); const db = SubLevel(level(dbPath,{ valueEncoding:'json' })); exports.base = db; exports.users = db.sublevel('users'); exports.messages = db.sublevel('messages'); require('./sublevels_user_hook');
const level = require('level'); const path = require('path'); const SubLevel = require('level-sublevel'); const dbPath = process.env.DB_PATH || path.join(__dirname,'graftonDB'); const db = SubLevel(level(dbPath,{ valueEncoding:'json' })); exports.base = db; exports.users = db.sublevel('users'); exports.messages = db.sublevel('messages'); + + require('./sublevels_user_hook');
2
0.166667
2
0
c3103d881024cef6a7790d47e4937838cf97c4a5
setup.py
setup.py
from setuptools import setup, find_packages setup( name="releng-sop", version="0.1", description="Release Enginering Standard Operating Procedures", url="https://github.com/release-engineering/releng-sop.git", author="Daniel Mach", author_email="dmach@redhat.com", license="MIT", packages=find_packages(), include_package_data=True, scripts=[ "bin/koji-block-package-in-release", ], test_suite="tests", )
from setuptools import setup, find_packages setup( name="releng-sop", version="0.1", description="Release Enginering Standard Operating Procedures", url="https://github.com/release-engineering/releng-sop.git", author="Daniel Mach", author_email="dmach@redhat.com", license="MIT", install_requires=[ "pyxdg" ], packages=find_packages(), include_package_data=True, scripts=[ "bin/koji-block-package-in-release", ], test_suite="tests", )
Add xdg as a dependency
Add xdg as a dependency
Python
mit
release-engineering/releng-sop,release-engineering/releng-sop
python
## Code Before: from setuptools import setup, find_packages setup( name="releng-sop", version="0.1", description="Release Enginering Standard Operating Procedures", url="https://github.com/release-engineering/releng-sop.git", author="Daniel Mach", author_email="dmach@redhat.com", license="MIT", packages=find_packages(), include_package_data=True, scripts=[ "bin/koji-block-package-in-release", ], test_suite="tests", ) ## Instruction: Add xdg as a dependency ## Code After: from setuptools import setup, find_packages setup( name="releng-sop", version="0.1", description="Release Enginering Standard Operating Procedures", url="https://github.com/release-engineering/releng-sop.git", author="Daniel Mach", author_email="dmach@redhat.com", license="MIT", install_requires=[ "pyxdg" ], packages=find_packages(), include_package_data=True, scripts=[ "bin/koji-block-package-in-release", ], test_suite="tests", )
from setuptools import setup, find_packages setup( name="releng-sop", version="0.1", description="Release Enginering Standard Operating Procedures", url="https://github.com/release-engineering/releng-sop.git", author="Daniel Mach", author_email="dmach@redhat.com", license="MIT", + install_requires=[ + "pyxdg" + ], packages=find_packages(), include_package_data=True, scripts=[ "bin/koji-block-package-in-release", ], test_suite="tests", )
3
0.15
3
0
095e6185fa3870de3e086b0d0c336f82fba1c49a
indexer/drawing_rules.proto
indexer/drawing_rules.proto
message ColorProto { required int32 color = 1; optional uint8 opacity = 2; // opacity : 0 - completly invisible, 255 - completly visible } message DashDotProto { repeated double dd = 1; } message LineRuleProto { required double width = 1; required ColorProto color = 2; optional DashDotProto dashdot = 4; } message AreaRuleProto { required ColorProto color = 1; optional LineRuleProto border = 3; } message SymbolRuleProto { required string name = 1; } message CaptionRuleProto { required int32 height = 1; optional ColorProto color = 2; optional ColorProto stroke_color = 3; } message CircleRuleProto { required double rad = 1; required ColorProto color = 2; optional LineRuleProto border = 3; } // PathTextRule is same as CaptionRule // WayMarkerRule not used yet
message ColorProto { required int32 color = 1; optional uint8 opacity = 2; // opacity : 0 - completly invisible, 255 - completly visible } message DashDotProto { repeated double dd = 1; } message LineRuleProto { required double width = 1; required ColorProto color = 2; optional DashDotProto dashdot = 4; } message AreaRuleProto { required ColorProto color = 1; optional LineRuleProto border = 3; } message SymbolRuleProto { required string name = 1; } message CaptionRuleProto { required int32 height = 1; optional ColorProto color = 2; optional ColorProto stroke_color = 3; } message CircleRuleProto { required double rad = 1; required ColorProto color = 2; optional LineRuleProto border = 3; } // PathTextRule is same as CaptionRule // WayMarkerRule not used yet // Describe containers. message DrawElementProto { required int8 scale = 1; optional repeated LineRuleProto lines = 2; optional AreaRuleProto area = 3; optional SymbolRuleProto = 4; optional CaptionRuleProto = 5; optional CircleRuleProto = 6; } message ClassifElementProto { required string name = 1; repeated DrawElementProto lines = 2; } message ContainerProto { repeated ClassifElementProto cont = 1; }
Add drawing rules container definition.
Add drawing rules container definition.
Protocol Buffer
apache-2.0
lydonchandra/omim,Komzpa/omim,gardster/omim,syershov/omim,therearesomewhocallmetim/omim,alexzatsepin/omim,programming086/omim,bykoianko/omim,VladiMihaylenko/omim,guard163/omim,sidorov-panda/omim,trashkalmar/omim,goblinr/omim,milchakov/omim,darina/omim,kw217/omim,sidorov-panda/omim,ygorshenin/omim,Zverik/omim,ygorshenin/omim,victorbriz/omim,mpimenov/omim,krasin/omim,goblinr/omim,AlexanderMatveenko/omim,rokuz/omim,Komzpa/omim,krasin/omim,victorbriz/omim,stangls/omim,mgsergio/omim,augmify/omim,65apps/omim,goblinr/omim,AlexanderMatveenko/omim,TimurTarasenko/omim,65apps/omim,sidorov-panda/omim,syershov/omim,syershov/omim,rokuz/omim,mapsme/omim,vng/omim,Zverik/omim,65apps/omim,guard163/omim,Zverik/omim,rokuz/omim,goblinr/omim,mapsme/omim,yunikkk/omim,igrechuhin/omim,Komzpa/omim,Saicheg/omim,Endika/omim,bykoianko/omim,mpimenov/omim,Saicheg/omim,dobriy-eeh/omim,victorbriz/omim,krasin/omim,Zverik/omim,Endika/omim,rokuz/omim,igrechuhin/omim,Volcanoscar/omim,TimurTarasenko/omim,goblinr/omim,alexzatsepin/omim,vng/omim,wersoo/omim,TimurTarasenko/omim,victorbriz/omim,dkorolev/omim,VladiMihaylenko/omim,simon247/omim,andrewshadura/omim,matsprea/omim,mpimenov/omim,trashkalmar/omim,TimurTarasenko/omim,rokuz/omim,mapsme/omim,sidorov-panda/omim,AlexanderMatveenko/omim,dobriy-eeh/omim,wersoo/omim,wersoo/omim,milchakov/omim,programming086/omim,bykoianko/omim,dobriy-eeh/omim,andrewshadura/omim,mapsme/omim,mpimenov/omim,milchakov/omim,syershov/omim,simon247/omim,vladon/omim,darina/omim,yunikkk/omim,ygorshenin/omim,felipebetancur/omim,vasilenkomike/omim,felipebetancur/omim,darina/omim,dobriy-eeh/omim,ygorshenin/omim,andrewshadura/omim,mapsme/omim,Transtech/omim,programming086/omim,mgsergio/omim,albertshift/omim,andrewshadura/omim,felipebetancur/omim,kw217/omim,augmify/omim,Volcanoscar/omim,programming086/omim,guard163/omim,bykoianko/omim,jam891/omim,darina/omim,ygorshenin/omim,TimurTarasenko/omim,VladiMihaylenko/omim,augmify/omim,stangls/omim,alexzatsepin/omim,albertshift/omim,Zverik/omim,bykoianko/omim,mpimenov/omim,Volcanoscar/omim,edl00k/omim,simon247/omim,albertshift/omim,lydonchandra/omim,yunikkk/omim,Zverik/omim,stangls/omim,vladon/omim,felipebetancur/omim,alexzatsepin/omim,Saicheg/omim,therearesomewhocallmetim/omim,trashkalmar/omim,AlexanderMatveenko/omim,vng/omim,milchakov/omim,sidorov-panda/omim,vladon/omim,guard163/omim,Komzpa/omim,stangls/omim,dobriy-eeh/omim,yunikkk/omim,stangls/omim,alexzatsepin/omim,kw217/omim,ygorshenin/omim,darina/omim,kw217/omim,UdjinM6/omim,andrewshadura/omim,gardster/omim,Komzpa/omim,65apps/omim,bykoianko/omim,syershov/omim,edl00k/omim,vasilenkomike/omim,dobriy-eeh/omim,augmify/omim,trashkalmar/omim,mapsme/omim,vladon/omim,mapsme/omim,victorbriz/omim,sidorov-panda/omim,dkorolev/omim,Transtech/omim,AlexanderMatveenko/omim,Komzpa/omim,dkorolev/omim,igrechuhin/omim,kw217/omim,ygorshenin/omim,bykoianko/omim,stangls/omim,therearesomewhocallmetim/omim,kw217/omim,ygorshenin/omim,VladiMihaylenko/omim,andrewshadura/omim,TimurTarasenko/omim,darina/omim,victorbriz/omim,guard163/omim,stangls/omim,mgsergio/omim,guard163/omim,gardster/omim,Zverik/omim,Saicheg/omim,therearesomewhocallmetim/omim,stangls/omim,Volcanoscar/omim,alexzatsepin/omim,igrechuhin/omim,alexzatsepin/omim,edl00k/omim,vladon/omim,augmify/omim,AlexanderMatveenko/omim,simon247/omim,kw217/omim,goblinr/omim,Volcanoscar/omim,matsprea/omim,therearesomewhocallmetim/omim,rokuz/omim,ygorshenin/omim,matsprea/omim,syershov/omim,milchakov/omim,mapsme/omim,mgsergio/omim,mapsme/omim,simon247/omim,stangls/omim,darina/omim,krasin/omim,Volcanoscar/omim,Komzpa/omim,goblinr/omim,darina/omim,yunikkk/omim,albertshift/omim,Zverik/omim,Saicheg/omim,mpimenov/omim,UdjinM6/omim,krasin/omim,jam891/omim,milchakov/omim,gardster/omim,trashkalmar/omim,edl00k/omim,VladiMihaylenko/omim,VladiMihaylenko/omim,jam891/omim,matsprea/omim,VladiMihaylenko/omim,mgsergio/omim,syershov/omim,rokuz/omim,goblinr/omim,augmify/omim,therearesomewhocallmetim/omim,UdjinM6/omim,vladon/omim,programming086/omim,andrewshadura/omim,mpimenov/omim,albertshift/omim,VladiMihaylenko/omim,AlexanderMatveenko/omim,milchakov/omim,edl00k/omim,milchakov/omim,wersoo/omim,AlexanderMatveenko/omim,vladon/omim,wersoo/omim,victorbriz/omim,Komzpa/omim,edl00k/omim,dkorolev/omim,programming086/omim,alexzatsepin/omim,Endika/omim,alexzatsepin/omim,krasin/omim,Saicheg/omim,VladiMihaylenko/omim,albertshift/omim,VladiMihaylenko/omim,Endika/omim,alexzatsepin/omim,AlexanderMatveenko/omim,yunikkk/omim,Komzpa/omim,therearesomewhocallmetim/omim,UdjinM6/omim,guard163/omim,sidorov-panda/omim,UdjinM6/omim,dkorolev/omim,matsprea/omim,milchakov/omim,TimurTarasenko/omim,programming086/omim,trashkalmar/omim,igrechuhin/omim,Zverik/omim,igrechuhin/omim,syershov/omim,Transtech/omim,trashkalmar/omim,mgsergio/omim,lydonchandra/omim,gardster/omim,trashkalmar/omim,mpimenov/omim,wersoo/omim,Transtech/omim,dobriy-eeh/omim,matsprea/omim,edl00k/omim,rokuz/omim,lydonchandra/omim,guard163/omim,Endika/omim,Saicheg/omim,albertshift/omim,Volcanoscar/omim,VladiMihaylenko/omim,igrechuhin/omim,wersoo/omim,trashkalmar/omim,simon247/omim,vladon/omim,darina/omim,edl00k/omim,programming086/omim,TimurTarasenko/omim,bykoianko/omim,milchakov/omim,dobriy-eeh/omim,Endika/omim,bykoianko/omim,dkorolev/omim,trashkalmar/omim,goblinr/omim,ygorshenin/omim,stangls/omim,rokuz/omim,vasilenkomike/omim,65apps/omim,Transtech/omim,therearesomewhocallmetim/omim,Transtech/omim,gardster/omim,Endika/omim,goblinr/omim,ygorshenin/omim,UdjinM6/omim,vng/omim,65apps/omim,gardster/omim,gardster/omim,jam891/omim,matsprea/omim,jam891/omim,Endika/omim,dkorolev/omim,edl00k/omim,mapsme/omim,therearesomewhocallmetim/omim,wersoo/omim,krasin/omim,mapsme/omim,felipebetancur/omim,felipebetancur/omim,vng/omim,mgsergio/omim,augmify/omim,andrewshadura/omim,simon247/omim,Komzpa/omim,vng/omim,bykoianko/omim,bykoianko/omim,UdjinM6/omim,Saicheg/omim,stangls/omim,vasilenkomike/omim,vng/omim,Zverik/omim,lydonchandra/omim,gardster/omim,vasilenkomike/omim,Transtech/omim,victorbriz/omim,65apps/omim,mpimenov/omim,sidorov-panda/omim,TimurTarasenko/omim,edl00k/omim,mgsergio/omim,Transtech/omim,Volcanoscar/omim,gardster/omim,syershov/omim,wersoo/omim,bykoianko/omim,65apps/omim,dobriy-eeh/omim,trashkalmar/omim,vng/omim,lydonchandra/omim,felipebetancur/omim,igrechuhin/omim,UdjinM6/omim,Saicheg/omim,jam891/omim,darina/omim,darina/omim,lydonchandra/omim,augmify/omim,vladon/omim,syershov/omim,vladon/omim,victorbriz/omim,krasin/omim,mapsme/omim,rokuz/omim,simon247/omim,albertshift/omim,mapsme/omim,TimurTarasenko/omim,Zverik/omim,goblinr/omim,augmify/omim,simon247/omim,milchakov/omim,therearesomewhocallmetim/omim,ygorshenin/omim,kw217/omim,rokuz/omim,vasilenkomike/omim,programming086/omim,Volcanoscar/omim,sidorov-panda/omim,matsprea/omim,mpimenov/omim,dobriy-eeh/omim,dkorolev/omim,VladiMihaylenko/omim,jam891/omim,lydonchandra/omim,Transtech/omim,goblinr/omim,guard163/omim,krasin/omim,goblinr/omim,rokuz/omim,vasilenkomike/omim,albertshift/omim,igrechuhin/omim,alexzatsepin/omim,darina/omim,darina/omim,albertshift/omim,programming086/omim,vasilenkomike/omim,mpimenov/omim,kw217/omim,alexzatsepin/omim,Transtech/omim,jam891/omim,bykoianko/omim,mgsergio/omim,mpimenov/omim,andrewshadura/omim,vasilenkomike/omim,syershov/omim,lydonchandra/omim,dkorolev/omim,rokuz/omim,felipebetancur/omim,Endika/omim,65apps/omim,syershov/omim,Zverik/omim,vng/omim,Endika/omim,dkorolev/omim,milchakov/omim,krasin/omim,dobriy-eeh/omim,vasilenkomike/omim,Transtech/omim,dobriy-eeh/omim,simon247/omim,yunikkk/omim,augmify/omim,AlexanderMatveenko/omim,wersoo/omim,jam891/omim,guard163/omim,victorbriz/omim,UdjinM6/omim,jam891/omim,alexzatsepin/omim,yunikkk/omim,andrewshadura/omim,mgsergio/omim,matsprea/omim,matsprea/omim,milchakov/omim,felipebetancur/omim,yunikkk/omim,felipebetancur/omim,dobriy-eeh/omim,igrechuhin/omim,Volcanoscar/omim,kw217/omim,trashkalmar/omim,mpimenov/omim,lydonchandra/omim,Transtech/omim,VladiMihaylenko/omim,vng/omim,mgsergio/omim,65apps/omim,syershov/omim,UdjinM6/omim,yunikkk/omim,Zverik/omim,Saicheg/omim,yunikkk/omim,sidorov-panda/omim,mgsergio/omim,65apps/omim
protocol-buffer
## Code Before: message ColorProto { required int32 color = 1; optional uint8 opacity = 2; // opacity : 0 - completly invisible, 255 - completly visible } message DashDotProto { repeated double dd = 1; } message LineRuleProto { required double width = 1; required ColorProto color = 2; optional DashDotProto dashdot = 4; } message AreaRuleProto { required ColorProto color = 1; optional LineRuleProto border = 3; } message SymbolRuleProto { required string name = 1; } message CaptionRuleProto { required int32 height = 1; optional ColorProto color = 2; optional ColorProto stroke_color = 3; } message CircleRuleProto { required double rad = 1; required ColorProto color = 2; optional LineRuleProto border = 3; } // PathTextRule is same as CaptionRule // WayMarkerRule not used yet ## Instruction: Add drawing rules container definition. ## Code After: message ColorProto { required int32 color = 1; optional uint8 opacity = 2; // opacity : 0 - completly invisible, 255 - completly visible } message DashDotProto { repeated double dd = 1; } message LineRuleProto { required double width = 1; required ColorProto color = 2; optional DashDotProto dashdot = 4; } message AreaRuleProto { required ColorProto color = 1; optional LineRuleProto border = 3; } message SymbolRuleProto { required string name = 1; } message CaptionRuleProto { required int32 height = 1; optional ColorProto color = 2; optional ColorProto stroke_color = 3; } message CircleRuleProto { required double rad = 1; required ColorProto color = 2; optional LineRuleProto border = 3; } // PathTextRule is same as CaptionRule // WayMarkerRule not used yet // Describe containers. message DrawElementProto { required int8 scale = 1; optional repeated LineRuleProto lines = 2; optional AreaRuleProto area = 3; optional SymbolRuleProto = 4; optional CaptionRuleProto = 5; optional CircleRuleProto = 6; } message ClassifElementProto { required string name = 1; repeated DrawElementProto lines = 2; } message ContainerProto { repeated ClassifElementProto cont = 1; }
message ColorProto { required int32 color = 1; optional uint8 opacity = 2; // opacity : 0 - completly invisible, 255 - completly visible } message DashDotProto { repeated double dd = 1; } message LineRuleProto { required double width = 1; required ColorProto color = 2; optional DashDotProto dashdot = 4; } message AreaRuleProto { required ColorProto color = 1; optional LineRuleProto border = 3; } message SymbolRuleProto { required string name = 1; } message CaptionRuleProto { required int32 height = 1; optional ColorProto color = 2; optional ColorProto stroke_color = 3; } message CircleRuleProto { required double rad = 1; required ColorProto color = 2; optional LineRuleProto border = 3; } // PathTextRule is same as CaptionRule // WayMarkerRule not used yet + + + // Describe containers. + + message DrawElementProto + { + required int8 scale = 1; + optional repeated LineRuleProto lines = 2; + optional AreaRuleProto area = 3; + optional SymbolRuleProto = 4; + optional CaptionRuleProto = 5; + optional CircleRuleProto = 6; + } + + message ClassifElementProto + { + required string name = 1; + repeated DrawElementProto lines = 2; + } + + message ContainerProto + { + repeated ClassifElementProto cont = 1; + }
24
0.510638
24
0
41e7b4a0fa33242b83a0f62964e9ef7eb34c4aea
clk-ls.hs
clk-ls.hs
import App.Clk.Entry import App.Clk.Util import Data.List import Data.Period import Data.Time.Clock import Data.Time.LocalTime import System.Console.GetOpt import System.Environment data Flag = PeriodArg String -- -p or --period options = [ Option ['p'] ["period"] (ReqArg PeriodArg "PERIOD") "" ] main = do args <- getArgs let periodPhrase = case getOpt Permute options args of ([PeriodArg p], [], []) -> p otherwise -> "today" period <- parsePeriod periodPhrase tz <- getCurrentTimeZone entries <- fmap (filter $ isWithin period) mostRecentMonthEntries putStrLn $ intercalate "\n" $ map (showUser tz) $ entries
import App.Clk.Entry import App.Clk.Util import Data.List import Data.Period import Data.Time.Clock import Data.Time.LocalTime import System.Console.GetOpt import System.Environment data Flag = PeriodArg String -- -p or --period options = [ Option ['p'] ["period"] (ReqArg PeriodArg "PERIOD") "" ] main = do args <- getArgs let ( flags, _, _ ) = getOpt Permute options args period <- parsePeriod $ findPeriodPhrase flags tz <- getCurrentTimeZone entries <- fmap (filter $ isWithin period) mostRecentMonthEntries putStrLn $ intercalate "\n" $ map (showUser tz) $ entries findPeriodPhrase :: [Flag] -> String findPeriodPhrase flags = case find isPeriodFlag flags of Just (PeriodArg p) -> p Nothing -> "today" where isPeriodFlag (PeriodArg _) = True isPeriodFlag _ = False
Support multiple command line options
Support multiple command line options The old approach assumed that any --period flag would be the first value returned by getOpt. Once the user can specify multiple flags, that won't be true anymore.
Haskell
unlicense
mndrix/clk
haskell
## Code Before: import App.Clk.Entry import App.Clk.Util import Data.List import Data.Period import Data.Time.Clock import Data.Time.LocalTime import System.Console.GetOpt import System.Environment data Flag = PeriodArg String -- -p or --period options = [ Option ['p'] ["period"] (ReqArg PeriodArg "PERIOD") "" ] main = do args <- getArgs let periodPhrase = case getOpt Permute options args of ([PeriodArg p], [], []) -> p otherwise -> "today" period <- parsePeriod periodPhrase tz <- getCurrentTimeZone entries <- fmap (filter $ isWithin period) mostRecentMonthEntries putStrLn $ intercalate "\n" $ map (showUser tz) $ entries ## Instruction: Support multiple command line options The old approach assumed that any --period flag would be the first value returned by getOpt. Once the user can specify multiple flags, that won't be true anymore. ## Code After: import App.Clk.Entry import App.Clk.Util import Data.List import Data.Period import Data.Time.Clock import Data.Time.LocalTime import System.Console.GetOpt import System.Environment data Flag = PeriodArg String -- -p or --period options = [ Option ['p'] ["period"] (ReqArg PeriodArg "PERIOD") "" ] main = do args <- getArgs let ( flags, _, _ ) = getOpt Permute options args period <- parsePeriod $ findPeriodPhrase flags tz <- getCurrentTimeZone entries <- fmap (filter $ isWithin period) mostRecentMonthEntries putStrLn $ intercalate "\n" $ map (showUser tz) $ entries findPeriodPhrase :: [Flag] -> String findPeriodPhrase flags = case find isPeriodFlag flags of Just (PeriodArg p) -> p Nothing -> "today" where isPeriodFlag (PeriodArg _) = True isPeriodFlag _ = False
import App.Clk.Entry import App.Clk.Util import Data.List import Data.Period import Data.Time.Clock import Data.Time.LocalTime import System.Console.GetOpt import System.Environment data Flag = PeriodArg String -- -p or --period options = [ Option ['p'] ["period"] (ReqArg PeriodArg "PERIOD") "" ] main = do args <- getArgs + let ( flags, _, _ ) = getOpt Permute options args - let periodPhrase = case getOpt Permute options args of - ([PeriodArg p], [], []) -> p - otherwise -> "today" - period <- parsePeriod periodPhrase ? ^ + period <- parsePeriod $ findPeriodPhrase flags ? ^^^^^^^ ++++++ tz <- getCurrentTimeZone entries <- fmap (filter $ isWithin period) mostRecentMonthEntries putStrLn $ intercalate "\n" $ map (showUser tz) $ entries + + findPeriodPhrase :: [Flag] -> String + findPeriodPhrase flags = + case find isPeriodFlag flags of + Just (PeriodArg p) -> p + Nothing -> "today" + where isPeriodFlag (PeriodArg _) = True + isPeriodFlag _ = False
14
0.608696
10
4
abaefd41c06df125d7853dec5bca4cdf9bfd22c0
tests/Boomgo/Tests/Units/Test.php
tests/Boomgo/Tests/Units/Test.php
<?php namespace Boomgo\Tests\Units; use mageekguy\atoum\test as AtoumTest; abstract class Test extends AtoumTest { public function __construct(score $score = null, locale $locale = null, adapter $adapter = null) { $this->setTestNamespace('\\Tests\\Units\\'); parent::__construct($score, $locale, $adapter); } }
<?php /** * This file is part of the Boomgo PHP ODM for MongoDB. * * http://boomgo.org * https://github.com/Retentio/Boomgo * * (c) Ludovic Fleury <ludo.fleury@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Boomgo\Tests\Units; use mageekguy\atoum\test as AtoumTest, mageekguy\atoum\factory; /** * Rewrite default namespace for atoum * * @author David Guyon <dguyon@gmail.com> */ abstract class Test extends AtoumTest { public function __construct(factory $factory = null) { $this->setTestNamespace('\\Tests\\Units\\'); parent::__construct($factory); } }
Update default unit test class with atoum refactoring
Update default unit test class with atoum refactoring
PHP
mit
Retentio/Boomgo
php
## Code Before: <?php namespace Boomgo\Tests\Units; use mageekguy\atoum\test as AtoumTest; abstract class Test extends AtoumTest { public function __construct(score $score = null, locale $locale = null, adapter $adapter = null) { $this->setTestNamespace('\\Tests\\Units\\'); parent::__construct($score, $locale, $adapter); } } ## Instruction: Update default unit test class with atoum refactoring ## Code After: <?php /** * This file is part of the Boomgo PHP ODM for MongoDB. * * http://boomgo.org * https://github.com/Retentio/Boomgo * * (c) Ludovic Fleury <ludo.fleury@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Boomgo\Tests\Units; use mageekguy\atoum\test as AtoumTest, mageekguy\atoum\factory; /** * Rewrite default namespace for atoum * * @author David Guyon <dguyon@gmail.com> */ abstract class Test extends AtoumTest { public function __construct(factory $factory = null) { $this->setTestNamespace('\\Tests\\Units\\'); parent::__construct($factory); } }
<?php + + /** + * This file is part of the Boomgo PHP ODM for MongoDB. + * + * http://boomgo.org + * https://github.com/Retentio/Boomgo + * + * (c) Ludovic Fleury <ludo.fleury@gmail.com> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ namespace Boomgo\Tests\Units; - use mageekguy\atoum\test as AtoumTest; ? ^ + use mageekguy\atoum\test as AtoumTest, ? ^ + mageekguy\atoum\factory; + /** + * Rewrite default namespace for atoum + * + * @author David Guyon <dguyon@gmail.com> + */ abstract class Test extends AtoumTest { - public function __construct(score $score = null, locale $locale = null, adapter $adapter = null) + public function __construct(factory $factory = null) { $this->setTestNamespace('\\Tests\\Units\\'); - parent::__construct($score, $locale, $adapter); + parent::__construct($factory); } }
24
1.714286
21
3
a124cd657ea2f72c46d0b9fbecc734edda4d606a
.github/workflows/test-package.yml
.github/workflows/test-package.yml
name: test on: [ push, pull_request ] jobs: test: runs-on: ubuntu-latest strategy: matrix: php-version: [ 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 ] guzzle-version: [ '^5.3', '^6.0' ] include: - php-version: 7.2 guzzle-version: '^7.0' - php-version: 7.3 guzzle-version: '^7.0' - php-version: 7.4 guzzle-version: '^7.0' steps: - uses: actions/checkout@v2 - name: install PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - run: composer validate - name: require guzzle run: composer require "guzzlehttp/guzzle:${{ matrix.guzzle-version }}" --no-update - name: install dependencies run: composer update --prefer-dist --no-progress --no-suggest --no-interaction - run: composer run-script test
name: test on: [ push, pull_request ] jobs: test: runs-on: ubuntu-latest strategy: matrix: php-version: [ 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 ] guzzle-version: [ '^5.3', '^6.0' ] include: - php-version: 7.2 guzzle-version: '^7.0' - php-version: 7.3 guzzle-version: '^7.0' - php-version: 7.4 guzzle-version: '^7.0' - php-version: 8.0 guzzle-version: '^7.0' composer-flags: '--ignore-platform-reqs' steps: - uses: actions/checkout@v2 - name: install PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - run: composer validate - name: require guzzle run: composer require "guzzlehttp/guzzle:${{ matrix.guzzle-version }}" --no-update ${{ matrix.composer-flags }} - name: install dependencies run: composer update --prefer-dist --no-progress --no-suggest --no-interaction ${{ matrix.composer-flags }} - run: composer run-script test
Add PHP 8 to CI
Add PHP 8 to CI
YAML
mit
bugsnag/bugsnag-php,bugsnag/bugsnag-php,bugsnag/bugsnag-php
yaml
## Code Before: name: test on: [ push, pull_request ] jobs: test: runs-on: ubuntu-latest strategy: matrix: php-version: [ 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 ] guzzle-version: [ '^5.3', '^6.0' ] include: - php-version: 7.2 guzzle-version: '^7.0' - php-version: 7.3 guzzle-version: '^7.0' - php-version: 7.4 guzzle-version: '^7.0' steps: - uses: actions/checkout@v2 - name: install PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - run: composer validate - name: require guzzle run: composer require "guzzlehttp/guzzle:${{ matrix.guzzle-version }}" --no-update - name: install dependencies run: composer update --prefer-dist --no-progress --no-suggest --no-interaction - run: composer run-script test ## Instruction: Add PHP 8 to CI ## Code After: name: test on: [ push, pull_request ] jobs: test: runs-on: ubuntu-latest strategy: matrix: php-version: [ 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 ] guzzle-version: [ '^5.3', '^6.0' ] include: - php-version: 7.2 guzzle-version: '^7.0' - php-version: 7.3 guzzle-version: '^7.0' - php-version: 7.4 guzzle-version: '^7.0' - php-version: 8.0 guzzle-version: '^7.0' composer-flags: '--ignore-platform-reqs' steps: - uses: actions/checkout@v2 - name: install PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - run: composer validate - name: require guzzle run: composer require "guzzlehttp/guzzle:${{ matrix.guzzle-version }}" --no-update ${{ matrix.composer-flags }} - name: install dependencies run: composer update --prefer-dist --no-progress --no-suggest --no-interaction ${{ matrix.composer-flags }} - run: composer run-script test
name: test on: [ push, pull_request ] jobs: test: runs-on: ubuntu-latest strategy: matrix: php-version: [ 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 ] guzzle-version: [ '^5.3', '^6.0' ] include: - php-version: 7.2 guzzle-version: '^7.0' - php-version: 7.3 guzzle-version: '^7.0' - php-version: 7.4 guzzle-version: '^7.0' + - php-version: 8.0 + guzzle-version: '^7.0' + composer-flags: '--ignore-platform-reqs' steps: - uses: actions/checkout@v2 - name: install PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - run: composer validate - name: require guzzle - run: composer require "guzzlehttp/guzzle:${{ matrix.guzzle-version }}" --no-update + run: composer require "guzzlehttp/guzzle:${{ matrix.guzzle-version }}" --no-update ${{ matrix.composer-flags }} ? +++++++++++++++++++++++++++++ - name: install dependencies - run: composer update --prefer-dist --no-progress --no-suggest --no-interaction + run: composer update --prefer-dist --no-progress --no-suggest --no-interaction ${{ matrix.composer-flags }} ? +++++++++++++++++++++++++++++ - run: composer run-script test
7
0.194444
5
2
23d46c15c51936f19584401d8c30dc074cabf35b
scss/_regions/_chrome.scss
scss/_regions/_chrome.scss
// The entire page should be wrapped in `.chrome` to lock page in // place while modals are open. The page content should be wrapped // in a `.chrome--wrapper` to set max-width and apply background // box shadow to the page. // // Styleguide Site Chrome .chrome { width: 100%; } // Main content wrapper. .chrome--wrapper { position: relative; width: 100%; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); @include container(16); }
// The entire page should be wrapped in `.chrome` to lock page in // place while modals are open. The page content should be wrapped // in a `.wrapper` to set max-width and apply background // box shadow to the page. // // Styleguide Site Chrome .chrome { width: 100%; // Main content wrapper. > .wrapper { position: relative; width: 100%; background: $white; box-shadow: 0 0 10px rgba($black, 0.2); @include container(16); } // See also: _modal.scss (.chrome.modal-open) // See also: _chrome.scss (.chrome.mobile-menu-open) }
Update chrome pattern to use wrapper convention.
Update chrome pattern to use wrapper convention.
SCSS
mit
DoSomething/neue,DoSomething/forge,sbsmith86/neue
scss
## Code Before: // The entire page should be wrapped in `.chrome` to lock page in // place while modals are open. The page content should be wrapped // in a `.chrome--wrapper` to set max-width and apply background // box shadow to the page. // // Styleguide Site Chrome .chrome { width: 100%; } // Main content wrapper. .chrome--wrapper { position: relative; width: 100%; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); @include container(16); } ## Instruction: Update chrome pattern to use wrapper convention. ## Code After: // The entire page should be wrapped in `.chrome` to lock page in // place while modals are open. The page content should be wrapped // in a `.wrapper` to set max-width and apply background // box shadow to the page. // // Styleguide Site Chrome .chrome { width: 100%; // Main content wrapper. > .wrapper { position: relative; width: 100%; background: $white; box-shadow: 0 0 10px rgba($black, 0.2); @include container(16); } // See also: _modal.scss (.chrome.modal-open) // See also: _chrome.scss (.chrome.mobile-menu-open) }
// The entire page should be wrapped in `.chrome` to lock page in // place while modals are open. The page content should be wrapped - // in a `.chrome--wrapper` to set max-width and apply background ? -------- + // in a `.wrapper` to set max-width and apply background // box shadow to the page. // // Styleguide Site Chrome .chrome { width: 100%; + + // Main content wrapper. + > .wrapper { + position: relative; + width: 100%; + background: $white; + box-shadow: 0 0 10px rgba($black, 0.2); + + @include container(16); + } + + // See also: _modal.scss (.chrome.modal-open) + + // See also: _chrome.scss (.chrome.mobile-menu-open) } - // Main content wrapper. - .chrome--wrapper { - position: relative; - width: 100%; - background: #fff; - box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); - @include container(16); - }
24
1.263158
15
9
dc791e767dafb5dc61f6445ae50e524ad994be88
spec/models/response_spec.rb
spec/models/response_spec.rb
require 'rails_helper' RSpec.describe Response, type: :model do pending "add some examples to (or delete) #{__FILE__}" end
require 'rails_helper' RSpec.describe Response, type: :model do before(:each) do @responder = User.create(username: "feather", email: "feather@example.com", password:"feather") @response = @responder.responses.create(content: "I am Grrrreat!", respondable_id: 1, respondable_type: "Question") @voter = User.create(username: "Diego", email: "d@example.com", password:"weerd") end after(:all) do @voter.destroy @response.destroy @responder.destroy end context '#responder_name' do it "should return the username of the responder" do expect(@response.responder_name).to eq("feather") end end context '#count_votes' do it "should update the vote_count of a response" do @response.votes.create(voter_id: @voter.id, value: 5) expect{@response.count_votes}.to change{@response.vote_count}.from(0).to(5) end end context '#vote_on_this?' do it "should return true if the user didn't create the response and hasn't voted on the response" do expect(@response.vote_on_this?(@voter.id)).to be true end it "should return false if the user already voted on the response" do @response.votes.create(voter_id: @voter.id, value: 5) expect(@response.vote_on_this?(@voter.id)).to be false end end context '#vote_on_this?' do it "should return false if the user created the response" do expect(@response.vote_on_this?(@responder.id)).to be false end end end
Add tests for response model
Add tests for response model
Ruby
mit
jeder28/stack_overphil,jeder28/stack_overphil,jeder28/stack_overphil
ruby
## Code Before: require 'rails_helper' RSpec.describe Response, type: :model do pending "add some examples to (or delete) #{__FILE__}" end ## Instruction: Add tests for response model ## Code After: require 'rails_helper' RSpec.describe Response, type: :model do before(:each) do @responder = User.create(username: "feather", email: "feather@example.com", password:"feather") @response = @responder.responses.create(content: "I am Grrrreat!", respondable_id: 1, respondable_type: "Question") @voter = User.create(username: "Diego", email: "d@example.com", password:"weerd") end after(:all) do @voter.destroy @response.destroy @responder.destroy end context '#responder_name' do it "should return the username of the responder" do expect(@response.responder_name).to eq("feather") end end context '#count_votes' do it "should update the vote_count of a response" do @response.votes.create(voter_id: @voter.id, value: 5) expect{@response.count_votes}.to change{@response.vote_count}.from(0).to(5) end end context '#vote_on_this?' do it "should return true if the user didn't create the response and hasn't voted on the response" do expect(@response.vote_on_this?(@voter.id)).to be true end it "should return false if the user already voted on the response" do @response.votes.create(voter_id: @voter.id, value: 5) expect(@response.vote_on_this?(@voter.id)).to be false end end context '#vote_on_this?' do it "should return false if the user created the response" do expect(@response.vote_on_this?(@responder.id)).to be false end end end
require 'rails_helper' RSpec.describe Response, type: :model do - pending "add some examples to (or delete) #{__FILE__}" + + before(:each) do + @responder = User.create(username: "feather", email: "feather@example.com", password:"feather") + @response = @responder.responses.create(content: "I am Grrrreat!", respondable_id: 1, respondable_type: "Question") + @voter = User.create(username: "Diego", email: "d@example.com", password:"weerd") + end + + after(:all) do + @voter.destroy + @response.destroy + @responder.destroy + end + + context '#responder_name' do + it "should return the username of the responder" do + expect(@response.responder_name).to eq("feather") + end + end + + context '#count_votes' do + it "should update the vote_count of a response" do + @response.votes.create(voter_id: @voter.id, value: 5) + expect{@response.count_votes}.to change{@response.vote_count}.from(0).to(5) + end + end + + context '#vote_on_this?' do + it "should return true if the user didn't create the response and hasn't voted on the response" do + expect(@response.vote_on_this?(@voter.id)).to be true + end + + it "should return false if the user already voted on the response" do + @response.votes.create(voter_id: @voter.id, value: 5) + expect(@response.vote_on_this?(@voter.id)).to be false + end + end + + context '#vote_on_this?' do + it "should return false if the user created the response" do + expect(@response.vote_on_this?(@responder.id)).to be false + end + end + end
44
8.8
43
1
2bcdb926fab721af9f7ad291c5088a6e0dbd64df
tests/PrologLifetimeTest.cpp
tests/PrologLifetimeTest.cpp
namespace { static int glob_argc; static char **glob_argv; class PrologLifetimeTest : public ::testing::Test { }; TEST_F(PrologLifetimeTest, BeginInitializesProlog) { PrologLifetime::begin(glob_argc, glob_argv); ASSERT_TRUE(PL_is_initialised(&glob_argc, &glob_argv)); PrologLifetime::end(); } } int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); glob_argc = argc; glob_argv = argv; return RUN_ALL_TESTS(); }
namespace { static int glob_argc; static char **glob_argv; class PrologLifetimeTest : public ::testing::Test { }; TEST_F(PrologLifetimeTest, BeginInitializesProlog) { PrologLifetime::begin(glob_argc, glob_argv); ASSERT_TRUE(PL_is_initialised(&glob_argc, &glob_argv)); PrologLifetime::end(); } TEST_F(PrologLifetimeTest, MultipleInitialization) { PrologLifetime::begin(glob_argc, glob_argv); ASSERT_TRUE(PL_is_initialised(&glob_argc, &glob_argv)); PrologLifetime::end(); ASSERT_FALSE(PL_is_initialised(&glob_argc, &glob_argv)); PrologLifetime::begin(glob_argc, glob_argv); ASSERT_TRUE(PL_is_initialised(&glob_argc, &glob_argv)); PrologLifetime::end(); } } int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); glob_argc = argc; glob_argv = argv; return RUN_ALL_TESTS(); }
Test multiple initialization for SWI-Prolog
Test multiple initialization for SWI-Prolog
C++
mit
henry-nazare/swipl-cpp-bindings
c++
## Code Before: namespace { static int glob_argc; static char **glob_argv; class PrologLifetimeTest : public ::testing::Test { }; TEST_F(PrologLifetimeTest, BeginInitializesProlog) { PrologLifetime::begin(glob_argc, glob_argv); ASSERT_TRUE(PL_is_initialised(&glob_argc, &glob_argv)); PrologLifetime::end(); } } int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); glob_argc = argc; glob_argv = argv; return RUN_ALL_TESTS(); } ## Instruction: Test multiple initialization for SWI-Prolog ## Code After: namespace { static int glob_argc; static char **glob_argv; class PrologLifetimeTest : public ::testing::Test { }; TEST_F(PrologLifetimeTest, BeginInitializesProlog) { PrologLifetime::begin(glob_argc, glob_argv); ASSERT_TRUE(PL_is_initialised(&glob_argc, &glob_argv)); PrologLifetime::end(); } TEST_F(PrologLifetimeTest, MultipleInitialization) { PrologLifetime::begin(glob_argc, glob_argv); ASSERT_TRUE(PL_is_initialised(&glob_argc, &glob_argv)); PrologLifetime::end(); ASSERT_FALSE(PL_is_initialised(&glob_argc, &glob_argv)); PrologLifetime::begin(glob_argc, glob_argv); ASSERT_TRUE(PL_is_initialised(&glob_argc, &glob_argv)); PrologLifetime::end(); } } int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); glob_argc = argc; glob_argv = argv; return RUN_ALL_TESTS(); }
namespace { static int glob_argc; static char **glob_argv; class PrologLifetimeTest : public ::testing::Test { }; TEST_F(PrologLifetimeTest, BeginInitializesProlog) { PrologLifetime::begin(glob_argc, glob_argv); ASSERT_TRUE(PL_is_initialised(&glob_argc, &glob_argv)); PrologLifetime::end(); } + TEST_F(PrologLifetimeTest, MultipleInitialization) { + PrologLifetime::begin(glob_argc, glob_argv); + ASSERT_TRUE(PL_is_initialised(&glob_argc, &glob_argv)); + PrologLifetime::end(); + + ASSERT_FALSE(PL_is_initialised(&glob_argc, &glob_argv)); + + PrologLifetime::begin(glob_argc, glob_argv); + ASSERT_TRUE(PL_is_initialised(&glob_argc, &glob_argv)); + PrologLifetime::end(); + } + } int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); glob_argc = argc; glob_argv = argv; return RUN_ALL_TESTS(); }
12
0.5
12
0
a2afa3ccaeb4f5df3dea0fef9e1c54b25d56dc25
MultiSubDownloader/src/test/java/org/lodder/subtools/multisubdownloader/lib/control/subtitles/sorting/replacers/GroupReplacerTest.java
MultiSubDownloader/src/test/java/org/lodder/subtools/multisubdownloader/lib/control/subtitles/sorting/replacers/GroupReplacerTest.java
package org.lodder.subtools.multisubdownloader.lib.control.subtitles.sorting.replacers; import java.util.HashMap; import org.junit.Before; import org.junit.Test; import org.lodder.subtools.sublibrary.model.Release; import static org.junit.Assert.*; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; public class GroupReplacerTest { protected GroupReplacer replacer; @Before public void setUp() throws Exception { replacer = new GroupReplacer(); } @Test public void test_it_replaces_the_keyword_group_to_a_releasename() throws Exception { Release release = mock(Release.class); when(release.getReleasegroup()).thenReturn("Acme"); HashMap<String, Integer> definedWeights = new HashMap<>(); definedWeights.put("%GROUP%",5); replacer.replace(release, definedWeights); /* check if the weight there is only one weight */ assertEquals(1, definedWeights.size()); /* check if the weight is acme */ assertTrue(definedWeights.containsKey("acme")); } }
package org.lodder.subtools.multisubdownloader.lib.control.subtitles.sorting.replacers; import java.util.HashMap; import org.junit.Before; import org.junit.Test; import org.lodder.subtools.sublibrary.model.Release; import static org.junit.Assert.*; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; public class GroupReplacerTest { protected GroupReplacer replacer; @Before public void setUp() throws Exception { replacer = new GroupReplacer(); } @Test public void test_it_replaces_the_keyword_group_to_a_releasename() throws Exception { Release release = mock(Release.class); when(release.getReleasegroup()).thenReturn("Acme"); HashMap<String, Integer> definedWeights = new HashMap<>(); definedWeights.put("%GROUP%",5); replacer.replace(release, definedWeights); /* check if the weight there is only one weight */ assertEquals(1, definedWeights.size()); /* check if the weight is acme */ assertTrue(definedWeights.containsKey("acme")); } @Test public void testEmptyWeights() throws Exception { Release release = mock(Release.class); when(release.getReleasegroup()).thenReturn("Acme"); HashMap<String, Integer> definedWeights = new HashMap<>(); replacer.replace(release, definedWeights); /* check if the weight there is only one weight */ assertEquals(0, definedWeights.size()); /* check if the weight is acme */ assertFalse(definedWeights.containsKey("acme")); } }
Extend test for empty weights
Extend test for empty weights
Java
mit
phdelodder/SubTools
java
## Code Before: package org.lodder.subtools.multisubdownloader.lib.control.subtitles.sorting.replacers; import java.util.HashMap; import org.junit.Before; import org.junit.Test; import org.lodder.subtools.sublibrary.model.Release; import static org.junit.Assert.*; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; public class GroupReplacerTest { protected GroupReplacer replacer; @Before public void setUp() throws Exception { replacer = new GroupReplacer(); } @Test public void test_it_replaces_the_keyword_group_to_a_releasename() throws Exception { Release release = mock(Release.class); when(release.getReleasegroup()).thenReturn("Acme"); HashMap<String, Integer> definedWeights = new HashMap<>(); definedWeights.put("%GROUP%",5); replacer.replace(release, definedWeights); /* check if the weight there is only one weight */ assertEquals(1, definedWeights.size()); /* check if the weight is acme */ assertTrue(definedWeights.containsKey("acme")); } } ## Instruction: Extend test for empty weights ## Code After: package org.lodder.subtools.multisubdownloader.lib.control.subtitles.sorting.replacers; import java.util.HashMap; import org.junit.Before; import org.junit.Test; import org.lodder.subtools.sublibrary.model.Release; import static org.junit.Assert.*; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; public class GroupReplacerTest { protected GroupReplacer replacer; @Before public void setUp() throws Exception { replacer = new GroupReplacer(); } @Test public void test_it_replaces_the_keyword_group_to_a_releasename() throws Exception { Release release = mock(Release.class); when(release.getReleasegroup()).thenReturn("Acme"); HashMap<String, Integer> definedWeights = new HashMap<>(); definedWeights.put("%GROUP%",5); replacer.replace(release, definedWeights); /* check if the weight there is only one weight */ assertEquals(1, definedWeights.size()); /* check if the weight is acme */ assertTrue(definedWeights.containsKey("acme")); } @Test public void testEmptyWeights() throws Exception { Release release = mock(Release.class); when(release.getReleasegroup()).thenReturn("Acme"); HashMap<String, Integer> definedWeights = new HashMap<>(); replacer.replace(release, definedWeights); /* check if the weight there is only one weight */ assertEquals(0, definedWeights.size()); /* check if the weight is acme */ assertFalse(definedWeights.containsKey("acme")); } }
package org.lodder.subtools.multisubdownloader.lib.control.subtitles.sorting.replacers; import java.util.HashMap; import org.junit.Before; import org.junit.Test; import org.lodder.subtools.sublibrary.model.Release; import static org.junit.Assert.*; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; public class GroupReplacerTest { protected GroupReplacer replacer; @Before public void setUp() throws Exception { replacer = new GroupReplacer(); } @Test public void test_it_replaces_the_keyword_group_to_a_releasename() throws Exception { Release release = mock(Release.class); when(release.getReleasegroup()).thenReturn("Acme"); HashMap<String, Integer> definedWeights = new HashMap<>(); definedWeights.put("%GROUP%",5); replacer.replace(release, definedWeights); /* check if the weight there is only one weight */ assertEquals(1, definedWeights.size()); /* check if the weight is acme */ assertTrue(definedWeights.containsKey("acme")); } + + @Test + public void testEmptyWeights() throws Exception { + Release release = mock(Release.class); + when(release.getReleasegroup()).thenReturn("Acme"); + + HashMap<String, Integer> definedWeights = new HashMap<>(); + + replacer.replace(release, definedWeights); + + /* check if the weight there is only one weight */ + assertEquals(0, definedWeights.size()); + + /* check if the weight is acme */ + assertFalse(definedWeights.containsKey("acme")); + } }
16
0.421053
16
0
cd2c711e9ec5c4bbb3309c7ef55164225302ecbe
app/assets/javascripts/models/paper.js.coffee
app/assets/javascripts/models/paper.js.coffee
a = DS.attr ETahi.Paper = DS.Model.extend assignees: DS.hasMany('user') editors: DS.hasMany('user') reviewers: DS.hasMany('user') editor: Ember.computed.alias('editors.firstObject') collaborations: DS.hasMany('collaboration') collaborators: (-> @get('collaborations').mapBy('user') ).property('collaborations.@each') authors: DS.hasMany('author') figures: DS.hasMany('figure', inverse: 'paper') supportingInformationFiles: DS.hasMany('supportingInformationFile') journal: DS.belongsTo('journal') phases: DS.hasMany('phase') tasks: DS.hasMany('task', {async: true, polymorphic: true}) lockedBy: DS.belongsTo('user') body: a('string') shortTitle: a('string') submitted: a('boolean') status: a('string') title: a('string') paperType: a('string') eventName: a('string') strikingImageId: a('string') relationshipsToSerialize: [] displayTitle: (-> @get('title') || @get('shortTitle') ).property('title', 'shortTitle') allMetadataTasks: (-> @get('tasks').filterBy('isMetadataTask') ).property('tasks.content.@each.isMetadataTask') allMetadataTasksCompleted: ETahi.computed.all('allMetadataTasks', 'completed', true) editable: (-> !(@get('allTasksCompleted') and @get('submitted')) ).property('allTasksCompleted', 'submitted')
a = DS.attr ETahi.Paper = DS.Model.extend assignees: DS.hasMany('user') # these are admins that have been assigned to the paper. editors: DS.hasMany('user') # these are editors that have been assigned to the paper. reviewers: DS.hasMany('user') # these are reviewers that have been assigned to the paper. editor: Ember.computed.alias('editors.firstObject') collaborations: DS.hasMany('collaboration') collaborators: (-> @get('collaborations').mapBy('user') ).property('collaborations.@each') authors: DS.hasMany('author') figures: DS.hasMany('figure', inverse: 'paper') supportingInformationFiles: DS.hasMany('supportingInformationFile') journal: DS.belongsTo('journal') phases: DS.hasMany('phase') tasks: DS.hasMany('task', {async: true, polymorphic: true}) lockedBy: DS.belongsTo('user') body: a('string') shortTitle: a('string') submitted: a('boolean') status: a('string') title: a('string') paperType: a('string') eventName: a('string') strikingImageId: a('string') relationshipsToSerialize: [] displayTitle: (-> @get('title') || @get('shortTitle') ).property('title', 'shortTitle') allMetadataTasks: (-> @get('tasks').filterBy('isMetadataTask') ).property('tasks.content.@each.isMetadataTask') allMetadataTasksCompleted: ETahi.computed.all('allMetadataTasks', 'completed', true) editable: (-> !(@get('allTasksCompleted') and @get('submitted')) ).property('allTasksCompleted', 'submitted')
Add clarifying comments to model.
Add clarifying comments to model.
CoffeeScript
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
coffeescript
## Code Before: a = DS.attr ETahi.Paper = DS.Model.extend assignees: DS.hasMany('user') editors: DS.hasMany('user') reviewers: DS.hasMany('user') editor: Ember.computed.alias('editors.firstObject') collaborations: DS.hasMany('collaboration') collaborators: (-> @get('collaborations').mapBy('user') ).property('collaborations.@each') authors: DS.hasMany('author') figures: DS.hasMany('figure', inverse: 'paper') supportingInformationFiles: DS.hasMany('supportingInformationFile') journal: DS.belongsTo('journal') phases: DS.hasMany('phase') tasks: DS.hasMany('task', {async: true, polymorphic: true}) lockedBy: DS.belongsTo('user') body: a('string') shortTitle: a('string') submitted: a('boolean') status: a('string') title: a('string') paperType: a('string') eventName: a('string') strikingImageId: a('string') relationshipsToSerialize: [] displayTitle: (-> @get('title') || @get('shortTitle') ).property('title', 'shortTitle') allMetadataTasks: (-> @get('tasks').filterBy('isMetadataTask') ).property('tasks.content.@each.isMetadataTask') allMetadataTasksCompleted: ETahi.computed.all('allMetadataTasks', 'completed', true) editable: (-> !(@get('allTasksCompleted') and @get('submitted')) ).property('allTasksCompleted', 'submitted') ## Instruction: Add clarifying comments to model. ## Code After: a = DS.attr ETahi.Paper = DS.Model.extend assignees: DS.hasMany('user') # these are admins that have been assigned to the paper. editors: DS.hasMany('user') # these are editors that have been assigned to the paper. reviewers: DS.hasMany('user') # these are reviewers that have been assigned to the paper. editor: Ember.computed.alias('editors.firstObject') collaborations: DS.hasMany('collaboration') collaborators: (-> @get('collaborations').mapBy('user') ).property('collaborations.@each') authors: DS.hasMany('author') figures: DS.hasMany('figure', inverse: 'paper') supportingInformationFiles: DS.hasMany('supportingInformationFile') journal: DS.belongsTo('journal') phases: DS.hasMany('phase') tasks: DS.hasMany('task', {async: true, polymorphic: true}) lockedBy: DS.belongsTo('user') body: a('string') shortTitle: a('string') submitted: a('boolean') status: a('string') title: a('string') paperType: a('string') eventName: a('string') strikingImageId: a('string') relationshipsToSerialize: [] displayTitle: (-> @get('title') || @get('shortTitle') ).property('title', 'shortTitle') allMetadataTasks: (-> @get('tasks').filterBy('isMetadataTask') ).property('tasks.content.@each.isMetadataTask') allMetadataTasksCompleted: ETahi.computed.all('allMetadataTasks', 'completed', true) editable: (-> !(@get('allTasksCompleted') and @get('submitted')) ).property('allTasksCompleted', 'submitted')
a = DS.attr ETahi.Paper = DS.Model.extend - assignees: DS.hasMany('user') - editors: DS.hasMany('user') - reviewers: DS.hasMany('user') + assignees: DS.hasMany('user') # these are admins that have been assigned to the paper. + editors: DS.hasMany('user') # these are editors that have been assigned to the paper. + reviewers: DS.hasMany('user') # these are reviewers that have been assigned to the paper. editor: Ember.computed.alias('editors.firstObject') collaborations: DS.hasMany('collaboration') collaborators: (-> @get('collaborations').mapBy('user') ).property('collaborations.@each') authors: DS.hasMany('author') figures: DS.hasMany('figure', inverse: 'paper') supportingInformationFiles: DS.hasMany('supportingInformationFile') journal: DS.belongsTo('journal') phases: DS.hasMany('phase') tasks: DS.hasMany('task', {async: true, polymorphic: true}) lockedBy: DS.belongsTo('user') body: a('string') shortTitle: a('string') submitted: a('boolean') status: a('string') title: a('string') paperType: a('string') eventName: a('string') strikingImageId: a('string') relationshipsToSerialize: [] displayTitle: (-> @get('title') || @get('shortTitle') ).property('title', 'shortTitle') allMetadataTasks: (-> @get('tasks').filterBy('isMetadataTask') ).property('tasks.content.@each.isMetadataTask') allMetadataTasksCompleted: ETahi.computed.all('allMetadataTasks', 'completed', true) editable: (-> !(@get('allTasksCompleted') and @get('submitted')) ).property('allTasksCompleted', 'submitted')
6
0.136364
3
3
ae17669b3d64093a35dc5230832df1bf55720785
.travis.yml
.travis.yml
env: global: - secure: AmiXXD94HEeYOZflTcKdTp0DJVzPhD3+CuqNYNq73Qk3JCyKDleWBBC3H1uYxJSaNS/jEHml4IQY6KG7ECJCaTYMOEXnIxDgjBa8bjovloHKklLJgPg7m4cgegKIS9Nj6/UysvBCp7gRQrQ/icllUILY3SNyKg48xkS9YRj4ioM= language: rust script: - cargo build --verbose - cargo test --verbose - cargo doc --no-deps --verbose after_script: - mv target/doc doc - curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh
language: rust script: - cargo build --verbose - cargo test --verbose - cargo doc --no-deps --verbose
Stop pushing docs to rust-ci, it does not work anyway
Stop pushing docs to rust-ci, it does not work anyway
YAML
apache-2.0
divius/rust-dht,cheme/rust-dht,cheme/rust-dht,divius/rust-dht
yaml
## Code Before: env: global: - secure: AmiXXD94HEeYOZflTcKdTp0DJVzPhD3+CuqNYNq73Qk3JCyKDleWBBC3H1uYxJSaNS/jEHml4IQY6KG7ECJCaTYMOEXnIxDgjBa8bjovloHKklLJgPg7m4cgegKIS9Nj6/UysvBCp7gRQrQ/icllUILY3SNyKg48xkS9YRj4ioM= language: rust script: - cargo build --verbose - cargo test --verbose - cargo doc --no-deps --verbose after_script: - mv target/doc doc - curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh ## Instruction: Stop pushing docs to rust-ci, it does not work anyway ## Code After: language: rust script: - cargo build --verbose - cargo test --verbose - cargo doc --no-deps --verbose
- env: - global: - - secure: AmiXXD94HEeYOZflTcKdTp0DJVzPhD3+CuqNYNq73Qk3JCyKDleWBBC3H1uYxJSaNS/jEHml4IQY6KG7ECJCaTYMOEXnIxDgjBa8bjovloHKklLJgPg7m4cgegKIS9Nj6/UysvBCp7gRQrQ/icllUILY3SNyKg48xkS9YRj4ioM= language: rust script: - cargo build --verbose - cargo test --verbose - cargo doc --no-deps --verbose - after_script: - - mv target/doc doc - - curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh
6
0.545455
0
6
537c0b193a9c5e23cdae5d71d384ce713c5c3548
.travis.yml
.travis.yml
language: rust rust: - nightly addons: apt: packages: - sqlite3 - libsqlite3-dev env: global: - DATABASE_BUSY_TIMEOUT=250 - TEST_DATABASE_URL=/home/travis/lugh-test-database.sqlite - TEST_LUGH_BIND=localhost:3000 - PATH="/home/travis/.cargo/bin:$PATH" before_script: - cargo install diesel_cli script: - make test
language: rust cache: cargo rust: - nightly addons: apt: packages: - sqlite3 - libsqlite3-dev env: global: - DATABASE_BUSY_TIMEOUT=250 - TEST_DATABASE_URL=/home/travis/lugh-test-database.sqlite - TEST_LUGH_BIND=localhost:3000 - PATH="/home/travis/.cargo/bin:$PATH" before_script: - cargo install diesel_cli --force script: - make test
Enable Travis CI Cargo cache
Enable Travis CI Cargo cache
YAML
mit
rlustin/lugh,rlustin/lugh,rlustin/lugh
yaml
## Code Before: language: rust rust: - nightly addons: apt: packages: - sqlite3 - libsqlite3-dev env: global: - DATABASE_BUSY_TIMEOUT=250 - TEST_DATABASE_URL=/home/travis/lugh-test-database.sqlite - TEST_LUGH_BIND=localhost:3000 - PATH="/home/travis/.cargo/bin:$PATH" before_script: - cargo install diesel_cli script: - make test ## Instruction: Enable Travis CI Cargo cache ## Code After: language: rust cache: cargo rust: - nightly addons: apt: packages: - sqlite3 - libsqlite3-dev env: global: - DATABASE_BUSY_TIMEOUT=250 - TEST_DATABASE_URL=/home/travis/lugh-test-database.sqlite - TEST_LUGH_BIND=localhost:3000 - PATH="/home/travis/.cargo/bin:$PATH" before_script: - cargo install diesel_cli --force script: - make test
language: rust + cache: cargo rust: - nightly addons: apt: packages: - sqlite3 - libsqlite3-dev env: global: - DATABASE_BUSY_TIMEOUT=250 - TEST_DATABASE_URL=/home/travis/lugh-test-database.sqlite - TEST_LUGH_BIND=localhost:3000 - PATH="/home/travis/.cargo/bin:$PATH" before_script: - - cargo install diesel_cli + - cargo install diesel_cli --force ? ++++++++ script: - make test
3
0.166667
2
1
2666949222ea186f73b3f92c0dc9f2b6e0c9213a
website/_data_sources/atsd.html
website/_data_sources/atsd.html
--- title: Query and Visualize data from Axibase Time Series Database layout: data_source name: Axibase Time Series Database logo: /assets/images/integrations/axibase.png ---
--- title: Query and Visualize data from Axibase Time Series Database layout: data_source name: Axibase TSDB logo: /assets/images/integrations/axibase.png ---
Rename Axibase to fix alignment issues
Rename Axibase to fix alignment issues
HTML
bsd-2-clause
getredash/website
html
## Code Before: --- title: Query and Visualize data from Axibase Time Series Database layout: data_source name: Axibase Time Series Database logo: /assets/images/integrations/axibase.png --- ## Instruction: Rename Axibase to fix alignment issues ## Code After: --- title: Query and Visualize data from Axibase Time Series Database layout: data_source name: Axibase TSDB logo: /assets/images/integrations/axibase.png ---
--- title: Query and Visualize data from Axibase Time Series Database layout: data_source - name: Axibase Time Series Database + name: Axibase TSDB logo: /assets/images/integrations/axibase.png ---
2
0.333333
1
1
cfb4afc216df999351ea74341b0e2c93dd400ff2
chef-relevant-tests.gemspec
chef-relevant-tests.gemspec
Gem::Specification.new do |gem| gem.name = 'chef-relevant-tests' gem.authors = ['Brigade Engineering', 'Tom Dooner'] gem.email = ['eng@brigade.com', 'tom.dooner@brigade.com'] gem.homepage = 'https://github.com/brigade/chef-relevant-tests' gem.license = 'MIT' gem.required_ruby_version = '>= 1.9.3' gem.version = '1.0.1' gem.executables << 'chef-relevant-tests' gem.files = Dir['lib/{,**/}*'] gem.add_dependency 'chef', '~> 11' gem.add_development_dependency 'rspec', '~> 3' gem.description = 'Only run the Chef tests that you need to run' gem.summary = 'Gem which looks at Chef configuration to narrow which tests you need to run' end
Gem::Specification.new do |gem| gem.name = 'chef-relevant-tests' gem.authors = ['Brigade Engineering', 'Tom Dooner'] gem.email = ['eng@brigade.com', 'tom.dooner@brigade.com'] gem.homepage = 'https://github.com/brigade/chef-relevant-tests' gem.license = 'MIT' gem.required_ruby_version = '>= 1.9.3' gem.version = '1.0.2' gem.executables << 'chef-relevant-tests' gem.files = Dir['lib/{,**/}*'] gem.add_dependency 'chef' gem.add_development_dependency 'rspec', '~> 3' gem.description = 'Only run the Chef tests that you need to run' gem.summary = 'Gem which looks at Chef configuration to narrow which tests you need to run' end
Remove dependendency on Chef 11
Remove dependendency on Chef 11 Now that Chef 12 is out, we'd like to be able to use this gem with it. Everything seems to work fine, so we'll just remove the dependency on Chef 11.
Ruby
mit
brigade/chef-relevant-tests
ruby
## Code Before: Gem::Specification.new do |gem| gem.name = 'chef-relevant-tests' gem.authors = ['Brigade Engineering', 'Tom Dooner'] gem.email = ['eng@brigade.com', 'tom.dooner@brigade.com'] gem.homepage = 'https://github.com/brigade/chef-relevant-tests' gem.license = 'MIT' gem.required_ruby_version = '>= 1.9.3' gem.version = '1.0.1' gem.executables << 'chef-relevant-tests' gem.files = Dir['lib/{,**/}*'] gem.add_dependency 'chef', '~> 11' gem.add_development_dependency 'rspec', '~> 3' gem.description = 'Only run the Chef tests that you need to run' gem.summary = 'Gem which looks at Chef configuration to narrow which tests you need to run' end ## Instruction: Remove dependendency on Chef 11 Now that Chef 12 is out, we'd like to be able to use this gem with it. Everything seems to work fine, so we'll just remove the dependency on Chef 11. ## Code After: Gem::Specification.new do |gem| gem.name = 'chef-relevant-tests' gem.authors = ['Brigade Engineering', 'Tom Dooner'] gem.email = ['eng@brigade.com', 'tom.dooner@brigade.com'] gem.homepage = 'https://github.com/brigade/chef-relevant-tests' gem.license = 'MIT' gem.required_ruby_version = '>= 1.9.3' gem.version = '1.0.2' gem.executables << 'chef-relevant-tests' gem.files = Dir['lib/{,**/}*'] gem.add_dependency 'chef' gem.add_development_dependency 'rspec', '~> 3' gem.description = 'Only run the Chef tests that you need to run' gem.summary = 'Gem which looks at Chef configuration to narrow which tests you need to run' end
Gem::Specification.new do |gem| gem.name = 'chef-relevant-tests' gem.authors = ['Brigade Engineering', 'Tom Dooner'] gem.email = ['eng@brigade.com', 'tom.dooner@brigade.com'] gem.homepage = 'https://github.com/brigade/chef-relevant-tests' gem.license = 'MIT' gem.required_ruby_version = '>= 1.9.3' - gem.version = '1.0.1' ? ^ + gem.version = '1.0.2' ? ^ gem.executables << 'chef-relevant-tests' gem.files = Dir['lib/{,**/}*'] - gem.add_dependency 'chef', '~> 11' ? --------- + gem.add_dependency 'chef' gem.add_development_dependency 'rspec', '~> 3' gem.description = 'Only run the Chef tests that you need to run' gem.summary = 'Gem which looks at Chef configuration to narrow which tests you need to run' end
4
0.210526
2
2
d477122feda64c9e4342020712af062a91fb7132
app/assets/javascripts/components/annual_report_uploads.js.coffee
app/assets/javascripts/components/annual_report_uploads.js.coffee
{div, h1, h2, p, i, a} = React.DOM window.AnnualReportUploads = class AnnualReportUploads extends React.Component constructor: (props, context) -> super(props, context) @state = { data: [], pageName: props.pageName, page: props.page, sandboxEnabled: props.sandboxEnabled adminUrl: props.adminUrl userType: props.userType } render: -> uploads = @generateUploads() div className: 'annual-report-uploads' @generateUploads() componentDidMount: -> @getData() componentWillReceiveProps: (nextProps) -> @getData(nextProps) generateUploads: -> return '' unless @state.data for annualReportUpload in @state.data div( { className: 'annual-report-upload', key: annualReportUpload.id } React.createElement(AnnualReportUpload, { key: annualReportUpload.id, annualReportUpload: annualReportUpload, sandboxEnabled: @state.sandboxEnabled adminUrl: @state.adminUrl userType: @state.userType } ) ) getData: (props) -> props = props || @props $.ajax({ url: window.location.origin + '/api/v1/annual_report_uploads' data: props.pageName + "=" + props.page dataType: 'json' success: (response) => data = response.annual_report_uploads @setState({data: data[props.pageName]}) error: (response) -> console.log("Something went wrong") })
{div, h1, h2, p, i, a} = React.DOM window.AnnualReportUploads = class AnnualReportUploads extends React.Component constructor: (props, context) -> super(props, context) @state = { data: [], pageName: props.pageName, page: props.page, sandboxEnabled: props.sandboxEnabled adminUrl: props.adminUrl userType: props.userType } render: -> uploads = @generateUploads() div className: 'annual-report-uploads' @generateUploads() componentDidMount: -> @getData() componentWillReceiveProps: (nextProps) -> @getData(nextProps) generateUploads: -> return '' unless @state.data for annualReportUpload in @state.data div( { className: 'annual-report-upload', key: annualReportUpload.id } React.createElement(AnnualReportUpload, { key: annualReportUpload.id, annualReportUpload: annualReportUpload, sandboxEnabled: @state.sandboxEnabled adminUrl: @state.adminUrl userType: @state.userType } ) ) getData: (props) -> props = props || @props $.ajax({ url: window.location.origin + '/api/v1/annual_report_uploads' data: props.pageName + "=" + props.page dataType: 'json' success: (response) => data = response.annual_report_uploads @setState({data: data[props.pageName]}) $('.fa-spinner').hide() error: (response) -> console.log("Something went wrong") })
Hide spinner when data is loaded
Hide spinner when data is loaded
CoffeeScript
mit
unepwcmc/trade_reporting_tool,unepwcmc/trade_reporting_tool,unepwcmc/trade_reporting_tool
coffeescript
## Code Before: {div, h1, h2, p, i, a} = React.DOM window.AnnualReportUploads = class AnnualReportUploads extends React.Component constructor: (props, context) -> super(props, context) @state = { data: [], pageName: props.pageName, page: props.page, sandboxEnabled: props.sandboxEnabled adminUrl: props.adminUrl userType: props.userType } render: -> uploads = @generateUploads() div className: 'annual-report-uploads' @generateUploads() componentDidMount: -> @getData() componentWillReceiveProps: (nextProps) -> @getData(nextProps) generateUploads: -> return '' unless @state.data for annualReportUpload in @state.data div( { className: 'annual-report-upload', key: annualReportUpload.id } React.createElement(AnnualReportUpload, { key: annualReportUpload.id, annualReportUpload: annualReportUpload, sandboxEnabled: @state.sandboxEnabled adminUrl: @state.adminUrl userType: @state.userType } ) ) getData: (props) -> props = props || @props $.ajax({ url: window.location.origin + '/api/v1/annual_report_uploads' data: props.pageName + "=" + props.page dataType: 'json' success: (response) => data = response.annual_report_uploads @setState({data: data[props.pageName]}) error: (response) -> console.log("Something went wrong") }) ## Instruction: Hide spinner when data is loaded ## Code After: {div, h1, h2, p, i, a} = React.DOM window.AnnualReportUploads = class AnnualReportUploads extends React.Component constructor: (props, context) -> super(props, context) @state = { data: [], pageName: props.pageName, page: props.page, sandboxEnabled: props.sandboxEnabled adminUrl: props.adminUrl userType: props.userType } render: -> uploads = @generateUploads() div className: 'annual-report-uploads' @generateUploads() componentDidMount: -> @getData() componentWillReceiveProps: (nextProps) -> @getData(nextProps) generateUploads: -> return '' unless @state.data for annualReportUpload in @state.data div( { className: 'annual-report-upload', key: annualReportUpload.id } React.createElement(AnnualReportUpload, { key: annualReportUpload.id, annualReportUpload: annualReportUpload, sandboxEnabled: @state.sandboxEnabled adminUrl: @state.adminUrl userType: @state.userType } ) ) getData: (props) -> props = props || @props $.ajax({ url: window.location.origin + '/api/v1/annual_report_uploads' data: props.pageName + "=" + props.page dataType: 'json' success: (response) => data = response.annual_report_uploads @setState({data: data[props.pageName]}) $('.fa-spinner').hide() error: (response) -> console.log("Something went wrong") })
{div, h1, h2, p, i, a} = React.DOM window.AnnualReportUploads = class AnnualReportUploads extends React.Component constructor: (props, context) -> super(props, context) @state = { data: [], pageName: props.pageName, page: props.page, sandboxEnabled: props.sandboxEnabled adminUrl: props.adminUrl userType: props.userType } render: -> uploads = @generateUploads() div className: 'annual-report-uploads' @generateUploads() componentDidMount: -> @getData() componentWillReceiveProps: (nextProps) -> @getData(nextProps) generateUploads: -> return '' unless @state.data for annualReportUpload in @state.data div( { className: 'annual-report-upload', key: annualReportUpload.id } React.createElement(AnnualReportUpload, { key: annualReportUpload.id, annualReportUpload: annualReportUpload, sandboxEnabled: @state.sandboxEnabled adminUrl: @state.adminUrl userType: @state.userType } ) ) getData: (props) -> props = props || @props $.ajax({ url: window.location.origin + '/api/v1/annual_report_uploads' data: props.pageName + "=" + props.page dataType: 'json' success: (response) => data = response.annual_report_uploads @setState({data: data[props.pageName]}) + $('.fa-spinner').hide() error: (response) -> console.log("Something went wrong") })
1
0.018519
1
0
9fe90e5158999534f25099864bac53b9d28f9562
README.rst
README.rst
Django Gears ============ Django Gears is an app for compiling and concatenating JavaScript and CSS assets. It is inspired by Ruby's Sprockets.
Gears ===== Gears is an app for compiling and concatenating JavaScript and CSS assets. It is inspired by Ruby's Sprockets.
Fix project name in readme
Fix project name in readme
reStructuredText
isc
gears/gears,gears/gears,gears/gears
restructuredtext
## Code Before: Django Gears ============ Django Gears is an app for compiling and concatenating JavaScript and CSS assets. It is inspired by Ruby's Sprockets. ## Instruction: Fix project name in readme ## Code After: Gears ===== Gears is an app for compiling and concatenating JavaScript and CSS assets. It is inspired by Ruby's Sprockets.
- Django Gears - ============ + Gears + ===== - Django Gears is an app for compiling and concatenating JavaScript and CSS ? ------- + Gears is an app for compiling and concatenating JavaScript and CSS assets. ? ++++++++ - assets. It is inspired by Ruby's Sprockets. ? -------- + It is inspired by Ruby's Sprockets.
8
1.6
4
4
e72ab530eec1787b06569b64ca6ee72a5dd839f3
Casks/semulov.rb
Casks/semulov.rb
class Semulov < Cask version 'latest' sha256 :no_check url 'http://www.kainjow.com/downloads/Semulov.zip' homepage 'http://www.kainjow.com' link 'Semulov.app' end
class Semulov < Cask version '2.0' sha256 'de2b9d4e874885a6421c17fb716e2072827c4d111c946d15ada2b4d31392e803' url 'http://kainjow.com/downloads/Semulov_2.0.zip' homepage 'http://www.kainjow.com' link 'Semulov.app' end
Use 2.0 instead of latest for Semulov.app
Use 2.0 instead of latest for Semulov.app
Ruby
bsd-2-clause
djmonta/homebrew-cask,mfpierre/homebrew-cask,kievechua/homebrew-cask,fwiesel/homebrew-cask,stigkj/homebrew-caskroom-cask,gyugyu/homebrew-cask,kkdd/homebrew-cask,mazehall/homebrew-cask,klane/homebrew-cask,neverfox/homebrew-cask,larseggert/homebrew-cask,andyli/homebrew-cask,johan/homebrew-cask,tjnycum/homebrew-cask,coeligena/homebrew-customized,wmorin/homebrew-cask,dwihn0r/homebrew-cask,kievechua/homebrew-cask,jbeagley52/homebrew-cask,JacopKane/homebrew-cask,wickles/homebrew-cask,wickedsp1d3r/homebrew-cask,zorosteven/homebrew-cask,uetchy/homebrew-cask,MisumiRize/homebrew-cask,ahundt/homebrew-cask,Ngrd/homebrew-cask,scribblemaniac/homebrew-cask,christophermanning/homebrew-cask,dspeckhard/homebrew-cask,neil-ca-moore/homebrew-cask,ianyh/homebrew-cask,jasmas/homebrew-cask,cobyism/homebrew-cask,seanorama/homebrew-cask,winkelsdorf/homebrew-cask,nrlquaker/homebrew-cask,rhendric/homebrew-cask,onlynone/homebrew-cask,puffdad/homebrew-cask,malford/homebrew-cask,cprecioso/homebrew-cask,tarwich/homebrew-cask,genewoo/homebrew-cask,wKovacs64/homebrew-cask,buo/homebrew-cask,n8henrie/homebrew-cask,hristozov/homebrew-cask,xalep/homebrew-cask,nathanielvarona/homebrew-cask,deiga/homebrew-cask,nrlquaker/homebrew-cask,FredLackeyOfficial/homebrew-cask,okket/homebrew-cask,rkJun/homebrew-cask,alexg0/homebrew-cask,katoquro/homebrew-cask,theoriginalgri/homebrew-cask,haha1903/homebrew-cask,xcezx/homebrew-cask,andyli/homebrew-cask,joaoponceleao/homebrew-cask,mariusbutuc/homebrew-cask,lolgear/homebrew-cask,rcuza/homebrew-cask,kesara/homebrew-cask,tan9/homebrew-cask,jacobbednarz/homebrew-cask,xiongchiamiov/homebrew-cask,linc01n/homebrew-cask,ninjahoahong/homebrew-cask,jellyfishcoder/homebrew-cask,bkono/homebrew-cask,stephenwade/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,stonehippo/homebrew-cask,dieterdemeyer/homebrew-cask,kiliankoe/homebrew-cask,gurghet/homebrew-cask,ebraminio/homebrew-cask,dwkns/homebrew-cask,dustinblackman/homebrew-cask,jawshooah/homebrew-cask,lumaxis/homebrew-cask,coeligena/homebrew-customized,dictcp/homebrew-cask,santoshsahoo/homebrew-cask,kamilboratynski/homebrew-cask,Amorymeltzer/homebrew-cask,zhuzihhhh/homebrew-cask,seanorama/homebrew-cask,diogodamiani/homebrew-cask,Hywan/homebrew-cask,ayohrling/homebrew-cask,MisumiRize/homebrew-cask,rogeriopradoj/homebrew-cask,mjgardner/homebrew-cask,wayou/homebrew-cask,6uclz1/homebrew-cask,csmith-palantir/homebrew-cask,githubutilities/homebrew-cask,rickychilcott/homebrew-cask,lieuwex/homebrew-cask,bgandon/homebrew-cask,antogg/homebrew-cask,wickedsp1d3r/homebrew-cask,FranklinChen/homebrew-cask,kkdd/homebrew-cask,sanchezm/homebrew-cask,asbachb/homebrew-cask,timsutton/homebrew-cask,KosherBacon/homebrew-cask,nathanielvarona/homebrew-cask,adriweb/homebrew-cask,anbotero/homebrew-cask,Cottser/homebrew-cask,jawshooah/homebrew-cask,petmoo/homebrew-cask,decrement/homebrew-cask,diguage/homebrew-cask,taherio/homebrew-cask,phpwutz/homebrew-cask,johnjelinek/homebrew-cask,boecko/homebrew-cask,nshemonsky/homebrew-cask,jppelteret/homebrew-cask,dlovitch/homebrew-cask,bkono/homebrew-cask,wesen/homebrew-cask,prime8/homebrew-cask,kirikiriyamama/homebrew-cask,mariusbutuc/homebrew-cask,gilesdring/homebrew-cask,helloIAmPau/homebrew-cask,maxnordlund/homebrew-cask,barravi/homebrew-cask,epmatsw/homebrew-cask,tedbundyjr/homebrew-cask,jedahan/homebrew-cask,johndbritton/homebrew-cask,cblecker/homebrew-cask,casidiablo/homebrew-cask,csmith-palantir/homebrew-cask,yumitsu/homebrew-cask,sebcode/homebrew-cask,chrisRidgers/homebrew-cask,daften/homebrew-cask,jbeagley52/homebrew-cask,deizel/homebrew-cask,jonathanwiesel/homebrew-cask,FinalDes/homebrew-cask,ebraminio/homebrew-cask,faun/homebrew-cask,stephenwade/homebrew-cask,tsparber/homebrew-cask,garborg/homebrew-cask,ingorichter/homebrew-cask,MichaelPei/homebrew-cask,kteru/homebrew-cask,qbmiller/homebrew-cask,ddm/homebrew-cask,jacobbednarz/homebrew-cask,ayohrling/homebrew-cask,nicolas-brousse/homebrew-cask,timsutton/homebrew-cask,helloIAmPau/homebrew-cask,shanonvl/homebrew-cask,dspeckhard/homebrew-cask,ajbw/homebrew-cask,donbobka/homebrew-cask,kamilboratynski/homebrew-cask,danielbayley/homebrew-cask,BenjaminHCCarr/homebrew-cask,katoquro/homebrew-cask,samdoran/homebrew-cask,koenrh/homebrew-cask,josa42/homebrew-cask,Amorymeltzer/homebrew-cask,julienlavergne/homebrew-cask,chrisfinazzo/homebrew-cask,flaviocamilo/homebrew-cask,claui/homebrew-cask,troyxmccall/homebrew-cask,enriclluelles/homebrew-cask,ksylvan/homebrew-cask,athrunsun/homebrew-cask,remko/homebrew-cask,chuanxd/homebrew-cask,delphinus35/homebrew-cask,squid314/homebrew-cask,renard/homebrew-cask,dvdoliveira/homebrew-cask,jonathanwiesel/homebrew-cask,schneidmaster/homebrew-cask,jiashuw/homebrew-cask,jeroenseegers/homebrew-cask,forevergenin/homebrew-cask,kuno/homebrew-cask,guylabs/homebrew-cask,slnovak/homebrew-cask,esebastian/homebrew-cask,vitorgalvao/homebrew-cask,elseym/homebrew-cask,aki77/homebrew-cask,mrmachine/homebrew-cask,deanmorin/homebrew-cask,casidiablo/homebrew-cask,albertico/homebrew-cask,ldong/homebrew-cask,ksato9700/homebrew-cask,skatsuta/homebrew-cask,jmeridth/homebrew-cask,lucasmezencio/homebrew-cask,cohei/homebrew-cask,LaurentFough/homebrew-cask,pgr0ss/homebrew-cask,englishm/homebrew-cask,imgarylai/homebrew-cask,mwilmer/homebrew-cask,RogerThiede/homebrew-cask,shoichiaizawa/homebrew-cask,m3nu/homebrew-cask,aktau/homebrew-cask,codeurge/homebrew-cask,vuquoctuan/homebrew-cask,ctrevino/homebrew-cask,jhowtan/homebrew-cask,freeslugs/homebrew-cask,decrement/homebrew-cask,tjt263/homebrew-cask,farmerchris/homebrew-cask,tjnycum/homebrew-cask,wizonesolutions/homebrew-cask,mwek/homebrew-cask,ericbn/homebrew-cask,carlmod/homebrew-cask,goxberry/homebrew-cask,askl56/homebrew-cask,renaudguerin/homebrew-cask,a1russell/homebrew-cask,dwkns/homebrew-cask,williamboman/homebrew-cask,deizel/homebrew-cask,ponychicken/homebrew-customcask,Whoaa512/homebrew-cask,yumitsu/homebrew-cask,kesara/homebrew-cask,leonmachadowilcox/homebrew-cask,Bombenleger/homebrew-cask,xtian/homebrew-cask,mjgardner/homebrew-cask,jgarber623/homebrew-cask,bric3/homebrew-cask,norio-nomura/homebrew-cask,lukasbestle/homebrew-cask,johnjelinek/homebrew-cask,ftiff/homebrew-cask,ninjahoahong/homebrew-cask,rajiv/homebrew-cask,a1russell/homebrew-cask,Labutin/homebrew-cask,shorshe/homebrew-cask,kingthorin/homebrew-cask,adelinofaria/homebrew-cask,squid314/homebrew-cask,joschi/homebrew-cask,daften/homebrew-cask,toonetown/homebrew-cask,dictcp/homebrew-cask,chadcatlett/caskroom-homebrew-cask,joshka/homebrew-cask,gyndav/homebrew-cask,bendoerr/homebrew-cask,jacobdam/homebrew-cask,napaxton/homebrew-cask,RickWong/homebrew-cask,delphinus35/homebrew-cask,fwiesel/homebrew-cask,bcomnes/homebrew-cask,lvicentesanchez/homebrew-cask,m3nu/homebrew-cask,gustavoavellar/homebrew-cask,julionc/homebrew-cask,rhendric/homebrew-cask,arronmabrey/homebrew-cask,xtian/homebrew-cask,mattfelsen/homebrew-cask,ahundt/homebrew-cask,ptb/homebrew-cask,doits/homebrew-cask,lauantai/homebrew-cask,13k/homebrew-cask,victorpopkov/homebrew-cask,jconley/homebrew-cask,danielbayley/homebrew-cask,zchee/homebrew-cask,feigaochn/homebrew-cask,dieterdemeyer/homebrew-cask,mlocher/homebrew-cask,xight/homebrew-cask,taherio/homebrew-cask,morganestes/homebrew-cask,hanxue/caskroom,illusionfield/homebrew-cask,elyscape/homebrew-cask,deanmorin/homebrew-cask,gwaldo/homebrew-cask,afh/homebrew-cask,gurghet/homebrew-cask,amatos/homebrew-cask,colindunn/homebrew-cask,mjgardner/homebrew-cask,akiomik/homebrew-cask,wizonesolutions/homebrew-cask,mathbunnyru/homebrew-cask,sachin21/homebrew-cask,mwean/homebrew-cask,gyugyu/homebrew-cask,zhuzihhhh/homebrew-cask,miguelfrde/homebrew-cask,timsutton/homebrew-cask,koenrh/homebrew-cask,blogabe/homebrew-cask,moimikey/homebrew-cask,bchatard/homebrew-cask,sosedoff/homebrew-cask,kronicd/homebrew-cask,janlugt/homebrew-cask,xyb/homebrew-cask,malob/homebrew-cask,AnastasiaSulyagina/homebrew-cask,vin047/homebrew-cask,wuman/homebrew-cask,ywfwj2008/homebrew-cask,mindriot101/homebrew-cask,jpmat296/homebrew-cask,ldong/homebrew-cask,kassi/homebrew-cask,miccal/homebrew-cask,chrisRidgers/homebrew-cask,theoriginalgri/homebrew-cask,okket/homebrew-cask,paulbreslin/homebrew-cask,JacopKane/homebrew-cask,mikem/homebrew-cask,lifepillar/homebrew-cask,vigosan/homebrew-cask,aki77/homebrew-cask,dcondrey/homebrew-cask,caskroom/homebrew-cask,cobyism/homebrew-cask,morsdyce/homebrew-cask,renard/homebrew-cask,diogodamiani/homebrew-cask,caskroom/homebrew-cask,renaudguerin/homebrew-cask,klane/homebrew-cask,Hywan/homebrew-cask,haha1903/homebrew-cask,lauantai/homebrew-cask,jacobdam/homebrew-cask,MircoT/homebrew-cask,catap/homebrew-cask,crzrcn/homebrew-cask,exherb/homebrew-cask,shoichiaizawa/homebrew-cask,wickles/homebrew-cask,LaurentFough/homebrew-cask,bcaceiro/homebrew-cask,hellosky806/homebrew-cask,farmerchris/homebrew-cask,colindunn/homebrew-cask,wolflee/homebrew-cask,d/homebrew-cask,thii/homebrew-cask,jtriley/homebrew-cask,michelegera/homebrew-cask,shonjir/homebrew-cask,atsuyim/homebrew-cask,gustavoavellar/homebrew-cask,petmoo/homebrew-cask,adrianchia/homebrew-cask,KosherBacon/homebrew-cask,hakamadare/homebrew-cask,andrewdisley/homebrew-cask,sosedoff/homebrew-cask,schneidmaster/homebrew-cask,mchlrmrz/homebrew-cask,yutarody/homebrew-cask,drostron/homebrew-cask,ahvigil/homebrew-cask,janlugt/homebrew-cask,devmynd/homebrew-cask,kei-yamazaki/homebrew-cask,stonehippo/homebrew-cask,bchatard/homebrew-cask,codeurge/homebrew-cask,jspahrsummers/homebrew-cask,scottsuch/homebrew-cask,blainesch/homebrew-cask,andersonba/homebrew-cask,zeusdeux/homebrew-cask,mwean/homebrew-cask,iamso/homebrew-cask,axodys/homebrew-cask,sjackman/homebrew-cask,moonboots/homebrew-cask,greg5green/homebrew-cask,mazehall/homebrew-cask,aktau/homebrew-cask,miku/homebrew-cask,samshadwell/homebrew-cask,kassi/homebrew-cask,tsparber/homebrew-cask,tyage/homebrew-cask,L2G/homebrew-cask,Keloran/homebrew-cask,pkq/homebrew-cask,gerrypower/homebrew-cask,AndreTheHunter/homebrew-cask,lumaxis/homebrew-cask,supriyantomaftuh/homebrew-cask,toonetown/homebrew-cask,atsuyim/homebrew-cask,zmwangx/homebrew-cask,esebastian/homebrew-cask,zeusdeux/homebrew-cask,sanchezm/homebrew-cask,imgarylai/homebrew-cask,muan/homebrew-cask,xalep/homebrew-cask,kiliankoe/homebrew-cask,joaocc/homebrew-cask,andersonba/homebrew-cask,kevyau/homebrew-cask,nathansgreen/homebrew-cask,tdsmith/homebrew-cask,afdnlw/homebrew-cask,guerrero/homebrew-cask,djakarta-trap/homebrew-myCask,patresi/homebrew-cask,shonjir/homebrew-cask,mlocher/homebrew-cask,ianyh/homebrew-cask,hvisage/homebrew-cask,zerrot/homebrew-cask,pkq/homebrew-cask,Philosoft/homebrew-cask,boydj/homebrew-cask,AnastasiaSulyagina/homebrew-cask,sachin21/homebrew-cask,paulbreslin/homebrew-cask,wolflee/homebrew-cask,skyyuan/homebrew-cask,moogar0880/homebrew-cask,illusionfield/homebrew-cask,My2ndAngelic/homebrew-cask,psibre/homebrew-cask,jiashuw/homebrew-cask,robertgzr/homebrew-cask,nicolas-brousse/homebrew-cask,ericbn/homebrew-cask,tangestani/homebrew-cask,JosephViolago/homebrew-cask,danielgomezrico/homebrew-cask,mikem/homebrew-cask,englishm/homebrew-cask,rogeriopradoj/homebrew-cask,mkozjak/homebrew-cask,kolomiichenko/homebrew-cask,danielbayley/homebrew-cask,miccal/homebrew-cask,stonehippo/homebrew-cask,bcaceiro/homebrew-cask,Ketouem/homebrew-cask,hovancik/homebrew-cask,joschi/homebrew-cask,inz/homebrew-cask,devmynd/homebrew-cask,leipert/homebrew-cask,williamboman/homebrew-cask,kteru/homebrew-cask,vitorgalvao/homebrew-cask,winkelsdorf/homebrew-cask,vigosan/homebrew-cask,samshadwell/homebrew-cask,BahtiyarB/homebrew-cask,ohammersmith/homebrew-cask,cliffcotino/homebrew-cask,jangalinski/homebrew-cask,carlmod/homebrew-cask,leonmachadowilcox/homebrew-cask,dustinblackman/homebrew-cask,gregkare/homebrew-cask,drostron/homebrew-cask,cedwardsmedia/homebrew-cask,guylabs/homebrew-cask,ksylvan/homebrew-cask,reitermarkus/homebrew-cask,hakamadare/homebrew-cask,cedwardsmedia/homebrew-cask,bgandon/homebrew-cask,mahori/homebrew-cask,ch3n2k/homebrew-cask,dlovitch/homebrew-cask,adriweb/homebrew-cask,jrwesolo/homebrew-cask,tolbkni/homebrew-cask,kostasdizas/homebrew-cask,Cottser/homebrew-cask,jeanregisser/homebrew-cask,uetchy/homebrew-cask,slack4u/homebrew-cask,rubenerd/homebrew-cask,retrography/homebrew-cask,seanzxx/homebrew-cask,markhuber/homebrew-cask,jayshao/homebrew-cask,mingzhi22/homebrew-cask,nickpellant/homebrew-cask,lcasey001/homebrew-cask,seanzxx/homebrew-cask,coeligena/homebrew-customized,chino/homebrew-cask,wastrachan/homebrew-cask,RickWong/homebrew-cask,moonboots/homebrew-cask,gyndav/homebrew-cask,jpodlech/homebrew-cask,xyb/homebrew-cask,doits/homebrew-cask,yurrriq/homebrew-cask,nrlquaker/homebrew-cask,nelsonjchen/homebrew-cask,julienlavergne/homebrew-cask,fly19890211/homebrew-cask,alexg0/homebrew-cask,ksato9700/homebrew-cask,MerelyAPseudonym/homebrew-cask,wmorin/homebrew-cask,nysthee/homebrew-cask,paour/homebrew-cask,wuman/homebrew-cask,jedahan/homebrew-cask,napaxton/homebrew-cask,kuno/homebrew-cask,cclauss/homebrew-cask,gerrymiller/homebrew-cask,RogerThiede/homebrew-cask,dunn/homebrew-cask,mokagio/homebrew-cask,yurrriq/homebrew-cask,frapposelli/homebrew-cask,elseym/homebrew-cask,bdhess/homebrew-cask,brianshumate/homebrew-cask,mauricerkelly/homebrew-cask,feniix/homebrew-cask,rajiv/homebrew-cask,josa42/homebrew-cask,Saklad5/homebrew-cask,akiomik/homebrew-cask,gord1anknot/homebrew-cask,djmonta/homebrew-cask,FranklinChen/homebrew-cask,riyad/homebrew-cask,shoichiaizawa/homebrew-cask,supriyantomaftuh/homebrew-cask,slnovak/homebrew-cask,colindean/homebrew-cask,sparrc/homebrew-cask,reitermarkus/homebrew-cask,shishi/homebrew-cask,troyxmccall/homebrew-cask,mjdescy/homebrew-cask,syscrusher/homebrew-cask,andrewschleifer/homebrew-cask,MicTech/homebrew-cask,royalwang/homebrew-cask,mattfelsen/homebrew-cask,syscrusher/homebrew-cask,Ibuprofen/homebrew-cask,iamso/homebrew-cask,jgarber623/homebrew-cask,Fedalto/homebrew-cask,alloy/homebrew-cask,sirodoht/homebrew-cask,cblecker/homebrew-cask,MichaelPei/homebrew-cask,xakraz/homebrew-cask,robertgzr/homebrew-cask,singingwolfboy/homebrew-cask,MoOx/homebrew-cask,imgarylai/homebrew-cask,MatzFan/homebrew-cask,tdsmith/homebrew-cask,Bombenleger/homebrew-cask,jmeridth/homebrew-cask,jhowtan/homebrew-cask,AndreTheHunter/homebrew-cask,mwilmer/homebrew-cask,christophermanning/homebrew-cask,0rax/homebrew-cask,arranubels/homebrew-cask,puffdad/homebrew-cask,lalyos/homebrew-cask,bcomnes/homebrew-cask,joschi/homebrew-cask,jayshao/homebrew-cask,alloy/homebrew-cask,otzy007/homebrew-cask,frapposelli/homebrew-cask,perfide/homebrew-cask,jspahrsummers/homebrew-cask,johntrandall/homebrew-cask,mathbunnyru/homebrew-cask,slack4u/homebrew-cask,coneman/homebrew-cask,larseggert/homebrew-cask,vmrob/homebrew-cask,hackhandslabs/homebrew-cask,howie/homebrew-cask,fharbe/homebrew-cask,blainesch/homebrew-cask,chrisfinazzo/homebrew-cask,blogabe/homebrew-cask,CameronGarrett/homebrew-cask,otaran/homebrew-cask,6uclz1/homebrew-cask,af/homebrew-cask,yurikoles/homebrew-cask,huanzhang/homebrew-cask,singingwolfboy/homebrew-cask,kingthorin/homebrew-cask,yuhki50/homebrew-cask,iAmGhost/homebrew-cask,perfide/homebrew-cask,brianshumate/homebrew-cask,ctrevino/homebrew-cask,johan/homebrew-cask,sohtsuka/homebrew-cask,epmatsw/homebrew-cask,malob/homebrew-cask,vmrob/homebrew-cask,wayou/homebrew-cask,scribblemaniac/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,bendoerr/homebrew-cask,flada-auxv/homebrew-cask,BenjaminHCCarr/homebrew-cask,pablote/homebrew-cask,andrewdisley/homebrew-cask,otaran/homebrew-cask,ericbn/homebrew-cask,afdnlw/homebrew-cask,mAAdhaTTah/homebrew-cask,lucasmezencio/homebrew-cask,Keloran/homebrew-cask,malford/homebrew-cask,cfillion/homebrew-cask,3van/homebrew-cask,jellyfishcoder/homebrew-cask,scw/homebrew-cask,gguillotte/homebrew-cask,diguage/homebrew-cask,tjnycum/homebrew-cask,Philosoft/homebrew-cask,thehunmonkgroup/homebrew-cask,opsdev-ws/homebrew-cask,greg5green/homebrew-cask,scottsuch/homebrew-cask,feigaochn/homebrew-cask,0rax/homebrew-cask,jamesmlees/homebrew-cask,iAmGhost/homebrew-cask,retbrown/homebrew-cask,mchlrmrz/homebrew-cask,royalwang/homebrew-cask,mathbunnyru/homebrew-cask,flada-auxv/homebrew-cask,kryhear/homebrew-cask,gibsjose/homebrew-cask,3van/homebrew-cask,JacopKane/homebrew-cask,ajbw/homebrew-cask,johnste/homebrew-cask,y00rb/homebrew-cask,chrisfinazzo/homebrew-cask,ky0615/homebrew-cask-1,cblecker/homebrew-cask,Ephemera/homebrew-cask,jaredsampson/homebrew-cask,kpearson/homebrew-cask,lcasey001/homebrew-cask,BahtiyarB/homebrew-cask,jppelteret/homebrew-cask,cobyism/homebrew-cask,hovancik/homebrew-cask,johnste/homebrew-cask,uetchy/homebrew-cask,SamiHiltunen/homebrew-cask,zerrot/homebrew-cask,markthetech/homebrew-cask,underyx/homebrew-cask,riyad/homebrew-cask,shorshe/homebrew-cask,kronicd/homebrew-cask,mattrobenolt/homebrew-cask,sscotth/homebrew-cask,tranc99/homebrew-cask,cohei/homebrew-cask,markhuber/homebrew-cask,mokagio/homebrew-cask,skyyuan/homebrew-cask,BenjaminHCCarr/homebrew-cask,0xadada/homebrew-cask,joaocc/homebrew-cask,gabrielizaias/homebrew-cask,kirikiriyamama/homebrew-cask,victorpopkov/homebrew-cask,morsdyce/homebrew-cask,MoOx/homebrew-cask,hyuna917/homebrew-cask,winkelsdorf/homebrew-cask,tarwich/homebrew-cask,xight/homebrew-cask,hackhandslabs/homebrew-cask,neverfox/homebrew-cask,stephenwade/homebrew-cask,kTitan/homebrew-cask,stevehedrick/homebrew-cask,a1russell/homebrew-cask,ky0615/homebrew-cask-1,gwaldo/homebrew-cask,Saklad5/homebrew-cask,MicTech/homebrew-cask,lukasbestle/homebrew-cask,pacav69/homebrew-cask,adrianchia/homebrew-cask,hanxue/caskroom,skatsuta/homebrew-cask,samnung/homebrew-cask,jalaziz/homebrew-cask,asbachb/homebrew-cask,mrmachine/homebrew-cask,paulombcosta/homebrew-cask,rogeriopradoj/homebrew-cask,jpmat296/homebrew-cask,jpodlech/homebrew-cask,kpearson/homebrew-cask,kingthorin/homebrew-cask,epardee/homebrew-cask,paour/homebrew-cask,zorosteven/homebrew-cask,andrewdisley/homebrew-cask,paulombcosta/homebrew-cask,exherb/homebrew-cask,asins/homebrew-cask,gyndav/homebrew-cask,lukeadams/homebrew-cask,qnm/homebrew-cask,n8henrie/homebrew-cask,aguynamedryan/homebrew-cask,jalaziz/homebrew-cask,shanonvl/homebrew-cask,howie/homebrew-cask,tmoreira2020/homebrew,SentinelWarren/homebrew-cask,xight/homebrew-cask,y00rb/homebrew-cask,elnappo/homebrew-cask,jen20/homebrew-cask,Nitecon/homebrew-cask,githubutilities/homebrew-cask,stevehedrick/homebrew-cask,retrography/homebrew-cask,gmkey/homebrew-cask,m3nu/homebrew-cask,thomanq/homebrew-cask,inta/homebrew-cask,chadcatlett/caskroom-homebrew-cask,thii/homebrew-cask,maxnordlund/homebrew-cask,0xadada/homebrew-cask,adelinofaria/homebrew-cask,nightscape/homebrew-cask,kryhear/homebrew-cask,corbt/homebrew-cask,claui/homebrew-cask,miku/homebrew-cask,kongslund/homebrew-cask,JoelLarson/homebrew-cask,reelsense/homebrew-cask,arranubels/homebrew-cask,franklouwers/homebrew-cask,moogar0880/homebrew-cask,AdamCmiel/homebrew-cask,rickychilcott/homebrew-cask,kongslund/homebrew-cask,robbiethegeek/homebrew-cask,albertico/homebrew-cask,antogg/homebrew-cask,moimikey/homebrew-cask,claui/homebrew-cask,gord1anknot/homebrew-cask,stevenmaguire/homebrew-cask,mjdescy/homebrew-cask,lieuwex/homebrew-cask,kevyau/homebrew-cask,mhubig/homebrew-cask,vuquoctuan/homebrew-cask,kostasdizas/homebrew-cask,tyage/homebrew-cask,bdhess/homebrew-cask,malob/homebrew-cask,arronmabrey/homebrew-cask,gerrypower/homebrew-cask,jen20/homebrew-cask,mindriot101/homebrew-cask,unasuke/homebrew-cask,ingorichter/homebrew-cask,nivanchikov/homebrew-cask,fly19890211/homebrew-cask,ohammersmith/homebrew-cask,FinalDes/homebrew-cask,boydj/homebrew-cask,sysbot/homebrew-cask,muan/homebrew-cask,RJHsiao/homebrew-cask,tedbundyjr/homebrew-cask,scottsuch/homebrew-cask,donbobka/homebrew-cask,bsiddiqui/homebrew-cask,hvisage/homebrew-cask,gilesdring/homebrew-cask,askl56/homebrew-cask,goxberry/homebrew-cask,lantrix/homebrew-cask,tedski/homebrew-cask,alexg0/homebrew-cask,Dremora/homebrew-cask,nathancahill/homebrew-cask,asins/homebrew-cask,feniix/homebrew-cask,nathansgreen/homebrew-cask,yurikoles/homebrew-cask,cprecioso/homebrew-cask,d/homebrew-cask,mishari/homebrew-cask,otzy007/homebrew-cask,retbrown/homebrew-cask,sanyer/homebrew-cask,nshemonsky/homebrew-cask,remko/homebrew-cask,unasuke/homebrew-cask,MerelyAPseudonym/homebrew-cask,julionc/homebrew-cask,mishari/homebrew-cask,a-x-/homebrew-cask,gabrielizaias/homebrew-cask,j13k/homebrew-cask,hristozov/homebrew-cask,mgryszko/homebrew-cask,dezon/homebrew-cask,shishi/homebrew-cask,nelsonjchen/homebrew-cask,tjt263/homebrew-cask,franklouwers/homebrew-cask,cfillion/homebrew-cask,markthetech/homebrew-cask,johndbritton/homebrew-cask,sanyer/homebrew-cask,leipert/homebrew-cask,zchee/homebrew-cask,dvdoliveira/homebrew-cask,nickpellant/homebrew-cask,thomanq/homebrew-cask,SentinelWarren/homebrew-cask,afh/homebrew-cask,valepert/homebrew-cask,SamiHiltunen/homebrew-cask,psibre/homebrew-cask,nathancahill/homebrew-cask,gguillotte/homebrew-cask,sirodoht/homebrew-cask,optikfluffel/homebrew-cask,norio-nomura/homebrew-cask,dictcp/homebrew-cask,af/homebrew-cask,tedski/homebrew-cask,ch3n2k/homebrew-cask,sysbot/homebrew-cask,chuanxd/homebrew-cask,ywfwj2008/homebrew-cask,deiga/homebrew-cask,rubenerd/homebrew-cask,Amorymeltzer/homebrew-cask,nathanielvarona/homebrew-cask,neverfox/homebrew-cask,JoelLarson/homebrew-cask,jgarber623/homebrew-cask,astorije/homebrew-cask,Gasol/homebrew-cask,gregkare/homebrew-cask,RJHsiao/homebrew-cask,mingzhi22/homebrew-cask,stigkj/homebrew-caskroom-cask,tolbkni/homebrew-cask,aguynamedryan/homebrew-cask,deiga/homebrew-cask,robbiethegeek/homebrew-cask,Ketouem/homebrew-cask,cliffcotino/homebrew-cask,lukeadams/homebrew-cask,ptb/homebrew-cask,sparrc/homebrew-cask,lvicentesanchez/homebrew-cask,zmwangx/homebrew-cask,sgnh/homebrew-cask,yutarody/homebrew-cask,christer155/homebrew-cask,sanyer/homebrew-cask,artdevjs/homebrew-cask,Ngrd/homebrew-cask,tan9/homebrew-cask,ddm/homebrew-cask,j13k/homebrew-cask,mkozjak/homebrew-cask,jeroenseegers/homebrew-cask,Ephemera/homebrew-cask,wastrachan/homebrew-cask,alebcay/homebrew-cask,morganestes/homebrew-cask,lantrix/homebrew-cask,jtriley/homebrew-cask,bosr/homebrew-cask,kTitan/homebrew-cask,boecko/homebrew-cask,crmne/homebrew-cask,hyuna917/homebrew-cask,scribblemaniac/homebrew-cask,anbotero/homebrew-cask,Nitecon/homebrew-cask,segiddins/homebrew-cask,xakraz/homebrew-cask,inz/homebrew-cask,kesara/homebrew-cask,pacav69/homebrew-cask,barravi/homebrew-cask,pablote/homebrew-cask,fazo96/homebrew-cask,esebastian/homebrew-cask,miccal/homebrew-cask,wesen/homebrew-cask,scw/homebrew-cask,yuhki50/homebrew-cask,dwihn0r/homebrew-cask,stevenmaguire/homebrew-cask,andyshinn/homebrew-cask,elyscape/homebrew-cask,JikkuJose/homebrew-cask,qnm/homebrew-cask,rkJun/homebrew-cask,forevergenin/homebrew-cask,paour/homebrew-cask,jeanregisser/homebrew-cask,Whoaa512/homebrew-cask,adrianchia/homebrew-cask,xyb/homebrew-cask,sjackman/homebrew-cask,fkrone/homebrew-cask,jangalinski/homebrew-cask,sscotth/homebrew-cask,fanquake/homebrew-cask,genewoo/homebrew-cask,danielgomezrico/homebrew-cask,mAAdhaTTah/homebrew-cask,chino/homebrew-cask,colindean/homebrew-cask,tangestani/homebrew-cask,a-x-/homebrew-cask,mhubig/homebrew-cask,mwek/homebrew-cask,jalaziz/homebrew-cask,samdoran/homebrew-cask,sgnh/homebrew-cask,patresi/homebrew-cask,dunn/homebrew-cask,nightscape/homebrew-cask,rajiv/homebrew-cask,dezon/homebrew-cask,pkq/homebrew-cask,valepert/homebrew-cask,Labutin/homebrew-cask,optikfluffel/homebrew-cask,reitermarkus/homebrew-cask,hellosky806/homebrew-cask,jeroenj/homebrew-cask,linc01n/homebrew-cask,julionc/homebrew-cask,jrwesolo/homebrew-cask,crzrcn/homebrew-cask,phpwutz/homebrew-cask,guerrero/homebrew-cask,fkrone/homebrew-cask,santoshsahoo/homebrew-cask,alebcay/homebrew-cask,nysthee/homebrew-cask,christer155/homebrew-cask,Ephemera/homebrew-cask,yurikoles/homebrew-cask,opsdev-ws/homebrew-cask,blogabe/homebrew-cask,optikfluffel/homebrew-cask,fazo96/homebrew-cask,MircoT/homebrew-cask,mattrobenolt/homebrew-cask,lalyos/homebrew-cask,jconley/homebrew-cask,singingwolfboy/homebrew-cask,johntrandall/homebrew-cask,ahvigil/homebrew-cask,jasmas/homebrew-cask,jaredsampson/homebrew-cask,axodys/homebrew-cask,cclauss/homebrew-cask,JosephViolago/homebrew-cask,Fedalto/homebrew-cask,yutarody/homebrew-cask,huanzhang/homebrew-cask,nivanchikov/homebrew-cask,athrunsun/homebrew-cask,jamesmlees/homebrew-cask,dcondrey/homebrew-cask,Ibuprofen/homebrew-cask,freeslugs/homebrew-cask,mfpierre/homebrew-cask,kolomiichenko/homebrew-cask,coneman/homebrew-cask,garborg/homebrew-cask,rcuza/homebrew-cask,AdamCmiel/homebrew-cask,mahori/homebrew-cask,bsiddiqui/homebrew-cask,giannitm/homebrew-cask,underyx/homebrew-cask,kei-yamazaki/homebrew-cask,djakarta-trap/homebrew-myCask,CameronGarrett/homebrew-cask,ponychicken/homebrew-customcask,mattrobenolt/homebrew-cask,lolgear/homebrew-cask,FredLackeyOfficial/homebrew-cask,joshka/homebrew-cask,faun/homebrew-cask,gibsjose/homebrew-cask,MatzFan/homebrew-cask,qbmiller/homebrew-cask,lifepillar/homebrew-cask,buo/homebrew-cask,moimikey/homebrew-cask,neil-ca-moore/homebrew-cask,miguelfrde/homebrew-cask,sebcode/homebrew-cask,bric3/homebrew-cask,shonjir/homebrew-cask,joaoponceleao/homebrew-cask,Gasol/homebrew-cask,pinut/homebrew-cask,elnappo/homebrew-cask,My2ndAngelic/homebrew-cask,antogg/homebrew-cask,josa42/homebrew-cask,vin047/homebrew-cask,andyshinn/homebrew-cask,michelegera/homebrew-cask,hanxue/caskroom,spruceb/homebrew-cask,bosr/homebrew-cask,inta/homebrew-cask,usami-k/homebrew-cask,epardee/homebrew-cask,Dremora/homebrew-cask,joshka/homebrew-cask,n0ts/homebrew-cask,pinut/homebrew-cask,alebcay/homebrew-cask,gerrymiller/homebrew-cask,amatos/homebrew-cask,L2G/homebrew-cask,sohtsuka/homebrew-cask,usami-k/homebrew-cask,crmne/homebrew-cask,tmoreira2020/homebrew,xiongchiamiov/homebrew-cask,tranc99/homebrew-cask,xcezx/homebrew-cask,pgr0ss/homebrew-cask,enriclluelles/homebrew-cask,13k/homebrew-cask,mchlrmrz/homebrew-cask,JikkuJose/homebrew-cask,catap/homebrew-cask,corbt/homebrew-cask,reelsense/homebrew-cask,flaviocamilo/homebrew-cask,wKovacs64/homebrew-cask,n0ts/homebrew-cask,ftiff/homebrew-cask,prime8/homebrew-cask,thehunmonkgroup/homebrew-cask,jeroenj/homebrew-cask,andrewschleifer/homebrew-cask,tangestani/homebrew-cask,fanquake/homebrew-cask,fharbe/homebrew-cask,mauricerkelly/homebrew-cask,artdevjs/homebrew-cask,bric3/homebrew-cask,astorije/homebrew-cask,onlynone/homebrew-cask,sscotth/homebrew-cask,mgryszko/homebrew-cask,spruceb/homebrew-cask,segiddins/homebrew-cask,wmorin/homebrew-cask,giannitm/homebrew-cask,gmkey/homebrew-cask,JosephViolago/homebrew-cask,samnung/homebrew-cask,mahori/homebrew-cask
ruby
## Code Before: class Semulov < Cask version 'latest' sha256 :no_check url 'http://www.kainjow.com/downloads/Semulov.zip' homepage 'http://www.kainjow.com' link 'Semulov.app' end ## Instruction: Use 2.0 instead of latest for Semulov.app ## Code After: class Semulov < Cask version '2.0' sha256 'de2b9d4e874885a6421c17fb716e2072827c4d111c946d15ada2b4d31392e803' url 'http://kainjow.com/downloads/Semulov_2.0.zip' homepage 'http://www.kainjow.com' link 'Semulov.app' end
class Semulov < Cask - version 'latest' - sha256 :no_check + version '2.0' + sha256 'de2b9d4e874885a6421c17fb716e2072827c4d111c946d15ada2b4d31392e803' - url 'http://www.kainjow.com/downloads/Semulov.zip' ? ---- + url 'http://kainjow.com/downloads/Semulov_2.0.zip' ? ++++ homepage 'http://www.kainjow.com' link 'Semulov.app' end
6
0.666667
3
3
f8b90f90a832768480b034af562ed7536fd66ec2
_config.yml
_config.yml
title: Michael R. Fleet baseurl: "" # the subpath of your site, e.g. /blog/ url: "http://resume.f1337.com" # the base hostname & protocol for your site github_username: f1337 linkedin_path: in/f1337 # your linkedin url, without the leading www.linkedin.com/ email: resume@f1337.us # Build settings markdown: kramdown
title: Michael R. Fleet baseurl: "" # the subpath of your site, e.g. /blog/ url: "http://resume.f1337.com" # the base hostname & protocol for your site github_username: f1337 linkedin_path: in/f1337 # your linkedin url, without the leading www.linkedin.com/ email: resume@f1337.us # Build settings markdown: kramdown exclude: [ 'archive', 'Gemfile', 'Gemifile.lock' ]
Exclude archive, Gemfile from build output.
Exclude archive, Gemfile from build output.
YAML
agpl-3.0
f1337/resume
yaml
## Code Before: title: Michael R. Fleet baseurl: "" # the subpath of your site, e.g. /blog/ url: "http://resume.f1337.com" # the base hostname & protocol for your site github_username: f1337 linkedin_path: in/f1337 # your linkedin url, without the leading www.linkedin.com/ email: resume@f1337.us # Build settings markdown: kramdown ## Instruction: Exclude archive, Gemfile from build output. ## Code After: title: Michael R. Fleet baseurl: "" # the subpath of your site, e.g. /blog/ url: "http://resume.f1337.com" # the base hostname & protocol for your site github_username: f1337 linkedin_path: in/f1337 # your linkedin url, without the leading www.linkedin.com/ email: resume@f1337.us # Build settings markdown: kramdown exclude: [ 'archive', 'Gemfile', 'Gemifile.lock' ]
title: Michael R. Fleet baseurl: "" # the subpath of your site, e.g. /blog/ url: "http://resume.f1337.com" # the base hostname & protocol for your site github_username: f1337 linkedin_path: in/f1337 # your linkedin url, without the leading www.linkedin.com/ email: resume@f1337.us # Build settings markdown: kramdown + exclude: [ 'archive', 'Gemfile', 'Gemifile.lock' ]
1
0.111111
1
0
39653877079263d9af70b65b0b5d0601ad16ca09
metadata/com.fairphone.mycontacts.txt
metadata/com.fairphone.mycontacts.txt
Categories:System,Phone & SMS License:Apache-2.0 Web Site: Source Code:https://github.com/WeAreFairphone/android_packages_apps_MyContactsWidget Issue Tracker:https://github.com/WeAreFairphone/android_packages_apps_MyContactsWidget/issues Auto Name:My Contacts Summary:Quickly access your contacts Description: Recent Contacts lets you see your recently and most called contacts in one overview, and it lets you make direct phone calls straight from the widget itself without launching the dialer app first. As with any widget, if you don’t like using it, it can easily be removed. . Repo Type:git Repo:https://github.com/WeAreFairphone/android_packages_apps_MyContactsWidget Build:2.0,2 commit=6f036a523ba7c4b570448b6d41260b2ecd7defab gradle=yes prebuild=touch proguard-android.txt proguard-rules.txt Auto Update Mode:None Update Check Mode:Tags Current Version:2.0 Current Version Code:2
Categories:System,Phone & SMS License:Apache-2.0 Web Site: Source Code:https://github.com/WeAreFairphone/android_packages_apps_MyContactsWidget Issue Tracker:https://github.com/WeAreFairphone/android_packages_apps_MyContactsWidget/issues Auto Name:My Contacts Summary:Quickly access your contacts Description: Recent Contacts lets you see your recently and most called contacts in one overview, and it lets you make direct phone calls straight from the widget itself without launching the dialer app first. As with any widget, if you don’t like using it, it can easily be removed. . Repo Type:git Repo:https://github.com/WeAreFairphone/android_packages_apps_MyContactsWidget Build:2.0,2 commit=6f036a523ba7c4b570448b6d41260b2ecd7defab gradle=yes prebuild=touch proguard-android.txt proguard-rules.txt Auto Update Mode:None Update Check Mode:Tags [0-9\.]*$ Current Version:2.0 Current Version Code:2
Make sure we use the new versioning scheme for Fairphone's My Contacts widget
Make sure we use the new versioning scheme for Fairphone's My Contacts widget
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata
text
## Code Before: Categories:System,Phone & SMS License:Apache-2.0 Web Site: Source Code:https://github.com/WeAreFairphone/android_packages_apps_MyContactsWidget Issue Tracker:https://github.com/WeAreFairphone/android_packages_apps_MyContactsWidget/issues Auto Name:My Contacts Summary:Quickly access your contacts Description: Recent Contacts lets you see your recently and most called contacts in one overview, and it lets you make direct phone calls straight from the widget itself without launching the dialer app first. As with any widget, if you don’t like using it, it can easily be removed. . Repo Type:git Repo:https://github.com/WeAreFairphone/android_packages_apps_MyContactsWidget Build:2.0,2 commit=6f036a523ba7c4b570448b6d41260b2ecd7defab gradle=yes prebuild=touch proguard-android.txt proguard-rules.txt Auto Update Mode:None Update Check Mode:Tags Current Version:2.0 Current Version Code:2 ## Instruction: Make sure we use the new versioning scheme for Fairphone's My Contacts widget ## Code After: Categories:System,Phone & SMS License:Apache-2.0 Web Site: Source Code:https://github.com/WeAreFairphone/android_packages_apps_MyContactsWidget Issue Tracker:https://github.com/WeAreFairphone/android_packages_apps_MyContactsWidget/issues Auto Name:My Contacts Summary:Quickly access your contacts Description: Recent Contacts lets you see your recently and most called contacts in one overview, and it lets you make direct phone calls straight from the widget itself without launching the dialer app first. As with any widget, if you don’t like using it, it can easily be removed. . Repo Type:git Repo:https://github.com/WeAreFairphone/android_packages_apps_MyContactsWidget Build:2.0,2 commit=6f036a523ba7c4b570448b6d41260b2ecd7defab gradle=yes prebuild=touch proguard-android.txt proguard-rules.txt Auto Update Mode:None Update Check Mode:Tags [0-9\.]*$ Current Version:2.0 Current Version Code:2
Categories:System,Phone & SMS License:Apache-2.0 Web Site: Source Code:https://github.com/WeAreFairphone/android_packages_apps_MyContactsWidget Issue Tracker:https://github.com/WeAreFairphone/android_packages_apps_MyContactsWidget/issues Auto Name:My Contacts Summary:Quickly access your contacts Description: Recent Contacts lets you see your recently and most called contacts in one overview, and it lets you make direct phone calls straight from the widget itself without launching the dialer app first. As with any widget, if you don’t like using it, it can easily be removed. . Repo Type:git Repo:https://github.com/WeAreFairphone/android_packages_apps_MyContactsWidget Build:2.0,2 commit=6f036a523ba7c4b570448b6d41260b2ecd7defab gradle=yes prebuild=touch proguard-android.txt proguard-rules.txt Auto Update Mode:None - Update Check Mode:Tags + Update Check Mode:Tags [0-9\.]*$ ? ++++++++++ Current Version:2.0 Current Version Code:2
2
0.074074
1
1
debb36e6a43d23e9428a8036ace6fe680a192d98
lib/active_mocker/mock/exceptions.rb
lib/active_mocker/mock/exceptions.rb
module ActiveMocker module Mock class RecordNotFound < StandardError end class ReservedFieldError < StandardError end class IdError < StandardError end class FileTypeMismatchError < StandardError end class RejectedParams < Exception end class Unimplemented < Exception end class IdNotNumber < Exception end end end
module ActiveMocker module Mock class RecordNotFound < StandardError end class ReservedFieldError < StandardError end class IdError < StandardError end class FileTypeMismatchError < StandardError end # Raised when unknown attributes are supplied via mass assignment. class UnknownAttributeError < NoMethodError attr_reader :record, :attribute def initialize(record, attribute) @record = record @attribute = attribute.to_s super("unknown attribute: #{attribute}") end end class Unimplemented < Exception end class IdNotNumber < Exception end class Error < Exception end end end
Replace RejectedParams and use UnknownAttributesError to follow active record
Replace RejectedParams and use UnknownAttributesError to follow active record
Ruby
mit
zeisler/active_mocker,zeisler/active_mocker,zeisler/active_mocker
ruby
## Code Before: module ActiveMocker module Mock class RecordNotFound < StandardError end class ReservedFieldError < StandardError end class IdError < StandardError end class FileTypeMismatchError < StandardError end class RejectedParams < Exception end class Unimplemented < Exception end class IdNotNumber < Exception end end end ## Instruction: Replace RejectedParams and use UnknownAttributesError to follow active record ## Code After: module ActiveMocker module Mock class RecordNotFound < StandardError end class ReservedFieldError < StandardError end class IdError < StandardError end class FileTypeMismatchError < StandardError end # Raised when unknown attributes are supplied via mass assignment. class UnknownAttributeError < NoMethodError attr_reader :record, :attribute def initialize(record, attribute) @record = record @attribute = attribute.to_s super("unknown attribute: #{attribute}") end end class Unimplemented < Exception end class IdNotNumber < Exception end class Error < Exception end end end
module ActiveMocker module Mock class RecordNotFound < StandardError end class ReservedFieldError < StandardError end class IdError < StandardError end class FileTypeMismatchError < StandardError end - class RejectedParams < Exception + # Raised when unknown attributes are supplied via mass assignment. + class UnknownAttributeError < NoMethodError + + attr_reader :record, :attribute + + def initialize(record, attribute) + @record = record + @attribute = attribute.to_s + super("unknown attribute: #{attribute}") + end + end class Unimplemented < Exception end class IdNotNumber < Exception end + class Error < Exception + end + end end
15
0.6
14
1
74bbb19a7c3aa3e0a82e5dcecb76acd3e719d1f0
README.md
README.md
When defining a (sub)section, use the follow markers for each level: 1. ====== 2. ------ 3. ~~~~~~ 4. ^^^^^^ 5. ******
When defining a (sub)section, use the follow markers for each level: * # with overline, for parts * * with overline, for chapters * =, for sections * -, for subsections * ^, for subsubsections * ", for paragraphs
Change section markup rules to follow Sphinx's recommendation
Change section markup rules to follow Sphinx's recommendation
Markdown
mit
sensorbee/docs
markdown
## Code Before: When defining a (sub)section, use the follow markers for each level: 1. ====== 2. ------ 3. ~~~~~~ 4. ^^^^^^ 5. ****** ## Instruction: Change section markup rules to follow Sphinx's recommendation ## Code After: When defining a (sub)section, use the follow markers for each level: * # with overline, for parts * * with overline, for chapters * =, for sections * -, for subsections * ^, for subsubsections * ", for paragraphs
When defining a (sub)section, use the follow markers for each level: - 1. ====== - 2. ------ - 3. ~~~~~~ - 4. ^^^^^^ - 5. ****** + * # with overline, for parts + * * with overline, for chapters + * =, for sections + * -, for subsections + * ^, for subsubsections + * ", for paragraphs
11
1.375
6
5
aadcac009a103cb69c163034c0816c58e72c5ba8
config.yml
config.yml
appname: "mimosa" # The default layout to use for your application (located in # views/layouts/main.tt) layout: "main" # when the charset is set to UTF-8 Dancer will handle for you # all the magic of encoding and decoding. You should not care # about unicode within your app when this setting is set (recommended). charset: "UTF-8" # template engine # simple: default and very basic template engine # template_toolkit: TT template: "mason" # template: "template_toolkit" # engines: # template_toolkit: # encoding: 'utf8' # start_tag: '[%' # end_tag: '%]' plugins: DBIC: mimosa: dsn: "dbi:SQLite:dbname=./mimosa.db"
appname: "mimosa" # The default layout to use for your application (located in # views/layouts/main.tt) layout: "main" # when the charset is set to UTF-8 Dancer will handle for you # all the magic of encoding and decoding. You should not care # about unicode within your app when this setting is set (recommended). charset: "UTF-8" # template engine # simple: default and very basic template engine # template_toolkit: TT template: "mason" # template: "template_toolkit" # engines: # template_toolkit: # encoding: 'utf8' # start_tag: '[%' # end_tag: '%]' plugins: DBIC: mimosa: dsn: "dbi:SQLite:dbname=./mimosa.db" schema_class: 'Bio::Chado::Schema'
Set the schema_class in our conf, rbuels++
Set the schema_class in our conf, rbuels++
YAML
artistic-2.0
GMOD/mimosa,GMOD/mimosa,GMOD/mimosa
yaml
## Code Before: appname: "mimosa" # The default layout to use for your application (located in # views/layouts/main.tt) layout: "main" # when the charset is set to UTF-8 Dancer will handle for you # all the magic of encoding and decoding. You should not care # about unicode within your app when this setting is set (recommended). charset: "UTF-8" # template engine # simple: default and very basic template engine # template_toolkit: TT template: "mason" # template: "template_toolkit" # engines: # template_toolkit: # encoding: 'utf8' # start_tag: '[%' # end_tag: '%]' plugins: DBIC: mimosa: dsn: "dbi:SQLite:dbname=./mimosa.db" ## Instruction: Set the schema_class in our conf, rbuels++ ## Code After: appname: "mimosa" # The default layout to use for your application (located in # views/layouts/main.tt) layout: "main" # when the charset is set to UTF-8 Dancer will handle for you # all the magic of encoding and decoding. You should not care # about unicode within your app when this setting is set (recommended). charset: "UTF-8" # template engine # simple: default and very basic template engine # template_toolkit: TT template: "mason" # template: "template_toolkit" # engines: # template_toolkit: # encoding: 'utf8' # start_tag: '[%' # end_tag: '%]' plugins: DBIC: mimosa: dsn: "dbi:SQLite:dbname=./mimosa.db" schema_class: 'Bio::Chado::Schema'
appname: "mimosa" # The default layout to use for your application (located in # views/layouts/main.tt) layout: "main" # when the charset is set to UTF-8 Dancer will handle for you # all the magic of encoding and decoding. You should not care # about unicode within your app when this setting is set (recommended). charset: "UTF-8" # template engine # simple: default and very basic template engine # template_toolkit: TT template: "mason" # template: "template_toolkit" # engines: # template_toolkit: # encoding: 'utf8' # start_tag: '[%' # end_tag: '%]' plugins: DBIC: mimosa: dsn: "dbi:SQLite:dbname=./mimosa.db" + schema_class: 'Bio::Chado::Schema'
1
0.035714
1
0
345913bc90a1b6c11d37ba80d89d098e034b3259
InvenTree/build/templates/build/complete.html
InvenTree/build/templates/build/complete.html
{% extends "modal_form.html" %} {% block pre_form_content %} <b>Build: {{ build.title }}</b> - {{ build.quantity }} x {{ build.part.name }} <br> Are you sure you want to mark this build as complete? <hr> {% if taking %} The following items will be removed from stock: <ul class='list-group'> {% for item in taking %} <li>{{ item.quantity }} x {{ item.stock_item.part.name }} from {{ item.stock_item.location }}</li> {% endfor %} </ul> {% else %} No parts have been allocated to this build. {% endif %} <hr> The following items will be created: <ul> <li>{{ build.quantity }} x {{ build.part.name }}</li> </ul> {% endblock %}
{% extends "modal_form.html" %} {% block pre_form_content %} <b>Build: {{ build.title }}</b> - {{ build.quantity }} x {{ build.part.name }} <br> Are you sure you want to mark this build as complete? <hr> {% if taking %} The following items will be removed from stock: <table class='table table-striped table-condensed'> <tr> <th></th> <th>Part</th> <th>Quantity</th> <th>Location</th> </tr> {% for item in taking %} <tr> <td> <a class='hover-icon'> <img class='hover-img-thumb' src='{{ item.stock_item.part.image.url }}'> <img class='hover-img-large' src='{{ item.stock_item.part.image.url }}'> </a> </td> <td> {{ item.stock_item.part.name }}<br> <i>{{ item.stock_item.part.description }}</i> </td> <td>{{ item.quantity }}</td> <td>{{ item.stock_item.location }}</td> </tr> {% endfor %} </table> {% else %} No parts have been allocated to this build. {% endif %} <hr> The following items will be created: <div class='panel panel-default'> <a class='hover-icon'> <img class='hover-img-thumb' src='{{ build.part.image.url }}'> <img class='hover-img-large' src='{{ build.part.image.url }}'> </a> {{ build.quantity }} x {{ build.part.name }} </div> {% endblock %}
Improve rendering of 'Complete Build' form
Improve rendering of 'Complete Build' form
HTML
mit
SchrodingersGat/InvenTree,SchrodingersGat/InvenTree,SchrodingersGat/InvenTree,SchrodingersGat/InvenTree,inventree/InvenTree,inventree/InvenTree,inventree/InvenTree,inventree/InvenTree
html
## Code Before: {% extends "modal_form.html" %} {% block pre_form_content %} <b>Build: {{ build.title }}</b> - {{ build.quantity }} x {{ build.part.name }} <br> Are you sure you want to mark this build as complete? <hr> {% if taking %} The following items will be removed from stock: <ul class='list-group'> {% for item in taking %} <li>{{ item.quantity }} x {{ item.stock_item.part.name }} from {{ item.stock_item.location }}</li> {% endfor %} </ul> {% else %} No parts have been allocated to this build. {% endif %} <hr> The following items will be created: <ul> <li>{{ build.quantity }} x {{ build.part.name }}</li> </ul> {% endblock %} ## Instruction: Improve rendering of 'Complete Build' form ## Code After: {% extends "modal_form.html" %} {% block pre_form_content %} <b>Build: {{ build.title }}</b> - {{ build.quantity }} x {{ build.part.name }} <br> Are you sure you want to mark this build as complete? <hr> {% if taking %} The following items will be removed from stock: <table class='table table-striped table-condensed'> <tr> <th></th> <th>Part</th> <th>Quantity</th> <th>Location</th> </tr> {% for item in taking %} <tr> <td> <a class='hover-icon'> <img class='hover-img-thumb' src='{{ item.stock_item.part.image.url }}'> <img class='hover-img-large' src='{{ item.stock_item.part.image.url }}'> </a> </td> <td> {{ item.stock_item.part.name }}<br> <i>{{ item.stock_item.part.description }}</i> </td> <td>{{ item.quantity }}</td> <td>{{ item.stock_item.location }}</td> </tr> {% endfor %} </table> {% else %} No parts have been allocated to this build. {% endif %} <hr> The following items will be created: <div class='panel panel-default'> <a class='hover-icon'> <img class='hover-img-thumb' src='{{ build.part.image.url }}'> <img class='hover-img-large' src='{{ build.part.image.url }}'> </a> {{ build.quantity }} x {{ build.part.name }} </div> {% endblock %}
{% extends "modal_form.html" %} {% block pre_form_content %} <b>Build: {{ build.title }}</b> - {{ build.quantity }} x {{ build.part.name }} <br> Are you sure you want to mark this build as complete? <hr> {% if taking %} The following items will be removed from stock: - <ul class='list-group'> + + <table class='table table-striped table-condensed'> + <tr> + <th></th> + <th>Part</th> + <th>Quantity</th> + <th>Location</th> + </tr> {% for item in taking %} - <li>{{ item.quantity }} x {{ item.stock_item.part.name }} from {{ item.stock_item.location }}</li> + <tr> + <td> + <a class='hover-icon'> + <img class='hover-img-thumb' src='{{ item.stock_item.part.image.url }}'> + <img class='hover-img-large' src='{{ item.stock_item.part.image.url }}'> + </a> + </td> + <td> + {{ item.stock_item.part.name }}<br> + <i>{{ item.stock_item.part.description }}</i> + </td> + <td>{{ item.quantity }}</td> + <td>{{ item.stock_item.location }}</td> + </tr> {% endfor %} - </ul> + </table> {% else %} No parts have been allocated to this build. {% endif %} <hr> The following items will be created: - <ul> + <div class='panel panel-default'> + <a class='hover-icon'> + <img class='hover-img-thumb' src='{{ build.part.image.url }}'> + <img class='hover-img-large' src='{{ build.part.image.url }}'> + </a> - <li>{{ build.quantity }} x {{ build.part.name }}</li> ? ---- ----- + {{ build.quantity }} x {{ build.part.name }} - </ul> + </div> {% endblock %}
36
1.5
30
6
8aa4aa6561f837e0d2949e2926c39079642f31fd
package.json
package.json
{ "name": "popit-api", "version": "0.0.14", "description": "API part of PopIt which lets you store details of people, organisations and positions", "main": "index.js", "scripts": { "test": "mocha" }, "repository": { "type": "git", "url": "https://github.com/mysociety/popit-api.git" }, "keywords": [ "API" ], "author": "", "license": "AGPL", "readmeFilename": "README.md", "dependencies": { "JSV": "~4.0.2", "async": "~0.2.6", "doublemetaphone": "~0.1.2", "elasticsearch": "~1.5.1", "express": "~3.17.5", "glob": "~3.1.21", "http-accept": "~0.1.6", "language-tags": "~1.0.2", "mongoose": "~3.8.5", "underscore": "~1.4.4", "underscore.string": "~2.3.1", "unorm": "~1.3.1" }, "devDependencies": { "jshint": "~2.5.6", "mocha": "~1.21.4", "pow-mongodb-fixtures": "~0.10.0", "supertest": "~0.14.0" } }
{ "name": "popit-api", "version": "0.0.14", "description": "API part of PopIt which lets you store details of people, organisations and positions", "main": "index.js", "scripts": { "test": "mocha" }, "repository": { "type": "git", "url": "https://github.com/mysociety/popit-api.git" }, "keywords": [ "API" ], "author": "", "license": "AGPL", "readmeFilename": "README.md", "dependencies": { "JSV": "~4.0.2", "async": "~0.2.6", "doublemetaphone": "~0.1.2", "elasticsearch": "~1.5.1", "express": "~3.17.5", "http-accept": "~0.1.6", "language-tags": "~1.0.2", "mongoose": "~3.8.5", "underscore": "~1.4.4", "underscore.string": "~2.3.1", "unorm": "~1.3.1" }, "devDependencies": { "glob": "~3.1.21", "jshint": "~2.5.6", "mocha": "~1.21.4", "pow-mongodb-fixtures": "~0.10.0", "supertest": "~0.14.0" } }
Move glob module into devDependencies
Move glob module into devDependencies The glob module is only used within the test suite, so there's no need for it to be in the main dependencies section.
JSON
agpl-3.0
mysociety/popit-api,Sinar/popit-api,mysociety/popit-api,Sinar/popit-api
json
## Code Before: { "name": "popit-api", "version": "0.0.14", "description": "API part of PopIt which lets you store details of people, organisations and positions", "main": "index.js", "scripts": { "test": "mocha" }, "repository": { "type": "git", "url": "https://github.com/mysociety/popit-api.git" }, "keywords": [ "API" ], "author": "", "license": "AGPL", "readmeFilename": "README.md", "dependencies": { "JSV": "~4.0.2", "async": "~0.2.6", "doublemetaphone": "~0.1.2", "elasticsearch": "~1.5.1", "express": "~3.17.5", "glob": "~3.1.21", "http-accept": "~0.1.6", "language-tags": "~1.0.2", "mongoose": "~3.8.5", "underscore": "~1.4.4", "underscore.string": "~2.3.1", "unorm": "~1.3.1" }, "devDependencies": { "jshint": "~2.5.6", "mocha": "~1.21.4", "pow-mongodb-fixtures": "~0.10.0", "supertest": "~0.14.0" } } ## Instruction: Move glob module into devDependencies The glob module is only used within the test suite, so there's no need for it to be in the main dependencies section. ## Code After: { "name": "popit-api", "version": "0.0.14", "description": "API part of PopIt which lets you store details of people, organisations and positions", "main": "index.js", "scripts": { "test": "mocha" }, "repository": { "type": "git", "url": "https://github.com/mysociety/popit-api.git" }, "keywords": [ "API" ], "author": "", "license": "AGPL", "readmeFilename": "README.md", "dependencies": { "JSV": "~4.0.2", "async": "~0.2.6", "doublemetaphone": "~0.1.2", "elasticsearch": "~1.5.1", "express": "~3.17.5", "http-accept": "~0.1.6", "language-tags": "~1.0.2", "mongoose": "~3.8.5", "underscore": "~1.4.4", "underscore.string": "~2.3.1", "unorm": "~1.3.1" }, "devDependencies": { "glob": "~3.1.21", "jshint": "~2.5.6", "mocha": "~1.21.4", "pow-mongodb-fixtures": "~0.10.0", "supertest": "~0.14.0" } }
{ "name": "popit-api", "version": "0.0.14", "description": "API part of PopIt which lets you store details of people, organisations and positions", "main": "index.js", "scripts": { "test": "mocha" }, "repository": { "type": "git", "url": "https://github.com/mysociety/popit-api.git" }, "keywords": [ "API" ], "author": "", "license": "AGPL", "readmeFilename": "README.md", "dependencies": { "JSV": "~4.0.2", "async": "~0.2.6", "doublemetaphone": "~0.1.2", "elasticsearch": "~1.5.1", "express": "~3.17.5", - "glob": "~3.1.21", "http-accept": "~0.1.6", "language-tags": "~1.0.2", "mongoose": "~3.8.5", "underscore": "~1.4.4", "underscore.string": "~2.3.1", "unorm": "~1.3.1" }, "devDependencies": { + "glob": "~3.1.21", "jshint": "~2.5.6", "mocha": "~1.21.4", "pow-mongodb-fixtures": "~0.10.0", "supertest": "~0.14.0" } }
2
0.051282
1
1
703bd84bad8b1f94c6afd308b0a1f3f115ec056e
apps/atom/atom.symlink/init.coffee
apps/atom/atom.symlink/init.coffee
atom.workspaceView.eachEditorView (editorView) -> editor = editorView.getEditor() if path.extname(editor.getPath()) is '.md' editor.setSoftWrap(true)
path = require 'path' atom.workspaceView.eachEditorView (editorView) -> editor = editorView.getEditor() if path.extname(editor.getPath()) is '.md' editor.setSoftWrap(true)
Fix autosoft wrap for md files in Atom
Fix autosoft wrap for md files in Atom
CoffeeScript
mit
iDams/setup,MoOx/setup,MoOx/setup,iDams/setup,Macxim/dotfiles,MoOx/setup
coffeescript
## Code Before: atom.workspaceView.eachEditorView (editorView) -> editor = editorView.getEditor() if path.extname(editor.getPath()) is '.md' editor.setSoftWrap(true) ## Instruction: Fix autosoft wrap for md files in Atom ## Code After: path = require 'path' atom.workspaceView.eachEditorView (editorView) -> editor = editorView.getEditor() if path.extname(editor.getPath()) is '.md' editor.setSoftWrap(true)
+ path = require 'path' + atom.workspaceView.eachEditorView (editorView) -> editor = editorView.getEditor() if path.extname(editor.getPath()) is '.md' editor.setSoftWrap(true)
2
0.5
2
0
19dd85a13ef0108bd2860a658881a255f6e31613
debsources/app/patches/views.py
debsources/app/patches/views.py
from __future__ import absolute_import from ..views import GeneralView class SummaryView(GeneralView): def get_objects(self, path_to): path_dict = path_to.split('/') package = path_dict[0] version = path_dict[1] return dict(package=package, version=version)
from __future__ import absolute_import from flask import request from ..views import GeneralView class SummaryView(GeneralView): def get_objects(self, path_to): path_dict = path_to.split('/') package = path_dict[0] version = path_dict[1] path = '/'.join(path_dict[2:]) if version == "latest": # we search the latest available version return self._handle_latest_version(request.endpoint, package, path) versions = self.handle_versions(version, package, path) if versions: redirect_url_parts = [package, versions[-1]] if path: redirect_url_parts.append(path) redirect_url = '/'.join(redirect_url_parts) return self._redirect_to_url(request.endpoint, redirect_url, redirect_code=302) return dict(package=package, version=version)
Add version handling in SummaryView for the patches BP
Add version handling in SummaryView for the patches BP
Python
agpl-3.0
devoxel/debsources,vivekanand1101/debsources,vivekanand1101/debsources,zacchiro/debsources,Debian/debsources,devoxel/debsources,zacchiro/debsources,matthieucan/debsources,Debian/debsources,oorestisime/debsources,vivekanand1101/debsources,devoxel/debsources,matthieucan/debsources,devoxel/debsources,matthieucan/debsources,oorestisime/debsources,zacchiro/debsources,matthieucan/debsources,devoxel/debsources,zacchiro/debsources,Debian/debsources,matthieucan/debsources,vivekanand1101/debsources,Debian/debsources,oorestisime/debsources,oorestisime/debsources,oorestisime/debsources,Debian/debsources,vivekanand1101/debsources,zacchiro/debsources
python
## Code Before: from __future__ import absolute_import from ..views import GeneralView class SummaryView(GeneralView): def get_objects(self, path_to): path_dict = path_to.split('/') package = path_dict[0] version = path_dict[1] return dict(package=package, version=version) ## Instruction: Add version handling in SummaryView for the patches BP ## Code After: from __future__ import absolute_import from flask import request from ..views import GeneralView class SummaryView(GeneralView): def get_objects(self, path_to): path_dict = path_to.split('/') package = path_dict[0] version = path_dict[1] path = '/'.join(path_dict[2:]) if version == "latest": # we search the latest available version return self._handle_latest_version(request.endpoint, package, path) versions = self.handle_versions(version, package, path) if versions: redirect_url_parts = [package, versions[-1]] if path: redirect_url_parts.append(path) redirect_url = '/'.join(redirect_url_parts) return self._redirect_to_url(request.endpoint, redirect_url, redirect_code=302) return dict(package=package, version=version)
from __future__ import absolute_import + + from flask import request from ..views import GeneralView class SummaryView(GeneralView): def get_objects(self, path_to): path_dict = path_to.split('/') package = path_dict[0] version = path_dict[1] + path = '/'.join(path_dict[2:]) + + if version == "latest": # we search the latest available version + return self._handle_latest_version(request.endpoint, + package, path) + + versions = self.handle_versions(version, package, path) + if versions: + redirect_url_parts = [package, versions[-1]] + if path: + redirect_url_parts.append(path) + redirect_url = '/'.join(redirect_url_parts) + return self._redirect_to_url(request.endpoint, + redirect_url, redirect_code=302) + return dict(package=package, version=version)
17
1.133333
17
0
d4139340d5cc1fc754a037317e5d7a4cd9f11b5e
UnityProject/Assets/StreamingAssets/maps.json
UnityProject/Assets/StreamingAssets/maps.json
{"lowPopMaps":["Assets/scenes/OutpostStation.unity","Assets/scenes/PogStation.unity"],"highPopMaps":[],"highPopMinLimit":40}
{"lowPopMaps":["Assets/scenes/OutpostStation.unity"],"highPopMaps":[],"highPopMinLimit":40}
Remove pog until it can be fixed
Remove pog until it can be fixed
JSON
agpl-3.0
fomalsd/unitystation,krille90/unitystation,krille90/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,krille90/unitystation,fomalsd/unitystation,fomalsd/unitystation
json
## Code Before: {"lowPopMaps":["Assets/scenes/OutpostStation.unity","Assets/scenes/PogStation.unity"],"highPopMaps":[],"highPopMinLimit":40} ## Instruction: Remove pog until it can be fixed ## Code After: {"lowPopMaps":["Assets/scenes/OutpostStation.unity"],"highPopMaps":[],"highPopMinLimit":40}
- {"lowPopMaps":["Assets/scenes/OutpostStation.unity","Assets/scenes/PogStation.unity"],"highPopMaps":[],"highPopMinLimit":40} ? --------------------------------- + {"lowPopMaps":["Assets/scenes/OutpostStation.unity"],"highPopMaps":[],"highPopMinLimit":40}
2
2
1
1
5b3cec7e88637e8b580d48763dac79e16160c896
.travis.yml
.travis.yml
language: c, python #sudo: required python: - "2.7" - "3.5" env: global: - FOSS_DIR=~/foss matrix: - Platform=Posix addons: apt: packages: - re2c - python3 #- python3-venv #- virtualenv #- qemu #- qemu-system-arm #- dtc before_install: #- sudo pip install virtualenv - virtualenv --version - python --version - python2 --version #- python3 --version install: - DIR="${FOSS_DIR}/ninja" - tools/install-ninja ${DIR} - export PATH=${DIR}:$PATH #- DIR="${FOSS_DIR}/qemu" #- tools/install-qemu ${DIR} #- export PATH=${DIR}/build/arm-softmmu:$PATH cache: directories: - ${FOSS_DIR} script: - ninja --version #- qemu-system-arm --version - make ${Platform} - make run-${Platform}
language: c, python #sudo: required python: - "2.7" - "3.5" env: global: - FOSS_DIR=~/foss matrix: - Platform=Posix addons: apt: packages: - re2c - python3 - virtualenv #- python3-venv #- qemu #- qemu-system-arm #- dtc before_install: #- sudo pip install virtualenv - python --version - python2 --version - python3 --version - virtualenv --version install: - DIR="${FOSS_DIR}/ninja" - tools/install-ninja ${DIR} - export PATH=${DIR}:$PATH #- DIR="${FOSS_DIR}/qemu" #- tools/install-qemu ${DIR} #- export PATH=${DIR}/build/arm-softmmu:$PATH cache: directories: - ${FOSS_DIR} script: - ninja --version #- qemu-system-arm --version - make ${Platform} - make run-${Platform}
Install virtualenv and test that python3 runs.
Install virtualenv and test that python3 runs.
YAML
bsd-2-clause
winksaville/baremetal-hi,winksaville/baremetal-hi
yaml
## Code Before: language: c, python #sudo: required python: - "2.7" - "3.5" env: global: - FOSS_DIR=~/foss matrix: - Platform=Posix addons: apt: packages: - re2c - python3 #- python3-venv #- virtualenv #- qemu #- qemu-system-arm #- dtc before_install: #- sudo pip install virtualenv - virtualenv --version - python --version - python2 --version #- python3 --version install: - DIR="${FOSS_DIR}/ninja" - tools/install-ninja ${DIR} - export PATH=${DIR}:$PATH #- DIR="${FOSS_DIR}/qemu" #- tools/install-qemu ${DIR} #- export PATH=${DIR}/build/arm-softmmu:$PATH cache: directories: - ${FOSS_DIR} script: - ninja --version #- qemu-system-arm --version - make ${Platform} - make run-${Platform} ## Instruction: Install virtualenv and test that python3 runs. ## Code After: language: c, python #sudo: required python: - "2.7" - "3.5" env: global: - FOSS_DIR=~/foss matrix: - Platform=Posix addons: apt: packages: - re2c - python3 - virtualenv #- python3-venv #- qemu #- qemu-system-arm #- dtc before_install: #- sudo pip install virtualenv - python --version - python2 --version - python3 --version - virtualenv --version install: - DIR="${FOSS_DIR}/ninja" - tools/install-ninja ${DIR} - export PATH=${DIR}:$PATH #- DIR="${FOSS_DIR}/qemu" #- tools/install-qemu ${DIR} #- export PATH=${DIR}/build/arm-softmmu:$PATH cache: directories: - ${FOSS_DIR} script: - ninja --version #- qemu-system-arm --version - make ${Platform} - make run-${Platform}
language: c, python #sudo: required python: - "2.7" - "3.5" env: global: - FOSS_DIR=~/foss matrix: - Platform=Posix addons: apt: packages: - re2c - python3 + - virtualenv #- python3-venv - #- virtualenv #- qemu #- qemu-system-arm #- dtc before_install: #- sudo pip install virtualenv - - virtualenv --version - python --version - python2 --version - #- python3 --version ? - + - python3 --version + - virtualenv --version install: - DIR="${FOSS_DIR}/ninja" - tools/install-ninja ${DIR} - export PATH=${DIR}:$PATH #- DIR="${FOSS_DIR}/qemu" #- tools/install-qemu ${DIR} #- export PATH=${DIR}/build/arm-softmmu:$PATH cache: directories: - ${FOSS_DIR} script: - ninja --version #- qemu-system-arm --version - make ${Platform} - make run-${Platform}
6
0.125
3
3
69c9ed3febb9a090954aa31ea3f8cefcab5da551
src/stdlib/task-shell.coffee
src/stdlib/task-shell.coffee
eval("window = {};") eval("attachEvent = function(){};") eval("console = {};") console.warn = -> self.postMessage type: 'warn' details: arguments console.log = -> self.postMessage type: 'log' details: arguments self.addEventListener 'message', (event) -> switch event.data.type when 'start' window.resourcePath = event.data.resourcePath importScripts(event.data.requirePath) self.task = require(event.data.taskPath) self.postMessage(type:'started') else self.task[event.data.type](event.data)
self.window = {} self.attachEvent = -> self.console = warn: -> self.postMessage type: 'warn' details: arguments log: -> self.postMessage type: 'log' details: arguments self.addEventListener 'message', (event) -> switch event.data.type when 'start' window.resourcePath = event.data.resourcePath importScripts(event.data.requirePath) self.task = require(event.data.taskPath) self.postMessage(type:'started') else self.task[event.data.type](event.data)
Use self instead of hacky eval
Use self instead of hacky eval
CoffeeScript
mit
crazyquark/atom,johnrizzo1/atom,matthewclendening/atom,dannyflax/atom,wiggzz/atom,erikhakansson/atom,liuderchi/atom,charleswhchan/atom,dkfiresky/atom,matthewclendening/atom,targeter21/atom,Mokolea/atom,FIT-CSE2410-A-Bombs/atom,jlord/atom,AlbertoBarrago/atom,bolinfest/atom,nvoron23/atom,stuartquin/atom,ReddTea/atom,jtrose2/atom,ilovezy/atom,batjko/atom,florianb/atom,devoncarew/atom,Rodjana/atom,avdg/atom,phord/atom,qiujuer/atom,yangchenghu/atom,ReddTea/atom,abcP9110/atom,AlexxNica/atom,kdheepak89/atom,helber/atom,bolinfest/atom,splodingsocks/atom,me6iaton/atom,hpham04/atom,codex8/atom,FIT-CSE2410-A-Bombs/atom,dannyflax/atom,paulcbetts/atom,yalexx/atom,johnhaley81/atom,tjkr/atom,abcP9110/atom,pengshp/atom,efatsi/atom,woss/atom,DiogoXRP/atom,oggy/atom,gontadu/atom,sotayamashita/atom,alexandergmann/atom,originye/atom,amine7536/atom,bsmr-x-script/atom,Andrey-Pavlov/atom,tjkr/atom,splodingsocks/atom,SlimeQ/atom,jjz/atom,sekcheong/atom,devoncarew/atom,tony612/atom,hakatashi/atom,sotayamashita/atom,einarmagnus/atom,jjz/atom,medovob/atom,rmartin/atom,harshdattani/atom,bsmr-x-script/atom,bencolon/atom,ppamorim/atom,targeter21/atom,jordanbtucker/atom,NunoEdgarGub1/atom,Ju2ender/atom,andrewleverette/atom,DiogoXRP/atom,toqz/atom,synaptek/atom,t9md/atom,liuxiong332/atom,tony612/atom,AlexxNica/atom,synaptek/atom,dijs/atom,elkingtonmcb/atom,SlimeQ/atom,MjAbuz/atom,hagb4rd/atom,toqz/atom,champagnez/atom,kc8wxm/atom,hagb4rd/atom,brettle/atom,russlescai/atom,alexandergmann/atom,omarhuanca/atom,ali/atom,acontreras89/atom,Jandersolutions/atom,pengshp/atom,batjko/atom,bj7/atom,bcoe/atom,jacekkopecky/atom,rmartin/atom,YunchengLiao/atom,mnquintana/atom,phord/atom,charleswhchan/atom,Jandersoft/atom,decaffeinate-examples/atom,basarat/atom,Ingramz/atom,panuchart/atom,scippio/atom,fedorov/atom,omarhuanca/atom,basarat/atom,targeter21/atom,gisenberg/atom,Klozz/atom,0x73/atom,scv119/atom,toqz/atom,prembasumatary/atom,lovesnow/atom,tanin47/atom,kittens/atom,qiujuer/atom,CraZySacX/atom,MjAbuz/atom,kjav/atom,kjav/atom,bsmr-x-script/atom,FoldingText/atom,liuxiong332/atom,jacekkopecky/atom,FoldingText/atom,toqz/atom,kjav/atom,scv119/atom,medovob/atom,liuxiong332/atom,chfritz/atom,isghe/atom,Abdillah/atom,sekcheong/atom,jacekkopecky/atom,AdrianVovk/substance-ide,n-riesco/atom,liuderchi/atom,dkfiresky/atom,codex8/atom,svanharmelen/atom,yalexx/atom,AlisaKiatkongkumthon/atom,nvoron23/atom,PKRoma/atom,CraZySacX/atom,Neron-X5/atom,nrodriguez13/atom,devmario/atom,me6iaton/atom,medovob/atom,RuiDGoncalves/atom,charleswhchan/atom,RobinTec/atom,pengshp/atom,originye/atom,ashneo76/atom,atom/atom,kittens/atom,hellendag/atom,mertkahyaoglu/atom,targeter21/atom,john-kelly/atom,ilovezy/atom,boomwaiza/atom,ali/atom,rsvip/aTom,g2p/atom,russlescai/atom,NunoEdgarGub1/atom,rlugojr/atom,synaptek/atom,Locke23rus/atom,Hasimir/atom,alexandergmann/atom,ReddTea/atom,jjz/atom,ykeisuke/atom,Jdesk/atom,hharchani/atom,avdg/atom,ralphtheninja/atom,RobinTec/atom,Mokolea/atom,qskycolor/atom,elkingtonmcb/atom,fang-yufeng/atom,ironbox360/atom,helber/atom,nucked/atom,rsvip/aTom,kandros/atom,githubteacher/atom,efatsi/atom,andrewleverette/atom,KENJU/atom,KENJU/atom,fredericksilva/atom,bradgearon/atom,wiggzz/atom,RobinTec/atom,davideg/atom,hharchani/atom,hagb4rd/atom,russlescai/atom,xream/atom,sekcheong/atom,YunchengLiao/atom,RobinTec/atom,Jandersolutions/atom,john-kelly/atom,isghe/atom,yomybaby/atom,fedorov/atom,rxkit/atom,omarhuanca/atom,mrodalgaard/atom,jlord/atom,gisenberg/atom,alfredxing/atom,fang-yufeng/atom,tmunro/atom,matthewclendening/atom,amine7536/atom,devoncarew/atom,GHackAnonymous/atom,pkdevbox/atom,Rodjana/atom,vinodpanicker/atom,bcoe/atom,beni55/atom,qskycolor/atom,nucked/atom,lovesnow/atom,ralphtheninja/atom,erikhakansson/atom,jlord/atom,originye/atom,scv119/atom,githubteacher/atom,GHackAnonymous/atom,phord/atom,stinsonga/atom,ReddTea/atom,fredericksilva/atom,ppamorim/atom,jordanbtucker/atom,G-Baby/atom,lpommers/atom,yamhon/atom,paulcbetts/atom,davideg/atom,stuartquin/atom,kdheepak89/atom,ironbox360/atom,vcarrera/atom,jtrose2/atom,brumm/atom,stuartquin/atom,kevinrenaers/atom,abe33/atom,brettle/atom,russlescai/atom,YunchengLiao/atom,lovesnow/atom,vjeux/atom,sxgao3001/atom,NunoEdgarGub1/atom,beni55/atom,lpommers/atom,omarhuanca/atom,gisenberg/atom,burodepeper/atom,chfritz/atom,scv119/atom,splodingsocks/atom,dsandstrom/atom,gabrielPeart/atom,dsandstrom/atom,vcarrera/atom,MjAbuz/atom,G-Baby/atom,AdrianVovk/substance-ide,MjAbuz/atom,FoldingText/atom,davideg/atom,hpham04/atom,sxgao3001/atom,svanharmelen/atom,KENJU/atom,tjkr/atom,jjz/atom,kc8wxm/atom,jacekkopecky/atom,florianb/atom,GHackAnonymous/atom,woss/atom,kc8wxm/atom,lovesnow/atom,fedorov/atom,atom/atom,ykeisuke/atom,darwin/atom,crazyquark/atom,rsvip/aTom,fang-yufeng/atom,Dennis1978/atom,mostafaeweda/atom,charleswhchan/atom,BogusCurry/atom,dkfiresky/atom,bryonwinger/atom,batjko/atom,ppamorim/atom,Shekharrajak/atom,splodingsocks/atom,ardeshirj/atom,Rychard/atom,anuwat121/atom,rookie125/atom,001szymon/atom,Huaraz2/atom,mnquintana/atom,Neron-X5/atom,oggy/atom,boomwaiza/atom,paulcbetts/atom,devmario/atom,Ingramz/atom,vcarrera/atom,devoncarew/atom,bryonwinger/atom,xream/atom,mostafaeweda/atom,jeremyramin/atom,NunoEdgarGub1/atom,yangchenghu/atom,kaicataldo/atom,rjattrill/atom,chengky/atom,tanin47/atom,SlimeQ/atom,ppamorim/atom,sillvan/atom,Abdillah/atom,harshdattani/atom,john-kelly/atom,001szymon/atom,lisonma/atom,palita01/atom,AlbertoBarrago/atom,folpindo/atom,xream/atom,devmario/atom,bencolon/atom,dsandstrom/atom,Austen-G/BlockBuilder,mertkahyaoglu/atom,sillvan/atom,vjeux/atom,t9md/atom,rookie125/atom,Austen-G/BlockBuilder,dsandstrom/atom,isghe/atom,mertkahyaoglu/atom,amine7536/atom,prembasumatary/atom,Rychard/atom,dkfiresky/atom,Jandersoft/atom,Shekharrajak/atom,Andrey-Pavlov/atom,Ju2ender/atom,gzzhanghao/atom,chengky/atom,bradgearon/atom,lisonma/atom,Locke23rus/atom,RuiDGoncalves/atom,CraZySacX/atom,vjeux/atom,dijs/atom,basarat/atom,GHackAnonymous/atom,niklabh/atom,NunoEdgarGub1/atom,yalexx/atom,fredericksilva/atom,cyzn/atom,h0dgep0dge/atom,kittens/atom,yomybaby/atom,me6iaton/atom,tisu2tisu/atom,tmunro/atom,Galactix/atom,Shekharrajak/atom,kaicataldo/atom,kjav/atom,sebmck/atom,Ju2ender/atom,ykeisuke/atom,hpham04/atom,stinsonga/atom,gabrielPeart/atom,Austen-G/BlockBuilder,mrodalgaard/atom,Neron-X5/atom,johnhaley81/atom,cyzn/atom,sxgao3001/atom,bcoe/atom,qskycolor/atom,lisonma/atom,daxlab/atom,dannyflax/atom,decaffeinate-examples/atom,basarat/atom,hharchani/atom,sillvan/atom,me6iaton/atom,ppamorim/atom,woss/atom,qskycolor/atom,fscherwi/atom,liuxiong332/atom,hellendag/atom,pombredanne/atom,constanzaurzua/atom,mrodalgaard/atom,devmario/atom,abe33/atom,omarhuanca/atom,johnrizzo1/atom,sebmck/atom,ralphtheninja/atom,fang-yufeng/atom,n-riesco/atom,yomybaby/atom,vinodpanicker/atom,chengky/atom,bcoe/atom,abe33/atom,decaffeinate-examples/atom,yangchenghu/atom,ilovezy/atom,me-benni/atom,nrodriguez13/atom,ObviouslyGreen/atom,jacekkopecky/atom,ObviouslyGreen/atom,tony612/atom,fedorov/atom,nvoron23/atom,Jandersoft/atom,burodepeper/atom,Klozz/atom,codex8/atom,jacekkopecky/atom,deoxilix/atom,SlimeQ/atom,hakatashi/atom,mdumrauf/atom,daxlab/atom,h0dgep0dge/atom,liuxiong332/atom,seedtigo/atom,matthewclendening/atom,kandros/atom,abcP9110/atom,githubteacher/atom,jtrose2/atom,russlescai/atom,rxkit/atom,brumm/atom,kaicataldo/atom,Dennis1978/atom,hharchani/atom,Arcanemagus/atom,wiggzz/atom,johnhaley81/atom,gontadu/atom,deepfox/atom,hpham04/atom,deepfox/atom,AdrianVovk/substance-ide,boomwaiza/atom,Jdesk/atom,yamhon/atom,dsandstrom/atom,Jonekee/atom,Huaraz2/atom,Locke23rus/atom,RobinTec/atom,YunchengLiao/atom,ReddTea/atom,PKRoma/atom,gisenberg/atom,ezeoleaf/atom,vinodpanicker/atom,deepfox/atom,g2p/atom,vhutheesing/atom,Shekharrajak/atom,john-kelly/atom,paulcbetts/atom,jordanbtucker/atom,dkfiresky/atom,mnquintana/atom,gzzhanghao/atom,folpindo/atom,targeter21/atom,Andrey-Pavlov/atom,mdumrauf/atom,elkingtonmcb/atom,fang-yufeng/atom,vhutheesing/atom,FoldingText/atom,Rychard/atom,kevinrenaers/atom,KENJU/atom,kevinrenaers/atom,liuderchi/atom,palita01/atom,ali/atom,Abdillah/atom,transcranial/atom,crazyquark/atom,sxgao3001/atom,oggy/atom,Ju2ender/atom,matthewclendening/atom,ivoadf/atom,hakatashi/atom,Jdesk/atom,me-benni/atom,FoldingText/atom,deepfox/atom,yomybaby/atom,woss/atom,jlord/atom,Jdesk/atom,Sangaroonaom/atom,sillvan/atom,rjattrill/atom,liuderchi/atom,jtrose2/atom,ivoadf/atom,Rodjana/atom,daxlab/atom,AlbertoBarrago/atom,jeremyramin/atom,crazyquark/atom,scippio/atom,rmartin/atom,prembasumatary/atom,jeremyramin/atom,mnquintana/atom,Klozz/atom,qiujuer/atom,Abdillah/atom,hakatashi/atom,batjko/atom,harshdattani/atom,t9md/atom,MjAbuz/atom,kc8wxm/atom,0x73/atom,tanin47/atom,scippio/atom,kandros/atom,codex8/atom,constanzaurzua/atom,tony612/atom,Jonekee/atom,bcoe/atom,bj7/atom,darwin/atom,deoxilix/atom,transcranial/atom,Ju2ender/atom,me6iaton/atom,Galactix/atom,Dennis1978/atom,n-riesco/atom,hharchani/atom,Hasimir/atom,Austen-G/BlockBuilder,ashneo76/atom,constanzaurzua/atom,niklabh/atom,KENJU/atom,tmunro/atom,constanzaurzua/atom,gisenberg/atom,rjattrill/atom,prembasumatary/atom,Galactix/atom,rjattrill/atom,0x73/atom,fscherwi/atom,vhutheesing/atom,Jdesk/atom,pkdevbox/atom,batjko/atom,crazyquark/atom,alfredxing/atom,Jandersoft/atom,devoncarew/atom,hagb4rd/atom,rlugojr/atom,Neron-X5/atom,sxgao3001/atom,tisu2tisu/atom,isghe/atom,fedorov/atom,qiujuer/atom,Jonekee/atom,pombredanne/atom,acontreras89/atom,pombredanne/atom,kdheepak89/atom,Ingramz/atom,anuwat121/atom,burodepeper/atom,hpham04/atom,helber/atom,jjz/atom,hagb4rd/atom,Abdillah/atom,vinodpanicker/atom,abcP9110/atom,bradgearon/atom,sebmck/atom,svanharmelen/atom,Galactix/atom,davideg/atom,dannyflax/atom,panuchart/atom,Arcanemagus/atom,rxkit/atom,rookie125/atom,ezeoleaf/atom,0x73/atom,brettle/atom,execjosh/atom,nrodriguez13/atom,transcranial/atom,FoldingText/atom,basarat/atom,BogusCurry/atom,yomybaby/atom,fredericksilva/atom,bj7/atom,jtrose2/atom,nvoron23/atom,chengky/atom,devmario/atom,Jandersolutions/atom,isghe/atom,gzzhanghao/atom,stinsonga/atom,AlexxNica/atom,john-kelly/atom,bencolon/atom,Jandersolutions/atom,jlord/atom,tisu2tisu/atom,kittens/atom,sebmck/atom,charleswhchan/atom,ardeshirj/atom,panuchart/atom,fredericksilva/atom,h0dgep0dge/atom,lpommers/atom,ivoadf/atom,acontreras89/atom,seedtigo/atom,Shekharrajak/atom,synaptek/atom,h0dgep0dge/atom,tony612/atom,lovesnow/atom,nucked/atom,amine7536/atom,bryonwinger/atom,bolinfest/atom,oggy/atom,yalexx/atom,florianb/atom,dannyflax/atom,Galactix/atom,Jandersoft/atom,qiujuer/atom,nvoron23/atom,SlimeQ/atom,vinodpanicker/atom,florianb/atom,amine7536/atom,Huaraz2/atom,RuiDGoncalves/atom,andrewleverette/atom,Mokolea/atom,sekcheong/atom,champagnez/atom,beni55/atom,dannyflax/atom,kjav/atom,vcarrera/atom,deoxilix/atom,execjosh/atom,kdheepak89/atom,Hasimir/atom,erikhakansson/atom,darwin/atom,mnquintana/atom,n-riesco/atom,AlisaKiatkongkumthon/atom,palita01/atom,mertkahyaoglu/atom,einarmagnus/atom,brumm/atom,mostafaeweda/atom,me-benni/atom,Jandersolutions/atom,kdheepak89/atom,GHackAnonymous/atom,lisonma/atom,einarmagnus/atom,rmartin/atom,vjeux/atom,g2p/atom,YunchengLiao/atom,FIT-CSE2410-A-Bombs/atom,Austen-G/BlockBuilder,PKRoma/atom,ali/atom,kc8wxm/atom,vjeux/atom,BogusCurry/atom,sotayamashita/atom,sebmck/atom,ezeoleaf/atom,mostafaeweda/atom,yalexx/atom,seedtigo/atom,niklabh/atom,efatsi/atom,mdumrauf/atom,pombredanne/atom,acontreras89/atom,woss/atom,stinsonga/atom,basarat/atom,Hasimir/atom,ilovezy/atom,rsvip/aTom,synaptek/atom,chengky/atom,gontadu/atom,davideg/atom,bryonwinger/atom,ironbox360/atom,hellendag/atom,chfritz/atom,AlisaKiatkongkumthon/atom,avdg/atom,cyzn/atom,G-Baby/atom,Hasimir/atom,Arcanemagus/atom,sekcheong/atom,vcarrera/atom,ashneo76/atom,n-riesco/atom,fscherwi/atom,rsvip/aTom,alfredxing/atom,folpindo/atom,ali/atom,gabrielPeart/atom,001szymon/atom,Andrey-Pavlov/atom,qskycolor/atom,pkdevbox/atom,prembasumatary/atom,constanzaurzua/atom,ardeshirj/atom,anuwat121/atom,johnrizzo1/atom,kittens/atom,dijs/atom,Sangaroonaom/atom,sillvan/atom,execjosh/atom,abcP9110/atom,rlugojr/atom,atom/atom,toqz/atom,codex8/atom,deepfox/atom,acontreras89/atom,mostafaeweda/atom,Austen-G/BlockBuilder,ezeoleaf/atom,einarmagnus/atom,Sangaroonaom/atom,lisonma/atom,ObviouslyGreen/atom,rmartin/atom,Neron-X5/atom,mertkahyaoglu/atom,pombredanne/atom,einarmagnus/atom,DiogoXRP/atom,decaffeinate-examples/atom,Andrey-Pavlov/atom,ilovezy/atom,champagnez/atom,oggy/atom,yamhon/atom,florianb/atom
coffeescript
## Code Before: eval("window = {};") eval("attachEvent = function(){};") eval("console = {};") console.warn = -> self.postMessage type: 'warn' details: arguments console.log = -> self.postMessage type: 'log' details: arguments self.addEventListener 'message', (event) -> switch event.data.type when 'start' window.resourcePath = event.data.resourcePath importScripts(event.data.requirePath) self.task = require(event.data.taskPath) self.postMessage(type:'started') else self.task[event.data.type](event.data) ## Instruction: Use self instead of hacky eval ## Code After: self.window = {} self.attachEvent = -> self.console = warn: -> self.postMessage type: 'warn' details: arguments log: -> self.postMessage type: 'log' details: arguments self.addEventListener 'message', (event) -> switch event.data.type when 'start' window.resourcePath = event.data.resourcePath importScripts(event.data.requirePath) self.task = require(event.data.taskPath) self.postMessage(type:'started') else self.task[event.data.type](event.data)
- eval("window = {};") - eval("attachEvent = function(){};") - eval("console = {};") - console.warn = -> + self.window = {} + self.attachEvent = -> + self.console = + warn: -> - self.postMessage + self.postMessage ? ++ - type: 'warn' + type: 'warn' ? ++ - details: arguments + details: arguments ? ++ - console.log = -> + log: -> - self.postMessage + self.postMessage ? ++ - type: 'log' + type: 'log' ? ++ - details: arguments + details: arguments ? ++ self.addEventListener 'message', (event) -> switch event.data.type when 'start' window.resourcePath = event.data.resourcePath importScripts(event.data.requirePath) self.task = require(event.data.taskPath) self.postMessage(type:'started') else self.task[event.data.type](event.data)
22
1.047619
11
11
9aea4a6e3c4d029b107460a8284775313e899c79
lib/seed_scatter/engine.rb
lib/seed_scatter/engine.rb
module SeedScatter class Engine < ::Rails::Engine paths["db/seeds.rb"] = Dir.glob("db/seeds/*.rb") def load_seed paths["db/seeds.rb"].each do |seed_file| puts seed_file load(seed_file) end end end end
module SeedScatter class Engine < ::Rails::Engine paths["db/seeds.rb"] = Dir.glob("db/seeds/*.rb") def load_seed paths["db/seeds.rb"].each do |seed_file| puts seed_file load(seed_file) if ActiveRecord::Base.connection.adapter_nameeql?('PostgreSQL') table_name = seed_file.gsub(/\.rb$/,'') ActiveRecord::Base.connection.reset_pk_sequence!(table_name) end end end end end
Reset sequences after running creates for Postgres.
Reset sequences after running creates for Postgres.
Ruby
mit
apcomplete/seed_scatter
ruby
## Code Before: module SeedScatter class Engine < ::Rails::Engine paths["db/seeds.rb"] = Dir.glob("db/seeds/*.rb") def load_seed paths["db/seeds.rb"].each do |seed_file| puts seed_file load(seed_file) end end end end ## Instruction: Reset sequences after running creates for Postgres. ## Code After: module SeedScatter class Engine < ::Rails::Engine paths["db/seeds.rb"] = Dir.glob("db/seeds/*.rb") def load_seed paths["db/seeds.rb"].each do |seed_file| puts seed_file load(seed_file) if ActiveRecord::Base.connection.adapter_nameeql?('PostgreSQL') table_name = seed_file.gsub(/\.rb$/,'') ActiveRecord::Base.connection.reset_pk_sequence!(table_name) end end end end end
module SeedScatter class Engine < ::Rails::Engine paths["db/seeds.rb"] = Dir.glob("db/seeds/*.rb") def load_seed paths["db/seeds.rb"].each do |seed_file| puts seed_file load(seed_file) + if ActiveRecord::Base.connection.adapter_nameeql?('PostgreSQL') + table_name = seed_file.gsub(/\.rb$/,'') + ActiveRecord::Base.connection.reset_pk_sequence!(table_name) + end end + end end end
5
0.454545
5
0
934fa05be816a0ac7fb08f7f5b9eaf9f6d1b84f2
layout/default/FormField/Date/default.tpl
layout/default/FormField/Date/default.tpl
{select name="{$name}[year]" optionList=$years placeholder={translate 'Year'} selectedValue=$yy} {select name="{$name}[month]" optionList=$months placeholder={translate 'Month'} selectedValue=$mm translate=true translatePrefix='.date.month.'} {select name="{$name}[day]" optionList=$days placeholder={translate 'Day'} selectedValue=$dd} <input name="{$name}[date]" type="date" value="{$date}"/>
{select name="{$name}[year]" optionList=$years placeholder={translate 'Year'} selectedValue=$yy} {select name="{$name}[month]" optionList=$months placeholder={translate 'Month'} selectedValue=$mm translate=true translatePrefix='.date.month.'} {select name="{$name}[day]" optionList=$days placeholder={translate 'Day'} selectedValue=$dd} {tag el="input" name="{$name}[date]" type="date" value=$date class="textinput {$class}"}
Change output of HTML5 date in FormField_Date.
Change output of HTML5 date in FormField_Date.
Smarty
mit
fauvel/CM,njam/CM,njam/CM,fvovan/CM,zazabe/cm,cargomedia/CM,tomaszdurka/CM,fauvel/CM,vogdb/cm,mariansollmann/CM,njam/CM,alexispeter/CM,mariansollmann/CM,fvovan/CM,njam/CM,tomaszdurka/CM,njam/CM,fvovan/CM,cargomedia/CM,vogdb/cm,alexispeter/CM,vogdb/cm,zazabe/cm,tomaszdurka/CM,cargomedia/CM,fvovan/CM,vogdb/cm,mariansollmann/CM,cargomedia/CM,zazabe/cm,mariansollmann/CM,zazabe/cm,tomaszdurka/CM,tomaszdurka/CM,fauvel/CM,alexispeter/CM,fauvel/CM,alexispeter/CM,fauvel/CM,vogdb/cm
smarty
## Code Before: {select name="{$name}[year]" optionList=$years placeholder={translate 'Year'} selectedValue=$yy} {select name="{$name}[month]" optionList=$months placeholder={translate 'Month'} selectedValue=$mm translate=true translatePrefix='.date.month.'} {select name="{$name}[day]" optionList=$days placeholder={translate 'Day'} selectedValue=$dd} <input name="{$name}[date]" type="date" value="{$date}"/> ## Instruction: Change output of HTML5 date in FormField_Date. ## Code After: {select name="{$name}[year]" optionList=$years placeholder={translate 'Year'} selectedValue=$yy} {select name="{$name}[month]" optionList=$months placeholder={translate 'Month'} selectedValue=$mm translate=true translatePrefix='.date.month.'} {select name="{$name}[day]" optionList=$days placeholder={translate 'Day'} selectedValue=$dd} {tag el="input" name="{$name}[date]" type="date" value=$date class="textinput {$class}"}
{select name="{$name}[year]" optionList=$years placeholder={translate 'Year'} selectedValue=$yy} {select name="{$name}[month]" optionList=$months placeholder={translate 'Month'} selectedValue=$mm translate=true translatePrefix='.date.month.'} {select name="{$name}[day]" optionList=$days placeholder={translate 'Day'} selectedValue=$dd} - <input name="{$name}[date]" type="date" value="{$date}"/> + {tag el="input" name="{$name}[date]" type="date" value=$date class="textinput {$class}"}
2
0.5
1
1
a5b2dea0bf224c931b71d3df48527562b2430ab4
meta/main.yml
meta/main.yml
galaxy_info: author: bartekrutkowski description: Xen Orchestra Appliance for FreeBSD/Linux company: "PixeWare LTD" license: license (BSD) min_ansible_version: 1.9 platforms: - name: FreeBSD versions: - 10.0 - 10.1 - 10.2 - 9.3 galaxy_tags: - freebsd - xenserver - xen - gui - xoa - web - virtualization dependencies: []
galaxy_info: author: bartekrutkowski description: Xen Orchestra Appliance for FreeBSD/Linux company: "PixeWare LTD" license: license (BSD) min_ansible_version: 1.9 platforms: - name: FreeBSD versions: - 10.0 - 10.1 - 10.2 - 9.3 - name: EL versions: - 7 galaxy_tags: - freebsd - el7 - rhel - centos - xenserver - xen - gui - xoa - web - virtualization dependencies: []
Add RedHat/Centos 7 to supported platforms
Add RedHat/Centos 7 to supported platforms
YAML
bsd-2-clause
bartekrutkowski/ansible-xen-orchestra
yaml
## Code Before: galaxy_info: author: bartekrutkowski description: Xen Orchestra Appliance for FreeBSD/Linux company: "PixeWare LTD" license: license (BSD) min_ansible_version: 1.9 platforms: - name: FreeBSD versions: - 10.0 - 10.1 - 10.2 - 9.3 galaxy_tags: - freebsd - xenserver - xen - gui - xoa - web - virtualization dependencies: [] ## Instruction: Add RedHat/Centos 7 to supported platforms ## Code After: galaxy_info: author: bartekrutkowski description: Xen Orchestra Appliance for FreeBSD/Linux company: "PixeWare LTD" license: license (BSD) min_ansible_version: 1.9 platforms: - name: FreeBSD versions: - 10.0 - 10.1 - 10.2 - 9.3 - name: EL versions: - 7 galaxy_tags: - freebsd - el7 - rhel - centos - xenserver - xen - gui - xoa - web - virtualization dependencies: []
galaxy_info: author: bartekrutkowski description: Xen Orchestra Appliance for FreeBSD/Linux company: "PixeWare LTD" license: license (BSD) min_ansible_version: 1.9 platforms: - name: FreeBSD versions: - 10.0 - 10.1 - 10.2 - 9.3 + - name: EL + versions: + - 7 galaxy_tags: - freebsd + - el7 + - rhel + - centos - xenserver - xen - gui - xoa - web - virtualization dependencies: []
6
0.26087
6
0
38d6ce4f38d4c48ed5d611f92df3a36ffcf297cd
.github/workflows/test.yml
.github/workflows/test.yml
on: push: pull_request: types: [synchronize] schedule: - cron: "0 0 1,11,21 * *" name: "Build and Test" jobs: test: strategy: fail-fast: false matrix: go-version: - 1.13.x - 1.14.x - 1.15.x - 1.16.x os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Install Go uses: actions/setup-go@v2 with: go-version: ${{ matrix.go-version }} - name: Checkout code uses: actions/checkout@v2 - name: Test run: go test ./... - name: Test coverage run: go test -coverprofile="cover.out" ./... # quotes needed for powershell - name: Send coverage uses: shogo82148/actions-goveralls@v1 with: path-to-profile: cover.out flag-name: go${{ matrix.go-version }}-${{ matrix.os }} parallel: true # notifies that all test jobs are finished. finish: needs: test runs-on: ubuntu-latest steps: - uses: shogo82148/actions-goveralls@v1 with: parallel-finished: true
on: push: pull_request: types: [synchronize] schedule: - cron: "0 0 1,11,21 * *" name: "Build and Test" jobs: test: strategy: fail-fast: false matrix: go-version: - 1.13.x - 1.14.x - 1.15.x - 1.16.x - 1.17.x os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Install Go uses: actions/setup-go@v2 with: go-version: ${{ matrix.go-version }} - name: Checkout code uses: actions/checkout@v2 - name: Test run: go test ./... - name: Test coverage run: go test -coverprofile="cover.out" ./... # quotes needed for powershell - name: Send coverage uses: shogo82148/actions-goveralls@v1 with: path-to-profile: cover.out flag-name: go${{ matrix.go-version }}-${{ matrix.os }} parallel: true # notifies that all test jobs are finished. finish: needs: test runs-on: ubuntu-latest steps: - uses: shogo82148/actions-goveralls@v1 with: parallel-finished: true
Add Go 1.17 to build matrix
Add Go 1.17 to build matrix
YAML
mit
go-logfmt/logfmt
yaml
## Code Before: on: push: pull_request: types: [synchronize] schedule: - cron: "0 0 1,11,21 * *" name: "Build and Test" jobs: test: strategy: fail-fast: false matrix: go-version: - 1.13.x - 1.14.x - 1.15.x - 1.16.x os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Install Go uses: actions/setup-go@v2 with: go-version: ${{ matrix.go-version }} - name: Checkout code uses: actions/checkout@v2 - name: Test run: go test ./... - name: Test coverage run: go test -coverprofile="cover.out" ./... # quotes needed for powershell - name: Send coverage uses: shogo82148/actions-goveralls@v1 with: path-to-profile: cover.out flag-name: go${{ matrix.go-version }}-${{ matrix.os }} parallel: true # notifies that all test jobs are finished. finish: needs: test runs-on: ubuntu-latest steps: - uses: shogo82148/actions-goveralls@v1 with: parallel-finished: true ## Instruction: Add Go 1.17 to build matrix ## Code After: on: push: pull_request: types: [synchronize] schedule: - cron: "0 0 1,11,21 * *" name: "Build and Test" jobs: test: strategy: fail-fast: false matrix: go-version: - 1.13.x - 1.14.x - 1.15.x - 1.16.x - 1.17.x os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Install Go uses: actions/setup-go@v2 with: go-version: ${{ matrix.go-version }} - name: Checkout code uses: actions/checkout@v2 - name: Test run: go test ./... - name: Test coverage run: go test -coverprofile="cover.out" ./... # quotes needed for powershell - name: Send coverage uses: shogo82148/actions-goveralls@v1 with: path-to-profile: cover.out flag-name: go${{ matrix.go-version }}-${{ matrix.os }} parallel: true # notifies that all test jobs are finished. finish: needs: test runs-on: ubuntu-latest steps: - uses: shogo82148/actions-goveralls@v1 with: parallel-finished: true
on: push: pull_request: types: [synchronize] schedule: - cron: "0 0 1,11,21 * *" name: "Build and Test" jobs: test: strategy: fail-fast: false matrix: go-version: - 1.13.x - 1.14.x - 1.15.x - 1.16.x + - 1.17.x os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Install Go uses: actions/setup-go@v2 with: go-version: ${{ matrix.go-version }} - name: Checkout code uses: actions/checkout@v2 - name: Test run: go test ./... - name: Test coverage run: go test -coverprofile="cover.out" ./... # quotes needed for powershell - name: Send coverage uses: shogo82148/actions-goveralls@v1 with: path-to-profile: cover.out flag-name: go${{ matrix.go-version }}-${{ matrix.os }} parallel: true # notifies that all test jobs are finished. finish: needs: test runs-on: ubuntu-latest steps: - uses: shogo82148/actions-goveralls@v1 with: parallel-finished: true
1
0.022727
1
0
c67694378f086797a2d0b0d53b9a40659dbdd88f
README.md
README.md
With Httpq, you can buffer HTTP requests and replay them later, and either Redis or BoltDB can be used for persistence. This is useful for buffering HTTP requests that do not have to be processed in realtime, such as webhooks. ## Installation ```shell $ go install github.com/DavidHuie/httpq/cmd/httpq ``` ## Using Redis ```shell $ httpq -redis=true -redis_url=":6379" ``` ## Using BoltDB (disk persistence) ```shell $ httpq -db_path="/tmp/httpq.db" ``` ## Queuing a request ```shell $ curl localhost:3000/push ``` ## Replaying a request ```shell $ curl localhost:3000/pop GET /push HTTP/1.1 Host: localhost:3000 Accept: */* User-Agent: curl/7.37.1 ``` ## Determining size of queue The result is returning as JSON. ```shell $ curl localhost:3000/size {"size":3} ```
With Httpq, you can buffer HTTP requests and replay them later, and persistence can be either to Redis or to disk. This is useful for buffering HTTP requests that do not have to be processed in realtime, such as webhooks. ## Installation ```shell $ go install github.com/DavidHuie/httpq/cmd/httpq ``` ## Using Redis ```shell $ httpq -redis=true -redis_url=":6379" ``` ## Using disk persistence ```shell $ httpq -db_path="/tmp/httpq.db" ``` ## Queuing a request ```shell $ curl localhost:3000/push ``` ## Replaying a request ```shell $ curl localhost:3000/pop GET /push HTTP/1.1 Host: localhost:3000 Accept: */* User-Agent: curl/7.37.1 ``` ## Determining size of queue The result is returning as JSON. ```shell $ curl localhost:3000/size {"size":3} ```
Remove reference to BoltDB in readme
Remove reference to BoltDB in readme If you're not a developer, the fact that Httpq is built with BoltDB is meaningless.
Markdown
mit
DavidHuie/httpq
markdown
## Code Before: With Httpq, you can buffer HTTP requests and replay them later, and either Redis or BoltDB can be used for persistence. This is useful for buffering HTTP requests that do not have to be processed in realtime, such as webhooks. ## Installation ```shell $ go install github.com/DavidHuie/httpq/cmd/httpq ``` ## Using Redis ```shell $ httpq -redis=true -redis_url=":6379" ``` ## Using BoltDB (disk persistence) ```shell $ httpq -db_path="/tmp/httpq.db" ``` ## Queuing a request ```shell $ curl localhost:3000/push ``` ## Replaying a request ```shell $ curl localhost:3000/pop GET /push HTTP/1.1 Host: localhost:3000 Accept: */* User-Agent: curl/7.37.1 ``` ## Determining size of queue The result is returning as JSON. ```shell $ curl localhost:3000/size {"size":3} ``` ## Instruction: Remove reference to BoltDB in readme If you're not a developer, the fact that Httpq is built with BoltDB is meaningless. ## Code After: With Httpq, you can buffer HTTP requests and replay them later, and persistence can be either to Redis or to disk. This is useful for buffering HTTP requests that do not have to be processed in realtime, such as webhooks. ## Installation ```shell $ go install github.com/DavidHuie/httpq/cmd/httpq ``` ## Using Redis ```shell $ httpq -redis=true -redis_url=":6379" ``` ## Using disk persistence ```shell $ httpq -db_path="/tmp/httpq.db" ``` ## Queuing a request ```shell $ curl localhost:3000/push ``` ## Replaying a request ```shell $ curl localhost:3000/pop GET /push HTTP/1.1 Host: localhost:3000 Accept: */* User-Agent: curl/7.37.1 ``` ## Determining size of queue The result is returning as JSON. ```shell $ curl localhost:3000/size {"size":3} ```
- With Httpq, you can buffer HTTP requests and replay them later, and either Redis or BoltDB can be used for persistence. This is useful for buffering HTTP requests that do not have to be processed in realtime, such as webhooks. ? ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + With Httpq, you can buffer HTTP requests and replay them later, and persistence can be either to Redis or to disk. This is useful for buffering HTTP requests that do not have to be processed in realtime, such as webhooks. ? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^ ## Installation ```shell $ go install github.com/DavidHuie/httpq/cmd/httpq ``` ## Using Redis ```shell $ httpq -redis=true -redis_url=":6379" ``` - ## Using BoltDB (disk persistence) ? -------- - + ## Using disk persistence ```shell $ httpq -db_path="/tmp/httpq.db" ``` ## Queuing a request ```shell $ curl localhost:3000/push ``` ## Replaying a request ```shell $ curl localhost:3000/pop GET /push HTTP/1.1 Host: localhost:3000 Accept: */* User-Agent: curl/7.37.1 ``` ## Determining size of queue The result is returning as JSON. ```shell $ curl localhost:3000/size {"size":3} ```
4
0.085106
2
2
20961e8ccd2f62514829b5199a3ea2db2c6b67d2
src/main/webapp/script.js
src/main/webapp/script.js
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. var alertMessage = 'Sorry! We cannot geolocate you. Please enter a zipcode'; function getGeolocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(displayLocation, displayError); } else { console.log('Browser does not support geolocation'); alert(alertMessage); } } function displayLocation(position) { var lat = position.coords.latitude; var lng = position.coords.longitude; var xhttp = new XMLHttpRequest(); xhttp.open('POST', '/data?lat=' + lat + '&lng=' + lng, true); xhttp.send(); } function displayError() { // TODO: Write error to user interface console.log('Geolocation not enabled'); alert(alertMessage); }
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. var alertMessage = 'Sorry! We cannot geolocate you. Please enter a zipcode'; function getGeolocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(displayLocation, displayError); } else { console.log('Browser does not support geolocation'); alert(alertMessage); } } function displayLocation(position) { var lat = position.coords.latitude; var lng = position.coords.longitude; var xhttp = new XMLHttpRequest(); xhttp.open('POST', '/data?lat=' + lat + '&lng=' + lng, true); xhttp.send(); } function displayError() { console.log('Geolocation not enabled'); alert(alertMessage); } function getZip() { var zip = document.getElementById('zipCode').value; var xhttp = new XMLHttpRequest(); xhttp.open('POST', '/data?zipCode=' + zip, true); xhttp.send(); }
Create post request for zipcode
Create post request for zipcode
JavaScript
apache-2.0
googleinterns/SmallCity,googleinterns/SmallCity,googleinterns/SmallCity
javascript
## Code Before: // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. var alertMessage = 'Sorry! We cannot geolocate you. Please enter a zipcode'; function getGeolocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(displayLocation, displayError); } else { console.log('Browser does not support geolocation'); alert(alertMessage); } } function displayLocation(position) { var lat = position.coords.latitude; var lng = position.coords.longitude; var xhttp = new XMLHttpRequest(); xhttp.open('POST', '/data?lat=' + lat + '&lng=' + lng, true); xhttp.send(); } function displayError() { // TODO: Write error to user interface console.log('Geolocation not enabled'); alert(alertMessage); } ## Instruction: Create post request for zipcode ## Code After: // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. var alertMessage = 'Sorry! We cannot geolocate you. Please enter a zipcode'; function getGeolocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(displayLocation, displayError); } else { console.log('Browser does not support geolocation'); alert(alertMessage); } } function displayLocation(position) { var lat = position.coords.latitude; var lng = position.coords.longitude; var xhttp = new XMLHttpRequest(); xhttp.open('POST', '/data?lat=' + lat + '&lng=' + lng, true); xhttp.send(); } function displayError() { console.log('Geolocation not enabled'); alert(alertMessage); } function getZip() { var zip = document.getElementById('zipCode').value; var xhttp = new XMLHttpRequest(); xhttp.open('POST', '/data?zipCode=' + zip, true); xhttp.send(); }
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. var alertMessage = 'Sorry! We cannot geolocate you. Please enter a zipcode'; function getGeolocation() { + if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(displayLocation, displayError); } else { console.log('Browser does not support geolocation'); alert(alertMessage); } } function displayLocation(position) { var lat = position.coords.latitude; var lng = position.coords.longitude; var xhttp = new XMLHttpRequest(); xhttp.open('POST', '/data?lat=' + lat + '&lng=' + lng, true); xhttp.send(); } function displayError() { - // TODO: Write error to user interface console.log('Geolocation not enabled'); alert(alertMessage); } + + function getZip() { + var zip = document.getElementById('zipCode').value; + var xhttp = new XMLHttpRequest(); + xhttp.open('POST', '/data?zipCode=' + zip, true); + xhttp.send(); + }
9
0.230769
8
1
0782c61d0c505d88117084e7b96f69c0992ce7a6
templates/scholar/paper.html
templates/scholar/paper.html
<!-- Google Scholar Meta Data --> <meta name="citation_title" content="$rawtitle$"> $for(authors)$ <meta name="citation_author" content="$surname$, $firstnames$"> $endfor$ <meta name="citation_publication_date" content="$year$"> <meta name="citation_conference_title" content="$booktitle$"> <meta name="citation_firstpage" content="$firstpage$"> <meta name="citation_lastpage" content="$lastpage$"> <meta name="citation_pdf_url" content="$pdf$">
<!-- Google Scholar Meta Data --> <meta name="citation_title" content="$rawtitle$"> $for(authors)$ <meta name="citation_author" content="$surname$, $firstnames$"> $endfor$ <meta name="citation_publication_date" content="$year$"> <meta name="citation_conference_title" content="$booktitle$"> <meta name="citation_firstpage" content="$firstpage$"> <meta name="citation_lastpage" content="$lastpage$"> <meta name="citation_pdf_url" content="$baseURI$v$volume$/$pdf$">
Change relative links to absolute
Change relative links to absolute
HTML
mit
mreid/papersite,mreid/papersite,mreid/papersite
html
## Code Before: <!-- Google Scholar Meta Data --> <meta name="citation_title" content="$rawtitle$"> $for(authors)$ <meta name="citation_author" content="$surname$, $firstnames$"> $endfor$ <meta name="citation_publication_date" content="$year$"> <meta name="citation_conference_title" content="$booktitle$"> <meta name="citation_firstpage" content="$firstpage$"> <meta name="citation_lastpage" content="$lastpage$"> <meta name="citation_pdf_url" content="$pdf$"> ## Instruction: Change relative links to absolute ## Code After: <!-- Google Scholar Meta Data --> <meta name="citation_title" content="$rawtitle$"> $for(authors)$ <meta name="citation_author" content="$surname$, $firstnames$"> $endfor$ <meta name="citation_publication_date" content="$year$"> <meta name="citation_conference_title" content="$booktitle$"> <meta name="citation_firstpage" content="$firstpage$"> <meta name="citation_lastpage" content="$lastpage$"> <meta name="citation_pdf_url" content="$baseURI$v$volume$/$pdf$">
<!-- Google Scholar Meta Data --> <meta name="citation_title" content="$rawtitle$"> $for(authors)$ <meta name="citation_author" content="$surname$, $firstnames$"> $endfor$ <meta name="citation_publication_date" content="$year$"> <meta name="citation_conference_title" content="$booktitle$"> <meta name="citation_firstpage" content="$firstpage$"> <meta name="citation_lastpage" content="$lastpage$"> - <meta name="citation_pdf_url" content="$pdf$"> + <meta name="citation_pdf_url" content="$baseURI$v$volume$/$pdf$"> ? +++++++++++++++++++
2
0.181818
1
1
163d7bc55eb03b472d8eb221fde2ac7b9d0c57db
package.json
package.json
{ "name": "battleship-cs360", "version": "0.0.1", "description": "Recreation of the Battleship game for BYU CS 360", "author": "", "website": { "url": "https://github.com/chocklymon/Battleship" }, "repository": { "type": "git", "url": "git@github.com:chocklymon/Battleship.git" }, "dependencies": { "body-parser": "1.14.1", "connect-mongo": "0.8.2", "cookie-parser": "1.4.0", "emailjs": "^1.0.4", "errorhandler": "1.4.2", "express": "4.13.3", "express-session": "1.11.3", "jade": "1.11.0", "moment": "2.10.3", "mongodb": "2.0.45", "stylus": "0.52.4", "socket.io": "~1.4.5" }, "engines": { "node": "4.2.1" } }
{ "name": "battleship-cs360", "version": "0.0.1", "description": "Recreation of the Battleship game for BYU CS 360", "author": "", "private": true, "scripts": { "start": "node app" }, "website": { "url": "https://github.com/chocklymon/Battleship" }, "repository": { "type": "git", "url": "git@github.com:chocklymon/Battleship.git" }, "dependencies": { "body-parser": "1.14.1", "connect-mongo": "0.8.2", "cookie-parser": "1.4.0", "emailjs": "^1.0.4", "errorhandler": "1.4.2", "express": "4.13.3", "express-session": "1.11.3", "jade": "1.11.0", "moment": "2.10.3", "mongodb": "2.0.45", "stylus": "0.52.4", "socket.io": "~1.4.5" }, "engines": { "node": "4.2.1" } }
Make it so npm start works.
Make it so npm start works.
JSON
mit
chocklymon/Battleship,chocklymon/Battleship
json
## Code Before: { "name": "battleship-cs360", "version": "0.0.1", "description": "Recreation of the Battleship game for BYU CS 360", "author": "", "website": { "url": "https://github.com/chocklymon/Battleship" }, "repository": { "type": "git", "url": "git@github.com:chocklymon/Battleship.git" }, "dependencies": { "body-parser": "1.14.1", "connect-mongo": "0.8.2", "cookie-parser": "1.4.0", "emailjs": "^1.0.4", "errorhandler": "1.4.2", "express": "4.13.3", "express-session": "1.11.3", "jade": "1.11.0", "moment": "2.10.3", "mongodb": "2.0.45", "stylus": "0.52.4", "socket.io": "~1.4.5" }, "engines": { "node": "4.2.1" } } ## Instruction: Make it so npm start works. ## Code After: { "name": "battleship-cs360", "version": "0.0.1", "description": "Recreation of the Battleship game for BYU CS 360", "author": "", "private": true, "scripts": { "start": "node app" }, "website": { "url": "https://github.com/chocklymon/Battleship" }, "repository": { "type": "git", "url": "git@github.com:chocklymon/Battleship.git" }, "dependencies": { "body-parser": "1.14.1", "connect-mongo": "0.8.2", "cookie-parser": "1.4.0", "emailjs": "^1.0.4", "errorhandler": "1.4.2", "express": "4.13.3", "express-session": "1.11.3", "jade": "1.11.0", "moment": "2.10.3", "mongodb": "2.0.45", "stylus": "0.52.4", "socket.io": "~1.4.5" }, "engines": { "node": "4.2.1" } }
{ "name": "battleship-cs360", "version": "0.0.1", "description": "Recreation of the Battleship game for BYU CS 360", "author": "", + "private": true, + "scripts": { + "start": "node app" + }, "website": { "url": "https://github.com/chocklymon/Battleship" }, "repository": { "type": "git", "url": "git@github.com:chocklymon/Battleship.git" }, "dependencies": { "body-parser": "1.14.1", "connect-mongo": "0.8.2", "cookie-parser": "1.4.0", "emailjs": "^1.0.4", "errorhandler": "1.4.2", "express": "4.13.3", "express-session": "1.11.3", "jade": "1.11.0", "moment": "2.10.3", "mongodb": "2.0.45", "stylus": "0.52.4", "socket.io": "~1.4.5" }, "engines": { "node": "4.2.1" } }
4
0.133333
4
0
222d55df204b6c8efe331010acd538f5b5013b85
config/routes.rb
config/routes.rb
Rails.application.routes.draw do root to: 'pages#home' resources :members, only: [:index, :show] do collection do get :popular get :search end end end
Rails.application.routes.draw do root to: 'pages#home' resources :members, only: [:index, :show] do collection do get :popular match :search, via: [:get, :post] end end end
Add post method for search
Add post method for search
Ruby
artistic-2.0
gauravtiwari/hireables,gauravtiwari/hireables,gauravtiwari/techhire,gauravtiwari/hireables,Hireables/hireables,gauravtiwari/techhire,Hireables/hireables,Hireables/hireables,gauravtiwari/techhire
ruby
## Code Before: Rails.application.routes.draw do root to: 'pages#home' resources :members, only: [:index, :show] do collection do get :popular get :search end end end ## Instruction: Add post method for search ## Code After: Rails.application.routes.draw do root to: 'pages#home' resources :members, only: [:index, :show] do collection do get :popular match :search, via: [:get, :post] end end end
Rails.application.routes.draw do root to: 'pages#home' resources :members, only: [:index, :show] do collection do get :popular - get :search + match :search, via: [:get, :post] end end end
2
0.166667
1
1
8ae4d4e3e054b34196c5564b751b37525934e02d
app/controllers/admin.rb
app/controllers/admin.rb
require "log4r" class Admin < Application include Log4r before :ensure_has_admin_privileges def index render end def upload if params[:file] file = Upload.new(params[:file][:filename]) log = Logger.new 'upload_log' pf = PatternFormatter.new(:pattern => "<b>[%l]</b> %m") file_log = Log4r::FileOutputter.new('output_log', :filename => [Merb.root, "public", "logs", file.directory].join("/"), :truncate => false, :formatter => pf) log.add(file_log) log.level = INFO file.move(params[:file][:tempfile].path) Merb.run_later do log.info("File has been uploaded to the server. Now processing it into a bunch of csv files") file.process_excel_to_csv log.info("CSVs extraction complete. Processing files.") file.load_csv(log) log.info("<h2>Processing complete! Your MIS is now ready for use. Please take a note of all the errors reported here(if any) and rectify them.</h2>") end redirect "/admin/upload_status/#{file.directory}" else render end end def upload_status render end end
require "log4r" class Admin < Application include Log4r before :ensure_has_admin_privileges def index render end def upload if params[:file] file = Upload.new(params[:file][:filename]) log = Logger.new 'upload_log' pf = PatternFormatter.new(:pattern => "<b>[%l]</b> %m") file_log = Log4r::FileOutputter.new('output_log', :filename => [Merb.root, "public", "logs", file.directory].join("/"), :truncate => false, :formatter => pf) log.add(file_log) log.level = INFO file.move(params[:file][:tempfile].path) Merb.run_later do log.info("File has been uploaded to the server. Now processing it into a bunch of csv files") file.process_excel_to_csv log.info("CSV extraction complete. Processing files.") file.load_csv(log) log.info("CSV files are now loaded into the DB. Creating loan schedules.") `rake mock:update_history` log.info("<h2>Processing complete! Your MIS is now ready for use. Please take a note of all the errors reported here(if any) and rectify them.</h2>") end redirect "/admin/upload_status/#{file.directory}" else render end end def upload_status render end end
Update history to be run as part of upload script
Update history to be run as part of upload script
Ruby
agpl-3.0
svs/misfit,Mostfit/mostfit,svs/mostfit-private,Mostfit/mostfit,svs/misfit,svs/mostfit-private
ruby
## Code Before: require "log4r" class Admin < Application include Log4r before :ensure_has_admin_privileges def index render end def upload if params[:file] file = Upload.new(params[:file][:filename]) log = Logger.new 'upload_log' pf = PatternFormatter.new(:pattern => "<b>[%l]</b> %m") file_log = Log4r::FileOutputter.new('output_log', :filename => [Merb.root, "public", "logs", file.directory].join("/"), :truncate => false, :formatter => pf) log.add(file_log) log.level = INFO file.move(params[:file][:tempfile].path) Merb.run_later do log.info("File has been uploaded to the server. Now processing it into a bunch of csv files") file.process_excel_to_csv log.info("CSVs extraction complete. Processing files.") file.load_csv(log) log.info("<h2>Processing complete! Your MIS is now ready for use. Please take a note of all the errors reported here(if any) and rectify them.</h2>") end redirect "/admin/upload_status/#{file.directory}" else render end end def upload_status render end end ## Instruction: Update history to be run as part of upload script ## Code After: require "log4r" class Admin < Application include Log4r before :ensure_has_admin_privileges def index render end def upload if params[:file] file = Upload.new(params[:file][:filename]) log = Logger.new 'upload_log' pf = PatternFormatter.new(:pattern => "<b>[%l]</b> %m") file_log = Log4r::FileOutputter.new('output_log', :filename => [Merb.root, "public", "logs", file.directory].join("/"), :truncate => false, :formatter => pf) log.add(file_log) log.level = INFO file.move(params[:file][:tempfile].path) Merb.run_later do log.info("File has been uploaded to the server. Now processing it into a bunch of csv files") file.process_excel_to_csv log.info("CSV extraction complete. Processing files.") file.load_csv(log) log.info("CSV files are now loaded into the DB. Creating loan schedules.") `rake mock:update_history` log.info("<h2>Processing complete! Your MIS is now ready for use. Please take a note of all the errors reported here(if any) and rectify them.</h2>") end redirect "/admin/upload_status/#{file.directory}" else render end end def upload_status render end end
require "log4r" class Admin < Application include Log4r before :ensure_has_admin_privileges def index render end def upload if params[:file] file = Upload.new(params[:file][:filename]) log = Logger.new 'upload_log' pf = PatternFormatter.new(:pattern => "<b>[%l]</b> %m") file_log = Log4r::FileOutputter.new('output_log', :filename => [Merb.root, "public", "logs", file.directory].join("/"), :truncate => false, :formatter => pf) log.add(file_log) log.level = INFO file.move(params[:file][:tempfile].path) Merb.run_later do log.info("File has been uploaded to the server. Now processing it into a bunch of csv files") file.process_excel_to_csv - log.info("CSVs extraction complete. Processing files.") ? - + log.info("CSV extraction complete. Processing files.") file.load_csv(log) + log.info("CSV files are now loaded into the DB. Creating loan schedules.") + `rake mock:update_history` log.info("<h2>Processing complete! Your MIS is now ready for use. Please take a note of all the errors reported here(if any) and rectify them.</h2>") end redirect "/admin/upload_status/#{file.directory}" else render end end def upload_status render end end
4
0.105263
3
1
9116828db256ecb1a1e303e31049e526ab9ae8eb
mailqueue/urls.py
mailqueue/urls.py
from django.conf.urls import patterns, url urlpatterns = patterns('mailqueue.views', url(r'^clear$', 'clear_sent_messages', name='clear_sent_messages'), url(r'^$', 'run_mail_job', name='run_mail_job'), )
from django.conf.urls import url from . import views urlpatterns = [ url(r'^clear$', views.clear_sent_messages, name='clear_sent_messages'), url(r'^$', views.run_mail_job, name='run_mail_job'), ]
Remove warning "deprecated" in url.py
Remove warning "deprecated" in url.py version django=1.9.6 RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
Python
mit
dstegelman/django-mail-queue,Goury/django-mail-queue,Goury/django-mail-queue,dstegelman/django-mail-queue
python
## Code Before: from django.conf.urls import patterns, url urlpatterns = patterns('mailqueue.views', url(r'^clear$', 'clear_sent_messages', name='clear_sent_messages'), url(r'^$', 'run_mail_job', name='run_mail_job'), ) ## Instruction: Remove warning "deprecated" in url.py version django=1.9.6 RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead. ## Code After: from django.conf.urls import url from . import views urlpatterns = [ url(r'^clear$', views.clear_sent_messages, name='clear_sent_messages'), url(r'^$', views.run_mail_job, name='run_mail_job'), ]
- from django.conf.urls import patterns, url ? ---------- + from django.conf.urls import url + from . import views - urlpatterns = patterns('mailqueue.views', + urlpatterns = [ - url(r'^clear$', 'clear_sent_messages', name='clear_sent_messages'), ? ------------------- ^ - + url(r'^clear$', views.clear_sent_messages, name='clear_sent_messages'), ? ^^^^^^ - url(r'^$', 'run_mail_job', name='run_mail_job'), ? ------------------- ^ - + url(r'^$', views.run_mail_job, name='run_mail_job'), ? ^^^^^^ - ) + ]
11
1.833333
6
5
befc017479a9ae6ce2ba34285c0ea3e739769219
config/services.php
config/services.php
<?php use Interop\Container\ContainerInterface; use Relay\RelayBuilder; use Zend\Diactoros\Response\EmitterInterface; use Zend\Diactoros\Response\SapiEmitter; return [ RelayBuilder::class => function (ContainerInterface $c) { $resolver = function ($class) use ($c) { return $c->get($class); }; $relayBuilder = new RelayBuilder($resolver); return $relayBuilder; }, EmitterInterface::class => DI\object(SapiEmitter::class), ];
<?php use Interop\Container\ContainerInterface; use Relay\RelayBuilder; use Zend\Diactoros\Response\EmitterInterface; use Zend\Diactoros\Response\SapiEmitter; return [ RelayBuilder::class => function (ContainerInterface $c) { $resolver = function ($middleware) use ($c) { if (is_string($middleware)) { $middleware = $c->get($middleware); } return $middleware; }; $relayBuilder = new RelayBuilder($resolver); return $relayBuilder; }, EmitterInterface::class => DI\object(SapiEmitter::class), ];
Add support for middleware callables
Add support for middleware callables
PHP
mit
relevo/php7-boilerplate
php
## Code Before: <?php use Interop\Container\ContainerInterface; use Relay\RelayBuilder; use Zend\Diactoros\Response\EmitterInterface; use Zend\Diactoros\Response\SapiEmitter; return [ RelayBuilder::class => function (ContainerInterface $c) { $resolver = function ($class) use ($c) { return $c->get($class); }; $relayBuilder = new RelayBuilder($resolver); return $relayBuilder; }, EmitterInterface::class => DI\object(SapiEmitter::class), ]; ## Instruction: Add support for middleware callables ## Code After: <?php use Interop\Container\ContainerInterface; use Relay\RelayBuilder; use Zend\Diactoros\Response\EmitterInterface; use Zend\Diactoros\Response\SapiEmitter; return [ RelayBuilder::class => function (ContainerInterface $c) { $resolver = function ($middleware) use ($c) { if (is_string($middleware)) { $middleware = $c->get($middleware); } return $middleware; }; $relayBuilder = new RelayBuilder($resolver); return $relayBuilder; }, EmitterInterface::class => DI\object(SapiEmitter::class), ];
<?php use Interop\Container\ContainerInterface; use Relay\RelayBuilder; use Zend\Diactoros\Response\EmitterInterface; use Zend\Diactoros\Response\SapiEmitter; return [ RelayBuilder::class => function (ContainerInterface $c) { - $resolver = function ($class) use ($c) { ? ^ ^^ + $resolver = function ($middleware) use ($c) { ? ^^^^ ++ ^^ - return $c->get($class); + if (is_string($middleware)) { + $middleware = $c->get($middleware); + } + + return $middleware; }; $relayBuilder = new RelayBuilder($resolver); return $relayBuilder; }, EmitterInterface::class => DI\object(SapiEmitter::class), ];
8
0.421053
6
2
140973d538e645c87cd8de9dcd0efa8315599892
src/protocolsupport/protocol/packet/middleimpl/serverbound/play/v_6_7/EntityAction.java
src/protocolsupport/protocol/packet/middleimpl/serverbound/play/v_6_7/EntityAction.java
package protocolsupport.protocol.packet.middleimpl.serverbound.play.v_6_7; import io.netty.buffer.ByteBuf; import protocolsupport.protocol.packet.middle.serverbound.play.MiddleEntityAction; import protocolsupport.utils.CollectionsUtils.ArrayMap; public class EntityAction extends MiddleEntityAction { private static final ArrayMap<Action> actionById = new ArrayMap<>( new ArrayMap.Entry<>(1, Action.START_SNEAK), new ArrayMap.Entry<>(2, Action.STOP_SNEAK), new ArrayMap.Entry<>(3, Action.LEAVE_BED), new ArrayMap.Entry<>(4, Action.START_SPRINT), new ArrayMap.Entry<>(5, Action.STOP_SPRINT), new ArrayMap.Entry<>(6, Action.STOP_JUMP) //this won't work now anyway, but still map it ); @Override public void readFromClientData(ByteBuf clientdata) { entityId = clientdata.readInt(); action = actionById.get(clientdata.readByte()); jumpBoost = clientdata.readInt(); } }
package protocolsupport.protocol.packet.middleimpl.serverbound.play.v_6_7; import io.netty.buffer.ByteBuf; import protocolsupport.protocol.packet.middle.serverbound.play.MiddleEntityAction; import protocolsupport.utils.CollectionsUtils.ArrayMap; public class EntityAction extends MiddleEntityAction { private static final ArrayMap<Action> actionById = new ArrayMap<>( new ArrayMap.Entry<>(1, Action.START_SNEAK), new ArrayMap.Entry<>(2, Action.STOP_SNEAK), new ArrayMap.Entry<>(3, Action.LEAVE_BED), new ArrayMap.Entry<>(4, Action.START_SPRINT), new ArrayMap.Entry<>(5, Action.STOP_SPRINT), new ArrayMap.Entry<>(6, Action.STOP_JUMP), new ArrayMap.Entry<>(7, Action.OPEN_HORSE_INV) ); @Override public void readFromClientData(ByteBuf clientdata) { entityId = clientdata.readInt(); action = actionById.get(clientdata.readByte()); jumpBoost = clientdata.readInt(); } }
Add missing entity action mapping for horse inventory open for 1.6-1.7
Add missing entity action mapping for horse inventory open for 1.6-1.7
Java
agpl-3.0
ProtocolSupport/ProtocolSupport
java
## Code Before: package protocolsupport.protocol.packet.middleimpl.serverbound.play.v_6_7; import io.netty.buffer.ByteBuf; import protocolsupport.protocol.packet.middle.serverbound.play.MiddleEntityAction; import protocolsupport.utils.CollectionsUtils.ArrayMap; public class EntityAction extends MiddleEntityAction { private static final ArrayMap<Action> actionById = new ArrayMap<>( new ArrayMap.Entry<>(1, Action.START_SNEAK), new ArrayMap.Entry<>(2, Action.STOP_SNEAK), new ArrayMap.Entry<>(3, Action.LEAVE_BED), new ArrayMap.Entry<>(4, Action.START_SPRINT), new ArrayMap.Entry<>(5, Action.STOP_SPRINT), new ArrayMap.Entry<>(6, Action.STOP_JUMP) //this won't work now anyway, but still map it ); @Override public void readFromClientData(ByteBuf clientdata) { entityId = clientdata.readInt(); action = actionById.get(clientdata.readByte()); jumpBoost = clientdata.readInt(); } } ## Instruction: Add missing entity action mapping for horse inventory open for 1.6-1.7 ## Code After: package protocolsupport.protocol.packet.middleimpl.serverbound.play.v_6_7; import io.netty.buffer.ByteBuf; import protocolsupport.protocol.packet.middle.serverbound.play.MiddleEntityAction; import protocolsupport.utils.CollectionsUtils.ArrayMap; public class EntityAction extends MiddleEntityAction { private static final ArrayMap<Action> actionById = new ArrayMap<>( new ArrayMap.Entry<>(1, Action.START_SNEAK), new ArrayMap.Entry<>(2, Action.STOP_SNEAK), new ArrayMap.Entry<>(3, Action.LEAVE_BED), new ArrayMap.Entry<>(4, Action.START_SPRINT), new ArrayMap.Entry<>(5, Action.STOP_SPRINT), new ArrayMap.Entry<>(6, Action.STOP_JUMP), new ArrayMap.Entry<>(7, Action.OPEN_HORSE_INV) ); @Override public void readFromClientData(ByteBuf clientdata) { entityId = clientdata.readInt(); action = actionById.get(clientdata.readByte()); jumpBoost = clientdata.readInt(); } }
package protocolsupport.protocol.packet.middleimpl.serverbound.play.v_6_7; import io.netty.buffer.ByteBuf; import protocolsupport.protocol.packet.middle.serverbound.play.MiddleEntityAction; import protocolsupport.utils.CollectionsUtils.ArrayMap; public class EntityAction extends MiddleEntityAction { private static final ArrayMap<Action> actionById = new ArrayMap<>( new ArrayMap.Entry<>(1, Action.START_SNEAK), new ArrayMap.Entry<>(2, Action.STOP_SNEAK), new ArrayMap.Entry<>(3, Action.LEAVE_BED), new ArrayMap.Entry<>(4, Action.START_SPRINT), new ArrayMap.Entry<>(5, Action.STOP_SPRINT), - new ArrayMap.Entry<>(6, Action.STOP_JUMP) //this won't work now anyway, but still map it + new ArrayMap.Entry<>(6, Action.STOP_JUMP), + new ArrayMap.Entry<>(7, Action.OPEN_HORSE_INV) ); @Override public void readFromClientData(ByteBuf clientdata) { entityId = clientdata.readInt(); action = actionById.get(clientdata.readByte()); jumpBoost = clientdata.readInt(); } }
3
0.130435
2
1
2aaa7e9a2c9ef40ad428293c2fa6a92711e75ee8
setup.py
setup.py
from setuptools import setup setup( name='botbot', version='0.5.0', description='A meta-bot for Euphoria.', author='Rishov Sarkar', url='https://github.com/ArkaneMoose/BotBot', license='MIT', packages=['botbot'], package_dir={'botbot': 'source'}, install_requires=['eupy >=1.0, <2.0', 'simpleeval >=0.9, <0.10'], dependency_links=['git+https://github.com/ArkaneMoose/EuPy.git@a569c35ea76a40b241a57669054b3247c3b4f960#egg=eupy-1.1', 'git+https://github.com/ArkaneMoose/simpleeval.git@ac33b805645ca616f11e64bb3330a12bc5fba658#egg=simpleeval-0.9.2'], entry_points={ 'console_scripts': [ 'botbot = botbot.__main__:main' ] } )
from setuptools import setup setup( name='botbot', version='0.5.1', description='A meta-bot for Euphoria.', author='Rishov Sarkar', url='https://github.com/ArkaneMoose/BotBot', license='MIT', packages=['botbot'], package_dir={'botbot': 'source'}, install_requires=['eupy >=1.2, <2.0', 'simpleeval >=0.9, <0.10'], dependency_links=['git+https://github.com/ArkaneMoose/EuPy.git@75777c49503acb32e09f4c36f6f65cc35157694a#egg=eupy-1.2', 'git+https://github.com/ArkaneMoose/simpleeval.git@ac33b805645ca616f11e64bb3330a12bc5fba658#egg=simpleeval-0.9.2'], entry_points={ 'console_scripts': [ 'botbot = botbot.__main__:main' ] } )
Use latest version of EuPy
Use latest version of EuPy The latest version of EuPy has better connection handling and improved exponential backoff behavior.
Python
mit
ArkaneMoose/BotBot
python
## Code Before: from setuptools import setup setup( name='botbot', version='0.5.0', description='A meta-bot for Euphoria.', author='Rishov Sarkar', url='https://github.com/ArkaneMoose/BotBot', license='MIT', packages=['botbot'], package_dir={'botbot': 'source'}, install_requires=['eupy >=1.0, <2.0', 'simpleeval >=0.9, <0.10'], dependency_links=['git+https://github.com/ArkaneMoose/EuPy.git@a569c35ea76a40b241a57669054b3247c3b4f960#egg=eupy-1.1', 'git+https://github.com/ArkaneMoose/simpleeval.git@ac33b805645ca616f11e64bb3330a12bc5fba658#egg=simpleeval-0.9.2'], entry_points={ 'console_scripts': [ 'botbot = botbot.__main__:main' ] } ) ## Instruction: Use latest version of EuPy The latest version of EuPy has better connection handling and improved exponential backoff behavior. ## Code After: from setuptools import setup setup( name='botbot', version='0.5.1', description='A meta-bot for Euphoria.', author='Rishov Sarkar', url='https://github.com/ArkaneMoose/BotBot', license='MIT', packages=['botbot'], package_dir={'botbot': 'source'}, install_requires=['eupy >=1.2, <2.0', 'simpleeval >=0.9, <0.10'], dependency_links=['git+https://github.com/ArkaneMoose/EuPy.git@75777c49503acb32e09f4c36f6f65cc35157694a#egg=eupy-1.2', 'git+https://github.com/ArkaneMoose/simpleeval.git@ac33b805645ca616f11e64bb3330a12bc5fba658#egg=simpleeval-0.9.2'], entry_points={ 'console_scripts': [ 'botbot = botbot.__main__:main' ] } )
from setuptools import setup setup( name='botbot', - version='0.5.0', ? ^ + version='0.5.1', ? ^ description='A meta-bot for Euphoria.', author='Rishov Sarkar', url='https://github.com/ArkaneMoose/BotBot', license='MIT', packages=['botbot'], package_dir={'botbot': 'source'}, - install_requires=['eupy >=1.0, <2.0', 'simpleeval >=0.9, <0.10'], ? ^ + install_requires=['eupy >=1.2, <2.0', 'simpleeval >=0.9, <0.10'], ? ^ - dependency_links=['git+https://github.com/ArkaneMoose/EuPy.git@a569c35ea76a40b241a57669054b3247c3b4f960#egg=eupy-1.1', 'git+https://github.com/ArkaneMoose/simpleeval.git@ac33b805645ca616f11e64bb3330a12bc5fba658#egg=simpleeval-0.9.2'], ? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ + dependency_links=['git+https://github.com/ArkaneMoose/EuPy.git@75777c49503acb32e09f4c36f6f65cc35157694a#egg=eupy-1.2', 'git+https://github.com/ArkaneMoose/simpleeval.git@ac33b805645ca616f11e64bb3330a12bc5fba658#egg=simpleeval-0.9.2'], ? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ entry_points={ 'console_scripts': [ 'botbot = botbot.__main__:main' ] } )
6
0.3
3
3
c58ba8a6434d0351b5920aa35c363628a255678c
nuit/templates/nuit/includes/_pagination_menu.html
nuit/templates/nuit/includes/_pagination_menu.html
<div class='pagination-centered'> <ul class='pagination'> <li class='arrow{% if not page_obj.has_previous %} unavailable{% endif %}'><a href='{% if page_obj.has_previous %}?{% query_transform context.request page=page_obj.previous_page_number %}{% endif %}'>&laquo;</a></li> {% for page in page_list %} <li class='{% if page == page_obj.number %}current unavailable{% endif %}{% if not page %} unavailable{% endif %}'><a href='{% if page %}?{% query_transform context.request page=page_obj.number %}{% endif %}'>{{page|default:'&hellip;'}}</a></li> {% endfor %} <li class='arrow{% if not page_obj.has_next %} unavailable{% endif %}'><a href='{% if page_obj.has_next %}?{% query_transform context.request page=page_obj.next_page_number %}{% endif %}'>&raquo;</a></li> {% if show_totals %}<li class='unavailable'><a href=''>{{page_obj.start_index}} to {{page_obj.end_index}} of {{page_obj.paginator.count}}</a></li>{% endif %} </ul> </div>
<div class='pagination-centered'> <ul class='pagination'> <li class='arrow{% if not page_obj.has_previous %} unavailable{% endif %}'><a href='{% if page_obj.has_previous %}?{% query_transform context.request page=page_obj.previous_page_number %}{% endif %}'>&laquo;</a></li> {% for page in page_list %} <li class='{% if page == page_obj.number %}current unavailable{% endif %}{% if not page %} unavailable{% endif %}'><a href='{% if page %}?{% query_transform context.request page=page %}{% endif %}'>{{page|default:'&hellip;'}}</a></li> {% endfor %} <li class='arrow{% if not page_obj.has_next %} unavailable{% endif %}'><a href='{% if page_obj.has_next %}?{% query_transform context.request page=page_obj.next_page_number %}{% endif %}'>&raquo;</a></li> {% if show_totals %}<li class='unavailable'><a href=''>{{page_obj.start_index}} to {{page_obj.end_index}} of {{page_obj.paginator.count}}</a></li>{% endif %} </ul> </div>
Fix broken pagination - derp
Fix broken pagination - derp
HTML
apache-2.0
ocadotechnology/django-nuit,ocadotechnology/django-nuit,ocadotechnology/django-nuit
html
## Code Before: <div class='pagination-centered'> <ul class='pagination'> <li class='arrow{% if not page_obj.has_previous %} unavailable{% endif %}'><a href='{% if page_obj.has_previous %}?{% query_transform context.request page=page_obj.previous_page_number %}{% endif %}'>&laquo;</a></li> {% for page in page_list %} <li class='{% if page == page_obj.number %}current unavailable{% endif %}{% if not page %} unavailable{% endif %}'><a href='{% if page %}?{% query_transform context.request page=page_obj.number %}{% endif %}'>{{page|default:'&hellip;'}}</a></li> {% endfor %} <li class='arrow{% if not page_obj.has_next %} unavailable{% endif %}'><a href='{% if page_obj.has_next %}?{% query_transform context.request page=page_obj.next_page_number %}{% endif %}'>&raquo;</a></li> {% if show_totals %}<li class='unavailable'><a href=''>{{page_obj.start_index}} to {{page_obj.end_index}} of {{page_obj.paginator.count}}</a></li>{% endif %} </ul> </div> ## Instruction: Fix broken pagination - derp ## Code After: <div class='pagination-centered'> <ul class='pagination'> <li class='arrow{% if not page_obj.has_previous %} unavailable{% endif %}'><a href='{% if page_obj.has_previous %}?{% query_transform context.request page=page_obj.previous_page_number %}{% endif %}'>&laquo;</a></li> {% for page in page_list %} <li class='{% if page == page_obj.number %}current unavailable{% endif %}{% if not page %} unavailable{% endif %}'><a href='{% if page %}?{% query_transform context.request page=page %}{% endif %}'>{{page|default:'&hellip;'}}</a></li> {% endfor %} <li class='arrow{% if not page_obj.has_next %} unavailable{% endif %}'><a href='{% if page_obj.has_next %}?{% query_transform context.request page=page_obj.next_page_number %}{% endif %}'>&raquo;</a></li> {% if show_totals %}<li class='unavailable'><a href=''>{{page_obj.start_index}} to {{page_obj.end_index}} of {{page_obj.paginator.count}}</a></li>{% endif %} </ul> </div>
<div class='pagination-centered'> <ul class='pagination'> <li class='arrow{% if not page_obj.has_previous %} unavailable{% endif %}'><a href='{% if page_obj.has_previous %}?{% query_transform context.request page=page_obj.previous_page_number %}{% endif %}'>&laquo;</a></li> {% for page in page_list %} - <li class='{% if page == page_obj.number %}current unavailable{% endif %}{% if not page %} unavailable{% endif %}'><a href='{% if page %}?{% query_transform context.request page=page_obj.number %}{% endif %}'>{{page|default:'&hellip;'}}</a></li> ? ----------- + <li class='{% if page == page_obj.number %}current unavailable{% endif %}{% if not page %} unavailable{% endif %}'><a href='{% if page %}?{% query_transform context.request page=page %}{% endif %}'>{{page|default:'&hellip;'}}</a></li> {% endfor %} <li class='arrow{% if not page_obj.has_next %} unavailable{% endif %}'><a href='{% if page_obj.has_next %}?{% query_transform context.request page=page_obj.next_page_number %}{% endif %}'>&raquo;</a></li> {% if show_totals %}<li class='unavailable'><a href=''>{{page_obj.start_index}} to {{page_obj.end_index}} of {{page_obj.paginator.count}}</a></li>{% endif %} </ul> </div>
2
0.2
1
1
dc8c9cc89fdd93a3df9c1713b18eebfffc7ba215
tools/ci/before_script.sh
tools/ci/before_script.sh
set -v if [[ -n "$TEST_SUITE" ]] ; then if [[ -n "$SPA_UI" ]] ; then pushd spa_ui/$SPA_UI npm install bower gulp -g npm install npm version popd fi bundle exec rake test:$TEST_SUITE:setup fi set +v
set -v if [[ -n "$TEST_SUITE" ]] ; then if [[ -n "$SPA_UI" ]] ; then pushd spa_ui/$SPA_UI npm set progress=false npm install bower gulp -g npm install npm version popd fi bundle exec rake test:$TEST_SUITE:setup fi set +v
Disable the npm propressbar in travis land
Disable the npm propressbar in travis land We don't actually have anyone looking at it, it's slow, and all tests run this, wasting at least several seconds each time. https://github.com/npm/npm/issues/11283
Shell
apache-2.0
lpichler/manageiq,hstastna/manageiq,NaNi-Z/manageiq,NickLaMuro/manageiq,gerikis/manageiq,ailisp/manageiq,skateman/manageiq,jvlcek/manageiq,agrare/manageiq,aufi/manageiq,mzazrivec/manageiq,NaNi-Z/manageiq,israel-hdez/manageiq,israel-hdez/manageiq,matobet/manageiq,romaintb/manageiq,maas-ufcg/manageiq,jntullo/manageiq,gmcculloug/manageiq,jntullo/manageiq,mfeifer/manageiq,israel-hdez/manageiq,mkanoor/manageiq,mkanoor/manageiq,romaintb/manageiq,israel-hdez/manageiq,aufi/manageiq,andyvesel/manageiq,maas-ufcg/manageiq,maas-ufcg/manageiq,jrafanie/manageiq,agrare/manageiq,jvlcek/manageiq,chessbyte/manageiq,skateman/manageiq,lpichler/manageiq,romaintb/manageiq,mresti/manageiq,branic/manageiq,ilackarms/manageiq,KevinLoiseau/manageiq,syncrou/manageiq,juliancheal/manageiq,ManageIQ/manageiq,branic/manageiq,durandom/manageiq,josejulio/manageiq,durandom/manageiq,NickLaMuro/manageiq,fbladilo/manageiq,billfitzgerald0120/manageiq,djberg96/manageiq,jameswnl/manageiq,yaacov/manageiq,gmcculloug/manageiq,josejulio/manageiq,yaacov/manageiq,agrare/manageiq,KevinLoiseau/manageiq,djberg96/manageiq,billfitzgerald0120/manageiq,romanblanco/manageiq,KevinLoiseau/manageiq,chessbyte/manageiq,jameswnl/manageiq,romaintb/manageiq,mfeifer/manageiq,d-m-u/manageiq,pkomanek/manageiq,gerikis/manageiq,borod108/manageiq,jameswnl/manageiq,djberg96/manageiq,pkomanek/manageiq,josejulio/manageiq,KevinLoiseau/manageiq,borod108/manageiq,gmcculloug/manageiq,romaintb/manageiq,gerikis/manageiq,romaintb/manageiq,tinaafitz/manageiq,syncrou/manageiq,jvlcek/manageiq,ailisp/manageiq,maas-ufcg/manageiq,NickLaMuro/manageiq,kbrock/manageiq,mkanoor/manageiq,jntullo/manageiq,durandom/manageiq,fbladilo/manageiq,ManageIQ/manageiq,fbladilo/manageiq,skateman/manageiq,juliancheal/manageiq,branic/manageiq,mfeifer/manageiq,jrafanie/manageiq,ilackarms/manageiq,d-m-u/manageiq,gmcculloug/manageiq,jameswnl/manageiq,tinaafitz/manageiq,mzazrivec/manageiq,jrafanie/manageiq,KevinLoiseau/manageiq,ilackarms/manageiq,billfitzgerald0120/manageiq,aufi/manageiq,jvlcek/manageiq,mfeifer/manageiq,syncrou/manageiq,borod108/manageiq,juliancheal/manageiq,agrare/manageiq,tinaafitz/manageiq,romanblanco/manageiq,lpichler/manageiq,pkomanek/manageiq,mresti/manageiq,ailisp/manageiq,yaacov/manageiq,mzazrivec/manageiq,juliancheal/manageiq,jrafanie/manageiq,chessbyte/manageiq,ManageIQ/manageiq,matobet/manageiq,NickLaMuro/manageiq,mkanoor/manageiq,branic/manageiq,skateman/manageiq,pkomanek/manageiq,hstastna/manageiq,jntullo/manageiq,billfitzgerald0120/manageiq,andyvesel/manageiq,tzumainn/manageiq,andyvesel/manageiq,andyvesel/manageiq,yaacov/manageiq,maas-ufcg/manageiq,matobet/manageiq,lpichler/manageiq,tzumainn/manageiq,romanblanco/manageiq,chessbyte/manageiq,matobet/manageiq,hstastna/manageiq,josejulio/manageiq,gerikis/manageiq,aufi/manageiq,kbrock/manageiq,durandom/manageiq,kbrock/manageiq,maas-ufcg/manageiq,mresti/manageiq,hstastna/manageiq,NaNi-Z/manageiq,d-m-u/manageiq,d-m-u/manageiq,tzumainn/manageiq,tinaafitz/manageiq,mzazrivec/manageiq,mresti/manageiq,romanblanco/manageiq,tzumainn/manageiq,fbladilo/manageiq,kbrock/manageiq,NaNi-Z/manageiq,borod108/manageiq,ailisp/manageiq,KevinLoiseau/manageiq,ManageIQ/manageiq,ilackarms/manageiq,syncrou/manageiq,djberg96/manageiq
shell
## Code Before: set -v if [[ -n "$TEST_SUITE" ]] ; then if [[ -n "$SPA_UI" ]] ; then pushd spa_ui/$SPA_UI npm install bower gulp -g npm install npm version popd fi bundle exec rake test:$TEST_SUITE:setup fi set +v ## Instruction: Disable the npm propressbar in travis land We don't actually have anyone looking at it, it's slow, and all tests run this, wasting at least several seconds each time. https://github.com/npm/npm/issues/11283 ## Code After: set -v if [[ -n "$TEST_SUITE" ]] ; then if [[ -n "$SPA_UI" ]] ; then pushd spa_ui/$SPA_UI npm set progress=false npm install bower gulp -g npm install npm version popd fi bundle exec rake test:$TEST_SUITE:setup fi set +v
set -v if [[ -n "$TEST_SUITE" ]] ; then if [[ -n "$SPA_UI" ]] ; then pushd spa_ui/$SPA_UI + npm set progress=false npm install bower gulp -g npm install npm version popd fi bundle exec rake test:$TEST_SUITE:setup fi set +v
1
0.071429
1
0
8cb6a3bfd0ba25221e836dcfd2b8211336eaa39c
README.md
README.md
The WPF Designer from SharpDevelop ## Overview WpfDesigner is a set of assemblies which can be included in your project to implement a XAML GUI editor. ## Project Build Status Branch | Status --- | --- *master* (Development) | [![Build status](https://ci.appveyor.com/api/projects/status/iqxeo16r8ff9qv66/branch/master?svg=true)](https://ci.appveyor.com/project/icsharpcode/WpfDesigner/branch/master) ## System Requirements .NET 4.5 or Net Core 3.0 ## Libraries and Integrated Tools Only the sample app has dependencies: * [Avalon Dock](http://avalondock.codeplex.com/) * [Avalon Edit](https://github.com/icsharpcode/AvalonEdit) ## Download [NuGet](https://www.nuget.org/packages/ICSharpCode.WpfDesigner/) ## Sample App ![Sample App](/screenshot.png?raw=true "Sample App") ###### Copyright 2015-2019 AlphaSierraPapa for the SharpDevelop team. SharpDevelop is distributed under the MIT license.
The WPF Designer from SharpDevelop ## Overview WpfDesigner is a set of assemblies which can be included in your project to implement a XAML GUI editor. ## Project Build Status Branch | Status --- | --- *master* (Development) | [![Build Status](https://icsharpcode.visualstudio.com/icsharpcode-pipelines/_apis/build/status/icsharpcode.WpfDesigner?branchName=master)](https://icsharpcode.visualstudio.com/icsharpcode-pipelines/_build/latest?definitionId=4&branchName=master) ## System Requirements .NET 4.5 or Net Core 3.0 ## Libraries and Integrated Tools Only the sample app has dependencies: * [Avalon Dock](http://avalondock.codeplex.com/) * [Avalon Edit](https://github.com/icsharpcode/AvalonEdit) ## Download [NuGet](https://www.nuget.org/packages/ICSharpCode.WpfDesigner/) ## Sample App ![Sample App](/screenshot.png?raw=true "Sample App") ###### Copyright 2015-2019 AlphaSierraPapa for the SharpDevelop team. SharpDevelop is distributed under the MIT license.
Build status badge for Azure Pipelines
Build status badge for Azure Pipelines
Markdown
mit
icsharpcode/WpfDesigner
markdown
## Code Before: The WPF Designer from SharpDevelop ## Overview WpfDesigner is a set of assemblies which can be included in your project to implement a XAML GUI editor. ## Project Build Status Branch | Status --- | --- *master* (Development) | [![Build status](https://ci.appveyor.com/api/projects/status/iqxeo16r8ff9qv66/branch/master?svg=true)](https://ci.appveyor.com/project/icsharpcode/WpfDesigner/branch/master) ## System Requirements .NET 4.5 or Net Core 3.0 ## Libraries and Integrated Tools Only the sample app has dependencies: * [Avalon Dock](http://avalondock.codeplex.com/) * [Avalon Edit](https://github.com/icsharpcode/AvalonEdit) ## Download [NuGet](https://www.nuget.org/packages/ICSharpCode.WpfDesigner/) ## Sample App ![Sample App](/screenshot.png?raw=true "Sample App") ###### Copyright 2015-2019 AlphaSierraPapa for the SharpDevelop team. SharpDevelop is distributed under the MIT license. ## Instruction: Build status badge for Azure Pipelines ## Code After: The WPF Designer from SharpDevelop ## Overview WpfDesigner is a set of assemblies which can be included in your project to implement a XAML GUI editor. ## Project Build Status Branch | Status --- | --- *master* (Development) | [![Build Status](https://icsharpcode.visualstudio.com/icsharpcode-pipelines/_apis/build/status/icsharpcode.WpfDesigner?branchName=master)](https://icsharpcode.visualstudio.com/icsharpcode-pipelines/_build/latest?definitionId=4&branchName=master) ## System Requirements .NET 4.5 or Net Core 3.0 ## Libraries and Integrated Tools Only the sample app has dependencies: * [Avalon Dock](http://avalondock.codeplex.com/) * [Avalon Edit](https://github.com/icsharpcode/AvalonEdit) ## Download [NuGet](https://www.nuget.org/packages/ICSharpCode.WpfDesigner/) ## Sample App ![Sample App](/screenshot.png?raw=true "Sample App") ###### Copyright 2015-2019 AlphaSierraPapa for the SharpDevelop team. SharpDevelop is distributed under the MIT license.
The WPF Designer from SharpDevelop ## Overview WpfDesigner is a set of assemblies which can be included in your project to implement a XAML GUI editor. ## Project Build Status Branch | Status --- | --- - *master* (Development) | [![Build status](https://ci.appveyor.com/api/projects/status/iqxeo16r8ff9qv66/branch/master?svg=true)](https://ci.appveyor.com/project/icsharpcode/WpfDesigner/branch/master) + *master* (Development) | [![Build Status](https://icsharpcode.visualstudio.com/icsharpcode-pipelines/_apis/build/status/icsharpcode.WpfDesigner?branchName=master)](https://icsharpcode.visualstudio.com/icsharpcode-pipelines/_build/latest?definitionId=4&branchName=master) ## System Requirements .NET 4.5 or Net Core 3.0 ## Libraries and Integrated Tools Only the sample app has dependencies: * [Avalon Dock](http://avalondock.codeplex.com/) * [Avalon Edit](https://github.com/icsharpcode/AvalonEdit) ## Download [NuGet](https://www.nuget.org/packages/ICSharpCode.WpfDesigner/) ## Sample App ![Sample App](/screenshot.png?raw=true "Sample App") ###### Copyright 2015-2019 AlphaSierraPapa for the SharpDevelop team. SharpDevelop is distributed under the MIT license.
2
0.064516
1
1
8802bde78e570322814126a79048c8af7f11a9c0
Resources/config/doctrine/Marker.orm.xml
Resources/config/doctrine/Marker.orm.xml
<?xml version="1.0" encoding="UTF-8" ?> <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> <mapped-superclass name="Ivory\GoogleMapBundle\Entity\Marker" table="ivory_marker"> <field name="javascriptVariable" column="javascript_variable" type="string" length="100" /> <field name="icon" type="string" length="255" nullable="true" /> <field name="shadow" type="string" length="255" nullable="true" /> <field name="options" type="array" /> </mapped-superclass> </doctrine-mapping>
<?xml version="1.0" encoding="UTF-8" ?> <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> <mapped-superclass name="Ivory\GoogleMapBundle\Entity\Marker" table="ivory_marker"> <field name="javascriptVariable" column="javascript_variable" type="string" length="100" /> <field name="options" type="array" /> </mapped-superclass> </doctrine-mapping>
Delete icon & shadow property from the marker doctrine mapping
Delete icon & shadow property from the marker doctrine mapping
XML
mit
radutopala/IvoryGoogleMapBundle,egeloen/IvoryGoogleMapBundle,egeloen/IvoryGoogleMapBundle,radutopala/IvoryGoogleMapBundle,rasanga/IvoryGoogleMapBundle,yappabe/IvoryGoogleMapBundle,radutopala/IvoryGoogleMapBundle,egeloen/IvoryGoogleMapBundle,rasanga/IvoryGoogleMapBundle,yappabe/IvoryGoogleMapBundle
xml
## Code Before: <?xml version="1.0" encoding="UTF-8" ?> <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> <mapped-superclass name="Ivory\GoogleMapBundle\Entity\Marker" table="ivory_marker"> <field name="javascriptVariable" column="javascript_variable" type="string" length="100" /> <field name="icon" type="string" length="255" nullable="true" /> <field name="shadow" type="string" length="255" nullable="true" /> <field name="options" type="array" /> </mapped-superclass> </doctrine-mapping> ## Instruction: Delete icon & shadow property from the marker doctrine mapping ## Code After: <?xml version="1.0" encoding="UTF-8" ?> <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> <mapped-superclass name="Ivory\GoogleMapBundle\Entity\Marker" table="ivory_marker"> <field name="javascriptVariable" column="javascript_variable" type="string" length="100" /> <field name="options" type="array" /> </mapped-superclass> </doctrine-mapping>
<?xml version="1.0" encoding="UTF-8" ?> <doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> <mapped-superclass name="Ivory\GoogleMapBundle\Entity\Marker" table="ivory_marker"> <field name="javascriptVariable" column="javascript_variable" type="string" length="100" /> - <field name="icon" type="string" length="255" nullable="true" /> - <field name="shadow" type="string" length="255" nullable="true" /> <field name="options" type="array" /> </mapped-superclass> </doctrine-mapping>
2
0.142857
0
2
1ac1e273f85e668609ab956aee2d893c5cd967dd
test/integration/generated_gtk_source_test.rb
test/integration/generated_gtk_source_test.rb
require "gir_ffi_test_helper" GirFFI.setup :GtkSource # Tests behavior of objects in the generated GtkSource namespace. describe "The generated GtkSource module" do describe "GtkSource::CompletionContext" do let(:instance) { GtkSource::CompletionContext.new } it "allows adding proposals" do # Interface changed in GtkSourceView 3.24 proposals = if GtkSource::CompletionItem.instance_methods.include? :set_label Array.new(3) do |i| GtkSource::CompletionItem.new.tap do |item| item.label = "Proposal #{i}" item.text = "Proposal #{i}" item.info = "blah #{i}" end end else [ GtkSource::CompletionItem.new("Proposal 1", "Proposal 1", nil, "blah 1"), GtkSource::CompletionItem.new("Proposal 2", "Proposal 2", nil, "blah 2"), GtkSource::CompletionItem.new("Proposal 3", "Proposal 3", nil, "blah 3") ] end instance.add_proposals nil, proposals, true end end end
require "gir_ffi_test_helper" GirFFI.setup :GtkSource, "3.0" # Tests behavior of objects in the generated GtkSource namespace. describe "The generated GtkSource module" do describe "GtkSource::CompletionContext" do let(:instance) { GtkSource::CompletionContext.new } it "allows adding proposals" do proposals = [ GtkSource::CompletionItem.new("Proposal 1", "Proposal 1", nil, "blah 1"), GtkSource::CompletionItem.new("Proposal 2", "Proposal 2", nil, "blah 2"), GtkSource::CompletionItem.new("Proposal 3", "Proposal 3", nil, "blah 3") ] instance.add_proposals nil, proposals, true end end end
Fix GtkSource test when used with GtkSource 3
Fix GtkSource test when used with GtkSource 3 The alternative initialization code turned out to only work with GtkSource 4, not actually with GtkSource 3.24. Therefore: - Ensure GtkSource with API version 3.0 is used - Always use new with four arguments
Ruby
lgpl-2.1
mvz/gir_ffi,mvz/gir_ffi,mvz/gir_ffi
ruby
## Code Before: require "gir_ffi_test_helper" GirFFI.setup :GtkSource # Tests behavior of objects in the generated GtkSource namespace. describe "The generated GtkSource module" do describe "GtkSource::CompletionContext" do let(:instance) { GtkSource::CompletionContext.new } it "allows adding proposals" do # Interface changed in GtkSourceView 3.24 proposals = if GtkSource::CompletionItem.instance_methods.include? :set_label Array.new(3) do |i| GtkSource::CompletionItem.new.tap do |item| item.label = "Proposal #{i}" item.text = "Proposal #{i}" item.info = "blah #{i}" end end else [ GtkSource::CompletionItem.new("Proposal 1", "Proposal 1", nil, "blah 1"), GtkSource::CompletionItem.new("Proposal 2", "Proposal 2", nil, "blah 2"), GtkSource::CompletionItem.new("Proposal 3", "Proposal 3", nil, "blah 3") ] end instance.add_proposals nil, proposals, true end end end ## Instruction: Fix GtkSource test when used with GtkSource 3 The alternative initialization code turned out to only work with GtkSource 4, not actually with GtkSource 3.24. Therefore: - Ensure GtkSource with API version 3.0 is used - Always use new with four arguments ## Code After: require "gir_ffi_test_helper" GirFFI.setup :GtkSource, "3.0" # Tests behavior of objects in the generated GtkSource namespace. describe "The generated GtkSource module" do describe "GtkSource::CompletionContext" do let(:instance) { GtkSource::CompletionContext.new } it "allows adding proposals" do proposals = [ GtkSource::CompletionItem.new("Proposal 1", "Proposal 1", nil, "blah 1"), GtkSource::CompletionItem.new("Proposal 2", "Proposal 2", nil, "blah 2"), GtkSource::CompletionItem.new("Proposal 3", "Proposal 3", nil, "blah 3") ] instance.add_proposals nil, proposals, true end end end
require "gir_ffi_test_helper" - GirFFI.setup :GtkSource + GirFFI.setup :GtkSource, "3.0" ? +++++++ # Tests behavior of objects in the generated GtkSource namespace. describe "The generated GtkSource module" do describe "GtkSource::CompletionContext" do let(:instance) { GtkSource::CompletionContext.new } it "allows adding proposals" do + proposals = [ - # Interface changed in GtkSourceView 3.24 - proposals = if GtkSource::CompletionItem.instance_methods.include? :set_label - Array.new(3) do |i| - GtkSource::CompletionItem.new.tap do |item| - item.label = "Proposal #{i}" - item.text = "Proposal #{i}" - item.info = "blah #{i}" - end - end - else - [ - GtkSource::CompletionItem.new("Proposal 1", "Proposal 1", nil, "blah 1"), ? -------------- + GtkSource::CompletionItem.new("Proposal 1", "Proposal 1", nil, "blah 1"), - GtkSource::CompletionItem.new("Proposal 2", "Proposal 2", nil, "blah 2"), ? -------------- + GtkSource::CompletionItem.new("Proposal 2", "Proposal 2", nil, "blah 2"), - GtkSource::CompletionItem.new("Proposal 3", "Proposal 3", nil, "blah 3") ? -------------- + GtkSource::CompletionItem.new("Proposal 3", "Proposal 3", nil, "blah 3") + ] - ] - end instance.add_proposals nil, proposals, true end end end
23
0.741935
6
17
0e52ced937db4fa7e1e5f0af37bd3dd0032a0c90
lib/after_commit_queue.rb
lib/after_commit_queue.rb
module AfterCommitQueue extend ActiveSupport::Concern included do after_commit :_run_after_commit_queue after_rollback :_clear_after_commit_queue end protected # Protected: Is called as after_commit callback # runs methods from the queue and clears the queue afterwards def _run_after_commit_queue _after_commit_queue.each do |action| action.call end @after_commit_queue.clear end # Protected: Add method to after commit queue def run_after_commit(method = nil, &block) _after_commit_queue << Proc.new { self.send(method) } if method _after_commit_queue << block if block true end # Protected: Return after commit queue # Returns: Array with methods to run def _after_commit_queue @after_commit_queue ||= [] end def _clear_after_commit_queue _after_commit_queue.clear end end
module AfterCommitQueue extend ActiveSupport::Concern included do after_commit :_run_after_commit_queue after_rollback :_clear_after_commit_queue end # Public: Add method to after commit queue def run_after_commit(method = nil, &block) _after_commit_queue << Proc.new { self.send(method) } if method _after_commit_queue << block if block true end protected # Protected: Is called as after_commit callback # runs methods from the queue and clears the queue afterwards def _run_after_commit_queue _after_commit_queue.each do |action| action.call end @after_commit_queue.clear end # Protected: Return after commit queue # Returns: Array with methods to run def _after_commit_queue @after_commit_queue ||= [] end def _clear_after_commit_queue _after_commit_queue.clear end end
Make method public so it can be used in an observer
Make method public so it can be used in an observer
Ruby
mit
shellycloud/after_commit_queue,hunterae/after_commit_queue,shellycloud/after_commit_queue,hunterae/after_commit_queue,shellycloud/after_commit_queue,hunterae/after_commit_queue
ruby
## Code Before: module AfterCommitQueue extend ActiveSupport::Concern included do after_commit :_run_after_commit_queue after_rollback :_clear_after_commit_queue end protected # Protected: Is called as after_commit callback # runs methods from the queue and clears the queue afterwards def _run_after_commit_queue _after_commit_queue.each do |action| action.call end @after_commit_queue.clear end # Protected: Add method to after commit queue def run_after_commit(method = nil, &block) _after_commit_queue << Proc.new { self.send(method) } if method _after_commit_queue << block if block true end # Protected: Return after commit queue # Returns: Array with methods to run def _after_commit_queue @after_commit_queue ||= [] end def _clear_after_commit_queue _after_commit_queue.clear end end ## Instruction: Make method public so it can be used in an observer ## Code After: module AfterCommitQueue extend ActiveSupport::Concern included do after_commit :_run_after_commit_queue after_rollback :_clear_after_commit_queue end # Public: Add method to after commit queue def run_after_commit(method = nil, &block) _after_commit_queue << Proc.new { self.send(method) } if method _after_commit_queue << block if block true end protected # Protected: Is called as after_commit callback # runs methods from the queue and clears the queue afterwards def _run_after_commit_queue _after_commit_queue.each do |action| action.call end @after_commit_queue.clear end # Protected: Return after commit queue # Returns: Array with methods to run def _after_commit_queue @after_commit_queue ||= [] end def _clear_after_commit_queue _after_commit_queue.clear end end
module AfterCommitQueue extend ActiveSupport::Concern included do after_commit :_run_after_commit_queue after_rollback :_clear_after_commit_queue + end + + # Public: Add method to after commit queue + def run_after_commit(method = nil, &block) + _after_commit_queue << Proc.new { self.send(method) } if method + _after_commit_queue << block if block + true end protected # Protected: Is called as after_commit callback # runs methods from the queue and clears the queue afterwards def _run_after_commit_queue _after_commit_queue.each do |action| action.call end @after_commit_queue.clear end - # Protected: Add method to after commit queue - def run_after_commit(method = nil, &block) - _after_commit_queue << Proc.new { self.send(method) } if method - _after_commit_queue << block if block - true - end - # Protected: Return after commit queue # Returns: Array with methods to run def _after_commit_queue @after_commit_queue ||= [] end def _clear_after_commit_queue _after_commit_queue.clear end end
14
0.388889
7
7
067bda1fe0cf733ad0470e25f753834e6f871624
app/views/sessions/_signin.html.erb
app/views/sessions/_signin.html.erb
<%= form_for :user, url: signin_path do |f| %> Name: <%= f.text_field :username %> Password: <%= f.password_field :password %> <%= f.submit 'login' %> <% end %> <!-- </div> -->
<%= form_for :user, url: signin_path do |f| %> Name: <%= f.text_field :username %> Password: <%= f.password_field :password %> <%= f.submit 'login' %> <% end %>
Remove commented ode in signin
Remove commented ode in signin
HTML+ERB
mit
grantziolkowski/caravan,bicyclethief/caravan,bicyclethief/caravan,bicyclethief/caravan,grantziolkowski/caravan,grantziolkowski/caravan
html+erb
## Code Before: <%= form_for :user, url: signin_path do |f| %> Name: <%= f.text_field :username %> Password: <%= f.password_field :password %> <%= f.submit 'login' %> <% end %> <!-- </div> --> ## Instruction: Remove commented ode in signin ## Code After: <%= form_for :user, url: signin_path do |f| %> Name: <%= f.text_field :username %> Password: <%= f.password_field :password %> <%= f.submit 'login' %> <% end %>
<%= form_for :user, url: signin_path do |f| %> Name: <%= f.text_field :username %> Password: <%= f.password_field :password %> <%= f.submit 'login' %> <% end %> - <!-- </div> -->
1
0.166667
0
1
5256e016d373ecd5ae89647a71d7e046effd1759
app/views/items/show.html.erb
app/views/items/show.html.erb
<% provide(:title, "Item #{@item.number}") %> <h1>Minutes for <%= itemlink(@item.number)%>: <%= @item.subject%></h1> <p id="notice"><%= notice %></p> <p> <strong>Date:</strong> <%= @item.date %> </p> <p> <strong>Standard:</strong> <%= @item.standard %> </p> <p> <strong>Clause:</strong> <%= @item.clause %> </p> <p> <strong>Draft:</strong> <%= @item.draft %> </p> <table class="table table-hover"> <thead> <tr> <th>Date</th> <th>Meeting</th> <th>Text</th> <th>Status</th> <th colspan="3"></th> </tr> </thead> <tbody> <% @minutes.each do |minute| %> <%= render minute %> <% end %> </tbody> </table> <%= will_paginate @minutes, renderer: BootstrapPagination::Rails %> <br> <%= link_to 'Edit', edit_item_path(@item), class: "btn btn-warning" if can? :update, @item %> <%= link_to 'Back', items_path, class: "btn btn-default" %>
<% provide(:title, "Item #{@item.number}") %> <h1>Minutes for <%= itemlink(@item.number)%>: <%= @item.subject%></h1> <p id="notice"><%= notice %></p> <table class="table table-hover"> <tbody> <tr> <td><strong>Standard:</strong> <%= @item.standard %></td> <td><strong>Clause:</strong> <%= @item.clause %></td> <td><strong>Draft with fix:</strong> <%= @item.draft %></td> <td><strong>Submitted:</strong> <%= @item.date %></td> </tr> </tbody> </table> <table class="table table-hover"> <thead> <tr> <th>Date</th> <th>Meeting</th> <th>Text</th> <th>Status</th> <th colspan="3"></th> </tr> </thead> <tbody> <% @minutes.each do |minute| %> <%= render minute %> <% end %> </tbody> </table> <%= will_paginate @minutes, renderer: BootstrapPagination::Rails %> <br> <%= link_to 'Edit', edit_item_path(@item), class: "btn btn-warning" if can? :update, @item %> <%= link_to 'Back', items_path, class: "btn btn-default" %>
Tidy the item show view.
Tidy the item show view.
HTML+ERB
apache-2.0
jlm/maint,jlm/maint,jlm/maint,jlm/maint
html+erb
## Code Before: <% provide(:title, "Item #{@item.number}") %> <h1>Minutes for <%= itemlink(@item.number)%>: <%= @item.subject%></h1> <p id="notice"><%= notice %></p> <p> <strong>Date:</strong> <%= @item.date %> </p> <p> <strong>Standard:</strong> <%= @item.standard %> </p> <p> <strong>Clause:</strong> <%= @item.clause %> </p> <p> <strong>Draft:</strong> <%= @item.draft %> </p> <table class="table table-hover"> <thead> <tr> <th>Date</th> <th>Meeting</th> <th>Text</th> <th>Status</th> <th colspan="3"></th> </tr> </thead> <tbody> <% @minutes.each do |minute| %> <%= render minute %> <% end %> </tbody> </table> <%= will_paginate @minutes, renderer: BootstrapPagination::Rails %> <br> <%= link_to 'Edit', edit_item_path(@item), class: "btn btn-warning" if can? :update, @item %> <%= link_to 'Back', items_path, class: "btn btn-default" %> ## Instruction: Tidy the item show view. ## Code After: <% provide(:title, "Item #{@item.number}") %> <h1>Minutes for <%= itemlink(@item.number)%>: <%= @item.subject%></h1> <p id="notice"><%= notice %></p> <table class="table table-hover"> <tbody> <tr> <td><strong>Standard:</strong> <%= @item.standard %></td> <td><strong>Clause:</strong> <%= @item.clause %></td> <td><strong>Draft with fix:</strong> <%= @item.draft %></td> <td><strong>Submitted:</strong> <%= @item.date %></td> </tr> </tbody> </table> <table class="table table-hover"> <thead> <tr> <th>Date</th> <th>Meeting</th> <th>Text</th> <th>Status</th> <th colspan="3"></th> </tr> </thead> <tbody> <% @minutes.each do |minute| %> <%= render minute %> <% end %> </tbody> </table> <%= will_paginate @minutes, renderer: BootstrapPagination::Rails %> <br> <%= link_to 'Edit', edit_item_path(@item), class: "btn btn-warning" if can? :update, @item %> <%= link_to 'Back', items_path, class: "btn btn-default" %>
<% provide(:title, "Item #{@item.number}") %> <h1>Minutes for <%= itemlink(@item.number)%>: <%= @item.subject%></h1> <p id="notice"><%= notice %></p> + <table class="table table-hover"> + <tbody> + <tr> + <td><strong>Standard:</strong> <%= @item.standard %></td> + <td><strong>Clause:</strong> <%= @item.clause %></td> + <td><strong>Draft with fix:</strong> <%= @item.draft %></td> + <td><strong>Submitted:</strong> <%= @item.date %></td> + </tr> + </tbody> + </table> - <p> - <strong>Date:</strong> - <%= @item.date %> - </p> - - <p> - <strong>Standard:</strong> - <%= @item.standard %> - </p> - - <p> - <strong>Clause:</strong> - <%= @item.clause %> - </p> - - <p> - <strong>Draft:</strong> - <%= @item.draft %> - </p> - <table class="table table-hover"> <thead> <tr> <th>Date</th> <th>Meeting</th> <th>Text</th> <th>Status</th> <th colspan="3"></th> </tr> </thead> <tbody> <% @minutes.each do |minute| %> <%= render minute %> <% end %> </tbody> </table> <%= will_paginate @minutes, renderer: BootstrapPagination::Rails %> <br> <%= link_to 'Edit', edit_item_path(@item), class: "btn btn-warning" if can? :update, @item %> <%= link_to 'Back', items_path, class: "btn btn-default" %>
30
0.612245
10
20
75adfafb8561fa3cf856a5e869d79ce66ddeedea
app/controllers/api/v2/services_controller.rb
app/controllers/api/v2/services_controller.rb
module Api module V2 class ServicesController < ApiController # GET api/v2/services # Returns all published services; accepts URL param to filter by service type def index type = params[:type].to_s.titleize @services = Service.published @services = @services.where(type: type) if type.present? render(success_response(@services)) end end end end
module Api module V2 class ServicesController < ApiController # GET api/v2/services # Returns all published services; accepts URL param to filter by service type def index type = params[:type].to_s.titleize @services = Service.published @services = @services.where(type: type) if type.present? render(success_response(@services.order(:name))) end end end end
Return paratransit services in alphabetic order in the transportation options page.
Return paratransit services in alphabetic order in the transportation options page.
Ruby
mit
camsys/oneclick-core,camsys/oneclick-core,camsys/oneclick-core,camsys/oneclick-core
ruby
## Code Before: module Api module V2 class ServicesController < ApiController # GET api/v2/services # Returns all published services; accepts URL param to filter by service type def index type = params[:type].to_s.titleize @services = Service.published @services = @services.where(type: type) if type.present? render(success_response(@services)) end end end end ## Instruction: Return paratransit services in alphabetic order in the transportation options page. ## Code After: module Api module V2 class ServicesController < ApiController # GET api/v2/services # Returns all published services; accepts URL param to filter by service type def index type = params[:type].to_s.titleize @services = Service.published @services = @services.where(type: type) if type.present? render(success_response(@services.order(:name))) end end end end
module Api module V2 class ServicesController < ApiController # GET api/v2/services # Returns all published services; accepts URL param to filter by service type def index type = params[:type].to_s.titleize @services = Service.published @services = @services.where(type: type) if type.present? - render(success_response(@services)) + render(success_response(@services.order(:name))) ? ++++++++++++ + end end end end
2
0.125
1
1
05361562aced18603c9821aba3af78e1831a8454
app/controllers/pages_controller.rb
app/controllers/pages_controller.rb
class PagesController < ApplicationController def index if user_signed_in? @notebooks = current_user.notebooks render "index_logged_in", layout: "logged_in" end end end
class PagesController < ApplicationController def index if user_signed_in? @notebooks = current_user.notebooks if @notebooks.size == 0 notebook = Notebook.new(name: "First Notebook", user: current_user) notebook.save @notebooks.reload end redirect_to notebook_path(@notebooks.first) #render "index_logged_in", layout: "logged_in" end end end
Add first notebook creation and redirection after user logs in.
Add first notebook creation and redirection after user logs in.
Ruby
mit
archdragon/notekat2,archdragon/notekat2
ruby
## Code Before: class PagesController < ApplicationController def index if user_signed_in? @notebooks = current_user.notebooks render "index_logged_in", layout: "logged_in" end end end ## Instruction: Add first notebook creation and redirection after user logs in. ## Code After: class PagesController < ApplicationController def index if user_signed_in? @notebooks = current_user.notebooks if @notebooks.size == 0 notebook = Notebook.new(name: "First Notebook", user: current_user) notebook.save @notebooks.reload end redirect_to notebook_path(@notebooks.first) #render "index_logged_in", layout: "logged_in" end end end
class PagesController < ApplicationController def index if user_signed_in? @notebooks = current_user.notebooks + + if @notebooks.size == 0 + notebook = Notebook.new(name: "First Notebook", user: current_user) + notebook.save + @notebooks.reload + end + + redirect_to notebook_path(@notebooks.first) - render "index_logged_in", layout: "logged_in" + #render "index_logged_in", layout: "logged_in" ? + + end end end
11
1.222222
10
1
2ed0ea49e1899ea6ed11ca3cdde65ca46d511c70
CHANGELOG.md
CHANGELOG.md
Changes in 0.1.1 ================ - Added config option `ircClients.idleTimeout` to allow virtual IRC clients to timeout after a specified amount of time. - Replaced `check.sh` with `npm run lint` and `npm run check`. - Strip unknown HTML tags from Matrix messages before sending to IRC. - Don't try to leave Matrix rooms if the IRC user who left is a virtual user. - **Deprecate** `dynamicChannels.visibility` in favour of `dynamicChannels.createAlias`, `dynamicChannels.published` and `dynamicChannels.joinRule` which gives more control over how the AS creates dynamic rooms. - Listen for `+k` and `+i` modes and change the `join_rules` of the Matrix room to `invite` when they are set. Revert back to the YAML configured `join_rules` when these modes are removed.
Changes in 0.1.1 ================ Features: - Added config option `ircClients.idleTimeout` to allow virtual IRC clients to timeout after a specified amount of time. - **Deprecate** `dynamicChannels.visibility` in favour of `dynamicChannels.createAlias`, `dynamicChannels.published` and `dynamicChannels.joinRule` which gives more control over how the AS creates dynamic rooms. Improvements: - Replaced `check.sh` with `npm run lint` and `npm run check`. - Listen for `+k` and `+i` modes and change the `join_rules` of the Matrix room to `invite` when they are set. Revert back to the YAML configured `join_rules` when these modes are removed. Bug fixes: - Make channels case-insensitive when joining via room aliases and when mapping to rooms. - Strip unknown HTML tags from Matrix messages before sending to IRC. - Don't try to leave Matrix rooms if the IRC user who left is a virtual user.
Update changelog; turn into sections.
Update changelog; turn into sections.
Markdown
apache-2.0
matrix-org/matrix-appservice-irc,martindale/matrix-appservice-irc,matrix-org/matrix-appservice-irc,matrix-org/matrix-appservice-irc
markdown
## Code Before: Changes in 0.1.1 ================ - Added config option `ircClients.idleTimeout` to allow virtual IRC clients to timeout after a specified amount of time. - Replaced `check.sh` with `npm run lint` and `npm run check`. - Strip unknown HTML tags from Matrix messages before sending to IRC. - Don't try to leave Matrix rooms if the IRC user who left is a virtual user. - **Deprecate** `dynamicChannels.visibility` in favour of `dynamicChannels.createAlias`, `dynamicChannels.published` and `dynamicChannels.joinRule` which gives more control over how the AS creates dynamic rooms. - Listen for `+k` and `+i` modes and change the `join_rules` of the Matrix room to `invite` when they are set. Revert back to the YAML configured `join_rules` when these modes are removed. ## Instruction: Update changelog; turn into sections. ## Code After: Changes in 0.1.1 ================ Features: - Added config option `ircClients.idleTimeout` to allow virtual IRC clients to timeout after a specified amount of time. - **Deprecate** `dynamicChannels.visibility` in favour of `dynamicChannels.createAlias`, `dynamicChannels.published` and `dynamicChannels.joinRule` which gives more control over how the AS creates dynamic rooms. Improvements: - Replaced `check.sh` with `npm run lint` and `npm run check`. - Listen for `+k` and `+i` modes and change the `join_rules` of the Matrix room to `invite` when they are set. Revert back to the YAML configured `join_rules` when these modes are removed. Bug fixes: - Make channels case-insensitive when joining via room aliases and when mapping to rooms. - Strip unknown HTML tags from Matrix messages before sending to IRC. - Don't try to leave Matrix rooms if the IRC user who left is a virtual user.
Changes in 0.1.1 ================ + + Features: - Added config option `ircClients.idleTimeout` to allow virtual IRC clients to timeout after a specified amount of time. - - Replaced `check.sh` with `npm run lint` and `npm run check`. - - Strip unknown HTML tags from Matrix messages before sending to IRC. - - Don't try to leave Matrix rooms if the IRC user who left is a virtual user. - **Deprecate** `dynamicChannels.visibility` in favour of `dynamicChannels.createAlias`, `dynamicChannels.published` and `dynamicChannels.joinRule` which gives more control over how the AS creates dynamic rooms. + + Improvements: + - Replaced `check.sh` with `npm run lint` and `npm run check`. - Listen for `+k` and `+i` modes and change the `join_rules` of the Matrix room to `invite` when they are set. Revert back to the YAML configured `join_rules` when these modes are removed. + + Bug fixes: + - Make channels case-insensitive when joining via room aliases and when mapping + to rooms. + - Strip unknown HTML tags from Matrix messages before sending to IRC. + - Don't try to leave Matrix rooms if the IRC user who left is a virtual user.
14
1
11
3
7bf6cd7d566ffc3d4073c350d82eeddbdc088880
pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go
pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go
/* Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Code generated by informer-gen. DO NOT EDIT. package internalinterfaces import ( time "time" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" cache "k8s.io/client-go/tools/cache" versioned "k8s.io/sample-controller/pkg/client/clientset/versioned" ) type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexInformer // SharedInformerFactory a small interface to allow for adding an informer without an import cycle type SharedInformerFactory interface { Start(stopCh <-chan struct{}) InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer } type TweakListOptionsFunc func(*v1.ListOptions)
/* Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Code generated by informer-gen. DO NOT EDIT. package internalinterfaces import ( time "time" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" cache "k8s.io/client-go/tools/cache" versioned "k8s.io/sample-controller/pkg/client/clientset/versioned" ) // NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer. type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexInformer // SharedInformerFactory a small interface to allow for adding an informer without an import cycle type SharedInformerFactory interface { Start(stopCh <-chan struct{}) InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer } // TweakListOptionsFunc is a function that transforms a v1.ListOptions. type TweakListOptionsFunc func(*v1.ListOptions)
Fix golint errors when generating informer code
Fix golint errors when generating informer code Kubernetes-commit: acf78cd6133de6faea9221d8c53b02ca6009b0bb
Go
apache-2.0
kubernetes/sample-controller,kubernetes/sample-controller
go
## Code Before: /* Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Code generated by informer-gen. DO NOT EDIT. package internalinterfaces import ( time "time" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" cache "k8s.io/client-go/tools/cache" versioned "k8s.io/sample-controller/pkg/client/clientset/versioned" ) type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexInformer // SharedInformerFactory a small interface to allow for adding an informer without an import cycle type SharedInformerFactory interface { Start(stopCh <-chan struct{}) InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer } type TweakListOptionsFunc func(*v1.ListOptions) ## Instruction: Fix golint errors when generating informer code Kubernetes-commit: acf78cd6133de6faea9221d8c53b02ca6009b0bb ## Code After: /* Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Code generated by informer-gen. DO NOT EDIT. package internalinterfaces import ( time "time" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" cache "k8s.io/client-go/tools/cache" versioned "k8s.io/sample-controller/pkg/client/clientset/versioned" ) // NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer. type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexInformer // SharedInformerFactory a small interface to allow for adding an informer without an import cycle type SharedInformerFactory interface { Start(stopCh <-chan struct{}) InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer } // TweakListOptionsFunc is a function that transforms a v1.ListOptions. type TweakListOptionsFunc func(*v1.ListOptions)
/* Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Code generated by informer-gen. DO NOT EDIT. package internalinterfaces import ( time "time" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" cache "k8s.io/client-go/tools/cache" versioned "k8s.io/sample-controller/pkg/client/clientset/versioned" ) + // NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer. type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexInformer // SharedInformerFactory a small interface to allow for adding an informer without an import cycle type SharedInformerFactory interface { Start(stopCh <-chan struct{}) InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer } + // TweakListOptionsFunc is a function that transforms a v1.ListOptions. type TweakListOptionsFunc func(*v1.ListOptions)
2
0.052632
2
0
bec413c94409b0934a3d81200cf0f073a8b74f1b
spec/features/admin/configuration/general_settings_spec.rb
spec/features/admin/configuration/general_settings_spec.rb
describe 'General Settings', type: :feature do stub_authorization! before(:each) do create(:store, name: 'Test Store', url: 'test.example.org', mail_from_address: 'test@example.org') visit spree.edit_admin_general_settings_path end context 'editing general settings (admin)' do let(:currencies) { 'USD, EUR, GBP' } let(:field_name) { 'supported_currencies' } it 'should create FxRate after changing supported_currencies' do fill_in name: field_name, with: currencies click_button 'Update' expect(find_field(name: field_name).value).to eq(currencies) expect(Spree::FxRate.count).to eq(2) end end end
describe 'General Settings', type: :feature do stub_authorization! before(:each) do create(:store, name: 'Test Store', url: 'test.example.org', mail_from_address: 'test@example.org') visit spree.edit_admin_general_settings_path end context 'editing general settings (admin)' do let(:currencies) { 'USD, EUR, GBP' } let(:field_name) { 'supported_currencies' } it 'should create FxRate after changing supported_currencies' do fill_in name: field_name, with: currencies click_button 'Update' expect(find_field(name: field_name).value).to eq(currencies) rates = Spree::FxRate.order(:id).pluck(:to_currency) expect(rates).to eq %w(EUR GBP) expect(rates).not_to include 'USD' end end end
Test not count but values
Test not count but values
Ruby
bsd-3-clause
itbeaver/spree_fx_currency,itbeaver/spree_fx_currency,itbeaver/spree_fx_currency
ruby
## Code Before: describe 'General Settings', type: :feature do stub_authorization! before(:each) do create(:store, name: 'Test Store', url: 'test.example.org', mail_from_address: 'test@example.org') visit spree.edit_admin_general_settings_path end context 'editing general settings (admin)' do let(:currencies) { 'USD, EUR, GBP' } let(:field_name) { 'supported_currencies' } it 'should create FxRate after changing supported_currencies' do fill_in name: field_name, with: currencies click_button 'Update' expect(find_field(name: field_name).value).to eq(currencies) expect(Spree::FxRate.count).to eq(2) end end end ## Instruction: Test not count but values ## Code After: describe 'General Settings', type: :feature do stub_authorization! before(:each) do create(:store, name: 'Test Store', url: 'test.example.org', mail_from_address: 'test@example.org') visit spree.edit_admin_general_settings_path end context 'editing general settings (admin)' do let(:currencies) { 'USD, EUR, GBP' } let(:field_name) { 'supported_currencies' } it 'should create FxRate after changing supported_currencies' do fill_in name: field_name, with: currencies click_button 'Update' expect(find_field(name: field_name).value).to eq(currencies) rates = Spree::FxRate.order(:id).pluck(:to_currency) expect(rates).to eq %w(EUR GBP) expect(rates).not_to include 'USD' end end end
describe 'General Settings', type: :feature do stub_authorization! before(:each) do create(:store, name: 'Test Store', url: 'test.example.org', mail_from_address: 'test@example.org') visit spree.edit_admin_general_settings_path end context 'editing general settings (admin)' do let(:currencies) { 'USD, EUR, GBP' } let(:field_name) { 'supported_currencies' } it 'should create FxRate after changing supported_currencies' do fill_in name: field_name, with: currencies click_button 'Update' expect(find_field(name: field_name).value).to eq(currencies) - expect(Spree::FxRate.count).to eq(2) + rates = Spree::FxRate.order(:id).pluck(:to_currency) + expect(rates).to eq %w(EUR GBP) + expect(rates).not_to include 'USD' end end end
4
0.173913
3
1
04eae79deb30e63f68534784f1eaf0412cfb1aa9
reporting_scripts/forum_data.py
reporting_scripts/forum_data.py
from collections import defaultdict import json import sys from base_edx import EdXConnection from generate_csv_report import CSV db_name = sys.argv[1] # Change name of collection as required connection = EdXConnection(db_name, 'forum' ) collection = connection.get_access_to_collection() forum_data = collection['forum'].find() csv_data = [] for document in forum_data: csv_data.append([document['_id']['oid'], document['author_username'], document['_type'], document.get('title', ''), document['body'], document['created_at']['date']]) headers = ['ID', 'Author Username', 'Type', 'Title', 'Body', 'Created At Date'] output = CSV(csv_data, headers, output_file=db_name+'_forum_data.csv') output.generate_csv()
from collections import defaultdict import json import sys from base_edx import EdXConnection from generate_csv_report import CSV db_name = sys.argv[1] # Change name of collection as required connection = EdXConnection(db_name, 'forum' ) collection = connection.get_access_to_collection() forum_data = collection['forum'].find() csv_data = [] for document in forum_data: csv_data.append([document['_id'], document['author_username'], document['_type'], document.get('title', ''), document['body'], document['created_at']]) headers = ['ID', 'Author Username', 'Type', 'Title', 'Body', 'Created At Date'] output = CSV(csv_data, headers, output_file=db_name+'_forum_data.csv') output.generate_csv()
Update script with latest fields
Update script with latest fields
Python
mit
andyzsf/edx_data_research,andyzsf/edx_data_research,McGillX/edx_data_research,McGillX/edx_data_research,McGillX/edx_data_research
python
## Code Before: from collections import defaultdict import json import sys from base_edx import EdXConnection from generate_csv_report import CSV db_name = sys.argv[1] # Change name of collection as required connection = EdXConnection(db_name, 'forum' ) collection = connection.get_access_to_collection() forum_data = collection['forum'].find() csv_data = [] for document in forum_data: csv_data.append([document['_id']['oid'], document['author_username'], document['_type'], document.get('title', ''), document['body'], document['created_at']['date']]) headers = ['ID', 'Author Username', 'Type', 'Title', 'Body', 'Created At Date'] output = CSV(csv_data, headers, output_file=db_name+'_forum_data.csv') output.generate_csv() ## Instruction: Update script with latest fields ## Code After: from collections import defaultdict import json import sys from base_edx import EdXConnection from generate_csv_report import CSV db_name = sys.argv[1] # Change name of collection as required connection = EdXConnection(db_name, 'forum' ) collection = connection.get_access_to_collection() forum_data = collection['forum'].find() csv_data = [] for document in forum_data: csv_data.append([document['_id'], document['author_username'], document['_type'], document.get('title', ''), document['body'], document['created_at']]) headers = ['ID', 'Author Username', 'Type', 'Title', 'Body', 'Created At Date'] output = CSV(csv_data, headers, output_file=db_name+'_forum_data.csv') output.generate_csv()
from collections import defaultdict import json import sys from base_edx import EdXConnection from generate_csv_report import CSV db_name = sys.argv[1] # Change name of collection as required connection = EdXConnection(db_name, 'forum' ) collection = connection.get_access_to_collection() forum_data = collection['forum'].find() csv_data = [] for document in forum_data: - csv_data.append([document['_id']['oid'], document['author_username'], document['_type'], document.get('title', ''), document['body'], document['created_at']['date']]) ? ------- -------- + csv_data.append([document['_id'], document['author_username'], document['_type'], document.get('title', ''), document['body'], document['created_at']]) headers = ['ID', 'Author Username', 'Type', 'Title', 'Body', 'Created At Date'] output = CSV(csv_data, headers, output_file=db_name+'_forum_data.csv') output.generate_csv()
2
0.095238
1
1
80757699d36d47b5cfbb0e45dc9d78d52f9ee607
README.md
README.md
Content Planner ======================== A online tool to help with the HMRC Content transition and URL analysis. The main focus of the tool is the coordination of content writing and a dashboard to show the progress of content in various states. This application requires: * Ruby version 2.0.0-p353 * Rails version 4.0.2 And depends on or uses the following parts of the GOV.UK stack: * https://github.com/alphagov/govuk_need_api (needs) * https://github.com/alphagov/whitehall (organisations) Loosely related: * https://github.com/alphagov/maslow * https://github.com/alphagov/transition Running the application --------------------- Ensure you have replicated the databases from preview (maslow, whitehall and content-planner). ``` bowl content-planner ``` Alternatively run whitehall and govuk_need_api then run `./startup.sh` Emails in development --------------------- It delivers emails to [mailcatcher](http://mailcatcher.me/) when in development. 1. Install mailcatcher: `gem install mailcatcher` 2. Inside VM: `mailcatcher --http-ip 10.1.1.254` 3. From your host machine go to http://10.1.1.254:1080 Style and syntax checking ------------------------- bundle exec rubocop Preview Database ---------------- The database on preview gets replaced with prod, migrations might need to be rerun.
Content Planner ======================== A online tool to help with the HMRC Content transition and URL analysis. The main focus of the tool is the coordination of content writing and a dashboard to show the progress of content in various states. This application requires: * Ruby version 2.0.0-p353 * Rails version 4.0.2 And depends on or uses the following parts of the GOV.UK stack: * https://github.com/alphagov/govuk_need_api (needs) * https://github.com/alphagov/whitehall (organisations) Loosely related: * https://github.com/alphagov/maslow Running the application --------------------- Ensure you have replicated the databases from preview (maslow, whitehall and content-planner). ``` bowl content-planner ``` Alternatively run whitehall and govuk_need_api then run `./startup.sh` Emails in development --------------------- It delivers emails to [mailcatcher](http://mailcatcher.me/) when in development. 1. Install mailcatcher: `gem install mailcatcher` 2. Inside VM: `mailcatcher --http-ip 10.1.1.254` 3. From your host machine go to http://10.1.1.254:1080 Style and syntax checking ------------------------- bundle exec rubocop Preview Database ---------------- The database on preview gets replaced with prod, migrations might need to be rerun.
Remove the transition app from the readme
Remove the transition app from the readme There is no relation at the moment, in the future linking tags in transition to content plans could be possible
Markdown
mit
bitzesty/content-planner,alphagov/content-planner,gds-attic/content-planner,alphagov/content-planner,gds-attic/content-planner,gds-attic/content-planner,gds-attic/content-planner,bitzesty/content-planner,alphagov/content-planner,alphagov/content-planner,bitzesty/content-planner
markdown
## Code Before: Content Planner ======================== A online tool to help with the HMRC Content transition and URL analysis. The main focus of the tool is the coordination of content writing and a dashboard to show the progress of content in various states. This application requires: * Ruby version 2.0.0-p353 * Rails version 4.0.2 And depends on or uses the following parts of the GOV.UK stack: * https://github.com/alphagov/govuk_need_api (needs) * https://github.com/alphagov/whitehall (organisations) Loosely related: * https://github.com/alphagov/maslow * https://github.com/alphagov/transition Running the application --------------------- Ensure you have replicated the databases from preview (maslow, whitehall and content-planner). ``` bowl content-planner ``` Alternatively run whitehall and govuk_need_api then run `./startup.sh` Emails in development --------------------- It delivers emails to [mailcatcher](http://mailcatcher.me/) when in development. 1. Install mailcatcher: `gem install mailcatcher` 2. Inside VM: `mailcatcher --http-ip 10.1.1.254` 3. From your host machine go to http://10.1.1.254:1080 Style and syntax checking ------------------------- bundle exec rubocop Preview Database ---------------- The database on preview gets replaced with prod, migrations might need to be rerun. ## Instruction: Remove the transition app from the readme There is no relation at the moment, in the future linking tags in transition to content plans could be possible ## Code After: Content Planner ======================== A online tool to help with the HMRC Content transition and URL analysis. The main focus of the tool is the coordination of content writing and a dashboard to show the progress of content in various states. This application requires: * Ruby version 2.0.0-p353 * Rails version 4.0.2 And depends on or uses the following parts of the GOV.UK stack: * https://github.com/alphagov/govuk_need_api (needs) * https://github.com/alphagov/whitehall (organisations) Loosely related: * https://github.com/alphagov/maslow Running the application --------------------- Ensure you have replicated the databases from preview (maslow, whitehall and content-planner). ``` bowl content-planner ``` Alternatively run whitehall and govuk_need_api then run `./startup.sh` Emails in development --------------------- It delivers emails to [mailcatcher](http://mailcatcher.me/) when in development. 1. Install mailcatcher: `gem install mailcatcher` 2. Inside VM: `mailcatcher --http-ip 10.1.1.254` 3. From your host machine go to http://10.1.1.254:1080 Style and syntax checking ------------------------- bundle exec rubocop Preview Database ---------------- The database on preview gets replaced with prod, migrations might need to be rerun.
Content Planner ======================== A online tool to help with the HMRC Content transition and URL analysis. The main focus of the tool is the coordination of content writing and a dashboard to show the progress of content in various states. This application requires: * Ruby version 2.0.0-p353 * Rails version 4.0.2 And depends on or uses the following parts of the GOV.UK stack: * https://github.com/alphagov/govuk_need_api (needs) * https://github.com/alphagov/whitehall (organisations) Loosely related: * https://github.com/alphagov/maslow - * https://github.com/alphagov/transition - Running the application --------------------- Ensure you have replicated the databases from preview (maslow, whitehall and content-planner). ``` bowl content-planner ``` Alternatively run whitehall and govuk_need_api then run `./startup.sh` Emails in development --------------------- It delivers emails to [mailcatcher](http://mailcatcher.me/) when in development. 1. Install mailcatcher: `gem install mailcatcher` 2. Inside VM: `mailcatcher --http-ip 10.1.1.254` 3. From your host machine go to http://10.1.1.254:1080 Style and syntax checking ------------------------- bundle exec rubocop Preview Database ---------------- The database on preview gets replaced with prod, migrations might need to be rerun.
2
0.035714
0
2
dc354fbb667072011c4c3fa2e053db11c30ba60c
src/resources/views/form.blade.php
src/resources/views/form.blade.php
@extends('layouts.app') @section('content') <div class="container"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <div class="panel panel-default"> <div class="panel-heading">@lang('twofactor-auth::twofactor-auth.title')</div> <div class="panel-body"> <form class="form-horizontal" role="form" method="POST" action="{{ route('auth.token') }}"> {{ csrf_field() }} <div class="form-group{{ $errors->has('token') ? ' has-error' : '' }}"> <label for="token" class="col-md-4 control-label">@lang('twofactor-auth::twofactor-auth.label')</label> <div class="col-md-6"> <input id="token" type="text" class="form-control" name="token" value="{{ old('token') }}" required autofocus> @if ($errors->has('token')) <span class="help-block"> <strong>{{ $errors->first('token') }}</strong> </span> @endif </div> </div> <div class="form-group"> <div class="col-md-8 col-md-offset-4"> <button type="submit" class="btn btn-primary"> @lang('twofactor-auth::twofactor-auth.send') </button> </div> </div> </form> </div> </div> </div> </div> </div> @endsection
@extends('layouts.app') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header">@lang('twofactor-auth::twofactor-auth.title')</div> <div class="card-body"> <form class="form-horizontal" role="form" method="POST" action="{{ route('auth.token') }}"> @csrf <div class="form-group row"> <label for="token" class="col-md-4 col-form-label text-md-right">@lang('twofactor-auth::twofactor-auth.label')</label> <div class="col-md-6"> <input id="token" type="text" class="form-control{{ $errors->has('token') ? ' is-invalid' : '' }}" name="token" value="{{ old('token') }}" required autofocus> @if ($errors->has('token')) <span class="invalid-feedback" role="alert"> <strong>{{ $errors->first('token') }}</strong> </span> @endif </div> </div> <div class="form-group row mb-0"> <div class="col-md-8 offset-md-4"> <button type="submit" class="btn btn-primary"> @lang('twofactor-auth::twofactor-auth.send') </button> </div> </div> </form> </div> </div> </div> </div> </div> @endsection
Update auth token form layout
Update auth token form layout
PHP
mit
michaeldzjap/Two-Factor-Authentication,michaeldzjap/Two-Factor-Authentication
php
## Code Before: @extends('layouts.app') @section('content') <div class="container"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <div class="panel panel-default"> <div class="panel-heading">@lang('twofactor-auth::twofactor-auth.title')</div> <div class="panel-body"> <form class="form-horizontal" role="form" method="POST" action="{{ route('auth.token') }}"> {{ csrf_field() }} <div class="form-group{{ $errors->has('token') ? ' has-error' : '' }}"> <label for="token" class="col-md-4 control-label">@lang('twofactor-auth::twofactor-auth.label')</label> <div class="col-md-6"> <input id="token" type="text" class="form-control" name="token" value="{{ old('token') }}" required autofocus> @if ($errors->has('token')) <span class="help-block"> <strong>{{ $errors->first('token') }}</strong> </span> @endif </div> </div> <div class="form-group"> <div class="col-md-8 col-md-offset-4"> <button type="submit" class="btn btn-primary"> @lang('twofactor-auth::twofactor-auth.send') </button> </div> </div> </form> </div> </div> </div> </div> </div> @endsection ## Instruction: Update auth token form layout ## Code After: @extends('layouts.app') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header">@lang('twofactor-auth::twofactor-auth.title')</div> <div class="card-body"> <form class="form-horizontal" role="form" method="POST" action="{{ route('auth.token') }}"> @csrf <div class="form-group row"> <label for="token" class="col-md-4 col-form-label text-md-right">@lang('twofactor-auth::twofactor-auth.label')</label> <div class="col-md-6"> <input id="token" type="text" class="form-control{{ $errors->has('token') ? ' is-invalid' : '' }}" name="token" value="{{ old('token') }}" required autofocus> @if ($errors->has('token')) <span class="invalid-feedback" role="alert"> <strong>{{ $errors->first('token') }}</strong> </span> @endif </div> </div> <div class="form-group row mb-0"> <div class="col-md-8 offset-md-4"> <button type="submit" class="btn btn-primary"> @lang('twofactor-auth::twofactor-auth.send') </button> </div> </div> </form> </div> </div> </div> </div> </div> @endsection
@extends('layouts.app') @section('content') <div class="container"> - <div class="row"> + <div class="row justify-content-center"> - <div class="col-md-8 col-md-offset-2"> ? ---------------- + <div class="col-md-8"> - <div class="panel panel-default"> + <div class="card"> - <div class="panel-heading">@lang('twofactor-auth::twofactor-auth.title')</div> ? ^ ^^^ ^^^ + <div class="card-header">@lang('twofactor-auth::twofactor-auth.title')</div> ? ^ ^^ ^^ + - <div class="panel-body"> ? ^ ^^^ + <div class="card-body"> ? ^ ^^ <form class="form-horizontal" role="form" method="POST" action="{{ route('auth.token') }}"> - {{ csrf_field() }} ? ^^^ ----------- + @csrf ? ^ - <div class="form-group{{ $errors->has('token') ? ' has-error' : '' }}"> + <div class="form-group row"> - <label for="token" class="col-md-4 control-label">@lang('twofactor-auth::twofactor-auth.label')</label> ? ^^ ^^ + <label for="token" class="col-md-4 col-form-label text-md-right">@lang('twofactor-auth::twofactor-auth.label')</label> ? ^^^^ ^ ++++++++++++++ <div class="col-md-6"> - <input id="token" type="text" class="form-control" name="token" value="{{ old('token') }}" required autofocus> + <input id="token" type="text" class="form-control{{ $errors->has('token') ? ' is-invalid' : '' }}" name="token" value="{{ old('token') }}" required autofocus> ? ++++++++++++++++++++++++++++++++++++++++++++++++ @if ($errors->has('token')) - <span class="help-block"> ? ^ ^^^ ^^ + <span class="invalid-feedback" role="alert"> ? ^^^^^^^^^ ^^ ^ +++++++++++++ <strong>{{ $errors->first('token') }}</strong> </span> @endif </div> </div> - <div class="form-group"> + <div class="form-group row mb-0"> ? +++++++++ - <div class="col-md-8 col-md-offset-4"> ? ------- + <div class="col-md-8 offset-md-4"> ? +++ <button type="submit" class="btn btn-primary"> @lang('twofactor-auth::twofactor-auth.send') </button> </div> </div> </form> </div> </div> </div> </div> </div> @endsection
25
0.625
13
12
c5b6feff171780b7466afd96bdb22c2e1872460d
README.md
README.md
Date 6/Nov/13 14/Nov/16 Entity ID LC82330732013310LGN00 LC82330732016319LGN00 Path 233 233 Row 73 73 # Step 1 Downloading Landsat utils for Python You need to install some packages before you can install landsat-util: See packages below. Documentatin can be found at: https://pythonhosted.org/landsat-util/installation.html For Python: $: sudo apt-get update $: sudo apt-get install python-pip python-numpy python-scipy libgdal-dev libatlas-base-dev gfortran libfreetype6-dev python-setuptools python-dev $: sudo apt install python-pycurl $: sudo pip install landsat-util $: sudo pip install python-utils For R: install Rpython # Step 2 Getting the Download code You need to get code http://landsat-util.readthedocs.io/en/latest/api.html#landsat.downloader.Downloader.amazon_s3 https://earthexplorer.usgs.gov/browse/landsat_8/2013/233/073/LC82330732013310LGN00.jpg
Date 6/Nov/13 14/Nov/16 Entity ID LC82330732013310LGN00 LC82330732016319LGN00 Path 233 233 Row 73 73 # Step 1 Downloading Landsat utils for Python You need to install some packages before you can install landsat-util: See packages below. Documentatin can be found at: https://pythonhosted.org/landsat-util/installation.html For Python: $: sudo apt-get update $: sudo apt-get install python-pip python-numpy python-scipy libgdal-dev libatlas-base-dev gfortran libfreetype6-dev python-setuptools python-dev $: sudo apt install python-pycurl $: sudo pip install landsat-util $: sudo pip install python-utils # Step 2 Getting the Download code You need to get code http://landsat-util.readthedocs.io/en/latest/api.html#landsat.downloader.Downloader.amazon_s3 https://earthexplorer.usgs.gov/browse/landsat_8/2013/233/073/LC82330732013310LGN00.jpg
Remove R script set up codes
Remove R script set up codes
Markdown
apache-2.0
ingetjuh123/ProjectLakePoopo,ingetjuh123/ProjectLakePoopo,ingetjuh123/ProjectLakePoopo
markdown
## Code Before: Date 6/Nov/13 14/Nov/16 Entity ID LC82330732013310LGN00 LC82330732016319LGN00 Path 233 233 Row 73 73 # Step 1 Downloading Landsat utils for Python You need to install some packages before you can install landsat-util: See packages below. Documentatin can be found at: https://pythonhosted.org/landsat-util/installation.html For Python: $: sudo apt-get update $: sudo apt-get install python-pip python-numpy python-scipy libgdal-dev libatlas-base-dev gfortran libfreetype6-dev python-setuptools python-dev $: sudo apt install python-pycurl $: sudo pip install landsat-util $: sudo pip install python-utils For R: install Rpython # Step 2 Getting the Download code You need to get code http://landsat-util.readthedocs.io/en/latest/api.html#landsat.downloader.Downloader.amazon_s3 https://earthexplorer.usgs.gov/browse/landsat_8/2013/233/073/LC82330732013310LGN00.jpg ## Instruction: Remove R script set up codes ## Code After: Date 6/Nov/13 14/Nov/16 Entity ID LC82330732013310LGN00 LC82330732016319LGN00 Path 233 233 Row 73 73 # Step 1 Downloading Landsat utils for Python You need to install some packages before you can install landsat-util: See packages below. Documentatin can be found at: https://pythonhosted.org/landsat-util/installation.html For Python: $: sudo apt-get update $: sudo apt-get install python-pip python-numpy python-scipy libgdal-dev libatlas-base-dev gfortran libfreetype6-dev python-setuptools python-dev $: sudo apt install python-pycurl $: sudo pip install landsat-util $: sudo pip install python-utils # Step 2 Getting the Download code You need to get code http://landsat-util.readthedocs.io/en/latest/api.html#landsat.downloader.Downloader.amazon_s3 https://earthexplorer.usgs.gov/browse/landsat_8/2013/233/073/LC82330732013310LGN00.jpg
Date 6/Nov/13 14/Nov/16 Entity ID LC82330732013310LGN00 LC82330732016319LGN00 Path 233 233 Row 73 73 # Step 1 Downloading Landsat utils for Python You need to install some packages before you can install landsat-util: See packages below. Documentatin can be found at: https://pythonhosted.org/landsat-util/installation.html For Python: $: sudo apt-get update $: sudo apt-get install python-pip python-numpy python-scipy libgdal-dev libatlas-base-dev gfortran libfreetype6-dev python-setuptools python-dev $: sudo apt install python-pycurl $: sudo pip install landsat-util $: sudo pip install python-utils - For R: - install Rpython - - - - - # Step 2 Getting the Download code You need to get code http://landsat-util.readthedocs.io/en/latest/api.html#landsat.downloader.Downloader.amazon_s3 https://earthexplorer.usgs.gov/browse/landsat_8/2013/233/073/LC82330732013310LGN00.jpg
7
0.212121
0
7
2c3e5d007389e4fa138293c7f3e3e7c89d527b75
stdlib/objc/AssetsLibrary/AssetsLibrary.swift
stdlib/objc/AssetsLibrary/AssetsLibrary.swift
//===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// @exported import AssetsLibrary // Clang module //===----------------------------------------------------------------------===// // ALAssetsLibrary.h //===----------------------------------------------------------------------===// extension ALAssetsLibrary { public func enumerateGroupsWithTypes(var types: UInt32, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock: ALAssetsLibraryAccessFailureBlock!) { if (types == ALAssetsGroupAll) { types = ALAssetsGroupLibrary | ALAssetsGroupAlbum | ALAssetsGroupEvent | ALAssetsGroupFaces | ALAssetsGroupSavedPhotos | ALAssetsGroupPhotoStream } return enumerateGroupsWithTypes(ALAssetsGroupType(types), usingBlock: enumerationBlock, failureBlock) } }
//===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// @exported import AssetsLibrary // Clang module //===----------------------------------------------------------------------===// // ALAssetsLibrary.h //===----------------------------------------------------------------------===// extension ALAssetsLibrary { public func enumerateGroupsWithTypes(var types: UInt32, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock: ALAssetsLibraryAccessFailureBlock!) { if (types == ALAssetsGroupAll) { types = ALAssetsGroupLibrary | ALAssetsGroupAlbum | ALAssetsGroupEvent | ALAssetsGroupFaces | ALAssetsGroupSavedPhotos | ALAssetsGroupPhotoStream } return enumerateGroupsWithTypes(ALAssetsGroupType(types), usingBlock: enumerationBlock, failureBlock: failureBlock) } }
Add missing keyword argument following changes for rdar://problem/18778670
Add missing keyword argument following changes for rdar://problem/18778670 Swift SVN r23095
Swift
apache-2.0
slavapestov/swift,sschiau/swift,zisko/swift,emilstahl/swift,amraboelela/swift,CodaFi/swift,sschiau/swift,CodaFi/swift,practicalswift/swift,stephentyrone/swift,gribozavr/swift,uasys/swift,LeoShimonaka/swift,CodaFi/swift,swiftix/swift.old,xedin/swift,slavapestov/swift,airspeedswift/swift,aschwaighofer/swift,xedin/swift,kperryua/swift,manavgabhawala/swift,ahoppen/swift,therealbnut/swift,return/swift,brentdax/swift,russbishop/swift,codestergit/swift,tkremenek/swift,dduan/swift,codestergit/swift,apple/swift,huonw/swift,tardieu/swift,gregomni/swift,benlangmuir/swift,shajrawi/swift,mightydeveloper/swift,huonw/swift,xwu/swift,uasys/swift,SwiftAndroid/swift,LeoShimonaka/swift,calebd/swift,tinysun212/swift-windows,sschiau/swift,gmilos/swift,ken0nek/swift,zisko/swift,devincoughlin/swift,uasys/swift,return/swift,shajrawi/swift,allevato/swift,alblue/swift,ben-ng/swift,jopamer/swift,Ivacker/swift,xwu/swift,ahoppen/swift,djwbrown/swift,aschwaighofer/swift,lorentey/swift,djwbrown/swift,kstaring/swift,allevato/swift,mightydeveloper/swift,kusl/swift,sdulal/swift,uasys/swift,natecook1000/swift,modocache/swift,atrick/swift,jmgc/swift,parkera/swift,shahmishal/swift,jtbandes/swift,jmgc/swift,swiftix/swift,gottesmm/swift,frootloops/swift,swiftix/swift.old,hooman/swift,shahmishal/swift,alblue/swift,sschiau/swift,JaSpa/swift,hooman/swift,emilstahl/swift,practicalswift/swift,OscarSwanros/swift,CodaFi/swift,swiftix/swift.old,austinzheng/swift,parkera/swift,JGiola/swift,ken0nek/swift,sschiau/swift,jmgc/swift,milseman/swift,modocache/swift,danielmartin/swift,gregomni/swift,swiftix/swift,apple/swift,airspeedswift/swift,lorentey/swift,dduan/swift,tjw/swift,jtbandes/swift,milseman/swift,gregomni/swift,roambotics/swift,deyton/swift,gmilos/swift,parkera/swift,cbrentharris/swift,glessard/swift,nathawes/swift,mightydeveloper/swift,apple/swift,milseman/swift,ken0nek/swift,lorentey/swift,Ivacker/swift,jtbandes/swift,shahmishal/swift,ahoppen/swift,frootloops/swift,shahmishal/swift,emilstahl/swift,airspeedswift/swift,kusl/swift,johnno1962d/swift,roambotics/swift,jmgc/swift,roambotics/swift,MukeshKumarS/Swift,Ivacker/swift,danielmartin/swift,huonw/swift,stephentyrone/swift,xwu/swift,xwu/swift,harlanhaskins/swift,SwiftAndroid/swift,harlanhaskins/swift,felix91gr/swift,jmgc/swift,kstaring/swift,swiftix/swift,ben-ng/swift,tinysun212/swift-windows,johnno1962d/swift,Jnosh/swift,sschiau/swift,SwiftAndroid/swift,LeoShimonaka/swift,uasys/swift,adrfer/swift,shajrawi/swift,jopamer/swift,gribozavr/swift,LeoShimonaka/swift,ken0nek/swift,huonw/swift,russbishop/swift,return/swift,hooman/swift,KrishMunot/swift,dreamsxin/swift,dduan/swift,kentya6/swift,apple/swift,MukeshKumarS/Swift,calebd/swift,tjw/swift,adrfer/swift,benlangmuir/swift,OscarSwanros/swift,arvedviehweger/swift,LeoShimonaka/swift,CodaFi/swift,deyton/swift,bitjammer/swift,modocache/swift,calebd/swift,IngmarStein/swift,JGiola/swift,codestergit/swift,deyton/swift,KrishMunot/swift,natecook1000/swift,hughbe/swift,tinysun212/swift-windows,felix91gr/swift,JGiola/swift,khizkhiz/swift,frootloops/swift,roambotics/swift,JaSpa/swift,kusl/swift,KrishMunot/swift,KrishMunot/swift,ben-ng/swift,frootloops/swift,lorentey/swift,allevato/swift,sdulal/swift,kentya6/swift,IngmarStein/swift,JaSpa/swift,arvedviehweger/swift,allevato/swift,hughbe/swift,atrick/swift,aschwaighofer/swift,felix91gr/swift,johnno1962d/swift,shajrawi/swift,nathawes/swift,kperryua/swift,gregomni/swift,swiftix/swift,lorentey/swift,felix91gr/swift,kstaring/swift,sdulal/swift,calebd/swift,milseman/swift,brentdax/swift,brentdax/swift,manavgabhawala/swift,shajrawi/swift,gottesmm/swift,OscarSwanros/swift,danielmartin/swift,practicalswift/swift,gribozavr/swift,Ivacker/swift,Ivacker/swift,jckarter/swift,shajrawi/swift,KrishMunot/swift,modocache/swift,milseman/swift,practicalswift/swift,jtbandes/swift,hooman/swift,deyton/swift,natecook1000/swift,gmilos/swift,kentya6/swift,zisko/swift,harlanhaskins/swift,dduan/swift,xedin/swift,slavapestov/swift,parkera/swift,harlanhaskins/swift,xedin/swift,gottesmm/swift,tinysun212/swift-windows,mightydeveloper/swift,austinzheng/swift,modocache/swift,emilstahl/swift,xedin/swift,rudkx/swift,tjw/swift,devincoughlin/swift,swiftix/swift.old,IngmarStein/swift,bitjammer/swift,swiftix/swift.old,xedin/swift,devincoughlin/swift,devincoughlin/swift,arvedviehweger/swift,djwbrown/swift,benlangmuir/swift,JGiola/swift,hughbe/swift,gottesmm/swift,glessard/swift,djwbrown/swift,tardieu/swift,therealbnut/swift,return/swift,manavgabhawala/swift,Ivacker/swift,IngmarStein/swift,tinysun212/swift-windows,johnno1962d/swift,lorentey/swift,IngmarStein/swift,johnno1962d/swift,apple/swift,therealbnut/swift,codestergit/swift,arvedviehweger/swift,gottesmm/swift,tjw/swift,sschiau/swift,xedin/swift,aschwaighofer/swift,OscarSwanros/swift,practicalswift/swift,modocache/swift,karwa/swift,arvedviehweger/swift,Jnosh/swift,stephentyrone/swift,kstaring/swift,frootloops/swift,swiftix/swift,return/swift,apple/swift,kperryua/swift,deyton/swift,austinzheng/swift,alblue/swift,shahmishal/swift,benlangmuir/swift,atrick/swift,practicalswift/swift,frootloops/swift,arvedviehweger/swift,gribozavr/swift,shahmishal/swift,khizkhiz/swift,cbrentharris/swift,amraboelela/swift,gribozavr/swift,parkera/swift,mightydeveloper/swift,swiftix/swift.old,huonw/swift,amraboelela/swift,SwiftAndroid/swift,bitjammer/swift,nathawes/swift,deyton/swift,adrfer/swift,natecook1000/swift,slavapestov/swift,danielmartin/swift,brentdax/swift,MukeshKumarS/Swift,swiftix/swift.old,emilstahl/swift,SwiftAndroid/swift,kusl/swift,kentya6/swift,codestergit/swift,allevato/swift,austinzheng/swift,swiftix/swift.old,danielmartin/swift,stephentyrone/swift,sschiau/swift,airspeedswift/swift,amraboelela/swift,modocache/swift,jtbandes/swift,tjw/swift,uasys/swift,kentya6/swift,emilstahl/swift,lorentey/swift,practicalswift/swift,amraboelela/swift,dduan/swift,amraboelela/swift,russbishop/swift,jckarter/swift,kentya6/swift,calebd/swift,Ivacker/swift,Jnosh/swift,rudkx/swift,zisko/swift,tjw/swift,tjw/swift,jmgc/swift,ben-ng/swift,brentdax/swift,MukeshKumarS/Swift,adrfer/swift,SwiftAndroid/swift,rudkx/swift,JaSpa/swift,atrick/swift,karwa/swift,cbrentharris/swift,arvedviehweger/swift,danielmartin/swift,jopamer/swift,russbishop/swift,benlangmuir/swift,LeoShimonaka/swift,khizkhiz/swift,LeoShimonaka/swift,ken0nek/swift,tkremenek/swift,devincoughlin/swift,tardieu/swift,glessard/swift,gmilos/swift,kusl/swift,khizkhiz/swift,therealbnut/swift,cbrentharris/swift,russbishop/swift,gregomni/swift,xwu/swift,parkera/swift,dreamsxin/swift,huonw/swift,roambotics/swift,alblue/swift,zisko/swift,kentya6/swift,sdulal/swift,amraboelela/swift,natecook1000/swift,mightydeveloper/swift,ken0nek/swift,nathawes/swift,KrishMunot/swift,hughbe/swift,bitjammer/swift,sdulal/swift,jtbandes/swift,ahoppen/swift,allevato/swift,brentdax/swift,emilstahl/swift,austinzheng/swift,codestergit/swift,milseman/swift,benlangmuir/swift,return/swift,natecook1000/swift,devincoughlin/swift,stephentyrone/swift,felix91gr/swift,hooman/swift,felix91gr/swift,tkremenek/swift,aschwaighofer/swift,khizkhiz/swift,shajrawi/swift,ahoppen/swift,swiftix/swift,johnno1962d/swift,aschwaighofer/swift,parkera/swift,karwa/swift,russbishop/swift,khizkhiz/swift,jckarter/swift,jckarter/swift,gribozavr/swift,MukeshKumarS/Swift,kentya6/swift,slavapestov/swift,therealbnut/swift,MukeshKumarS/Swift,kstaring/swift,tinysun212/swift-windows,karwa/swift,gmilos/swift,practicalswift/swift,tinysun212/swift-windows,IngmarStein/swift,ben-ng/swift,swiftix/swift,OscarSwanros/swift,karwa/swift,aschwaighofer/swift,bitjammer/swift,harlanhaskins/swift,OscarSwanros/swift,devincoughlin/swift,kperryua/swift,therealbnut/swift,gribozavr/swift,manavgabhawala/swift,hughbe/swift,sdulal/swift,jckarter/swift,rudkx/swift,austinzheng/swift,calebd/swift,gmilos/swift,tardieu/swift,slavapestov/swift,alblue/swift,sdulal/swift,jckarter/swift,airspeedswift/swift,adrfer/swift,mightydeveloper/swift,alblue/swift,shahmishal/swift,JGiola/swift,xedin/swift,cbrentharris/swift,hughbe/swift,roambotics/swift,kstaring/swift,allevato/swift,mightydeveloper/swift,kusl/swift,xwu/swift,ahoppen/swift,JaSpa/swift,hooman/swift,harlanhaskins/swift,tardieu/swift,Jnosh/swift,brentdax/swift,tkremenek/swift,huonw/swift,SwiftAndroid/swift,jopamer/swift,johnno1962d/swift,airspeedswift/swift,xwu/swift,kstaring/swift,slavapestov/swift,alblue/swift,bitjammer/swift,zisko/swift,rudkx/swift,glessard/swift,ken0nek/swift,milseman/swift,parkera/swift,uasys/swift,russbishop/swift,jopamer/swift,kperryua/swift,return/swift,atrick/swift,danielmartin/swift,LeoShimonaka/swift,cbrentharris/swift,Jnosh/swift,khizkhiz/swift,nathawes/swift,Jnosh/swift,dduan/swift,tardieu/swift,tkremenek/swift,JaSpa/swift,zisko/swift,djwbrown/swift,manavgabhawala/swift,kusl/swift,felix91gr/swift,jmgc/swift,codestergit/swift,adrfer/swift,tkremenek/swift,jopamer/swift,jtbandes/swift,nathawes/swift,sdulal/swift,cbrentharris/swift,gribozavr/swift,JGiola/swift,jckarter/swift,lorentey/swift,harlanhaskins/swift,JaSpa/swift,ben-ng/swift,karwa/swift,hooman/swift,shajrawi/swift,airspeedswift/swift,manavgabhawala/swift,glessard/swift,shahmishal/swift,jopamer/swift,hughbe/swift,MukeshKumarS/Swift,rudkx/swift,CodaFi/swift,glessard/swift,frootloops/swift,nathawes/swift,manavgabhawala/swift,Jnosh/swift,devincoughlin/swift,gregomni/swift,gottesmm/swift,adrfer/swift,djwbrown/swift,stephentyrone/swift,emilstahl/swift,karwa/swift,kusl/swift,deyton/swift,therealbnut/swift,IngmarStein/swift,karwa/swift,calebd/swift,natecook1000/swift,Ivacker/swift,CodaFi/swift,stephentyrone/swift,cbrentharris/swift,KrishMunot/swift,atrick/swift,bitjammer/swift,gottesmm/swift,ben-ng/swift,kperryua/swift,djwbrown/swift,dduan/swift,tardieu/swift,gmilos/swift,OscarSwanros/swift,kperryua/swift,austinzheng/swift,tkremenek/swift
swift
## Code Before: //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// @exported import AssetsLibrary // Clang module //===----------------------------------------------------------------------===// // ALAssetsLibrary.h //===----------------------------------------------------------------------===// extension ALAssetsLibrary { public func enumerateGroupsWithTypes(var types: UInt32, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock: ALAssetsLibraryAccessFailureBlock!) { if (types == ALAssetsGroupAll) { types = ALAssetsGroupLibrary | ALAssetsGroupAlbum | ALAssetsGroupEvent | ALAssetsGroupFaces | ALAssetsGroupSavedPhotos | ALAssetsGroupPhotoStream } return enumerateGroupsWithTypes(ALAssetsGroupType(types), usingBlock: enumerationBlock, failureBlock) } } ## Instruction: Add missing keyword argument following changes for rdar://problem/18778670 Swift SVN r23095 ## Code After: //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// @exported import AssetsLibrary // Clang module //===----------------------------------------------------------------------===// // ALAssetsLibrary.h //===----------------------------------------------------------------------===// extension ALAssetsLibrary { public func enumerateGroupsWithTypes(var types: UInt32, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock: ALAssetsLibraryAccessFailureBlock!) { if (types == ALAssetsGroupAll) { types = ALAssetsGroupLibrary | ALAssetsGroupAlbum | ALAssetsGroupEvent | ALAssetsGroupFaces | ALAssetsGroupSavedPhotos | ALAssetsGroupPhotoStream } return enumerateGroupsWithTypes(ALAssetsGroupType(types), usingBlock: enumerationBlock, failureBlock: failureBlock) } }
//===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// @exported import AssetsLibrary // Clang module //===----------------------------------------------------------------------===// // ALAssetsLibrary.h //===----------------------------------------------------------------------===// extension ALAssetsLibrary { public func enumerateGroupsWithTypes(var types: UInt32, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock: ALAssetsLibraryAccessFailureBlock!) { if (types == ALAssetsGroupAll) { types = ALAssetsGroupLibrary | ALAssetsGroupAlbum | ALAssetsGroupEvent | ALAssetsGroupFaces | ALAssetsGroupSavedPhotos | ALAssetsGroupPhotoStream } return enumerateGroupsWithTypes(ALAssetsGroupType(types), usingBlock: enumerationBlock, - failureBlock) + failureBlock: failureBlock) ? ++++++++++++++ } }
2
0.0625
1
1
4d3a468fd1f79465711def583b400e5fa0e94399
.travis.yml
.travis.yml
language: node_js node_js: - '5' before_script: - jspm install
language: node_js node_js: - '5' before_script: - jspm config registries.github.auth $JSPM_GITHUB_AUTH_TOKEN - jspm install
Add jspm global var for github registry
Add jspm global var for github registry
YAML
mit
tonysickpony/basegame-match3,tonysickpony/basegame-match3
yaml
## Code Before: language: node_js node_js: - '5' before_script: - jspm install ## Instruction: Add jspm global var for github registry ## Code After: language: node_js node_js: - '5' before_script: - jspm config registries.github.auth $JSPM_GITHUB_AUTH_TOKEN - jspm install
language: node_js node_js: - '5' before_script: + - jspm config registries.github.auth $JSPM_GITHUB_AUTH_TOKEN - jspm install
1
0.2
1
0
b1eff28251684f6397a1142afe9eb0b82aaa1b13
php/img_file.php
php/img_file.php
<?php $id = Router::$parameters['{id}']; $image = Image::ROW($id); if (null == $image) { exit(); } $parts = Router::$parts; if (0 == count($parts)) { $path = Rack::Path('img', md5($image->getId())); } elseif (1 == count($parts)) { $transformation = $parts[0]; $hash = md5($transformation); $path = Rack::Path('img.cache', $hash); if (!file_exists($path)) { Rack::Make('img.cache', $hash); $prim = Prim::transform($image); $prim->setRules($transformation); $prim->saveTo($path); } } else { exit; } header("Expires: ".date("r", time()+9999999)); header("Content-type: ".$image->getMime()); header("Content-Length: ". filesize($path)); readfile($path);
<?php $id = Router::$parameters['{id}']; $image = Image::ROW($id); if (null == $image) { exit(); } $parts = Router::$parts; if (0 == count($parts)) { $path = Rack::Path('img', md5($image->getId())); } elseif (1 == count($parts)) { $transformation = $parts[0]; $hash = md5(Router::$url); $path = Rack::Path('img.cache', $hash); if (!file_exists($path)) { Rack::Make('img.cache', $hash); $prim = Prim::transform($image); $prim->setRules($transformation); $prim->saveTo($path); } } else { exit; } header("Expires: ".date("r", time()+9999999)); header("Content-type: ".$image->getMime()); header("Content-Length: ". filesize($path)); readfile($path);
Fix bug in resizing images module
Fix bug in resizing images module
PHP
agpl-3.0
fulldump/8,fulldump/8
php
## Code Before: <?php $id = Router::$parameters['{id}']; $image = Image::ROW($id); if (null == $image) { exit(); } $parts = Router::$parts; if (0 == count($parts)) { $path = Rack::Path('img', md5($image->getId())); } elseif (1 == count($parts)) { $transformation = $parts[0]; $hash = md5($transformation); $path = Rack::Path('img.cache', $hash); if (!file_exists($path)) { Rack::Make('img.cache', $hash); $prim = Prim::transform($image); $prim->setRules($transformation); $prim->saveTo($path); } } else { exit; } header("Expires: ".date("r", time()+9999999)); header("Content-type: ".$image->getMime()); header("Content-Length: ". filesize($path)); readfile($path); ## Instruction: Fix bug in resizing images module ## Code After: <?php $id = Router::$parameters['{id}']; $image = Image::ROW($id); if (null == $image) { exit(); } $parts = Router::$parts; if (0 == count($parts)) { $path = Rack::Path('img', md5($image->getId())); } elseif (1 == count($parts)) { $transformation = $parts[0]; $hash = md5(Router::$url); $path = Rack::Path('img.cache', $hash); if (!file_exists($path)) { Rack::Make('img.cache', $hash); $prim = Prim::transform($image); $prim->setRules($transformation); $prim->saveTo($path); } } else { exit; } header("Expires: ".date("r", time()+9999999)); header("Content-type: ".$image->getMime()); header("Content-Length: ". filesize($path)); readfile($path);
<?php $id = Router::$parameters['{id}']; $image = Image::ROW($id); if (null == $image) { exit(); } $parts = Router::$parts; if (0 == count($parts)) { $path = Rack::Path('img', md5($image->getId())); } elseif (1 == count($parts)) { $transformation = $parts[0]; - $hash = md5($transformation); + $hash = md5(Router::$url); $path = Rack::Path('img.cache', $hash); if (!file_exists($path)) { Rack::Make('img.cache', $hash); $prim = Prim::transform($image); $prim->setRules($transformation); $prim->saveTo($path); } } else { exit; } - header("Expires: ".date("r", time()+9999999)); header("Content-type: ".$image->getMime()); header("Content-Length: ". filesize($path)); readfile($path);
3
0.09375
1
2
3cf9569e4946949916d4eaa5f83ae180913eb8f6
.github/workflows/publish-assets-releases.yml
.github/workflows/publish-assets-releases.yml
name: Build and Publish Assets built for Releases on: release: types: - created jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: path: 'frappe' - uses: actions/setup-node@v1 with: python-version: '12.x' - uses: actions/setup-python@v2 with: python-version: '3.6' - name: Set up bench for current push run: | npm install -g yarn pip3 install -U frappe-bench bench init frappe-bench --no-procfile --no-backups --skip-assets --skip-redis-config-generation --python $(which python) --frappe-path $GITHUB_WORKSPACE/frappe cd frappe-bench && bench build - name: Package assets run: | mkdir -p $GITHUB_WORKSPACE/build tar -cvpzf $GITHUB_WORKSPACE/build/$GITHUB_SHA.tar.gz ./frappe-bench/sites/assets/js ./frappe-bench/sites/assets/css - name: Attach Assets to Release uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: $GITHUB_WORKSPACE/build/$GITHUB_SHA.tar.gz asset_name: assets.tar.gz tag: ${{ github.ref }} overwrite: true body: "Assets automatically generated which may be used to avoid re-building on local benches"
name: Build and Publish Assets built for Releases on: release: types: [ created ] env: GITHUB_TOKEN: ${{ github.token }} jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: path: 'frappe' - uses: actions/setup-node@v1 with: python-version: '12.x' - uses: actions/setup-python@v2 with: python-version: '3.6' - name: Set up bench for current push run: | npm install -g yarn pip3 install -U frappe-bench bench init frappe-bench --no-procfile --no-backups --skip-assets --skip-redis-config-generation --python $(which python) --frappe-path $GITHUB_WORKSPACE/frappe cd frappe-bench && bench build - name: Package assets run: | mkdir -p $GITHUB_WORKSPACE/build tar -cvpzf $GITHUB_WORKSPACE/build/assets.tar.gz ./frappe-bench/sites/assets/js ./frappe-bench/sites/assets/css - name: Get release id: get_release uses: bruceadams/get-release@v1.2.0 - name: Upload built Assets to Release uses: actions/upload-release-asset@v1.0.2 with: upload_url: ${{ steps.get_release.outputs.upload_url }} asset_path: build/assets.tar.gz asset_name: assets.tar.gz asset_content_type: application/octet-stream
Use a different action to attach built asset
fix: Use a different action to attach built asset
YAML
mit
frappe/frappe,adityahase/frappe,almeidapaulopt/frappe,yashodhank/frappe,StrellaGroup/frappe,almeidapaulopt/frappe,StrellaGroup/frappe,adityahase/frappe,mhbu50/frappe,frappe/frappe,adityahase/frappe,almeidapaulopt/frappe,almeidapaulopt/frappe,mhbu50/frappe,yashodhank/frappe,saurabh6790/frappe,yashodhank/frappe,yashodhank/frappe,frappe/frappe,StrellaGroup/frappe,mhbu50/frappe,mhbu50/frappe,saurabh6790/frappe,saurabh6790/frappe,adityahase/frappe,saurabh6790/frappe
yaml
## Code Before: name: Build and Publish Assets built for Releases on: release: types: - created jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: path: 'frappe' - uses: actions/setup-node@v1 with: python-version: '12.x' - uses: actions/setup-python@v2 with: python-version: '3.6' - name: Set up bench for current push run: | npm install -g yarn pip3 install -U frappe-bench bench init frappe-bench --no-procfile --no-backups --skip-assets --skip-redis-config-generation --python $(which python) --frappe-path $GITHUB_WORKSPACE/frappe cd frappe-bench && bench build - name: Package assets run: | mkdir -p $GITHUB_WORKSPACE/build tar -cvpzf $GITHUB_WORKSPACE/build/$GITHUB_SHA.tar.gz ./frappe-bench/sites/assets/js ./frappe-bench/sites/assets/css - name: Attach Assets to Release uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: $GITHUB_WORKSPACE/build/$GITHUB_SHA.tar.gz asset_name: assets.tar.gz tag: ${{ github.ref }} overwrite: true body: "Assets automatically generated which may be used to avoid re-building on local benches" ## Instruction: fix: Use a different action to attach built asset ## Code After: name: Build and Publish Assets built for Releases on: release: types: [ created ] env: GITHUB_TOKEN: ${{ github.token }} jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: path: 'frappe' - uses: actions/setup-node@v1 with: python-version: '12.x' - uses: actions/setup-python@v2 with: python-version: '3.6' - name: Set up bench for current push run: | npm install -g yarn pip3 install -U frappe-bench bench init frappe-bench --no-procfile --no-backups --skip-assets --skip-redis-config-generation --python $(which python) --frappe-path $GITHUB_WORKSPACE/frappe cd frappe-bench && bench build - name: Package assets run: | mkdir -p $GITHUB_WORKSPACE/build tar -cvpzf $GITHUB_WORKSPACE/build/assets.tar.gz ./frappe-bench/sites/assets/js ./frappe-bench/sites/assets/css - name: Get release id: get_release uses: bruceadams/get-release@v1.2.0 - name: Upload built Assets to Release uses: actions/upload-release-asset@v1.0.2 with: upload_url: ${{ steps.get_release.outputs.upload_url }} asset_path: build/assets.tar.gz asset_name: assets.tar.gz asset_content_type: application/octet-stream
name: Build and Publish Assets built for Releases on: release: - types: - - created + types: [ created ] + + env: + GITHUB_TOKEN: ${{ github.token }} jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: path: 'frappe' - uses: actions/setup-node@v1 with: python-version: '12.x' - uses: actions/setup-python@v2 with: python-version: '3.6' - name: Set up bench for current push run: | npm install -g yarn pip3 install -U frappe-bench bench init frappe-bench --no-procfile --no-backups --skip-assets --skip-redis-config-generation --python $(which python) --frappe-path $GITHUB_WORKSPACE/frappe cd frappe-bench && bench build - name: Package assets run: | mkdir -p $GITHUB_WORKSPACE/build - tar -cvpzf $GITHUB_WORKSPACE/build/$GITHUB_SHA.tar.gz ./frappe-bench/sites/assets/js ./frappe-bench/sites/assets/css ? ^^^^^^^^^^^ + tar -cvpzf $GITHUB_WORKSPACE/build/assets.tar.gz ./frappe-bench/sites/assets/js ./frappe-bench/sites/assets/css ? ^^^^^^ + - name: Get release + id: get_release + uses: bruceadams/get-release@v1.2.0 + - - name: Attach Assets to Release ? ^ ---- + - name: Upload built Assets to Release ? ^^^^^^^^^^^ - uses: svenstaro/upload-release-action@v2 ? ^^^ ---- ^ --- + uses: actions/upload-release-asset@v1.0.2 ? ^^^^^ ^^^ ++++ with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: $GITHUB_WORKSPACE/build/$GITHUB_SHA.tar.gz + upload_url: ${{ steps.get_release.outputs.upload_url }} + asset_path: build/assets.tar.gz asset_name: assets.tar.gz + asset_content_type: application/octet-stream + - tag: ${{ github.ref }} - overwrite: true - body: "Assets automatically generated which may be used to avoid re-building on local benches"
25
0.595238
15
10
34cfd1e71311299f17c3d91b96a6313d6aaccab6
src/scenes/home/landing/landing.js
src/scenes/home/landing/landing.js
import React from 'react'; import LinkButton from 'shared/components/linkButton/linkButton'; import Donate from 'shared/components/donate/donate'; import Join from 'shared/components/join/join'; import WhatWeDo from './whatWeDo/whatWeDo'; import Membership from './membership/membership'; import MoreInformation from './moreInformation/moreInformation'; import Partners from './partners/partners'; import SuccessStories from './successStories/successStories'; import styles from './landing.css'; const Landing = () => ( <div className={styles.landing}> <div className={styles.pageHeading}> <h1>The largest community dedicated to helping military veterans and families launch software development careers. </h1> <LinkButton text="Join" theme="red" link="/signup" /> </div> <WhatWeDo /> <Membership /> <MoreInformation /> <SuccessStories /> <Partners /> <Donate /> <Join /> </div> ); export default Landing;
import React from 'react'; import LinkButton from 'shared/components/linkButton/linkButton'; import AnnounceBanner from 'shared/components/announceBanner/announceBanner'; import WhatWeDo from './whatWeDo/whatWeDo'; import Membership from './membership/membership'; import MoreInformation from './moreInformation/moreInformation'; import SuccessStories from './successStories/successStories'; import Partners from './partners/partners'; import Donate from '../../../shared/components/donate/donate'; import Join from '../../../shared/components/join/join'; import BenefitBanner from '../../../images/benefit.jpg'; import MobileBenefitBanner from '../../../images/benefit-mobile.jpg'; import styles from './landing.css'; const Landing = () => ( <div className={styles.landing}> <div className={styles.pageHeading}> <h1> The largest community dedicated to helping military veterans and families launch software development careers. </h1> <LinkButton text="Join" theme="red" link="/signup" /> </div> <AnnounceBanner link="/benefit" imageSource={BenefitBanner} fallbackImage450pxWideSource={MobileBenefitBanner} altText="Click here to find more information about our Benefit Dinner and Silent Auction on November 11th" /> <WhatWeDo /> <Membership /> <MoreInformation /> <SuccessStories /> <Partners /> <Donate /> <Join /> </div> ); export default Landing;
Implement Announce Banner for /benefit
Implement Announce Banner for /benefit
JavaScript
mit
OperationCode/operationcode_frontend,hollomancer/operationcode_frontend,hollomancer/operationcode_frontend,sethbergman/operationcode_frontend,tskuse/operationcode_frontend,OperationCode/operationcode_frontend,hollomancer/operationcode_frontend,NestorSegura/operationcode_frontend,OperationCode/operationcode_frontend,NestorSegura/operationcode_frontend,tskuse/operationcode_frontend,NestorSegura/operationcode_frontend,tal87/operationcode_frontend,sethbergman/operationcode_frontend,sethbergman/operationcode_frontend,tskuse/operationcode_frontend,tal87/operationcode_frontend,tal87/operationcode_frontend
javascript
## Code Before: import React from 'react'; import LinkButton from 'shared/components/linkButton/linkButton'; import Donate from 'shared/components/donate/donate'; import Join from 'shared/components/join/join'; import WhatWeDo from './whatWeDo/whatWeDo'; import Membership from './membership/membership'; import MoreInformation from './moreInformation/moreInformation'; import Partners from './partners/partners'; import SuccessStories from './successStories/successStories'; import styles from './landing.css'; const Landing = () => ( <div className={styles.landing}> <div className={styles.pageHeading}> <h1>The largest community dedicated to helping military veterans and families launch software development careers. </h1> <LinkButton text="Join" theme="red" link="/signup" /> </div> <WhatWeDo /> <Membership /> <MoreInformation /> <SuccessStories /> <Partners /> <Donate /> <Join /> </div> ); export default Landing; ## Instruction: Implement Announce Banner for /benefit ## Code After: import React from 'react'; import LinkButton from 'shared/components/linkButton/linkButton'; import AnnounceBanner from 'shared/components/announceBanner/announceBanner'; import WhatWeDo from './whatWeDo/whatWeDo'; import Membership from './membership/membership'; import MoreInformation from './moreInformation/moreInformation'; import SuccessStories from './successStories/successStories'; import Partners from './partners/partners'; import Donate from '../../../shared/components/donate/donate'; import Join from '../../../shared/components/join/join'; import BenefitBanner from '../../../images/benefit.jpg'; import MobileBenefitBanner from '../../../images/benefit-mobile.jpg'; import styles from './landing.css'; const Landing = () => ( <div className={styles.landing}> <div className={styles.pageHeading}> <h1> The largest community dedicated to helping military veterans and families launch software development careers. </h1> <LinkButton text="Join" theme="red" link="/signup" /> </div> <AnnounceBanner link="/benefit" imageSource={BenefitBanner} fallbackImage450pxWideSource={MobileBenefitBanner} altText="Click here to find more information about our Benefit Dinner and Silent Auction on November 11th" /> <WhatWeDo /> <Membership /> <MoreInformation /> <SuccessStories /> <Partners /> <Donate /> <Join /> </div> ); export default Landing;
import React from 'react'; import LinkButton from 'shared/components/linkButton/linkButton'; + import AnnounceBanner from 'shared/components/announceBanner/announceBanner'; - import Donate from 'shared/components/donate/donate'; - import Join from 'shared/components/join/join'; import WhatWeDo from './whatWeDo/whatWeDo'; import Membership from './membership/membership'; import MoreInformation from './moreInformation/moreInformation'; + import SuccessStories from './successStories/successStories'; import Partners from './partners/partners'; - import SuccessStories from './successStories/successStories'; + import Donate from '../../../shared/components/donate/donate'; + import Join from '../../../shared/components/join/join'; + import BenefitBanner from '../../../images/benefit.jpg'; + import MobileBenefitBanner from '../../../images/benefit-mobile.jpg'; import styles from './landing.css'; const Landing = () => ( <div className={styles.landing}> <div className={styles.pageHeading}> + <h1> - <h1>The largest community dedicated to helping military veterans and ? ^^^^ + The largest community dedicated to helping military veterans and families launch software ? ^^ +++++++++++++++++++++++++ - families launch software development careers. + development careers. </h1> <LinkButton text="Join" theme="red" link="/signup" /> </div> + <AnnounceBanner + link="/benefit" + imageSource={BenefitBanner} + fallbackImage450pxWideSource={MobileBenefitBanner} + altText="Click here to find more information about our Benefit Dinner and Silent Auction on November 11th" + /> <WhatWeDo /> <Membership /> <MoreInformation /> <SuccessStories /> <Partners /> <Donate /> <Join /> </div> ); export default Landing;
20
0.666667
15
5
8d9e0ab93473653beb17dba273376897f55660d8
core/lib/generators/refinery/engine/templates/db/seeds.rb
core/lib/generators/refinery/engine/templates/db/seeds.rb
if defined?(::Refinery::User) ::Refinery::User.all.each do |user| if user.plugins.where(:name => 'refinerycms-<%= namespacing.underscore %>').blank? user.plugins.create(:name => 'refinerycms-<%= namespacing.underscore %>', :position => (user.plugins.maximum(:position) || -1) +1) end end end <% unless skip_frontend? %> url = "/<%= [(namespacing.underscore if namespacing.underscore != plural_name), plural_name].compact.join('/') %>" if defined?(::Refinery::Page) && ::Refinery::Page.where(:link_url => url).empty? page = ::Refinery::Page.create( :title => '<%= class_name.pluralize.underscore.titleize %>', :link_url => url, :deletable => false, :menu_match => "^#{url}(\/|\/.+?|)$" ) Refinery::Pages.default_parts.each do |default_page_part| page.parts.create(:title => default_page_part, :body => nil) end end <% end %>
if defined?(::Refinery::User) ::Refinery::User.all.each do |user| if user.plugins.where(:name => 'refinerycms-<%= namespacing.underscore %>').blank? user.plugins.create(:name => 'refinerycms-<%= namespacing.underscore %>', :position => (user.plugins.maximum(:position) || -1) +1) end end end <% unless skip_frontend? %> url = "/<%= [(namespacing.underscore if namespacing.underscore != plural_name), plural_name].compact.join('/') %>" if defined?(::Refinery::Page) && ::Refinery::Page.where(:link_url => url).empty? page = ::Refinery::Page.create( :title => '<%= class_name.pluralize.underscore.titleize %>', :link_url => url, :deletable => false, :menu_match => "^#{url}(\/|\/.+?|)$" ) Refinery::Pages.default_parts.each_with_index do |default_page_part, index| page.parts.create(:title => default_page_part, :body => nil, :position => index) end end <% end %>
Set page part positions on engine generation.
Set page part positions on engine generation.
Ruby
mit
johanb/refinerycms,bryanmtl/g-refinerycms,kappiah/refinerycms,kelkoo-services/refinerycms,stefanspicer/refinerycms,Eric-Guo/refinerycms,chrise86/refinerycms,LytayTOUCH/refinerycms,anitagraham/refinerycms,simi/refinerycms,gwagener/refinerycms,bricesanchez/refinerycms,johanb/refinerycms,stefanspicer/refinerycms,kappiah/refinerycms,johanb/refinerycms,sideci-sample/sideci-sample-refinerycms,louim/refinerycms,KingLemuel/refinerycms,mkaplan9/refinerycms,mabras/refinerycms,gwagener/refinerycms,trevornez/refinerycms,simi/refinerycms,mkaplan9/refinerycms,mlinfoot/refinerycms,LytayTOUCH/refinerycms,chrise86/refinerycms,kappiah/refinerycms,refinery/refinerycms,hoopla-software/refinerycms,Eric-Guo/refinerycms,anitagraham/refinerycms,mkaplan9/refinerycms,louim/refinerycms,aguzubiaga/refinerycms,Retimont/refinerycms,mabras/refinerycms,trevornez/refinerycms,SmartMedia/refinerycms-with-custom-icons,bryanmtl/g-refinerycms,bricesanchez/refinerycms,mlinfoot/refinerycms,mobilityhouse/refinerycms,refinery/refinerycms,mojarra/myrefinerycms,trevornez/refinerycms,anitagraham/refinerycms,mlinfoot/refinerycms,hoopla-software/refinerycms,gwagener/refinerycms,KingLemuel/refinerycms,aguzubiaga/refinerycms,stefanspicer/refinerycms,kelkoo-services/refinerycms,simi/refinerycms,KingLemuel/refinerycms,mobilityhouse/refinerycms,chrise86/refinerycms,Retimont/refinerycms,sideci-sample/sideci-sample-refinerycms,Retimont/refinerycms,LytayTOUCH/refinerycms,refinery/refinerycms,mabras/refinerycms,aguzubiaga/refinerycms,hoopla-software/refinerycms,SmartMedia/refinerycms-with-custom-icons,simi/refinerycms,mojarra/myrefinerycms,Eric-Guo/refinerycms
ruby
## Code Before: if defined?(::Refinery::User) ::Refinery::User.all.each do |user| if user.plugins.where(:name => 'refinerycms-<%= namespacing.underscore %>').blank? user.plugins.create(:name => 'refinerycms-<%= namespacing.underscore %>', :position => (user.plugins.maximum(:position) || -1) +1) end end end <% unless skip_frontend? %> url = "/<%= [(namespacing.underscore if namespacing.underscore != plural_name), plural_name].compact.join('/') %>" if defined?(::Refinery::Page) && ::Refinery::Page.where(:link_url => url).empty? page = ::Refinery::Page.create( :title => '<%= class_name.pluralize.underscore.titleize %>', :link_url => url, :deletable => false, :menu_match => "^#{url}(\/|\/.+?|)$" ) Refinery::Pages.default_parts.each do |default_page_part| page.parts.create(:title => default_page_part, :body => nil) end end <% end %> ## Instruction: Set page part positions on engine generation. ## Code After: if defined?(::Refinery::User) ::Refinery::User.all.each do |user| if user.plugins.where(:name => 'refinerycms-<%= namespacing.underscore %>').blank? user.plugins.create(:name => 'refinerycms-<%= namespacing.underscore %>', :position => (user.plugins.maximum(:position) || -1) +1) end end end <% unless skip_frontend? %> url = "/<%= [(namespacing.underscore if namespacing.underscore != plural_name), plural_name].compact.join('/') %>" if defined?(::Refinery::Page) && ::Refinery::Page.where(:link_url => url).empty? page = ::Refinery::Page.create( :title => '<%= class_name.pluralize.underscore.titleize %>', :link_url => url, :deletable => false, :menu_match => "^#{url}(\/|\/.+?|)$" ) Refinery::Pages.default_parts.each_with_index do |default_page_part, index| page.parts.create(:title => default_page_part, :body => nil, :position => index) end end <% end %>
if defined?(::Refinery::User) ::Refinery::User.all.each do |user| if user.plugins.where(:name => 'refinerycms-<%= namespacing.underscore %>').blank? user.plugins.create(:name => 'refinerycms-<%= namespacing.underscore %>', :position => (user.plugins.maximum(:position) || -1) +1) end end end <% unless skip_frontend? %> url = "/<%= [(namespacing.underscore if namespacing.underscore != plural_name), plural_name].compact.join('/') %>" if defined?(::Refinery::Page) && ::Refinery::Page.where(:link_url => url).empty? page = ::Refinery::Page.create( :title => '<%= class_name.pluralize.underscore.titleize %>', :link_url => url, :deletable => false, :menu_match => "^#{url}(\/|\/.+?|)$" ) - Refinery::Pages.default_parts.each do |default_page_part| + Refinery::Pages.default_parts.each_with_index do |default_page_part, index| ? +++++++++++ +++++++ - page.parts.create(:title => default_page_part, :body => nil) + page.parts.create(:title => default_page_part, :body => nil, :position => index) ? ++++++++++++++++++++ end end <% end %>
4
0.173913
2
2