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
866c135c37f278c2e29e32e38cc934af8b56c0a3
src/Models/GameTimeModel.php
src/Models/GameTimeModel.php
<?php namespace TruckersMP\Models; use Carbon\Carbon; class GameTimeModel { /** * @var Carbon */ public $time; /** * GameTimeModel constructor. * * @param array $response * @throws \Exception */ public function __construct(array $response) { if ($response['error']) { throw new \Exception($response['error']); } $load['minutes'] = $response['game_time']; $load['hours'] = $load['minutes'] / 60; $load['minutes'] = $load['minutes'] % 60; $load['days'] = $load['hours'] / 24; $load['hours'] = $load['hours'] % 24; $load['months'] = $load['days'] / 30; $load['days'] = $load['days'] % 30; $load['years'] = intval($load['months'] / 12); $load['months'] = $load['months'] % 12; $this->time = Carbon::create($load['years'], $load['months'], $load['days'], $load['hours'], $load['minutes']); } }
<?php namespace TruckersMP\Models; use Carbon\Carbon; use TruckersMP\Exceptions\APIErrorException; class GameTimeModel { /** * @var Carbon */ public $time; /** * GameTimeModel constructor. * * @param array $response * @throws \Exception */ public function __construct(array $response) { if ($response['error']) { throw new APIErrorException($response['error']); } $load['minutes'] = $response['game_time']; $load['hours'] = $load['minutes'] / 60; $load['minutes'] = $load['minutes'] % 60; $load['days'] = $load['hours'] / 24; $load['hours'] = $load['hours'] % 24; $load['months'] = $load['days'] / 30; $load['days'] = $load['days'] % 30; $load['years'] = intval($load['months'] / 12); $load['months'] = $load['months'] % 12; $this->time = Carbon::create($load['years'], $load['months'], $load['days'], $load['hours'], $load['minutes']); } }
Throw APIErrorException if there's a gametime endpoint error
Throw APIErrorException if there's a gametime endpoint error
PHP
mit
TruckersMP/API-Client
php
## Code Before: <?php namespace TruckersMP\Models; use Carbon\Carbon; class GameTimeModel { /** * @var Carbon */ public $time; /** * GameTimeModel constructor. * * @param array $response * @throws \Exception */ public function __construct(array $response) { if ($response['error']) { throw new \Exception($response['error']); } $load['minutes'] = $response['game_time']; $load['hours'] = $load['minutes'] / 60; $load['minutes'] = $load['minutes'] % 60; $load['days'] = $load['hours'] / 24; $load['hours'] = $load['hours'] % 24; $load['months'] = $load['days'] / 30; $load['days'] = $load['days'] % 30; $load['years'] = intval($load['months'] / 12); $load['months'] = $load['months'] % 12; $this->time = Carbon::create($load['years'], $load['months'], $load['days'], $load['hours'], $load['minutes']); } } ## Instruction: Throw APIErrorException if there's a gametime endpoint error ## Code After: <?php namespace TruckersMP\Models; use Carbon\Carbon; use TruckersMP\Exceptions\APIErrorException; class GameTimeModel { /** * @var Carbon */ public $time; /** * GameTimeModel constructor. * * @param array $response * @throws \Exception */ public function __construct(array $response) { if ($response['error']) { throw new APIErrorException($response['error']); } $load['minutes'] = $response['game_time']; $load['hours'] = $load['minutes'] / 60; $load['minutes'] = $load['minutes'] % 60; $load['days'] = $load['hours'] / 24; $load['hours'] = $load['hours'] % 24; $load['months'] = $load['days'] / 30; $load['days'] = $load['days'] % 30; $load['years'] = intval($load['months'] / 12); $load['months'] = $load['months'] % 12; $this->time = Carbon::create($load['years'], $load['months'], $load['days'], $load['hours'], $load['minutes']); } }
<?php namespace TruckersMP\Models; use Carbon\Carbon; + use TruckersMP\Exceptions\APIErrorException; class GameTimeModel { /** * @var Carbon */ public $time; /** * GameTimeModel constructor. * * @param array $response * @throws \Exception */ public function __construct(array $response) { if ($response['error']) { - throw new \Exception($response['error']); ? ^ + throw new APIErrorException($response['error']); ? ^^^^^^^^ } $load['minutes'] = $response['game_time']; $load['hours'] = $load['minutes'] / 60; $load['minutes'] = $load['minutes'] % 60; $load['days'] = $load['hours'] / 24; $load['hours'] = $load['hours'] % 24; $load['months'] = $load['days'] / 30; $load['days'] = $load['days'] % 30; $load['years'] = intval($load['months'] / 12); $load['months'] = $load['months'] % 12; $this->time = Carbon::create($load['years'], $load['months'], $load['days'], $load['hours'], $load['minutes']); } }
3
0.071429
2
1
7ae1b8621230634411c70f018c5dbc7bdb710f8e
lib/ethon/easy/options.rb
lib/ethon/easy/options.rb
module Ethon class Easy # This module contains the logic and knowledge about the # available options on easy. module Options attr_reader :url def url=(value) @url = value Curl.set_option(:url, value, handle) end Curl.easy_options.each do |opt,_| eval %Q< def #{opt}=(value) Curl.set_option(:#{opt}, value, handle) end > unless method_defined? opt.to_s+"=" end end end end
module Ethon class Easy # This module contains the logic and knowledge about the # available options on easy. module Options attr_reader :url def url=(value) @url = value Curl.set_option(:url, value, handle) end Curl.easy_options.each do |opt,props| eval %Q< def #{opt}=(value) Curl.set_option(:#{opt}, value, handle) value end > unless method_defined? opt.to_s+"=" if props[:type]==:callback then eval %Q< def #{opt}(&block) Curl.set_option(:#{opt}, block, handle) nil end > unless method_defined? opt.to_s end end end end end
Add closure functions for cURL callbacks
Add closure functions for cURL callbacks
Ruby
mit
sportngin/ethon,typhoeus/ethon,kkirsche/ethon
ruby
## Code Before: module Ethon class Easy # This module contains the logic and knowledge about the # available options on easy. module Options attr_reader :url def url=(value) @url = value Curl.set_option(:url, value, handle) end Curl.easy_options.each do |opt,_| eval %Q< def #{opt}=(value) Curl.set_option(:#{opt}, value, handle) end > unless method_defined? opt.to_s+"=" end end end end ## Instruction: Add closure functions for cURL callbacks ## Code After: module Ethon class Easy # This module contains the logic and knowledge about the # available options on easy. module Options attr_reader :url def url=(value) @url = value Curl.set_option(:url, value, handle) end Curl.easy_options.each do |opt,props| eval %Q< def #{opt}=(value) Curl.set_option(:#{opt}, value, handle) value end > unless method_defined? opt.to_s+"=" if props[:type]==:callback then eval %Q< def #{opt}(&block) Curl.set_option(:#{opt}, block, handle) nil end > unless method_defined? opt.to_s end end end end end
module Ethon class Easy # This module contains the logic and knowledge about the # available options on easy. module Options attr_reader :url def url=(value) @url = value Curl.set_option(:url, value, handle) end - Curl.easy_options.each do |opt,_| ? ^ + Curl.easy_options.each do |opt,props| ? ^^^^^ eval %Q< def #{opt}=(value) Curl.set_option(:#{opt}, value, handle) + value end > unless method_defined? opt.to_s+"=" + if props[:type]==:callback then + eval %Q< + def #{opt}(&block) + Curl.set_option(:#{opt}, block, handle) + nil + end + > unless method_defined? opt.to_s + end end end end end
11
0.478261
10
1
cf8b6685f8fcadb3f50999ee587c7316741808f9
kotlin/src/main/kotlin/2018/Lib05.kt
kotlin/src/main/kotlin/2018/Lib05.kt
package aoc.kt.y2018; /** * Day 5. */ /** Part 1 */ fun processPolymer1(input: String): String { val output = input.toCharArray() .forEachIndexed { i, c -> if (i != 0) { var reacting = true var range = 0..0 while (reacting) { var offset = 0 if (reactionOccurs(c, input.get(-1))) { } else { reacting = false } } } } return output.toString() } /** Part 2 */ fun processPolymer2(input: String): String { return "42" } fun reactionOccurs(char: Char, prev: Char): Boolean { return false }
package aoc.kt.y2018; /** * Day 5. */ /** Part 1 */ fun processPolymer1(input: String): String { var polymer = Pair(input, true) while (polymer.second) { polymer = react(polymer.first) } return polymer //.first.length .toString() } /** Part 2 */ fun processPolymer2(input: String): String { return "42" } fun react(input: String): Pair<String, Boolean> { var result = mutableListOf<Char>() var polymer = input.toMutableList() var reactionOccured = false while (polymer.next() != null) { polymer.dequeue()?.let { a -> if (polymer.next() != null) { polymer.dequeue()?.let { b -> if (a.equals(b, true)) { reactionOccured = true } else { result.push(a) polymer.enqueue(b) } } } } } val resultStr: String = result.map { it.toString() }.reduce { acc, n -> acc + n } return Pair(resultStr, reactionOccured) } fun <T> MutableList<T>.push(e: T) { this.add(e) } fun <T> MutableList<T>.dequeue(): T? { if (this.isNotEmpty()) { return this.removeAt(0) } else { return null } } fun <T> MutableList<T>.enqueue(e: T) { this.add(0, e) } fun <T> MutableList<T>.next(): T? { return this.getOrNull(0) }
Update with new approach to day 5
Update with new approach to day 5
Kotlin
mit
nathanjent/adventofcode-rust
kotlin
## Code Before: package aoc.kt.y2018; /** * Day 5. */ /** Part 1 */ fun processPolymer1(input: String): String { val output = input.toCharArray() .forEachIndexed { i, c -> if (i != 0) { var reacting = true var range = 0..0 while (reacting) { var offset = 0 if (reactionOccurs(c, input.get(-1))) { } else { reacting = false } } } } return output.toString() } /** Part 2 */ fun processPolymer2(input: String): String { return "42" } fun reactionOccurs(char: Char, prev: Char): Boolean { return false } ## Instruction: Update with new approach to day 5 ## Code After: package aoc.kt.y2018; /** * Day 5. */ /** Part 1 */ fun processPolymer1(input: String): String { var polymer = Pair(input, true) while (polymer.second) { polymer = react(polymer.first) } return polymer //.first.length .toString() } /** Part 2 */ fun processPolymer2(input: String): String { return "42" } fun react(input: String): Pair<String, Boolean> { var result = mutableListOf<Char>() var polymer = input.toMutableList() var reactionOccured = false while (polymer.next() != null) { polymer.dequeue()?.let { a -> if (polymer.next() != null) { polymer.dequeue()?.let { b -> if (a.equals(b, true)) { reactionOccured = true } else { result.push(a) polymer.enqueue(b) } } } } } val resultStr: String = result.map { it.toString() }.reduce { acc, n -> acc + n } return Pair(resultStr, reactionOccured) } fun <T> MutableList<T>.push(e: T) { this.add(e) } fun <T> MutableList<T>.dequeue(): T? { if (this.isNotEmpty()) { return this.removeAt(0) } else { return null } } fun <T> MutableList<T>.enqueue(e: T) { this.add(0, e) } fun <T> MutableList<T>.next(): T? { return this.getOrNull(0) }
package aoc.kt.y2018; /** * Day 5. */ /** Part 1 */ fun processPolymer1(input: String): String { + var polymer = Pair(input, true) + while (polymer.second) { + polymer = react(polymer.first) - val output = input.toCharArray() - .forEachIndexed { i, c -> - if (i != 0) { - var reacting = true - var range = 0..0 - while (reacting) { - var offset = 0 - if (reactionOccurs(c, input.get(-1))) { - } else { - reacting = false - } - } - } } - return output.toString() + + return polymer + //.first.length + .toString() } /** Part 2 */ fun processPolymer2(input: String): String { return "42" } - fun reactionOccurs(char: Char, prev: Char): Boolean { - return false + fun react(input: String): Pair<String, Boolean> { + var result = mutableListOf<Char>() + var polymer = input.toMutableList() + var reactionOccured = false + + while (polymer.next() != null) { + polymer.dequeue()?.let { a -> + if (polymer.next() != null) { + polymer.dequeue()?.let { b -> + if (a.equals(b, true)) { + reactionOccured = true + } else { + result.push(a) + polymer.enqueue(b) + } + } + } + } + } + + val resultStr: String = result.map { it.toString() }.reduce { acc, n -> acc + n } + return Pair(resultStr, reactionOccured) } + + fun <T> MutableList<T>.push(e: T) { + this.add(e) + } + + fun <T> MutableList<T>.dequeue(): T? { + if (this.isNotEmpty()) { + return this.removeAt(0) + } else { + return null + } + } + + fun <T> MutableList<T>.enqueue(e: T) { + this.add(0, e) + } + + fun <T> MutableList<T>.next(): T? { + return this.getOrNull(0) + }
65
1.969697
49
16
15cef833ea287686d42c69cb17205c852be2fce1
site-cookbooks/dna/recipes/dotfiles.rb
site-cookbooks/dna/recipes/dotfiles.rb
include_recipe "dna::folders" # # Download dotfiles # git "Download wilr/dotfiles" do repository "http://github.com/wilr/dotfiles.git" destination "#{node['sprout']['home']}/Scripts/dotfiles" action :sync user node['current_user'] end # # Download gitprompt # git "Download lvv/git-prompt" do repository "http://github.com/lvv/git-prompt.git" destination "#{node['sprout']['home']}/Scripts/git-prompt" action :sync end execute "Install dotfiles" do command "#{node['sprout']['home']}/Scripts/dotfiles/bootstrap.sh link -f" user node['current_user'] end
include_recipe "dna::folders" # # Download dotfiles # git "Download dnadesign/dotfiles" do repository "http://github.com/dnadesign/dotfiles.git" destination "#{node['sprout']['home']}/Scripts/dotfiles" action :sync user node['current_user'] not_if { ::File.exists?("#{node['sprout']['home']}/Scripts/dotfiles") } end # # Download gitprompt # git "Download lvv/git-prompt" do repository "http://github.com/lvv/git-prompt.git" destination "#{node['sprout']['home']}/Scripts/git-prompt" action :sync end execute "Install dotfiles" do command "#{node['sprout']['home']}/Scripts/dotfiles/bootstrap.sh link -f" user node['current_user'] end
Use DNA dot files rather than my personal one at this stage
Use DNA dot files rather than my personal one at this stage
Ruby
unlicense
dnadesign/sprout-wrap,dnadesign/sprout-wrap,dnadesign/sprout-wrap,dnadesign/sprout-wrap
ruby
## Code Before: include_recipe "dna::folders" # # Download dotfiles # git "Download wilr/dotfiles" do repository "http://github.com/wilr/dotfiles.git" destination "#{node['sprout']['home']}/Scripts/dotfiles" action :sync user node['current_user'] end # # Download gitprompt # git "Download lvv/git-prompt" do repository "http://github.com/lvv/git-prompt.git" destination "#{node['sprout']['home']}/Scripts/git-prompt" action :sync end execute "Install dotfiles" do command "#{node['sprout']['home']}/Scripts/dotfiles/bootstrap.sh link -f" user node['current_user'] end ## Instruction: Use DNA dot files rather than my personal one at this stage ## Code After: include_recipe "dna::folders" # # Download dotfiles # git "Download dnadesign/dotfiles" do repository "http://github.com/dnadesign/dotfiles.git" destination "#{node['sprout']['home']}/Scripts/dotfiles" action :sync user node['current_user'] not_if { ::File.exists?("#{node['sprout']['home']}/Scripts/dotfiles") } end # # Download gitprompt # git "Download lvv/git-prompt" do repository "http://github.com/lvv/git-prompt.git" destination "#{node['sprout']['home']}/Scripts/git-prompt" action :sync end execute "Install dotfiles" do command "#{node['sprout']['home']}/Scripts/dotfiles/bootstrap.sh link -f" user node['current_user'] end
include_recipe "dna::folders" # # Download dotfiles # - git "Download wilr/dotfiles" do ? ^ ^^ + git "Download dnadesign/dotfiles" do ? ^^^^^^ ^^ - repository "http://github.com/wilr/dotfiles.git" ? ^ ^^ + repository "http://github.com/dnadesign/dotfiles.git" ? ^^^^^^ ^^ destination "#{node['sprout']['home']}/Scripts/dotfiles" action :sync user node['current_user'] + not_if { ::File.exists?("#{node['sprout']['home']}/Scripts/dotfiles") } end # # Download gitprompt # git "Download lvv/git-prompt" do repository "http://github.com/lvv/git-prompt.git" destination "#{node['sprout']['home']}/Scripts/git-prompt" action :sync end execute "Install dotfiles" do command "#{node['sprout']['home']}/Scripts/dotfiles/bootstrap.sh link -f" user node['current_user'] end
5
0.2
3
2
d113fd75456c14f651cb9769d922d9394b369d63
tools/add_previews.py
tools/add_previews.py
import os import sys import django sys.path.append("/var/projects/museum/") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "museum.settings") django.setup() from museum_site.models import * from museum_site.common import * from museum_site.constants import * def main(): articles = Article.objects.filter(preview="").order_by("id") for a in articles: path = os.path.join( SITE_ROOT, "museum_site/static/images/articles/previews/{}.png" ) preview_path = path.format(a.id) if os.path.isfile(preview_path): print("[X]", a.id, a.title, preview_path) a.preview = "articles/previews/{}.png".format(a.id) a.save() else: print("[ ]", a.id, a.title) return True if __name__ == "__main__": main()
import os import sys import django sys.path.append("/var/projects/museum/") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "museum.settings") django.setup() from museum_site.models import * # noqa: E402 from museum_site.common import * # noqa: E402 from museum_site.constants import * # noqa: E402 HELP = """This script will list all articles without a preview image. If a PNG matched the article's PK is in static/images/articles/previews it will automatically be assigned. Press ENTER to begin.""" def main(): input(HELP) articles = Article.objects.filter(preview="").order_by("id") for a in articles: path = os.path.join( SITE_ROOT, "museum_site/static/images/articles/previews/{}.png" ) preview_path = path.format(a.id) if os.path.isfile(preview_path): print("[X]", a.id, a.title, preview_path) a.preview = "articles/previews/{}.png".format(a.id) a.save() else: print("[ ]", a.id, a.title) print("Done.") return True if __name__ == "__main__": main()
Add script explanation and message when script is complete.
Add script explanation and message when script is complete.
Python
mit
DrDos0016/z2,DrDos0016/z2,DrDos0016/z2
python
## Code Before: import os import sys import django sys.path.append("/var/projects/museum/") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "museum.settings") django.setup() from museum_site.models import * from museum_site.common import * from museum_site.constants import * def main(): articles = Article.objects.filter(preview="").order_by("id") for a in articles: path = os.path.join( SITE_ROOT, "museum_site/static/images/articles/previews/{}.png" ) preview_path = path.format(a.id) if os.path.isfile(preview_path): print("[X]", a.id, a.title, preview_path) a.preview = "articles/previews/{}.png".format(a.id) a.save() else: print("[ ]", a.id, a.title) return True if __name__ == "__main__": main() ## Instruction: Add script explanation and message when script is complete. ## Code After: import os import sys import django sys.path.append("/var/projects/museum/") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "museum.settings") django.setup() from museum_site.models import * # noqa: E402 from museum_site.common import * # noqa: E402 from museum_site.constants import * # noqa: E402 HELP = """This script will list all articles without a preview image. If a PNG matched the article's PK is in static/images/articles/previews it will automatically be assigned. Press ENTER to begin.""" def main(): input(HELP) articles = Article.objects.filter(preview="").order_by("id") for a in articles: path = os.path.join( SITE_ROOT, "museum_site/static/images/articles/previews/{}.png" ) preview_path = path.format(a.id) if os.path.isfile(preview_path): print("[X]", a.id, a.title, preview_path) a.preview = "articles/previews/{}.png".format(a.id) a.save() else: print("[ ]", a.id, a.title) print("Done.") return True if __name__ == "__main__": main()
import os import sys import django sys.path.append("/var/projects/museum/") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "museum.settings") django.setup() - from museum_site.models import * + from museum_site.models import * # noqa: E402 ? ++++++++++++++ - from museum_site.common import * + from museum_site.common import * # noqa: E402 ? ++++++++++++++ - from museum_site.constants import * + from museum_site.constants import * # noqa: E402 ? ++++++++++++++ + + HELP = """This script will list all articles without a preview image. + If a PNG matched the article's PK is in static/images/articles/previews it + will automatically be assigned. + + Press ENTER to begin.""" def main(): + input(HELP) + articles = Article.objects.filter(preview="").order_by("id") + for a in articles: path = os.path.join( SITE_ROOT, "museum_site/static/images/articles/previews/{}.png" ) preview_path = path.format(a.id) if os.path.isfile(preview_path): print("[X]", a.id, a.title, preview_path) a.preview = "articles/previews/{}.png".format(a.id) a.save() else: print("[ ]", a.id, a.title) + print("Done.") return True if __name__ == "__main__": main()
16
0.484848
13
3
ea6c44da3d08495fd13e1068024212d9a860ab79
metadata/cos.premy.mines.yml
metadata/cos.premy.mines.yml
Categories: - Games License: GPL-3.0-only AuthorName: Přemysl Šťastný AuthorEmail: premysl.stastny@hotmail.com SourceCode: https://github.com/stastnypremysl/Mines3D IssueTracker: https://github.com/stastnypremysl/Mines3D/issues AutoName: Mines3D Description: |- Do you like challenges? Let's try one harder. The first task is to understand the rules of the game. The second one is to win it. RepoType: git Repo: https://github.com/stastnypremysl/Mines3D.git Builds: - versionName: 1.2.1 versionCode: 4 commit: '1.3' subdir: app gradle: - yes ndk: r21d AutoUpdateMode: None UpdateCheckMode: Tags CurrentVersion: 1.4.1 CurrentVersionCode: 6
Categories: - Games License: GPL-3.0-only AuthorName: Přemysl Šťastný AuthorEmail: premysl.stastny@hotmail.com SourceCode: https://github.com/stastnypremysl/Mines3D IssueTracker: https://github.com/stastnypremysl/Mines3D/issues AutoName: Mines3D Description: |- Do you like challenges? Let's try one harder. The first task is to understand the rules of the game. The second one is to win it. RepoType: git Repo: https://github.com/stastnypremysl/Mines3D.git Builds: - versionName: 1.2.1 versionCode: 4 commit: '1.3' subdir: app gradle: - yes ndk: r21d - versionName: 1.4.1 versionCode: 6 commit: 1.4.1 subdir: app gradle: - yes ndk: r21d AutoUpdateMode: Version %v UpdateCheckMode: Tags CurrentVersion: 1.4.1 CurrentVersionCode: 6
Update Mines3D to 1.4.1 (6) and enable AUM
Update Mines3D to 1.4.1 (6) and enable AUM
YAML
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata
yaml
## Code Before: Categories: - Games License: GPL-3.0-only AuthorName: Přemysl Šťastný AuthorEmail: premysl.stastny@hotmail.com SourceCode: https://github.com/stastnypremysl/Mines3D IssueTracker: https://github.com/stastnypremysl/Mines3D/issues AutoName: Mines3D Description: |- Do you like challenges? Let's try one harder. The first task is to understand the rules of the game. The second one is to win it. RepoType: git Repo: https://github.com/stastnypremysl/Mines3D.git Builds: - versionName: 1.2.1 versionCode: 4 commit: '1.3' subdir: app gradle: - yes ndk: r21d AutoUpdateMode: None UpdateCheckMode: Tags CurrentVersion: 1.4.1 CurrentVersionCode: 6 ## Instruction: Update Mines3D to 1.4.1 (6) and enable AUM ## Code After: Categories: - Games License: GPL-3.0-only AuthorName: Přemysl Šťastný AuthorEmail: premysl.stastny@hotmail.com SourceCode: https://github.com/stastnypremysl/Mines3D IssueTracker: https://github.com/stastnypremysl/Mines3D/issues AutoName: Mines3D Description: |- Do you like challenges? Let's try one harder. The first task is to understand the rules of the game. The second one is to win it. RepoType: git Repo: https://github.com/stastnypremysl/Mines3D.git Builds: - versionName: 1.2.1 versionCode: 4 commit: '1.3' subdir: app gradle: - yes ndk: r21d - versionName: 1.4.1 versionCode: 6 commit: 1.4.1 subdir: app gradle: - yes ndk: r21d AutoUpdateMode: Version %v UpdateCheckMode: Tags CurrentVersion: 1.4.1 CurrentVersionCode: 6
Categories: - Games License: GPL-3.0-only AuthorName: Přemysl Šťastný AuthorEmail: premysl.stastny@hotmail.com SourceCode: https://github.com/stastnypremysl/Mines3D IssueTracker: https://github.com/stastnypremysl/Mines3D/issues AutoName: Mines3D Description: |- Do you like challenges? Let's try one harder. The first task is to understand the rules of the game. The second one is to win it. RepoType: git Repo: https://github.com/stastnypremysl/Mines3D.git Builds: - versionName: 1.2.1 versionCode: 4 commit: '1.3' subdir: app gradle: - yes ndk: r21d + - versionName: 1.4.1 + versionCode: 6 + commit: 1.4.1 + subdir: app + gradle: + - yes + ndk: r21d + - AutoUpdateMode: None ? ^ ^ + AutoUpdateMode: Version %v ? ^^^^^ ^^^ UpdateCheckMode: Tags CurrentVersion: 1.4.1 CurrentVersionCode: 6
10
0.344828
9
1
82ebafed66ba1114225e9e077fc561ee96088575
Validation.php
Validation.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator; use Symfony\Component\Validator\Validator\ValidatorInterface; /** * Entry point for the Validator component. * * @author Bernhard Schussek <bschussek@gmail.com> */ final class Validation { /** * Creates a new validator. * * If you want to configure the validator, use * {@link createValidatorBuilder()} instead. * * @return ValidatorInterface The new validator */ public static function createValidator() { return self::createValidatorBuilder()->getValidator(); } /** * Creates a configurable builder for validator objects. * * @return ValidatorBuilderInterface The new builder */ public static function createValidatorBuilder() { return new ValidatorBuilder(); } /** * This class cannot be instantiated. */ private function __construct() { } }
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator; use Symfony\Component\Validator\Validator\ValidatorInterface; /** * Entry point for the Validator component. * * @author Bernhard Schussek <bschussek@gmail.com> */ final class Validation { /** * Creates a new validator. * * If you want to configure the validator, use * {@link createValidatorBuilder()} instead. * * @return ValidatorInterface The new validator */ public static function createValidator(): ValidatorInterface { return self::createValidatorBuilder()->getValidator(); } /** * Creates a configurable builder for validator objects. * * @return ValidatorBuilderInterface The new builder */ public static function createValidatorBuilder(): ValidatorBuilder { return new ValidatorBuilder(); } /** * This class cannot be instantiated. */ private function __construct() { } }
Add scalar typehints/return types on final/internal/private code
Add scalar typehints/return types on final/internal/private code
PHP
mit
symfony/Validator
php
## Code Before: <?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator; use Symfony\Component\Validator\Validator\ValidatorInterface; /** * Entry point for the Validator component. * * @author Bernhard Schussek <bschussek@gmail.com> */ final class Validation { /** * Creates a new validator. * * If you want to configure the validator, use * {@link createValidatorBuilder()} instead. * * @return ValidatorInterface The new validator */ public static function createValidator() { return self::createValidatorBuilder()->getValidator(); } /** * Creates a configurable builder for validator objects. * * @return ValidatorBuilderInterface The new builder */ public static function createValidatorBuilder() { return new ValidatorBuilder(); } /** * This class cannot be instantiated. */ private function __construct() { } } ## Instruction: Add scalar typehints/return types on final/internal/private code ## Code After: <?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator; use Symfony\Component\Validator\Validator\ValidatorInterface; /** * Entry point for the Validator component. * * @author Bernhard Schussek <bschussek@gmail.com> */ final class Validation { /** * Creates a new validator. * * If you want to configure the validator, use * {@link createValidatorBuilder()} instead. * * @return ValidatorInterface The new validator */ public static function createValidator(): ValidatorInterface { return self::createValidatorBuilder()->getValidator(); } /** * Creates a configurable builder for validator objects. * * @return ValidatorBuilderInterface The new builder */ public static function createValidatorBuilder(): ValidatorBuilder { return new ValidatorBuilder(); } /** * This class cannot be instantiated. */ private function __construct() { } }
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator; use Symfony\Component\Validator\Validator\ValidatorInterface; /** * Entry point for the Validator component. * * @author Bernhard Schussek <bschussek@gmail.com> */ final class Validation { /** * Creates a new validator. * * If you want to configure the validator, use * {@link createValidatorBuilder()} instead. * * @return ValidatorInterface The new validator */ - public static function createValidator() + public static function createValidator(): ValidatorInterface ? ++++++++++++++++++++ { return self::createValidatorBuilder()->getValidator(); } /** * Creates a configurable builder for validator objects. * * @return ValidatorBuilderInterface The new builder */ - public static function createValidatorBuilder() + public static function createValidatorBuilder(): ValidatorBuilder ? ++++++++++++++++++ { return new ValidatorBuilder(); } /** * This class cannot be instantiated. */ private function __construct() { } }
4
0.076923
2
2
dc89120829d2b94286cae348df6bea5c837ae57a
src/functorama.com/demo/base/opaqueproxyflyweight.go
src/functorama.com/demo/base/opaqueproxyflyweight.go
package base // OpaqueProxyFlyweight enables implementation of its eponymous design pattern. You need lots of // objects, but creating them is expensive. You want to externalize state, but your object is opaque // (you access it through an interface) Only these objects can know the type of the external state. // So create an extension of this object that acts like a proxy When needed, it will grab the // extrinsic, without exposing the details to the client. type OpaqueProxyFlyweight interface { ClaimExtrinsics() }
package base // OpaqueProxyFlyweight enables implementation of its eponymous design pattern. You need lots of // objects, but creating them is expensive. You want to externalize state, but your object is opaque // (you access it through an interface) Only these objects can know the type of the external state. // So create an extension of this object that acts like a proxy When needed, it will grab the // extrinsic, without exposing the details to the client. type OpaqueProxyFlyweight interface { ClaimExtrinsics() Extrinsically(func()) }
Add Extrinsically to interface definition
Add Extrinsically to interface definition
Go
mit
johnny-morrice/webdelbrot-static,johnny-morrice/webdelbrot,johnny-morrice/webdelbrot-static,johnny-morrice/webdelbrot,johnny-morrice/godelbrot
go
## Code Before: package base // OpaqueProxyFlyweight enables implementation of its eponymous design pattern. You need lots of // objects, but creating them is expensive. You want to externalize state, but your object is opaque // (you access it through an interface) Only these objects can know the type of the external state. // So create an extension of this object that acts like a proxy When needed, it will grab the // extrinsic, without exposing the details to the client. type OpaqueProxyFlyweight interface { ClaimExtrinsics() } ## Instruction: Add Extrinsically to interface definition ## Code After: package base // OpaqueProxyFlyweight enables implementation of its eponymous design pattern. You need lots of // objects, but creating them is expensive. You want to externalize state, but your object is opaque // (you access it through an interface) Only these objects can know the type of the external state. // So create an extension of this object that acts like a proxy When needed, it will grab the // extrinsic, without exposing the details to the client. type OpaqueProxyFlyweight interface { ClaimExtrinsics() Extrinsically(func()) }
package base // OpaqueProxyFlyweight enables implementation of its eponymous design pattern. You need lots of // objects, but creating them is expensive. You want to externalize state, but your object is opaque // (you access it through an interface) Only these objects can know the type of the external state. // So create an extension of this object that acts like a proxy When needed, it will grab the // extrinsic, without exposing the details to the client. type OpaqueProxyFlyweight interface { ClaimExtrinsics() + Extrinsically(func()) }
1
0.1
1
0
ce95252816ce833f40b1391fde6cd5152f3023fa
.travis.yml
.travis.yml
addons: apt: sources: - debian-sid packages: - gcc-arm-none-eabi - libnewlib-dev sudo: false script: cd firmware/nordic_nrf51/app/ble_peripheral/ledbrick_pwm/pca10028/s110/armgcc && GNU_INSTALL_PREFIX=/usr make language: c
addons: apt: sources: - debian-sid packages: - gcc-arm-none-eabi - libstdc++-arm-none-eabi-newlib sudo: false script: cd firmware/nordic_nrf51/app/ble_peripheral/ledbrick_pwm/pca10028/s110/armgcc && GNU_INSTALL_PREFIX=/usr make language: c
Allow libstdc++, just to bring in newlib
Allow libstdc++, just to bring in newlib
YAML
apache-2.0
theatrus/ledbrick,theatrus/ledbrick,theatrus/ledbrick
yaml
## Code Before: addons: apt: sources: - debian-sid packages: - gcc-arm-none-eabi - libnewlib-dev sudo: false script: cd firmware/nordic_nrf51/app/ble_peripheral/ledbrick_pwm/pca10028/s110/armgcc && GNU_INSTALL_PREFIX=/usr make language: c ## Instruction: Allow libstdc++, just to bring in newlib ## Code After: addons: apt: sources: - debian-sid packages: - gcc-arm-none-eabi - libstdc++-arm-none-eabi-newlib sudo: false script: cd firmware/nordic_nrf51/app/ble_peripheral/ledbrick_pwm/pca10028/s110/armgcc && GNU_INSTALL_PREFIX=/usr make language: c
addons: apt: sources: - debian-sid packages: - gcc-arm-none-eabi - - libnewlib-dev + - libstdc++-arm-none-eabi-newlib sudo: false script: cd firmware/nordic_nrf51/app/ble_peripheral/ledbrick_pwm/pca10028/s110/armgcc && GNU_INSTALL_PREFIX=/usr make language: c
2
0.181818
1
1
a0d44c713cc5de09506d53ec54b542361f2d69ee
tests/test-ocr.sh
tests/test-ocr.sh
test_ocr_on_live_video() { cat > test.py <<-EOF import stbt text = stbt.ocr() assert text == "Hello there", "Unexpected text: %s" % text text = stbt.ocr(region=stbt.Region(x=70, y=180, width=90, height=40)) assert text == "Hello", "Unexpected text: %s" % text EOF stbt run -v \ --source-pipeline="videotestsrc pattern=black ! \ textoverlay text=Hello\ there font-desc=Sans\ 48" \ test.py }
test_ocr_on_live_video() { cat > test.py <<-EOF import stbt stbt.frames(timeout_secs=30).next() # wait 'til video pipeline playing text = stbt.ocr() assert text == "Hello there", "Unexpected text: %s" % text text = stbt.ocr(region=stbt.Region(x=70, y=180, width=90, height=40)) assert text == "Hello", "Unexpected text: %s" % text EOF stbt run -v \ --source-pipeline="videotestsrc pattern=black ! \ textoverlay text=Hello\ there font-desc=Sans\ 48" \ test.py }
Fix timeout when run under load
test_ocr_on_live_video: Fix timeout when run under load When run under heavy load (e.g. `make check` with GNU parallel installed) this self-test could fail if the video pipeline hadn't managed to start at all in the 10 seconds allowed by the call to `get_frame` inside of `stbt.ocr()`.
Shell
lgpl-2.1
LewisHaley/stb-tester,LewisHaley/stb-tester,stb-tester/stb-tester,martynjarvis/stb-tester,wmanley/stb-tester,LewisHaley/stb-tester,stb-tester/stb-tester,LewisHaley/stb-tester,martynjarvis/stb-tester,stb-tester/stb-tester,wmanley/stb-tester,wmanley/stb-tester,martynjarvis/stb-tester,wmanley/stb-tester,wmanley/stb-tester,martynjarvis/stb-tester,LewisHaley/stb-tester,LewisHaley/stb-tester,stb-tester/stb-tester,martynjarvis/stb-tester,martynjarvis/stb-tester,LewisHaley/stb-tester,martynjarvis/stb-tester
shell
## Code Before: test_ocr_on_live_video() { cat > test.py <<-EOF import stbt text = stbt.ocr() assert text == "Hello there", "Unexpected text: %s" % text text = stbt.ocr(region=stbt.Region(x=70, y=180, width=90, height=40)) assert text == "Hello", "Unexpected text: %s" % text EOF stbt run -v \ --source-pipeline="videotestsrc pattern=black ! \ textoverlay text=Hello\ there font-desc=Sans\ 48" \ test.py } ## Instruction: test_ocr_on_live_video: Fix timeout when run under load When run under heavy load (e.g. `make check` with GNU parallel installed) this self-test could fail if the video pipeline hadn't managed to start at all in the 10 seconds allowed by the call to `get_frame` inside of `stbt.ocr()`. ## Code After: test_ocr_on_live_video() { cat > test.py <<-EOF import stbt stbt.frames(timeout_secs=30).next() # wait 'til video pipeline playing text = stbt.ocr() assert text == "Hello there", "Unexpected text: %s" % text text = stbt.ocr(region=stbt.Region(x=70, y=180, width=90, height=40)) assert text == "Hello", "Unexpected text: %s" % text EOF stbt run -v \ --source-pipeline="videotestsrc pattern=black ! \ textoverlay text=Hello\ there font-desc=Sans\ 48" \ test.py }
test_ocr_on_live_video() { cat > test.py <<-EOF import stbt + stbt.frames(timeout_secs=30).next() # wait 'til video pipeline playing text = stbt.ocr() assert text == "Hello there", "Unexpected text: %s" % text text = stbt.ocr(region=stbt.Region(x=70, y=180, width=90, height=40)) assert text == "Hello", "Unexpected text: %s" % text EOF stbt run -v \ --source-pipeline="videotestsrc pattern=black ! \ textoverlay text=Hello\ there font-desc=Sans\ 48" \ test.py }
1
0.0625
1
0
8507003796310fe94748802c2e2dda7039e66abb
index.html
index.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>strftime Editor</title> </head> <body> <h1><code>strftime</code> Editor</h1> <p> <b>Input:</b> <div> <textarea type="text" id="input" cols="40" autofocus></textarea> </div> </p> <p> <b>Output:</b> <pre id="output">none</pre> </p> <hr> <a href="https://github.com/nicolasmccurdy/strftime-editor" target="_blank"> Fork me on GitHub </a> <!-- scripts --> <script src="strftime-min.js"></script> <script src="scripts.js"></script> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>strftime Editor</title> </head> <body> <h1><code>strftime</code> Editor</h1> <p> <b>Input:</b> <div> <input type="text" id="input" size="50" autofocus> </div> </p> <p> <b>Output:</b> <pre id="output">none</pre> </p> <hr> <a href="https://github.com/nicolasmccurdy/strftime-editor" target="_blank"> Fork me on GitHub </a> <!-- scripts --> <script src="strftime-min.js"></script> <script src="scripts.js"></script> </body> </html>
Use a text input instead of a textarea
Use a text input instead of a textarea
HTML
mit
nicolasmccurdy/strftime-editor
html
## Code Before: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>strftime Editor</title> </head> <body> <h1><code>strftime</code> Editor</h1> <p> <b>Input:</b> <div> <textarea type="text" id="input" cols="40" autofocus></textarea> </div> </p> <p> <b>Output:</b> <pre id="output">none</pre> </p> <hr> <a href="https://github.com/nicolasmccurdy/strftime-editor" target="_blank"> Fork me on GitHub </a> <!-- scripts --> <script src="strftime-min.js"></script> <script src="scripts.js"></script> </body> </html> ## Instruction: Use a text input instead of a textarea ## Code After: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>strftime Editor</title> </head> <body> <h1><code>strftime</code> Editor</h1> <p> <b>Input:</b> <div> <input type="text" id="input" size="50" autofocus> </div> </p> <p> <b>Output:</b> <pre id="output">none</pre> </p> <hr> <a href="https://github.com/nicolasmccurdy/strftime-editor" target="_blank"> Fork me on GitHub </a> <!-- scripts --> <script src="strftime-min.js"></script> <script src="scripts.js"></script> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>strftime Editor</title> </head> <body> <h1><code>strftime</code> Editor</h1> <p> <b>Input:</b> <div> - <textarea type="text" id="input" cols="40" autofocus></textarea> ? ------- --- ^ ----------- + <input type="text" id="input" size="50" autofocus> ? ++++ +++ ^ </div> </p> <p> <b>Output:</b> <pre id="output">none</pre> </p> <hr> <a href="https://github.com/nicolasmccurdy/strftime-editor" target="_blank"> Fork me on GitHub </a> <!-- scripts --> <script src="strftime-min.js"></script> <script src="scripts.js"></script> </body> </html>
2
0.060606
1
1
9516ac094fafaaf1a9cd446d8e2ff934a0d760b3
setup.cfg
setup.cfg
[bdist_wheel] universal = 1 [aliases] release = clean --all sdist --formats=bztar,zip bdist_wheel register upload [metadata] license_file = LICENSE.txt
[bdist_wheel] universal = 1 [aliases] release = clean --all sdist --formats=bztar,gztar,zip register upload [metadata] license_file = LICENSE.txt
Add gzip to sdist released format
Add gzip to sdist released format
INI
bsd-2-clause
pombredanne/boolean.py,bastikr/boolean.py,Kronuz/boolean.py
ini
## Code Before: [bdist_wheel] universal = 1 [aliases] release = clean --all sdist --formats=bztar,zip bdist_wheel register upload [metadata] license_file = LICENSE.txt ## Instruction: Add gzip to sdist released format ## Code After: [bdist_wheel] universal = 1 [aliases] release = clean --all sdist --formats=bztar,gztar,zip register upload [metadata] license_file = LICENSE.txt
[bdist_wheel] universal = 1 [aliases] - release = clean --all sdist --formats=bztar,zip bdist_wheel register upload ? ------------ - + release = clean --all sdist --formats=bztar,gztar,zip register upload ? ++++++ [metadata] license_file = LICENSE.txt
2
0.25
1
1
b7cd9b1482e6f8573c00301ec5114fc80b987ff8
.travis.yml
.travis.yml
rvm: - 2.0.0 - 2.1.0 - 2.2 script: bundle exec rspec --color --format progress
language: ruby sudo: false rvm: - 2.0.0 - 2.1 - 2.2 script: bundle exec rspec --color --format progress
Make Travis run on container-based infrastructure for faster builds.
Make Travis run on container-based infrastructure for faster builds.
YAML
apache-2.0
ClogenyTechnologies/knife-ec2,TheNeatCompany/knife-ec2,chef/knife-ec2,paperlesspost/knife-ec2,tas50/knife-ec2,cloudant/knife-ec2,chef/knife-ec2,MsysTechnologiesllc/knife-ec2,juliandunn/knife-ec2,4current/knife-ec2,MsysTechnologiesllc/knife-ec2,evertrue/knife-ec2
yaml
## Code Before: rvm: - 2.0.0 - 2.1.0 - 2.2 script: bundle exec rspec --color --format progress ## Instruction: Make Travis run on container-based infrastructure for faster builds. ## Code After: language: ruby sudo: false rvm: - 2.0.0 - 2.1 - 2.2 script: bundle exec rspec --color --format progress
+ language: ruby + sudo: false + rvm: - 2.0.0 - - 2.1.0 ? -- + - 2.1 - 2.2 script: bundle exec rspec --color --format progress
5
1
4
1
3201a998ee0139f51e6a8cbff7f944e2bfa789e7
circle.yml
circle.yml
--- version: 2 jobs: "node-6": docker: - image: circleci/node:6 steps: - checkout - restore_cache: keys: - dependency-cache-{{ checksum "package.json" }} # fallback to the latest cache if no match is found - v1-dependencies- - run: name: install-npm command: npm install - save_cache: key: v1-dependencies-{{ checksum "package.json" }} paths: - node_modules - run: name: test command: npm test "node-8": docker: - image: circleci/node:8 steps: - checkout - restore_cache: keys: - dependency-cache-{{ checksum "package.json" }} # fallback to the latest cache if no match is found - v1-dependencies- - run: name: install-npm command: npm install - save_cache: key: v1-dependencies-{{ checksum "package.json" }} paths: - node_modules - run: name: test command: npm test workflows: version: 2 build: jobs: - "node-6" - "node-8"
--- version: 2 buildSteps: &buildSteps - checkout - restore_cache: keys: - dependency-cache-{{ checksum "package.json" }} # fallback to the latest cache if no match is found - dependency-cache- - run: name: install-npm command: npm install - save_cache: key: dependency-cache-{{ checksum "package.json" }} paths: - node_modules - run: name: test command: npm test jobs: "node-6": docker: - image: circleci/node:6 steps: *buildSteps "node-8": docker: - image: circleci/node:8 steps: *buildSteps workflows: version: 2 build: jobs: - "node-6" - "node-8"
Refactor out duplicated build steps
Refactor out duplicated build steps
YAML
apache-2.0
resin-io/resin-pine
yaml
## Code Before: --- version: 2 jobs: "node-6": docker: - image: circleci/node:6 steps: - checkout - restore_cache: keys: - dependency-cache-{{ checksum "package.json" }} # fallback to the latest cache if no match is found - v1-dependencies- - run: name: install-npm command: npm install - save_cache: key: v1-dependencies-{{ checksum "package.json" }} paths: - node_modules - run: name: test command: npm test "node-8": docker: - image: circleci/node:8 steps: - checkout - restore_cache: keys: - dependency-cache-{{ checksum "package.json" }} # fallback to the latest cache if no match is found - v1-dependencies- - run: name: install-npm command: npm install - save_cache: key: v1-dependencies-{{ checksum "package.json" }} paths: - node_modules - run: name: test command: npm test workflows: version: 2 build: jobs: - "node-6" - "node-8" ## Instruction: Refactor out duplicated build steps ## Code After: --- version: 2 buildSteps: &buildSteps - checkout - restore_cache: keys: - dependency-cache-{{ checksum "package.json" }} # fallback to the latest cache if no match is found - dependency-cache- - run: name: install-npm command: npm install - save_cache: key: dependency-cache-{{ checksum "package.json" }} paths: - node_modules - run: name: test command: npm test jobs: "node-6": docker: - image: circleci/node:6 steps: *buildSteps "node-8": docker: - image: circleci/node:8 steps: *buildSteps workflows: version: 2 build: jobs: - "node-6" - "node-8"
--- version: 2 + + buildSteps: &buildSteps + - checkout + - restore_cache: + keys: + - dependency-cache-{{ checksum "package.json" }} + # fallback to the latest cache if no match is found + - dependency-cache- + - run: + name: install-npm + command: npm install + - save_cache: + key: dependency-cache-{{ checksum "package.json" }} + paths: + - node_modules + - run: + name: test + command: npm test + jobs: "node-6": docker: - image: circleci/node:6 + steps: *buildSteps - steps: - - checkout - - restore_cache: - keys: - - dependency-cache-{{ checksum "package.json" }} - # fallback to the latest cache if no match is found - - v1-dependencies- - - run: - name: install-npm - command: npm install - - save_cache: - key: v1-dependencies-{{ checksum "package.json" }} - paths: - - node_modules - - run: - name: test - command: npm test "node-8": docker: - image: circleci/node:8 + steps: *buildSteps - steps: - - checkout - - restore_cache: - keys: - - dependency-cache-{{ checksum "package.json" }} - # fallback to the latest cache if no match is found - - v1-dependencies- - - run: - name: install-npm - command: npm install - - save_cache: - key: v1-dependencies-{{ checksum "package.json" }} - paths: - - node_modules - - run: - name: test - command: npm test workflows: version: 2 build: jobs: - "node-6" - "node-8"
55
1.1
21
34
0ad1f004907ee4748ee4430cd9d3eb26c398adf0
app/views/events/index.html.erb
app/views/events/index.html.erb
<% if @events.empty? %> <div class="events-empty"> <h2>We currently have no events lined up.</h2> <p>But we'll add new ones soon!<p> <p>You can <%=link_to 'submit your own conference', new_event_path %> now or browse through <%= link_to 'past events', past_events_path if @past_events.any? %>.</p> </div> <% else %> <% @events.each do |event| %> <div class="box event"> <h3><%= link_to event.name, event_path(:id => event.id) %></h3> <p class="markdownize"><%= event.description %></p> <% if event.open? %> <% if event.application_process == 'application_by_organizer' %> <%= link_to "Apply at #{event.name}", event.application_link, class:'btn btn-save btn-external' %> <% else %> <%= link_to 'Apply', new_event_application_path(:event_id => event.id), class:'btn btn-save' %> <% end %> <% end %> </div> <% end %> <% end %> <%= link_to 'Show past events', past_events_path if @past_events.any? %>
<% if @events.empty? %> <div class="events-empty"> <h2>We currently have no events lined up.</h2> <p>But we'll add new ones soon!<p> <p>You can <%=link_to 'submit your own conference', new_event_path %> now or browse through <%= link_to 'past events', past_events_path if @past_events.any? %>.</p> </div> <% else %> <% @events.each do |event| %> <div class="box event"> <h3><%= link_to event.name, event_path(:id => event.id) %></h3> <p class="markdownize"><%= event.description %></p> <% if event.open? %> <% if event.application_process == 'application_by_organizer' %> <%= link_to "Apply at #{event.name}", event.application_link, class:'btn btn-save btn-external' %> <% else %> <%= link_to 'Apply', new_event_application_path(:event_id => event.id), class:'btn btn-save' %> <% end %> <% end %> </div> <% end %> <%= link_to 'Show past events', past_events_path if @past_events.any? %> <% end %>
Move show past events link back in appropriate place
Move show past events link back in appropriate place
HTML+ERB
mit
rubymonsters/diversity_ticketing,rubymonsters/diversity_ticketing,rubymonsters/diversity_ticketing
html+erb
## Code Before: <% if @events.empty? %> <div class="events-empty"> <h2>We currently have no events lined up.</h2> <p>But we'll add new ones soon!<p> <p>You can <%=link_to 'submit your own conference', new_event_path %> now or browse through <%= link_to 'past events', past_events_path if @past_events.any? %>.</p> </div> <% else %> <% @events.each do |event| %> <div class="box event"> <h3><%= link_to event.name, event_path(:id => event.id) %></h3> <p class="markdownize"><%= event.description %></p> <% if event.open? %> <% if event.application_process == 'application_by_organizer' %> <%= link_to "Apply at #{event.name}", event.application_link, class:'btn btn-save btn-external' %> <% else %> <%= link_to 'Apply', new_event_application_path(:event_id => event.id), class:'btn btn-save' %> <% end %> <% end %> </div> <% end %> <% end %> <%= link_to 'Show past events', past_events_path if @past_events.any? %> ## Instruction: Move show past events link back in appropriate place ## Code After: <% if @events.empty? %> <div class="events-empty"> <h2>We currently have no events lined up.</h2> <p>But we'll add new ones soon!<p> <p>You can <%=link_to 'submit your own conference', new_event_path %> now or browse through <%= link_to 'past events', past_events_path if @past_events.any? %>.</p> </div> <% else %> <% @events.each do |event| %> <div class="box event"> <h3><%= link_to event.name, event_path(:id => event.id) %></h3> <p class="markdownize"><%= event.description %></p> <% if event.open? %> <% if event.application_process == 'application_by_organizer' %> <%= link_to "Apply at #{event.name}", event.application_link, class:'btn btn-save btn-external' %> <% else %> <%= link_to 'Apply', new_event_application_path(:event_id => event.id), class:'btn btn-save' %> <% end %> <% end %> </div> <% end %> <%= link_to 'Show past events', past_events_path if @past_events.any? %> <% end %>
<% if @events.empty? %> <div class="events-empty"> <h2>We currently have no events lined up.</h2> <p>But we'll add new ones soon!<p> <p>You can <%=link_to 'submit your own conference', new_event_path %> now or browse through <%= link_to 'past events', past_events_path if @past_events.any? %>.</p> </div> <% else %> <% @events.each do |event| %> <div class="box event"> <h3><%= link_to event.name, event_path(:id => event.id) %></h3> <p class="markdownize"><%= event.description %></p> <% if event.open? %> <% if event.application_process == 'application_by_organizer' %> <%= link_to "Apply at #{event.name}", event.application_link, class:'btn btn-save btn-external' %> <% else %> <%= link_to 'Apply', new_event_application_path(:event_id => event.id), class:'btn btn-save' %> <% end %> <% end %> </div> <% end %> + <%= link_to 'Show past events', past_events_path if @past_events.any? %> <% end %> - - <%= link_to 'Show past events', past_events_path if @past_events.any? %>
3
0.111111
1
2
8559123f36e0dc59f19330c1431a9ba683d27af1
_posts/Tech/2014-06-09-JavaScript-实现图片上传前预览.md
_posts/Tech/2014-06-09-JavaScript-实现图片上传前预览.md
--- layout: post title: JavaScript 实现图片上传前预览 --- {% highlight html %} <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <style type="text/css"> #preview, .img, img { width:200px; height:200px; } #preview { border:1px solid #000; } </style> </head> <body> <div id="preview"></div> <input type="file" onchange="preview(this)" /> <script type="text/javascript"> function preview(file) { var prevDiv = document.getElementById('preview'); if (file.files && file.files[0]) { var reader = new FileReader(); reader.onload = function(evt){ prevDiv.innerHTML = '<img src="' + evt.target.result + '" />'; } reader.readAsDataURL(file.files[0]); } else { prevDiv.innerHTML = '<div class="img" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src=\'' + file.value + '\'"></div>'; } } </script> </body> </html> {% endhighlight %}
--- layout: post title: JavaScript 实现图片上传前预览 --- ```html <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <style type="text/css"> #preview, .img, img { width:200px; height:200px; } #preview { border:1px solid #000; } </style> </head> <body> <div id="preview"></div> <input type="file" onchange="preview(this)" /> <script type="text/javascript"> function preview(file) { var prevDiv = document.getElementById('preview'); if (file.files && file.files[0]) { var reader = new FileReader(); reader.onload = function(evt){ prevDiv.innerHTML = '<img src="' + evt.target.result + '" />'; } reader.readAsDataURL(file.files[0]); } else { prevDiv.innerHTML = '<div class="img" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src=\'' + file.value + '\'"></div>'; } } </script> </body> </html> ```
Update by gitblog.io at 2016/2/24 下午3:45:42
Update by gitblog.io at 2016/2/24 下午3:45:42
Markdown
mit
tonghuashuai/tonghuashuai.github.com,tonghuashuai/tonghuashuai.github.com,tonghuashuai/tonghuashuai.github.com,tonghuashuai/tonghuashuai.github.com
markdown
## Code Before: --- layout: post title: JavaScript 实现图片上传前预览 --- {% highlight html %} <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <style type="text/css"> #preview, .img, img { width:200px; height:200px; } #preview { border:1px solid #000; } </style> </head> <body> <div id="preview"></div> <input type="file" onchange="preview(this)" /> <script type="text/javascript"> function preview(file) { var prevDiv = document.getElementById('preview'); if (file.files && file.files[0]) { var reader = new FileReader(); reader.onload = function(evt){ prevDiv.innerHTML = '<img src="' + evt.target.result + '" />'; } reader.readAsDataURL(file.files[0]); } else { prevDiv.innerHTML = '<div class="img" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src=\'' + file.value + '\'"></div>'; } } </script> </body> </html> {% endhighlight %} ## Instruction: Update by gitblog.io at 2016/2/24 下午3:45:42 ## Code After: --- layout: post title: JavaScript 实现图片上传前预览 --- ```html <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <style type="text/css"> #preview, .img, img { width:200px; height:200px; } #preview { border:1px solid #000; } </style> </head> <body> <div id="preview"></div> <input type="file" onchange="preview(this)" /> <script type="text/javascript"> function preview(file) { var prevDiv = document.getElementById('preview'); if (file.files && file.files[0]) { var reader = new FileReader(); reader.onload = function(evt){ prevDiv.innerHTML = '<img src="' + evt.target.result + '" />'; } reader.readAsDataURL(file.files[0]); } else { prevDiv.innerHTML = '<div class="img" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src=\'' + file.value + '\'"></div>'; } } </script> </body> </html> ```
--- layout: post title: JavaScript 实现图片上传前预览 --- - {% highlight html %} + ```html <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <style type="text/css"> #preview, .img, img { width:200px; height:200px; } #preview { border:1px solid #000; } </style> </head> <body> <div id="preview"></div> <input type="file" onchange="preview(this)" /> <script type="text/javascript"> function preview(file) { var prevDiv = document.getElementById('preview'); if (file.files && file.files[0]) { var reader = new FileReader(); reader.onload = function(evt){ prevDiv.innerHTML = '<img src="' + evt.target.result + '" />'; } reader.readAsDataURL(file.files[0]); } else { prevDiv.innerHTML = '<div class="img" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src=\'' + file.value + '\'"></div>'; } } </script> </body> </html> - {% endhighlight %} + ```
4
0.086957
2
2
fd9f8bb54a95f18d0da66f5349a958f7ab112065
.travis.yml
.travis.yml
language: python python: - "3.4" env: global: - DOWNLOAD_FOLDER="$HOME/downloads" matrix: - PY_HOME="C:\\Python27" PY_VERSION="2.7.8" ARCH="32" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python33" PY_VERSION="3.3.5" ARCH="32" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python34" PY_VERSION="3.4.2" ARCH="32" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python27" PY_VERSION="2.7.8" ARCH="64" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python33" PY_VERSION="3.3.5" ARCH="64" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python34" PY_VERSION="3.4.2" ARCH="64" MINGW_HOME="C:\\mingw" install: - sudo apt-get update -y -qq - sudo apt-get install -y wine - mkdir -p $DOWNLOAD_FOLDER - python3.4 scripts/setup_wine_env.py script: - wine python --version - wine gcc --version after_success: - du -hs $DOWNLOAD_FOLDER/* cache: apt: true directories: - $DOWNLOAD_FOLDER
language: python python: - "3.4" env: global: - DOWNLOAD_FOLDER="$HOME/downloads" matrix: - PY_HOME="C:\\Python27" PY_VERSION="2.7.8" ARCH="32" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python33" PY_VERSION="3.3.5" ARCH="32" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python34" PY_VERSION="3.4.2" ARCH="32" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python27" PY_VERSION="2.7.8" ARCH="64" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python33" PY_VERSION="3.3.5" ARCH="64" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python34" PY_VERSION="3.4.2" ARCH="64" MINGW_HOME="C:\\mingw" install: - sudo add-apt-repository ppa:ubuntu-wine/ppa -y - sudo apt-get update -y -qq - sudo apt-get install -y wine - mkdir -p $DOWNLOAD_FOLDER - python3.4 scripts/setup_wine_env.py script: - wine python --version - wine gcc --version after_success: - du -hs $DOWNLOAD_FOLDER/* cache: apt: true directories: - $DOWNLOAD_FOLDER
Use recent version of wine
Use recent version of wine
YAML
mit
ogrisel/python-winbuilder
yaml
## Code Before: language: python python: - "3.4" env: global: - DOWNLOAD_FOLDER="$HOME/downloads" matrix: - PY_HOME="C:\\Python27" PY_VERSION="2.7.8" ARCH="32" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python33" PY_VERSION="3.3.5" ARCH="32" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python34" PY_VERSION="3.4.2" ARCH="32" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python27" PY_VERSION="2.7.8" ARCH="64" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python33" PY_VERSION="3.3.5" ARCH="64" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python34" PY_VERSION="3.4.2" ARCH="64" MINGW_HOME="C:\\mingw" install: - sudo apt-get update -y -qq - sudo apt-get install -y wine - mkdir -p $DOWNLOAD_FOLDER - python3.4 scripts/setup_wine_env.py script: - wine python --version - wine gcc --version after_success: - du -hs $DOWNLOAD_FOLDER/* cache: apt: true directories: - $DOWNLOAD_FOLDER ## Instruction: Use recent version of wine ## Code After: language: python python: - "3.4" env: global: - DOWNLOAD_FOLDER="$HOME/downloads" matrix: - PY_HOME="C:\\Python27" PY_VERSION="2.7.8" ARCH="32" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python33" PY_VERSION="3.3.5" ARCH="32" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python34" PY_VERSION="3.4.2" ARCH="32" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python27" PY_VERSION="2.7.8" ARCH="64" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python33" PY_VERSION="3.3.5" ARCH="64" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python34" PY_VERSION="3.4.2" ARCH="64" MINGW_HOME="C:\\mingw" install: - sudo add-apt-repository ppa:ubuntu-wine/ppa -y - sudo apt-get update -y -qq - sudo apt-get install -y wine - mkdir -p $DOWNLOAD_FOLDER - python3.4 scripts/setup_wine_env.py script: - wine python --version - wine gcc --version after_success: - du -hs $DOWNLOAD_FOLDER/* cache: apt: true directories: - $DOWNLOAD_FOLDER
language: python python: - "3.4" env: global: - DOWNLOAD_FOLDER="$HOME/downloads" matrix: - PY_HOME="C:\\Python27" PY_VERSION="2.7.8" ARCH="32" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python33" PY_VERSION="3.3.5" ARCH="32" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python34" PY_VERSION="3.4.2" ARCH="32" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python27" PY_VERSION="2.7.8" ARCH="64" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python33" PY_VERSION="3.3.5" ARCH="64" MINGW_HOME="C:\\mingw" - PY_HOME="C:\\Python34" PY_VERSION="3.4.2" ARCH="64" MINGW_HOME="C:\\mingw" install: + - sudo add-apt-repository ppa:ubuntu-wine/ppa -y - sudo apt-get update -y -qq - sudo apt-get install -y wine - mkdir -p $DOWNLOAD_FOLDER - python3.4 scripts/setup_wine_env.py script: - wine python --version - wine gcc --version after_success: - du -hs $DOWNLOAD_FOLDER/* cache: apt: true directories: - $DOWNLOAD_FOLDER
1
0.037037
1
0
080d2fae29332cc4788613ee4bbde6de6794776a
app/assets/stylesheets/_pagination.sass
app/assets/stylesheets/_pagination.sass
.pagination background: white cursor: default margin-right: auto margin-left: auto a, span, em padding: 4px display: block float: left margin-right: 5px span padding: 0 margin-right: 0 border: 0 .disabled color: #999999 border: 1px solid #dddddd .current font-style: normal font-weight: bold background: #00ACCF color: white border: 1px solid #00ACCF a text-decoration: none color: #00ACCF border: 1px solid #00ACCF &:hover, &:focus color: #000033 border-color: #000033 .page_info background: #2e6ab1 color: white padding: 0.4em 0.6em width: 22em margin-bottom: 0.3em text-align: center b color: #000033 background: #2e6ab1 + 60 padding: 0.1em 0.25em /* self-clearing method: &:after content: "." display: block height: 0 clear: both visibility: hidden * html & height: 1% *:first-child+html & overflow: hidden @media only screen and (max-width: 970px) .pagination width: 85% !important @media only screen and (max-width: 390px) .pagination width: 100% !important
.pagination background: white cursor: default margin-right: auto margin-left: auto a, span, em padding: 4px display: block float: left margin-right: 5px span padding: 0 margin-right: 0 border: 0 .disabled color: #999999 border: 1px solid #dddddd .current font-style: normal font-weight: bold background: #00ACCF color: white border: 1px solid #00ACCF a text-decoration: none color: #00ACCF border: 1px solid #00ACCF &:hover, &:focus color: #000033 border-color: #000033 .page_info background: #2e6ab1 color: white padding: 0.4em 0.6em width: 22em margin-bottom: 0.3em text-align: center b color: #000033 background: #2e6ab1 + 60 padding: 0.1em 0.25em /* self-clearing method: &:after content: "." display: block height: 0 clear: both visibility: hidden * html & height: 1% *:first-child+html & overflow: hidden
Remove unnecessary media queries for pagination
Remove unnecessary media queries for pagination
Sass
agpl-3.0
alabs/nolotiro.org,alabs/nolotiro.org,alabs/nolotiro.org,alabs/nolotiro.org
sass
## Code Before: .pagination background: white cursor: default margin-right: auto margin-left: auto a, span, em padding: 4px display: block float: left margin-right: 5px span padding: 0 margin-right: 0 border: 0 .disabled color: #999999 border: 1px solid #dddddd .current font-style: normal font-weight: bold background: #00ACCF color: white border: 1px solid #00ACCF a text-decoration: none color: #00ACCF border: 1px solid #00ACCF &:hover, &:focus color: #000033 border-color: #000033 .page_info background: #2e6ab1 color: white padding: 0.4em 0.6em width: 22em margin-bottom: 0.3em text-align: center b color: #000033 background: #2e6ab1 + 60 padding: 0.1em 0.25em /* self-clearing method: &:after content: "." display: block height: 0 clear: both visibility: hidden * html & height: 1% *:first-child+html & overflow: hidden @media only screen and (max-width: 970px) .pagination width: 85% !important @media only screen and (max-width: 390px) .pagination width: 100% !important ## Instruction: Remove unnecessary media queries for pagination ## Code After: .pagination background: white cursor: default margin-right: auto margin-left: auto a, span, em padding: 4px display: block float: left margin-right: 5px span padding: 0 margin-right: 0 border: 0 .disabled color: #999999 border: 1px solid #dddddd .current font-style: normal font-weight: bold background: #00ACCF color: white border: 1px solid #00ACCF a text-decoration: none color: #00ACCF border: 1px solid #00ACCF &:hover, &:focus color: #000033 border-color: #000033 .page_info background: #2e6ab1 color: white padding: 0.4em 0.6em width: 22em margin-bottom: 0.3em text-align: center b color: #000033 background: #2e6ab1 + 60 padding: 0.1em 0.25em /* self-clearing method: &:after content: "." display: block height: 0 clear: both visibility: hidden * html & height: 1% *:first-child+html & overflow: hidden
.pagination background: white cursor: default margin-right: auto margin-left: auto a, span, em padding: 4px display: block float: left margin-right: 5px span padding: 0 margin-right: 0 border: 0 .disabled color: #999999 border: 1px solid #dddddd .current font-style: normal font-weight: bold background: #00ACCF color: white border: 1px solid #00ACCF a text-decoration: none color: #00ACCF border: 1px solid #00ACCF &:hover, &:focus color: #000033 border-color: #000033 .page_info background: #2e6ab1 color: white padding: 0.4em 0.6em width: 22em margin-bottom: 0.3em text-align: center b color: #000033 background: #2e6ab1 + 60 padding: 0.1em 0.25em /* self-clearing method: &:after content: "." display: block height: 0 clear: both visibility: hidden * html & height: 1% *:first-child+html & overflow: hidden - - @media only screen and (max-width: 970px) - .pagination - width: 85% !important - - @media only screen and (max-width: 390px) - .pagination - width: 100% !important
8
0.133333
0
8
a055f9736cd1843f73412c696d6e2ccb9b59a004
pages/systems/systems_reference_postman.md
pages/systems/systems_reference_postman.md
--- title: Postman API examples keywords: system, reference, postman, api tags: [system,reference] sidebar: overview_sidebar permalink: system_reference_postman.html summary: "API documentation for the GP Connect FHIR API" --- ## API examples using Postman ## Download the [Postman](https://www.getpostman.com/){:target="_blank" class="no_icon"} App and import our Postman GP Connect examples collection. ## Try now ## > [Visit the GP Connect Demonstrator site and import our Postman samples](https://orange.testlab.nhs.uk/#postman-samples) ![IMG Find a patient in postman collection](images/explore/Postman Find a patient.png)
--- title: Postman API examples keywords: system, reference, postman, api tags: [system,reference] sidebar: overview_sidebar permalink: system_reference_postman.html summary: "API documentation for the GP Connect FHIR API" --- ## API examples using Postman ## Download the [Postman](https://www.getpostman.com/){:target="_blank" class="no_icon"} App and import our Postman GP Connect examples collection. ## Try now ## > [Visit the GP Connect Demonstrator site and import our Postman samples](https://orange.testlab.nhs.uk/index.html#postman-samples) ![IMG Find a patient in postman collection](images/explore/Postman Find a patient.png)
Remove Postman button and link to Demonstrator box
Remove Postman button and link to Demonstrator box
Markdown
apache-2.0
nhsconnect/gpconnect,nhsconnect/gpconnect,nhsconnect/gpconnect
markdown
## Code Before: --- title: Postman API examples keywords: system, reference, postman, api tags: [system,reference] sidebar: overview_sidebar permalink: system_reference_postman.html summary: "API documentation for the GP Connect FHIR API" --- ## API examples using Postman ## Download the [Postman](https://www.getpostman.com/){:target="_blank" class="no_icon"} App and import our Postman GP Connect examples collection. ## Try now ## > [Visit the GP Connect Demonstrator site and import our Postman samples](https://orange.testlab.nhs.uk/#postman-samples) ![IMG Find a patient in postman collection](images/explore/Postman Find a patient.png) ## Instruction: Remove Postman button and link to Demonstrator box ## Code After: --- title: Postman API examples keywords: system, reference, postman, api tags: [system,reference] sidebar: overview_sidebar permalink: system_reference_postman.html summary: "API documentation for the GP Connect FHIR API" --- ## API examples using Postman ## Download the [Postman](https://www.getpostman.com/){:target="_blank" class="no_icon"} App and import our Postman GP Connect examples collection. ## Try now ## > [Visit the GP Connect Demonstrator site and import our Postman samples](https://orange.testlab.nhs.uk/index.html#postman-samples) ![IMG Find a patient in postman collection](images/explore/Postman Find a patient.png)
--- title: Postman API examples keywords: system, reference, postman, api tags: [system,reference] sidebar: overview_sidebar permalink: system_reference_postman.html summary: "API documentation for the GP Connect FHIR API" --- ## API examples using Postman ## Download the [Postman](https://www.getpostman.com/){:target="_blank" class="no_icon"} App and import our Postman GP Connect examples collection. ## Try now ## - > [Visit the GP Connect Demonstrator site and import our Postman samples](https://orange.testlab.nhs.uk/#postman-samples) + > [Visit the GP Connect Demonstrator site and import our Postman samples](https://orange.testlab.nhs.uk/index.html#postman-samples) ? ++++++++++ ![IMG Find a patient in postman collection](images/explore/Postman Find a patient.png)
2
0.111111
1
1
f64f0b42f2d1163b2d85194e0979def539f5dca3
Lib/fontTools/misc/intTools.py
Lib/fontTools/misc/intTools.py
__all__ = ['popCount'] def popCount(v): """Return number of 1 bits (population count) of an integer. If the integer is negative, the number of 1 bits in the twos-complement representation of the integer is returned. i.e. ``popCount(-30) == 28`` because -30 is:: 1111 1111 1111 1111 1111 1111 1110 0010 Uses the algorithm from `HAKMEM item 169 <https://www.inwap.com/pdp10/hbaker/hakmem/hacks.html#item169>`_. Args: v (int): Value to count. Returns: Number of 1 bits in the binary representation of ``v``. """ if v > 0xFFFFFFFF: return popCount(v >> 32) + popCount(v & 0xFFFFFFFF) # HACKMEM 169 y = (v >> 1) & 0xDB6DB6DB y = v - y - ((y >> 1) & 0xDB6DB6DB) return (((y + (y >> 3)) & 0xC71C71C7) % 0x3F)
__all__ = ['popCount'] try: bit_count = int.bit_count except AttributeError: def bit_count(v): return bin(v).count('1') """Return number of 1 bits (population count) of the absolute value of an integer. See https://docs.python.org/3.10/library/stdtypes.html#int.bit_count """ popCount = bit_count
Consolidate bit_count / popCount methods
Consolidate bit_count / popCount methods Fixes https://github.com/fonttools/fonttools/issues/2331
Python
mit
googlefonts/fonttools,fonttools/fonttools
python
## Code Before: __all__ = ['popCount'] def popCount(v): """Return number of 1 bits (population count) of an integer. If the integer is negative, the number of 1 bits in the twos-complement representation of the integer is returned. i.e. ``popCount(-30) == 28`` because -30 is:: 1111 1111 1111 1111 1111 1111 1110 0010 Uses the algorithm from `HAKMEM item 169 <https://www.inwap.com/pdp10/hbaker/hakmem/hacks.html#item169>`_. Args: v (int): Value to count. Returns: Number of 1 bits in the binary representation of ``v``. """ if v > 0xFFFFFFFF: return popCount(v >> 32) + popCount(v & 0xFFFFFFFF) # HACKMEM 169 y = (v >> 1) & 0xDB6DB6DB y = v - y - ((y >> 1) & 0xDB6DB6DB) return (((y + (y >> 3)) & 0xC71C71C7) % 0x3F) ## Instruction: Consolidate bit_count / popCount methods Fixes https://github.com/fonttools/fonttools/issues/2331 ## Code After: __all__ = ['popCount'] try: bit_count = int.bit_count except AttributeError: def bit_count(v): return bin(v).count('1') """Return number of 1 bits (population count) of the absolute value of an integer. See https://docs.python.org/3.10/library/stdtypes.html#int.bit_count """ popCount = bit_count
__all__ = ['popCount'] - def popCount(v): - """Return number of 1 bits (population count) of an integer. + try: + bit_count = int.bit_count + except AttributeError: + def bit_count(v): + return bin(v).count('1') + """Return number of 1 bits (population count) of the absolute value of an integer. - If the integer is negative, the number of 1 bits in the - twos-complement representation of the integer is returned. i.e. - ``popCount(-30) == 28`` because -30 is:: + See https://docs.python.org/3.10/library/stdtypes.html#int.bit_count + """ + popCount = bit_count - 1111 1111 1111 1111 1111 1111 1110 0010 - - Uses the algorithm from `HAKMEM item 169 <https://www.inwap.com/pdp10/hbaker/hakmem/hacks.html#item169>`_. - - Args: - v (int): Value to count. - - Returns: - Number of 1 bits in the binary representation of ``v``. - """ - - if v > 0xFFFFFFFF: - return popCount(v >> 32) + popCount(v & 0xFFFFFFFF) - - # HACKMEM 169 - y = (v >> 1) & 0xDB6DB6DB - y = v - y - ((y >> 1) & 0xDB6DB6DB) - return (((y + (y >> 3)) & 0xC71C71C7) % 0x3F)
32
1.142857
9
23
9639eb34f53444387621ed0a27ef9b273b38df79
slackclient/_slackrequest.py
slackclient/_slackrequest.py
import json import requests import six class SlackRequest(object): @staticmethod def do(token, request="?", post_data=None, domain="slack.com"): ''' Perform a POST request to the Slack Web API Args: token (str): your authentication token request (str): the method to call from the Slack API. For example: 'channels.list' post_data (dict): key/value arguments to pass for the request. For example: {'channel': 'CABC12345'} domain (str): if for some reason you want to send your request to something other than slack.com ''' post_data = post_data or {} # Pull file out so it isn't JSON encoded like normal fields. files = {'file': post_data.pop('file')} if 'file' in post_data else None for k, v in six.iteritems(post_data): if not isinstance(v, six.string_types): post_data[k] = json.dumps(v) url = 'https://{0}/api/{1}'.format(domain, request) post_data['token'] = token return requests.post(url, data=post_data, files=files)
import json import requests import six class SlackRequest(object): @staticmethod def do(token, request="?", post_data=None, domain="slack.com"): ''' Perform a POST request to the Slack Web API Args: token (str): your authentication token request (str): the method to call from the Slack API. For example: 'channels.list' post_data (dict): key/value arguments to pass for the request. For example: {'channel': 'CABC12345'} domain (str): if for some reason you want to send your request to something other than slack.com ''' post_data = post_data or {} # Pull file out so it isn't JSON encoded like normal fields. # Only do this for requests that are UPLOADING files; downloading files # use the 'file' argument to point to a File ID. upload_requests = ['files.upload'] files = None if request in upload_requests: files = {'file': post_data.pop('file')} if 'file' in post_data else None for k, v in six.iteritems(post_data): if not isinstance(v, six.string_types): post_data[k] = json.dumps(v) url = 'https://{0}/api/{1}'.format(domain, request) post_data['token'] = token return requests.post(url, data=post_data, files=files)
Fix bug preventing API calls requiring a file ID
Fix bug preventing API calls requiring a file ID For example, an API call to files.info takes a file ID argument named "file", which was stripped out by this call. Currently, there is only one request type that accepts file data (files.upload). Every other use of 'file' is an ID that aught to be contained in the request.
Python
mit
slackhq/python-slackclient,slackapi/python-slackclient,slackapi/python-slackclient,slackapi/python-slackclient
python
## Code Before: import json import requests import six class SlackRequest(object): @staticmethod def do(token, request="?", post_data=None, domain="slack.com"): ''' Perform a POST request to the Slack Web API Args: token (str): your authentication token request (str): the method to call from the Slack API. For example: 'channels.list' post_data (dict): key/value arguments to pass for the request. For example: {'channel': 'CABC12345'} domain (str): if for some reason you want to send your request to something other than slack.com ''' post_data = post_data or {} # Pull file out so it isn't JSON encoded like normal fields. files = {'file': post_data.pop('file')} if 'file' in post_data else None for k, v in six.iteritems(post_data): if not isinstance(v, six.string_types): post_data[k] = json.dumps(v) url = 'https://{0}/api/{1}'.format(domain, request) post_data['token'] = token return requests.post(url, data=post_data, files=files) ## Instruction: Fix bug preventing API calls requiring a file ID For example, an API call to files.info takes a file ID argument named "file", which was stripped out by this call. Currently, there is only one request type that accepts file data (files.upload). Every other use of 'file' is an ID that aught to be contained in the request. ## Code After: import json import requests import six class SlackRequest(object): @staticmethod def do(token, request="?", post_data=None, domain="slack.com"): ''' Perform a POST request to the Slack Web API Args: token (str): your authentication token request (str): the method to call from the Slack API. For example: 'channels.list' post_data (dict): key/value arguments to pass for the request. For example: {'channel': 'CABC12345'} domain (str): if for some reason you want to send your request to something other than slack.com ''' post_data = post_data or {} # Pull file out so it isn't JSON encoded like normal fields. # Only do this for requests that are UPLOADING files; downloading files # use the 'file' argument to point to a File ID. upload_requests = ['files.upload'] files = None if request in upload_requests: files = {'file': post_data.pop('file')} if 'file' in post_data else None for k, v in six.iteritems(post_data): if not isinstance(v, six.string_types): post_data[k] = json.dumps(v) url = 'https://{0}/api/{1}'.format(domain, request) post_data['token'] = token return requests.post(url, data=post_data, files=files)
import json import requests import six class SlackRequest(object): @staticmethod def do(token, request="?", post_data=None, domain="slack.com"): ''' Perform a POST request to the Slack Web API Args: token (str): your authentication token request (str): the method to call from the Slack API. For example: 'channels.list' post_data (dict): key/value arguments to pass for the request. For example: {'channel': 'CABC12345'} domain (str): if for some reason you want to send your request to something other than slack.com ''' post_data = post_data or {} # Pull file out so it isn't JSON encoded like normal fields. + # Only do this for requests that are UPLOADING files; downloading files + # use the 'file' argument to point to a File ID. + upload_requests = ['files.upload'] + files = None + if request in upload_requests: - files = {'file': post_data.pop('file')} if 'file' in post_data else None + files = {'file': post_data.pop('file')} if 'file' in post_data else None ? ++++ for k, v in six.iteritems(post_data): if not isinstance(v, six.string_types): post_data[k] = json.dumps(v) url = 'https://{0}/api/{1}'.format(domain, request) post_data['token'] = token return requests.post(url, data=post_data, files=files)
7
0.205882
6
1
35a9aa8667262abcae3749c41e04484de6cd65f8
src/main/resources/application.properties
src/main/resources/application.properties
spring.datasource.url=jdbc:mysql://localhost/poll spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.username=poll spring.datasource.password=pollpass
spring.datasource.url=jdbc:mysql://localhost/poll spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
Remove dummy db username/password - Using environmental vars from now on
Remove dummy db username/password - Using environmental vars from now on
INI
mit
jad340/poll,jad340/poll,jad340/poll
ini
## Code Before: spring.datasource.url=jdbc:mysql://localhost/poll spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.username=poll spring.datasource.password=pollpass ## Instruction: Remove dummy db username/password - Using environmental vars from now on ## Code After: spring.datasource.url=jdbc:mysql://localhost/poll spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost/poll spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver - spring.datasource.username=poll - spring.datasource.password=pollpass
2
0.5
0
2
1b5975072bf1db4592dee44b2591ca780625f2b6
portfolio/src/test/java/com/google/sps/BookServiceClientTest.java
portfolio/src/test/java/com/google/sps/BookServiceClientTest.java
import com.google.sps.data.Book; import com.google.sps.data.BookServiceClient; import java.text.ParseException; import java.lang.IllegalAccessException; import java.lang.NullPointerException; import org.json.JSONObject; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; /** This is a test class for BookServiceClient.java Tests the implementations ability to call the Book API, given the title, and return the book's information. */ @RunWith(JUnit4.class) public final class BookServiceClientTest { @Test public void getTopResult(){ //calls the API with the title and checks to make sure it only returns one item String title = "A Court of Wings and Ruin"; String bookInfo = ""; try{ bookInfo = BookServiceClient.getBookInfo(title); }catch(Exception e){ String failureMessage = "Was not able to query the Book API. \n"+e; Assert.fail(failureMessage); } JSONObject jsonObject = new JSONObject(bookInfo); Assert.assertEquals(true,jsonObject.has("volumeInfo")); Assert.assertEquals(false,jsonObject.has("items")); } @Test(expected = NullPointerException.class) public void queryNull() throws Exception{ //attempts to query a null value BookServiceClient.getBookInfo(null); } @Test(expected = NullPointerException.class) public void queryEmpty() throws Exception{ //attempts to query an empty value BookServiceClient.getBookInfo(""); } }
import com.google.sps.data.Book; import com.google.sps.data.BookServiceClient; import java.text.ParseException; import java.lang.IllegalAccessException; import java.lang.NullPointerException; import org.json.JSONObject; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; /** This is a test class for BookServiceClient.java Tests the implementations ability to call the Book API, given the title, and return the book's information. */ @RunWith(JUnit4.class) public final class BookServiceClientTest { @Test(expected = NullPointerException.class) public void queryNull() throws Exception{ //attempts to query a null value BookServiceClient.getBookInfo(null); } @Test(expected = NullPointerException.class) public void queryEmpty() throws Exception{ //attempts to query an empty value BookServiceClient.getBookInfo(""); } }
Remove test that calls api
Remove test that calls api
Java
apache-2.0
googleinterns/step-2020-wipeout-jr,googleinterns/step-2020-wipeout-jr,googleinterns/step-2020-wipeout-jr
java
## Code Before: import com.google.sps.data.Book; import com.google.sps.data.BookServiceClient; import java.text.ParseException; import java.lang.IllegalAccessException; import java.lang.NullPointerException; import org.json.JSONObject; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; /** This is a test class for BookServiceClient.java Tests the implementations ability to call the Book API, given the title, and return the book's information. */ @RunWith(JUnit4.class) public final class BookServiceClientTest { @Test public void getTopResult(){ //calls the API with the title and checks to make sure it only returns one item String title = "A Court of Wings and Ruin"; String bookInfo = ""; try{ bookInfo = BookServiceClient.getBookInfo(title); }catch(Exception e){ String failureMessage = "Was not able to query the Book API. \n"+e; Assert.fail(failureMessage); } JSONObject jsonObject = new JSONObject(bookInfo); Assert.assertEquals(true,jsonObject.has("volumeInfo")); Assert.assertEquals(false,jsonObject.has("items")); } @Test(expected = NullPointerException.class) public void queryNull() throws Exception{ //attempts to query a null value BookServiceClient.getBookInfo(null); } @Test(expected = NullPointerException.class) public void queryEmpty() throws Exception{ //attempts to query an empty value BookServiceClient.getBookInfo(""); } } ## Instruction: Remove test that calls api ## Code After: import com.google.sps.data.Book; import com.google.sps.data.BookServiceClient; import java.text.ParseException; import java.lang.IllegalAccessException; import java.lang.NullPointerException; import org.json.JSONObject; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; /** This is a test class for BookServiceClient.java Tests the implementations ability to call the Book API, given the title, and return the book's information. */ @RunWith(JUnit4.class) public final class BookServiceClientTest { @Test(expected = NullPointerException.class) public void queryNull() throws Exception{ //attempts to query a null value BookServiceClient.getBookInfo(null); } @Test(expected = NullPointerException.class) public void queryEmpty() throws Exception{ //attempts to query an empty value BookServiceClient.getBookInfo(""); } }
import com.google.sps.data.Book; import com.google.sps.data.BookServiceClient; import java.text.ParseException; import java.lang.IllegalAccessException; import java.lang.NullPointerException; import org.json.JSONObject; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; /** This is a test class for BookServiceClient.java Tests the implementations ability to call the Book API, given the title, and return the book's information. */ @RunWith(JUnit4.class) public final class BookServiceClientTest { - - @Test - public void getTopResult(){ - //calls the API with the title and checks to make sure it only returns one item - String title = "A Court of Wings and Ruin"; - String bookInfo = ""; - try{ - bookInfo = BookServiceClient.getBookInfo(title); - }catch(Exception e){ - String failureMessage = "Was not able to query the Book API. \n"+e; - Assert.fail(failureMessage); - } - JSONObject jsonObject = new JSONObject(bookInfo); - Assert.assertEquals(true,jsonObject.has("volumeInfo")); - Assert.assertEquals(false,jsonObject.has("items")); - } @Test(expected = NullPointerException.class) public void queryNull() throws Exception{ //attempts to query a null value BookServiceClient.getBookInfo(null); } @Test(expected = NullPointerException.class) public void queryEmpty() throws Exception{ //attempts to query an empty value BookServiceClient.getBookInfo(""); } }
16
0.32
0
16
868f9d74994c1a516c95d8a5bc9643c6bd92a701
lib/starting_blocks-blinky.rb
lib/starting_blocks-blinky.rb
require 'starting_blocks' require 'blinky' # fix issue where no light will cause lock-up module Blinky class LightFactory class << self alias :original_detect_lights :detect_lights def detect_lights plugins, recipes original_detect_lights plugins, recipes rescue [] end end end end module StartingBlocks module Extensions class BlinkyLighting def initialize @light = Blinky.new.light end def self.turn_off! Blinky.new.light.off! end def receive_files_to_run files @spec_count = files.count return if files.count == 0 change_color_to :yellow end def receive_results results return if @spec_count == 0 if (results[:tests] || 0) == 0 change_color_to :red elsif (results[:errors] || 0) > 0 change_color_to :red elsif (results[:failures] || 0) > 0 change_color_to :red elsif (results[:skips] || 0) > 0 change_color_to :yellow else change_color_to :green end end def change_color_to(color) case color when :green @light.success! when :red @light.failure! when :yellow @light.building! end rescue end end end end StartingBlocks::Publisher.subscribers << StartingBlocks::Extensions::BlinkyLighting.new
require 'starting_blocks' require 'blinky' # fix issue where no light will cause lock-up module Blinky class LightFactory class << self alias :original_detect_lights :detect_lights def detect_lights plugins, recipes original_detect_lights plugins, recipes rescue [] end end end end module StartingBlocks module Extensions class BlinkyLighting def initialize @light = Blinky.new.light end def self.turn_off! Blinky.new.light.off! end def receive_files_to_run files @spec_count = files.count return if files.count == 0 change_color_to :yellow end def receive_results results return if @spec_count == 0 run_the_old_logic_with results end def run_the_old_logic_with results if (results[:tests] || 0) == 0 change_color_to :red elsif (results[:errors] || 0) > 0 change_color_to :red elsif (results[:failures] || 0) > 0 change_color_to :red elsif (results[:skips] || 0) > 0 change_color_to :yellow else change_color_to :green end end def change_color_to(color) case color when :green @light.success! when :red @light.failure! when :yellow @light.building! end rescue end end end end StartingBlocks::Publisher.subscribers << StartingBlocks::Extensions::BlinkyLighting.new
Move the existing logic to a single method.
Move the existing logic to a single method.
Ruby
mit
darrencauthon/starting_blocks-blinky
ruby
## Code Before: require 'starting_blocks' require 'blinky' # fix issue where no light will cause lock-up module Blinky class LightFactory class << self alias :original_detect_lights :detect_lights def detect_lights plugins, recipes original_detect_lights plugins, recipes rescue [] end end end end module StartingBlocks module Extensions class BlinkyLighting def initialize @light = Blinky.new.light end def self.turn_off! Blinky.new.light.off! end def receive_files_to_run files @spec_count = files.count return if files.count == 0 change_color_to :yellow end def receive_results results return if @spec_count == 0 if (results[:tests] || 0) == 0 change_color_to :red elsif (results[:errors] || 0) > 0 change_color_to :red elsif (results[:failures] || 0) > 0 change_color_to :red elsif (results[:skips] || 0) > 0 change_color_to :yellow else change_color_to :green end end def change_color_to(color) case color when :green @light.success! when :red @light.failure! when :yellow @light.building! end rescue end end end end StartingBlocks::Publisher.subscribers << StartingBlocks::Extensions::BlinkyLighting.new ## Instruction: Move the existing logic to a single method. ## Code After: require 'starting_blocks' require 'blinky' # fix issue where no light will cause lock-up module Blinky class LightFactory class << self alias :original_detect_lights :detect_lights def detect_lights plugins, recipes original_detect_lights plugins, recipes rescue [] end end end end module StartingBlocks module Extensions class BlinkyLighting def initialize @light = Blinky.new.light end def self.turn_off! Blinky.new.light.off! end def receive_files_to_run files @spec_count = files.count return if files.count == 0 change_color_to :yellow end def receive_results results return if @spec_count == 0 run_the_old_logic_with results end def run_the_old_logic_with results if (results[:tests] || 0) == 0 change_color_to :red elsif (results[:errors] || 0) > 0 change_color_to :red elsif (results[:failures] || 0) > 0 change_color_to :red elsif (results[:skips] || 0) > 0 change_color_to :yellow else change_color_to :green end end def change_color_to(color) case color when :green @light.success! when :red @light.failure! when :yellow @light.building! end rescue end end end end StartingBlocks::Publisher.subscribers << StartingBlocks::Extensions::BlinkyLighting.new
require 'starting_blocks' require 'blinky' # fix issue where no light will cause lock-up module Blinky class LightFactory class << self alias :original_detect_lights :detect_lights def detect_lights plugins, recipes original_detect_lights plugins, recipes rescue [] end end end end module StartingBlocks module Extensions class BlinkyLighting def initialize @light = Blinky.new.light end def self.turn_off! Blinky.new.light.off! end def receive_files_to_run files @spec_count = files.count return if files.count == 0 change_color_to :yellow end def receive_results results return if @spec_count == 0 + run_the_old_logic_with results + end + + def run_the_old_logic_with results if (results[:tests] || 0) == 0 change_color_to :red elsif (results[:errors] || 0) > 0 change_color_to :red elsif (results[:failures] || 0) > 0 change_color_to :red elsif (results[:skips] || 0) > 0 change_color_to :yellow else change_color_to :green end end def change_color_to(color) case color when :green @light.success! when :red @light.failure! when :yellow @light.building! end rescue end end end end StartingBlocks::Publisher.subscribers << StartingBlocks::Extensions::BlinkyLighting.new
4
0.060606
4
0
f50d3c19f32ee787d5b6a44fe37777efcfeacf2e
recipes/apc.rb
recipes/apc.rb
ruby_block 'raise_use_ius_exception' do block do raise 'APC is not compatible with PHP from IUS Community repos. ' \ 'Try setting node[\'osl-php\'][\'use_ius\'] to false.' end only_if { node['osl-php']['use_ius'] } end %w(httpd-devel pcre pcre-devel).each do |pkg| package pkg do action :install end end build_essential 'APC' php_pear 'APC' do action :install channel 'pecl' end php_ini 'APC' do options node['osl-php']['apc'] end
ruby_block 'raise_use_ius_exception' do block do raise 'APC is not compatible with PHP from IUS Community repos. ' \ 'Try setting node[\'osl-php\'][\'use_ius\'] to false.' end only_if { node['osl-php']['use_ius'] } end %w(httpd-devel pcre pcre-devel).each do |pkg| package pkg do action :install end end build_essential 'APC' php_pear 'APC' do action :install # Use channel 'pecl' since APC is not available on the default channel channel 'pecl' end php_ini 'APC' do options node['osl-php']['apc'] end
Add comment for pecl channel
Add comment for pecl channel
Ruby
apache-2.0
osuosl-cookbooks/osl-php,osuosl-cookbooks/osl-php,osuosl-cookbooks/osl-php
ruby
## Code Before: ruby_block 'raise_use_ius_exception' do block do raise 'APC is not compatible with PHP from IUS Community repos. ' \ 'Try setting node[\'osl-php\'][\'use_ius\'] to false.' end only_if { node['osl-php']['use_ius'] } end %w(httpd-devel pcre pcre-devel).each do |pkg| package pkg do action :install end end build_essential 'APC' php_pear 'APC' do action :install channel 'pecl' end php_ini 'APC' do options node['osl-php']['apc'] end ## Instruction: Add comment for pecl channel ## Code After: ruby_block 'raise_use_ius_exception' do block do raise 'APC is not compatible with PHP from IUS Community repos. ' \ 'Try setting node[\'osl-php\'][\'use_ius\'] to false.' end only_if { node['osl-php']['use_ius'] } end %w(httpd-devel pcre pcre-devel).each do |pkg| package pkg do action :install end end build_essential 'APC' php_pear 'APC' do action :install # Use channel 'pecl' since APC is not available on the default channel channel 'pecl' end php_ini 'APC' do options node['osl-php']['apc'] end
ruby_block 'raise_use_ius_exception' do block do raise 'APC is not compatible with PHP from IUS Community repos. ' \ 'Try setting node[\'osl-php\'][\'use_ius\'] to false.' end only_if { node['osl-php']['use_ius'] } end %w(httpd-devel pcre pcre-devel).each do |pkg| package pkg do action :install end end build_essential 'APC' php_pear 'APC' do action :install + # Use channel 'pecl' since APC is not available on the default channel channel 'pecl' end php_ini 'APC' do options node['osl-php']['apc'] end
1
0.04
1
0
e3ce6627fc3fbedf2a0e77d201e071f725484e87
appveyor.yml
appveyor.yml
environment: matrix: - TARGET: x86_64-pc-windows-msvc OTHER_TARGET: i686-pc-windows-msvc MAKE_TARGETS: test-unit-x86_64-pc-windows-msvc install: - appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe - rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin - rustup target add %OTHER_TARGET% - rustc -V - cargo -V - git submodule update --init clone_depth: 1 build: false test_script: - cargo test
environment: # At the time this was added AppVeyor was having troubles with checking # revocation of SSL certificates of sites like static.rust-lang.org and what # we think is crates.io. The libcurl HTTP client by default checks for # revocation on Windows and according to a mailing list [1] this can be # disabled. # # The `CARGO_HTTP_CHECK_REVOKE` env var here tells cargo to disable SSL # revocation checking on Windows in libcurl. Note, though, that rustup, which # we're using to download Rust here, also uses libcurl as the default backend. # Unlike Cargo, however, rustup doesn't have a mechanism to disable revocation # checking. To get rustup working we set `RUSTUP_USE_HYPER` which forces it to # use the Hyper instead of libcurl backend. Both Hyper and libcurl use # schannel on Windows but it appears that Hyper configures it slightly # differently such that revocation checking isn't turned on by default. # # [1]: https://curl.haxx.se/mail/lib-2016-03/0202.html RUSTUP_USE_HYPER: 1 CARGO_HTTP_CHECK_REVOKE: false matrix: - TARGET: x86_64-pc-windows-msvc OTHER_TARGET: i686-pc-windows-msvc MAKE_TARGETS: test-unit-x86_64-pc-windows-msvc install: - appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe - rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin - rustup target add %OTHER_TARGET% - rustc -V - cargo -V - git submodule update --init clone_depth: 1 build: false test_script: - cargo test
Work around AppVeyor for now
Work around AppVeyor for now
YAML
apache-2.0
tshepang/cargo,rust-lang/cargo,rustyhorde/cargo,achanda/cargo,nipunn1313/cargo,rustyhorde/cargo,vojtechkral/cargo,achanda/cargo,tsurai/cargo,eminence/cargo,nipunn1313/cargo,achanda/cargo,rustyhorde/cargo,eminence/cargo,tsurai/cargo,tsurai/cargo,tshepang/cargo,tsurai/cargo,tshepang/cargo,eminence/cargo,rust-lang/cargo,achanda/cargo,tshepang/cargo,vojtechkral/cargo,rustyhorde/cargo,vojtechkral/cargo,vojtechkral/cargo,rust-lang/cargo,nipunn1313/cargo,tsurai/cargo,nipunn1313/cargo,eminence/cargo,rust-lang/cargo
yaml
## Code Before: environment: matrix: - TARGET: x86_64-pc-windows-msvc OTHER_TARGET: i686-pc-windows-msvc MAKE_TARGETS: test-unit-x86_64-pc-windows-msvc install: - appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe - rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin - rustup target add %OTHER_TARGET% - rustc -V - cargo -V - git submodule update --init clone_depth: 1 build: false test_script: - cargo test ## Instruction: Work around AppVeyor for now ## Code After: environment: # At the time this was added AppVeyor was having troubles with checking # revocation of SSL certificates of sites like static.rust-lang.org and what # we think is crates.io. The libcurl HTTP client by default checks for # revocation on Windows and according to a mailing list [1] this can be # disabled. # # The `CARGO_HTTP_CHECK_REVOKE` env var here tells cargo to disable SSL # revocation checking on Windows in libcurl. Note, though, that rustup, which # we're using to download Rust here, also uses libcurl as the default backend. # Unlike Cargo, however, rustup doesn't have a mechanism to disable revocation # checking. To get rustup working we set `RUSTUP_USE_HYPER` which forces it to # use the Hyper instead of libcurl backend. Both Hyper and libcurl use # schannel on Windows but it appears that Hyper configures it slightly # differently such that revocation checking isn't turned on by default. # # [1]: https://curl.haxx.se/mail/lib-2016-03/0202.html RUSTUP_USE_HYPER: 1 CARGO_HTTP_CHECK_REVOKE: false matrix: - TARGET: x86_64-pc-windows-msvc OTHER_TARGET: i686-pc-windows-msvc MAKE_TARGETS: test-unit-x86_64-pc-windows-msvc install: - appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe - rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin - rustup target add %OTHER_TARGET% - rustc -V - cargo -V - git submodule update --init clone_depth: 1 build: false test_script: - cargo test
environment: + + # At the time this was added AppVeyor was having troubles with checking + # revocation of SSL certificates of sites like static.rust-lang.org and what + # we think is crates.io. The libcurl HTTP client by default checks for + # revocation on Windows and according to a mailing list [1] this can be + # disabled. + # + # The `CARGO_HTTP_CHECK_REVOKE` env var here tells cargo to disable SSL + # revocation checking on Windows in libcurl. Note, though, that rustup, which + # we're using to download Rust here, also uses libcurl as the default backend. + # Unlike Cargo, however, rustup doesn't have a mechanism to disable revocation + # checking. To get rustup working we set `RUSTUP_USE_HYPER` which forces it to + # use the Hyper instead of libcurl backend. Both Hyper and libcurl use + # schannel on Windows but it appears that Hyper configures it slightly + # differently such that revocation checking isn't turned on by default. + # + # [1]: https://curl.haxx.se/mail/lib-2016-03/0202.html + RUSTUP_USE_HYPER: 1 + CARGO_HTTP_CHECK_REVOKE: false + matrix: - TARGET: x86_64-pc-windows-msvc OTHER_TARGET: i686-pc-windows-msvc MAKE_TARGETS: test-unit-x86_64-pc-windows-msvc install: - appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe - rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain nightly - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin - rustup target add %OTHER_TARGET% - rustc -V - cargo -V - git submodule update --init clone_depth: 1 build: false test_script: - cargo test
20
0.952381
20
0
51e0bc5bc8f88bf84dba709a13000b0043bea29b
lib/package-updates-status-view.coffee
lib/package-updates-status-view.coffee
_ = require 'underscore-plus' {View} = require 'atom' module.exports = class PackageUpdatesStatusView extends View @content: -> @div class: 'inline-block text text-info', => @span class: 'icon icon-package' @span outlet: 'countLabel', class: 'available-updates-status' initialize: (statusBar, packages) -> @countLabel.text(packages.length) statusBar.appendRight(this) @setTooltip("#{_.pluralize(packages.length, 'package update')} available") @subscribe this, 'click', => @trigger('settings-view:install-packages') @destroyTooltip() @remove()
_ = require 'underscore-plus' {View} = require 'atom' module.exports = class PackageUpdatesStatusView extends View @content: -> @div class: 'inline-block text text-info', => @span class: 'icon icon-package' @span outlet: 'countLabel', class: 'available-updates-status' initialize: (statusBar, packages) -> @countLabel.text(packages.length) @setTooltip("#{_.pluralize(packages.length, 'package update')} available") statusBar.appendRight(this) @subscribe this, 'click', => @trigger('settings-view:install-packages') @destroyTooltip() @remove()
Append after at end of initialize
Append after at end of initialize
CoffeeScript
mit
atom/settings-view
coffeescript
## Code Before: _ = require 'underscore-plus' {View} = require 'atom' module.exports = class PackageUpdatesStatusView extends View @content: -> @div class: 'inline-block text text-info', => @span class: 'icon icon-package' @span outlet: 'countLabel', class: 'available-updates-status' initialize: (statusBar, packages) -> @countLabel.text(packages.length) statusBar.appendRight(this) @setTooltip("#{_.pluralize(packages.length, 'package update')} available") @subscribe this, 'click', => @trigger('settings-view:install-packages') @destroyTooltip() @remove() ## Instruction: Append after at end of initialize ## Code After: _ = require 'underscore-plus' {View} = require 'atom' module.exports = class PackageUpdatesStatusView extends View @content: -> @div class: 'inline-block text text-info', => @span class: 'icon icon-package' @span outlet: 'countLabel', class: 'available-updates-status' initialize: (statusBar, packages) -> @countLabel.text(packages.length) @setTooltip("#{_.pluralize(packages.length, 'package update')} available") statusBar.appendRight(this) @subscribe this, 'click', => @trigger('settings-view:install-packages') @destroyTooltip() @remove()
_ = require 'underscore-plus' {View} = require 'atom' module.exports = class PackageUpdatesStatusView extends View @content: -> @div class: 'inline-block text text-info', => @span class: 'icon icon-package' @span outlet: 'countLabel', class: 'available-updates-status' initialize: (statusBar, packages) -> @countLabel.text(packages.length) + @setTooltip("#{_.pluralize(packages.length, 'package update')} available") statusBar.appendRight(this) - @setTooltip("#{_.pluralize(packages.length, 'package update')} available") @subscribe this, 'click', => @trigger('settings-view:install-packages') @destroyTooltip() @remove()
2
0.105263
1
1
722b588629fa0986e8d7c06ff135d81c08ad8fab
tensorflow_datasets/object_detection/waymo_open_dataset_test.py
tensorflow_datasets/object_detection/waymo_open_dataset_test.py
"""TODO(waymo_open_dataset): Add a description here.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow_datasets import testing from tensorflow_datasets.object_detection import waymo_open_dataset class WaymoOpenDatasetTest(testing.DatasetBuilderTestCase): DATASET_CLASS = waymo_open_dataset.WaymoOpenDataset SPLITS = { "train": 1, # Number of fake train example "validation": 1, # Number of fake test example } def setUp(self): super(WaymoOpenDatasetTest, self).setUp() self.builder._CLOUD_BUCKET = self.example_dir if __name__ == "__main__": testing.test_main()
"""Test for waymo_open_dataset.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow_datasets import testing from tensorflow_datasets.object_detection import waymo_open_dataset class WaymoOpenDatasetTest(testing.DatasetBuilderTestCase): DATASET_CLASS = waymo_open_dataset.WaymoOpenDataset SPLITS = { "train": 1, # Number of fake train example "validation": 1, # Number of fake test example } def setUp(self): super(WaymoOpenDatasetTest, self).setUp() self.builder._CLOUD_BUCKET = self.example_dir if __name__ == "__main__": testing.test_main()
Add doc string for waymo open dataset
Add doc string for waymo open dataset
Python
apache-2.0
tensorflow/datasets,tensorflow/datasets,tensorflow/datasets,tensorflow/datasets,tensorflow/datasets
python
## Code Before: """TODO(waymo_open_dataset): Add a description here.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow_datasets import testing from tensorflow_datasets.object_detection import waymo_open_dataset class WaymoOpenDatasetTest(testing.DatasetBuilderTestCase): DATASET_CLASS = waymo_open_dataset.WaymoOpenDataset SPLITS = { "train": 1, # Number of fake train example "validation": 1, # Number of fake test example } def setUp(self): super(WaymoOpenDatasetTest, self).setUp() self.builder._CLOUD_BUCKET = self.example_dir if __name__ == "__main__": testing.test_main() ## Instruction: Add doc string for waymo open dataset ## Code After: """Test for waymo_open_dataset.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow_datasets import testing from tensorflow_datasets.object_detection import waymo_open_dataset class WaymoOpenDatasetTest(testing.DatasetBuilderTestCase): DATASET_CLASS = waymo_open_dataset.WaymoOpenDataset SPLITS = { "train": 1, # Number of fake train example "validation": 1, # Number of fake test example } def setUp(self): super(WaymoOpenDatasetTest, self).setUp() self.builder._CLOUD_BUCKET = self.example_dir if __name__ == "__main__": testing.test_main()
+ """Test for waymo_open_dataset.""" - - """TODO(waymo_open_dataset): Add a description here.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow_datasets import testing from tensorflow_datasets.object_detection import waymo_open_dataset class WaymoOpenDatasetTest(testing.DatasetBuilderTestCase): DATASET_CLASS = waymo_open_dataset.WaymoOpenDataset SPLITS = { "train": 1, # Number of fake train example "validation": 1, # Number of fake test example } def setUp(self): super(WaymoOpenDatasetTest, self).setUp() self.builder._CLOUD_BUCKET = self.example_dir if __name__ == "__main__": testing.test_main() -
4
0.153846
1
3
c212acd71b531e0be32c6e59f78004b249299d6d
js/options.js
js/options.js
jQuery( function() { jQuery(document).ready( function() { var setting = JSON.parse(localStorage.getItem('setting')); if ( setting ) { jQuery('#mt-api-path').val(setting.apipath); jQuery('#username').val(setting.username); jQuery('#password').val(setting.password); } }); jQuery('button.btn-primary').click( function() { jQuery('#msg').children().remove(); var setting = { apipath: jQuery('#mt-api-path').val(), username: jQuery('#username').val(), password: jQuery('#password').val() }; // Sign In var api = new MT.DataAPI({ baseUrl: setting.apipath, clientId: "movabletype-writer" }); api.authenticate({ username: setting.username, password: setting.password, }, function(response) { if (response.error) { // Handle error return; } api.storeTokenData(response); // Save settings localStorage.setItem('setting', JSON.stringify(setting)); jQuery('#msg').append('<p class="alert bg-success">Your settings has been saved. <a href="main.html">Post a new entry</a></p>') }); }); });
jQuery( function() { jQuery(document).ready( function() { var setting = JSON.parse(localStorage.getItem('setting')); if ( setting ) { jQuery('#mt-api-path').val(setting.apipath); jQuery('#username').val(setting.username); jQuery('#password').val(setting.password); } }); jQuery('button.btn-primary').click( function() { jQuery('#msg').children().remove(); var setting = { apipath: jQuery('#mt-api-path').val(), username: jQuery('#username').val(), password: jQuery('#password').val() }; // Sign In var api = new MT.DataAPI({ baseUrl: setting.apipath, clientId: "movabletype-writer" }); api.authenticate({ username: setting.username, password: setting.password, }, function(response) { if (response.error) { var code = response.error.code; var msg; if (code === 404 ) { msg = 'Cannot access to Data API CGI script. Please confirm URL for Data API Scrpt.' } else if (code === 401 ) { msg = 'Failed to sign in to Movable Type. Please confirm your Username or Password.'; } else { msg = response.error.message; } jQuery('#msg').append('<p class="alert bg-danger">An error occurs: ' + msg + '</p>') return; } api.storeTokenData(response); // Save settings localStorage.setItem('setting', JSON.stringify(setting)); jQuery('#msg').append('<p class="alert bg-success">Your settings has been saved. <a href="main.html">Post a new entry</a></p>') }); }); });
Add error handling for settings.
Add error handling for settings.
JavaScript
mit
movabletype/MovableTypeWriter,movabletype/MovableTypeWriter
javascript
## Code Before: jQuery( function() { jQuery(document).ready( function() { var setting = JSON.parse(localStorage.getItem('setting')); if ( setting ) { jQuery('#mt-api-path').val(setting.apipath); jQuery('#username').val(setting.username); jQuery('#password').val(setting.password); } }); jQuery('button.btn-primary').click( function() { jQuery('#msg').children().remove(); var setting = { apipath: jQuery('#mt-api-path').val(), username: jQuery('#username').val(), password: jQuery('#password').val() }; // Sign In var api = new MT.DataAPI({ baseUrl: setting.apipath, clientId: "movabletype-writer" }); api.authenticate({ username: setting.username, password: setting.password, }, function(response) { if (response.error) { // Handle error return; } api.storeTokenData(response); // Save settings localStorage.setItem('setting', JSON.stringify(setting)); jQuery('#msg').append('<p class="alert bg-success">Your settings has been saved. <a href="main.html">Post a new entry</a></p>') }); }); }); ## Instruction: Add error handling for settings. ## Code After: jQuery( function() { jQuery(document).ready( function() { var setting = JSON.parse(localStorage.getItem('setting')); if ( setting ) { jQuery('#mt-api-path').val(setting.apipath); jQuery('#username').val(setting.username); jQuery('#password').val(setting.password); } }); jQuery('button.btn-primary').click( function() { jQuery('#msg').children().remove(); var setting = { apipath: jQuery('#mt-api-path').val(), username: jQuery('#username').val(), password: jQuery('#password').val() }; // Sign In var api = new MT.DataAPI({ baseUrl: setting.apipath, clientId: "movabletype-writer" }); api.authenticate({ username: setting.username, password: setting.password, }, function(response) { if (response.error) { var code = response.error.code; var msg; if (code === 404 ) { msg = 'Cannot access to Data API CGI script. Please confirm URL for Data API Scrpt.' } else if (code === 401 ) { msg = 'Failed to sign in to Movable Type. Please confirm your Username or Password.'; } else { msg = response.error.message; } jQuery('#msg').append('<p class="alert bg-danger">An error occurs: ' + msg + '</p>') return; } api.storeTokenData(response); // Save settings localStorage.setItem('setting', JSON.stringify(setting)); jQuery('#msg').append('<p class="alert bg-success">Your settings has been saved. <a href="main.html">Post a new entry</a></p>') }); }); });
jQuery( function() { jQuery(document).ready( function() { var setting = JSON.parse(localStorage.getItem('setting')); if ( setting ) { jQuery('#mt-api-path').val(setting.apipath); jQuery('#username').val(setting.username); jQuery('#password').val(setting.password); } }); jQuery('button.btn-primary').click( function() { jQuery('#msg').children().remove(); var setting = { apipath: jQuery('#mt-api-path').val(), username: jQuery('#username').val(), password: jQuery('#password').val() }; // Sign In var api = new MT.DataAPI({ baseUrl: setting.apipath, clientId: "movabletype-writer" }); api.authenticate({ username: setting.username, password: setting.password, }, function(response) { if (response.error) { - // Handle error + var code = response.error.code; + var msg; + if (code === 404 ) { + msg = 'Cannot access to Data API CGI script. Please confirm URL for Data API Scrpt.' + } else if (code === 401 ) { + msg = 'Failed to sign in to Movable Type. Please confirm your Username or Password.'; + } else { + msg = response.error.message; + } + jQuery('#msg').append('<p class="alert bg-danger">An error occurs: ' + msg + '</p>') return; } api.storeTokenData(response); // Save settings localStorage.setItem('setting', JSON.stringify(setting)); jQuery('#msg').append('<p class="alert bg-success">Your settings has been saved. <a href="main.html">Post a new entry</a></p>') }); }); });
11
0.268293
10
1
0377e9884e2a975076ee34c5654c46740f591da9
README.md
README.md
Java API for controlling [SONOS](http://www.sonos.com/) players. It's a work in progress. ## People The current lead maintainer is [Valentin Michalak] (https://github.com/vmichalak) ## Licence [MIT](LICENCE)
Java API for controlling [SONOS](http://www.sonos.com/) players. It's a work in progress. [Link to the Trello](https://trello.com/b/0r87xvWy/sonos-controller) ## People The current lead maintainer is [Valentin Michalak] (https://github.com/vmichalak) ## Licence [MIT](LICENCE)
Update readme.md (add link to the Trello)
Update readme.md (add link to the Trello)
Markdown
mit
vmichalak/sonos-controller
markdown
## Code Before: Java API for controlling [SONOS](http://www.sonos.com/) players. It's a work in progress. ## People The current lead maintainer is [Valentin Michalak] (https://github.com/vmichalak) ## Licence [MIT](LICENCE) ## Instruction: Update readme.md (add link to the Trello) ## Code After: Java API for controlling [SONOS](http://www.sonos.com/) players. It's a work in progress. [Link to the Trello](https://trello.com/b/0r87xvWy/sonos-controller) ## People The current lead maintainer is [Valentin Michalak] (https://github.com/vmichalak) ## Licence [MIT](LICENCE)
Java API for controlling [SONOS](http://www.sonos.com/) players. It's a work in progress. + + [Link to the Trello](https://trello.com/b/0r87xvWy/sonos-controller) ## People The current lead maintainer is [Valentin Michalak] (https://github.com/vmichalak) ## Licence [MIT](LICENCE)
2
0.181818
2
0
ad6f7816237673658ae8d86fc659facb902fab5b
recyclerfragment/src/main/java/biz/kasual/recyclerfragment/views/BasicCardView.java
recyclerfragment/src/main/java/biz/kasual/recyclerfragment/views/BasicCardView.java
package biz.kasual.recyclerfragment.views; import android.content.Context; import android.support.v7.widget.CardView; import android.util.AttributeSet; /** * Created by Stephen Vinouze on 09/11/2015. */ public class BasicCardView extends CardView { public BasicCardView(Context context) { super(context); initView(); } public BasicCardView(Context context, AttributeSet attributeSet) { super(context, attributeSet); initView(); } private void initView() { setUseCompatPadding(true); setCardElevation(8); setRadius(5); } }
package biz.kasual.recyclerfragment.views; import android.content.Context; import android.content.res.TypedArray; import android.graphics.drawable.Drawable; import android.support.v7.widget.CardView; import android.util.AttributeSet; import biz.kasual.recyclerfragment.R; /** * Created by Stephen Vinouze on 09/11/2015. */ public class BasicCardView extends CardView { public BasicCardView(Context context) { super(context); initView(); } public BasicCardView(Context context, AttributeSet attributeSet) { super(context, attributeSet); initView(); } private void initView() { setUseCompatPadding(true); setCardElevation(8); setRadius(5); int[] attrs = new int[] { R.attr.selectableItemBackground}; TypedArray ta = getContext().obtainStyledAttributes(attrs); Drawable drawableFromTheme = ta.getDrawable(0); setForeground(drawableFromTheme); ta.recycle(); } }
Add ripple drawable to cards
[*] Add ripple drawable to cards
Java
apache-2.0
KasualBusiness/RecyclerFragment
java
## Code Before: package biz.kasual.recyclerfragment.views; import android.content.Context; import android.support.v7.widget.CardView; import android.util.AttributeSet; /** * Created by Stephen Vinouze on 09/11/2015. */ public class BasicCardView extends CardView { public BasicCardView(Context context) { super(context); initView(); } public BasicCardView(Context context, AttributeSet attributeSet) { super(context, attributeSet); initView(); } private void initView() { setUseCompatPadding(true); setCardElevation(8); setRadius(5); } } ## Instruction: [*] Add ripple drawable to cards ## Code After: package biz.kasual.recyclerfragment.views; import android.content.Context; import android.content.res.TypedArray; import android.graphics.drawable.Drawable; import android.support.v7.widget.CardView; import android.util.AttributeSet; import biz.kasual.recyclerfragment.R; /** * Created by Stephen Vinouze on 09/11/2015. */ public class BasicCardView extends CardView { public BasicCardView(Context context) { super(context); initView(); } public BasicCardView(Context context, AttributeSet attributeSet) { super(context, attributeSet); initView(); } private void initView() { setUseCompatPadding(true); setCardElevation(8); setRadius(5); int[] attrs = new int[] { R.attr.selectableItemBackground}; TypedArray ta = getContext().obtainStyledAttributes(attrs); Drawable drawableFromTheme = ta.getDrawable(0); setForeground(drawableFromTheme); ta.recycle(); } }
package biz.kasual.recyclerfragment.views; import android.content.Context; + import android.content.res.TypedArray; + import android.graphics.drawable.Drawable; import android.support.v7.widget.CardView; import android.util.AttributeSet; + + import biz.kasual.recyclerfragment.R; /** * Created by Stephen Vinouze on 09/11/2015. */ public class BasicCardView extends CardView { public BasicCardView(Context context) { super(context); initView(); } public BasicCardView(Context context, AttributeSet attributeSet) { super(context, attributeSet); initView(); } private void initView() { setUseCompatPadding(true); setCardElevation(8); setRadius(5); + + int[] attrs = new int[] { R.attr.selectableItemBackground}; + TypedArray ta = getContext().obtainStyledAttributes(attrs); + Drawable drawableFromTheme = ta.getDrawable(0); + setForeground(drawableFromTheme); + ta.recycle(); } }
10
0.357143
10
0
b9ae3ec3713b80924e02d3c21bcb413704b2fe0c
app/views/renalware/layouts/application.html.slim
app/views/renalware/layouts/application.html.slim
doctype html html lang="en" head meta charset="utf-8" meta name="viewport" content="width=device-width, initial-scale=1.0" title= page_title = stylesheet_link_tag "application", media: :all = javascript_include_tag "vendor/modernizr" = csrf_meta_tag body(class="#{yield(:body_class)}") #modals-wrapper .page .sticky-top = render "renalware/navigation/main" = yield(:header) = render "renalware/shared/flash_messages" main .main-content = yield - unless user_signed_in? = render "renalware/navigation/footer" = javascript_include_tag "application"
doctype html html lang="en" head meta charset="utf-8" meta name="viewport" content="width=device-width, initial-scale=1.0" title= page_title = stylesheet_link_tag "application", media: :all = javascript_include_tag "vendor/modernizr" = csrf_meta_tag body(class="#{yield(:body_class)}") #modals-wrapper .page .sticky-top = render "renalware/navigation/main" = yield(:header) = render "renalware/shared/flash_messages" main .main-content = yield - unless user_signed_in? = render "renalware/navigation/footer" - load_js_asynchonously = (Rails.env.staging? || Rails.env.production?) = javascript_include_tag "application", async: load_js_asynchonously
Load js asynchonrously in stagig and production
Load js asynchonrously in stagig and production
Slim
mit
airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core
slim
## Code Before: doctype html html lang="en" head meta charset="utf-8" meta name="viewport" content="width=device-width, initial-scale=1.0" title= page_title = stylesheet_link_tag "application", media: :all = javascript_include_tag "vendor/modernizr" = csrf_meta_tag body(class="#{yield(:body_class)}") #modals-wrapper .page .sticky-top = render "renalware/navigation/main" = yield(:header) = render "renalware/shared/flash_messages" main .main-content = yield - unless user_signed_in? = render "renalware/navigation/footer" = javascript_include_tag "application" ## Instruction: Load js asynchonrously in stagig and production ## Code After: doctype html html lang="en" head meta charset="utf-8" meta name="viewport" content="width=device-width, initial-scale=1.0" title= page_title = stylesheet_link_tag "application", media: :all = javascript_include_tag "vendor/modernizr" = csrf_meta_tag body(class="#{yield(:body_class)}") #modals-wrapper .page .sticky-top = render "renalware/navigation/main" = yield(:header) = render "renalware/shared/flash_messages" main .main-content = yield - unless user_signed_in? = render "renalware/navigation/footer" - load_js_asynchonously = (Rails.env.staging? || Rails.env.production?) = javascript_include_tag "application", async: load_js_asynchonously
doctype html html lang="en" head meta charset="utf-8" meta name="viewport" content="width=device-width, initial-scale=1.0" title= page_title = stylesheet_link_tag "application", media: :all = javascript_include_tag "vendor/modernizr" = csrf_meta_tag body(class="#{yield(:body_class)}") #modals-wrapper .page .sticky-top = render "renalware/navigation/main" = yield(:header) = render "renalware/shared/flash_messages" main .main-content = yield - unless user_signed_in? = render "renalware/navigation/footer" - = javascript_include_tag "application" + - load_js_asynchonously = (Rails.env.staging? || Rails.env.production?) + = javascript_include_tag "application", async: load_js_asynchonously
3
0.107143
2
1
ccaf77c3fae8c48e6e7c1f347e2b4fbaeb1b403a
transfluent.gemspec
transfluent.gemspec
Gem::Specification.new do |s| s.name = 'transfluent' s.version = '0.0.0' s.date = '2014-02-03' s.summary = "Transfluent API client" s.description = "Order human powered translations directly from your Ruby code!" s.authors = ["Transfluent Ltd"] s.email = 'coders@transfluent.com' s.files = ["lib/transfluent.rb"] s.homepage = 'http://www.transfluent.com' s.license = 'MIT' end
Gem::Specification.new do |s| s.name = 'transfluent' s.version = '0.0.0' s.date = '2014-02-03' s.summary = "Transfluent API client" s.description = "Order human powered translations directly from your Ruby code!" s.authors = ["Transfluent Ltd"] s.email = 'coders@transfluent.com' s.files = [ "lib/transfluent.rb", "lib/transfluent/api.rb", "lib/transfluent/api_helper.rb", "lib/transfluent/language.rb" ] s.homepage = 'http://www.transfluent.com' s.license = 'MIT' end
Add missing files to gemfile
Add missing files to gemfile
Ruby
mit
Transfluent/Transfluent-Ruby
ruby
## Code Before: Gem::Specification.new do |s| s.name = 'transfluent' s.version = '0.0.0' s.date = '2014-02-03' s.summary = "Transfluent API client" s.description = "Order human powered translations directly from your Ruby code!" s.authors = ["Transfluent Ltd"] s.email = 'coders@transfluent.com' s.files = ["lib/transfluent.rb"] s.homepage = 'http://www.transfluent.com' s.license = 'MIT' end ## Instruction: Add missing files to gemfile ## Code After: Gem::Specification.new do |s| s.name = 'transfluent' s.version = '0.0.0' s.date = '2014-02-03' s.summary = "Transfluent API client" s.description = "Order human powered translations directly from your Ruby code!" s.authors = ["Transfluent Ltd"] s.email = 'coders@transfluent.com' s.files = [ "lib/transfluent.rb", "lib/transfluent/api.rb", "lib/transfluent/api_helper.rb", "lib/transfluent/language.rb" ] s.homepage = 'http://www.transfluent.com' s.license = 'MIT' end
Gem::Specification.new do |s| s.name = 'transfluent' s.version = '0.0.0' s.date = '2014-02-03' s.summary = "Transfluent API client" s.description = "Order human powered translations directly from your Ruby code!" s.authors = ["Transfluent Ltd"] s.email = 'coders@transfluent.com' - s.files = ["lib/transfluent.rb"] + s.files = [ + "lib/transfluent.rb", + "lib/transfluent/api.rb", + "lib/transfluent/api_helper.rb", + "lib/transfluent/language.rb" + ] s.homepage = 'http://www.transfluent.com' s.license = 'MIT' end
7
0.583333
6
1
5bcd52c1b0a2c20639304e8675572fbb70221aa3
test/CMakeLists.txt
test/CMakeLists.txt
ADD_SUBDIRECTORY(testharness) ADD_SUBDIRECTORY(unittests)
ADD_SUBDIRECTORY(functionalTest/cases) ADD_SUBDIRECTORY(unittests)
FIX path in CMakeList.txt file
FIX path in CMakeList.txt file
Text
agpl-3.0
Fiware/data.Orion,j1fig/fiware-orion,pacificIT/fiware-orion,McMutton/fiware-orion,pacificIT/fiware-orion,Fiware/context.Orion,fiwareulpgcmirror/fiware-orion,yalp/fiware-orion,j1fig/fiware-orion,McMutton/fiware-orion,fortizc/fiware-orion,fortizc/fiware-orion,jmcanterafonseca/fiware-orion,fiwareulpgcmirror/fiware-orion,McMutton/fiware-orion,telefonicaid/fiware-orion,jmcanterafonseca/fiware-orion,Fiware/context.Orion,Fiware/data.Orion,guerrerocarlos/fiware-orion,Fiware/context.Orion,jmcanterafonseca/fiware-orion,yalp/fiware-orion,j1fig/fiware-orion,fortizc/fiware-orion,yalp/fiware-orion,fortizc/fiware-orion,McMutton/fiware-orion,fortizc/fiware-orion,j1fig/fiware-orion,guerrerocarlos/fiware-orion,gavioto/fiware-orion,McMutton/fiware-orion,j1fig/fiware-orion,gavioto/fiware-orion,fiwareulpgcmirror/fiware-orion,telefonicaid/fiware-orion,gavioto/fiware-orion,fiwareulpgcmirror/fiware-orion,fiwareulpgcmirror/fiware-orion,Fiware/context.Orion,yalp/fiware-orion,fiwareulpgcmirror/fiware-orion,telefonicaid/fiware-orion,McMutton/fiware-orion,gavioto/fiware-orion,pacificIT/fiware-orion,telefonicaid/fiware-orion,Fiware/context.Orion,telefonicaid/fiware-orion,McMutton/fiware-orion,fortizc/fiware-orion,telefonicaid/fiware-orion,jmcanterafonseca/fiware-orion,Fiware/data.Orion,Fiware/data.Orion,guerrerocarlos/fiware-orion,pacificIT/fiware-orion,yalp/fiware-orion,jmcanterafonseca/fiware-orion,jmcanterafonseca/fiware-orion,Fiware/data.Orion,pacificIT/fiware-orion,Fiware/context.Orion,gavioto/fiware-orion,guerrerocarlos/fiware-orion,guerrerocarlos/fiware-orion,Fiware/data.Orion
text
## Code Before: ADD_SUBDIRECTORY(testharness) ADD_SUBDIRECTORY(unittests) ## Instruction: FIX path in CMakeList.txt file ## Code After: ADD_SUBDIRECTORY(functionalTest/cases) ADD_SUBDIRECTORY(unittests)
- ADD_SUBDIRECTORY(testharness) + ADD_SUBDIRECTORY(functionalTest/cases) ADD_SUBDIRECTORY(unittests)
2
0.666667
1
1
fb58675a646346daf72eda93174bef026661584d
Drift/Models/TeamMember.swift
Drift/Models/TeamMember.swift
// // TeamMember.swift // Drift // // Created by Brian McDonald on 31/08/2017. // Copyright © 2017 Drift. All rights reserved. // import Foundation class TeamMember: Mappable { var id: Int = 0 var avatarURL: String! var bot: Bool! required init?(map: Map) { if map.JSON["avatarUrl"] as? String == "" || map.JSON["avatarUrl"] as? String == nil{ return nil } mapping(map: map) } func mapping(map: Map) { id <- map["id"] avatarURL <- map["avatarUrl"] bot <- map["bot"] } }
// // TeamMember.swift // Drift // // Created by Brian McDonald on 31/08/2017. // Copyright © 2017 Drift. All rights reserved. // import ObjectMapper class TeamMember: Mappable { var id: Int = 0 var avatarURL: String! var bot: Bool! required init?(map: Map) { if map.JSON["avatarUrl"] as? String == "" || map.JSON["avatarUrl"] as? String == nil{ return nil } mapping(map: map) } func mapping(map: Map) { id <- map["id"] avatarURL <- map["avatarUrl"] bot <- map["bot"] } }
Add missing import for object mapper to team members
Add missing import for object mapper to team members
Swift
mit
Driftt/drift-sdk-ios,Driftt/drift-sdk-ios,8bytes/drift-sdk-ios,8bytes/drift-sdk-ios
swift
## Code Before: // // TeamMember.swift // Drift // // Created by Brian McDonald on 31/08/2017. // Copyright © 2017 Drift. All rights reserved. // import Foundation class TeamMember: Mappable { var id: Int = 0 var avatarURL: String! var bot: Bool! required init?(map: Map) { if map.JSON["avatarUrl"] as? String == "" || map.JSON["avatarUrl"] as? String == nil{ return nil } mapping(map: map) } func mapping(map: Map) { id <- map["id"] avatarURL <- map["avatarUrl"] bot <- map["bot"] } } ## Instruction: Add missing import for object mapper to team members ## Code After: // // TeamMember.swift // Drift // // Created by Brian McDonald on 31/08/2017. // Copyright © 2017 Drift. All rights reserved. // import ObjectMapper class TeamMember: Mappable { var id: Int = 0 var avatarURL: String! var bot: Bool! required init?(map: Map) { if map.JSON["avatarUrl"] as? String == "" || map.JSON["avatarUrl"] as? String == nil{ return nil } mapping(map: map) } func mapping(map: Map) { id <- map["id"] avatarURL <- map["avatarUrl"] bot <- map["bot"] } }
// // TeamMember.swift // Drift // // Created by Brian McDonald on 31/08/2017. // Copyright © 2017 Drift. All rights reserved. // - import Foundation + import ObjectMapper class TeamMember: Mappable { var id: Int = 0 var avatarURL: String! var bot: Bool! required init?(map: Map) { if map.JSON["avatarUrl"] as? String == "" || map.JSON["avatarUrl"] as? String == nil{ return nil } mapping(map: map) } func mapping(map: Map) { id <- map["id"] avatarURL <- map["avatarUrl"] bot <- map["bot"] } }
2
0.068966
1
1
0d0c9a93987885e96a1887a25f114ad8440079ea
config/routes.rb
config/routes.rb
Rails.application.routes.draw do root to: redirect('/register') get '/register', as: 'new_user_profile', to: 'user_profiles#new' post '/register', as: 'user_profile', to: 'user_profiles#create' end
Rails.application.routes.draw do root to: redirect(ENV.fetch('ROOT_REDIRECT', '/register')) get '/register', as: 'new_user_profile', to: 'user_profiles#new' post '/register', as: 'user_profile', to: 'user_profiles#create' end
Allow environment to configure root redirect
Allow environment to configure root redirect
Ruby
mit
guidance-guarantee-programme/register_your_interest,guidance-guarantee-programme/register_your_interest,guidance-guarantee-programme/register_your_interest
ruby
## Code Before: Rails.application.routes.draw do root to: redirect('/register') get '/register', as: 'new_user_profile', to: 'user_profiles#new' post '/register', as: 'user_profile', to: 'user_profiles#create' end ## Instruction: Allow environment to configure root redirect ## Code After: Rails.application.routes.draw do root to: redirect(ENV.fetch('ROOT_REDIRECT', '/register')) get '/register', as: 'new_user_profile', to: 'user_profiles#new' post '/register', as: 'user_profile', to: 'user_profiles#create' end
Rails.application.routes.draw do - root to: redirect('/register') + root to: redirect(ENV.fetch('ROOT_REDIRECT', '/register')) + get '/register', as: 'new_user_profile', to: 'user_profiles#new' post '/register', as: 'user_profile', to: 'user_profiles#create' end
3
0.6
2
1
857eb31be58a564fec9fd8d0aa94d6bca48c53a6
packages/ar/array-builder.yaml
packages/ar/array-builder.yaml
homepage: https://github.com/andrewthad/array-builder changelog-type: markdown hash: cdbca14ebed86b3501a2ff8c52c16ed6c0ead866f0afc1e7f8c6d329e1db37cc test-bench-deps: base: -any array-builder: -any tasty-hunit: -any tasty: -any maintainer: andrew.thaddeus@gmail.com synopsis: Builders for arrays changelog: | # Revision history for array-builder ## 0.1.0.0 -- 2019-09-12 * First version. Released on an unsuspecting world. basic-deps: base: ! '>=4.12 && <5' run-st: ! '>=0.1 && <0.2' array-chunks: ! '>=0.1 && <0.2' primitive: ! '>=0.6.4 && <0.8' all-versions: - 0.1.0.0 author: Andrew Martin latest: 0.1.0.0 description-type: haddock description: '' license-name: BSD-3-Clause
homepage: https://github.com/andrewthad/array-builder changelog-type: markdown hash: 68f579960f01807e7e9ee382cbacab2664ee0077ebe0dd9e3a6ba54a6d7bc86b test-bench-deps: base: -any array-builder: -any tasty-hunit: -any tasty: -any maintainer: andrew.thaddeus@gmail.com synopsis: Builders for arrays changelog: | # Revision history for array-builder ## 0.1.1.0 -- 2020-11-18 * Add `new1`. * Add `Data.Builder.(doubleton|tripleton)`. ## 0.1.0.0 -- 2019-09-12 * First version. basic-deps: base: '>=4.12 && <5' run-st: '>=0.1 && <0.2' array-chunks: '>=0.1 && <0.2' primitive: '>=0.6.4 && <0.8' all-versions: - 0.1.0.0 - 0.1.1.0 author: Andrew Martin latest: 0.1.1.0 description-type: haddock description: '' license-name: BSD-3-Clause
Update from Hackage at 2020-11-18T17:31:00Z
Update from Hackage at 2020-11-18T17:31:00Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/andrewthad/array-builder changelog-type: markdown hash: cdbca14ebed86b3501a2ff8c52c16ed6c0ead866f0afc1e7f8c6d329e1db37cc test-bench-deps: base: -any array-builder: -any tasty-hunit: -any tasty: -any maintainer: andrew.thaddeus@gmail.com synopsis: Builders for arrays changelog: | # Revision history for array-builder ## 0.1.0.0 -- 2019-09-12 * First version. Released on an unsuspecting world. basic-deps: base: ! '>=4.12 && <5' run-st: ! '>=0.1 && <0.2' array-chunks: ! '>=0.1 && <0.2' primitive: ! '>=0.6.4 && <0.8' all-versions: - 0.1.0.0 author: Andrew Martin latest: 0.1.0.0 description-type: haddock description: '' license-name: BSD-3-Clause ## Instruction: Update from Hackage at 2020-11-18T17:31:00Z ## Code After: homepage: https://github.com/andrewthad/array-builder changelog-type: markdown hash: 68f579960f01807e7e9ee382cbacab2664ee0077ebe0dd9e3a6ba54a6d7bc86b test-bench-deps: base: -any array-builder: -any tasty-hunit: -any tasty: -any maintainer: andrew.thaddeus@gmail.com synopsis: Builders for arrays changelog: | # Revision history for array-builder ## 0.1.1.0 -- 2020-11-18 * Add `new1`. * Add `Data.Builder.(doubleton|tripleton)`. ## 0.1.0.0 -- 2019-09-12 * First version. basic-deps: base: '>=4.12 && <5' run-st: '>=0.1 && <0.2' array-chunks: '>=0.1 && <0.2' primitive: '>=0.6.4 && <0.8' all-versions: - 0.1.0.0 - 0.1.1.0 author: Andrew Martin latest: 0.1.1.0 description-type: haddock description: '' license-name: BSD-3-Clause
homepage: https://github.com/andrewthad/array-builder changelog-type: markdown - hash: cdbca14ebed86b3501a2ff8c52c16ed6c0ead866f0afc1e7f8c6d329e1db37cc + hash: 68f579960f01807e7e9ee382cbacab2664ee0077ebe0dd9e3a6ba54a6d7bc86b test-bench-deps: base: -any array-builder: -any tasty-hunit: -any tasty: -any maintainer: andrew.thaddeus@gmail.com synopsis: Builders for arrays changelog: | # Revision history for array-builder + ## 0.1.1.0 -- 2020-11-18 + + * Add `new1`. + * Add `Data.Builder.(doubleton|tripleton)`. + ## 0.1.0.0 -- 2019-09-12 - * First version. Released on an unsuspecting world. + * First version. basic-deps: - base: ! '>=4.12 && <5' ? -- + base: '>=4.12 && <5' - run-st: ! '>=0.1 && <0.2' ? -- + run-st: '>=0.1 && <0.2' - array-chunks: ! '>=0.1 && <0.2' ? -- + array-chunks: '>=0.1 && <0.2' - primitive: ! '>=0.6.4 && <0.8' ? -- + primitive: '>=0.6.4 && <0.8' all-versions: - 0.1.0.0 + - 0.1.1.0 author: Andrew Martin - latest: 0.1.0.0 ? ^ + latest: 0.1.1.0 ? ^ description-type: haddock description: '' license-name: BSD-3-Clause
20
0.714286
13
7
6de8011f0e5301d6d3b42efde3f90e2d697be2ed
src/test/java/net/fabricmc/test/mixin/MixinGuiMain.java
src/test/java/net/fabricmc/test/mixin/MixinGuiMain.java
/* * Copyright 2016 FabricMC * * 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. */ package net.fabricmc.test.mixin; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.gui.impl.GuiMainMenu; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; @Mixin(value = GuiMainMenu.class, remap = false) public abstract class MixinGuiMain extends GuiScreen { @Inject(method = "drawScreen(IIF)V", at = @At("RETURN")) public void draw(int a1, int a2, float a3, CallbackInfo info) { this.fontRenderer.drawString("Fabric Test Mod", 2, this.height - 30, -1); } }
/* * Copyright 2016 FabricMC * * 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. */ package net.fabricmc.test.mixin; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.gui.screen.menu.GuiMainMenu; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; @Mixin(value = GuiMainMenu.class, remap = false) public abstract class MixinGuiMain extends GuiScreen { @Inject(method = "drawScreen(IIF)V", at = @At("RETURN")) public void draw(int a1, int a2, float a3, CallbackInfo info) { this.fontRenderer.drawString("Fabric Test Mod", 2, this.height - 30, -1); } }
Fix test mod for latest mappings
Fix test mod for latest mappings
Java
apache-2.0
FabricMC/fabric-base
java
## Code Before: /* * Copyright 2016 FabricMC * * 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. */ package net.fabricmc.test.mixin; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.gui.impl.GuiMainMenu; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; @Mixin(value = GuiMainMenu.class, remap = false) public abstract class MixinGuiMain extends GuiScreen { @Inject(method = "drawScreen(IIF)V", at = @At("RETURN")) public void draw(int a1, int a2, float a3, CallbackInfo info) { this.fontRenderer.drawString("Fabric Test Mod", 2, this.height - 30, -1); } } ## Instruction: Fix test mod for latest mappings ## Code After: /* * Copyright 2016 FabricMC * * 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. */ package net.fabricmc.test.mixin; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.gui.screen.menu.GuiMainMenu; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; @Mixin(value = GuiMainMenu.class, remap = false) public abstract class MixinGuiMain extends GuiScreen { @Inject(method = "drawScreen(IIF)V", at = @At("RETURN")) public void draw(int a1, int a2, float a3, CallbackInfo info) { this.fontRenderer.drawString("Fabric Test Mod", 2, this.height - 30, -1); } }
/* * Copyright 2016 FabricMC * * 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. */ package net.fabricmc.test.mixin; import net.minecraft.client.gui.GuiScreen; - import net.minecraft.client.gui.impl.GuiMainMenu; ? ^ ^^ + import net.minecraft.client.gui.screen.menu.GuiMainMenu; ? ^^^^^^^ ^^^ import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; @Mixin(value = GuiMainMenu.class, remap = false) public abstract class MixinGuiMain extends GuiScreen { @Inject(method = "drawScreen(IIF)V", at = @At("RETURN")) public void draw(int a1, int a2, float a3, CallbackInfo info) { this.fontRenderer.drawString("Fabric Test Mod", 2, this.height - 30, -1); } }
2
0.058824
1
1
451790a7f7d0cfc7a48ec36af090914b8cce390a
src/TimeStamp.cpp
src/TimeStamp.cpp
/* * TimeStamp.cpp * * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2001, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #include <log4cpp/TimeStamp.hh> #include <cstring> #ifdef LOG4CPP_HAVE_GETTIMEOFDAY #include <sys/time.h> #else #ifdef LOG4CPP_HAVE_FTIME #include <sys/timeb.h> #else #include <time.h> #endif #endif namespace log4cpp { TimeStamp TimeStamp::_startStamp; TimeStamp::TimeStamp() { #ifdef LOG4CPP_HAVE_GETTIMEOFDAY struct timeval tv; ::gettimeofday(&tv, NULL); _seconds = tv.tv_sec; _microSeconds = tv.tv_usec; #else #ifdef LOG4CPP_HAVE_FTIME struct timeb tb; ::ftime(&tb); _seconds = tb.time; _microSeconds = 1000 * tb.millitm; #else _seconds = ::time(NULL); _microSeconds = 0; #endif #endif } TimeStamp::TimeStamp(unsigned int seconds, unsigned int microSeconds) : _seconds(seconds), _microSeconds(microSeconds) { } }
/* * TimeStamp.cpp * * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2001, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #include <log4cpp/TimeStamp.hh> #include <cstring> #ifdef LOG4CPP_HAVE_GETTIMEOFDAY #include <sys/time.h> #else #ifdef LOG4CPP_HAVE_FTIME #include <sys/timeb.h> #else #include <time.h> #endif #endif namespace log4cpp { LOG4CPP_EXPORT TimeStamp TimeStamp::_startStamp; TimeStamp::TimeStamp() { #ifdef LOG4CPP_HAVE_GETTIMEOFDAY struct timeval tv; ::gettimeofday(&tv, NULL); _seconds = tv.tv_sec; _microSeconds = tv.tv_usec; #else #ifdef LOG4CPP_HAVE_FTIME struct timeb tb; ::ftime(&tb); _seconds = tb.time; _microSeconds = 1000 * tb.millitm; #else _seconds = ::time(NULL); _microSeconds = 0; #endif #endif } TimeStamp::TimeStamp(unsigned int seconds, unsigned int microSeconds) : _seconds(seconds), _microSeconds(microSeconds) { } }
Add LOG4CPP_EXPORT for win32 dll
Add LOG4CPP_EXPORT for win32 dll
C++
lgpl-2.1
adobni/log4cpp,halex2005/log4cpp,iocroblab/log4cpp,ksmyth/log4cpp,iocroblab/log4cpp,adobni/log4cpp,orocos-toolchain/log4cpp,halex2005/log4cpp,orocos-toolchain/log4cpp,iocroblab/log4cpp,ksmyth/log4cpp,ksmyth/log4cpp,adobni/log4cpp,halex2005/log4cpp
c++
## Code Before: /* * TimeStamp.cpp * * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2001, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #include <log4cpp/TimeStamp.hh> #include <cstring> #ifdef LOG4CPP_HAVE_GETTIMEOFDAY #include <sys/time.h> #else #ifdef LOG4CPP_HAVE_FTIME #include <sys/timeb.h> #else #include <time.h> #endif #endif namespace log4cpp { TimeStamp TimeStamp::_startStamp; TimeStamp::TimeStamp() { #ifdef LOG4CPP_HAVE_GETTIMEOFDAY struct timeval tv; ::gettimeofday(&tv, NULL); _seconds = tv.tv_sec; _microSeconds = tv.tv_usec; #else #ifdef LOG4CPP_HAVE_FTIME struct timeb tb; ::ftime(&tb); _seconds = tb.time; _microSeconds = 1000 * tb.millitm; #else _seconds = ::time(NULL); _microSeconds = 0; #endif #endif } TimeStamp::TimeStamp(unsigned int seconds, unsigned int microSeconds) : _seconds(seconds), _microSeconds(microSeconds) { } } ## Instruction: Add LOG4CPP_EXPORT for win32 dll ## Code After: /* * TimeStamp.cpp * * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2001, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #include <log4cpp/TimeStamp.hh> #include <cstring> #ifdef LOG4CPP_HAVE_GETTIMEOFDAY #include <sys/time.h> #else #ifdef LOG4CPP_HAVE_FTIME #include <sys/timeb.h> #else #include <time.h> #endif #endif namespace log4cpp { LOG4CPP_EXPORT TimeStamp TimeStamp::_startStamp; TimeStamp::TimeStamp() { #ifdef LOG4CPP_HAVE_GETTIMEOFDAY struct timeval tv; ::gettimeofday(&tv, NULL); _seconds = tv.tv_sec; _microSeconds = tv.tv_usec; #else #ifdef LOG4CPP_HAVE_FTIME struct timeb tb; ::ftime(&tb); _seconds = tb.time; _microSeconds = 1000 * tb.millitm; #else _seconds = ::time(NULL); _microSeconds = 0; #endif #endif } TimeStamp::TimeStamp(unsigned int seconds, unsigned int microSeconds) : _seconds(seconds), _microSeconds(microSeconds) { } }
/* * TimeStamp.cpp * * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2001, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #include <log4cpp/TimeStamp.hh> #include <cstring> #ifdef LOG4CPP_HAVE_GETTIMEOFDAY #include <sys/time.h> #else #ifdef LOG4CPP_HAVE_FTIME #include <sys/timeb.h> #else #include <time.h> #endif #endif namespace log4cpp { - TimeStamp TimeStamp::_startStamp; + LOG4CPP_EXPORT TimeStamp TimeStamp::_startStamp; ? +++++++++++++++ TimeStamp::TimeStamp() { #ifdef LOG4CPP_HAVE_GETTIMEOFDAY struct timeval tv; ::gettimeofday(&tv, NULL); _seconds = tv.tv_sec; _microSeconds = tv.tv_usec; #else #ifdef LOG4CPP_HAVE_FTIME struct timeb tb; ::ftime(&tb); _seconds = tb.time; _microSeconds = 1000 * tb.millitm; #else _seconds = ::time(NULL); _microSeconds = 0; #endif #endif } TimeStamp::TimeStamp(unsigned int seconds, unsigned int microSeconds) : _seconds(seconds), _microSeconds(microSeconds) { } }
2
0.037736
1
1
5b8bcdd802858baae3854fbfb8758dc65bdd8d34
hardware/unicorn_hat_hd/demo_lights.py
hardware/unicorn_hat_hd/demo_lights.py
import unicornhathd import os try: unicornhathd.set_pixel(0, 0, 255, 255, 255) unicornhathd.set_pixel(15, 0, 255, 255, 255) unicornhathd.set_pixel(0, 15, 255, 255, 255) unicornhathd.set_pixel(15, 15, 255, 255, 255) unicornhathd.show() raw_input("Press the <ENTER> key or <CTRL+C> to exit...") except KeyboardInterrupt: pass unicornhathd.off()
import unicornhathd import os from time import sleep class Point: def __init__(self, x, y, dx, dy): self.x = x self.y = y self.dx = dx self.dy = dy def turn_on(self): unicornhathd.set_pixel(self.x, self.y, 255, 255, 255) def turn_off(self): unicornhathd.set_pixel(self.x, self.y, 0, 0, 0) def move(self): self.turn_off() self.x, self.dx = self.move_one_axis(self.x, self.dx) self.y, self.dy = self.move_one_axis(self.y, self.dy) self.turn_on() def move_one_axis(self, x_or_y, dx_or_dy): x_or_y += dx_or_dy if x_or_y < 0 or x_or_y > 15: dx_or_dy = dx_or_dy * -1 x_or_y += dx_or_dy return x_or_y, dx_or_dy print("Press <CTRL+C> to exit...") unicornhathd.off() # Bounce backwards and forwards along each edge: p1 = Point(0, 0, 0, 1) p2 = Point(0, 15, 1, 0) p3 = Point(15, 0, -1, 0) p4 = Point(15, 15, 0, -1) p1.turn_on() p2.turn_on() p3.turn_on() p4.turn_on() try: while True: p1.move() p2.move() p3.move() p4.move() unicornhathd.show() sleep(0.1) except KeyboardInterrupt: pass unicornhathd.off()
Make the 4 lights bounce backwards and forwards along each edge.
Make the 4 lights bounce backwards and forwards along each edge.
Python
mit
claremacrae/raspi_code,claremacrae/raspi_code,claremacrae/raspi_code
python
## Code Before: import unicornhathd import os try: unicornhathd.set_pixel(0, 0, 255, 255, 255) unicornhathd.set_pixel(15, 0, 255, 255, 255) unicornhathd.set_pixel(0, 15, 255, 255, 255) unicornhathd.set_pixel(15, 15, 255, 255, 255) unicornhathd.show() raw_input("Press the <ENTER> key or <CTRL+C> to exit...") except KeyboardInterrupt: pass unicornhathd.off() ## Instruction: Make the 4 lights bounce backwards and forwards along each edge. ## Code After: import unicornhathd import os from time import sleep class Point: def __init__(self, x, y, dx, dy): self.x = x self.y = y self.dx = dx self.dy = dy def turn_on(self): unicornhathd.set_pixel(self.x, self.y, 255, 255, 255) def turn_off(self): unicornhathd.set_pixel(self.x, self.y, 0, 0, 0) def move(self): self.turn_off() self.x, self.dx = self.move_one_axis(self.x, self.dx) self.y, self.dy = self.move_one_axis(self.y, self.dy) self.turn_on() def move_one_axis(self, x_or_y, dx_or_dy): x_or_y += dx_or_dy if x_or_y < 0 or x_or_y > 15: dx_or_dy = dx_or_dy * -1 x_or_y += dx_or_dy return x_or_y, dx_or_dy print("Press <CTRL+C> to exit...") unicornhathd.off() # Bounce backwards and forwards along each edge: p1 = Point(0, 0, 0, 1) p2 = Point(0, 15, 1, 0) p3 = Point(15, 0, -1, 0) p4 = Point(15, 15, 0, -1) p1.turn_on() p2.turn_on() p3.turn_on() p4.turn_on() try: while True: p1.move() p2.move() p3.move() p4.move() unicornhathd.show() sleep(0.1) except KeyboardInterrupt: pass unicornhathd.off()
import unicornhathd import os + from time import sleep + + class Point: + def __init__(self, x, y, dx, dy): + self.x = x + self.y = y + self.dx = dx + self.dy = dy + + def turn_on(self): + unicornhathd.set_pixel(self.x, self.y, 255, 255, 255) + + def turn_off(self): + unicornhathd.set_pixel(self.x, self.y, 0, 0, 0) + + def move(self): + self.turn_off() + self.x, self.dx = self.move_one_axis(self.x, self.dx) + self.y, self.dy = self.move_one_axis(self.y, self.dy) + self.turn_on() + + def move_one_axis(self, x_or_y, dx_or_dy): + x_or_y += dx_or_dy + if x_or_y < 0 or x_or_y > 15: + dx_or_dy = dx_or_dy * -1 + x_or_y += dx_or_dy + return x_or_y, dx_or_dy + + print("Press <CTRL+C> to exit...") + + unicornhathd.off() + + # Bounce backwards and forwards along each edge: + p1 = Point(0, 0, 0, 1) + p2 = Point(0, 15, 1, 0) + p3 = Point(15, 0, -1, 0) + p4 = Point(15, 15, 0, -1) + p1.turn_on() + p2.turn_on() + p3.turn_on() + p4.turn_on() try: - unicornhathd.set_pixel(0, 0, 255, 255, 255) - unicornhathd.set_pixel(15, 0, 255, 255, 255) - unicornhathd.set_pixel(0, 15, 255, 255, 255) - unicornhathd.set_pixel(15, 15, 255, 255, 255) + while True: + p1.move() + p2.move() + p3.move() + p4.move() - unicornhathd.show() + unicornhathd.show() ? ++++ - raw_input("Press the <ENTER> key or <CTRL+C> to exit...") + sleep(0.1) except KeyboardInterrupt: pass + unicornhathd.off()
55
4.230769
49
6
dca003aadd54b9f196828b87f173420bab4c6f43
lib/bugherd_client/resources/v1/comment.rb
lib/bugherd_client/resources/v1/comment.rb
module BugherdClient module Resources module V1 class Comment < Base # # Get a paginated list of comments for a task. # def all(project_id, task_id) raw_response = get_request("projects/#{project_id}/tasks/#{task_id}/comments") parse_response(raw_response, :comments) end # # Create a comment # attributes: text, user_id or email def create(project_id, task_id, attributes={}) raw_response = post_request("projects/#{project_id}/tasks/#{task_id}/comments", comment: attributes) parse_response(raw_response) end end end end end
module BugherdClient module Resources module V1 class Comment < Base # # Get a paginated list of comments for a task. # def all(project_id, task_id) raw_response = get_request("projects/#{project_id}/tasks/#{task_id}/comments") parse_response(raw_response, :comments) end # # Get a single comment of a Task # def find(project_id, task_id, comment_id) raw_response = get_request("projects/#{project_id}/tasks/#{task_id}/comments/#{comment_id}") parse_response(raw_response, :comment) end # # Create a comment # attributes: text, user_id or email def create(project_id, task_id, attributes={}) raw_response = post_request("projects/#{project_id}/tasks/#{task_id}/comments", comment: attributes) parse_response(raw_response) end end end end end
Add Comment.find for v1 of api
Add Comment.find for v1 of api
Ruby
mit
jwaterfaucett/bugherd_client
ruby
## Code Before: module BugherdClient module Resources module V1 class Comment < Base # # Get a paginated list of comments for a task. # def all(project_id, task_id) raw_response = get_request("projects/#{project_id}/tasks/#{task_id}/comments") parse_response(raw_response, :comments) end # # Create a comment # attributes: text, user_id or email def create(project_id, task_id, attributes={}) raw_response = post_request("projects/#{project_id}/tasks/#{task_id}/comments", comment: attributes) parse_response(raw_response) end end end end end ## Instruction: Add Comment.find for v1 of api ## Code After: module BugherdClient module Resources module V1 class Comment < Base # # Get a paginated list of comments for a task. # def all(project_id, task_id) raw_response = get_request("projects/#{project_id}/tasks/#{task_id}/comments") parse_response(raw_response, :comments) end # # Get a single comment of a Task # def find(project_id, task_id, comment_id) raw_response = get_request("projects/#{project_id}/tasks/#{task_id}/comments/#{comment_id}") parse_response(raw_response, :comment) end # # Create a comment # attributes: text, user_id or email def create(project_id, task_id, attributes={}) raw_response = post_request("projects/#{project_id}/tasks/#{task_id}/comments", comment: attributes) parse_response(raw_response) end end end end end
module BugherdClient module Resources module V1 class Comment < Base # # Get a paginated list of comments for a task. # def all(project_id, task_id) raw_response = get_request("projects/#{project_id}/tasks/#{task_id}/comments") parse_response(raw_response, :comments) end # + # Get a single comment of a Task + # + def find(project_id, task_id, comment_id) + raw_response = get_request("projects/#{project_id}/tasks/#{task_id}/comments/#{comment_id}") + parse_response(raw_response, :comment) + end + + # # Create a comment # attributes: text, user_id or email def create(project_id, task_id, attributes={}) raw_response = post_request("projects/#{project_id}/tasks/#{task_id}/comments", comment: attributes) parse_response(raw_response) end end end end end
8
0.307692
8
0
69a312575aa412f3df777bde80cf680bcf897151
CONTRIBUTING.md
CONTRIBUTING.md
Contributions are always welcome, no matter how large or small. ## Setup ```sh $ git clone https://github.com/gawkermedia/traverse-dom.git $ cd traverse-dom $ npm install # Using yarn over npm is recommended. ``` ## Building ```sh $ npm run build ``` ## Testing ```sh $ npm run test:dev ``` ```sh $ npm run lint ``` ## Pull Requests 1. Fork the repo and create your branch from `master`. 2. If you've added code that should be tested, add tests. 3. If you've changed APIs, update the documentation. 4. Ensure the test suite passes. 5. Make sure your code lints. 6. Run `npm run prepublish` to check if everything passes. 7. Create a PR. ## Create new release To create a new tagged release and push to git run ```sh $ npm run release [releaseType] ``` Where releaseType is one of these semver releases `[major | minor | patch | premajor | preminor | prepatch | prerelease]` Before publishing to npm be sure to run the release script on master, then create the npm branch by running: ```sh $ ./bin/npm-git ``` This will create a mirror from master but in a form that it will eventually be deployed to npm. Now you can publish to npm. ## License By contributing, you agree that your contributions will be licensed under its [MIT License](LICENSE).
Contributions are always welcome, no matter how large or small. ## Setup ```sh $ git clone https://github.com/gawkermedia/traverse-dom.git $ cd traverse-dom $ npm install # Using yarn over npm is recommended. ``` ## Building ```sh $ npm run build ``` ## Testing ```sh $ npm run test:dev ``` ```sh $ npm run lint ``` ## Pull Requests 1. Fork the repo and create your branch from `master`. 2. If you've added code that should be tested, add tests. 3. If you've changed APIs, update the documentation. 4. Ensure the test suite passes. 5. Make sure your code lints and tests are green. 7. Create a PR. ## Create new release To create a new tagged release and push to git run ```sh $ npm run release [releaseType] ``` Where releaseType is one of these semver releases `[major | minor | patch | premajor | preminor | prepatch | prerelease]` Before publishing to npm be sure to run the release script on master, then create the npm branch by running: ```sh $ ./bin/npm-git ``` This will create a mirror from master but in a form that it will eventually be deployed to npm. Now you can publish to npm. ## License By contributing, you agree that your contributions will be licensed under its [MIT License](LICENSE).
Remove obsolete command from the docs
Remove obsolete command from the docs
Markdown
mit
gawkermedia/traverse-dom,gawkermedia/traverse-dom
markdown
## Code Before: Contributions are always welcome, no matter how large or small. ## Setup ```sh $ git clone https://github.com/gawkermedia/traverse-dom.git $ cd traverse-dom $ npm install # Using yarn over npm is recommended. ``` ## Building ```sh $ npm run build ``` ## Testing ```sh $ npm run test:dev ``` ```sh $ npm run lint ``` ## Pull Requests 1. Fork the repo and create your branch from `master`. 2. If you've added code that should be tested, add tests. 3. If you've changed APIs, update the documentation. 4. Ensure the test suite passes. 5. Make sure your code lints. 6. Run `npm run prepublish` to check if everything passes. 7. Create a PR. ## Create new release To create a new tagged release and push to git run ```sh $ npm run release [releaseType] ``` Where releaseType is one of these semver releases `[major | minor | patch | premajor | preminor | prepatch | prerelease]` Before publishing to npm be sure to run the release script on master, then create the npm branch by running: ```sh $ ./bin/npm-git ``` This will create a mirror from master but in a form that it will eventually be deployed to npm. Now you can publish to npm. ## License By contributing, you agree that your contributions will be licensed under its [MIT License](LICENSE). ## Instruction: Remove obsolete command from the docs ## Code After: Contributions are always welcome, no matter how large or small. ## Setup ```sh $ git clone https://github.com/gawkermedia/traverse-dom.git $ cd traverse-dom $ npm install # Using yarn over npm is recommended. ``` ## Building ```sh $ npm run build ``` ## Testing ```sh $ npm run test:dev ``` ```sh $ npm run lint ``` ## Pull Requests 1. Fork the repo and create your branch from `master`. 2. If you've added code that should be tested, add tests. 3. If you've changed APIs, update the documentation. 4. Ensure the test suite passes. 5. Make sure your code lints and tests are green. 7. Create a PR. ## Create new release To create a new tagged release and push to git run ```sh $ npm run release [releaseType] ``` Where releaseType is one of these semver releases `[major | minor | patch | premajor | preminor | prepatch | prerelease]` Before publishing to npm be sure to run the release script on master, then create the npm branch by running: ```sh $ ./bin/npm-git ``` This will create a mirror from master but in a form that it will eventually be deployed to npm. Now you can publish to npm. ## License By contributing, you agree that your contributions will be licensed under its [MIT License](LICENSE).
Contributions are always welcome, no matter how large or small. ## Setup ```sh $ git clone https://github.com/gawkermedia/traverse-dom.git $ cd traverse-dom $ npm install # Using yarn over npm is recommended. ``` ## Building ```sh $ npm run build ``` ## Testing ```sh $ npm run test:dev ``` ```sh $ npm run lint ``` ## Pull Requests 1. Fork the repo and create your branch from `master`. 2. If you've added code that should be tested, add tests. 3. If you've changed APIs, update the documentation. 4. Ensure the test suite passes. + 5. Make sure your code lints and tests are green. - 5. Make sure your code lints. - 6. Run `npm run prepublish` to check if everything passes. 7. Create a PR. ## Create new release To create a new tagged release and push to git run ```sh $ npm run release [releaseType] ``` Where releaseType is one of these semver releases `[major | minor | patch | premajor | preminor | prepatch | prerelease]` Before publishing to npm be sure to run the release script on master, then create the npm branch by running: ```sh $ ./bin/npm-git ``` This will create a mirror from master but in a form that it will eventually be deployed to npm. Now you can publish to npm. ## License By contributing, you agree that your contributions will be licensed under its [MIT License](LICENSE).
3
0.052632
1
2
93682f656b9bd75bb44c21137ad79752ce2557a1
.circleci/config.yml
.circleci/config.yml
version: 2.1 commands: prepare: steps: - checkout - run: sudo composer self-update - restore_cache: keys: - composer-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "composer.lock" }} - composer-v1-{{ .Environment.CIRCLE_JOB }} - run: composer install --no-interaction --prefer-dist - save_cache: key: composer-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "composer.lock" }} paths: - vendor run-tests: steps: - run: ./vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml - run: command: bash <(curl -s https://codecov.io/bash) when: on_success jobs: php_5: docker: - image: circleci/php:5.6 steps: - prepare - run-tests php_7: docker: - image: circleci/php:7.1 steps: - prepare - run-tests #Each workflow represents a Github check workflows: build_php_5: jobs: - php_5 build_php_7: jobs: - php_7
version: 2.1 commands: prepare: steps: - checkout - run: sudo composer self-update - restore_cache: keys: - composer-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "composer.lock" }} - composer-v1-{{ .Environment.CIRCLE_JOB }} - run: composer install --no-interaction --prefer-dist - save_cache: key: composer-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "composer.lock" }} paths: - vendor run-tests: steps: - run: ./vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml - run: command: bash <(curl -s https://codecov.io/bash) -Z -C $CIRCLE_SHA1 when: on_success jobs: php_5: docker: - image: circleci/php:5.6 steps: - prepare - run-tests php_7: docker: - image: circleci/php:7.1 steps: - prepare - run-tests #Each workflow represents a Github check workflows: build_php_5: jobs: - php_5 build_php_7: jobs: - php_7
Fix codecov reporting invalid SHA1
Fix codecov reporting invalid SHA1
YAML
mit
auth0/jwt-auth-bundle
yaml
## Code Before: version: 2.1 commands: prepare: steps: - checkout - run: sudo composer self-update - restore_cache: keys: - composer-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "composer.lock" }} - composer-v1-{{ .Environment.CIRCLE_JOB }} - run: composer install --no-interaction --prefer-dist - save_cache: key: composer-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "composer.lock" }} paths: - vendor run-tests: steps: - run: ./vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml - run: command: bash <(curl -s https://codecov.io/bash) when: on_success jobs: php_5: docker: - image: circleci/php:5.6 steps: - prepare - run-tests php_7: docker: - image: circleci/php:7.1 steps: - prepare - run-tests #Each workflow represents a Github check workflows: build_php_5: jobs: - php_5 build_php_7: jobs: - php_7 ## Instruction: Fix codecov reporting invalid SHA1 ## Code After: version: 2.1 commands: prepare: steps: - checkout - run: sudo composer self-update - restore_cache: keys: - composer-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "composer.lock" }} - composer-v1-{{ .Environment.CIRCLE_JOB }} - run: composer install --no-interaction --prefer-dist - save_cache: key: composer-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "composer.lock" }} paths: - vendor run-tests: steps: - run: ./vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml - run: command: bash <(curl -s https://codecov.io/bash) -Z -C $CIRCLE_SHA1 when: on_success jobs: php_5: docker: - image: circleci/php:5.6 steps: - prepare - run-tests php_7: docker: - image: circleci/php:7.1 steps: - prepare - run-tests #Each workflow represents a Github check workflows: build_php_5: jobs: - php_5 build_php_7: jobs: - php_7
version: 2.1 commands: prepare: steps: - checkout - run: sudo composer self-update - restore_cache: keys: - composer-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "composer.lock" }} - composer-v1-{{ .Environment.CIRCLE_JOB }} - run: composer install --no-interaction --prefer-dist - save_cache: key: composer-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "composer.lock" }} paths: - vendor run-tests: steps: - run: ./vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml - run: - command: bash <(curl -s https://codecov.io/bash) + command: bash <(curl -s https://codecov.io/bash) -Z -C $CIRCLE_SHA1 ? +++++++++++++++++++ when: on_success jobs: php_5: docker: - image: circleci/php:5.6 steps: - prepare - run-tests php_7: docker: - image: circleci/php:7.1 steps: - prepare - run-tests #Each workflow represents a Github check workflows: build_php_5: jobs: - php_5 build_php_7: jobs: - php_7
2
0.044444
1
1
d481c4b6f2129bccdd915a30c34d17d529cb1187
package.json
package.json
{ "name": "botplug", "version": "0.1.0", "maintainers": [ "Joe Carter <youlikethaaaat@gmail.com>", "Michael Writhe <michael@writhem.com>" ], "author": "Joe Carter <youlikethaaaat@gmail.com", "repository": { "type": "git", "url": "git+https://github.com/writhem/botPlug.git" }, "license": "MIT", "dependencies": { "plugapi": ">=3.3.0", "slack-node": ">=0.1.3", "winston": ">=1.0.0" } }
{ "name": "botplug", "version": "0.1.0", "maintainers": [ "Joe Carter <youlikethaaaat@gmail.com>", "Michael Writhe <michael@writhem.com>" ], "author": "Joe Carter <youlikethaaaat@gmail.com", "repository": { "type": "git", "url": "git+https://github.com/writhem/botPlug.git" }, "license": "MIT", "dependencies": { "plugapi": "https://github.com/writhem/PlugAPI/tarball/master", "slack-node": ">=0.1.3", "log4js": ">=1.0.0" } }
Make npm use writhem plugapi fork
Make npm use writhem plugapi fork
JSON
mit
WritheM/Wallace,ylt/Wallace,WritheM/Wallace,ylt/BotPlug,ylt/Wallace,Reanmachine/Wallace,Reanmachine/Wallace
json
## Code Before: { "name": "botplug", "version": "0.1.0", "maintainers": [ "Joe Carter <youlikethaaaat@gmail.com>", "Michael Writhe <michael@writhem.com>" ], "author": "Joe Carter <youlikethaaaat@gmail.com", "repository": { "type": "git", "url": "git+https://github.com/writhem/botPlug.git" }, "license": "MIT", "dependencies": { "plugapi": ">=3.3.0", "slack-node": ">=0.1.3", "winston": ">=1.0.0" } } ## Instruction: Make npm use writhem plugapi fork ## Code After: { "name": "botplug", "version": "0.1.0", "maintainers": [ "Joe Carter <youlikethaaaat@gmail.com>", "Michael Writhe <michael@writhem.com>" ], "author": "Joe Carter <youlikethaaaat@gmail.com", "repository": { "type": "git", "url": "git+https://github.com/writhem/botPlug.git" }, "license": "MIT", "dependencies": { "plugapi": "https://github.com/writhem/PlugAPI/tarball/master", "slack-node": ">=0.1.3", "log4js": ">=1.0.0" } }
{ "name": "botplug", "version": "0.1.0", "maintainers": [ "Joe Carter <youlikethaaaat@gmail.com>", "Michael Writhe <michael@writhem.com>" ], "author": "Joe Carter <youlikethaaaat@gmail.com", "repository": { "type": "git", "url": "git+https://github.com/writhem/botPlug.git" }, "license": "MIT", "dependencies": { - "plugapi": ">=3.3.0", + "plugapi": "https://github.com/writhem/PlugAPI/tarball/master", "slack-node": ">=0.1.3", - "winston": ">=1.0.0" + "log4js": ">=1.0.0" } }
4
0.210526
2
2
8657f7aef8944eae718cabaaa7dfd25d2ec95960
conditions/__init__.py
conditions/__init__.py
from .conditions import * from .exceptions import * from .fields import * from .lists import * from .types import *
from .conditions import Condition, CompareCondition from .exceptions import UndefinedConditionError, InvalidConditionError from .fields import ConditionsWidget, ConditionsFormField, ConditionsField from .lists import CondList, CondAllList, CondAnyList, eval_conditions from .types import conditions_from_module __all__ = [ 'Condition', 'CompareCondition', 'UndefinedConditionError', 'InvalidConditionError', 'ConditionsWidget', 'ConditionsFormField', 'ConditionsField', 'CondList', 'CondAllList', 'CondAnyList', 'eval_conditions', 'conditions_from_module', ]
Replace star imports with explicit imports
PEP8: Replace star imports with explicit imports
Python
isc
RevolutionTech/django-conditions,RevolutionTech/django-conditions,RevolutionTech/django-conditions
python
## Code Before: from .conditions import * from .exceptions import * from .fields import * from .lists import * from .types import * ## Instruction: PEP8: Replace star imports with explicit imports ## Code After: from .conditions import Condition, CompareCondition from .exceptions import UndefinedConditionError, InvalidConditionError from .fields import ConditionsWidget, ConditionsFormField, ConditionsField from .lists import CondList, CondAllList, CondAnyList, eval_conditions from .types import conditions_from_module __all__ = [ 'Condition', 'CompareCondition', 'UndefinedConditionError', 'InvalidConditionError', 'ConditionsWidget', 'ConditionsFormField', 'ConditionsField', 'CondList', 'CondAllList', 'CondAnyList', 'eval_conditions', 'conditions_from_module', ]
- from .conditions import * - from .exceptions import * - from .fields import * - from .lists import * - from .types import * + from .conditions import Condition, CompareCondition + from .exceptions import UndefinedConditionError, InvalidConditionError + from .fields import ConditionsWidget, ConditionsFormField, ConditionsField + from .lists import CondList, CondAllList, CondAnyList, eval_conditions + from .types import conditions_from_module + + + __all__ = [ + 'Condition', 'CompareCondition', 'UndefinedConditionError', 'InvalidConditionError', 'ConditionsWidget', + 'ConditionsFormField', 'ConditionsField', 'CondList', 'CondAllList', 'CondAnyList', 'eval_conditions', + 'conditions_from_module', + ]
17
3.4
12
5
394cb2bf93b9ac657d2b01343f94b52b8be479d0
mkdocs.yml
mkdocs.yml
site_name: Ada Web Application docs_dir: awa/docs pages: - Introduction: index.md - Installation: Installation.md - Tutorial: Tutorial.md - AWA: AWA.md - Users: AWA_Users.md - Jobs: AWA_Jobs.md - Mail: AWA_Mail.md - Storages: AWA_Storages.md - Images: AWA_Images.md - Wikis: AWA_Wikis.md - Blogs: AWA_Blogs.md - Counters: AWA_Counters.md - Votes: AWA_Votes.md - Tags: AWA_Tags.md - Comments: AWA_Comments.md - Settings: AWA_Settings.md - Setup: AWA_Setup.md theme: readthedocs
site_name: Ada Web Application docs_dir: awa/docs pages: - Introduction: index.md - Installation: Installation.md - Tutorial: Tutorial.md - AWA: AWA.md - Users: AWA_Users.md - Jobs: AWA_Jobs.md - Mail: AWA_Mail.md - Workspaces: AWA_Workspaces.md - Storages: AWA_Storages.md - Images: AWA_Images.md - Wikis: AWA_Wikis.md - Blogs: AWA_Blogs.md - Counters: AWA_Counters.md - Votes: AWA_Votes.md - Tags: AWA_Tags.md - Comments: AWA_Comments.md - Settings: AWA_Settings.md - Setup: AWA_Setup.md - Tips: Tips.md theme: readthedocs
Add the Tips and Workspace documentation
Add the Tips and Workspace documentation
YAML
apache-2.0
stcarrez/ada-awa,stcarrez/ada-awa,stcarrez/ada-awa,stcarrez/ada-awa
yaml
## Code Before: site_name: Ada Web Application docs_dir: awa/docs pages: - Introduction: index.md - Installation: Installation.md - Tutorial: Tutorial.md - AWA: AWA.md - Users: AWA_Users.md - Jobs: AWA_Jobs.md - Mail: AWA_Mail.md - Storages: AWA_Storages.md - Images: AWA_Images.md - Wikis: AWA_Wikis.md - Blogs: AWA_Blogs.md - Counters: AWA_Counters.md - Votes: AWA_Votes.md - Tags: AWA_Tags.md - Comments: AWA_Comments.md - Settings: AWA_Settings.md - Setup: AWA_Setup.md theme: readthedocs ## Instruction: Add the Tips and Workspace documentation ## Code After: site_name: Ada Web Application docs_dir: awa/docs pages: - Introduction: index.md - Installation: Installation.md - Tutorial: Tutorial.md - AWA: AWA.md - Users: AWA_Users.md - Jobs: AWA_Jobs.md - Mail: AWA_Mail.md - Workspaces: AWA_Workspaces.md - Storages: AWA_Storages.md - Images: AWA_Images.md - Wikis: AWA_Wikis.md - Blogs: AWA_Blogs.md - Counters: AWA_Counters.md - Votes: AWA_Votes.md - Tags: AWA_Tags.md - Comments: AWA_Comments.md - Settings: AWA_Settings.md - Setup: AWA_Setup.md - Tips: Tips.md theme: readthedocs
site_name: Ada Web Application docs_dir: awa/docs pages: - Introduction: index.md - Installation: Installation.md - Tutorial: Tutorial.md - AWA: AWA.md - Users: AWA_Users.md - Jobs: AWA_Jobs.md - Mail: AWA_Mail.md + - Workspaces: AWA_Workspaces.md - Storages: AWA_Storages.md - Images: AWA_Images.md - Wikis: AWA_Wikis.md - Blogs: AWA_Blogs.md - Counters: AWA_Counters.md - Votes: AWA_Votes.md - Tags: AWA_Tags.md - Comments: AWA_Comments.md - Settings: AWA_Settings.md - Setup: AWA_Setup.md + - Tips: Tips.md theme: readthedocs
2
0.095238
2
0
936329e3f2384cb2a47663759011ee77b5b54ec6
.travis.yml
.travis.yml
language: python python: - '3.7' dist: bionic sudo: required services: - mysql addons: apt: packages: - python3-dev - build-essential - mysql-server - mysql-client - graphviz - python3-pip - python3-numpy - python3-mysqldb - git - libmysqlclient-dev - docbook - python3-apt - dblatex - texlive-latex-extra - docbook-utils - libxml2-dev - libxslt1-dev - pandoc env: - PYTHONPATH=. CAIRIS_SRC=$PYTHONPATH/cairis CAIRIS_CFG=cairis_travis.cnf XML_CATALOG_FILES=$CAIRIS_SRC/config/catalog $CAIRIS_CFG_DIR=./travisConfig before_install: - sudo cp $CAIRIS_CFG_DIR/mysqld.cnf /etc/mysql/mysql.conf.d/ - sudo service mysql restart install: - pip install -r test_requirements.txt - pip install -r requirements.txt script: - py.test cairis/test --doctest-modules -v --cov cairis/core cairis/daemon cairis/controllers cairis/data cairis/tools --cov-report term-missing after_success: - coveralls - codecov
language: python python: - '3.7' dist: bionic sudo: required services: - mysql addons: apt: packages: - python3-dev - build-essential - mysql-server - mysql-client - graphviz - python3-pip - python3-numpy - python3-mysqldb - git - libmysqlclient-dev - docbook - python3-apt - dblatex - texlive-latex-extra - docbook-utils - libxml2-dev - libxslt1-dev - python3-setuptools - pandoc env: - PYTHONPATH=. CAIRIS_SRC=$PYTHONPATH/cairis CAIRIS_CFG=cairis_travis.cnf XML_CATALOG_FILES=$CAIRIS_SRC/config/catalog $CAIRIS_CFG_DIR=./travisConfig before_install: - sudo cp $CAIRIS_CFG_DIR/mysqld.cnf /etc/mysql/mysql.conf.d/ - sudo service mysql restart install: - pip install -r test_requirements.txt - pip install -r requirements.txt script: - py.test cairis/test --doctest-modules -v --cov cairis/core cairis/daemon cairis/controllers cairis/data cairis/tools --cov-report term-missing after_success: - coveralls - codecov
Add missing package for Travis
Add missing package for Travis
YAML
apache-2.0
failys/CAIRIS,failys/CAIRIS,failys/CAIRIS
yaml
## Code Before: language: python python: - '3.7' dist: bionic sudo: required services: - mysql addons: apt: packages: - python3-dev - build-essential - mysql-server - mysql-client - graphviz - python3-pip - python3-numpy - python3-mysqldb - git - libmysqlclient-dev - docbook - python3-apt - dblatex - texlive-latex-extra - docbook-utils - libxml2-dev - libxslt1-dev - pandoc env: - PYTHONPATH=. CAIRIS_SRC=$PYTHONPATH/cairis CAIRIS_CFG=cairis_travis.cnf XML_CATALOG_FILES=$CAIRIS_SRC/config/catalog $CAIRIS_CFG_DIR=./travisConfig before_install: - sudo cp $CAIRIS_CFG_DIR/mysqld.cnf /etc/mysql/mysql.conf.d/ - sudo service mysql restart install: - pip install -r test_requirements.txt - pip install -r requirements.txt script: - py.test cairis/test --doctest-modules -v --cov cairis/core cairis/daemon cairis/controllers cairis/data cairis/tools --cov-report term-missing after_success: - coveralls - codecov ## Instruction: Add missing package for Travis ## Code After: language: python python: - '3.7' dist: bionic sudo: required services: - mysql addons: apt: packages: - python3-dev - build-essential - mysql-server - mysql-client - graphviz - python3-pip - python3-numpy - python3-mysqldb - git - libmysqlclient-dev - docbook - python3-apt - dblatex - texlive-latex-extra - docbook-utils - libxml2-dev - libxslt1-dev - python3-setuptools - pandoc env: - PYTHONPATH=. CAIRIS_SRC=$PYTHONPATH/cairis CAIRIS_CFG=cairis_travis.cnf XML_CATALOG_FILES=$CAIRIS_SRC/config/catalog $CAIRIS_CFG_DIR=./travisConfig before_install: - sudo cp $CAIRIS_CFG_DIR/mysqld.cnf /etc/mysql/mysql.conf.d/ - sudo service mysql restart install: - pip install -r test_requirements.txt - pip install -r requirements.txt script: - py.test cairis/test --doctest-modules -v --cov cairis/core cairis/daemon cairis/controllers cairis/data cairis/tools --cov-report term-missing after_success: - coveralls - codecov
language: python python: - '3.7' dist: bionic sudo: required services: - mysql addons: apt: packages: - python3-dev - build-essential - mysql-server - mysql-client - graphviz - python3-pip - python3-numpy - python3-mysqldb - git - libmysqlclient-dev - docbook - python3-apt - dblatex - texlive-latex-extra - docbook-utils - libxml2-dev - libxslt1-dev + - python3-setuptools - pandoc env: - PYTHONPATH=. CAIRIS_SRC=$PYTHONPATH/cairis CAIRIS_CFG=cairis_travis.cnf XML_CATALOG_FILES=$CAIRIS_SRC/config/catalog $CAIRIS_CFG_DIR=./travisConfig before_install: - sudo cp $CAIRIS_CFG_DIR/mysqld.cnf /etc/mysql/mysql.conf.d/ - sudo service mysql restart install: - pip install -r test_requirements.txt - pip install -r requirements.txt script: - py.test cairis/test --doctest-modules -v --cov cairis/core cairis/daemon cairis/controllers cairis/data cairis/tools --cov-report term-missing after_success: - coveralls - codecov
1
0.020833
1
0
e8fce2e8f5e8fd9e258268a9e36760ad88c7f681
tests/acceptance/SignInAsUserCept.php
tests/acceptance/SignInAsUserCept.php
<?php /** * Gallery * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Olivier Paroz <galleryapps@oparoz.com> * * @copyright Olivier Paroz 2016 */ use \Page\Acceptance\Login; use \Page\Gallery as GalleryPage; $I = new AcceptanceTester($scenario); $I->am('a standard user'); $I->wantTo('load the Gallery app'); $I->lookForwardTo('seeing my holiday pictures'); $loginPage = new Login($I); $loginPage->login('admin', 'admin'); $loginPage->confirmLogin(); $I->click('.menutoggle'); $I->click('Gallery', '#navigation'); $I->seeCurrentUrlEquals(GalleryPage::$URL); $I->seeElement(['css' => GalleryPage::$contentDiv]);
<?php /** * Gallery * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Olivier Paroz <galleryapps@oparoz.com> * * @copyright Olivier Paroz 2016 */ use \Page\Acceptance\Login; use \Page\Gallery as GalleryPage; $I = new AcceptanceTester($scenario); $I->am('a standard user'); $I->wantTo('load the Gallery app'); $I->lookForwardTo('seeing my holiday pictures'); $loginPage = new Login($I); $loginPage->login('admin', 'admin'); $loginPage->confirmLogin(); $I->click('Gallery', '#appmenu'); $I->seeCurrentUrlEquals(GalleryPage::$URL); $I->seeElement(['css' => GalleryPage::$contentDiv]);
Fix the acceptance tests sine we have a fancy new appmenu!
Fix the acceptance tests sine we have a fancy new appmenu! Signed-off-by: Roeland Jago Douma <982d370f7dc34a05b4abe8788f899578d515262d@famdouma.nl>
PHP
agpl-3.0
desaintmartin/gallery,desaintmartin/gallery,desaintmartin/gallery
php
## Code Before: <?php /** * Gallery * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Olivier Paroz <galleryapps@oparoz.com> * * @copyright Olivier Paroz 2016 */ use \Page\Acceptance\Login; use \Page\Gallery as GalleryPage; $I = new AcceptanceTester($scenario); $I->am('a standard user'); $I->wantTo('load the Gallery app'); $I->lookForwardTo('seeing my holiday pictures'); $loginPage = new Login($I); $loginPage->login('admin', 'admin'); $loginPage->confirmLogin(); $I->click('.menutoggle'); $I->click('Gallery', '#navigation'); $I->seeCurrentUrlEquals(GalleryPage::$URL); $I->seeElement(['css' => GalleryPage::$contentDiv]); ## Instruction: Fix the acceptance tests sine we have a fancy new appmenu! Signed-off-by: Roeland Jago Douma <982d370f7dc34a05b4abe8788f899578d515262d@famdouma.nl> ## Code After: <?php /** * Gallery * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Olivier Paroz <galleryapps@oparoz.com> * * @copyright Olivier Paroz 2016 */ use \Page\Acceptance\Login; use \Page\Gallery as GalleryPage; $I = new AcceptanceTester($scenario); $I->am('a standard user'); $I->wantTo('load the Gallery app'); $I->lookForwardTo('seeing my holiday pictures'); $loginPage = new Login($I); $loginPage->login('admin', 'admin'); $loginPage->confirmLogin(); $I->click('Gallery', '#appmenu'); $I->seeCurrentUrlEquals(GalleryPage::$URL); $I->seeElement(['css' => GalleryPage::$contentDiv]);
<?php /** * Gallery * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Olivier Paroz <galleryapps@oparoz.com> * * @copyright Olivier Paroz 2016 */ use \Page\Acceptance\Login; use \Page\Gallery as GalleryPage; $I = new AcceptanceTester($scenario); $I->am('a standard user'); $I->wantTo('load the Gallery app'); $I->lookForwardTo('seeing my holiday pictures'); $loginPage = new Login($I); $loginPage->login('admin', 'admin'); $loginPage->confirmLogin(); - - $I->click('.menutoggle'); - $I->click('Gallery', '#navigation'); ? ^^^^^^^^^ + $I->click('Gallery', '#appmenu'); ? +++++ ^ $I->seeCurrentUrlEquals(GalleryPage::$URL); $I->seeElement(['css' => GalleryPage::$contentDiv]);
4
0.137931
1
3
2f80622c60054d1a2996e1ba8a20cf16defe885a
package.json
package.json
{ "name": "quick-switcher", "version": "0.2.0", "watch": { "build:js": { "patterns": ["src"], "extensions": "js", "quiet": false }, "build:css": { "patterns": ["src"], "extensions": "scss", "quiet": false } }, "scripts": { "build": "npm run build:js && npm run build:css", "build:js": "r.js -o build.js", "build:css": "node-sass --output-style compressed --include-path src src/quick-switcher.scss dist/quick-switcher.min.css", "watch": "concurrently 'npm run watch:js' 'npm run watch:css'", "watch:js": "npm-watch build:js", "watch:css": "npm-watch build:css", "test": "faucet test/" }, "devDependencies": { "almond": "^0.3.3", "concurrently": "^3.4.0", "faucet": "0.0.1", "node-sass": "^4.5.2", "requirejs": "^2.3.2", "tape": "^4.6.3", "text": "requirejs/text", "npm-watch": "^0.1.9" } }
{ "name": "quick-switcher", "version": "0.2.0", "watch": { "build:js": { "patterns": [ "src" ], "extensions": "js", "quiet": false }, "build:css": { "patterns": [ "src" ], "extensions": "scss", "quiet": false } }, "scripts": { "build": "npm run build:js && npm run build:css", "build:js": "r.js -o build.js", "build:css": "node-sass --output-style compressed --include-path src src/quick-switcher.scss dist/quick-switcher.min.css", "watch": "concurrently 'npm run watch:js' 'npm run watch:css'", "watch:js": "npm-watch build:js", "watch:css": "npm-watch build:css", "test": "faucet test/" }, "devDependencies": { "almond": "^0.3.3", "concurrently": "^3.4.0", "faucet": "0.0.1", "node-sass": "^4.5.2", "requirejs": "^2.3.2", "tape": "^4.6.3", "text": "github:requirejs/text#2.0.15", "npm-watch": "^0.1.9" } }
Fix messed up requirejs-text dependency
Fix messed up requirejs-text dependency
JSON
mit
lightster/quick-switcher,lightster/quick-switcher,lightster/quick-switcher
json
## Code Before: { "name": "quick-switcher", "version": "0.2.0", "watch": { "build:js": { "patterns": ["src"], "extensions": "js", "quiet": false }, "build:css": { "patterns": ["src"], "extensions": "scss", "quiet": false } }, "scripts": { "build": "npm run build:js && npm run build:css", "build:js": "r.js -o build.js", "build:css": "node-sass --output-style compressed --include-path src src/quick-switcher.scss dist/quick-switcher.min.css", "watch": "concurrently 'npm run watch:js' 'npm run watch:css'", "watch:js": "npm-watch build:js", "watch:css": "npm-watch build:css", "test": "faucet test/" }, "devDependencies": { "almond": "^0.3.3", "concurrently": "^3.4.0", "faucet": "0.0.1", "node-sass": "^4.5.2", "requirejs": "^2.3.2", "tape": "^4.6.3", "text": "requirejs/text", "npm-watch": "^0.1.9" } } ## Instruction: Fix messed up requirejs-text dependency ## Code After: { "name": "quick-switcher", "version": "0.2.0", "watch": { "build:js": { "patterns": [ "src" ], "extensions": "js", "quiet": false }, "build:css": { "patterns": [ "src" ], "extensions": "scss", "quiet": false } }, "scripts": { "build": "npm run build:js && npm run build:css", "build:js": "r.js -o build.js", "build:css": "node-sass --output-style compressed --include-path src src/quick-switcher.scss dist/quick-switcher.min.css", "watch": "concurrently 'npm run watch:js' 'npm run watch:css'", "watch:js": "npm-watch build:js", "watch:css": "npm-watch build:css", "test": "faucet test/" }, "devDependencies": { "almond": "^0.3.3", "concurrently": "^3.4.0", "faucet": "0.0.1", "node-sass": "^4.5.2", "requirejs": "^2.3.2", "tape": "^4.6.3", "text": "github:requirejs/text#2.0.15", "npm-watch": "^0.1.9" } }
{ "name": "quick-switcher", "version": "0.2.0", "watch": { "build:js": { - "patterns": ["src"], ? ------- + "patterns": [ + "src" + ], "extensions": "js", "quiet": false }, "build:css": { - "patterns": ["src"], ? ------- + "patterns": [ + "src" + ], "extensions": "scss", "quiet": false } }, "scripts": { "build": "npm run build:js && npm run build:css", "build:js": "r.js -o build.js", "build:css": "node-sass --output-style compressed --include-path src src/quick-switcher.scss dist/quick-switcher.min.css", "watch": "concurrently 'npm run watch:js' 'npm run watch:css'", "watch:js": "npm-watch build:js", "watch:css": "npm-watch build:css", "test": "faucet test/" }, "devDependencies": { "almond": "^0.3.3", "concurrently": "^3.4.0", "faucet": "0.0.1", "node-sass": "^4.5.2", "requirejs": "^2.3.2", "tape": "^4.6.3", - "text": "requirejs/text", + "text": "github:requirejs/text#2.0.15", ? +++++++ +++++++ "npm-watch": "^0.1.9" } }
10
0.285714
7
3
fc0374f0991c9d314f57df5875d2cd6d750a6b11
Casks/unsplash-wallpaper.rb
Casks/unsplash-wallpaper.rb
cask :v1 => 'unsplash-wallpaper' do version '1330_1440930902' sha256 'f85d5a05de54c9407f4d2287a2cba54bdb8f5a5f97c64a22b9da129d5a3bcf8c' # devmate.com is the official download host per the vendor homepage url "https://dl.devmate.com/com.leonspok.osx.Unsplash-Wallpaper/#{version.sub(%r{_.*},'')}/#{version.sub(%r{.*_},'')}/UnsplashWallpaper-#{version.sub(%r{_.*},'')}.zip" appcast 'http://updateinfo.devmate.com/com.leonspok.osx.Unsplash-Wallpaper/updates.xml', :sha256 => '949b1642f6dfefde4569d16363c353a56892d1771ba08a307f7d05fbe4063840' name 'Unsplash Wallpaper' homepage 'http://unsplash-wallpaper.tumblr.com' license :gratis depends_on :macos => '>= :mountain_lion' app 'Unsplash Wallpaper.app' end
cask :v1 => 'unsplash-wallpaper' do version '1341_1445283621' sha256 '5683d617ffb5c9090bd356b864db6500665b9ca84ab61aaffdf154f4148d33fd' # devmate.com is the official download host per the vendor homepage url "https://dl.devmate.com/com.leonspok.osx.Unsplash-Wallpaper/#{version.sub(%r{_.*},'')}/#{version.sub(%r{.*_},'')}/UnsplashWallpaper-#{version.sub(%r{_.*},'')}.zip" appcast 'http://updateinfo.devmate.com/com.leonspok.osx.Unsplash-Wallpaper/updates.xml', :sha256 => '72fee1b20b7a639966c7a56b0f276f46df7866d0efa533e8cfd497a0ecfee72b' name 'Unsplash Wallpaper' homepage 'http://unsplash-wallpaper.tumblr.com' license :gratis depends_on :macos => '>= :mountain_lion' app 'Unsplash Wallpaper.app' end
Upgrade Unsplash Wallpaper to 1.3.4
Upgrade Unsplash Wallpaper to 1.3.4
Ruby
bsd-2-clause
scottsuch/homebrew-cask,tarwich/homebrew-cask,esebastian/homebrew-cask,decrement/homebrew-cask,imgarylai/homebrew-cask,samnung/homebrew-cask,fharbe/homebrew-cask,axodys/homebrew-cask,michelegera/homebrew-cask,kesara/homebrew-cask,toonetown/homebrew-cask,mahori/homebrew-cask,thehunmonkgroup/homebrew-cask,aguynamedryan/homebrew-cask,stephenwade/homebrew-cask,jasmas/homebrew-cask,rajiv/homebrew-cask,sscotth/homebrew-cask,mhubig/homebrew-cask,n8henrie/homebrew-cask,tsparber/homebrew-cask,tolbkni/homebrew-cask,SentinelWarren/homebrew-cask,mikem/homebrew-cask,bdhess/homebrew-cask,vitorgalvao/homebrew-cask,thii/homebrew-cask,hovancik/homebrew-cask,josa42/homebrew-cask,sanyer/homebrew-cask,Gasol/homebrew-cask,sscotth/homebrew-cask,13k/homebrew-cask,cblecker/homebrew-cask,faun/homebrew-cask,jawshooah/homebrew-cask,mishari/homebrew-cask,Bombenleger/homebrew-cask,kkdd/homebrew-cask,lvicentesanchez/homebrew-cask,cedwardsmedia/homebrew-cask,nrlquaker/homebrew-cask,dictcp/homebrew-cask,morganestes/homebrew-cask,deiga/homebrew-cask,cfillion/homebrew-cask,hanxue/caskroom,ianyh/homebrew-cask,fanquake/homebrew-cask,albertico/homebrew-cask,moimikey/homebrew-cask,samdoran/homebrew-cask,yurikoles/homebrew-cask,robbiethegeek/homebrew-cask,tolbkni/homebrew-cask,koenrh/homebrew-cask,zerrot/homebrew-cask,0xadada/homebrew-cask,cblecker/homebrew-cask,ksylvan/homebrew-cask,stonehippo/homebrew-cask,singingwolfboy/homebrew-cask,Ngrd/homebrew-cask,n8henrie/homebrew-cask,sebcode/homebrew-cask,johndbritton/homebrew-cask,gerrypower/homebrew-cask,pkq/homebrew-cask,ptb/homebrew-cask,inta/homebrew-cask,pacav69/homebrew-cask,dwkns/homebrew-cask,paour/homebrew-cask,ywfwj2008/homebrew-cask,kesara/homebrew-cask,claui/homebrew-cask,FredLackeyOfficial/homebrew-cask,jeanregisser/homebrew-cask,klane/homebrew-cask,santoshsahoo/homebrew-cask,giannitm/homebrew-cask,rajiv/homebrew-cask,kteru/homebrew-cask,squid314/homebrew-cask,rogeriopradoj/homebrew-cask,xtian/homebrew-cask,arronmabrey/homebrew-cask,theoriginalgri/homebrew-cask,hellosky806/homebrew-cask,shoichiaizawa/homebrew-cask,tsparber/homebrew-cask,dwkns/homebrew-cask,jangalinski/homebrew-cask,usami-k/homebrew-cask,jonathanwiesel/homebrew-cask,0xadada/homebrew-cask,scottsuch/homebrew-cask,asbachb/homebrew-cask,crzrcn/homebrew-cask,zmwangx/homebrew-cask,yurikoles/homebrew-cask,janlugt/homebrew-cask,MoOx/homebrew-cask,kingthorin/homebrew-cask,mjgardner/homebrew-cask,ebraminio/homebrew-cask,shonjir/homebrew-cask,jalaziz/homebrew-cask,pacav69/homebrew-cask,nathansgreen/homebrew-cask,sjackman/homebrew-cask,giannitm/homebrew-cask,neverfox/homebrew-cask,yumitsu/homebrew-cask,blogabe/homebrew-cask,hellosky806/homebrew-cask,julionc/homebrew-cask,ksylvan/homebrew-cask,hristozov/homebrew-cask,stephenwade/homebrew-cask,renaudguerin/homebrew-cask,caskroom/homebrew-cask,malford/homebrew-cask,colindean/homebrew-cask,josa42/homebrew-cask,mattrobenolt/homebrew-cask,markhuber/homebrew-cask,wmorin/homebrew-cask,mjgardner/homebrew-cask,riyad/homebrew-cask,anbotero/homebrew-cask,chuanxd/homebrew-cask,onlynone/homebrew-cask,lifepillar/homebrew-cask,timsutton/homebrew-cask,psibre/homebrew-cask,miku/homebrew-cask,jiashuw/homebrew-cask,farmerchris/homebrew-cask,jonathanwiesel/homebrew-cask,tmoreira2020/homebrew,michelegera/homebrew-cask,claui/homebrew-cask,Saklad5/homebrew-cask,johnjelinek/homebrew-cask,jellyfishcoder/homebrew-cask,tjt263/homebrew-cask,artdevjs/homebrew-cask,chadcatlett/caskroom-homebrew-cask,kongslund/homebrew-cask,skatsuta/homebrew-cask,elyscape/homebrew-cask,Ngrd/homebrew-cask,ldong/homebrew-cask,wastrachan/homebrew-cask,robertgzr/homebrew-cask,sanchezm/homebrew-cask,colindunn/homebrew-cask,jpmat296/homebrew-cask,seanzxx/homebrew-cask,ayohrling/homebrew-cask,jppelteret/homebrew-cask,seanzxx/homebrew-cask,kpearson/homebrew-cask,larseggert/homebrew-cask,neverfox/homebrew-cask,stonehippo/homebrew-cask,perfide/homebrew-cask,BenjaminHCCarr/homebrew-cask,mindriot101/homebrew-cask,yumitsu/homebrew-cask,yutarody/homebrew-cask,tan9/homebrew-cask,jangalinski/homebrew-cask,devmynd/homebrew-cask,6uclz1/homebrew-cask,retrography/homebrew-cask,josa42/homebrew-cask,mlocher/homebrew-cask,xyb/homebrew-cask,Keloran/homebrew-cask,MoOx/homebrew-cask,sohtsuka/homebrew-cask,vigosan/homebrew-cask,julionc/homebrew-cask,SentinelWarren/homebrew-cask,jawshooah/homebrew-cask,troyxmccall/homebrew-cask,Amorymeltzer/homebrew-cask,ianyh/homebrew-cask,shonjir/homebrew-cask,blogabe/homebrew-cask,williamboman/homebrew-cask,a1russell/homebrew-cask,winkelsdorf/homebrew-cask,axodys/homebrew-cask,ywfwj2008/homebrew-cask,xtian/homebrew-cask,tyage/homebrew-cask,kpearson/homebrew-cask,maxnordlund/homebrew-cask,diogodamiani/homebrew-cask,Cottser/homebrew-cask,devmynd/homebrew-cask,jmeridth/homebrew-cask,bcomnes/homebrew-cask,squid314/homebrew-cask,haha1903/homebrew-cask,otaran/homebrew-cask,adrianchia/homebrew-cask,toonetown/homebrew-cask,tangestani/homebrew-cask,rickychilcott/homebrew-cask,helloIAmPau/homebrew-cask,schneidmaster/homebrew-cask,samnung/homebrew-cask,joschi/homebrew-cask,kiliankoe/homebrew-cask,Keloran/homebrew-cask,casidiablo/homebrew-cask,codeurge/homebrew-cask,hyuna917/homebrew-cask,cliffcotino/homebrew-cask,jeroenseegers/homebrew-cask,renard/homebrew-cask,dictcp/homebrew-cask,tarwich/homebrew-cask,franklouwers/homebrew-cask,muan/homebrew-cask,samshadwell/homebrew-cask,hanxue/caskroom,m3nu/homebrew-cask,napaxton/homebrew-cask,singingwolfboy/homebrew-cask,stevehedrick/homebrew-cask,mrmachine/homebrew-cask,deanmorin/homebrew-cask,n0ts/homebrew-cask,lantrix/homebrew-cask,Labutin/homebrew-cask,rogeriopradoj/homebrew-cask,tjnycum/homebrew-cask,singingwolfboy/homebrew-cask,sosedoff/homebrew-cask,kTitan/homebrew-cask,cliffcotino/homebrew-cask,andrewdisley/homebrew-cask,malob/homebrew-cask,asins/homebrew-cask,greg5green/homebrew-cask,jbeagley52/homebrew-cask,leipert/homebrew-cask,jhowtan/homebrew-cask,jgarber623/homebrew-cask,shorshe/homebrew-cask,sscotth/homebrew-cask,Ephemera/homebrew-cask,BenjaminHCCarr/homebrew-cask,elyscape/homebrew-cask,0rax/homebrew-cask,nightscape/homebrew-cask,vin047/homebrew-cask,jhowtan/homebrew-cask,reelsense/homebrew-cask,renaudguerin/homebrew-cask,theoriginalgri/homebrew-cask,guerrero/homebrew-cask,KosherBacon/homebrew-cask,xakraz/homebrew-cask,yuhki50/homebrew-cask,opsdev-ws/homebrew-cask,sosedoff/homebrew-cask,franklouwers/homebrew-cask,bosr/homebrew-cask,helloIAmPau/homebrew-cask,MircoT/homebrew-cask,kkdd/homebrew-cask,dvdoliveira/homebrew-cask,faun/homebrew-cask,My2ndAngelic/homebrew-cask,sjackman/homebrew-cask,stevehedrick/homebrew-cask,yutarody/homebrew-cask,mazehall/homebrew-cask,My2ndAngelic/homebrew-cask,JosephViolago/homebrew-cask,kassi/homebrew-cask,doits/homebrew-cask,vitorgalvao/homebrew-cask,alexg0/homebrew-cask,kongslund/homebrew-cask,asbachb/homebrew-cask,alebcay/homebrew-cask,dcondrey/homebrew-cask,lucasmezencio/homebrew-cask,yutarody/homebrew-cask,jeroenj/homebrew-cask,Saklad5/homebrew-cask,moogar0880/homebrew-cask,KosherBacon/homebrew-cask,victorpopkov/homebrew-cask,forevergenin/homebrew-cask,gmkey/homebrew-cask,patresi/homebrew-cask,forevergenin/homebrew-cask,ebraminio/homebrew-cask,hanxue/caskroom,tedbundyjr/homebrew-cask,jaredsampson/homebrew-cask,malob/homebrew-cask,lukasbestle/homebrew-cask,mwean/homebrew-cask,seanorama/homebrew-cask,xight/homebrew-cask,adrianchia/homebrew-cask,reitermarkus/homebrew-cask,MerelyAPseudonym/homebrew-cask,JosephViolago/homebrew-cask,ptb/homebrew-cask,kingthorin/homebrew-cask,lantrix/homebrew-cask,zerrot/homebrew-cask,samdoran/homebrew-cask,robbiethegeek/homebrew-cask,13k/homebrew-cask,hakamadare/homebrew-cask,malob/homebrew-cask,cobyism/homebrew-cask,Ibuprofen/homebrew-cask,joschi/homebrew-cask,patresi/homebrew-cask,cobyism/homebrew-cask,afh/homebrew-cask,MichaelPei/homebrew-cask,haha1903/homebrew-cask,mgryszko/homebrew-cask,6uclz1/homebrew-cask,sebcode/homebrew-cask,joshka/homebrew-cask,slack4u/homebrew-cask,tjnycum/homebrew-cask,gerrypower/homebrew-cask,wickedsp1d3r/homebrew-cask,uetchy/homebrew-cask,cfillion/homebrew-cask,mgryszko/homebrew-cask,brianshumate/homebrew-cask,Bombenleger/homebrew-cask,scottsuch/homebrew-cask,mjgardner/homebrew-cask,williamboman/homebrew-cask,uetchy/homebrew-cask,otaran/homebrew-cask,scribblemaniac/homebrew-cask,nightscape/homebrew-cask,jgarber623/homebrew-cask,mahori/homebrew-cask,cprecioso/homebrew-cask,vigosan/homebrew-cask,chrisfinazzo/homebrew-cask,mathbunnyru/homebrew-cask,linc01n/homebrew-cask,arronmabrey/homebrew-cask,gyndav/homebrew-cask,pkq/homebrew-cask,claui/homebrew-cask,wKovacs64/homebrew-cask,AnastasiaSulyagina/homebrew-cask,stephenwade/homebrew-cask,y00rb/homebrew-cask,thomanq/homebrew-cask,janlugt/homebrew-cask,winkelsdorf/homebrew-cask,rogeriopradoj/homebrew-cask,colindean/homebrew-cask,ninjahoahong/homebrew-cask,jconley/homebrew-cask,Fedalto/homebrew-cask,inta/homebrew-cask,FranklinChen/homebrew-cask,decrement/homebrew-cask,fharbe/homebrew-cask,lukeadams/homebrew-cask,muan/homebrew-cask,onlynone/homebrew-cask,brianshumate/homebrew-cask,moogar0880/homebrew-cask,xyb/homebrew-cask,andrewdisley/homebrew-cask,gyndav/homebrew-cask,miccal/homebrew-cask,mchlrmrz/homebrew-cask,tedski/homebrew-cask,dwihn0r/homebrew-cask,jgarber623/homebrew-cask,sanchezm/homebrew-cask,corbt/homebrew-cask,mchlrmrz/homebrew-cask,xyb/homebrew-cask,imgarylai/homebrew-cask,ayohrling/homebrew-cask,a1russell/homebrew-cask,danielbayley/homebrew-cask,nshemonsky/homebrew-cask,syscrusher/homebrew-cask,MichaelPei/homebrew-cask,Ephemera/homebrew-cask,daften/homebrew-cask,reelsense/homebrew-cask,scribblemaniac/homebrew-cask,Ephemera/homebrew-cask,deanmorin/homebrew-cask,lucasmezencio/homebrew-cask,Labutin/homebrew-cask,fanquake/homebrew-cask,stigkj/homebrew-caskroom-cask,antogg/homebrew-cask,athrunsun/homebrew-cask,retbrown/homebrew-cask,andyli/homebrew-cask,ddm/homebrew-cask,jiashuw/homebrew-cask,gabrielizaias/homebrew-cask,jasmas/homebrew-cask,winkelsdorf/homebrew-cask,tangestani/homebrew-cask,kamilboratynski/homebrew-cask,tmoreira2020/homebrew,thomanq/homebrew-cask,stonehippo/homebrew-cask,casidiablo/homebrew-cask,miguelfrde/homebrew-cask,kassi/homebrew-cask,joschi/homebrew-cask,imgarylai/homebrew-cask,mjdescy/homebrew-cask,nathancahill/homebrew-cask,guerrero/homebrew-cask,cobyism/homebrew-cask,reitermarkus/homebrew-cask,kronicd/homebrew-cask,bosr/homebrew-cask,adrianchia/homebrew-cask,chrisfinazzo/homebrew-cask,FredLackeyOfficial/homebrew-cask,wKovacs64/homebrew-cask,jppelteret/homebrew-cask,ksato9700/homebrew-cask,mazehall/homebrew-cask,gmkey/homebrew-cask,zmwangx/homebrew-cask,goxberry/homebrew-cask,scribblemaniac/homebrew-cask,a1russell/homebrew-cask,mattrobenolt/homebrew-cask,troyxmccall/homebrew-cask,mingzhi22/homebrew-cask,jalaziz/homebrew-cask,jacobbednarz/homebrew-cask,blainesch/homebrew-cask,joshka/homebrew-cask,tan9/homebrew-cask,MircoT/homebrew-cask,shoichiaizawa/homebrew-cask,aguynamedryan/homebrew-cask,wmorin/homebrew-cask,codeurge/homebrew-cask,mchlrmrz/homebrew-cask,nshemonsky/homebrew-cask,feigaochn/homebrew-cask,mathbunnyru/homebrew-cask,sgnh/homebrew-cask,jpmat296/homebrew-cask,kronicd/homebrew-cask,JacopKane/homebrew-cask,feigaochn/homebrew-cask,dictcp/homebrew-cask,seanorama/homebrew-cask,morganestes/homebrew-cask,gibsjose/homebrew-cask,afh/homebrew-cask,andrewdisley/homebrew-cask,ericbn/homebrew-cask,markhuber/homebrew-cask,kteru/homebrew-cask,syscrusher/homebrew-cask,opsdev-ws/homebrew-cask,exherb/homebrew-cask,alebcay/homebrew-cask,dvdoliveira/homebrew-cask,mhubig/homebrew-cask,m3nu/homebrew-cask,blogabe/homebrew-cask,alexg0/homebrew-cask,samshadwell/homebrew-cask,bdhess/homebrew-cask,pkq/homebrew-cask,JacopKane/homebrew-cask,mlocher/homebrew-cask,Fedalto/homebrew-cask,greg5green/homebrew-cask,jalaziz/homebrew-cask,shoichiaizawa/homebrew-cask,yuhki50/homebrew-cask,hyuna917/homebrew-cask,jeroenj/homebrew-cask,dcondrey/homebrew-cask,boecko/homebrew-cask,johnjelinek/homebrew-cask,Ketouem/homebrew-cask,coeligena/homebrew-customized,alebcay/homebrew-cask,ericbn/homebrew-cask,stigkj/homebrew-caskroom-cask,usami-k/homebrew-cask,markthetech/homebrew-cask,jellyfishcoder/homebrew-cask,shorshe/homebrew-cask,inz/homebrew-cask,athrunsun/homebrew-cask,victorpopkov/homebrew-cask,RJHsiao/homebrew-cask,puffdad/homebrew-cask,hristozov/homebrew-cask,optikfluffel/homebrew-cask,mingzhi22/homebrew-cask,inz/homebrew-cask,jedahan/homebrew-cask,crzrcn/homebrew-cask,AnastasiaSulyagina/homebrew-cask,johndbritton/homebrew-cask,farmerchris/homebrew-cask,xight/homebrew-cask,cprecioso/homebrew-cask,okket/homebrew-cask,artdevjs/homebrew-cask,dwihn0r/homebrew-cask,diguage/homebrew-cask,howie/homebrew-cask,lifepillar/homebrew-cask,gyndav/homebrew-cask,FinalDes/homebrew-cask,kamilboratynski/homebrew-cask,jeanregisser/homebrew-cask,tyage/homebrew-cask,hakamadare/homebrew-cask,moimikey/homebrew-cask,chadcatlett/caskroom-homebrew-cask,Dremora/homebrew-cask,Amorymeltzer/homebrew-cask,asins/homebrew-cask,daften/homebrew-cask,albertico/homebrew-cask,andyli/homebrew-cask,howie/homebrew-cask,antogg/homebrew-cask,mahori/homebrew-cask,Gasol/homebrew-cask,elnappo/homebrew-cask,nathancahill/homebrew-cask,Amorymeltzer/homebrew-cask,FinalDes/homebrew-cask,JikkuJose/homebrew-cask,perfide/homebrew-cask,danielbayley/homebrew-cask,nathanielvarona/homebrew-cask,tedbundyjr/homebrew-cask,sanyer/homebrew-cask,boecko/homebrew-cask,thehunmonkgroup/homebrew-cask,ericbn/homebrew-cask,sohtsuka/homebrew-cask,mathbunnyru/homebrew-cask,gabrielizaias/homebrew-cask,esebastian/homebrew-cask,paour/homebrew-cask,renard/homebrew-cask,vin047/homebrew-cask,wickles/homebrew-cask,ddm/homebrew-cask,wmorin/homebrew-cask,wickedsp1d3r/homebrew-cask,JosephViolago/homebrew-cask,phpwutz/homebrew-cask,tangestani/homebrew-cask,y00rb/homebrew-cask,bric3/homebrew-cask,diogodamiani/homebrew-cask,kTitan/homebrew-cask,jeroenseegers/homebrew-cask,wastrachan/homebrew-cask,thii/homebrew-cask,gilesdring/homebrew-cask,mauricerkelly/homebrew-cask,maxnordlund/homebrew-cask,elnappo/homebrew-cask,skatsuta/homebrew-cask,gurghet/homebrew-cask,xcezx/homebrew-cask,xcezx/homebrew-cask,miku/homebrew-cask,amatos/homebrew-cask,mindriot101/homebrew-cask,nrlquaker/homebrew-cask,gibsjose/homebrew-cask,amatos/homebrew-cask,retbrown/homebrew-cask,0rax/homebrew-cask,bcomnes/homebrew-cask,tjt263/homebrew-cask,goxberry/homebrew-cask,larseggert/homebrew-cask,neverfox/homebrew-cask,FranklinChen/homebrew-cask,nathansgreen/homebrew-cask,antogg/homebrew-cask,markthetech/homebrew-cask,timsutton/homebrew-cask,shonjir/homebrew-cask,gilesdring/homebrew-cask,deiga/homebrew-cask,deiga/homebrew-cask,chrisfinazzo/homebrew-cask,paour/homebrew-cask,m3nu/homebrew-cask,ldong/homebrew-cask,lukeadams/homebrew-cask,flaviocamilo/homebrew-cask,nrlquaker/homebrew-cask,dustinblackman/homebrew-cask,lcasey001/homebrew-cask,jbeagley52/homebrew-cask,napaxton/homebrew-cask,moimikey/homebrew-cask,buo/homebrew-cask,MerelyAPseudonym/homebrew-cask,sgnh/homebrew-cask,miguelfrde/homebrew-cask,doits/homebrew-cask,ninjahoahong/homebrew-cask,tedski/homebrew-cask,RJHsiao/homebrew-cask,joshka/homebrew-cask,kesara/homebrew-cask,JacopKane/homebrew-cask,Ketouem/homebrew-cask,xight/homebrew-cask,bric3/homebrew-cask,klane/homebrew-cask,kiliankoe/homebrew-cask,lvicentesanchez/homebrew-cask,leipert/homebrew-cask,Cottser/homebrew-cask,blainesch/homebrew-cask,linc01n/homebrew-cask,anbotero/homebrew-cask,riyad/homebrew-cask,puffdad/homebrew-cask,mauricerkelly/homebrew-cask,sanyer/homebrew-cask,rickychilcott/homebrew-cask,Ibuprofen/homebrew-cask,uetchy/homebrew-cask,kingthorin/homebrew-cask,lumaxis/homebrew-cask,coeligena/homebrew-customized,jacobbednarz/homebrew-cask,koenrh/homebrew-cask,yurikoles/homebrew-cask,flaviocamilo/homebrew-cask,lcasey001/homebrew-cask,alexg0/homebrew-cask,Dremora/homebrew-cask,exherb/homebrew-cask,tjnycum/homebrew-cask,malford/homebrew-cask,okket/homebrew-cask,nathanielvarona/homebrew-cask,mikem/homebrew-cask,BenjaminHCCarr/homebrew-cask,wickles/homebrew-cask,n0ts/homebrew-cask,dustinblackman/homebrew-cask,timsutton/homebrew-cask,JikkuJose/homebrew-cask,mwean/homebrew-cask,ksato9700/homebrew-cask,danielbayley/homebrew-cask,santoshsahoo/homebrew-cask,miccal/homebrew-cask,gurghet/homebrew-cask,nathanielvarona/homebrew-cask,corbt/homebrew-cask,rajiv/homebrew-cask,cedwardsmedia/homebrew-cask,cblecker/homebrew-cask,retrography/homebrew-cask,jedahan/homebrew-cask,buo/homebrew-cask,lukasbestle/homebrew-cask,mattrobenolt/homebrew-cask,colindunn/homebrew-cask,coeligena/homebrew-customized,jaredsampson/homebrew-cask,jmeridth/homebrew-cask,julionc/homebrew-cask,hovancik/homebrew-cask,optikfluffel/homebrew-cask,CameronGarrett/homebrew-cask,CameronGarrett/homebrew-cask,chuanxd/homebrew-cask,psibre/homebrew-cask,mishari/homebrew-cask,lumaxis/homebrew-cask,xakraz/homebrew-cask,slack4u/homebrew-cask,robertgzr/homebrew-cask,schneidmaster/homebrew-cask,diguage/homebrew-cask,phpwutz/homebrew-cask,caskroom/homebrew-cask,reitermarkus/homebrew-cask,jconley/homebrew-cask,optikfluffel/homebrew-cask,mjdescy/homebrew-cask,bric3/homebrew-cask,mrmachine/homebrew-cask,esebastian/homebrew-cask,miccal/homebrew-cask
ruby
## Code Before: cask :v1 => 'unsplash-wallpaper' do version '1330_1440930902' sha256 'f85d5a05de54c9407f4d2287a2cba54bdb8f5a5f97c64a22b9da129d5a3bcf8c' # devmate.com is the official download host per the vendor homepage url "https://dl.devmate.com/com.leonspok.osx.Unsplash-Wallpaper/#{version.sub(%r{_.*},'')}/#{version.sub(%r{.*_},'')}/UnsplashWallpaper-#{version.sub(%r{_.*},'')}.zip" appcast 'http://updateinfo.devmate.com/com.leonspok.osx.Unsplash-Wallpaper/updates.xml', :sha256 => '949b1642f6dfefde4569d16363c353a56892d1771ba08a307f7d05fbe4063840' name 'Unsplash Wallpaper' homepage 'http://unsplash-wallpaper.tumblr.com' license :gratis depends_on :macos => '>= :mountain_lion' app 'Unsplash Wallpaper.app' end ## Instruction: Upgrade Unsplash Wallpaper to 1.3.4 ## Code After: cask :v1 => 'unsplash-wallpaper' do version '1341_1445283621' sha256 '5683d617ffb5c9090bd356b864db6500665b9ca84ab61aaffdf154f4148d33fd' # devmate.com is the official download host per the vendor homepage url "https://dl.devmate.com/com.leonspok.osx.Unsplash-Wallpaper/#{version.sub(%r{_.*},'')}/#{version.sub(%r{.*_},'')}/UnsplashWallpaper-#{version.sub(%r{_.*},'')}.zip" appcast 'http://updateinfo.devmate.com/com.leonspok.osx.Unsplash-Wallpaper/updates.xml', :sha256 => '72fee1b20b7a639966c7a56b0f276f46df7866d0efa533e8cfd497a0ecfee72b' name 'Unsplash Wallpaper' homepage 'http://unsplash-wallpaper.tumblr.com' license :gratis depends_on :macos => '>= :mountain_lion' app 'Unsplash Wallpaper.app' end
cask :v1 => 'unsplash-wallpaper' do - version '1330_1440930902' - sha256 'f85d5a05de54c9407f4d2287a2cba54bdb8f5a5f97c64a22b9da129d5a3bcf8c' + version '1341_1445283621' + sha256 '5683d617ffb5c9090bd356b864db6500665b9ca84ab61aaffdf154f4148d33fd' # devmate.com is the official download host per the vendor homepage url "https://dl.devmate.com/com.leonspok.osx.Unsplash-Wallpaper/#{version.sub(%r{_.*},'')}/#{version.sub(%r{.*_},'')}/UnsplashWallpaper-#{version.sub(%r{_.*},'')}.zip" appcast 'http://updateinfo.devmate.com/com.leonspok.osx.Unsplash-Wallpaper/updates.xml', - :sha256 => '949b1642f6dfefde4569d16363c353a56892d1771ba08a307f7d05fbe4063840' + :sha256 => '72fee1b20b7a639966c7a56b0f276f46df7866d0efa533e8cfd497a0ecfee72b' name 'Unsplash Wallpaper' homepage 'http://unsplash-wallpaper.tumblr.com' license :gratis depends_on :macos => '>= :mountain_lion' app 'Unsplash Wallpaper.app' end
6
0.375
3
3
bd003fa9f67978932a0e243b1721406c16fd2e06
spec/integration/entry_schema_spec.rb
spec/integration/entry_schema_spec.rb
require 'argo/parser' require 'json' RSpec.describe 'entry-schema' do # See http://json-schema.org/example2.html let(:root) { path = read_fixture('entry-schema.json') Argo::Parser.new(JSON.parse(path)).root } subject { root } it 'has a description' do expect(subject.description). to eq('schema for an fstab entry') end end
require 'argo/parser' require 'json' RSpec.describe 'entry-schema' do # See http://json-schema.org/example2.html let(:root) { path = read_fixture('entry-schema.json') Argo::Parser.new(JSON.parse(path)).root } subject { root } it 'has a description' do expect(subject.description). to eq('schema for an fstab entry') end describe 'properties' do subject { root.properties } it 'has four items' do expect(subject.length).to eq(4) end describe 'first' do subject { root.properties[0] } it { is_expected.to be_kind_of(Argo::ObjectProperty) } it 'has a name' do expect(subject.name).to eq('storage') end it 'is required' do expect(subject).to be_required end end describe 'second' do subject { root.properties[1] } it { is_expected.to be_kind_of(Argo::StringProperty) } it 'has a name' do expect(subject.name).to eq('fstype') end it 'is not required' do expect(subject).not_to be_required end it 'has constraints' do expect(subject.constraints).to eq(enum: %w[ ext3 ext4 btrfs ]) end end describe 'third' do subject { root.properties[2] } it { is_expected.to be_kind_of(Argo::ArrayProperty) } it 'has a name' do expect(subject.name).to eq('options') end describe 'items' do subject { root.properties[2].items } it { is_expected.to be_kind_of(Argo::StringProperty) } end it 'is not required' do expect(subject).not_to be_required end it 'has constraints' do expect(subject.constraints).to eq( minItems: 1, uniqueItems: true ) end end describe 'fourth' do subject { root.properties[3] } it { is_expected.to be_kind_of(Argo::BooleanProperty) } it 'has a name' do expect(subject.name).to eq('readonly') end it 'is not required' do expect(subject).not_to be_required end end end end
Test existing behaviour on entry schema
Test existing behaviour on entry schema
Ruby
isc
threedaymonk/argo
ruby
## Code Before: require 'argo/parser' require 'json' RSpec.describe 'entry-schema' do # See http://json-schema.org/example2.html let(:root) { path = read_fixture('entry-schema.json') Argo::Parser.new(JSON.parse(path)).root } subject { root } it 'has a description' do expect(subject.description). to eq('schema for an fstab entry') end end ## Instruction: Test existing behaviour on entry schema ## Code After: require 'argo/parser' require 'json' RSpec.describe 'entry-schema' do # See http://json-schema.org/example2.html let(:root) { path = read_fixture('entry-schema.json') Argo::Parser.new(JSON.parse(path)).root } subject { root } it 'has a description' do expect(subject.description). to eq('schema for an fstab entry') end describe 'properties' do subject { root.properties } it 'has four items' do expect(subject.length).to eq(4) end describe 'first' do subject { root.properties[0] } it { is_expected.to be_kind_of(Argo::ObjectProperty) } it 'has a name' do expect(subject.name).to eq('storage') end it 'is required' do expect(subject).to be_required end end describe 'second' do subject { root.properties[1] } it { is_expected.to be_kind_of(Argo::StringProperty) } it 'has a name' do expect(subject.name).to eq('fstype') end it 'is not required' do expect(subject).not_to be_required end it 'has constraints' do expect(subject.constraints).to eq(enum: %w[ ext3 ext4 btrfs ]) end end describe 'third' do subject { root.properties[2] } it { is_expected.to be_kind_of(Argo::ArrayProperty) } it 'has a name' do expect(subject.name).to eq('options') end describe 'items' do subject { root.properties[2].items } it { is_expected.to be_kind_of(Argo::StringProperty) } end it 'is not required' do expect(subject).not_to be_required end it 'has constraints' do expect(subject.constraints).to eq( minItems: 1, uniqueItems: true ) end end describe 'fourth' do subject { root.properties[3] } it { is_expected.to be_kind_of(Argo::BooleanProperty) } it 'has a name' do expect(subject.name).to eq('readonly') end it 'is not required' do expect(subject).not_to be_required end end end end
require 'argo/parser' require 'json' RSpec.describe 'entry-schema' do # See http://json-schema.org/example2.html let(:root) { path = read_fixture('entry-schema.json') Argo::Parser.new(JSON.parse(path)).root } subject { root } it 'has a description' do expect(subject.description). to eq('schema for an fstab entry') end + + describe 'properties' do + subject { root.properties } + + it 'has four items' do + expect(subject.length).to eq(4) + end + + describe 'first' do + subject { root.properties[0] } + + it { is_expected.to be_kind_of(Argo::ObjectProperty) } + + it 'has a name' do + expect(subject.name).to eq('storage') + end + + it 'is required' do + expect(subject).to be_required + end + end + + describe 'second' do + subject { root.properties[1] } + + it { is_expected.to be_kind_of(Argo::StringProperty) } + + it 'has a name' do + expect(subject.name).to eq('fstype') + end + + it 'is not required' do + expect(subject).not_to be_required + end + + it 'has constraints' do + expect(subject.constraints).to eq(enum: %w[ ext3 ext4 btrfs ]) + end + end + + describe 'third' do + subject { root.properties[2] } + + it { is_expected.to be_kind_of(Argo::ArrayProperty) } + + it 'has a name' do + expect(subject.name).to eq('options') + end + + describe 'items' do + subject { root.properties[2].items } + + it { is_expected.to be_kind_of(Argo::StringProperty) } + end + + it 'is not required' do + expect(subject).not_to be_required + end + + it 'has constraints' do + expect(subject.constraints).to eq( + minItems: 1, + uniqueItems: true + ) + end + end + + describe 'fourth' do + subject { root.properties[3] } + + it { is_expected.to be_kind_of(Argo::BooleanProperty) } + + it 'has a name' do + expect(subject.name).to eq('readonly') + end + + it 'is not required' do + expect(subject).not_to be_required + end + end + end end
81
4.764706
81
0
2555001c9e2eee06519a7fd5d986f9d6f057b418
config/dotfile/init.fish
config/dotfile/init.fish
function dotfile::append_env if not contains $argv[1] $argv[2] set --append $argv[1] $argv[2] end end function dotfile::prepend_env if not contains $argv[1] $argv[2] set --prepend $argv[1] $argv[2] end end function dotfile::set_env set --export --global $argv[1] $argv[2] end function dotfile::unset_env set --erase $argv[1] end function dotfile::load if test -f $argv[1] source $argv[1] end end function dotfile::load_all for file in (find -L $argv[1] -name $argv[2] -type f) source $file end end function dotfile::alias alias $argv[1] $argv[2] end
function dotfile::append_env set --local name $argv[1] set --local values $argv[2] if not set --query $name dotfile::set_env $name $values return end for value in (string split ":" $values) if not contains $value $$name set --append $name $value end end end function dotfile::prepend_env set --local name $argv[1] set --local values $argv[2] if not set --query $name dotfile::set_env $name $values return end for value in (string split ":" $values)[-1..1] if not contains $value $$name set --prepend $name $value end end end function dotfile::set_env set --export --global $argv[1] $argv[2] end function dotfile::unset_env set --erase $argv[1] end function dotfile::load if test -f $argv[1] source $argv[1] end end function dotfile::load_all for file in (find -L $argv[1] -name $argv[2] -type f) source $file end end function dotfile::alias alias $argv[1] $argv[2] end
Support colon separated environmental variables
Support colon separated environmental variables
fish
mit
charlesbjohnson/dotfiles,charlesbjohnson/dotfiles
fish
## Code Before: function dotfile::append_env if not contains $argv[1] $argv[2] set --append $argv[1] $argv[2] end end function dotfile::prepend_env if not contains $argv[1] $argv[2] set --prepend $argv[1] $argv[2] end end function dotfile::set_env set --export --global $argv[1] $argv[2] end function dotfile::unset_env set --erase $argv[1] end function dotfile::load if test -f $argv[1] source $argv[1] end end function dotfile::load_all for file in (find -L $argv[1] -name $argv[2] -type f) source $file end end function dotfile::alias alias $argv[1] $argv[2] end ## Instruction: Support colon separated environmental variables ## Code After: function dotfile::append_env set --local name $argv[1] set --local values $argv[2] if not set --query $name dotfile::set_env $name $values return end for value in (string split ":" $values) if not contains $value $$name set --append $name $value end end end function dotfile::prepend_env set --local name $argv[1] set --local values $argv[2] if not set --query $name dotfile::set_env $name $values return end for value in (string split ":" $values)[-1..1] if not contains $value $$name set --prepend $name $value end end end function dotfile::set_env set --export --global $argv[1] $argv[2] end function dotfile::unset_env set --erase $argv[1] end function dotfile::load if test -f $argv[1] source $argv[1] end end function dotfile::load_all for file in (find -L $argv[1] -name $argv[2] -type f) source $file end end function dotfile::alias alias $argv[1] $argv[2] end
function dotfile::append_env - if not contains $argv[1] $argv[2] - set --append $argv[1] $argv[2] + set --local name $argv[1] + set --local values $argv[2] + + if not set --query $name + dotfile::set_env $name $values + return + end + + for value in (string split ":" $values) + if not contains $value $$name + set --append $name $value + end end end function dotfile::prepend_env - if not contains $argv[1] $argv[2] - set --prepend $argv[1] $argv[2] + set --local name $argv[1] + set --local values $argv[2] + + if not set --query $name + dotfile::set_env $name $values + return + end + + for value in (string split ":" $values)[-1..1] + if not contains $value $$name + set --prepend $name $value + end end end function dotfile::set_env set --export --global $argv[1] $argv[2] end function dotfile::unset_env set --erase $argv[1] end function dotfile::load if test -f $argv[1] source $argv[1] end end function dotfile::load_all for file in (find -L $argv[1] -name $argv[2] -type f) source $file end end function dotfile::alias alias $argv[1] $argv[2] end
28
0.8
24
4
8a3d906cde89a0c0237d9a245d0c00d8ed711077
spec/unit/recipes/default_spec.rb
spec/unit/recipes/default_spec.rb
describe 'et_nginx::default' do before do stub_command('which nginx').and_return(nil) end let(:chef_run) do ChefSpec::SoloRunner.new.converge(described_recipe) end shared_examples_for 'default recipe' do it 'starts the service' do expect(chef_run).to start_service('nginx') end end context 'unmodified attributes' do it 'includes the package recipe' do expect(chef_run).to include_recipe('et_nginx::package') end it 'does not include a module recipe' do expect(chef_run).to_not include_recipe('module_http_stub_status') end it_behaves_like 'default recipe' end context 'installs modules based on attributes' do it 'includes a module recipe when specified' do chef_run.node.set['nginx']['modules'] = ['module_http_ssl'] chef_run.converge(described_recipe) expect(chef_run).to include_recipe('et_nginx::module_http_geoip') end end end
describe 'et_nginx::default' do before do stub_command('which nginx').and_return(nil) end let(:chef_run) do ChefSpec::SoloRunner.new.converge(described_recipe) end shared_examples_for 'default recipe' do end context 'unmodified attributes' do it 'includes the package recipe' do expect(chef_run).to include_recipe('et_nginx::package') end it 'does not include a module recipe' do expect(chef_run).to_not include_recipe('module_http_stub_status') end it_behaves_like 'default recipe' end context 'installs modules based on attributes' do it 'includes a module recipe when specified' do chef_run.node.set['nginx']['modules'] = ['module_http_ssl'] chef_run.converge(described_recipe) expect(chef_run).to include_recipe('et_nginx::module_http_geoip') end end end
Remove spec test to verify nginx start (which we no longer do)
Remove spec test to verify nginx start (which we no longer do)
Ruby
apache-2.0
evertrue/nginx-cookbook,evertrue/nginx-cookbook,evertrue/nginx-cookbook
ruby
## Code Before: describe 'et_nginx::default' do before do stub_command('which nginx').and_return(nil) end let(:chef_run) do ChefSpec::SoloRunner.new.converge(described_recipe) end shared_examples_for 'default recipe' do it 'starts the service' do expect(chef_run).to start_service('nginx') end end context 'unmodified attributes' do it 'includes the package recipe' do expect(chef_run).to include_recipe('et_nginx::package') end it 'does not include a module recipe' do expect(chef_run).to_not include_recipe('module_http_stub_status') end it_behaves_like 'default recipe' end context 'installs modules based on attributes' do it 'includes a module recipe when specified' do chef_run.node.set['nginx']['modules'] = ['module_http_ssl'] chef_run.converge(described_recipe) expect(chef_run).to include_recipe('et_nginx::module_http_geoip') end end end ## Instruction: Remove spec test to verify nginx start (which we no longer do) ## Code After: describe 'et_nginx::default' do before do stub_command('which nginx').and_return(nil) end let(:chef_run) do ChefSpec::SoloRunner.new.converge(described_recipe) end shared_examples_for 'default recipe' do end context 'unmodified attributes' do it 'includes the package recipe' do expect(chef_run).to include_recipe('et_nginx::package') end it 'does not include a module recipe' do expect(chef_run).to_not include_recipe('module_http_stub_status') end it_behaves_like 'default recipe' end context 'installs modules based on attributes' do it 'includes a module recipe when specified' do chef_run.node.set['nginx']['modules'] = ['module_http_ssl'] chef_run.converge(described_recipe) expect(chef_run).to include_recipe('et_nginx::module_http_geoip') end end end
describe 'et_nginx::default' do before do stub_command('which nginx').and_return(nil) end let(:chef_run) do ChefSpec::SoloRunner.new.converge(described_recipe) end shared_examples_for 'default recipe' do - it 'starts the service' do - expect(chef_run).to start_service('nginx') - end end context 'unmodified attributes' do it 'includes the package recipe' do expect(chef_run).to include_recipe('et_nginx::package') end it 'does not include a module recipe' do expect(chef_run).to_not include_recipe('module_http_stub_status') end it_behaves_like 'default recipe' end context 'installs modules based on attributes' do it 'includes a module recipe when specified' do chef_run.node.set['nginx']['modules'] = ['module_http_ssl'] chef_run.converge(described_recipe) expect(chef_run).to include_recipe('et_nginx::module_http_geoip') end end end
3
0.081081
0
3
a23217b3f42bd4104713c6743719b9e79158da47
sass/bass/decorations/_bass.decorations.shapes.scss
sass/bass/decorations/_bass.decorations.shapes.scss
//// /// @author Pedr Browne /// @group decorations //// /// A triangle shape. /// /// @param {Number} $length /// The length of the triangle. /// /// @param {String} $direction /// The direction the triangle is pointing at (top | bottom | left | right). /// /// @param {String} $colour /// The colour of the triangle. /// /// @outputs /// A triangle. /// @mixin triangle( $length, $direction, $colour ) { $adjacent: opposite-side($direction); border: $length solid transparent; border-#{$adjacent}: $length solid $colour; border-#{$direction}: 0; height:0; width:0; } /// A circle shape. /// /// @param {Number} $diameter /// The diameter of the circle. /// /// @param {Number} $color /// The colour of the circle. /// /// @outputs /// A circle. /// @mixin circle($diameter, $color) { width: $diameter; height: $diameter; background-color: $color; border-radius: $diameter/2; }
//// /// @author Pedr Browne /// @group decorations //// /// A triangle shape. /// /// @param {Number} $length /// The length of the triangle. /// /// @param {String} $direction /// The direction the triangle is pointing at (top | bottom | left | right). /// /// @param {Colour} $colour /// The colour of the triangle. /// /// @outputs /// A triangle. /// @mixin triangle( $length, $direction, $colour ) { $adjacent: opposite-side($direction); border: $length solid transparent; border-#{$adjacent}: $length solid $colour; border-#{$direction}: 0; height:0; width:0; } /// A circle shape. /// /// @param {Number} $diameter /// The diameter of the circle. /// /// @param {Colour} $color /// The colour of the circle. /// /// @outputs /// A circle. /// @mixin circle($diameter, $color) { width: $diameter; height: $diameter; background-color: $color; border-radius: $diameter/2; }
Change type to color for shape params
Docs: Change type to color for shape params
SCSS
mit
Undistraction/bass,Undistraction/bass,Undistraction/bass
scss
## Code Before: //// /// @author Pedr Browne /// @group decorations //// /// A triangle shape. /// /// @param {Number} $length /// The length of the triangle. /// /// @param {String} $direction /// The direction the triangle is pointing at (top | bottom | left | right). /// /// @param {String} $colour /// The colour of the triangle. /// /// @outputs /// A triangle. /// @mixin triangle( $length, $direction, $colour ) { $adjacent: opposite-side($direction); border: $length solid transparent; border-#{$adjacent}: $length solid $colour; border-#{$direction}: 0; height:0; width:0; } /// A circle shape. /// /// @param {Number} $diameter /// The diameter of the circle. /// /// @param {Number} $color /// The colour of the circle. /// /// @outputs /// A circle. /// @mixin circle($diameter, $color) { width: $diameter; height: $diameter; background-color: $color; border-radius: $diameter/2; } ## Instruction: Docs: Change type to color for shape params ## Code After: //// /// @author Pedr Browne /// @group decorations //// /// A triangle shape. /// /// @param {Number} $length /// The length of the triangle. /// /// @param {String} $direction /// The direction the triangle is pointing at (top | bottom | left | right). /// /// @param {Colour} $colour /// The colour of the triangle. /// /// @outputs /// A triangle. /// @mixin triangle( $length, $direction, $colour ) { $adjacent: opposite-side($direction); border: $length solid transparent; border-#{$adjacent}: $length solid $colour; border-#{$direction}: 0; height:0; width:0; } /// A circle shape. /// /// @param {Number} $diameter /// The diameter of the circle. /// /// @param {Colour} $color /// The colour of the circle. /// /// @outputs /// A circle. /// @mixin circle($diameter, $color) { width: $diameter; height: $diameter; background-color: $color; border-radius: $diameter/2; }
//// /// @author Pedr Browne /// @group decorations //// /// A triangle shape. /// /// @param {Number} $length /// The length of the triangle. /// /// @param {String} $direction /// The direction the triangle is pointing at (top | bottom | left | right). /// - /// @param {String} $colour ? ^^ --- + /// @param {Colour} $colour ? ^^^^^ /// The colour of the triangle. /// /// @outputs /// A triangle. /// @mixin triangle( $length, $direction, $colour ) { $adjacent: opposite-side($direction); border: $length solid transparent; border-#{$adjacent}: $length solid $colour; border-#{$direction}: 0; height:0; width:0; } /// A circle shape. /// /// @param {Number} $diameter /// The diameter of the circle. /// - /// @param {Number} $color ? ^ --- + /// @param {Colour} $color ? ^^^^ /// The colour of the circle. /// /// @outputs /// A circle. /// @mixin circle($diameter, $color) { width: $diameter; height: $diameter; background-color: $color; border-radius: $diameter/2; }
4
0.088889
2
2
c83853f0d3b12bff8ad6320e4f25b475874286e8
utils/upgrade-extracted.js
utils/upgrade-extracted.js
var async = require("async"); var mongoose = require("mongoose"); require("ukiyoe-models")(mongoose); var ExtractedImage = mongoose.model("ExtractedImage"); mongoose.connect('mongodb://localhost/extract'); mongoose.connection.on('error', function(err) { console.error('Connection Error:', err) }); mongoose.connection.once('open', function() { ExtractedImage.batchQuery({"image": null}, 1000, function(err, data, callback) { if (err) { console.error(err); return; } if (data.done) { console.log("DONE"); process.exit(0); return; } console.log("Processing " + data.from + " to " + data.to); async.eachLimit(data.images, 10, function(extracted, callback) { console.log(extracted._id); extracted.upgrade(callback); }, function(err) { if (err) { console.error(err); } if (callback) { callback(); } }); }); });
var async = require("async"); var mongoose = require("mongoose"); require("ukiyoe-models")(mongoose); var ExtractedImage = mongoose.model("ExtractedImage"); mongoose.connect('mongodb://localhost/extract'); mongoose.connection.on('error', function(err) { console.error('Connection Error:', err) }); mongoose.connection.once('open', function() { var query = {"image": null}; if (process.argv[2]) { query.source = process.argv[2]; } ExtractedImage.batchQuery(query, 1000, function(err, data, callback) { if (err) { console.error(err); return; } if (data.done) { console.log("DONE"); process.exit(0); return; } console.log("Processing " + data.from + " to " + data.to); async.eachLimit(data.images, 10, function(extracted, callback) { console.log(extracted._id); extracted.upgrade(callback); }, function(err) { if (err) { console.error(err); } if (callback) { callback(); } }); }); });
Make it so that you can upgrade a specific source.
Make it so that you can upgrade a specific source.
JavaScript
mit
jeresig/ukiyoe-web
javascript
## Code Before: var async = require("async"); var mongoose = require("mongoose"); require("ukiyoe-models")(mongoose); var ExtractedImage = mongoose.model("ExtractedImage"); mongoose.connect('mongodb://localhost/extract'); mongoose.connection.on('error', function(err) { console.error('Connection Error:', err) }); mongoose.connection.once('open', function() { ExtractedImage.batchQuery({"image": null}, 1000, function(err, data, callback) { if (err) { console.error(err); return; } if (data.done) { console.log("DONE"); process.exit(0); return; } console.log("Processing " + data.from + " to " + data.to); async.eachLimit(data.images, 10, function(extracted, callback) { console.log(extracted._id); extracted.upgrade(callback); }, function(err) { if (err) { console.error(err); } if (callback) { callback(); } }); }); }); ## Instruction: Make it so that you can upgrade a specific source. ## Code After: var async = require("async"); var mongoose = require("mongoose"); require("ukiyoe-models")(mongoose); var ExtractedImage = mongoose.model("ExtractedImage"); mongoose.connect('mongodb://localhost/extract'); mongoose.connection.on('error', function(err) { console.error('Connection Error:', err) }); mongoose.connection.once('open', function() { var query = {"image": null}; if (process.argv[2]) { query.source = process.argv[2]; } ExtractedImage.batchQuery(query, 1000, function(err, data, callback) { if (err) { console.error(err); return; } if (data.done) { console.log("DONE"); process.exit(0); return; } console.log("Processing " + data.from + " to " + data.to); async.eachLimit(data.images, 10, function(extracted, callback) { console.log(extracted._id); extracted.upgrade(callback); }, function(err) { if (err) { console.error(err); } if (callback) { callback(); } }); }); });
var async = require("async"); var mongoose = require("mongoose"); require("ukiyoe-models")(mongoose); var ExtractedImage = mongoose.model("ExtractedImage"); mongoose.connect('mongodb://localhost/extract'); mongoose.connection.on('error', function(err) { console.error('Connection Error:', err) }); mongoose.connection.once('open', function() { + var query = {"image": null}; + + if (process.argv[2]) { + query.source = process.argv[2]; + } + - ExtractedImage.batchQuery({"image": null}, 1000, function(err, data, callback) { ? ^^^^^^ ^^^^^^^^ + ExtractedImage.batchQuery(query, 1000, function(err, data, callback) { ? ^^ ^^ if (err) { console.error(err); return; } if (data.done) { console.log("DONE"); process.exit(0); return; } console.log("Processing " + data.from + " to " + data.to); async.eachLimit(data.images, 10, function(extracted, callback) { console.log(extracted._id); extracted.upgrade(callback); }, function(err) { if (err) { console.error(err); } if (callback) { callback(); } }); }); });
8
0.195122
7
1
0efb3e71baec5fba5a3a05aef301a94802ad60a4
locales/tl/addon.properties
locales/tl/addon.properties
experiment_list_enabled = Pinagana experiment_list_new_experiment = Bagong Eksperimento experiment_list_view_all = Tingnan ang lahat na eksperimento experiment_eol_tomorrow_message = Magtatapos Bukas experiment_eol_soon_message = Malapit ng Matapos experiment_eol_complete_message = Tapos na ang Eksperimento installed_message = <strong>Para sa Iyong Impormasyon:</strong> Bumuo kami ng isang pindutan sa iyong toolbar <br> kaya maaari mong laging mahanap ang Test Pilot. # LOCALIZER NOTE: Placeholder is experiment title survey_show_rating_label = Mangyaring i-rate %s # LOCALIZER NOTE: Placeholder is experiment title survey_rating_thank_you = Salamat sa marka %s. survey_rating_survey_button = Kumuha ng Quick Survey # LOCALIZER NOTE: Placeholder is experiment title survey_launch_survey_label = Ang %s na eksperimento ay natapos. Ano sa palagay mo? # LOCALIZER NOTE: Placeholder is site host (e.g. testpilot.firefox.com) notification_via = via %s no_experiment_message = Subukan ang pinakabagong pang-eksperimentong tampok ng Firefox sa Test Pilot! no_experiment_button = Anong eksperimento? new_badge = Bago share_label = Gusto mo ang Test Pilot? share_button = Ibahagi
experiment_list_enabled = Pinagana experiment_list_new_experiment = Bagong Eksperimento experiment_list_view_all = Tingnan ang lahat na eksperimento experiment_eol_tomorrow_message = Magtatapos Bukas experiment_eol_soon_message = Malapit ng Matapos experiment_eol_complete_message = Tapos na ang Eksperimento installed_message = <strong>Para sa Iyong Impormasyon:</strong> Bumuo kami ng isang pindutan sa iyong toolbar <br> kaya maaari mong laging mahanap ang Test Pilot. # LOCALIZER NOTE: Placeholder is experiment title survey_show_rating_label = Mangyaring i-rate %s # LOCALIZER NOTE: Placeholder is experiment title survey_rating_thank_you = Salamat sa marka %s. survey_rating_survey_button = Kumuha ng Quick Survey # LOCALIZER NOTE: Placeholder is experiment title survey_launch_survey_label = Ang %s na eksperimento ay natapos. Ano sa palagay mo? no_experiment_message = Subukan ang pinakabagong pang-eksperimentong tampok ng Firefox sa Test Pilot! no_experiment_button = Anong eksperimento? new_badge = Bago share_label = Gusto mo ang Test Pilot? share_button = Ibahagi
Update Tagalog (tl) localization of Test Pilot Website
Pontoon: Update Tagalog (tl) localization of Test Pilot Website
INI
mpl-2.0
meandavejustice/testpilot,mozilla/idea-town-server,chuckharmston/testpilot,lmorchard/idea-town,chuckharmston/testpilot,mozilla/idea-town-server,mozilla/idea-town,lmorchard/idea-town-server,mozilla/idea-town,mozilla/idea-town-server,meandavejustice/testpilot,flodolo/testpilot,lmorchard/testpilot,fzzzy/testpilot,chuckharmston/testpilot,lmorchard/idea-town-server,fzzzy/testpilot,mozilla/idea-town,meandavejustice/testpilot,lmorchard/idea-town,mozilla/idea-town,lmorchard/testpilot,chuckharmston/testpilot,lmorchard/testpilot,fzzzy/testpilot,flodolo/testpilot,lmorchard/testpilot,lmorchard/idea-town-server,flodolo/testpilot,lmorchard/idea-town-server,lmorchard/idea-town,lmorchard/idea-town,mozilla/idea-town-server,meandavejustice/testpilot,fzzzy/testpilot,flodolo/testpilot
ini
## Code Before: experiment_list_enabled = Pinagana experiment_list_new_experiment = Bagong Eksperimento experiment_list_view_all = Tingnan ang lahat na eksperimento experiment_eol_tomorrow_message = Magtatapos Bukas experiment_eol_soon_message = Malapit ng Matapos experiment_eol_complete_message = Tapos na ang Eksperimento installed_message = <strong>Para sa Iyong Impormasyon:</strong> Bumuo kami ng isang pindutan sa iyong toolbar <br> kaya maaari mong laging mahanap ang Test Pilot. # LOCALIZER NOTE: Placeholder is experiment title survey_show_rating_label = Mangyaring i-rate %s # LOCALIZER NOTE: Placeholder is experiment title survey_rating_thank_you = Salamat sa marka %s. survey_rating_survey_button = Kumuha ng Quick Survey # LOCALIZER NOTE: Placeholder is experiment title survey_launch_survey_label = Ang %s na eksperimento ay natapos. Ano sa palagay mo? # LOCALIZER NOTE: Placeholder is site host (e.g. testpilot.firefox.com) notification_via = via %s no_experiment_message = Subukan ang pinakabagong pang-eksperimentong tampok ng Firefox sa Test Pilot! no_experiment_button = Anong eksperimento? new_badge = Bago share_label = Gusto mo ang Test Pilot? share_button = Ibahagi ## Instruction: Pontoon: Update Tagalog (tl) localization of Test Pilot Website ## Code After: experiment_list_enabled = Pinagana experiment_list_new_experiment = Bagong Eksperimento experiment_list_view_all = Tingnan ang lahat na eksperimento experiment_eol_tomorrow_message = Magtatapos Bukas experiment_eol_soon_message = Malapit ng Matapos experiment_eol_complete_message = Tapos na ang Eksperimento installed_message = <strong>Para sa Iyong Impormasyon:</strong> Bumuo kami ng isang pindutan sa iyong toolbar <br> kaya maaari mong laging mahanap ang Test Pilot. # LOCALIZER NOTE: Placeholder is experiment title survey_show_rating_label = Mangyaring i-rate %s # LOCALIZER NOTE: Placeholder is experiment title survey_rating_thank_you = Salamat sa marka %s. survey_rating_survey_button = Kumuha ng Quick Survey # LOCALIZER NOTE: Placeholder is experiment title survey_launch_survey_label = Ang %s na eksperimento ay natapos. Ano sa palagay mo? no_experiment_message = Subukan ang pinakabagong pang-eksperimentong tampok ng Firefox sa Test Pilot! no_experiment_button = Anong eksperimento? new_badge = Bago share_label = Gusto mo ang Test Pilot? share_button = Ibahagi
experiment_list_enabled = Pinagana experiment_list_new_experiment = Bagong Eksperimento experiment_list_view_all = Tingnan ang lahat na eksperimento experiment_eol_tomorrow_message = Magtatapos Bukas experiment_eol_soon_message = Malapit ng Matapos experiment_eol_complete_message = Tapos na ang Eksperimento installed_message = <strong>Para sa Iyong Impormasyon:</strong> Bumuo kami ng isang pindutan sa iyong toolbar <br> kaya maaari mong laging mahanap ang Test Pilot. # LOCALIZER NOTE: Placeholder is experiment title survey_show_rating_label = Mangyaring i-rate %s # LOCALIZER NOTE: Placeholder is experiment title survey_rating_thank_you = Salamat sa marka %s. survey_rating_survey_button = Kumuha ng Quick Survey # LOCALIZER NOTE: Placeholder is experiment title survey_launch_survey_label = Ang %s na eksperimento ay natapos. Ano sa palagay mo? - # LOCALIZER NOTE: Placeholder is site host (e.g. testpilot.firefox.com) - notification_via = via %s - no_experiment_message = Subukan ang pinakabagong pang-eksperimentong tampok ng Firefox sa Test Pilot! no_experiment_button = Anong eksperimento? new_badge = Bago share_label = Gusto mo ang Test Pilot? share_button = Ibahagi
3
0.111111
0
3
53d700b2e9c13e29ac49cc0a59743789004115c7
requirements.txt
requirements.txt
Flask==0.10.1 Jinja2==2.7.3 MarkupSafe==0.23 Werkzeug==0.9.6 argparse==1.2.1 click==3.3 colorama==0.3.2 gevent==1.0.1 gevent-socketio==0.3.6 gevent-websocket==0.9.3 greenlet==0.4.4 gunicorn==19.1.1 itsdangerous==0.24 requests==2.4.1 wsgiref==0.1.2
Flask==0.10.1 Jinja2==2.7.3 MarkupSafe==0.23 Werkzeug==0.9.6 argparse==1.2.1 blinker==1.3 click==3.3 colorama==0.3.2 gevent==1.0.1 gevent-socketio==0.3.6 gevent-websocket==0.9.3 greenlet==0.4.4 gunicorn==19.1.1 itsdangerous==0.24 raven==5.0.0 requests==2.4.1 wsgiref==0.1.2
Add raven, blinker (for Sentry support)
Add raven, blinker (for Sentry support)
Text
mit
ArchimedesPi/shellshocker,ArchimedesPi/shellshocker,ArchimedesPi/shellshocker,ArchimedesPi/shellshocker
text
## Code Before: Flask==0.10.1 Jinja2==2.7.3 MarkupSafe==0.23 Werkzeug==0.9.6 argparse==1.2.1 click==3.3 colorama==0.3.2 gevent==1.0.1 gevent-socketio==0.3.6 gevent-websocket==0.9.3 greenlet==0.4.4 gunicorn==19.1.1 itsdangerous==0.24 requests==2.4.1 wsgiref==0.1.2 ## Instruction: Add raven, blinker (for Sentry support) ## Code After: Flask==0.10.1 Jinja2==2.7.3 MarkupSafe==0.23 Werkzeug==0.9.6 argparse==1.2.1 blinker==1.3 click==3.3 colorama==0.3.2 gevent==1.0.1 gevent-socketio==0.3.6 gevent-websocket==0.9.3 greenlet==0.4.4 gunicorn==19.1.1 itsdangerous==0.24 raven==5.0.0 requests==2.4.1 wsgiref==0.1.2
Flask==0.10.1 Jinja2==2.7.3 MarkupSafe==0.23 Werkzeug==0.9.6 argparse==1.2.1 + blinker==1.3 click==3.3 colorama==0.3.2 gevent==1.0.1 gevent-socketio==0.3.6 gevent-websocket==0.9.3 greenlet==0.4.4 gunicorn==19.1.1 itsdangerous==0.24 + raven==5.0.0 requests==2.4.1 wsgiref==0.1.2
2
0.133333
2
0
8b4be74ebcc05690f3198bd13e5b7b41a473feb6
app/decorators/eve/alliance_decorator.rb
app/decorators/eve/alliance_decorator.rb
module Eve class AllianceDecorator < ApplicationDecorator include ActionView::Helpers::NumberHelper decorates_associations :creator_corporation, :creator, :executor_corporation, :faction, :alliance_corporations, :corporations, :characters, :corporation_alliance_histories def date_founded object.date_founded.iso8601 end def icon_tiny "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=32" end def icon_small "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=64" end def icon_medium "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=128" end def icon_large "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=256" end def icon_huge "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=512" end def formatted_corporations_count number_with_delimiter(corporations_count, delimiter: " ") end def formatted_characters_count number_with_delimiter(characters_count, delimiter: " ") end end end
module Eve class AllianceDecorator < ApplicationDecorator include ActionView::Helpers::NumberHelper decorates_associations :creator_corporation, :creator, :executor_corporation, :faction, :corporations, :characters, :corporation_alliance_histories def date_founded object.date_founded.iso8601 end def icon_tiny "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=32" end def icon_small "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=64" end def icon_medium "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=128" end def icon_large "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=256" end def icon_huge "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=512" end def formatted_corporations_count number_with_delimiter(corporations_count, delimiter: " ") end def formatted_characters_count number_with_delimiter(characters_count, delimiter: " ") end end end
Remove alliance_corporations from alliance decorator
Remove alliance_corporations from alliance decorator
Ruby
mit
biow0lf/evemonk,biow0lf/evemonk,biow0lf/evemonk
ruby
## Code Before: module Eve class AllianceDecorator < ApplicationDecorator include ActionView::Helpers::NumberHelper decorates_associations :creator_corporation, :creator, :executor_corporation, :faction, :alliance_corporations, :corporations, :characters, :corporation_alliance_histories def date_founded object.date_founded.iso8601 end def icon_tiny "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=32" end def icon_small "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=64" end def icon_medium "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=128" end def icon_large "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=256" end def icon_huge "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=512" end def formatted_corporations_count number_with_delimiter(corporations_count, delimiter: " ") end def formatted_characters_count number_with_delimiter(characters_count, delimiter: " ") end end end ## Instruction: Remove alliance_corporations from alliance decorator ## Code After: module Eve class AllianceDecorator < ApplicationDecorator include ActionView::Helpers::NumberHelper decorates_associations :creator_corporation, :creator, :executor_corporation, :faction, :corporations, :characters, :corporation_alliance_histories def date_founded object.date_founded.iso8601 end def icon_tiny "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=32" end def icon_small "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=64" end def icon_medium "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=128" end def icon_large "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=256" end def icon_huge "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=512" end def formatted_corporations_count number_with_delimiter(corporations_count, delimiter: " ") end def formatted_characters_count number_with_delimiter(characters_count, delimiter: " ") end end end
module Eve class AllianceDecorator < ApplicationDecorator include ActionView::Helpers::NumberHelper decorates_associations :creator_corporation, :creator, - :executor_corporation, :faction, :alliance_corporations, :corporations, ? --------- ^^^^ ^^^ + :executor_corporation, :faction, :corporations, :characters, ? ^^ + ^^ - :characters, :corporation_alliance_histories ? ------------- + :corporation_alliance_histories def date_founded object.date_founded.iso8601 end def icon_tiny "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=32" end def icon_small "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=64" end def icon_medium "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=128" end def icon_large "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=256" end def icon_huge "#{imageproxy_url}https://images.evetech.net/alliances/#{alliance_id}/logo?size=512" end def formatted_corporations_count number_with_delimiter(corporations_count, delimiter: " ") end def formatted_characters_count number_with_delimiter(characters_count, delimiter: " ") end end end
4
0.095238
2
2
3d204318b7c3565783f419490f95b128632f9141
README.md
README.md
[![N|Solid](https://github.com/SplashSync/Php-Core/blob/master/Resources/img/fake-image2.jpg)](http://www.splashsync.com) # SplashSync Magento Module Splash Php Module for Magento 1 E-Commerce Platforms. This module implement Splash Sync connector for Magento 1. It provide access to multiples Objects for automated synchronization though Splash Sync dedicated protocol. ## Installation * Download latest stable version here : [Splash Modules](http://www.splashsync.com/en/modules/) * Copy all module files on your Magento app folder (app/*) * Enable & Configure the module ## Requirements * PHP PHP 7.2+ * Magento 1.9.x * An active Splash Sync User Account ## Documentation For the configuration guide and reference, see: [Magento 1 Module Documentation](https://splashsync.github.io/Magento1) ## Contributing Any Pull requests are welcome! This module is part of [SplashSync](http://www.splashsync.com) project.
[![N|Solid](https://github.com/SplashSync/Php-Core/raw/master/img/github.jpg)](https://www.splashsync.com) # SplashSync Magento Module Splash Php Module for Magento 1 E-Commerce Platforms. This module implement Splash Sync connector for Magento 1. It provide access to multiples Objects for automated synchronization though Splash Sync dedicated protocol. ## Installation * Download latest stable version here : [Splash Modules](http://www.splashsync.com/en/modules/) * Copy all module files on your Magento app folder (app/*) * Enable & Configure the module ## Requirements * PHP PHP 7.2+ * Magento 1.9.x * An active Splash Sync User Account ## Documentation For the configuration guide and reference, see: [Magento 1 Module Documentation](https://splashsync.github.io/Magento1) ## Contributing Any Pull requests are welcome! This module is part of [SplashSync](http://www.splashsync.com) project.
Migrate to Gitlab CI - DOCS
Migrate to Gitlab CI - DOCS
Markdown
mit
SplashSync/Magento1,SplashSync/Magento1,SplashSync/Magento1
markdown
## Code Before: [![N|Solid](https://github.com/SplashSync/Php-Core/blob/master/Resources/img/fake-image2.jpg)](http://www.splashsync.com) # SplashSync Magento Module Splash Php Module for Magento 1 E-Commerce Platforms. This module implement Splash Sync connector for Magento 1. It provide access to multiples Objects for automated synchronization though Splash Sync dedicated protocol. ## Installation * Download latest stable version here : [Splash Modules](http://www.splashsync.com/en/modules/) * Copy all module files on your Magento app folder (app/*) * Enable & Configure the module ## Requirements * PHP PHP 7.2+ * Magento 1.9.x * An active Splash Sync User Account ## Documentation For the configuration guide and reference, see: [Magento 1 Module Documentation](https://splashsync.github.io/Magento1) ## Contributing Any Pull requests are welcome! This module is part of [SplashSync](http://www.splashsync.com) project. ## Instruction: Migrate to Gitlab CI - DOCS ## Code After: [![N|Solid](https://github.com/SplashSync/Php-Core/raw/master/img/github.jpg)](https://www.splashsync.com) # SplashSync Magento Module Splash Php Module for Magento 1 E-Commerce Platforms. This module implement Splash Sync connector for Magento 1. It provide access to multiples Objects for automated synchronization though Splash Sync dedicated protocol. ## Installation * Download latest stable version here : [Splash Modules](http://www.splashsync.com/en/modules/) * Copy all module files on your Magento app folder (app/*) * Enable & Configure the module ## Requirements * PHP PHP 7.2+ * Magento 1.9.x * An active Splash Sync User Account ## Documentation For the configuration guide and reference, see: [Magento 1 Module Documentation](https://splashsync.github.io/Magento1) ## Contributing Any Pull requests are welcome! This module is part of [SplashSync](http://www.splashsync.com) project.
- [![N|Solid](https://github.com/SplashSync/Php-Core/blob/master/Resources/img/fake-image2.jpg)](http://www.splashsync.com) ? ^^^^ ---------- ^^^^^ ^^^^^ + [![N|Solid](https://github.com/SplashSync/Php-Core/raw/master/img/github.jpg)](https://www.splashsync.com) ? ^^^ ^ ^^^^ + # SplashSync Magento Module Splash Php Module for Magento 1 E-Commerce Platforms. This module implement Splash Sync connector for Magento 1. It provide access to multiples Objects for automated synchronization though Splash Sync dedicated protocol. ## Installation * Download latest stable version here : [Splash Modules](http://www.splashsync.com/en/modules/) * Copy all module files on your Magento app folder (app/*) * Enable & Configure the module ## Requirements * PHP PHP 7.2+ * Magento 1.9.x * An active Splash Sync User Account ## Documentation For the configuration guide and reference, see: [Magento 1 Module Documentation](https://splashsync.github.io/Magento1) ## Contributing Any Pull requests are welcome! This module is part of [SplashSync](http://www.splashsync.com) project.
2
0.066667
1
1
b482fd832006f8318aeca1cfeca3245a99e31138
.travis.yml
.travis.yml
language: node_js node_js: - '7' env: - MODULE=primer-css - MODULE=primer-core - MODULE=primer-product - MODULE=primer-marketing - MODULE=primer-alerts - MODULE=primer-base - MODULE=primer-blankslate - MODULE=primer-box - MODULE=primer-breadcrumb - MODULE=primer-buttons - MODULE=primer-cards - MODULE=primer-forms - MODULE=primer-labels - MODULE=primer-layout - MODULE=primer-markdown - MODULE=primer-marketing - MODULE=primer-marketing-type - MODULE=primer-marketing-utilities - MODULE=primer-navigation - MODULE=primer-page-headers - MODULE=primer-page-sections - MODULE=primer-support - MODULE=primer-table-object - MODULE=primer-tables - MODULE=primer-tooltips - MODULE=primer-truncate - MODULE=primer-utilities - MODULE=..;DEPLOY=true script: cd modules/$MODULE && npm install && npm test deploy: provider: script skip_cleanup: true script: cd $TRAVIS_BUILD_DIR && script/dev-deploy on: all_branches: true condition: "$DEPLOY = true"
language: node_js node_js: - '7' env: - MODULE=primer-alerts - MODULE=primer-base - MODULE=primer-blankslate - MODULE=primer-box - MODULE=primer-breadcrumb - MODULE=primer-buttons - MODULE=primer-cards - MODULE=primer-core - MODULE=primer-css - MODULE=primer-forms - MODULE=primer-labels - MODULE=primer-layout - MODULE=primer-markdown - MODULE=primer-marketing - MODULE=primer-marketing - MODULE=primer-marketing-type - MODULE=primer-marketing-utilities - MODULE=primer-navigation - MODULE=primer-page-headers - MODULE=primer-page-sections - MODULE=primer-product - MODULE=primer-support - MODULE=primer-table-object - MODULE=primer-tables - MODULE=primer-tooltips - MODULE=primer-truncate - MODULE=primer-utilities - MODULE=..;DEPLOY=true script: cd modules/$MODULE && npm install && npm test deploy: provider: script skip_cleanup: true script: cd $TRAVIS_BUILD_DIR && script/dev-deploy on: all_branches: true condition: "$DEPLOY = true"
Sort these so we don't overlook any
Sort these so we don't overlook any
YAML
mit
primer/primer,primer/primer,primer/primer-css,primer/primer-css,primer/primer,primer/primer-css
yaml
## Code Before: language: node_js node_js: - '7' env: - MODULE=primer-css - MODULE=primer-core - MODULE=primer-product - MODULE=primer-marketing - MODULE=primer-alerts - MODULE=primer-base - MODULE=primer-blankslate - MODULE=primer-box - MODULE=primer-breadcrumb - MODULE=primer-buttons - MODULE=primer-cards - MODULE=primer-forms - MODULE=primer-labels - MODULE=primer-layout - MODULE=primer-markdown - MODULE=primer-marketing - MODULE=primer-marketing-type - MODULE=primer-marketing-utilities - MODULE=primer-navigation - MODULE=primer-page-headers - MODULE=primer-page-sections - MODULE=primer-support - MODULE=primer-table-object - MODULE=primer-tables - MODULE=primer-tooltips - MODULE=primer-truncate - MODULE=primer-utilities - MODULE=..;DEPLOY=true script: cd modules/$MODULE && npm install && npm test deploy: provider: script skip_cleanup: true script: cd $TRAVIS_BUILD_DIR && script/dev-deploy on: all_branches: true condition: "$DEPLOY = true" ## Instruction: Sort these so we don't overlook any ## Code After: language: node_js node_js: - '7' env: - MODULE=primer-alerts - MODULE=primer-base - MODULE=primer-blankslate - MODULE=primer-box - MODULE=primer-breadcrumb - MODULE=primer-buttons - MODULE=primer-cards - MODULE=primer-core - MODULE=primer-css - MODULE=primer-forms - MODULE=primer-labels - MODULE=primer-layout - MODULE=primer-markdown - MODULE=primer-marketing - MODULE=primer-marketing - MODULE=primer-marketing-type - MODULE=primer-marketing-utilities - MODULE=primer-navigation - MODULE=primer-page-headers - MODULE=primer-page-sections - MODULE=primer-product - MODULE=primer-support - MODULE=primer-table-object - MODULE=primer-tables - MODULE=primer-tooltips - MODULE=primer-truncate - MODULE=primer-utilities - MODULE=..;DEPLOY=true script: cd modules/$MODULE && npm install && npm test deploy: provider: script skip_cleanup: true script: cd $TRAVIS_BUILD_DIR && script/dev-deploy on: all_branches: true condition: "$DEPLOY = true"
language: node_js node_js: - '7' env: - - MODULE=primer-css - - MODULE=primer-core - - MODULE=primer-product - - MODULE=primer-marketing - MODULE=primer-alerts - MODULE=primer-base - MODULE=primer-blankslate - MODULE=primer-box - MODULE=primer-breadcrumb - MODULE=primer-buttons - MODULE=primer-cards + - MODULE=primer-core + - MODULE=primer-css - MODULE=primer-forms - MODULE=primer-labels - MODULE=primer-layout - MODULE=primer-markdown + - MODULE=primer-marketing - MODULE=primer-marketing - MODULE=primer-marketing-type - MODULE=primer-marketing-utilities - MODULE=primer-navigation - MODULE=primer-page-headers - MODULE=primer-page-sections + - MODULE=primer-product - MODULE=primer-support - MODULE=primer-table-object - MODULE=primer-tables - MODULE=primer-tooltips - MODULE=primer-truncate - MODULE=primer-utilities - MODULE=..;DEPLOY=true script: cd modules/$MODULE && npm install && npm test deploy: provider: script skip_cleanup: true script: cd $TRAVIS_BUILD_DIR && script/dev-deploy on: all_branches: true condition: "$DEPLOY = true"
8
0.2
4
4
baf6795195330df40cd7a39efff389751a3629f3
src/browser/atom-protocol-handler.coffee
src/browser/atom-protocol-handler.coffee
app = require 'app' fs = require 'fs' path = require 'path' protocol = require 'protocol' # Handles requests with 'atom' protocol. # # It's created by {AtomApplication} upon instantiation and is used to create a # custom resource loader for 'atom://' URLs. # # The following directories are searched in order: # * ~/.atom/assets # * ~/.atom/dev/packages (unless in safe mode) # * ~/.atom/packages # * RESOURCE_PATH/node_modules # module.exports = class AtomProtocolHandler constructor: (resourcePath, safeMode) -> @loadPaths = [] @dotAtomDirectory = path.join(app.getHomeDir(), '.atom') unless safeMode @loadPaths.push(path.join(@dotAtomDirectory, 'dev', 'packages')) @loadPaths.push(path.join(@dotAtomDirectory, 'packages')) @loadPaths.push(path.join(resourcePath, 'node_modules')) @registerAtomProtocol() # Creates the 'atom' custom protocol handler. registerAtomProtocol: -> protocol.registerProtocol 'atom', (request) => relativePath = path.normalize(request.url.substr(7)) if relativePath.indexOf('assets/') is 0 assetsPath = path.join(@dotAtomDirectory, relativePath) filePath = assetsPath if fs.statSyncNoException(assetsPath).isFile?() unless filePath for loadPath in @loadPaths filePath = path.join(loadPath, relativePath) break if fs.statSyncNoException(filePath).isFile?() new protocol.RequestFileJob(filePath)
app = require 'app' fs = require 'fs' path = require 'path' protocol = require 'protocol' # Handles requests with 'atom' protocol. # # It's created by {AtomApplication} upon instantiation and is used to create a # custom resource loader for 'atom://' URLs. # # The following directories are searched in order: # * ~/.atom/assets # * ~/.atom/dev/packages (unless in safe mode) # * ~/.atom/packages # * RESOURCE_PATH/node_modules # module.exports = class AtomProtocolHandler constructor: (resourcePath, safeMode) -> @loadPaths = [] unless safeMode @loadPaths.push(path.join(process.env.ATOM_HOME, 'dev', 'packages')) @loadPaths.push(path.join(process.env.ATOM_HOME, 'packages')) @loadPaths.push(path.join(resourcePath, 'node_modules')) @registerAtomProtocol() # Creates the 'atom' custom protocol handler. registerAtomProtocol: -> protocol.registerProtocol 'atom', (request) => relativePath = path.normalize(request.url.substr(7)) if relativePath.indexOf('assets/') is 0 assetsPath = path.join(process.env.ATOM_HOME, relativePath) filePath = assetsPath if fs.statSyncNoException(assetsPath).isFile?() unless filePath for loadPath in @loadPaths filePath = path.join(loadPath, relativePath) break if fs.statSyncNoException(filePath).isFile?() new protocol.RequestFileJob(filePath)
Use ATOM_HOME env var in protocol handler
Use ATOM_HOME env var in protocol handler Closes #5501
CoffeeScript
mit
woss/atom,darwin/atom,YunchengLiao/atom,dijs/atom,scippio/atom,woss/atom,dannyflax/atom,ardeshirj/atom,ilovezy/atom,matthewclendening/atom,bsmr-x-script/atom,Galactix/atom,ironbox360/atom,liuderchi/atom,bolinfest/atom,tony612/atom,KENJU/atom,jjz/atom,liuderchi/atom,gontadu/atom,AlisaKiatkongkumthon/atom,n-riesco/atom,devoncarew/atom,pkdevbox/atom,yamhon/atom,Mokolea/atom,champagnez/atom,wiggzz/atom,amine7536/atom,crazyquark/atom,phord/atom,lisonma/atom,t9md/atom,sxgao3001/atom,RobinTec/atom,john-kelly/atom,jjz/atom,rlugojr/atom,gisenberg/atom,ObviouslyGreen/atom,constanzaurzua/atom,alexandergmann/atom,BogusCurry/atom,dannyflax/atom,vhutheesing/atom,matthewclendening/atom,john-kelly/atom,hagb4rd/atom,hellendag/atom,russlescai/atom,amine7536/atom,dsandstrom/atom,fredericksilva/atom,jlord/atom,AlbertoBarrago/atom,boomwaiza/atom,rsvip/aTom,johnhaley81/atom,kevinrenaers/atom,devoncarew/atom,nrodriguez13/atom,tjkr/atom,dkfiresky/atom,isghe/atom,nrodriguez13/atom,folpindo/atom,YunchengLiao/atom,Abdillah/atom,vcarrera/atom,tisu2tisu/atom,efatsi/atom,russlescai/atom,kc8wxm/atom,tmunro/atom,svanharmelen/atom,CraZySacX/atom,Ju2ender/atom,gabrielPeart/atom,bcoe/atom,scv119/atom,Arcanemagus/atom,AdrianVovk/substance-ide,einarmagnus/atom,pkdevbox/atom,batjko/atom,florianb/atom,me6iaton/atom,jeremyramin/atom,devmario/atom,tjkr/atom,kittens/atom,mertkahyaoglu/atom,sillvan/atom,codex8/atom,n-riesco/atom,RuiDGoncalves/atom,AlisaKiatkongkumthon/atom,MjAbuz/atom,davideg/atom,jacekkopecky/atom,isghe/atom,fredericksilva/atom,kevinrenaers/atom,alexandergmann/atom,hagb4rd/atom,kaicataldo/atom,oggy/atom,targeter21/atom,synaptek/atom,basarat/atom,elkingtonmcb/atom,Dennis1978/atom,bencolon/atom,G-Baby/atom,jtrose2/atom,hellendag/atom,kjav/atom,Jonekee/atom,abcP9110/atom,mertkahyaoglu/atom,yamhon/atom,synaptek/atom,darwin/atom,codex8/atom,matthewclendening/atom,alexandergmann/atom,fscherwi/atom,mostafaeweda/atom,KENJU/atom,hpham04/atom,gisenberg/atom,tanin47/atom,Andrey-Pavlov/atom,mertkahyaoglu/atom,ivoadf/atom,alfredxing/atom,dijs/atom,isghe/atom,seedtigo/atom,stinsonga/atom,kjav/atom,johnhaley81/atom,dkfiresky/atom,abcP9110/atom,jtrose2/atom,jacekkopecky/atom,woss/atom,rmartin/atom,NunoEdgarGub1/atom,scippio/atom,Ju2ender/atom,jeremyramin/atom,YunchengLiao/atom,einarmagnus/atom,charleswhchan/atom,PKRoma/atom,Hasimir/atom,stinsonga/atom,ralphtheninja/atom,gzzhanghao/atom,sekcheong/atom,001szymon/atom,gisenberg/atom,NunoEdgarGub1/atom,mdumrauf/atom,kc8wxm/atom,liuxiong332/atom,Huaraz2/atom,einarmagnus/atom,Jandersolutions/atom,NunoEdgarGub1/atom,sotayamashita/atom,FoldingText/atom,beni55/atom,DiogoXRP/atom,vcarrera/atom,ReddTea/atom,phord/atom,chfritz/atom,beni55/atom,isghe/atom,rsvip/aTom,efatsi/atom,001szymon/atom,jacekkopecky/atom,deoxilix/atom,sxgao3001/atom,brumm/atom,Jandersoft/atom,kandros/atom,bj7/atom,yalexx/atom,t9md/atom,chfritz/atom,fedorov/atom,mnquintana/atom,Jandersolutions/atom,001szymon/atom,jlord/atom,chfritz/atom,Andrey-Pavlov/atom,ObviouslyGreen/atom,Ingramz/atom,devmario/atom,qskycolor/atom,ali/atom,yangchenghu/atom,bolinfest/atom,amine7536/atom,russlescai/atom,brettle/atom,johnrizzo1/atom,decaffeinate-examples/atom,Austen-G/BlockBuilder,dannyflax/atom,brettle/atom,Sangaroonaom/atom,svanharmelen/atom,johnrizzo1/atom,FIT-CSE2410-A-Bombs/atom,einarmagnus/atom,Austen-G/BlockBuilder,daxlab/atom,Rodjana/atom,Shekharrajak/atom,sotayamashita/atom,batjko/atom,dannyflax/atom,rookie125/atom,ObviouslyGreen/atom,FoldingText/atom,yomybaby/atom,transcranial/atom,efatsi/atom,toqz/atom,mrodalgaard/atom,CraZySacX/atom,rxkit/atom,burodepeper/atom,Hasimir/atom,ReddTea/atom,pombredanne/atom,hagb4rd/atom,panuchart/atom,chengky/atom,crazyquark/atom,ralphtheninja/atom,Locke23rus/atom,jjz/atom,hpham04/atom,hharchani/atom,transcranial/atom,jtrose2/atom,n-riesco/atom,hharchani/atom,rmartin/atom,fang-yufeng/atom,mostafaeweda/atom,ali/atom,omarhuanca/atom,Galactix/atom,fredericksilva/atom,GHackAnonymous/atom,devmario/atom,gzzhanghao/atom,codex8/atom,atom/atom,dannyflax/atom,seedtigo/atom,constanzaurzua/atom,toqz/atom,hagb4rd/atom,vinodpanicker/atom,ali/atom,lisonma/atom,vjeux/atom,ppamorim/atom,ali/atom,tony612/atom,Mokolea/atom,kittens/atom,Ju2ender/atom,yomybaby/atom,ReddTea/atom,amine7536/atom,DiogoXRP/atom,AdrianVovk/substance-ide,florianb/atom,ReddTea/atom,MjAbuz/atom,Mokolea/atom,acontreras89/atom,KENJU/atom,Sangaroonaom/atom,john-kelly/atom,Austen-G/BlockBuilder,prembasumatary/atom,G-Baby/atom,Galactix/atom,rmartin/atom,lpommers/atom,champagnez/atom,florianb/atom,Locke23rus/atom,toqz/atom,xream/atom,dsandstrom/atom,oggy/atom,AlexxNica/atom,Huaraz2/atom,jacekkopecky/atom,xream/atom,oggy/atom,Rodjana/atom,NunoEdgarGub1/atom,rsvip/aTom,fang-yufeng/atom,deepfox/atom,dsandstrom/atom,daxlab/atom,helber/atom,me6iaton/atom,constanzaurzua/atom,fang-yufeng/atom,russlescai/atom,chengky/atom,tanin47/atom,yalexx/atom,RuiDGoncalves/atom,mertkahyaoglu/atom,qiujuer/atom,chengky/atom,scv119/atom,daxlab/atom,RuiDGoncalves/atom,ralphtheninja/atom,sekcheong/atom,crazyquark/atom,scippio/atom,rmartin/atom,andrewleverette/atom,ashneo76/atom,SlimeQ/atom,toqz/atom,acontreras89/atom,codex8/atom,prembasumatary/atom,originye/atom,n-riesco/atom,kjav/atom,KENJU/atom,Klozz/atom,anuwat121/atom,lisonma/atom,yangchenghu/atom,omarhuanca/atom,kandros/atom,johnhaley81/atom,synaptek/atom,ivoadf/atom,nvoron23/atom,mostafaeweda/atom,basarat/atom,me6iaton/atom,alfredxing/atom,medovob/atom,prembasumatary/atom,GHackAnonymous/atom,AlbertoBarrago/atom,cyzn/atom,hharchani/atom,ivoadf/atom,medovob/atom,batjko/atom,vhutheesing/atom,jacekkopecky/atom,me6iaton/atom,Jandersoft/atom,stinsonga/atom,woss/atom,florianb/atom,dsandstrom/atom,decaffeinate-examples/atom,yangchenghu/atom,Jandersolutions/atom,me-benni/atom,nvoron23/atom,abcP9110/atom,chengky/atom,targeter21/atom,tanin47/atom,harshdattani/atom,nucked/atom,pombredanne/atom,deepfox/atom,AlexxNica/atom,Sangaroonaom/atom,Jandersolutions/atom,liuxiong332/atom,kjav/atom,nvoron23/atom,bencolon/atom,matthewclendening/atom,helber/atom,synaptek/atom,AlexxNica/atom,gisenberg/atom,mnquintana/atom,omarhuanca/atom,Austen-G/BlockBuilder,sekcheong/atom,ardeshirj/atom,pkdevbox/atom,harshdattani/atom,nrodriguez13/atom,wiggzz/atom,sebmck/atom,Neron-X5/atom,kittens/atom,ali/atom,nucked/atom,vinodpanicker/atom,jjz/atom,nvoron23/atom,Austen-G/BlockBuilder,rlugojr/atom,charleswhchan/atom,codex8/atom,GHackAnonymous/atom,seedtigo/atom,sillvan/atom,devoncarew/atom,Klozz/atom,gabrielPeart/atom,sekcheong/atom,Neron-X5/atom,Dennis1978/atom,palita01/atom,Ju2ender/atom,g2p/atom,jtrose2/atom,jordanbtucker/atom,charleswhchan/atom,acontreras89/atom,sxgao3001/atom,FoldingText/atom,vcarrera/atom,lovesnow/atom,ironbox360/atom,Andrey-Pavlov/atom,Jdesk/atom,kaicataldo/atom,FoldingText/atom,yomybaby/atom,fedorov/atom,dsandstrom/atom,rookie125/atom,hharchani/atom,sillvan/atom,omarhuanca/atom,Jonekee/atom,ashneo76/atom,Shekharrajak/atom,mrodalgaard/atom,Jandersoft/atom,Austen-G/BlockBuilder,Hasimir/atom,bj7/atom,lisonma/atom,jjz/atom,deepfox/atom,tony612/atom,g2p/atom,qiujuer/atom,n-riesco/atom,amine7536/atom,lovesnow/atom,fedorov/atom,batjko/atom,ashneo76/atom,acontreras89/atom,RobinTec/atom,tony612/atom,Neron-X5/atom,panuchart/atom,Ingramz/atom,abcP9110/atom,Andrey-Pavlov/atom,ilovezy/atom,FoldingText/atom,tjkr/atom,YunchengLiao/atom,BogusCurry/atom,Galactix/atom,folpindo/atom,einarmagnus/atom,deoxilix/atom,vjeux/atom,lovesnow/atom,ilovezy/atom,SlimeQ/atom,Hasimir/atom,yalexx/atom,vcarrera/atom,helber/atom,Klozz/atom,toqz/atom,gontadu/atom,xream/atom,gontadu/atom,dijs/atom,kittens/atom,fredericksilva/atom,PKRoma/atom,lovesnow/atom,PKRoma/atom,liuxiong332/atom,john-kelly/atom,niklabh/atom,transcranial/atom,ppamorim/atom,RobinTec/atom,t9md/atom,matthewclendening/atom,qskycolor/atom,liuderchi/atom,harshdattani/atom,Jandersolutions/atom,jordanbtucker/atom,RobinTec/atom,tmunro/atom,prembasumatary/atom,Andrey-Pavlov/atom,Shekharrajak/atom,MjAbuz/atom,MjAbuz/atom,pengshp/atom,bcoe/atom,jacekkopecky/atom,wiggzz/atom,Shekharrajak/atom,YunchengLiao/atom,davideg/atom,NunoEdgarGub1/atom,G-Baby/atom,RobinTec/atom,beni55/atom,boomwaiza/atom,fscherwi/atom,davideg/atom,Rychard/atom,pombredanne/atom,qskycolor/atom,woss/atom,dkfiresky/atom,lpommers/atom,davideg/atom,davideg/atom,kdheepak89/atom,folpindo/atom,andrewleverette/atom,abcP9110/atom,targeter21/atom,vjeux/atom,elkingtonmcb/atom,kjav/atom,basarat/atom,jlord/atom,mnquintana/atom,originye/atom,fscherwi/atom,ilovezy/atom,Jdesk/atom,yalexx/atom,sebmck/atom,Rychard/atom,anuwat121/atom,atom/atom,DiogoXRP/atom,palita01/atom,chengky/atom,burodepeper/atom,ykeisuke/atom,targeter21/atom,devmario/atom,svanharmelen/atom,ironbox360/atom,qskycolor/atom,sebmck/atom,g2p/atom,stuartquin/atom,gzzhanghao/atom,anuwat121/atom,john-kelly/atom,bj7/atom,Rodjana/atom,phord/atom,vhutheesing/atom,basarat/atom,vcarrera/atom,jlord/atom,FoldingText/atom,devoncarew/atom,gisenberg/atom,KENJU/atom,mdumrauf/atom,originye/atom,ppamorim/atom,cyzn/atom,panuchart/atom,Dennis1978/atom,dannyflax/atom,rsvip/aTom,basarat/atom,omarhuanca/atom,kdheepak89/atom,Hasimir/atom,qskycolor/atom,florianb/atom,brumm/atom,vinodpanicker/atom,AlbertoBarrago/atom,Huaraz2/atom,johnrizzo1/atom,burodepeper/atom,Jandersoft/atom,champagnez/atom,bcoe/atom,isghe/atom,sebmck/atom,deepfox/atom,kittens/atom,bolinfest/atom,Rychard/atom,bcoe/atom,yalexx/atom,lisonma/atom,Jandersoft/atom,tmunro/atom,Ingramz/atom,decaffeinate-examples/atom,deepfox/atom,FIT-CSE2410-A-Bombs/atom,sxgao3001/atom,rxkit/atom,fredericksilva/atom,darwin/atom,mrodalgaard/atom,vjeux/atom,Neron-X5/atom,AdrianVovk/substance-ide,scv119/atom,Arcanemagus/atom,Abdillah/atom,russlescai/atom,medovob/atom,Jdesk/atom,oggy/atom,SlimeQ/atom,rsvip/aTom,stuartquin/atom,vinodpanicker/atom,sotayamashita/atom,mostafaeweda/atom,me6iaton/atom,ilovezy/atom,hagb4rd/atom,liuxiong332/atom,kevinrenaers/atom,pombredanne/atom,charleswhchan/atom,niklabh/atom,hpham04/atom,tisu2tisu/atom,ReddTea/atom,sekcheong/atom,alfredxing/atom,jeremyramin/atom,yomybaby/atom,AlisaKiatkongkumthon/atom,ppamorim/atom,jtrose2/atom,yomybaby/atom,crazyquark/atom,nvoron23/atom,kc8wxm/atom,ppamorim/atom,BogusCurry/atom,liuxiong332/atom,me-benni/atom,dkfiresky/atom,jordanbtucker/atom,fedorov/atom,bsmr-x-script/atom,ykeisuke/atom,decaffeinate-examples/atom,mdumrauf/atom,Galactix/atom,liuderchi/atom,Abdillah/atom,mnquintana/atom,atom/atom,constanzaurzua/atom,pengshp/atom,crazyquark/atom,CraZySacX/atom,mertkahyaoglu/atom,rlugojr/atom,hharchani/atom,SlimeQ/atom,tisu2tisu/atom,lpommers/atom,FIT-CSE2410-A-Bombs/atom,GHackAnonymous/atom,fang-yufeng/atom,boomwaiza/atom,stuartquin/atom,sillvan/atom,ykeisuke/atom,sxgao3001/atom,qiujuer/atom,elkingtonmcb/atom,ardeshirj/atom,vjeux/atom,constanzaurzua/atom,devoncarew/atom,Arcanemagus/atom,targeter21/atom,kaicataldo/atom,batjko/atom,cyzn/atom,Jdesk/atom,me-benni/atom,brettle/atom,basarat/atom,kc8wxm/atom,MjAbuz/atom,tony612/atom,qiujuer/atom,palita01/atom,gabrielPeart/atom,fedorov/atom,hellendag/atom,deoxilix/atom,kandros/atom,sebmck/atom,synaptek/atom,kc8wxm/atom,mostafaeweda/atom,oggy/atom,rmartin/atom,devmario/atom,Shekharrajak/atom,vinodpanicker/atom,bsmr-x-script/atom,niklabh/atom,rxkit/atom,Ju2ender/atom,Locke23rus/atom,kdheepak89/atom,jlord/atom,fang-yufeng/atom,dkfiresky/atom,andrewleverette/atom,GHackAnonymous/atom,Jdesk/atom,Abdillah/atom,pengshp/atom,sillvan/atom,qiujuer/atom,yamhon/atom,stinsonga/atom,scv119/atom,acontreras89/atom,brumm/atom,mnquintana/atom,hpham04/atom,Neron-X5/atom,lovesnow/atom,charleswhchan/atom,nucked/atom,SlimeQ/atom,bcoe/atom,rookie125/atom,kdheepak89/atom,kdheepak89/atom,Jonekee/atom,prembasumatary/atom,hpham04/atom,bencolon/atom,Abdillah/atom,pombredanne/atom
coffeescript
## Code Before: app = require 'app' fs = require 'fs' path = require 'path' protocol = require 'protocol' # Handles requests with 'atom' protocol. # # It's created by {AtomApplication} upon instantiation and is used to create a # custom resource loader for 'atom://' URLs. # # The following directories are searched in order: # * ~/.atom/assets # * ~/.atom/dev/packages (unless in safe mode) # * ~/.atom/packages # * RESOURCE_PATH/node_modules # module.exports = class AtomProtocolHandler constructor: (resourcePath, safeMode) -> @loadPaths = [] @dotAtomDirectory = path.join(app.getHomeDir(), '.atom') unless safeMode @loadPaths.push(path.join(@dotAtomDirectory, 'dev', 'packages')) @loadPaths.push(path.join(@dotAtomDirectory, 'packages')) @loadPaths.push(path.join(resourcePath, 'node_modules')) @registerAtomProtocol() # Creates the 'atom' custom protocol handler. registerAtomProtocol: -> protocol.registerProtocol 'atom', (request) => relativePath = path.normalize(request.url.substr(7)) if relativePath.indexOf('assets/') is 0 assetsPath = path.join(@dotAtomDirectory, relativePath) filePath = assetsPath if fs.statSyncNoException(assetsPath).isFile?() unless filePath for loadPath in @loadPaths filePath = path.join(loadPath, relativePath) break if fs.statSyncNoException(filePath).isFile?() new protocol.RequestFileJob(filePath) ## Instruction: Use ATOM_HOME env var in protocol handler Closes #5501 ## Code After: app = require 'app' fs = require 'fs' path = require 'path' protocol = require 'protocol' # Handles requests with 'atom' protocol. # # It's created by {AtomApplication} upon instantiation and is used to create a # custom resource loader for 'atom://' URLs. # # The following directories are searched in order: # * ~/.atom/assets # * ~/.atom/dev/packages (unless in safe mode) # * ~/.atom/packages # * RESOURCE_PATH/node_modules # module.exports = class AtomProtocolHandler constructor: (resourcePath, safeMode) -> @loadPaths = [] unless safeMode @loadPaths.push(path.join(process.env.ATOM_HOME, 'dev', 'packages')) @loadPaths.push(path.join(process.env.ATOM_HOME, 'packages')) @loadPaths.push(path.join(resourcePath, 'node_modules')) @registerAtomProtocol() # Creates the 'atom' custom protocol handler. registerAtomProtocol: -> protocol.registerProtocol 'atom', (request) => relativePath = path.normalize(request.url.substr(7)) if relativePath.indexOf('assets/') is 0 assetsPath = path.join(process.env.ATOM_HOME, relativePath) filePath = assetsPath if fs.statSyncNoException(assetsPath).isFile?() unless filePath for loadPath in @loadPaths filePath = path.join(loadPath, relativePath) break if fs.statSyncNoException(filePath).isFile?() new protocol.RequestFileJob(filePath)
app = require 'app' fs = require 'fs' path = require 'path' protocol = require 'protocol' # Handles requests with 'atom' protocol. # # It's created by {AtomApplication} upon instantiation and is used to create a # custom resource loader for 'atom://' URLs. # # The following directories are searched in order: # * ~/.atom/assets # * ~/.atom/dev/packages (unless in safe mode) # * ~/.atom/packages # * RESOURCE_PATH/node_modules # module.exports = class AtomProtocolHandler constructor: (resourcePath, safeMode) -> @loadPaths = [] - @dotAtomDirectory = path.join(app.getHomeDir(), '.atom') unless safeMode - @loadPaths.push(path.join(@dotAtomDirectory, 'dev', 'packages')) ? ^^ ^ ^^^^^^^^^^^^ + @loadPaths.push(path.join(process.env.ATOM_HOME, 'dev', 'packages')) ? ^^ ^^^^^^^^^ ^^^^^^^^ - @loadPaths.push(path.join(@dotAtomDirectory, 'packages')) + @loadPaths.push(path.join(process.env.ATOM_HOME, 'packages')) @loadPaths.push(path.join(resourcePath, 'node_modules')) @registerAtomProtocol() # Creates the 'atom' custom protocol handler. registerAtomProtocol: -> protocol.registerProtocol 'atom', (request) => relativePath = path.normalize(request.url.substr(7)) if relativePath.indexOf('assets/') is 0 - assetsPath = path.join(@dotAtomDirectory, relativePath) + assetsPath = path.join(process.env.ATOM_HOME, relativePath) filePath = assetsPath if fs.statSyncNoException(assetsPath).isFile?() unless filePath for loadPath in @loadPaths filePath = path.join(loadPath, relativePath) break if fs.statSyncNoException(filePath).isFile?() new protocol.RequestFileJob(filePath)
7
0.155556
3
4
80dbc6f543a6712662607b43df6f884e12e26553
README.md
README.md
[![Build Status](https://travis-ci.org/ameistad/django-template.svg?branch=master)](https://travis-ci.org/ameistad/django-template) [![Updates](https://pyup.io/repos/github/ameistad/django-template/shield.svg)](https://pyup.io/repos/github/ameistad/django-template/) [![Python 3](https://pyup.io/repos/github/ameistad/django-template/python-3-shield.svg)](https://pyup.io/repos/github/ameistad/django-template/) My boilerplate for starting Django projects. - Django 1.11 and Python 3. - PostgreSQL in development and production. - Supports Docker deployment. (Modified from [django-cookiecutter](https://github.com/pydanny/cookiecutter-django)) - Default settings gets A+ ratings on [Mozilla Observatory](https://observatory.mozilla.org) and [Qualys SSL Labs](https://www.ssllabs.com/ssltest/). ## Install Uses [Cookiecutter](https://github.com/audreyr/cookiecutter "Cookiecutter project") for installing. ```sh $ pip install cookiecutter $ cookiecutter https://github.com/ameistad/django-template.git ``` See docs/ in generated project folder for instructions.
[![Build Status](https://travis-ci.org/ameistad/django-template.svg?branch=master)](https://travis-ci.org/ameistad/django-template) [![Updates](https://pyup.io/repos/github/ameistad/django-template/shield.svg)](https://pyup.io/repos/github/ameistad/django-template/) [![Python 3](https://pyup.io/repos/github/ameistad/django-template/python-3-shield.svg)](https://pyup.io/repos/github/ameistad/django-template/) My boilerplate for starting Django projects. - Django 1.11 and Python 3. - PostgreSQL in development and production. - Deploys with Docker and uses [Caddy](https://caddyserver.com/ "Caddy HTTP Server") as a proxy. - Default settings gets A+ ratings on [Mozilla Observatory](https://observatory.mozilla.org). ## Install Uses [Cookiecutter](https://github.com/audreyr/cookiecutter "Cookiecutter project") for installing. ```sh $ pip install cookiecutter $ cookiecutter https://github.com/ameistad/django-template.git ``` See docs/ in generated project folder for instructions.
Update with new deploy config
Update with new deploy config
Markdown
mit
ameistad/amei-django-template,ameistad/dokku-django-template,ameistad/django-template,ameistad/amei-django-template,ameistad/django-template,ameistad/dokku-django-template,ameistad/django-template,ameistad/dokku-django-template,ameistad/amei-django-template,ameistad/amei-django-template
markdown
## Code Before: [![Build Status](https://travis-ci.org/ameistad/django-template.svg?branch=master)](https://travis-ci.org/ameistad/django-template) [![Updates](https://pyup.io/repos/github/ameistad/django-template/shield.svg)](https://pyup.io/repos/github/ameistad/django-template/) [![Python 3](https://pyup.io/repos/github/ameistad/django-template/python-3-shield.svg)](https://pyup.io/repos/github/ameistad/django-template/) My boilerplate for starting Django projects. - Django 1.11 and Python 3. - PostgreSQL in development and production. - Supports Docker deployment. (Modified from [django-cookiecutter](https://github.com/pydanny/cookiecutter-django)) - Default settings gets A+ ratings on [Mozilla Observatory](https://observatory.mozilla.org) and [Qualys SSL Labs](https://www.ssllabs.com/ssltest/). ## Install Uses [Cookiecutter](https://github.com/audreyr/cookiecutter "Cookiecutter project") for installing. ```sh $ pip install cookiecutter $ cookiecutter https://github.com/ameistad/django-template.git ``` See docs/ in generated project folder for instructions. ## Instruction: Update with new deploy config ## Code After: [![Build Status](https://travis-ci.org/ameistad/django-template.svg?branch=master)](https://travis-ci.org/ameistad/django-template) [![Updates](https://pyup.io/repos/github/ameistad/django-template/shield.svg)](https://pyup.io/repos/github/ameistad/django-template/) [![Python 3](https://pyup.io/repos/github/ameistad/django-template/python-3-shield.svg)](https://pyup.io/repos/github/ameistad/django-template/) My boilerplate for starting Django projects. - Django 1.11 and Python 3. - PostgreSQL in development and production. - Deploys with Docker and uses [Caddy](https://caddyserver.com/ "Caddy HTTP Server") as a proxy. - Default settings gets A+ ratings on [Mozilla Observatory](https://observatory.mozilla.org). ## Install Uses [Cookiecutter](https://github.com/audreyr/cookiecutter "Cookiecutter project") for installing. ```sh $ pip install cookiecutter $ cookiecutter https://github.com/ameistad/django-template.git ``` See docs/ in generated project folder for instructions.
[![Build Status](https://travis-ci.org/ameistad/django-template.svg?branch=master)](https://travis-ci.org/ameistad/django-template) [![Updates](https://pyup.io/repos/github/ameistad/django-template/shield.svg)](https://pyup.io/repos/github/ameistad/django-template/) [![Python 3](https://pyup.io/repos/github/ameistad/django-template/python-3-shield.svg)](https://pyup.io/repos/github/ameistad/django-template/) My boilerplate for starting Django projects. - Django 1.11 and Python 3. - PostgreSQL in development and production. - - Supports Docker deployment. (Modified from [django-cookiecutter](https://github.com/pydanny/cookiecutter-django)) + - Deploys with Docker and uses [Caddy](https://caddyserver.com/ "Caddy HTTP Server") as a proxy. - - Default settings gets A+ ratings on [Mozilla Observatory](https://observatory.mozilla.org) and [Qualys SSL Labs](https://www.ssllabs.com/ssltest/). ? ---------------------------------- ---------------------- + - Default settings gets A+ ratings on [Mozilla Observatory](https://observatory.mozilla.org). ## Install Uses [Cookiecutter](https://github.com/audreyr/cookiecutter "Cookiecutter project") for installing. ```sh $ pip install cookiecutter $ cookiecutter https://github.com/ameistad/django-template.git ``` See docs/ in generated project folder for instructions.
4
0.210526
2
2
9a6f976d6914ad90e99ba74f35bbeacbe55b0db7
cms/djangoapps/contentstore/features/video-editor.feature
cms/djangoapps/contentstore/features/video-editor.feature
@shard_3 Feature: CMS.Video Component Editor As a course author, I want to be able to create video components. Scenario: User can view Video metadata Given I have created a Video component And I edit the component Then I see the correct video settings and default values # Safari has trouble saving values on Sauce @skip_safari Scenario: User can modify Video display name Given I have created a Video component And I edit the component Then I can modify the display name And my video display name change is persisted on save # Sauce Labs cannot delete cookies @skip_sauce Scenario: Captions are hidden when "show captions" is false Given I have created a Video component with subtitles And I have set "show captions" to False Then when I view the video it does not show the captions # Sauce Labs cannot delete cookies @skip_sauce Scenario: Captions are shown when "show captions" is true Given I have created a Video component with subtitles And I have set "show captions" to True Then when I view the video it does show the captions
@shard_3 Feature: CMS.Video Component Editor As a course author, I want to be able to create video components. Scenario: User can view Video metadata Given I have created a Video component And I edit the component Then I see the correct video settings and default values # Safari has trouble saving values on Sauce @skip_safari Scenario: User can modify Video display name Given I have created a Video component And I edit the component Then I can modify the display name And my video display name change is persisted on save # Disabling this 10/7/13 due to nondeterministic behavior # in master. The failure seems to occur when YouTube does # not respond quickly enough, so that the video player # doesn't load. # # Sauce Labs cannot delete cookies # @skip_sauce #Scenario: Captions are hidden when "show captions" is false # Given I have created a Video component with subtitles # And I have set "show captions" to False # Then when I view the video it does not show the captions # Sauce Labs cannot delete cookies @skip_sauce Scenario: Captions are shown when "show captions" is true Given I have created a Video component with subtitles And I have set "show captions" to True Then when I view the video it does show the captions
Disable non-deterministic video caption test to get stability on master
Disable non-deterministic video caption test to get stability on master
Cucumber
agpl-3.0
vismartltd/edx-platform,shubhdev/edx-platform,auferack08/edx-platform,franosincic/edx-platform,rismalrv/edx-platform,B-MOOC/edx-platform,chauhanhardik/populo,jolyonb/edx-platform,cognitiveclass/edx-platform,romain-li/edx-platform,raccoongang/edx-platform,shubhdev/edx-platform,ZLLab-Mooc/edx-platform,solashirai/edx-platform,shashank971/edx-platform,procangroup/edx-platform,dkarakats/edx-platform,kxliugang/edx-platform,edry/edx-platform,TeachAtTUM/edx-platform,hastexo/edx-platform,dsajkl/123,fly19890211/edx-platform,Softmotions/edx-platform,olexiim/edx-platform,mjirayu/sit_academy,kxliugang/edx-platform,zadgroup/edx-platform,CourseTalk/edx-platform,xinjiguaike/edx-platform,cselis86/edx-platform,philanthropy-u/edx-platform,EDUlib/edx-platform,angelapper/edx-platform,cpennington/edx-platform,motion2015/edx-platform,atsolakid/edx-platform,zerobatu/edx-platform,IndonesiaX/edx-platform,fly19890211/edx-platform,nanolearningllc/edx-platform-cypress,y12uc231/edx-platform,motion2015/edx-platform,nikolas/edx-platform,CourseTalk/edx-platform,hmcmooc/muddx-platform,zofuthan/edx-platform,CredoReference/edx-platform,jamesblunt/edx-platform,jamiefolsom/edx-platform,chand3040/cloud_that,Endika/edx-platform,apigee/edx-platform,deepsrijit1105/edx-platform,shurihell/testasia,hastexo/edx-platform,eestay/edx-platform,ovnicraft/edx-platform,shurihell/testasia,J861449197/edx-platform,bdero/edx-platform,alu042/edx-platform,chand3040/cloud_that,arifsetiawan/edx-platform,jruiperezv/ANALYSE,Lektorium-LLC/edx-platform,eestay/edx-platform,procangroup/edx-platform,nttks/jenkins-test,inares/edx-platform,dkarakats/edx-platform,jruiperezv/ANALYSE,LearnEra/LearnEraPlaftform,benpatterson/edx-platform,ahmadio/edx-platform,deepsrijit1105/edx-platform,shashank971/edx-platform,stvstnfrd/edx-platform,jolyonb/edx-platform,Semi-global/edx-platform,MSOpenTech/edx-platform,pabloborrego93/edx-platform,etzhou/edx-platform,cyanna/edx-platform,cselis86/edx-platform,jelugbo/tundex,mtlchun/edx,teltek/edx-platform,RPI-OPENEDX/edx-platform,louyihua/edx-platform,mushtaqak/edx-platform,zofuthan/edx-platform,devs1991/test_edx_docmode,sudheerchintala/LearnEraPlatForm,edry/edx-platform,doganov/edx-platform,analyseuc3m/ANALYSE-v1,DefyVentures/edx-platform,MSOpenTech/edx-platform,vasyarv/edx-platform,zubair-arbi/edx-platform,zubair-arbi/edx-platform,ZLLab-Mooc/edx-platform,jonathan-beard/edx-platform,beni55/edx-platform,tiagochiavericosta/edx-platform,nagyistoce/edx-platform,beacloudgenius/edx-platform,Kalyzee/edx-platform,mcgachey/edx-platform,itsjeyd/edx-platform,Endika/edx-platform,ampax/edx-platform-backup,rismalrv/edx-platform,rhndg/openedx,cognitiveclass/edx-platform,zofuthan/edx-platform,jelugbo/tundex,mbareta/edx-platform-ft,tiagochiavericosta/edx-platform,amir-qayyum-khan/edx-platform,knehez/edx-platform,martynovp/edx-platform,wwj718/edx-platform,jamiefolsom/edx-platform,defance/edx-platform,fintech-circle/edx-platform,cecep-edu/edx-platform,mbareta/edx-platform-ft,tanmaykm/edx-platform,synergeticsedx/deployment-wipro,stvstnfrd/edx-platform,jazkarta/edx-platform,doganov/edx-platform,jruiperezv/ANALYSE,ak2703/edx-platform,philanthropy-u/edx-platform,jazkarta/edx-platform-for-isc,JioEducation/edx-platform,halvertoluke/edx-platform,edx/edx-platform,bitifirefly/edx-platform,mushtaqak/edx-platform,kamalx/edx-platform,shubhdev/edx-platform,doismellburning/edx-platform,bigdatauniversity/edx-platform,vikas1885/test1,ESOedX/edx-platform,proversity-org/edx-platform,UOMx/edx-platform,jazztpt/edx-platform,shabab12/edx-platform,carsongee/edx-platform,hastexo/edx-platform,AkA84/edx-platform,antonve/s4-project-mooc,jbzdak/edx-platform,yokose-ks/edx-platform,edx-solutions/edx-platform,xuxiao19910803/edx-platform,pomegranited/edx-platform,ovnicraft/edx-platform,J861449197/edx-platform,rismalrv/edx-platform,sameetb-cuelogic/edx-platform-test,alu042/edx-platform,alu042/edx-platform,zhenzhai/edx-platform,andyzsf/edx,raccoongang/edx-platform,carsongee/edx-platform,ovnicraft/edx-platform,Ayub-Khan/edx-platform,sameetb-cuelogic/edx-platform-test,10clouds/edx-platform,hamzehd/edx-platform,Livit/Livit.Learn.EdX,wwj718/edx-platform,rue89-tech/edx-platform,sudheerchintala/LearnEraPlatForm,raccoongang/edx-platform,ZLLab-Mooc/edx-platform,cecep-edu/edx-platform,cselis86/edx-platform,halvertoluke/edx-platform,Edraak/edx-platform,shurihell/testasia,antoviaque/edx-platform,alexthered/kienhoc-platform,Softmotions/edx-platform,ahmadiga/min_edx,procangroup/edx-platform,AkA84/edx-platform,zhenzhai/edx-platform,utecuy/edx-platform,jbzdak/edx-platform,beni55/edx-platform,chudaol/edx-platform,don-github/edx-platform,cselis86/edx-platform,kmoocdev2/edx-platform,ampax/edx-platform,playm2mboy/edx-platform,don-github/edx-platform,fintech-circle/edx-platform,procangroup/edx-platform,Shrhawk/edx-platform,valtech-mooc/edx-platform,yokose-ks/edx-platform,DNFcode/edx-platform,Kalyzee/edx-platform,ahmedaljazzar/edx-platform,Edraak/edraak-platform,ampax/edx-platform-backup,xingyepei/edx-platform,morenopc/edx-platform,jazkarta/edx-platform,edry/edx-platform,miptliot/edx-platform,4eek/edx-platform,mitocw/edx-platform,eduNEXT/edunext-platform,polimediaupv/edx-platform,benpatterson/edx-platform,inares/edx-platform,unicri/edx-platform,chauhanhardik/populo,eestay/edx-platform,LearnEra/LearnEraPlaftform,zerobatu/edx-platform,gymnasium/edx-platform,vasyarv/edx-platform,nttks/edx-platform,iivic/BoiseStateX,SivilTaram/edx-platform,Softmotions/edx-platform,iivic/BoiseStateX,ampax/edx-platform-backup,xuxiao19910803/edx,DNFcode/edx-platform,antonve/s4-project-mooc,chand3040/cloud_that,DNFcode/edx-platform,mahendra-r/edx-platform,jzoldak/edx-platform,motion2015/edx-platform,bdero/edx-platform,Ayub-Khan/edx-platform,chand3040/cloud_that,romain-li/edx-platform,don-github/edx-platform,prarthitm/edxplatform,doismellburning/edx-platform,pomegranited/edx-platform,appliedx/edx-platform,torchingloom/edx-platform,morenopc/edx-platform,UXE/local-edx,fly19890211/edx-platform,wwj718/ANALYSE,appliedx/edx-platform,naresh21/synergetics-edx-platform,ferabra/edx-platform,motion2015/edx-platform,doismellburning/edx-platform,zadgroup/edx-platform,nanolearning/edx-platform,nanolearningllc/edx-platform-cypress,Livit/Livit.Learn.EdX,bitifirefly/edx-platform,zerobatu/edx-platform,hmcmooc/muddx-platform,nttks/edx-platform,mahendra-r/edx-platform,carsongee/edx-platform,longmen21/edx-platform,Kalyzee/edx-platform,motion2015/a3,hkawasaki/kawasaki-aio8-1,CourseTalk/edx-platform,eemirtekin/edx-platform,wwj718/ANALYSE,bigdatauniversity/edx-platform,JioEducation/edx-platform,hkawasaki/kawasaki-aio8-0,motion2015/edx-platform,louyihua/edx-platform,rue89-tech/edx-platform,devs1991/test_edx_docmode,etzhou/edx-platform,ferabra/edx-platform,kxliugang/edx-platform,kamalx/edx-platform,tanmaykm/edx-platform,shubhdev/edxOnBaadal,rhndg/openedx,dkarakats/edx-platform,rhndg/openedx,halvertoluke/edx-platform,kursitet/edx-platform,devs1991/test_edx_docmode,dsajkl/reqiop,SravanthiSinha/edx-platform,B-MOOC/edx-platform,nanolearning/edx-platform,arbrandes/edx-platform,inares/edx-platform,Lektorium-LLC/edx-platform,beacloudgenius/edx-platform,jzoldak/edx-platform,mitocw/edx-platform,jamesblunt/edx-platform,zofuthan/edx-platform,a-parhom/edx-platform,benpatterson/edx-platform,valtech-mooc/edx-platform,wwj718/ANALYSE,abdoosh00/edraak,WatanabeYasumasa/edx-platform,naresh21/synergetics-edx-platform,SravanthiSinha/edx-platform,pelikanchik/edx-platform,prarthitm/edxplatform,nttks/edx-platform,devs1991/test_edx_docmode,rue89-tech/edx-platform,tanmaykm/edx-platform,kursitet/edx-platform,hkawasaki/kawasaki-aio8-0,hamzehd/edx-platform,DefyVentures/edx-platform,Semi-global/edx-platform,miptliot/edx-platform,abdoosh00/edx-rtl-final,vismartltd/edx-platform,pelikanchik/edx-platform,chauhanhardik/populo_2,shubhdev/edxOnBaadal,eemirtekin/edx-platform,JCBarahona/edX,appsembler/edx-platform,hkawasaki/kawasaki-aio8-1,msegado/edx-platform,Edraak/edraak-platform,shashank971/edx-platform,eduNEXT/edunext-platform,Semi-global/edx-platform,torchingloom/edx-platform,shabab12/edx-platform,B-MOOC/edx-platform,sudheerchintala/LearnEraPlatForm,alexthered/kienhoc-platform,xinjiguaike/edx-platform,xuxiao19910803/edx,TeachAtTUM/edx-platform,devs1991/test_edx_docmode,jswope00/griffinx,auferack08/edx-platform,longmen21/edx-platform,dsajkl/123,xuxiao19910803/edx,iivic/BoiseStateX,hkawasaki/kawasaki-aio8-2,arifsetiawan/edx-platform,UXE/local-edx,mjirayu/sit_academy,peterm-itr/edx-platform,LICEF/edx-platform,itsjeyd/edx-platform,AkA84/edx-platform,tiagochiavericosta/edx-platform,franosincic/edx-platform,xuxiao19910803/edx,jzoldak/edx-platform,ovnicraft/edx-platform,vismartltd/edx-platform,cyanna/edx-platform,Edraak/circleci-edx-platform,jbassen/edx-platform,knehez/edx-platform,Edraak/circleci-edx-platform,MakeHer/edx-platform,franosincic/edx-platform,JCBarahona/edX,kursitet/edx-platform,SravanthiSinha/edx-platform,wwj718/ANALYSE,nttks/edx-platform,antonve/s4-project-mooc,kmoocdev/edx-platform,jonathan-beard/edx-platform,AkA84/edx-platform,wwj718/edx-platform,nanolearningllc/edx-platform-cypress-2,jazkarta/edx-platform,morenopc/edx-platform,Unow/edx-platform,devs1991/test_edx_docmode,gymnasium/edx-platform,shubhdev/openedx,mahendra-r/edx-platform,abdoosh00/edraak,nikolas/edx-platform,torchingloom/edx-platform,mitocw/edx-platform,etzhou/edx-platform,Lektorium-LLC/edx-platform,caesar2164/edx-platform,peterm-itr/edx-platform,eduNEXT/edx-platform,cecep-edu/edx-platform,nanolearningllc/edx-platform-cypress-2,appsembler/edx-platform,zubair-arbi/edx-platform,DefyVentures/edx-platform,prarthitm/edxplatform,eemirtekin/edx-platform,olexiim/edx-platform,openfun/edx-platform,nanolearningllc/edx-platform-cypress-2,mbareta/edx-platform-ft,rismalrv/edx-platform,caesar2164/edx-platform,don-github/edx-platform,jswope00/GAI,caesar2164/edx-platform,teltek/edx-platform,JCBarahona/edX,philanthropy-u/edx-platform,naresh21/synergetics-edx-platform,amir-qayyum-khan/edx-platform,hmcmooc/muddx-platform,ampax/edx-platform-backup,simbs/edx-platform,chudaol/edx-platform,TeachAtTUM/edx-platform,proversity-org/edx-platform,DNFcode/edx-platform,proversity-org/edx-platform,antonve/s4-project-mooc,edx-solutions/edx-platform,bitifirefly/edx-platform,mcgachey/edx-platform,J861449197/edx-platform,zadgroup/edx-platform,SravanthiSinha/edx-platform,jamesblunt/edx-platform,jswope00/GAI,zubair-arbi/edx-platform,nanolearningllc/edx-platform-cypress,Stanford-Online/edx-platform,RPI-OPENEDX/edx-platform,synergeticsedx/deployment-wipro,AkA84/edx-platform,pelikanchik/edx-platform,Edraak/edx-platform,fly19890211/edx-platform,kmoocdev2/edx-platform,jonathan-beard/edx-platform,ubc/edx-platform,shurihell/testasia,chrisndodge/edx-platform,rhndg/openedx,hkawasaki/kawasaki-aio8-2,doismellburning/edx-platform,dcosentino/edx-platform,mjg2203/edx-platform-seas,longmen21/edx-platform,arifsetiawan/edx-platform,mtlchun/edx,hamzehd/edx-platform,TsinghuaX/edx-platform,Lektorium-LLC/edx-platform,a-parhom/edx-platform,nttks/edx-platform,kmoocdev2/edx-platform,ferabra/edx-platform,adoosii/edx-platform,zadgroup/edx-platform,zadgroup/edx-platform,utecuy/edx-platform,jamiefolsom/edx-platform,4eek/edx-platform,mtlchun/edx,fintech-circle/edx-platform,LearnEra/LearnEraPlaftform,longmen21/edx-platform,hmcmooc/muddx-platform,antoviaque/edx-platform,WatanabeYasumasa/edx-platform,Ayub-Khan/edx-platform,Kalyzee/edx-platform,ZLLab-Mooc/edx-platform,arifsetiawan/edx-platform,MakeHer/edx-platform,wwj718/edx-platform,leansoft/edx-platform,IndonesiaX/edx-platform,shubhdev/openedx,eduNEXT/edx-platform,martynovp/edx-platform,shabab12/edx-platform,mushtaqak/edx-platform,analyseuc3m/ANALYSE-v1,jswope00/griffinx,alexthered/kienhoc-platform,OmarIthawi/edx-platform,openfun/edx-platform,shubhdev/edxOnBaadal,kmoocdev/edx-platform,jbassen/edx-platform,ubc/edx-platform,stvstnfrd/edx-platform,bigdatauniversity/edx-platform,xuxiao19910803/edx-platform,nanolearningllc/edx-platform-cypress,antonve/s4-project-mooc,IONISx/edx-platform,Shrhawk/edx-platform,TeachAtTUM/edx-platform,jbassen/edx-platform,beni55/edx-platform,xingyepei/edx-platform,jjmiranda/edx-platform,polimediaupv/edx-platform,waheedahmed/edx-platform,zubair-arbi/edx-platform,pepeportela/edx-platform,chand3040/cloud_that,dsajkl/123,nagyistoce/edx-platform,prarthitm/edxplatform,andyzsf/edx,SivilTaram/edx-platform,nanolearningllc/edx-platform-cypress-2,OmarIthawi/edx-platform,arbrandes/edx-platform,stvstnfrd/edx-platform,openfun/edx-platform,benpatterson/edx-platform,jolyonb/edx-platform,cecep-edu/edx-platform,mtlchun/edx,miptliot/edx-platform,mcgachey/edx-platform,chrisndodge/edx-platform,nagyistoce/edx-platform,nanolearningllc/edx-platform-cypress-2,MSOpenTech/edx-platform,kmoocdev/edx-platform,rhndg/openedx,nanolearning/edx-platform,iivic/BoiseStateX,arifsetiawan/edx-platform,xuxiao19910803/edx-platform,tanmaykm/edx-platform,morenopc/edx-platform,zhenzhai/edx-platform,kmoocdev2/edx-platform,edx-solutions/edx-platform,Shrhawk/edx-platform,jbassen/edx-platform,ubc/edx-platform,iivic/BoiseStateX,eestay/edx-platform,polimediaupv/edx-platform,atsolakid/edx-platform,waheedahmed/edx-platform,pku9104038/edx-platform,ahmadiga/min_edx,solashirai/edx-platform,cyanna/edx-platform,UOMx/edx-platform,ampax/edx-platform,yokose-ks/edx-platform,jazkarta/edx-platform-for-isc,chauhanhardik/populo_2,nanolearning/edx-platform,alu042/edx-platform,kxliugang/edx-platform,mjirayu/sit_academy,jazkarta/edx-platform,eduNEXT/edx-platform,DefyVentures/edx-platform,kmoocdev/edx-platform,inares/edx-platform,yokose-ks/edx-platform,cpennington/edx-platform,dkarakats/edx-platform,atsolakid/edx-platform,kamalx/edx-platform,sameetb-cuelogic/edx-platform-test,xuxiao19910803/edx-platform,jolyonb/edx-platform,a-parhom/edx-platform,xinjiguaike/edx-platform,LearnEra/LearnEraPlaftform,WatanabeYasumasa/edx-platform,synergeticsedx/deployment-wipro,Edraak/edx-platform,jswope00/griffinx,romain-li/edx-platform,EDUlib/edx-platform,dcosentino/edx-platform,nttks/jenkins-test,xingyepei/edx-platform,ahmedaljazzar/edx-platform,ahmadio/edx-platform,marcore/edx-platform,mbareta/edx-platform-ft,pelikanchik/edx-platform,knehez/edx-platform,kxliugang/edx-platform,rue89-tech/edx-platform,Edraak/edraak-platform,BehavioralInsightsTeam/edx-platform,hamzehd/edx-platform,zhenzhai/edx-platform,cselis86/edx-platform,edry/edx-platform,JCBarahona/edX,hkawasaki/kawasaki-aio8-2,solashirai/edx-platform,motion2015/a3,lduarte1991/edx-platform,chudaol/edx-platform,jonathan-beard/edx-platform,Shrhawk/edx-platform,jonathan-beard/edx-platform,amir-qayyum-khan/edx-platform,cognitiveclass/edx-platform,jjmiranda/edx-platform,MakeHer/edx-platform,Edraak/edraak-platform,jelugbo/tundex,jazkarta/edx-platform-for-isc,gsehub/edx-platform,cognitiveclass/edx-platform,playm2mboy/edx-platform,OmarIthawi/edx-platform,eestay/edx-platform,DefyVentures/edx-platform,doganov/edx-platform,vismartltd/edx-platform,mjg2203/edx-platform-seas,CourseTalk/edx-platform,leansoft/edx-platform,nikolas/edx-platform,utecuy/edx-platform,ubc/edx-platform,B-MOOC/edx-platform,Softmotions/edx-platform,Unow/edx-platform,shurihell/testasia,shubhdev/openedx,pepeportela/edx-platform,MakeHer/edx-platform,y12uc231/edx-platform,SivilTaram/edx-platform,RPI-OPENEDX/edx-platform,MakeHer/edx-platform,hkawasaki/kawasaki-aio8-0,zofuthan/edx-platform,benpatterson/edx-platform,appsembler/edx-platform,BehavioralInsightsTeam/edx-platform,openfun/edx-platform,bdero/edx-platform,hkawasaki/kawasaki-aio8-1,ahmedaljazzar/edx-platform,pku9104038/edx-platform,openfun/edx-platform,miptliot/edx-platform,itsjeyd/edx-platform,doismellburning/edx-platform,andyzsf/edx,angelapper/edx-platform,jswope00/GAI,analyseuc3m/ANALYSE-v1,defance/edx-platform,bitifirefly/edx-platform,gymnasium/edx-platform,LICEF/edx-platform,4eek/edx-platform,Edraak/edx-platform,cyanna/edx-platform,marcore/edx-platform,fly19890211/edx-platform,eduNEXT/edunext-platform,doganov/edx-platform,chrisndodge/edx-platform,kmoocdev2/edx-platform,gsehub/edx-platform,Edraak/edx-platform,SivilTaram/edx-platform,J861449197/edx-platform,wwj718/ANALYSE,martynovp/edx-platform,antoviaque/edx-platform,a-parhom/edx-platform,bitifirefly/edx-platform,longmen21/edx-platform,angelapper/edx-platform,chrisndodge/edx-platform,SivilTaram/edx-platform,tiagochiavericosta/edx-platform,appsembler/edx-platform,dsajkl/reqiop,jazztpt/edx-platform,mushtaqak/edx-platform,ahmadio/edx-platform,Unow/edx-platform,jazztpt/edx-platform,RPI-OPENEDX/edx-platform,wwj718/edx-platform,simbs/edx-platform,pabloborrego93/edx-platform,abdoosh00/edx-rtl-final,jamiefolsom/edx-platform,gsehub/edx-platform,bigdatauniversity/edx-platform,halvertoluke/edx-platform,dsajkl/123,ahmedaljazzar/edx-platform,peterm-itr/edx-platform,devs1991/test_edx_docmode,ubc/edx-platform,ak2703/edx-platform,beacloudgenius/edx-platform,tiagochiavericosta/edx-platform,beni55/edx-platform,chauhanhardik/populo,abdoosh00/edx-rtl-final,yokose-ks/edx-platform,dsajkl/123,shashank971/edx-platform,rismalrv/edx-platform,vasyarv/edx-platform,kamalx/edx-platform,IndonesiaX/edx-platform,dsajkl/reqiop,BehavioralInsightsTeam/edx-platform,IONISx/edx-platform,eemirtekin/edx-platform,hkawasaki/kawasaki-aio8-0,LICEF/edx-platform,ESOedX/edx-platform,sameetb-cuelogic/edx-platform-test,sudheerchintala/LearnEraPlatForm,olexiim/edx-platform,utecuy/edx-platform,chauhanhardik/populo,analyseuc3m/ANALYSE-v1,chauhanhardik/populo_2,martynovp/edx-platform,4eek/edx-platform,bdero/edx-platform,waheedahmed/edx-platform,romain-li/edx-platform,Ayub-Khan/edx-platform,knehez/edx-platform,chauhanhardik/populo_2,andyzsf/edx,y12uc231/edx-platform,Livit/Livit.Learn.EdX,arbrandes/edx-platform,jazkarta/edx-platform-for-isc,shashank971/edx-platform,10clouds/edx-platform,jelugbo/tundex,UOMx/edx-platform,nanolearningllc/edx-platform-cypress,nttks/jenkins-test,vismartltd/edx-platform,bigdatauniversity/edx-platform,franosincic/edx-platform,fintech-circle/edx-platform,jruiperezv/ANALYSE,dcosentino/edx-platform,deepsrijit1105/edx-platform,gymnasium/edx-platform,adoosii/edx-platform,Semi-global/edx-platform,mcgachey/edx-platform,ahmadio/edx-platform,raccoongang/edx-platform,ampax/edx-platform-backup,devs1991/test_edx_docmode,pabloborrego93/edx-platform,chauhanhardik/populo,chauhanhardik/populo_2,UOMx/edx-platform,BehavioralInsightsTeam/edx-platform,B-MOOC/edx-platform,abdoosh00/edx-rtl-final,edx/edx-platform,franosincic/edx-platform,OmarIthawi/edx-platform,pomegranited/edx-platform,beacloudgenius/edx-platform,pomegranited/edx-platform,peterm-itr/edx-platform,alexthered/kienhoc-platform,xuxiao19910803/edx,unicri/edx-platform,hastexo/edx-platform,jbzdak/edx-platform,IndonesiaX/edx-platform,sameetb-cuelogic/edx-platform-test,utecuy/edx-platform,UXE/local-edx,ahmadio/edx-platform,xuxiao19910803/edx-platform,chudaol/edx-platform,deepsrijit1105/edx-platform,jbzdak/edx-platform,jjmiranda/edx-platform,nanolearning/edx-platform,IONISx/edx-platform,nikolas/edx-platform,RPI-OPENEDX/edx-platform,pepeportela/edx-platform,angelapper/edx-platform,valtech-mooc/edx-platform,vikas1885/test1,jjmiranda/edx-platform,ak2703/edx-platform,CredoReference/edx-platform,4eek/edx-platform,teltek/edx-platform,dcosentino/edx-platform,xingyepei/edx-platform,UXE/local-edx,ahmadiga/min_edx,simbs/edx-platform,motion2015/a3,defance/edx-platform,kursitet/edx-platform,naresh21/synergetics-edx-platform,zerobatu/edx-platform,mjg2203/edx-platform-seas,dcosentino/edx-platform,itsjeyd/edx-platform,martynovp/edx-platform,mjirayu/sit_academy,Edraak/circleci-edx-platform,doganov/edx-platform,valtech-mooc/edx-platform,unicri/edx-platform,ampax/edx-platform,EDUlib/edx-platform,dkarakats/edx-platform,arbrandes/edx-platform,carsongee/edx-platform,xingyepei/edx-platform,pomegranited/edx-platform,JioEducation/edx-platform,jbzdak/edx-platform,zhenzhai/edx-platform,Semi-global/edx-platform,kamalx/edx-platform,hkawasaki/kawasaki-aio8-1,valtech-mooc/edx-platform,lduarte1991/edx-platform,Unow/edx-platform,Softmotions/edx-platform,mahendra-r/edx-platform,nagyistoce/edx-platform,unicri/edx-platform,atsolakid/edx-platform,10clouds/edx-platform,apigee/edx-platform,jswope00/GAI,Endika/edx-platform,ak2703/edx-platform,marcore/edx-platform,jazkarta/edx-platform,IndonesiaX/edx-platform,shubhdev/edx-platform,torchingloom/edx-platform,Ayub-Khan/edx-platform,TsinghuaX/edx-platform,jswope00/griffinx,Stanford-Online/edx-platform,waheedahmed/edx-platform,cyanna/edx-platform,nttks/jenkins-test,MSOpenTech/edx-platform,adoosii/edx-platform,edx/edx-platform,alexthered/kienhoc-platform,TsinghuaX/edx-platform,ahmadiga/min_edx,solashirai/edx-platform,adoosii/edx-platform,jazkarta/edx-platform-for-isc,halvertoluke/edx-platform,10clouds/edx-platform,polimediaupv/edx-platform,appliedx/edx-platform,Shrhawk/edx-platform,synergeticsedx/deployment-wipro,kursitet/edx-platform,ovnicraft/edx-platform,gsehub/edx-platform,EDUlib/edx-platform,mjg2203/edx-platform-seas,playm2mboy/edx-platform,apigee/edx-platform,olexiim/edx-platform,JioEducation/edx-platform,Kalyzee/edx-platform,ferabra/edx-platform,knehez/edx-platform,mjirayu/sit_academy,solashirai/edx-platform,hamzehd/edx-platform,eduNEXT/edunext-platform,nttks/jenkins-test,eduNEXT/edx-platform,jamesblunt/edx-platform,vikas1885/test1,nikolas/edx-platform,motion2015/a3,lduarte1991/edx-platform,antoviaque/edx-platform,abdoosh00/edraak,LICEF/edx-platform,jamiefolsom/edx-platform,kmoocdev/edx-platform,jelugbo/tundex,caesar2164/edx-platform,msegado/edx-platform,shubhdev/edxOnBaadal,edry/edx-platform,shubhdev/edx-platform,JCBarahona/edX,pabloborrego93/edx-platform,motion2015/a3,marcore/edx-platform,mushtaqak/edx-platform,Stanford-Online/edx-platform,eemirtekin/edx-platform,romain-li/edx-platform,zerobatu/edx-platform,DNFcode/edx-platform,appliedx/edx-platform,dsajkl/reqiop,olexiim/edx-platform,atsolakid/edx-platform,jzoldak/edx-platform,simbs/edx-platform,vikas1885/test1,jswope00/griffinx,Livit/Livit.Learn.EdX,simbs/edx-platform,philanthropy-u/edx-platform,ESOedX/edx-platform,mtlchun/edx,auferack08/edx-platform,beni55/edx-platform,ESOedX/edx-platform,jazztpt/edx-platform,hkawasaki/kawasaki-aio8-2,msegado/edx-platform,defance/edx-platform,jbassen/edx-platform,teltek/edx-platform,apigee/edx-platform,vikas1885/test1,shabab12/edx-platform,edx/edx-platform,msegado/edx-platform,adoosii/edx-platform,mitocw/edx-platform,pku9104038/edx-platform,louyihua/edx-platform,ampax/edx-platform,abdoosh00/edraak,unicri/edx-platform,msegado/edx-platform,beacloudgenius/edx-platform,leansoft/edx-platform,cecep-edu/edx-platform,Edraak/circleci-edx-platform,appliedx/edx-platform,MSOpenTech/edx-platform,rue89-tech/edx-platform,vasyarv/edx-platform,WatanabeYasumasa/edx-platform,TsinghuaX/edx-platform,edx-solutions/edx-platform,LICEF/edx-platform,J861449197/edx-platform,y12uc231/edx-platform,IONISx/edx-platform,vasyarv/edx-platform,y12uc231/edx-platform,Stanford-Online/edx-platform,shubhdev/openedx,leansoft/edx-platform,nagyistoce/edx-platform,ak2703/edx-platform,louyihua/edx-platform,CredoReference/edx-platform,morenopc/edx-platform,ZLLab-Mooc/edx-platform,ahmadiga/min_edx,ferabra/edx-platform,chudaol/edx-platform,waheedahmed/edx-platform,jamesblunt/edx-platform,jazztpt/edx-platform,CredoReference/edx-platform,pepeportela/edx-platform,pku9104038/edx-platform,polimediaupv/edx-platform,proversity-org/edx-platform,Endika/edx-platform,Edraak/circleci-edx-platform,mahendra-r/edx-platform,etzhou/edx-platform,SravanthiSinha/edx-platform,etzhou/edx-platform,lduarte1991/edx-platform,leansoft/edx-platform,amir-qayyum-khan/edx-platform,shubhdev/openedx,xinjiguaike/edx-platform,cognitiveclass/edx-platform,cpennington/edx-platform,don-github/edx-platform,shubhdev/edxOnBaadal,jruiperezv/ANALYSE,playm2mboy/edx-platform,xinjiguaike/edx-platform,auferack08/edx-platform,torchingloom/edx-platform,IONISx/edx-platform,inares/edx-platform,playm2mboy/edx-platform,cpennington/edx-platform,mcgachey/edx-platform
cucumber
## Code Before: @shard_3 Feature: CMS.Video Component Editor As a course author, I want to be able to create video components. Scenario: User can view Video metadata Given I have created a Video component And I edit the component Then I see the correct video settings and default values # Safari has trouble saving values on Sauce @skip_safari Scenario: User can modify Video display name Given I have created a Video component And I edit the component Then I can modify the display name And my video display name change is persisted on save # Sauce Labs cannot delete cookies @skip_sauce Scenario: Captions are hidden when "show captions" is false Given I have created a Video component with subtitles And I have set "show captions" to False Then when I view the video it does not show the captions # Sauce Labs cannot delete cookies @skip_sauce Scenario: Captions are shown when "show captions" is true Given I have created a Video component with subtitles And I have set "show captions" to True Then when I view the video it does show the captions ## Instruction: Disable non-deterministic video caption test to get stability on master ## Code After: @shard_3 Feature: CMS.Video Component Editor As a course author, I want to be able to create video components. Scenario: User can view Video metadata Given I have created a Video component And I edit the component Then I see the correct video settings and default values # Safari has trouble saving values on Sauce @skip_safari Scenario: User can modify Video display name Given I have created a Video component And I edit the component Then I can modify the display name And my video display name change is persisted on save # Disabling this 10/7/13 due to nondeterministic behavior # in master. The failure seems to occur when YouTube does # not respond quickly enough, so that the video player # doesn't load. # # Sauce Labs cannot delete cookies # @skip_sauce #Scenario: Captions are hidden when "show captions" is false # Given I have created a Video component with subtitles # And I have set "show captions" to False # Then when I view the video it does not show the captions # Sauce Labs cannot delete cookies @skip_sauce Scenario: Captions are shown when "show captions" is true Given I have created a Video component with subtitles And I have set "show captions" to True Then when I view the video it does show the captions
@shard_3 Feature: CMS.Video Component Editor As a course author, I want to be able to create video components. Scenario: User can view Video metadata Given I have created a Video component And I edit the component Then I see the correct video settings and default values # Safari has trouble saving values on Sauce @skip_safari Scenario: User can modify Video display name Given I have created a Video component And I edit the component Then I can modify the display name And my video display name change is persisted on save + # Disabling this 10/7/13 due to nondeterministic behavior + # in master. The failure seems to occur when YouTube does + # not respond quickly enough, so that the video player + # doesn't load. + # # Sauce Labs cannot delete cookies - @skip_sauce + # @skip_sauce ? +++ - Scenario: Captions are hidden when "show captions" is false + #Scenario: Captions are hidden when "show captions" is false ? + - Given I have created a Video component with subtitles + # Given I have created a Video component with subtitles ? + - And I have set "show captions" to False + # And I have set "show captions" to False ? + - Then when I view the video it does not show the captions + # Then when I view the video it does not show the captions ? + # Sauce Labs cannot delete cookies @skip_sauce Scenario: Captions are shown when "show captions" is true Given I have created a Video component with subtitles And I have set "show captions" to True Then when I view the video it does show the captions
15
0.5
10
5
694772d80f3a8b014c56820d3312f18b5fc49442
site/components/StaticHTMLBlock.js
site/components/StaticHTMLBlock.js
import React from 'react'; import CodeBlock from './CodeBlock'; export default class StaticHTMLBlock { static propTypes = { html: React.PropTypes.string.isRequired }; render() { const { html } = this.props; // Here goes a really hack-ish way to convert // areas separated by Markdown <hr>s into code tabs. const blocks = html.split('<hr/>'); const elements = []; let es5Content = null; let es6Content = null; let es7Content = null; for (let i = 0; i < blocks.length; i++) { const content = blocks[i]; switch (i % 4) { case 0: elements.push( <div key={i} dangerouslySetInnerHTML={{__html: content}} /> ); break; case 1: es5Content = content; break; case 2: es6Content = content; break; case 3: es7Content = content; elements.push( <CodeBlock key={i} es5={es5Content} es6={es6Content} es7={es7Content} /> ); break; } } return ( <div> {elements} </div> ); } }
import React from 'react'; import CodeBlock from './CodeBlock'; export default class StaticHTMLBlock { static propTypes = { html: React.PropTypes.string.isRequired }; render() { const { html } = this.props; // Here goes a really hack-ish way to convert // areas separated by Markdown <hr>s into code tabs. const blocks = html.split('<hr/>'); const elements = []; let es5Content = null; let es6Content = null; let es7Content = null; for (let i = 0; i < blocks.length; i++) { const content = blocks[i]; switch (i % 4) { case 0: elements.push( <div key={i} style={{ width: '100%' }} dangerouslySetInnerHTML={{__html: content}} /> ); break; case 1: es5Content = content; break; case 2: es6Content = content; break; case 3: es7Content = content; elements.push( <CodeBlock key={i} es5={es5Content} es6={es6Content} es7={es7Content} /> ); break; } } return ( <div style={{ width: '100%' }}> {elements} </div> ); } }
Fix doc styles in Firefox
Fix doc styles in Firefox
JavaScript
mit
cesarandreu/react-dnd,jgable/react-dnd,arnif/react-dnd,jowcy/react-dnd,nagaozen/react-dnd,zetkin/react-dnd,Reggino/react-dnd,globexdesigns/react-dnd,colbyr/react-dnd,pairyo/react-dnd,wagonhq/react-dnd,numso/react-dnd,nickknw/react-dnd,konce/react-dnd,tomulin1/react-dnd,craigklem/react-dnd,wagonhq/react-dnd,arnif/react-dnd,hiddentao/react-dnd,Reggino/react-dnd,globexdesigns/react-dnd,nickknw/react-dnd,konce/react-dnd,randrianov/react-dnd,hiddentao/react-dnd,tomulin1/react-dnd,pairyo/react-dnd,srajko/react-dnd,ntdb/react-dnd,nagaozen/react-dnd,jowcy/react-dnd,srajko/react-dnd,tylercollier/react-dnd-demo,numso/react-dnd,cesarandreu/react-dnd,zetkin/react-dnd,longlho/react-dnd,randrianov/react-dnd,jgable/react-dnd,colbyr/react-dnd,craigklem/react-dnd,tylercollier/react-dnd-demo,longlho/react-dnd,ntdb/react-dnd
javascript
## Code Before: import React from 'react'; import CodeBlock from './CodeBlock'; export default class StaticHTMLBlock { static propTypes = { html: React.PropTypes.string.isRequired }; render() { const { html } = this.props; // Here goes a really hack-ish way to convert // areas separated by Markdown <hr>s into code tabs. const blocks = html.split('<hr/>'); const elements = []; let es5Content = null; let es6Content = null; let es7Content = null; for (let i = 0; i < blocks.length; i++) { const content = blocks[i]; switch (i % 4) { case 0: elements.push( <div key={i} dangerouslySetInnerHTML={{__html: content}} /> ); break; case 1: es5Content = content; break; case 2: es6Content = content; break; case 3: es7Content = content; elements.push( <CodeBlock key={i} es5={es5Content} es6={es6Content} es7={es7Content} /> ); break; } } return ( <div> {elements} </div> ); } } ## Instruction: Fix doc styles in Firefox ## Code After: import React from 'react'; import CodeBlock from './CodeBlock'; export default class StaticHTMLBlock { static propTypes = { html: React.PropTypes.string.isRequired }; render() { const { html } = this.props; // Here goes a really hack-ish way to convert // areas separated by Markdown <hr>s into code tabs. const blocks = html.split('<hr/>'); const elements = []; let es5Content = null; let es6Content = null; let es7Content = null; for (let i = 0; i < blocks.length; i++) { const content = blocks[i]; switch (i % 4) { case 0: elements.push( <div key={i} style={{ width: '100%' }} dangerouslySetInnerHTML={{__html: content}} /> ); break; case 1: es5Content = content; break; case 2: es6Content = content; break; case 3: es7Content = content; elements.push( <CodeBlock key={i} es5={es5Content} es6={es6Content} es7={es7Content} /> ); break; } } return ( <div style={{ width: '100%' }}> {elements} </div> ); } }
import React from 'react'; import CodeBlock from './CodeBlock'; export default class StaticHTMLBlock { static propTypes = { html: React.PropTypes.string.isRequired }; render() { const { html } = this.props; // Here goes a really hack-ish way to convert // areas separated by Markdown <hr>s into code tabs. const blocks = html.split('<hr/>'); const elements = []; let es5Content = null; let es6Content = null; let es7Content = null; for (let i = 0; i < blocks.length; i++) { const content = blocks[i]; switch (i % 4) { case 0: elements.push( + <div key={i} + style={{ width: '100%' }} - <div key={i} dangerouslySetInnerHTML={{__html: content}} /> ? ---- ^^^^^^^ + dangerouslySetInnerHTML={{__html: content}} /> ? ^^^ ); break; case 1: es5Content = content; break; case 2: es6Content = content; break; case 3: es7Content = content; elements.push( <CodeBlock key={i} es5={es5Content} es6={es6Content} es7={es7Content} /> ); break; } } return ( - <div> + <div style={{ width: '100%' }}> {elements} </div> ); } }
6
0.109091
4
2
98260f36cf697665509b89288c4208007d8ad6ce
db/migrate/20160804150737_add_timestamps_to_members_again.rb
db/migrate/20160804150737_add_timestamps_to_members_again.rb
class AddTimestampsToMembersAgain < ActiveRecord::Migration def up execute "UPDATE members SET created_at = NOW() WHERE created_at IS NULL" execute "UPDATE members SET updated_at = NOW() WHERE updated_at IS NULL" end def down # no change end end
class AddTimestampsToMembersAgain < ActiveRecord::Migration DOWNTIME = false def up execute "UPDATE members SET created_at = NOW() WHERE created_at IS NULL" execute "UPDATE members SET updated_at = NOW() WHERE updated_at IS NULL" end def down # no change end end
Add missing DOWNTIME constant to the AddTimestampsToMembersAgain migration
Add missing DOWNTIME constant to the AddTimestampsToMembersAgain migration
Ruby
mit
daiyu/gitlab-zh,jirutka/gitlabhq,dreampet/gitlab,axilleas/gitlabhq,mr-dxdy/gitlabhq,shinexiao/gitlabhq,SVArago/gitlabhq,screenpages/gitlabhq,daiyu/gitlab-zh,htve/GitlabForChinese,allysonbarros/gitlabhq,dreampet/gitlab,openwide-java/gitlabhq,dreampet/gitlab,axilleas/gitlabhq,SVArago/gitlabhq,t-zuehlsdorff/gitlabhq,darkrasid/gitlabhq,icedwater/gitlabhq,dplarson/gitlabhq,t-zuehlsdorff/gitlabhq,dreampet/gitlab,dplarson/gitlabhq,shinexiao/gitlabhq,screenpages/gitlabhq,stoplightio/gitlabhq,stoplightio/gitlabhq,stoplightio/gitlabhq,dplarson/gitlabhq,iiet/iiet-git,openwide-java/gitlabhq,t-zuehlsdorff/gitlabhq,shinexiao/gitlabhq,jirutka/gitlabhq,daiyu/gitlab-zh,SVArago/gitlabhq,openwide-java/gitlabhq,mmkassem/gitlabhq,SVArago/gitlabhq,LUMC/gitlabhq,iiet/iiet-git,jirutka/gitlabhq,darkrasid/gitlabhq,htve/GitlabForChinese,shinexiao/gitlabhq,iiet/iiet-git,iiet/iiet-git,mr-dxdy/gitlabhq,icedwater/gitlabhq,mmkassem/gitlabhq,htve/GitlabForChinese,LUMC/gitlabhq,t-zuehlsdorff/gitlabhq,stoplightio/gitlabhq,allysonbarros/gitlabhq,daiyu/gitlab-zh,mr-dxdy/gitlabhq,dplarson/gitlabhq,screenpages/gitlabhq,LUMC/gitlabhq,axilleas/gitlabhq,darkrasid/gitlabhq,jirutka/gitlabhq,mmkassem/gitlabhq,icedwater/gitlabhq,icedwater/gitlabhq,openwide-java/gitlabhq,mr-dxdy/gitlabhq,allysonbarros/gitlabhq,mmkassem/gitlabhq,axilleas/gitlabhq,LUMC/gitlabhq,darkrasid/gitlabhq,htve/GitlabForChinese,allysonbarros/gitlabhq,screenpages/gitlabhq
ruby
## Code Before: class AddTimestampsToMembersAgain < ActiveRecord::Migration def up execute "UPDATE members SET created_at = NOW() WHERE created_at IS NULL" execute "UPDATE members SET updated_at = NOW() WHERE updated_at IS NULL" end def down # no change end end ## Instruction: Add missing DOWNTIME constant to the AddTimestampsToMembersAgain migration ## Code After: class AddTimestampsToMembersAgain < ActiveRecord::Migration DOWNTIME = false def up execute "UPDATE members SET created_at = NOW() WHERE created_at IS NULL" execute "UPDATE members SET updated_at = NOW() WHERE updated_at IS NULL" end def down # no change end end
class AddTimestampsToMembersAgain < ActiveRecord::Migration + DOWNTIME = false def up execute "UPDATE members SET created_at = NOW() WHERE created_at IS NULL" execute "UPDATE members SET updated_at = NOW() WHERE updated_at IS NULL" end def down # no change end end
1
0.083333
1
0
d3a66d299d329bd5520fe64b6c88481a4bc41b99
README.md
README.md
Clone the repo and run the install script: git clone https://github.com/Casecommons/vim-config.git ~/.vim cd ~/.vim ./install ## Updating Provided your working copy is clean, updating is simple: cd ~/.vim ./update
Clone the repo and run the install script: git clone https://github.com/Casecommons/vim-config.git ~/.vim cd ~/.vim ./install ## Updating Provided your working copy is clean, updating is simple: cd ~/.vim ./update ## Plugin installation ### YouCompleteMe The YouCompleteMe plugin can be a bit of a pain to install, and its installation is not automated as a part of either `./install` or `./update`. If you’re on OS X with Homebrew, this *might* work: brew install python || brew reinstall python brew reinstall macvim --with-override-system-vim cd ~/.vim/bundle/YouCompleteMe ./install.py If that doesn’t work (or you’re not on OS X w/Homebrew), consult the [YouCompleteMe docs](https://github.com/Valloric/YouCompleteMe/blob/master/README.md).
Update docs for help installing YouCompleteMe plugin
Update docs for help installing YouCompleteMe plugin ...because it really is a pain. Goddamn compiled language things ;)
Markdown
mit
buildgroundwork/vim-config,Casecommons/vim-config
markdown
## Code Before: Clone the repo and run the install script: git clone https://github.com/Casecommons/vim-config.git ~/.vim cd ~/.vim ./install ## Updating Provided your working copy is clean, updating is simple: cd ~/.vim ./update ## Instruction: Update docs for help installing YouCompleteMe plugin ...because it really is a pain. Goddamn compiled language things ;) ## Code After: Clone the repo and run the install script: git clone https://github.com/Casecommons/vim-config.git ~/.vim cd ~/.vim ./install ## Updating Provided your working copy is clean, updating is simple: cd ~/.vim ./update ## Plugin installation ### YouCompleteMe The YouCompleteMe plugin can be a bit of a pain to install, and its installation is not automated as a part of either `./install` or `./update`. If you’re on OS X with Homebrew, this *might* work: brew install python || brew reinstall python brew reinstall macvim --with-override-system-vim cd ~/.vim/bundle/YouCompleteMe ./install.py If that doesn’t work (or you’re not on OS X w/Homebrew), consult the [YouCompleteMe docs](https://github.com/Valloric/YouCompleteMe/blob/master/README.md).
Clone the repo and run the install script: git clone https://github.com/Casecommons/vim-config.git ~/.vim cd ~/.vim ./install ## Updating Provided your working copy is clean, updating is simple: cd ~/.vim ./update + + ## Plugin installation + + ### YouCompleteMe + + The YouCompleteMe plugin can be a bit of a pain to install, and its installation is not automated as a part of either `./install` or `./update`. If you’re on OS X with Homebrew, this *might* work: + + brew install python || brew reinstall python + brew reinstall macvim --with-override-system-vim + cd ~/.vim/bundle/YouCompleteMe + ./install.py + + If that doesn’t work (or you’re not on OS X w/Homebrew), consult the [YouCompleteMe docs](https://github.com/Valloric/YouCompleteMe/blob/master/README.md).
13
1
13
0
2d0847f8c99c6d07af80531e8f7290cb1fdafc48
choco/tools/chocolateyInstall.ps1
choco/tools/chocolateyInstall.ps1
$osVersion = [Environment]::OSVersion.Version.Major $osRelId = (gp 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion').ReleaseId if ($osVersion -ne 10 -or $osRelId -lt 1703) { throw "This package requires Windows 10 Fall Creators Update or later." } if ($Env:PROCESSOR_ARCHITECTURE -ne 'AMD64') { throw "This package requires a 64-bit Windows." } New-ItemProperty -Force -Path 'HKLM:\System\CurrentControlSet\Control\Session Manager\Kernel' -Name 'obcaseinsensitive' -Value 0 -PropertyType Dword echo 'Please restart your system to let registry changes take effect.' $packageName = 'lxrunoffline' $url = 'https://github.com/DDoSolitary/LxRunOffline/releases/download/v{VERSION}/LxRunOffline-v{VERSION}.zip' $unzipLocation = Join-Path $Env:ChocolateyToolsLocation $packageName if (Test-Path $unzipLocation) { rm -Recurse $unzipLocation } Install-ChocolateyZipPackage -PackageName $packageName -Url $url -UnzipLocation $unzipLocation -Checksum '{CHECKSUM}' -ChecksumType 'sha256' Install-ChocolateyPath -PathToInstall $unzipLocation -PathType 'Machine'
$osVersion = [Environment]::OSVersion.Version.Major $osRelId = (gp 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion').ReleaseId if ($osVersion -ne 10 -or $osRelId -lt 1703) { throw "This package requires Windows 10 Fall Creators Update or later." } if ($Env:PROCESSOR_ARCHITECTURE -ne 'AMD64') { throw "This package requires a 64-bit Windows." } New-ItemProperty -Force -Path 'HKLM:\System\CurrentControlSet\Control\Session Manager\Kernel' -Name 'obcaseinsensitive' -Value 0 -PropertyType Dword echo 'Please restart your system to let registry changes take effect.' $packageName = 'lxrunoffline' $url = 'https://github.com/DDoSolitary/LxRunOffline/releases/download/v{VERSION}/LxRunOffline-v{VERSION}.zip' $unzipLocation = Join-Path (Get-ToolsLocation) $packageName if (Test-Path $unzipLocation) { rm -Recurse $unzipLocation } Install-ChocolateyZipPackage -PackageName $packageName -Url $url -UnzipLocation $unzipLocation -Checksum '{CHECKSUM}' -ChecksumType 'sha256' Install-ChocolateyPath -PathToInstall $unzipLocation -PathType 'Machine'
Use Get-ToolsLocation instead of ChocolateyToolsLocation.
Use Get-ToolsLocation instead of ChocolateyToolsLocation. #20.
PowerShell
mit
sqc1999/LxRunOffline
powershell
## Code Before: $osVersion = [Environment]::OSVersion.Version.Major $osRelId = (gp 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion').ReleaseId if ($osVersion -ne 10 -or $osRelId -lt 1703) { throw "This package requires Windows 10 Fall Creators Update or later." } if ($Env:PROCESSOR_ARCHITECTURE -ne 'AMD64') { throw "This package requires a 64-bit Windows." } New-ItemProperty -Force -Path 'HKLM:\System\CurrentControlSet\Control\Session Manager\Kernel' -Name 'obcaseinsensitive' -Value 0 -PropertyType Dword echo 'Please restart your system to let registry changes take effect.' $packageName = 'lxrunoffline' $url = 'https://github.com/DDoSolitary/LxRunOffline/releases/download/v{VERSION}/LxRunOffline-v{VERSION}.zip' $unzipLocation = Join-Path $Env:ChocolateyToolsLocation $packageName if (Test-Path $unzipLocation) { rm -Recurse $unzipLocation } Install-ChocolateyZipPackage -PackageName $packageName -Url $url -UnzipLocation $unzipLocation -Checksum '{CHECKSUM}' -ChecksumType 'sha256' Install-ChocolateyPath -PathToInstall $unzipLocation -PathType 'Machine' ## Instruction: Use Get-ToolsLocation instead of ChocolateyToolsLocation. #20. ## Code After: $osVersion = [Environment]::OSVersion.Version.Major $osRelId = (gp 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion').ReleaseId if ($osVersion -ne 10 -or $osRelId -lt 1703) { throw "This package requires Windows 10 Fall Creators Update or later." } if ($Env:PROCESSOR_ARCHITECTURE -ne 'AMD64') { throw "This package requires a 64-bit Windows." } New-ItemProperty -Force -Path 'HKLM:\System\CurrentControlSet\Control\Session Manager\Kernel' -Name 'obcaseinsensitive' -Value 0 -PropertyType Dword echo 'Please restart your system to let registry changes take effect.' $packageName = 'lxrunoffline' $url = 'https://github.com/DDoSolitary/LxRunOffline/releases/download/v{VERSION}/LxRunOffline-v{VERSION}.zip' $unzipLocation = Join-Path (Get-ToolsLocation) $packageName if (Test-Path $unzipLocation) { rm -Recurse $unzipLocation } Install-ChocolateyZipPackage -PackageName $packageName -Url $url -UnzipLocation $unzipLocation -Checksum '{CHECKSUM}' -ChecksumType 'sha256' Install-ChocolateyPath -PathToInstall $unzipLocation -PathType 'Machine'
$osVersion = [Environment]::OSVersion.Version.Major $osRelId = (gp 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion').ReleaseId if ($osVersion -ne 10 -or $osRelId -lt 1703) { throw "This package requires Windows 10 Fall Creators Update or later." } if ($Env:PROCESSOR_ARCHITECTURE -ne 'AMD64') { throw "This package requires a 64-bit Windows." } New-ItemProperty -Force -Path 'HKLM:\System\CurrentControlSet\Control\Session Manager\Kernel' -Name 'obcaseinsensitive' -Value 0 -PropertyType Dword echo 'Please restart your system to let registry changes take effect.' $packageName = 'lxrunoffline' $url = 'https://github.com/DDoSolitary/LxRunOffline/releases/download/v{VERSION}/LxRunOffline-v{VERSION}.zip' - $unzipLocation = Join-Path $Env:ChocolateyToolsLocation $packageName ? ^^^^^^^^^^^^ ^^ + $unzipLocation = Join-Path (Get-ToolsLocation) $packageName ? ^^^ ^ + if (Test-Path $unzipLocation) { rm -Recurse $unzipLocation } Install-ChocolateyZipPackage -PackageName $packageName -Url $url -UnzipLocation $unzipLocation -Checksum '{CHECKSUM}' -ChecksumType 'sha256' Install-ChocolateyPath -PathToInstall $unzipLocation -PathType 'Machine'
2
0.095238
1
1
337c6d94c1639dde503c61d400c224c9e8d55a2a
README.md
README.md
The core application for Conveyal's transit data tools suite. ## Documentation View the [latest documentation](http://conveyal-data-tools.readthedocs.org/en/latest/) at ReadTheDocs.
The core application for Conveyal's transit data tools suite. ## Configuration This repository serves as the front end UI for the Data Manager application. It must be run in conjunction with [datatools-server](https://github.com/conveyal/datatools-server) ## Documentation View the [latest documentation](http://conveyal-data-tools.readthedocs.org/en/latest/) at ReadTheDocs for more info on deployment and development as well as a user guide.
Update readme to include sister repo
docs(readme): Update readme to include sister repo
Markdown
mit
conveyal/datatools-manager,conveyal/datatools-manager,conveyal/datatools-manager,conveyal/datatools-manager
markdown
## Code Before: The core application for Conveyal's transit data tools suite. ## Documentation View the [latest documentation](http://conveyal-data-tools.readthedocs.org/en/latest/) at ReadTheDocs. ## Instruction: docs(readme): Update readme to include sister repo ## Code After: The core application for Conveyal's transit data tools suite. ## Configuration This repository serves as the front end UI for the Data Manager application. It must be run in conjunction with [datatools-server](https://github.com/conveyal/datatools-server) ## Documentation View the [latest documentation](http://conveyal-data-tools.readthedocs.org/en/latest/) at ReadTheDocs for more info on deployment and development as well as a user guide.
The core application for Conveyal's transit data tools suite. + ## Configuration + + This repository serves as the front end UI for the Data Manager application. It must be run in conjunction with [datatools-server](https://github.com/conveyal/datatools-server) + ## Documentation - View the [latest documentation](http://conveyal-data-tools.readthedocs.org/en/latest/) at ReadTheDocs. + View the [latest documentation](http://conveyal-data-tools.readthedocs.org/en/latest/) at ReadTheDocs for more info on deployment and development as well as a user guide. ? ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6
1
5
1
0d23116dc716585310a41cbd083988406d1013b0
backend-services-push-hybrid-advanced/scripts/app.js
backend-services-push-hybrid-advanced/scripts/app.js
(function (global) { 'use strict'; var app = global.app = global.app || {}; var fixViewResize = function () { if (device.platform === 'iOS') { setTimeout(function() { $(document.body).height(window.innerHeight); }, 10); } }; var onDeviceReady = function() { navigator.splashscreen.hide(); if (!app.isKeySet(app.config.everlive.apiKey)) { $(app.config.views.init).hide(); $('#pushApp').addClass('noapikey-scrn').html(app.constants.NO_API_KEY_MESSAGE); return; } fixViewResize(); var os = kendo.support.mobileOS, statusBarStyle = os.ios && os.flatVersion >= 700 ? 'black-translucent' : 'black'; app.mobile = new kendo.mobile.Application(document.body, { transition: 'slide', statusBarStyle: statusBarStyle, skin: 'flat' }); app.everlive = new Everlive({ apiKey: app.config.everlive.apiKey, scheme: app.config.everlive.scheme }); }; document.addEventListener('deviceready', onDeviceReady, false); document.addEventListener('orientationchange', fixViewResize); }(window));
(function (global) { 'use strict'; var app = global.app = global.app || {}; app.everlive = new Everlive({ apiKey: app.config.everlive.apiKey, scheme: app.config.everlive.scheme }); var fixViewResize = function () { if (device.platform === 'iOS') { setTimeout(function() { $(document.body).height(window.innerHeight); }, 10); } }; var onDeviceReady = function() { navigator.splashscreen.hide(); if (!app.isKeySet(app.config.everlive.apiKey)) { $(app.config.views.init).hide(); $('#pushApp').addClass('noapikey-scrn').html(app.constants.NO_API_KEY_MESSAGE); return; } fixViewResize(); var os = kendo.support.mobileOS, statusBarStyle = os.ios && os.flatVersion >= 700 ? 'black-translucent' : 'black'; app.mobile = new kendo.mobile.Application(document.body, { transition: 'slide', statusBarStyle: statusBarStyle, skin: 'flat' }); }; document.addEventListener('deviceready', onDeviceReady, false); document.addEventListener('orientationchange', fixViewResize); }(window));
Initialize earlier the Everlive instance.
Initialize earlier the Everlive instance.
JavaScript
bsd-2-clause
telerik/backend-services-push-hybrid-advanced,telerik/backend-services-push-hybrid-advanced
javascript
## Code Before: (function (global) { 'use strict'; var app = global.app = global.app || {}; var fixViewResize = function () { if (device.platform === 'iOS') { setTimeout(function() { $(document.body).height(window.innerHeight); }, 10); } }; var onDeviceReady = function() { navigator.splashscreen.hide(); if (!app.isKeySet(app.config.everlive.apiKey)) { $(app.config.views.init).hide(); $('#pushApp').addClass('noapikey-scrn').html(app.constants.NO_API_KEY_MESSAGE); return; } fixViewResize(); var os = kendo.support.mobileOS, statusBarStyle = os.ios && os.flatVersion >= 700 ? 'black-translucent' : 'black'; app.mobile = new kendo.mobile.Application(document.body, { transition: 'slide', statusBarStyle: statusBarStyle, skin: 'flat' }); app.everlive = new Everlive({ apiKey: app.config.everlive.apiKey, scheme: app.config.everlive.scheme }); }; document.addEventListener('deviceready', onDeviceReady, false); document.addEventListener('orientationchange', fixViewResize); }(window)); ## Instruction: Initialize earlier the Everlive instance. ## Code After: (function (global) { 'use strict'; var app = global.app = global.app || {}; app.everlive = new Everlive({ apiKey: app.config.everlive.apiKey, scheme: app.config.everlive.scheme }); var fixViewResize = function () { if (device.platform === 'iOS') { setTimeout(function() { $(document.body).height(window.innerHeight); }, 10); } }; var onDeviceReady = function() { navigator.splashscreen.hide(); if (!app.isKeySet(app.config.everlive.apiKey)) { $(app.config.views.init).hide(); $('#pushApp').addClass('noapikey-scrn').html(app.constants.NO_API_KEY_MESSAGE); return; } fixViewResize(); var os = kendo.support.mobileOS, statusBarStyle = os.ios && os.flatVersion >= 700 ? 'black-translucent' : 'black'; app.mobile = new kendo.mobile.Application(document.body, { transition: 'slide', statusBarStyle: statusBarStyle, skin: 'flat' }); }; document.addEventListener('deviceready', onDeviceReady, false); document.addEventListener('orientationchange', fixViewResize); }(window));
(function (global) { 'use strict'; var app = global.app = global.app || {}; + app.everlive = new Everlive({ + apiKey: app.config.everlive.apiKey, + scheme: app.config.everlive.scheme + }); + var fixViewResize = function () { if (device.platform === 'iOS') { setTimeout(function() { $(document.body).height(window.innerHeight); }, 10); } }; var onDeviceReady = function() { navigator.splashscreen.hide(); if (!app.isKeySet(app.config.everlive.apiKey)) { $(app.config.views.init).hide(); $('#pushApp').addClass('noapikey-scrn').html(app.constants.NO_API_KEY_MESSAGE); return; } fixViewResize(); var os = kendo.support.mobileOS, statusBarStyle = os.ios && os.flatVersion >= 700 ? 'black-translucent' : 'black'; app.mobile = new kendo.mobile.Application(document.body, { transition: 'slide', statusBarStyle: statusBarStyle, skin: 'flat' }); - - app.everlive = new Everlive({ - apiKey: app.config.everlive.apiKey, - scheme: app.config.everlive.scheme - }); }; document.addEventListener('deviceready', onDeviceReady, false); document.addEventListener('orientationchange', fixViewResize); }(window));
10
0.217391
5
5
e611a89e9f4ea31d646b7876c70900302edc43f5
static/locales/fi/messages.properties
static/locales/fi/messages.properties
title=Pontoon-johdanto # Navigation navigation-title=Pontoon-johdanto navigation-what=Mitä navigation-how=Miten navigation-more=Lisää navigation-developers=Kehittäjät # Header upper-title=Pontoon Mozillalta headline-1=Lokalisoi verkko. headline-2=sivua muokaten. call-to-action=Kerro lisää # What what-title=Mikä on Pontoon? # How how-title=Miten se toimii? how-desc=Pontoon on hyvin yksinkertainen ja intuitiivinen työkalu, jonka käyttö vaatii lokalisoijilta vain vähän tai ei lainkaan teknistä taitoa. translate=Käännä translate-sub=valittu teksti save=Tallenna save-sub=käännöksesi profit=Lue lisää # More # Developers # Footer join-us=Liity joukkoon
title=Pontoon-johdanto # Navigation navigation-title=Pontoon-johdanto navigation-what=Mitä navigation-how=Miten navigation-more=Lisää navigation-developers=Kehittäjät # Header upper-title=Pontoon Mozillalta headline-1=Lokalisoi verkko. headline-2=sivua muokaten. call-to-action=Kerro lisää # What what-title=Mikä on Pontoon? # How how-title=Miten se toimii? how-desc=Pontoon on hyvin yksinkertainen ja intuitiivinen työkalu, jonka käyttö vaatii lokalisoijilta vain vähän tai ei lainkaan teknistä taitoa. translate=Käännä translate-sub=valittu teksti save=Tallenna save-sub=käännöksesi profit=Lue lisää # More # Developers # Footer author=Mozillan käsityötä join-us=Liity joukkoon
Update Finnish (fi) localization of Pontoon Intro
Pontoon: Update Finnish (fi) localization of Pontoon Intro Localization authors: - Lasse Liehu <lasse.liehu@gmail.com>
INI
bsd-3-clause
mathjazz/pontoon-intro,jotes/pontoon-intro,jotes/pontoon-intro,jotes/pontoon-intro,mathjazz/pontoon-intro,mathjazz/pontoon-intro
ini
## Code Before: title=Pontoon-johdanto # Navigation navigation-title=Pontoon-johdanto navigation-what=Mitä navigation-how=Miten navigation-more=Lisää navigation-developers=Kehittäjät # Header upper-title=Pontoon Mozillalta headline-1=Lokalisoi verkko. headline-2=sivua muokaten. call-to-action=Kerro lisää # What what-title=Mikä on Pontoon? # How how-title=Miten se toimii? how-desc=Pontoon on hyvin yksinkertainen ja intuitiivinen työkalu, jonka käyttö vaatii lokalisoijilta vain vähän tai ei lainkaan teknistä taitoa. translate=Käännä translate-sub=valittu teksti save=Tallenna save-sub=käännöksesi profit=Lue lisää # More # Developers # Footer join-us=Liity joukkoon ## Instruction: Pontoon: Update Finnish (fi) localization of Pontoon Intro Localization authors: - Lasse Liehu <lasse.liehu@gmail.com> ## Code After: title=Pontoon-johdanto # Navigation navigation-title=Pontoon-johdanto navigation-what=Mitä navigation-how=Miten navigation-more=Lisää navigation-developers=Kehittäjät # Header upper-title=Pontoon Mozillalta headline-1=Lokalisoi verkko. headline-2=sivua muokaten. call-to-action=Kerro lisää # What what-title=Mikä on Pontoon? # How how-title=Miten se toimii? how-desc=Pontoon on hyvin yksinkertainen ja intuitiivinen työkalu, jonka käyttö vaatii lokalisoijilta vain vähän tai ei lainkaan teknistä taitoa. translate=Käännä translate-sub=valittu teksti save=Tallenna save-sub=käännöksesi profit=Lue lisää # More # Developers # Footer author=Mozillan käsityötä join-us=Liity joukkoon
title=Pontoon-johdanto # Navigation navigation-title=Pontoon-johdanto navigation-what=Mitä navigation-how=Miten navigation-more=Lisää navigation-developers=Kehittäjät # Header upper-title=Pontoon Mozillalta headline-1=Lokalisoi verkko. headline-2=sivua muokaten. call-to-action=Kerro lisää # What what-title=Mikä on Pontoon? # How how-title=Miten se toimii? how-desc=Pontoon on hyvin yksinkertainen ja intuitiivinen työkalu, jonka käyttö vaatii lokalisoijilta vain vähän tai ei lainkaan teknistä taitoa. translate=Käännä translate-sub=valittu teksti save=Tallenna save-sub=käännöksesi profit=Lue lisää # More # Developers # Footer + author=Mozillan käsityötä join-us=Liity joukkoon
1
0.029412
1
0
29a28148651f86f57bad3263efb398ca6fb1bbef
composer.json
composer.json
{ "name": "wmenge/braindump-api", "description": "Braindump Backend API", "license": "MIT", "version": "0.1.1", "authors": [ { "name": "Wilco Menge", "email": "wilcomenge@gmail.com", "role": "Developer" } ], "require": { "php": ">=5.3", "slim/slim": "2.*", "slim/extras": "2.*", "j4mie/paris": "1.*", "ezyang/htmlpurifier": "v4.6.0", "cartalyst/sentry": "2.1.*", "tedivm/fetch": "0.6.*", "kohkimakimoto/workerphp": "0.*" }, "require-dev": { "phpunit/phpunit": "@stable", "phpunit/dbunit": "@stable", "mockery/mockery": "0.9.*@dev", "jaz303/phake": "dev-master", "albertofem/rsync-lib": "dev-master" } }
{ "name": "wmenge/braindump-api", "description": "Braindump Backend API", "license": "MIT", "version": "0.1.1", "authors": [ { "name": "Wilco Menge", "email": "wilcomenge@gmail.com", "role": "Developer" } ], "require": { "php": ">=5.3", "slim/slim": "2.*", "slim/extras": "2.*", "j4mie/paris": "1.*", "ezyang/htmlpurifier": "v4.6.0", "cartalyst/sentry": "2.1.*", "tedivm/fetch": "0.6.*", "kohkimakimoto/workerphp": "0.*" "jaz303/phake": "dev-master", }, "require-dev": { "phpunit/phpunit": "@stable", "phpunit/dbunit": "@stable", "mockery/mockery": "0.9.*@dev", "albertofem/rsync-lib": "dev-master" } }
Move phake dependency to require so it can be used in normal deployment scenarios
Move phake dependency to require so it can be used in normal deployment scenarios
JSON
mit
wmenge/braindump-api
json
## Code Before: { "name": "wmenge/braindump-api", "description": "Braindump Backend API", "license": "MIT", "version": "0.1.1", "authors": [ { "name": "Wilco Menge", "email": "wilcomenge@gmail.com", "role": "Developer" } ], "require": { "php": ">=5.3", "slim/slim": "2.*", "slim/extras": "2.*", "j4mie/paris": "1.*", "ezyang/htmlpurifier": "v4.6.0", "cartalyst/sentry": "2.1.*", "tedivm/fetch": "0.6.*", "kohkimakimoto/workerphp": "0.*" }, "require-dev": { "phpunit/phpunit": "@stable", "phpunit/dbunit": "@stable", "mockery/mockery": "0.9.*@dev", "jaz303/phake": "dev-master", "albertofem/rsync-lib": "dev-master" } } ## Instruction: Move phake dependency to require so it can be used in normal deployment scenarios ## Code After: { "name": "wmenge/braindump-api", "description": "Braindump Backend API", "license": "MIT", "version": "0.1.1", "authors": [ { "name": "Wilco Menge", "email": "wilcomenge@gmail.com", "role": "Developer" } ], "require": { "php": ">=5.3", "slim/slim": "2.*", "slim/extras": "2.*", "j4mie/paris": "1.*", "ezyang/htmlpurifier": "v4.6.0", "cartalyst/sentry": "2.1.*", "tedivm/fetch": "0.6.*", "kohkimakimoto/workerphp": "0.*" "jaz303/phake": "dev-master", }, "require-dev": { "phpunit/phpunit": "@stable", "phpunit/dbunit": "@stable", "mockery/mockery": "0.9.*@dev", "albertofem/rsync-lib": "dev-master" } }
{ "name": "wmenge/braindump-api", "description": "Braindump Backend API", "license": "MIT", "version": "0.1.1", "authors": [ { "name": "Wilco Menge", "email": "wilcomenge@gmail.com", "role": "Developer" } ], "require": { "php": ">=5.3", "slim/slim": "2.*", "slim/extras": "2.*", "j4mie/paris": "1.*", "ezyang/htmlpurifier": "v4.6.0", "cartalyst/sentry": "2.1.*", "tedivm/fetch": "0.6.*", "kohkimakimoto/workerphp": "0.*" + "jaz303/phake": "dev-master", }, "require-dev": { "phpunit/phpunit": "@stable", "phpunit/dbunit": "@stable", "mockery/mockery": "0.9.*@dev", - "jaz303/phake": "dev-master", "albertofem/rsync-lib": "dev-master" } }
2
0.066667
1
1
dfdab79bc3fb4667190efc23dd9cd3013a8ee325
config/initializers/raven.rb
config/initializers/raven.rb
if Supermarket::Config.sentry_url.present? && !Rails.env.test? require 'raven' Raven.configure do |config| config.dsn = Supermarket::Config.sentry_url end end
if Supermarket::Config.sentry_url.present? && !Rails.env.test? require 'raven' require 'raven/sidekiq' Raven.configure do |config| config.dsn = Supermarket::Config.sentry_url end end
Send Sidekiq errors to Sentry
Send Sidekiq errors to Sentry
Ruby
apache-2.0
dpnl87/supermarket,tas50/supermarket,chef/supermarket,leftathome/supermarket,leftathome/supermarket,nellshamrell/supermarket,jzohrab/supermarket,jzohrab/supermarket,juliandunn/supermarket,chef/supermarket,rafaelmagu/supermarket,dpnl87/supermarket,robbkidd/supermarket,juliandunn/supermarket,leftathome/supermarket,chef/supermarket,nellshamrell/supermarket,robbkidd/supermarket,chef/supermarket,tas50/supermarket,leftathome/supermarket,jzohrab/supermarket,nellshamrell/supermarket,juliandunn/supermarket,juliandunn/supermarket,jzohrab/supermarket,nellshamrell/supermarket,chef/supermarket,robbkidd/supermarket,rafaelmagu/supermarket,dpnl87/supermarket,tas50/supermarket,rafaelmagu/supermarket,rafaelmagu/supermarket,dpnl87/supermarket,tas50/supermarket,robbkidd/supermarket
ruby
## Code Before: if Supermarket::Config.sentry_url.present? && !Rails.env.test? require 'raven' Raven.configure do |config| config.dsn = Supermarket::Config.sentry_url end end ## Instruction: Send Sidekiq errors to Sentry ## Code After: if Supermarket::Config.sentry_url.present? && !Rails.env.test? require 'raven' require 'raven/sidekiq' Raven.configure do |config| config.dsn = Supermarket::Config.sentry_url end end
if Supermarket::Config.sentry_url.present? && !Rails.env.test? require 'raven' + require 'raven/sidekiq' Raven.configure do |config| config.dsn = Supermarket::Config.sentry_url end end
1
0.142857
1
0
5aebe46edd0d6a35fb6ef94f6b7720e6dc19442a
GLib-2.0.awk
GLib-2.0.awk
BEGIN { etpInit = 0 } /public convenience init.T: ErrorTypeProtocol./ { etpInit = 1 print " /// Convenience copy constructor, creating a unique copy" print " /// of the passed in Error. Needs to be freed using free()" print " /// (automatically done in deinit if you use ErrorType)." } /self.init.other.ptr./ { if (etpInit) { print " self.init(g_error_copy(other.ptr))" etpInit = 0 next } } /no reference counting for GError, cannot ref/ { next } /no reference counting for GError, cannot unref/ { print " g_error_free(error_ptr)" next } / -> GIConv {/, /^}/ { sub(/GIConv {/,"GIConv? {") sub(/return rv/,"return rv == unsafeBitCast(-1, to: GIConv.self) ? nil : rv") } // { print }
BEGIN { etpInit = 0 ; vaptrptr = 0 } /public convenience init.T: ErrorTypeProtocol./ { etpInit = 1 print " /// Convenience copy constructor, creating a unique copy" print " /// of the passed in Error. Needs to be freed using free()" print " /// (automatically done in deinit if you use ErrorType)." } /self.init.other.ptr./ { if (etpInit) { print " self.init(g_error_copy(other.ptr))" etpInit = 0 next } } /no reference counting for GError, cannot ref/ { next } /no reference counting for GError, cannot unref/ { print " g_error_free(error_ptr)" next } / -> GIConv {/, /^}/ { sub(/GIConv {/,"GIConv? {") sub(/return rv/,"return rv == unsafeBitCast(-1, to: GIConv.self) ? nil : rv") } /UnsafeMutablePointer.CVaListPointer/ { vaptrptr = 1 print "#if !os(Linux)" } /^$/ { if (vaptrptr) { print "#endif" vaptrptr = 0 } } /\/\/\// { if (vaptrptr) { print "#endif" vaptrptr = 0 } } // { print }
Mark CVaListPointer array generators as unavailable on Linux
Mark CVaListPointer array generators as unavailable on Linux
Awk
bsd-2-clause
rhx/SwiftGLib,rhx/SwiftGLib,rhx/SwiftGLib
awk
## Code Before: BEGIN { etpInit = 0 } /public convenience init.T: ErrorTypeProtocol./ { etpInit = 1 print " /// Convenience copy constructor, creating a unique copy" print " /// of the passed in Error. Needs to be freed using free()" print " /// (automatically done in deinit if you use ErrorType)." } /self.init.other.ptr./ { if (etpInit) { print " self.init(g_error_copy(other.ptr))" etpInit = 0 next } } /no reference counting for GError, cannot ref/ { next } /no reference counting for GError, cannot unref/ { print " g_error_free(error_ptr)" next } / -> GIConv {/, /^}/ { sub(/GIConv {/,"GIConv? {") sub(/return rv/,"return rv == unsafeBitCast(-1, to: GIConv.self) ? nil : rv") } // { print } ## Instruction: Mark CVaListPointer array generators as unavailable on Linux ## Code After: BEGIN { etpInit = 0 ; vaptrptr = 0 } /public convenience init.T: ErrorTypeProtocol./ { etpInit = 1 print " /// Convenience copy constructor, creating a unique copy" print " /// of the passed in Error. Needs to be freed using free()" print " /// (automatically done in deinit if you use ErrorType)." } /self.init.other.ptr./ { if (etpInit) { print " self.init(g_error_copy(other.ptr))" etpInit = 0 next } } /no reference counting for GError, cannot ref/ { next } /no reference counting for GError, cannot unref/ { print " g_error_free(error_ptr)" next } / -> GIConv {/, /^}/ { sub(/GIConv {/,"GIConv? {") sub(/return rv/,"return rv == unsafeBitCast(-1, to: GIConv.self) ? nil : rv") } /UnsafeMutablePointer.CVaListPointer/ { vaptrptr = 1 print "#if !os(Linux)" } /^$/ { if (vaptrptr) { print "#endif" vaptrptr = 0 } } /\/\/\// { if (vaptrptr) { print "#endif" vaptrptr = 0 } } // { print }
- BEGIN { etpInit = 0 } + BEGIN { etpInit = 0 ; vaptrptr = 0 } /public convenience init.T: ErrorTypeProtocol./ { etpInit = 1 print " /// Convenience copy constructor, creating a unique copy" print " /// of the passed in Error. Needs to be freed using free()" print " /// (automatically done in deinit if you use ErrorType)." } /self.init.other.ptr./ { if (etpInit) { print " self.init(g_error_copy(other.ptr))" etpInit = 0 next } } /no reference counting for GError, cannot ref/ { next } /no reference counting for GError, cannot unref/ { print " g_error_free(error_ptr)" next } / -> GIConv {/, /^}/ { sub(/GIConv {/,"GIConv? {") sub(/return rv/,"return rv == unsafeBitCast(-1, to: GIConv.self) ? nil : rv") } + /UnsafeMutablePointer.CVaListPointer/ { + vaptrptr = 1 + print "#if !os(Linux)" + } + /^$/ { + if (vaptrptr) { + print "#endif" + vaptrptr = 0 + } + } + /\/\/\// { + if (vaptrptr) { + print "#endif" + vaptrptr = 0 + } + } // { print }
18
0.75
17
1
4cd292622440ab01fd9b4765aba978b81dfc5fc7
js/node_readline.js
js/node_readline.js
// IMPORTANT: choose one var RL_LIB = "libreadline"; // NOTE: libreadline is GPL //var RL_LIB = "libedit"; var HISTORY_FILE = require('path').join(process.env.HOME, '.mal-history'); var rlwrap = {}; // namespace for this module in web context var ffi = require('ffi'), fs = require('fs'); var rllib = ffi.Library(RL_LIB, { 'readline': [ 'string', [ 'string' ] ], 'add_history': [ 'int', [ 'string' ] ]}); var rl_history_loaded = false; exports.readline = rlwrap.readline = function(prompt) { prompt = prompt || "user> "; if (!rl_history_loaded) { rl_history_loaded = true; var lines = fs.readFileSync(HISTORY_FILE).toString().split("\n"); // Max of 2000 lines lines = lines.slice(Math.max(lines.length - 2000, 0)); for (var i=0; i<lines.length; i++) { if (lines[i]) { rllib.add_history(lines[i]); } } } var line = rllib.readline(prompt); if (line) { rllib.add_history(line); fs.appendFileSync(HISTORY_FILE, line + "\n"); } return line; }; var readline = exports;
// IMPORTANT: choose one var RL_LIB = "libreadline"; // NOTE: libreadline is GPL //var RL_LIB = "libedit"; var HISTORY_FILE = require('path').join(process.env.HOME, '.mal-history'); var rlwrap = {}; // namespace for this module in web context var ffi = require('ffi'), fs = require('fs'); var rllib = ffi.Library(RL_LIB, { 'readline': [ 'string', [ 'string' ] ], 'add_history': [ 'int', [ 'string' ] ]}); var rl_history_loaded = false; exports.readline = rlwrap.readline = function(prompt) { prompt = prompt || "user> "; if (!rl_history_loaded) { rl_history_loaded = true; var lines = []; if (fs.existsSync(HISTORY_FILE)) { lines = fs.readFileSync(HISTORY_FILE).toString().split("\n"); } // Max of 2000 lines lines = lines.slice(Math.max(lines.length - 2000, 0)); for (var i=0; i<lines.length; i++) { if (lines[i]) { rllib.add_history(lines[i]); } } } var line = rllib.readline(prompt); if (line) { rllib.add_history(line); fs.appendFileSync(HISTORY_FILE, line + "\n"); } return line; }; var readline = exports;
Correct issue where readline bombs out if there's no existing history file.
Correct issue where readline bombs out if there's no existing history file.
JavaScript
mpl-2.0
bestwpw/mal,alantsev/mal,U-MA/mal,mohsenil85/mal,foresterre/mal,sgerguri/mal,tebeka/mal,slideclick/mal,foresterre/mal,bestwpw/mal,TheNumberOne/mal,alexcrichton/mal,mpwillson/mal,alantsev/mal,keith-rollin/mal,profan/mal,b0oh/mal,sleep/mal,sleep/mal,profan/mal,treeform/mal,czchen/mal,h8gi/mal,mohsenil85/mal,Chouser/mal,fdserr/mal,pocarist/mal,czchen/mal,TheNumberOne/mal,foresterre/mal,yohanesyuen/mal,qyqx/mal,profan/mal,DomBlack/mal,tebeka/mal,b0oh/mal,h3rald/mal,asterite/mal,Chouser/mal,DomBlack/mal,alcherk/mal,adamschmideg/mal,scgilardi/mal,jsharf/mal,0gajun/mal,asterite/mal,rhysd/mal,h8gi/mal,eshamster/mal,SawyerHood/mal,outcastgeek/mal,christhekeele/mal,tompko/mal,0gajun/mal,mpwillson/mal,tebeka/mal,jsharf/mal,moquist/mal,rnby-mike/mal,SawyerHood/mal,pocarist/mal,mohsenil85/mal,moquist/mal,tebeka/mal,martinlschumann/mal,hterkelsen/mal,tebeka/mal,profan/mal,rnby-mike/mal,alantsev/mal,martinlschumann/mal,h8gi/mal,profan/mal,alcherk/mal,h3rald/mal,pocarist/mal,hterkelsen/mal,asterite/mal,jsharf/mal,b0oh/mal,jwalsh/mal,tebeka/mal,h3rald/mal,alantsev/mal,mohsenil85/mal,scgilardi/mal,U-MA/mal,profan/mal,keith-rollin/mal,fdserr/mal,eshamster/mal,U-MA/mal,alphaKAI/mal,rhysd/mal,outcastgeek/mal,v13inc/mal,v13inc/mal,TheNumberOne/mal,jwalsh/mal,yohanesyuen/mal,christhekeele/mal,tompko/mal,jsharf/mal,alantsev/mal,foresterre/mal,TheNumberOne/mal,U-MA/mal,moquist/mal,moquist/mal,mohsenil85/mal,b0oh/mal,alphaKAI/mal,mpwillson/mal,SawyerHood/mal,SawyerHood/mal,rhysd/mal,ekmartin/mal,slideclick/mal,SawyerHood/mal,tebeka/mal,foresterre/mal,nlfiedler/mal,mohsenil85/mal,DomBlack/mal,eshamster/mal,moquist/mal,alantsev/mal,mpwillson/mal,02N/mal,nlfiedler/mal,enitihas/mal,pocarist/mal,mpwillson/mal,treeform/mal,02N/mal,fdserr/mal,bestwpw/mal,profan/mal,nlfiedler/mal,Chouser/mal,outcastgeek/mal,DomBlack/mal,foresterre/mal,christhekeele/mal,enitihas/mal,eshamster/mal,sgerguri/mal,christhekeele/mal,sleexyz/mal,ekmartin/mal,pocarist/mal,02N/mal,alcherk/mal,h8gi/mal,nlfiedler/mal,qyqx/mal,czchen/mal,mohsenil85/mal,sgerguri/mal,rnby-mike/mal,rnby-mike/mal,TheNumberOne/mal,h3rald/mal,fduch2k/mal,alexcrichton/mal,v13inc/mal,v13inc/mal,sleexyz/mal,U-MA/mal,enitihas/mal,adamschmideg/mal,pocarist/mal,foresterre/mal,bestwpw/mal,mpwillson/mal,asterite/mal,martinlschumann/mal,martinlschumann/mal,DomBlack/mal,hterkelsen/mal,eshamster/mal,mohsenil85/mal,pocarist/mal,tompko/mal,h8gi/mal,alphaKAI/mal,treeform/mal,outcastgeek/mal,enitihas/mal,treeform/mal,U-MA/mal,jwalsh/mal,qyqx/mal,alphaKAI/mal,DomBlack/mal,tompko/mal,enitihas/mal,SawyerHood/mal,tompko/mal,adamschmideg/mal,scgilardi/mal,alphaKAI/mal,alexcrichton/mal,scgilardi/mal,sgerguri/mal,h3rald/mal,fduch2k/mal,scgilardi/mal,fdserr/mal,TheNumberOne/mal,moquist/mal,mpwillson/mal,jwalsh/mal,mpwillson/mal,b0oh/mal,keith-rollin/mal,pocarist/mal,0gajun/mal,czchen/mal,DomBlack/mal,martinlschumann/mal,eshamster/mal,alexcrichton/mal,alexcrichton/mal,rhysd/mal,alphaKAI/mal,tompko/mal,nlfiedler/mal,ekmartin/mal,SawyerHood/mal,h3rald/mal,pocarist/mal,h8gi/mal,alexcrichton/mal,foresterre/mal,scgilardi/mal,mohsenil85/mal,rhysd/mal,b0oh/mal,alcherk/mal,hterkelsen/mal,alexcrichton/mal,yohanesyuen/mal,hterkelsen/mal,slideclick/mal,DomBlack/mal,SawyerHood/mal,czchen/mal,slideclick/mal,scgilardi/mal,jwalsh/mal,sleexyz/mal,sleep/mal,christhekeele/mal,profan/mal,czchen/mal,moquist/mal,martinlschumann/mal,jsharf/mal,jsharf/mal,0gajun/mal,nlfiedler/mal,U-MA/mal,fdserr/mal,h8gi/mal,martinlschumann/mal,czchen/mal,ekmartin/mal,joncol/mal,yohanesyuen/mal,sgerguri/mal,profan/mal,keith-rollin/mal,SawyerHood/mal,0gajun/mal,slideclick/mal,jwalsh/mal,slideclick/mal,fduch2k/mal,nlfiedler/mal,rnby-mike/mal,fdserr/mal,sleexyz/mal,jwalsh/mal,fduch2k/mal,v13inc/mal,tebeka/mal,tebeka/mal,enitihas/mal,SawyerHood/mal,h3rald/mal,moquist/mal,outcastgeek/mal,alphaKAI/mal,rhysd/mal,sleep/mal,jsharf/mal,fdserr/mal,foresterre/mal,foresterre/mal,asterite/mal,mpwillson/mal,adamschmideg/mal,DomBlack/mal,0gajun/mal,adamschmideg/mal,moquist/mal,eshamster/mal,nlfiedler/mal,christhekeele/mal,sleexyz/mal,rhysd/mal,fduch2k/mal,christhekeele/mal,v13inc/mal,fdserr/mal,adamschmideg/mal,nlfiedler/mal,b0oh/mal,martinlschumann/mal,alexcrichton/mal,enitihas/mal,Chouser/mal,treeform/mal,sleexyz/mal,jsharf/mal,moquist/mal,rnby-mike/mal,h3rald/mal,sleexyz/mal,martinlschumann/mal,scgilardi/mal,h8gi/mal,sgerguri/mal,sleep/mal,keith-rollin/mal,alexcrichton/mal,tebeka/mal,fdserr/mal,fduch2k/mal,02N/mal,0gajun/mal,sleep/mal,h8gi/mal,yohanesyuen/mal,jwalsh/mal,sleep/mal,alphaKAI/mal,alcherk/mal,0gajun/mal,tompko/mal,alantsev/mal,v13inc/mal,b0oh/mal,keith-rollin/mal,tompko/mal,mohsenil85/mal,moquist/mal,jwalsh/mal,SawyerHood/mal,enitihas/mal,treeform/mal,rnby-mike/mal,sleexyz/mal,alcherk/mal,tompko/mal,czchen/mal,jsharf/mal,asterite/mal,hterkelsen/mal,scgilardi/mal,02N/mal,enitihas/mal,eshamster/mal,tebeka/mal,adamschmideg/mal,alcherk/mal,h8gi/mal,eshamster/mal,bestwpw/mal,asterite/mal,v13inc/mal,hterkelsen/mal,rhysd/mal,sleep/mal,fduch2k/mal,jsharf/mal,SawyerHood/mal,tompko/mal,yohanesyuen/mal,jwalsh/mal,treeform/mal,mohsenil85/mal,scgilardi/mal,h8gi/mal,U-MA/mal,v13inc/mal,ekmartin/mal,fdserr/mal,nlfiedler/mal,02N/mal,fdserr/mal,fduch2k/mal,profan/mal,tompko/mal,hterkelsen/mal,alphaKAI/mal,treeform/mal,0gajun/mal,mohsenil85/mal,rhysd/mal,adamschmideg/mal,qyqx/mal,christhekeele/mal,h3rald/mal,rhysd/mal,h3rald/mal,outcastgeek/mal,outcastgeek/mal,h3rald/mal,treeform/mal,eshamster/mal,alphaKAI/mal,b0oh/mal,adamschmideg/mal,czchen/mal,alexcrichton/mal,yohanesyuen/mal,tompko/mal,alantsev/mal,0gajun/mal,adamschmideg/mal,nlfiedler/mal,b0oh/mal,alcherk/mal,rhysd/mal,enitihas/mal,nlfiedler/mal,0gajun/mal,mpwillson/mal,0gajun/mal,christhekeele/mal,asterite/mal,rhysd/mal,sleexyz/mal,02N/mal,SawyerHood/mal,nlfiedler/mal,martinlschumann/mal,slideclick/mal,ekmartin/mal,qyqx/mal,U-MA/mal,outcastgeek/mal,czchen/mal,outcastgeek/mal,SawyerHood/mal,joncol/mal,yohanesyuen/mal,martinlschumann/mal,enitihas/mal,DomBlack/mal,pocarist/mal,asterite/mal,christhekeele/mal,sgerguri/mal,b0oh/mal,h8gi/mal,DomBlack/mal,yohanesyuen/mal,czchen/mal,scgilardi/mal,adamschmideg/mal,profan/mal,czchen/mal,jsharf/mal,joncol/mal,ekmartin/mal,alantsev/mal,adamschmideg/mal,b0oh/mal,tompko/mal,sleexyz/mal,yohanesyuen/mal,Chouser/mal,hterkelsen/mal,b0oh/mal,ekmartin/mal,rhysd/mal,mohsenil85/mal,TheNumberOne/mal,outcastgeek/mal,martinlschumann/mal,qyqx/mal,sleexyz/mal,TheNumberOne/mal,treeform/mal,alphaKAI/mal,martinlschumann/mal,bestwpw/mal,christhekeele/mal,ekmartin/mal,slideclick/mal,fduch2k/mal,treeform/mal,alantsev/mal,profan/mal,0gajun/mal,alphaKAI/mal,hterkelsen/mal,rnby-mike/mal,enitihas/mal,sleexyz/mal,slideclick/mal,0gajun/mal,sleep/mal,b0oh/mal,hterkelsen/mal,U-MA/mal,fduch2k/mal,sgerguri/mal,sleep/mal,sgerguri/mal,foresterre/mal,outcastgeek/mal,mpwillson/mal,h8gi/mal,qyqx/mal,profan/mal,jwalsh/mal,alphaKAI/mal,keith-rollin/mal,rnby-mike/mal,alcherk/mal,moquist/mal,scgilardi/mal,czchen/mal,ekmartin/mal,TheNumberOne/mal,bestwpw/mal,asterite/mal,sgerguri/mal,moquist/mal,profan/mal,hterkelsen/mal,treeform/mal,h8gi/mal,tompko/mal,02N/mal,martinlschumann/mal,sleep/mal,bestwpw/mal,SawyerHood/mal,TheNumberOne/mal,mohsenil85/mal,bestwpw/mal,pocarist/mal,SawyerHood/mal,slideclick/mal,TheNumberOne/mal,qyqx/mal,sleexyz/mal,mohsenil85/mal,jsharf/mal,keith-rollin/mal,tebeka/mal,ekmartin/mal,profan/mal,treeform/mal,U-MA/mal,sleexyz/mal,mpwillson/mal,asterite/mal,enitihas/mal,h3rald/mal,TheNumberOne/mal,v13inc/mal,adamschmideg/mal,bestwpw/mal,Chouser/mal,adamschmideg/mal,fduch2k/mal,slideclick/mal,bestwpw/mal,hterkelsen/mal,sleexyz/mal,rhysd/mal,alphaKAI/mal,02N/mal,pocarist/mal,alantsev/mal,adamschmideg/mal,scgilardi/mal,qyqx/mal,ekmartin/mal,nlfiedler/mal,yohanesyuen/mal,0gajun/mal,rnby-mike/mal,outcastgeek/mal,keith-rollin/mal,alexcrichton/mal,qyqx/mal,alantsev/mal,v13inc/mal,asterite/mal,foresterre/mal,alcherk/mal,moquist/mal,yohanesyuen/mal,hterkelsen/mal,nlfiedler/mal,mohsenil85/mal,eshamster/mal,TheNumberOne/mal,alphaKAI/mal,02N/mal,keith-rollin/mal,keith-rollin/mal,sgerguri/mal,pocarist/mal,sgerguri/mal,Chouser/mal,mohsenil85/mal,DomBlack/mal,yohanesyuen/mal,ekmartin/mal,h8gi/mal,alantsev/mal,DomBlack/mal,asterite/mal,christhekeele/mal,martinlschumann/mal,bestwpw/mal,bestwpw/mal,DomBlack/mal,mpwillson/mal,fdserr/mal,keith-rollin/mal,nlfiedler/mal,foresterre/mal,rnby-mike/mal,nlfiedler/mal,tebeka/mal,jwalsh/mal,qyqx/mal,jwalsh/mal,rnby-mike/mal,tebeka/mal,fduch2k/mal,Chouser/mal,yohanesyuen/mal,czchen/mal,sleep/mal,02N/mal,alcherk/mal,rnby-mike/mal,adamschmideg/mal,tompko/mal,alphaKAI/mal,ekmartin/mal,christhekeele/mal,h3rald/mal,02N/mal,mpwillson/mal,jsharf/mal,0gajun/mal,alantsev/mal,DomBlack/mal,fdserr/mal,hterkelsen/mal,hterkelsen/mal,sleexyz/mal,keith-rollin/mal,alantsev/mal,qyqx/mal,fdserr/mal,czchen/mal,christhekeele/mal,pocarist/mal,hterkelsen/mal,enitihas/mal,TheNumberOne/mal,U-MA/mal,pocarist/mal,eshamster/mal,alcherk/mal,slideclick/mal,martinlschumann/mal,U-MA/mal,DomBlack/mal,h3rald/mal,fdserr/mal,h3rald/mal,rhysd/mal,sgerguri/mal,sleep/mal,foresterre/mal,eshamster/mal,keith-rollin/mal,SawyerHood/mal,jwalsh/mal,0gajun/mal,rnby-mike/mal,U-MA/mal,b0oh/mal,eshamster/mal,tebeka/mal,sgerguri/mal,foresterre/mal,slideclick/mal,tebeka/mal,foresterre/mal,scgilardi/mal,yohanesyuen/mal,christhekeele/mal,DomBlack/mal,bestwpw/mal,alexcrichton/mal,sleep/mal,h3rald/mal,SawyerHood/mal,moquist/mal,profan/mal,qyqx/mal,alcherk/mal,jsharf/mal,christhekeele/mal,Chouser/mal,jwalsh/mal,jwalsh/mal,keith-rollin/mal,0gajun/mal,sleep/mal,keith-rollin/mal,DomBlack/mal,treeform/mal,sleep/mal,TheNumberOne/mal,yohanesyuen/mal,fdserr/mal,rnby-mike/mal,enitihas/mal,02N/mal,ekmartin/mal,alcherk/mal,sleep/mal,fduch2k/mal,hterkelsen/mal,pocarist/mal,qyqx/mal,Chouser/mal,h3rald/mal,v13inc/mal,tompko/mal,v13inc/mal,U-MA/mal,DomBlack/mal,DomBlack/mal,martinlschumann/mal,outcastgeek/mal,jwalsh/mal,hterkelsen/mal,rnby-mike/mal,fduch2k/mal,czchen/mal,slideclick/mal,fduch2k/mal,bestwpw/mal,sgerguri/mal,DomBlack/mal,outcastgeek/mal,alantsev/mal,treeform/mal,bestwpw/mal,fduch2k/mal,outcastgeek/mal,h8gi/mal,alexcrichton/mal,moquist/mal,tompko/mal,02N/mal,ekmartin/mal,Chouser/mal,sgerguri/mal,b0oh/mal,slideclick/mal,eshamster/mal,TheNumberOne/mal,0gajun/mal,alcherk/mal,outcastgeek/mal,alexcrichton/mal,sleexyz/mal,profan/mal,U-MA/mal,slideclick/mal,alantsev/mal,alcherk/mal,v13inc/mal,foresterre/mal,eshamster/mal,Chouser/mal,asterite/mal,treeform/mal,enitihas/mal,rhysd/mal,0gajun/mal
javascript
## Code Before: // IMPORTANT: choose one var RL_LIB = "libreadline"; // NOTE: libreadline is GPL //var RL_LIB = "libedit"; var HISTORY_FILE = require('path').join(process.env.HOME, '.mal-history'); var rlwrap = {}; // namespace for this module in web context var ffi = require('ffi'), fs = require('fs'); var rllib = ffi.Library(RL_LIB, { 'readline': [ 'string', [ 'string' ] ], 'add_history': [ 'int', [ 'string' ] ]}); var rl_history_loaded = false; exports.readline = rlwrap.readline = function(prompt) { prompt = prompt || "user> "; if (!rl_history_loaded) { rl_history_loaded = true; var lines = fs.readFileSync(HISTORY_FILE).toString().split("\n"); // Max of 2000 lines lines = lines.slice(Math.max(lines.length - 2000, 0)); for (var i=0; i<lines.length; i++) { if (lines[i]) { rllib.add_history(lines[i]); } } } var line = rllib.readline(prompt); if (line) { rllib.add_history(line); fs.appendFileSync(HISTORY_FILE, line + "\n"); } return line; }; var readline = exports; ## Instruction: Correct issue where readline bombs out if there's no existing history file. ## Code After: // IMPORTANT: choose one var RL_LIB = "libreadline"; // NOTE: libreadline is GPL //var RL_LIB = "libedit"; var HISTORY_FILE = require('path').join(process.env.HOME, '.mal-history'); var rlwrap = {}; // namespace for this module in web context var ffi = require('ffi'), fs = require('fs'); var rllib = ffi.Library(RL_LIB, { 'readline': [ 'string', [ 'string' ] ], 'add_history': [ 'int', [ 'string' ] ]}); var rl_history_loaded = false; exports.readline = rlwrap.readline = function(prompt) { prompt = prompt || "user> "; if (!rl_history_loaded) { rl_history_loaded = true; var lines = []; if (fs.existsSync(HISTORY_FILE)) { lines = fs.readFileSync(HISTORY_FILE).toString().split("\n"); } // Max of 2000 lines lines = lines.slice(Math.max(lines.length - 2000, 0)); for (var i=0; i<lines.length; i++) { if (lines[i]) { rllib.add_history(lines[i]); } } } var line = rllib.readline(prompt); if (line) { rllib.add_history(line); fs.appendFileSync(HISTORY_FILE, line + "\n"); } return line; }; var readline = exports;
// IMPORTANT: choose one var RL_LIB = "libreadline"; // NOTE: libreadline is GPL //var RL_LIB = "libedit"; var HISTORY_FILE = require('path').join(process.env.HOME, '.mal-history'); var rlwrap = {}; // namespace for this module in web context var ffi = require('ffi'), fs = require('fs'); var rllib = ffi.Library(RL_LIB, { 'readline': [ 'string', [ 'string' ] ], 'add_history': [ 'int', [ 'string' ] ]}); var rl_history_loaded = false; exports.readline = rlwrap.readline = function(prompt) { prompt = prompt || "user> "; if (!rl_history_loaded) { rl_history_loaded = true; + var lines = []; + if (fs.existsSync(HISTORY_FILE)) { - var lines = fs.readFileSync(HISTORY_FILE).toString().split("\n"); ? ^^^ + lines = fs.readFileSync(HISTORY_FILE).toString().split("\n"); ? ^^^ + } // Max of 2000 lines lines = lines.slice(Math.max(lines.length - 2000, 0)); for (var i=0; i<lines.length; i++) { if (lines[i]) { rllib.add_history(lines[i]); } } } var line = rllib.readline(prompt); if (line) { rllib.add_history(line); fs.appendFileSync(HISTORY_FILE, line + "\n"); } return line; }; var readline = exports;
5
0.128205
4
1
0f47cb037f39020e8b2b0243325f1652bde3fee2
common/models/Course.php
common/models/Course.php
<?php namespace common\models; use Yii; /** * This is the model class for table "course". * * @property integer $id * @property string $name */ class Course extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() { return 'course'; } /** * @inheritdoc */ public function rules() { return [ [['name'], 'required'], [['name'], 'string', 'max' => 255], [['name'], 'trim'], [['name'], 'unique'], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => Yii::t('app', 'ID'), 'name' => Yii::t('app', 'Course Name'), ]; } }
<?php namespace common\models; use Yii; /** * This is the model class for table "course". * * @property integer $id * @property string $name */ class Course extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() { return 'course'; } /** * @inheritdoc */ public function rules() { return [ [['name'], 'required'], [['name'], 'string', 'max' => 255], [['name'], 'trim'], [['name'], 'unique'], ['name', 'filter', 'filter' => function ($value) { return preg_replace('!\s+!', ' ', $value); }], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => Yii::t('app', 'ID'), 'name' => Yii::t('app', 'Course Name'), ]; } }
Add filter to replace multiple spaces with only one space in textual attributes
Add filter to replace multiple spaces with only one space in textual attributes
PHP
mit
vundicind/courseeval,vundicind/course-evaluation
php
## Code Before: <?php namespace common\models; use Yii; /** * This is the model class for table "course". * * @property integer $id * @property string $name */ class Course extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() { return 'course'; } /** * @inheritdoc */ public function rules() { return [ [['name'], 'required'], [['name'], 'string', 'max' => 255], [['name'], 'trim'], [['name'], 'unique'], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => Yii::t('app', 'ID'), 'name' => Yii::t('app', 'Course Name'), ]; } } ## Instruction: Add filter to replace multiple spaces with only one space in textual attributes ## Code After: <?php namespace common\models; use Yii; /** * This is the model class for table "course". * * @property integer $id * @property string $name */ class Course extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() { return 'course'; } /** * @inheritdoc */ public function rules() { return [ [['name'], 'required'], [['name'], 'string', 'max' => 255], [['name'], 'trim'], [['name'], 'unique'], ['name', 'filter', 'filter' => function ($value) { return preg_replace('!\s+!', ' ', $value); }], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => Yii::t('app', 'ID'), 'name' => Yii::t('app', 'Course Name'), ]; } }
<?php namespace common\models; use Yii; /** * This is the model class for table "course". * * @property integer $id * @property string $name */ class Course extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() { return 'course'; } /** * @inheritdoc */ public function rules() { return [ [['name'], 'required'], [['name'], 'string', 'max' => 255], [['name'], 'trim'], [['name'], 'unique'], + ['name', 'filter', 'filter' => function ($value) { + return preg_replace('!\s+!', ' ', $value); + }], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => Yii::t('app', 'ID'), 'name' => Yii::t('app', 'Course Name'), ]; } }
3
0.065217
3
0
79791ff9f04ba5686d5f65f2f25716df06f852e8
environment.yml
environment.yml
name: test-environment channels: - omnia - conda-forge - defaults dependencies: - numpy - parmed - simtk.units - six # Testing Deps - pytest >=3.0
name: test-environment channels: - omnia - conda-forge - defaults dependencies: - numpy - parmed - openmm - six # Testing Deps - pytest >=3.0
Install openmm instead of simtk.units
Install openmm instead of simtk.units
YAML
mit
mrshirts/InterMol,mrshirts/InterMol,shirtsgroup/InterMol,shirtsgroup/InterMol
yaml
## Code Before: name: test-environment channels: - omnia - conda-forge - defaults dependencies: - numpy - parmed - simtk.units - six # Testing Deps - pytest >=3.0 ## Instruction: Install openmm instead of simtk.units ## Code After: name: test-environment channels: - omnia - conda-forge - defaults dependencies: - numpy - parmed - openmm - six # Testing Deps - pytest >=3.0
name: test-environment channels: - omnia - conda-forge - defaults dependencies: - numpy - parmed - - simtk.units + - openmm - six # Testing Deps - pytest >=3.0
2
0.166667
1
1
a82a8ed85a73554bc484b3d21193ae620195326f
src/standalone/pannellum.htm
src/standalone/pannellum.htm
<!DOCTYPE HTML> <html> <head> <title>pannellum</title> <meta charset="utf-8"> <link type="text/css" rel="Stylesheet" href="../css/pannellum.css"/> <link type="text/css" rel="Stylesheet" href="standalone.css"/> </head> <body> <div id="container"> <noscript> <div class="pnlm-info-box"> <p>Javascript is required to view this panorama.<br>(It could be worse; you could need a plugin.)</p> </div> </noscript> </div> <script type="text/javascript" src="../js/libpannellum.js"></script> <script type="text/javascript" src="../js/RequestAnimationFrame.js"></script> <script type="text/javascript" src="../js/pannellum.js"></script> <script type="text/javascript" src="standalone.js"></script> </body> </html>
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Pannellum</title> <link type="text/css" rel="Stylesheet" href="../css/pannellum.css"/> <link type="text/css" rel="Stylesheet" href="standalone.css"/> </head> <body> <div id="container"> <noscript> <div class="pnlm-info-box"> <p>Javascript is required to view this panorama.<br>(It could be worse; you could need a plugin.)</p> </div> </noscript> </div> <script type="text/javascript" src="../js/libpannellum.js"></script> <script type="text/javascript" src="../js/RequestAnimationFrame.js"></script> <script type="text/javascript" src="../js/pannellum.js"></script> <script type="text/javascript" src="standalone.js"></script> </body> </html>
Make standalone viewer more mobile friendly.
Make standalone viewer more mobile friendly.
HTML
mit
mpetroff/pannellum,mpetroff/pannellum,psteph801/psteph801.github.io,psteph801/psteph801.github.io,mpetroff/pannellum,psteph801/psteph801.github.io,psteph801/psteph801.github.io,mpetroff/pannellum
html
## Code Before: <!DOCTYPE HTML> <html> <head> <title>pannellum</title> <meta charset="utf-8"> <link type="text/css" rel="Stylesheet" href="../css/pannellum.css"/> <link type="text/css" rel="Stylesheet" href="standalone.css"/> </head> <body> <div id="container"> <noscript> <div class="pnlm-info-box"> <p>Javascript is required to view this panorama.<br>(It could be worse; you could need a plugin.)</p> </div> </noscript> </div> <script type="text/javascript" src="../js/libpannellum.js"></script> <script type="text/javascript" src="../js/RequestAnimationFrame.js"></script> <script type="text/javascript" src="../js/pannellum.js"></script> <script type="text/javascript" src="standalone.js"></script> </body> </html> ## Instruction: Make standalone viewer more mobile friendly. ## Code After: <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Pannellum</title> <link type="text/css" rel="Stylesheet" href="../css/pannellum.css"/> <link type="text/css" rel="Stylesheet" href="standalone.css"/> </head> <body> <div id="container"> <noscript> <div class="pnlm-info-box"> <p>Javascript is required to view this panorama.<br>(It could be worse; you could need a plugin.)</p> </div> </noscript> </div> <script type="text/javascript" src="../js/libpannellum.js"></script> <script type="text/javascript" src="../js/RequestAnimationFrame.js"></script> <script type="text/javascript" src="../js/pannellum.js"></script> <script type="text/javascript" src="standalone.js"></script> </body> </html>
<!DOCTYPE HTML> <html> <head> - <title>pannellum</title> <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Pannellum</title> <link type="text/css" rel="Stylesheet" href="../css/pannellum.css"/> <link type="text/css" rel="Stylesheet" href="standalone.css"/> </head> <body> <div id="container"> <noscript> <div class="pnlm-info-box"> <p>Javascript is required to view this panorama.<br>(It could be worse; you could need a plugin.)</p> </div> </noscript> </div> <script type="text/javascript" src="../js/libpannellum.js"></script> <script type="text/javascript" src="../js/RequestAnimationFrame.js"></script> <script type="text/javascript" src="../js/pannellum.js"></script> <script type="text/javascript" src="standalone.js"></script> </body> </html>
3
0.136364
2
1
2497a28f89cf5607e78fc3f07429cc28361b9d4c
week-4/factorial/my_solution.rb
week-4/factorial/my_solution.rb
def factorial(n) if n == 0 return 1 else #fact = Array.new(n) { |f| f = (f+2)-1} #(THIS WORKS!) fact_array = Array.new(n) { |f| f = f+1} #(THIS WORKS!) #fact = Array.new(n) { |n| f = n+1} #(THIS WORKS!) fact_array.inject(:*) #x = fact_array.inject(:*) #p x end end factorial(10) #def factorial(n) # until ((n-1)=0) # # n*(n-1) # Your code goes here #end
def factorial(n) if n == 0 return 1 else fact_array = Array.new(n) { |f| f = f+1} #(THIS WORKS) fact_array.inject(:*) end end factorial(10)
Clean up factorial ruby file for submission
Clean up factorial ruby file for submission
Ruby
mit
dandersen2/phase-0,dandersen2/phase-0,dandersen2/phase-0
ruby
## Code Before: def factorial(n) if n == 0 return 1 else #fact = Array.new(n) { |f| f = (f+2)-1} #(THIS WORKS!) fact_array = Array.new(n) { |f| f = f+1} #(THIS WORKS!) #fact = Array.new(n) { |n| f = n+1} #(THIS WORKS!) fact_array.inject(:*) #x = fact_array.inject(:*) #p x end end factorial(10) #def factorial(n) # until ((n-1)=0) # # n*(n-1) # Your code goes here #end ## Instruction: Clean up factorial ruby file for submission ## Code After: def factorial(n) if n == 0 return 1 else fact_array = Array.new(n) { |f| f = f+1} #(THIS WORKS) fact_array.inject(:*) end end factorial(10)
def factorial(n) if n == 0 return 1 else - #fact = Array.new(n) { |f| f = (f+2)-1} #(THIS WORKS!) - fact_array = Array.new(n) { |f| f = f+1} #(THIS WORKS!) ? - + fact_array = Array.new(n) { |f| f = f+1} #(THIS WORKS) - #fact = Array.new(n) { |n| f = n+1} #(THIS WORKS!) fact_array.inject(:*) - #x = fact_array.inject(:*) - #p x end end factorial(10) - - - #def factorial(n) - # until ((n-1)=0) - # - # n*(n-1) - # Your code goes here - #end
14
0.636364
1
13
098cd1d2116b1a8433223bbd3441aa389f650978
README.md
README.md
A Task scheduler for node.js, with cron-syntax, specific execution intervals and due dates. ## Instalation ```bash npm install --save node-task-scheduler ``` ## Example usage ``` var ts=require('node-task-scheduler'); global.scheduler = ts; //available to entire application //starting previous tasks ts.start(function(){ console.log("Previous tasks loaded"); }); ... //adding task, to be executed each minute, until endDate scheduler.addTask('hello', {hello: 'world'}, function(args, callback){ console.log("Hello from hello! ", "ARGS: "+args.hello); callback(); }, "0 * * * * *", endDate); ... //removing the task scheduler.removeTask('hello'); ``` ## Wiki Yes, we have a wiki! Click [here](https://github.com/giovanebribeiro/node-task-scheduler/wiki) for details. ## License [MIT](http://opensource.org/licenses/MIT)
A Task scheduler for node.js, with cron-syntax, specific execution intervals and due dates. ## Instalation ```bash npm install --save node-task-scheduler ``` ## Example usage ```javascript var nts=require('node-task-scheduler'); var scheduler = nts.init({ // add some parameters! Check wiki for details }); global.scheduler = scheduler; //available to entire application //starting previous tasks ts.start(function(taskNames){ console.log("Previous tasks loaded:"); taskNames.forEach(function(taskName){ console.log(taskName); }); }); ... //adding task, to be executed each minute, until endDate scheduler.addTask('hello', {hello: 'world'}, function(args, callback){ console.log("Hello from hello! ", "ARGS: "+args.hello); callback(); }, "0 * * * * *", endDate); ... //removing the task scheduler.removeTask('hello', function(){ console.log("Task 'hello' removed."); }); ``` ## Wiki Yes, we have a wiki! Click [here](https://github.com/giovanebribeiro/node-task-scheduler/wiki) for details. ## License [MIT](http://opensource.org/licenses/MIT)
Update readme to include API changes
docs(readme): Update readme to include API changes With the new changes in API functions, the README became old. Update the docs to make them useful again.
Markdown
mit
giovanebribeiro/node-task-scheduler
markdown
## Code Before: A Task scheduler for node.js, with cron-syntax, specific execution intervals and due dates. ## Instalation ```bash npm install --save node-task-scheduler ``` ## Example usage ``` var ts=require('node-task-scheduler'); global.scheduler = ts; //available to entire application //starting previous tasks ts.start(function(){ console.log("Previous tasks loaded"); }); ... //adding task, to be executed each minute, until endDate scheduler.addTask('hello', {hello: 'world'}, function(args, callback){ console.log("Hello from hello! ", "ARGS: "+args.hello); callback(); }, "0 * * * * *", endDate); ... //removing the task scheduler.removeTask('hello'); ``` ## Wiki Yes, we have a wiki! Click [here](https://github.com/giovanebribeiro/node-task-scheduler/wiki) for details. ## License [MIT](http://opensource.org/licenses/MIT) ## Instruction: docs(readme): Update readme to include API changes With the new changes in API functions, the README became old. Update the docs to make them useful again. ## Code After: A Task scheduler for node.js, with cron-syntax, specific execution intervals and due dates. ## Instalation ```bash npm install --save node-task-scheduler ``` ## Example usage ```javascript var nts=require('node-task-scheduler'); var scheduler = nts.init({ // add some parameters! Check wiki for details }); global.scheduler = scheduler; //available to entire application //starting previous tasks ts.start(function(taskNames){ console.log("Previous tasks loaded:"); taskNames.forEach(function(taskName){ console.log(taskName); }); }); ... //adding task, to be executed each minute, until endDate scheduler.addTask('hello', {hello: 'world'}, function(args, callback){ console.log("Hello from hello! ", "ARGS: "+args.hello); callback(); }, "0 * * * * *", endDate); ... //removing the task scheduler.removeTask('hello', function(){ console.log("Task 'hello' removed."); }); ``` ## Wiki Yes, we have a wiki! Click [here](https://github.com/giovanebribeiro/node-task-scheduler/wiki) for details. ## License [MIT](http://opensource.org/licenses/MIT)
A Task scheduler for node.js, with cron-syntax, specific execution intervals and due dates. ## Instalation ```bash npm install --save node-task-scheduler ``` ## Example usage - ``` + ```javascript - var ts=require('node-task-scheduler'); + var nts=require('node-task-scheduler'); ? + + + var scheduler = nts.init({ + // add some parameters! Check wiki for details + }); + - global.scheduler = ts; //available to entire application ? - + global.scheduler = scheduler; //available to entire application ? ++++++++ //starting previous tasks - ts.start(function(){ + ts.start(function(taskNames){ ? +++++++++ - console.log("Previous tasks loaded"); + console.log("Previous tasks loaded:"); ? + + taskNames.forEach(function(taskName){ + console.log(taskName); + }); }); ... //adding task, to be executed each minute, until endDate scheduler.addTask('hello', {hello: 'world'}, function(args, callback){ console.log("Hello from hello! ", "ARGS: "+args.hello); callback(); }, "0 * * * * *", endDate); ... //removing the task - scheduler.removeTask('hello'); ? ^ + scheduler.removeTask('hello', function(){ ? +++++++++++ ^ + console.log("Task 'hello' removed."); + }); ``` ## Wiki Yes, we have a wiki! Click [here](https://github.com/giovanebribeiro/node-task-scheduler/wiki) for details. ## License [MIT](http://opensource.org/licenses/MIT)
22
0.594595
16
6
3c7cc7a27511760884e675afb28f717641267bbe
backend/src/main/java/com/google/rolecall/authentication/CustomResponseAttributesFilter.java
backend/src/main/java/com/google/rolecall/authentication/CustomResponseAttributesFilter.java
package com.google.rolecall.authentication; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletResponse; import com.google.rolecall.Constants; import org.springframework.http.HttpHeaders; public class CustomResponseAttributesFilter implements Filter { @Override public void init(FilterConfig filterConfig) throws ServletException { } @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { chain.doFilter(request, response); addSameSiteCookieAttribute((HttpServletResponse) response); addAuthorizatinAttribute((HttpServletResponse) response); } private void addSameSiteCookieAttribute(HttpServletResponse response) { response.setHeader(HttpHeaders.SET_COOKIE, String.format("%s; %s",response.getHeader(HttpHeaders.SET_COOKIE), "SameSite=None")); } private void addAuthorizatinAttribute(HttpServletResponse response) { response.setHeader(Constants.Headers.AUTHORIZATION, "Bearer"); } }
package com.google.rolecall.authentication; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletResponse; import com.google.rolecall.Constants; import org.springframework.http.HttpHeaders; public class CustomResponseAttributesFilter implements Filter { @Override public void init(FilterConfig filterConfig) throws ServletException { } @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { chain.doFilter(request, response); addSameSiteCookieAttribute((HttpServletResponse) response); addAuthorizatinAttribute((HttpServletResponse) response); } private void addSameSiteCookieAttribute(HttpServletResponse response) { String header = response.getHeader(HttpHeaders.SET_COOKIE); if(header != null & !header.equals("")) { response.setHeader(HttpHeaders.SET_COOKIE,String.format("%s; %s", header, "SameSite=None")); } } private void addAuthorizatinAttribute(HttpServletResponse response) { response.setHeader(Constants.Headers.AUTHORIZATION, "Bearer"); } }
Set different on corner case
Set different on corner case
Java
apache-2.0
googleinterns/role-call,googleinterns/role-call,googleinterns/role-call,googleinterns/role-call,googleinterns/role-call
java
## Code Before: package com.google.rolecall.authentication; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletResponse; import com.google.rolecall.Constants; import org.springframework.http.HttpHeaders; public class CustomResponseAttributesFilter implements Filter { @Override public void init(FilterConfig filterConfig) throws ServletException { } @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { chain.doFilter(request, response); addSameSiteCookieAttribute((HttpServletResponse) response); addAuthorizatinAttribute((HttpServletResponse) response); } private void addSameSiteCookieAttribute(HttpServletResponse response) { response.setHeader(HttpHeaders.SET_COOKIE, String.format("%s; %s",response.getHeader(HttpHeaders.SET_COOKIE), "SameSite=None")); } private void addAuthorizatinAttribute(HttpServletResponse response) { response.setHeader(Constants.Headers.AUTHORIZATION, "Bearer"); } } ## Instruction: Set different on corner case ## Code After: package com.google.rolecall.authentication; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletResponse; import com.google.rolecall.Constants; import org.springframework.http.HttpHeaders; public class CustomResponseAttributesFilter implements Filter { @Override public void init(FilterConfig filterConfig) throws ServletException { } @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { chain.doFilter(request, response); addSameSiteCookieAttribute((HttpServletResponse) response); addAuthorizatinAttribute((HttpServletResponse) response); } private void addSameSiteCookieAttribute(HttpServletResponse response) { String header = response.getHeader(HttpHeaders.SET_COOKIE); if(header != null & !header.equals("")) { response.setHeader(HttpHeaders.SET_COOKIE,String.format("%s; %s", header, "SameSite=None")); } } private void addAuthorizatinAttribute(HttpServletResponse response) { response.setHeader(Constants.Headers.AUTHORIZATION, "Bearer"); } }
package com.google.rolecall.authentication; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletResponse; import com.google.rolecall.Constants; import org.springframework.http.HttpHeaders; public class CustomResponseAttributesFilter implements Filter { @Override public void init(FilterConfig filterConfig) throws ServletException { } @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { chain.doFilter(request, response); addSameSiteCookieAttribute((HttpServletResponse) response); addAuthorizatinAttribute((HttpServletResponse) response); } private void addSameSiteCookieAttribute(HttpServletResponse response) { - response.setHeader(HttpHeaders.SET_COOKIE, ? ^ ^ + String header = response.getHeader(HttpHeaders.SET_COOKIE); ? ++++++++++++++++ ^ ^^ - String.format("%s; %s",response.getHeader(HttpHeaders.SET_COOKIE), "SameSite=None")); + if(header != null & !header.equals("")) { + response.setHeader(HttpHeaders.SET_COOKIE,String.format("%s; %s", header, "SameSite=None")); + } } private void addAuthorizatinAttribute(HttpServletResponse response) { response.setHeader(Constants.Headers.AUTHORIZATION, "Bearer"); } }
6
0.162162
4
2
10d7ae37aa1742604c5cbd8dc62c627e001b2370
app/views/user/show.html.erb
app/views/user/show.html.erb
<h1>User#show</h1> <h2><%= @header %></h2> <% if @user.photo %> <%= image_tag @user.photo(:thumb) %> <% end %> <h2><%= @user.first_name + ' ' + @user.last_name %> </h2> <h4>Email: <%= @user.email %> </h4> <h4>Phone: <%= @user.phone %> </h4> <% if @user == current_user %> <%= link_to 'Edit Profile', edit_user_registration_path %> <% end %>
<h1>User#show</h1> <h2><%= @header %></h2> <% if @user.photo %> <%= image_tag @user.photo(:thumb) %> <% end %> <h4>Email: <%= @user.email %> </h4> <h4>Phone: <%= @user.phone %> </h4> <% if @user == current_user %> <%= link_to 'Edit Profile', edit_user_registration_path %> <% end %>
Delete faulty line in user show
Delete faulty line in user show
HTML+ERB
mit
calblueprint/ashby-village,calblueprint/ashby-village,calblueprint/ashby-village
html+erb
## Code Before: <h1>User#show</h1> <h2><%= @header %></h2> <% if @user.photo %> <%= image_tag @user.photo(:thumb) %> <% end %> <h2><%= @user.first_name + ' ' + @user.last_name %> </h2> <h4>Email: <%= @user.email %> </h4> <h4>Phone: <%= @user.phone %> </h4> <% if @user == current_user %> <%= link_to 'Edit Profile', edit_user_registration_path %> <% end %> ## Instruction: Delete faulty line in user show ## Code After: <h1>User#show</h1> <h2><%= @header %></h2> <% if @user.photo %> <%= image_tag @user.photo(:thumb) %> <% end %> <h4>Email: <%= @user.email %> </h4> <h4>Phone: <%= @user.phone %> </h4> <% if @user == current_user %> <%= link_to 'Edit Profile', edit_user_registration_path %> <% end %>
<h1>User#show</h1> <h2><%= @header %></h2> <% if @user.photo %> <%= image_tag @user.photo(:thumb) %> <% end %> - <h2><%= @user.first_name + ' ' + @user.last_name %> </h2> + <h4>Email: <%= @user.email %> </h4> <h4>Phone: <%= @user.phone %> </h4> <% if @user == current_user %> <%= link_to 'Edit Profile', edit_user_registration_path %> <% end %>
2
0.142857
1
1
b35670890874517745be7dfadb346706dcce792e
start.sh
start.sh
PYTHON="/usr/bin/python3" DEPENDANCIES="webcam python3-pip" for pkg in ${DEPENDANCIES}; do dpkg -l ${pkg} > /dev/null 2>&1 if [ $? -ne 0 ]; then sudo apt-get install ${pkg} fi done ${PYTHON} -c "import PIL" if [ $? -ne 0 ]; then python_ver=`${PYTHON} -V 2>&1 | cut -d" " -f2 | cut -d"." -f1,2` sudo pip-${python_ver} install Pillow fi HRHOME=`dirname $0` sudo ${PYTHON} ${HRHOME}/app/home-recorder.py #> ${HRHOME}/log.log 2>&1
PYTHON="/usr/bin/python3" DEPENDANCIES="webcam python3-pip libjpeg8-dev" for pkg in ${DEPENDANCIES}; do dpkg -l ${pkg} > /dev/null 2>&1 if [ $? -ne 0 ]; then sudo apt-get install ${pkg} fi done if [ ! -f /usr/lib/lbjpeg.so ]; then sudo ln -s /usr/lib/arm-linux-gnueabihf/libjpeg.so /usr/lib/ fi ${PYTHON} -c "import PIL" if [ $? -ne 0 ]; then python_ver=`${PYTHON} -V 2>&1 | cut -d" " -f2 | cut -d"." -f1,2` sudo pip-${python_ver} install Pillow fi HRHOME=`dirname $0` sudo ${PYTHON} ${HRHOME}/app/home-recorder.py > ${HRHOME}/log.log 2>&1 & disown
Fix Pillow installation for jpeg support
Fix Pillow installation for jpeg support
Shell
apache-2.0
nknytk/home-recorder,nknytk/home-recorder
shell
## Code Before: PYTHON="/usr/bin/python3" DEPENDANCIES="webcam python3-pip" for pkg in ${DEPENDANCIES}; do dpkg -l ${pkg} > /dev/null 2>&1 if [ $? -ne 0 ]; then sudo apt-get install ${pkg} fi done ${PYTHON} -c "import PIL" if [ $? -ne 0 ]; then python_ver=`${PYTHON} -V 2>&1 | cut -d" " -f2 | cut -d"." -f1,2` sudo pip-${python_ver} install Pillow fi HRHOME=`dirname $0` sudo ${PYTHON} ${HRHOME}/app/home-recorder.py #> ${HRHOME}/log.log 2>&1 ## Instruction: Fix Pillow installation for jpeg support ## Code After: PYTHON="/usr/bin/python3" DEPENDANCIES="webcam python3-pip libjpeg8-dev" for pkg in ${DEPENDANCIES}; do dpkg -l ${pkg} > /dev/null 2>&1 if [ $? -ne 0 ]; then sudo apt-get install ${pkg} fi done if [ ! -f /usr/lib/lbjpeg.so ]; then sudo ln -s /usr/lib/arm-linux-gnueabihf/libjpeg.so /usr/lib/ fi ${PYTHON} -c "import PIL" if [ $? -ne 0 ]; then python_ver=`${PYTHON} -V 2>&1 | cut -d" " -f2 | cut -d"." -f1,2` sudo pip-${python_ver} install Pillow fi HRHOME=`dirname $0` sudo ${PYTHON} ${HRHOME}/app/home-recorder.py > ${HRHOME}/log.log 2>&1 & disown
PYTHON="/usr/bin/python3" - DEPENDANCIES="webcam python3-pip" + DEPENDANCIES="webcam python3-pip libjpeg8-dev" ? +++++++++++++ for pkg in ${DEPENDANCIES}; do dpkg -l ${pkg} > /dev/null 2>&1 if [ $? -ne 0 ]; then sudo apt-get install ${pkg} fi done + + if [ ! -f /usr/lib/lbjpeg.so ]; then + sudo ln -s /usr/lib/arm-linux-gnueabihf/libjpeg.so /usr/lib/ + fi ${PYTHON} -c "import PIL" if [ $? -ne 0 ]; then python_ver=`${PYTHON} -V 2>&1 | cut -d" " -f2 | cut -d"." -f1,2` sudo pip-${python_ver} install Pillow fi HRHOME=`dirname $0` + sudo ${PYTHON} ${HRHOME}/app/home-recorder.py > ${HRHOME}/log.log 2>&1 & disown - sudo ${PYTHON} ${HRHOME}/app/home-recorder.py - #> ${HRHOME}/log.log 2>&1
9
0.428571
6
3
421c8dcaa765e0f3e75534c149566cfd8326380a
buildout.cfg
buildout.cfg
[buildout] develop = . parts = scripts versions = versions show-picked-versions = true allow-picked-versions = false [versions] coverage = 4.5.3 filelock = 3.0.10 more-itertools = 5.0.0 funcsigs = 1.0.2 pluggy = 0.12.0 py = 1.8.0 pyflakes = 2.2 pytest = 5.2.1 pytest-codecheckers = 0.2 pytest-cov = 2.7.1 pytest-flake8 = 1.0.6 six = 1.12.0 toml = 0.10.0 pathlib2 = 2.3.3 virtualenv = 16.4.3 zc.buildout = 2.13.3 zc.recipe.egg = 2.0.7 attrs = 19.1.0 atomicwrites = 1.3.0 scandir = 1.10.0 flake8 = 3.8.3 wcwidth = 0.2.5 packaging = 20.4 importlib-metadata = 1.7.0 pycodestyle = 2.6.0 mccabe = 0.6.1 pyparsing = 2.4.7 zipp = 3.1.0 [scripts] recipe = zc.recipe.egg eggs = pycountry pytest pytest-flake8 pytest-cov interpreter = py dependent-scripts = true
[buildout] develop = . parts = scripts versions = versions show-picked-versions = true allow-picked-versions = false [versions] coverage = 4.5.3 filelock = 3.0.10 more-itertools = 5.0.0 funcsigs = 1.0.2 pluggy = 0.12.0 py = 1.8.0 pyflakes = 2.2 pytest = 5.2.1 pytest-codecheckers = 0.2 pytest-cov = 2.7.1 pytest-flake8 = 1.0.6 six = 1.12.0 toml = 0.10.0 pathlib2 = 2.3.3 virtualenv = 16.4.3 zc.buildout = 2.13.3 zc.recipe.egg = 2.0.7 attrs = 19.1.0 atomicwrites = 1.3.0 scandir = 1.10.0 flake8 = 3.8.3 wcwidth = 0.2.5 packaging = 20.4 importlib-metadata = 1.7.0 pycodestyle = 2.6.0 mccabe = 0.6.1 pyparsing = 2.4.7 zipp = 3.1.0 typing = 3.7.4.1 [scripts] recipe = zc.recipe.egg eggs = pycountry pytest pytest-flake8 pytest-cov interpreter = py dependent-scripts = true
Fix version for `typing` which seems required for Python 3.9
Fix version for `typing` which seems required for Python 3.9
INI
lgpl-2.1
flyingcircusio/pycountry
ini
## Code Before: [buildout] develop = . parts = scripts versions = versions show-picked-versions = true allow-picked-versions = false [versions] coverage = 4.5.3 filelock = 3.0.10 more-itertools = 5.0.0 funcsigs = 1.0.2 pluggy = 0.12.0 py = 1.8.0 pyflakes = 2.2 pytest = 5.2.1 pytest-codecheckers = 0.2 pytest-cov = 2.7.1 pytest-flake8 = 1.0.6 six = 1.12.0 toml = 0.10.0 pathlib2 = 2.3.3 virtualenv = 16.4.3 zc.buildout = 2.13.3 zc.recipe.egg = 2.0.7 attrs = 19.1.0 atomicwrites = 1.3.0 scandir = 1.10.0 flake8 = 3.8.3 wcwidth = 0.2.5 packaging = 20.4 importlib-metadata = 1.7.0 pycodestyle = 2.6.0 mccabe = 0.6.1 pyparsing = 2.4.7 zipp = 3.1.0 [scripts] recipe = zc.recipe.egg eggs = pycountry pytest pytest-flake8 pytest-cov interpreter = py dependent-scripts = true ## Instruction: Fix version for `typing` which seems required for Python 3.9 ## Code After: [buildout] develop = . parts = scripts versions = versions show-picked-versions = true allow-picked-versions = false [versions] coverage = 4.5.3 filelock = 3.0.10 more-itertools = 5.0.0 funcsigs = 1.0.2 pluggy = 0.12.0 py = 1.8.0 pyflakes = 2.2 pytest = 5.2.1 pytest-codecheckers = 0.2 pytest-cov = 2.7.1 pytest-flake8 = 1.0.6 six = 1.12.0 toml = 0.10.0 pathlib2 = 2.3.3 virtualenv = 16.4.3 zc.buildout = 2.13.3 zc.recipe.egg = 2.0.7 attrs = 19.1.0 atomicwrites = 1.3.0 scandir = 1.10.0 flake8 = 3.8.3 wcwidth = 0.2.5 packaging = 20.4 importlib-metadata = 1.7.0 pycodestyle = 2.6.0 mccabe = 0.6.1 pyparsing = 2.4.7 zipp = 3.1.0 typing = 3.7.4.1 [scripts] recipe = zc.recipe.egg eggs = pycountry pytest pytest-flake8 pytest-cov interpreter = py dependent-scripts = true
[buildout] develop = . parts = scripts versions = versions show-picked-versions = true allow-picked-versions = false [versions] coverage = 4.5.3 filelock = 3.0.10 more-itertools = 5.0.0 funcsigs = 1.0.2 pluggy = 0.12.0 py = 1.8.0 pyflakes = 2.2 pytest = 5.2.1 pytest-codecheckers = 0.2 pytest-cov = 2.7.1 pytest-flake8 = 1.0.6 six = 1.12.0 toml = 0.10.0 pathlib2 = 2.3.3 virtualenv = 16.4.3 zc.buildout = 2.13.3 zc.recipe.egg = 2.0.7 attrs = 19.1.0 atomicwrites = 1.3.0 scandir = 1.10.0 flake8 = 3.8.3 wcwidth = 0.2.5 packaging = 20.4 importlib-metadata = 1.7.0 pycodestyle = 2.6.0 mccabe = 0.6.1 pyparsing = 2.4.7 zipp = 3.1.0 + typing = 3.7.4.1 [scripts] recipe = zc.recipe.egg eggs = pycountry pytest pytest-flake8 pytest-cov interpreter = py dependent-scripts = true
1
0.021739
1
0
f71045b3f2794c0936a253f2abc61ee2184462ad
app/services/variant_overrides_indexed.rb
app/services/variant_overrides_indexed.rb
class VariantOverridesIndexed def initialize(variant_ids, distributor_ids) @variant_ids = variant_ids @distributor_ids = distributor_ids end def indexed variant_overrides.each_with_object(hash_of_hashes) do |variant_override, indexed| indexed[variant_override.hub_id][variant_override.variant] = variant_override end end private attr_reader :variant_ids, :distributor_ids def variant_overrides VariantOverride .joins(:variant) .preload(:variant) .where( hub_id: distributor_ids, variant_id: variant_ids, ) end def hash_of_hashes Hash.new { |h, k| h[k] = {} } end end
class VariantOverridesIndexed def initialize(variant_ids, distributor_ids) @variant_ids = variant_ids @distributor_ids = distributor_ids end def indexed scoped_variant_overrides.each_with_object(hash_of_hashes) do |variant_override, indexed| indexed[variant_override.hub_id][variant_override.variant] = variant_override end end private attr_reader :variant_ids, :distributor_ids def scoped_variant_overrides VariantOverride .joins(:variant) .preload(:variant) .where( hub_id: distributor_ids, variant_id: variant_ids, ) end def hash_of_hashes Hash.new { |hash, key| hash[key] = {} } end end
Improve naming of variables in VariantOverridesIndexed for readability
Improve naming of variables in VariantOverridesIndexed for readability
Ruby
agpl-3.0
Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork
ruby
## Code Before: class VariantOverridesIndexed def initialize(variant_ids, distributor_ids) @variant_ids = variant_ids @distributor_ids = distributor_ids end def indexed variant_overrides.each_with_object(hash_of_hashes) do |variant_override, indexed| indexed[variant_override.hub_id][variant_override.variant] = variant_override end end private attr_reader :variant_ids, :distributor_ids def variant_overrides VariantOverride .joins(:variant) .preload(:variant) .where( hub_id: distributor_ids, variant_id: variant_ids, ) end def hash_of_hashes Hash.new { |h, k| h[k] = {} } end end ## Instruction: Improve naming of variables in VariantOverridesIndexed for readability ## Code After: class VariantOverridesIndexed def initialize(variant_ids, distributor_ids) @variant_ids = variant_ids @distributor_ids = distributor_ids end def indexed scoped_variant_overrides.each_with_object(hash_of_hashes) do |variant_override, indexed| indexed[variant_override.hub_id][variant_override.variant] = variant_override end end private attr_reader :variant_ids, :distributor_ids def scoped_variant_overrides VariantOverride .joins(:variant) .preload(:variant) .where( hub_id: distributor_ids, variant_id: variant_ids, ) end def hash_of_hashes Hash.new { |hash, key| hash[key] = {} } end end
class VariantOverridesIndexed def initialize(variant_ids, distributor_ids) @variant_ids = variant_ids @distributor_ids = distributor_ids end def indexed - variant_overrides.each_with_object(hash_of_hashes) do |variant_override, indexed| + scoped_variant_overrides.each_with_object(hash_of_hashes) do |variant_override, indexed| ? +++++++ indexed[variant_override.hub_id][variant_override.variant] = variant_override end end private attr_reader :variant_ids, :distributor_ids - def variant_overrides + def scoped_variant_overrides ? +++++++ VariantOverride .joins(:variant) .preload(:variant) .where( hub_id: distributor_ids, variant_id: variant_ids, ) end def hash_of_hashes - Hash.new { |h, k| h[k] = {} } + Hash.new { |hash, key| hash[key] = {} } ? +++ ++ +++ ++ end end
6
0.193548
3
3
d690ce7f350daa9e386bd718aeb542573982c41b
CONTRIBUTORS.txt
CONTRIBUTORS.txt
Code Contributors ================= Vijay Bung (gh:vnbang2003 / @vnbang2003) * Deshraj Yadav (gh:DESHRAJ ) shanki (gh:shankig ) Saurabh Kumar (gh:theskumar)* * Possesses commit rights
Code Contributors ================= Vijay Bung (gh:vnbang2003 / @vnbang2003) * Deshraj Yadav (gh:DESHRAJ ) shanki (gh:shankig ) Saurabh Kumar (gh:theskumar)* Kracekumar Ramaraj (gh: kracekumar)* * Possesses commit rights
Add me to list contributors
Add me to list contributors
Text
mit
DESHRAJ/wye,pythonindia/wye,shankig/wye,DESHRAJ/wye,shankisg/wye,harisibrahimkv/wye,pythonindia/wye,pythonindia/wye,pythonindia/wye,harisibrahimkv/wye,shankig/wye,harisibrahimkv/wye,shankisg/wye,harisibrahimkv/wye,shankisg/wye,shankig/wye,shankig/wye,DESHRAJ/wye,shankisg/wye,DESHRAJ/wye
text
## Code Before: Code Contributors ================= Vijay Bung (gh:vnbang2003 / @vnbang2003) * Deshraj Yadav (gh:DESHRAJ ) shanki (gh:shankig ) Saurabh Kumar (gh:theskumar)* * Possesses commit rights ## Instruction: Add me to list contributors ## Code After: Code Contributors ================= Vijay Bung (gh:vnbang2003 / @vnbang2003) * Deshraj Yadav (gh:DESHRAJ ) shanki (gh:shankig ) Saurabh Kumar (gh:theskumar)* Kracekumar Ramaraj (gh: kracekumar)* * Possesses commit rights
Code Contributors ================= Vijay Bung (gh:vnbang2003 / @vnbang2003) * Deshraj Yadav (gh:DESHRAJ ) shanki (gh:shankig ) Saurabh Kumar (gh:theskumar)* + Kracekumar Ramaraj (gh: kracekumar)* * Possesses commit rights
1
0.090909
1
0
a19b4dcbc367edc0b581b63f58ecd0be0a1326b3
spec/helper.rb
spec/helper.rb
require './lib/dtext.rb' require 'nokogiri' include DText TestDir = "./tests" def p(str) DText.parse(str).gsub! /[\n\s]+/, "" end def find_test() begin test = Dir.entries(TestDir).select { |f| f =~ /^[^\.](?=.*\.txt$)/ } rescue print "Read #{TestDir} error\n" return [] end test.map! { |f| "#{TestDir}/#{f}" } test.sort end def r(f) begin ct = File.read(f) rescue print "Read #{f} error\n" return "" end ct.strip end def h(f) Nokogiri::HTML::DocumentFragment.parse(r(f)).to_html.gsub! /[\n\s]+/, "" end
require './lib/dtext.rb' require 'nokogiri' include DText TestDir = "./tests" def p(str) DText.parse(str) end def find_test() begin test = Dir.entries(TestDir).select { |f| f =~ /^[^\.](?=.*\.txt$)/ } rescue print "Read #{TestDir} error\n" return [] end test.map! { |f| "#{TestDir}/#{f}" } test.sort end def r(f) begin ct = File.read(f) rescue print "Read #{f} error\n" return "" end ct.strip end def h(f) Nokogiri::HTML::DocumentFragment.parse(r(f)).to_html end
Revert html formatting, still stuck at pretty format.
Revert html formatting, still stuck at pretty format.
Ruby
isc
moebooru/moebooru,euank/moebooru-thin,moebooru/moebooru,moebooru/moebooru,euank/moebooru-thin,nanaya/moebooru,moebooru/moebooru,nanaya/moebooru,moebooru/moebooru,nanaya/moebooru,euank/moebooru-thin,euank/moebooru-thin,nanaya/moebooru,euank/moebooru-thin,nanaya/moebooru
ruby
## Code Before: require './lib/dtext.rb' require 'nokogiri' include DText TestDir = "./tests" def p(str) DText.parse(str).gsub! /[\n\s]+/, "" end def find_test() begin test = Dir.entries(TestDir).select { |f| f =~ /^[^\.](?=.*\.txt$)/ } rescue print "Read #{TestDir} error\n" return [] end test.map! { |f| "#{TestDir}/#{f}" } test.sort end def r(f) begin ct = File.read(f) rescue print "Read #{f} error\n" return "" end ct.strip end def h(f) Nokogiri::HTML::DocumentFragment.parse(r(f)).to_html.gsub! /[\n\s]+/, "" end ## Instruction: Revert html formatting, still stuck at pretty format. ## Code After: require './lib/dtext.rb' require 'nokogiri' include DText TestDir = "./tests" def p(str) DText.parse(str) end def find_test() begin test = Dir.entries(TestDir).select { |f| f =~ /^[^\.](?=.*\.txt$)/ } rescue print "Read #{TestDir} error\n" return [] end test.map! { |f| "#{TestDir}/#{f}" } test.sort end def r(f) begin ct = File.read(f) rescue print "Read #{f} error\n" return "" end ct.strip end def h(f) Nokogiri::HTML::DocumentFragment.parse(r(f)).to_html end
require './lib/dtext.rb' require 'nokogiri' include DText TestDir = "./tests" def p(str) - DText.parse(str).gsub! /[\n\s]+/, "" + DText.parse(str) end def find_test() begin test = Dir.entries(TestDir).select { |f| f =~ /^[^\.](?=.*\.txt$)/ } rescue print "Read #{TestDir} error\n" return [] end test.map! { |f| "#{TestDir}/#{f}" } test.sort end def r(f) begin ct = File.read(f) rescue print "Read #{f} error\n" return "" end ct.strip end def h(f) - Nokogiri::HTML::DocumentFragment.parse(r(f)).to_html.gsub! /[\n\s]+/, "" ? -------------------- + Nokogiri::HTML::DocumentFragment.parse(r(f)).to_html end
4
0.114286
2
2
c0fae23a9c73645dc82bc52c9783bd01e8c26c65
pkg/apis/pipeline/controller.go
pkg/apis/pipeline/controller.go
/* Copyright 2019 The Tekton 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. */ package pipeline const ( // PipelineRunControllerName holds the name of the PipelineRun controller // nolint: golint PipelineRunControllerName = "PipelineRun" // TaskRunControllerName holds the name of the TaskRun controller TaskRunControllerName = "TaskRun" // TaskRunControllerName holds the name of the PipelineRun controller RunControllerName = "Run" )
/* Copyright 2019 The Tekton 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. */ package pipeline const ( // PipelineRunControllerName holds the name of the PipelineRun controller // nolint: golint PipelineRunControllerName = "PipelineRun" // TaskRunControllerName holds the name of the TaskRun controller TaskRunControllerName = "TaskRun" // RuncControllerName holds the name of the Custom Task controller RunControllerName = "Run" )
Update comment on RunControllerName const
Update comment on RunControllerName const Prior to this commit the code comment for the `RunControllerName` const actually desribed the PipelineRun controller name. This commit updates the code comment to correctly document the custom task controller name.
Go
apache-2.0
tektoncd/pipeline,tektoncd/pipeline
go
## Code Before: /* Copyright 2019 The Tekton 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. */ package pipeline const ( // PipelineRunControllerName holds the name of the PipelineRun controller // nolint: golint PipelineRunControllerName = "PipelineRun" // TaskRunControllerName holds the name of the TaskRun controller TaskRunControllerName = "TaskRun" // TaskRunControllerName holds the name of the PipelineRun controller RunControllerName = "Run" ) ## Instruction: Update comment on RunControllerName const Prior to this commit the code comment for the `RunControllerName` const actually desribed the PipelineRun controller name. This commit updates the code comment to correctly document the custom task controller name. ## Code After: /* Copyright 2019 The Tekton 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. */ package pipeline const ( // PipelineRunControllerName holds the name of the PipelineRun controller // nolint: golint PipelineRunControllerName = "PipelineRun" // TaskRunControllerName holds the name of the TaskRun controller TaskRunControllerName = "TaskRun" // RuncControllerName holds the name of the Custom Task controller RunControllerName = "Run" )
/* Copyright 2019 The Tekton 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. */ package pipeline const ( // PipelineRunControllerName holds the name of the PipelineRun controller // nolint: golint PipelineRunControllerName = "PipelineRun" // TaskRunControllerName holds the name of the TaskRun controller TaskRunControllerName = "TaskRun" - // TaskRunControllerName holds the name of the PipelineRun controller ? ---- ^^^^^^^^^ ^ + // RuncControllerName holds the name of the Custom Task controller ? + ^ ^^^^^^^^^ RunControllerName = "Run" )
2
0.068966
1
1
8b4c168b7734918b17660ae34b0cc9f136872bcf
src/pages/home.jsx
src/pages/home.jsx
import React from 'react'; import Header from '../components/header.jsx'; export default class Home extends React.Component { constructor(props) { super(props); this.onClickButton = this.onClickButton.bind(this); this.state = { counter: 0 }; } onClickButton () { this.setState({ counter: this.state.counter += 1 }); } render () { return (<html> <head> <title>Example of isomorphic App in ES6.</title> </head> <body> <Header name={this.props.name} /> <main> <button onClick={this.onClickButton}>Click ME!!!</button> <span> {this.state.counter} Clicks</span> </main> <script src='./js/app.js'></script> </body> </html> ); } };
import React from 'react'; import Header from '../components/header.jsx'; export default class Home extends React.Component { constructor(props) { super(props); this.onClickButton = this.onClickButton.bind(this); this.state = { counter: 0 }; } onClickButton () { this.setState({ counter: this.state.counter += 1 }); } render () { return (<html> <head> <title>Example of isomorphic App in ES6.</title> </head> <body> <Header name={this.props.name} /> <main> <button onClick={this.onClickButton}>Click ME!!!</button> <span> {this.state.counter} Clicks</span> <p><noscript><strong>You don't have Javascript enabled in your browser</strong></noscript></p> </main> <script src='./js/app.js'></script> </body> </html> ); } };
Add noscript tag with a message
Add noscript tag with a message
JSX
mit
Juan1ll0/es6-react-server-side-render,Juan1ll0/es6-react-server-side-render
jsx
## Code Before: import React from 'react'; import Header from '../components/header.jsx'; export default class Home extends React.Component { constructor(props) { super(props); this.onClickButton = this.onClickButton.bind(this); this.state = { counter: 0 }; } onClickButton () { this.setState({ counter: this.state.counter += 1 }); } render () { return (<html> <head> <title>Example of isomorphic App in ES6.</title> </head> <body> <Header name={this.props.name} /> <main> <button onClick={this.onClickButton}>Click ME!!!</button> <span> {this.state.counter} Clicks</span> </main> <script src='./js/app.js'></script> </body> </html> ); } }; ## Instruction: Add noscript tag with a message ## Code After: import React from 'react'; import Header from '../components/header.jsx'; export default class Home extends React.Component { constructor(props) { super(props); this.onClickButton = this.onClickButton.bind(this); this.state = { counter: 0 }; } onClickButton () { this.setState({ counter: this.state.counter += 1 }); } render () { return (<html> <head> <title>Example of isomorphic App in ES6.</title> </head> <body> <Header name={this.props.name} /> <main> <button onClick={this.onClickButton}>Click ME!!!</button> <span> {this.state.counter} Clicks</span> <p><noscript><strong>You don't have Javascript enabled in your browser</strong></noscript></p> </main> <script src='./js/app.js'></script> </body> </html> ); } };
import React from 'react'; import Header from '../components/header.jsx'; export default class Home extends React.Component { constructor(props) { super(props); this.onClickButton = this.onClickButton.bind(this); this.state = { counter: 0 }; } onClickButton () { this.setState({ counter: this.state.counter += 1 }); } render () { return (<html> <head> <title>Example of isomorphic App in ES6.</title> </head> <body> <Header name={this.props.name} /> <main> <button onClick={this.onClickButton}>Click ME!!!</button> <span> {this.state.counter} Clicks</span> + <p><noscript><strong>You don't have Javascript enabled in your browser</strong></noscript></p> </main> <script src='./js/app.js'></script> </body> </html> ); } };
1
0.028571
1
0
1cb091055ea6df3d432ba81c10a3e1a14db2b6af
.gitlab-ci.yml
.gitlab-ci.yml
image: registry.gitlab.com/notch8/scripts/builder:latest services: - docker:dind stages: - build # - test # - review # - staging # - production variables: DOCKER_DRIVER: overlay REGISTRY_HOST: registry.gitlab.com REGISTRY_URI: /notch8/rutgers-vdc SITE_URI_BASE: hykuup.com before_script: - export TAG=${CI_COMMIT_SHA:0:8} - export BRANCH=${CI_COMMIT_REF_NAME} - export REGISTRY_HOST=${CI_REGISTRY} - export REGISTRY_URI="/${CI_PROJECT_PATH}" - touch .env.development - touch .env.production base: stage: build script: - docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY - sc build -s base - sc push -s base when: manual tags: - docker build: stage: build script: - docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY - sc build - sc push - docker tag $CI_REGISTRY_IMAGE:$TAG $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME tags: - docker
image: registry.gitlab.com/notch8/scripts/builder:latest services: - docker:dind stages: - build # - test # - review # - staging # - production variables: DOCKER_DRIVER: overlay REGISTRY_HOST: registry.gitlab.com REGISTRY_URI: /notch8/rutgers-vdc SITE_URI_BASE: hykuup.com before_script: - export TAG=${CI_COMMIT_SHA:0:8} - export BRANCH=${CI_COMMIT_REF_NAME} - export REGISTRY_HOST=${CI_REGISTRY} - export REGISTRY_URI="/${CI_PROJECT_PATH}" build: stage: build script: - docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY - sc build - sc push - docker tag $CI_REGISTRY_IMAGE $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA tags: - docker
Fix CI pipeline `build` stage
Fix CI pipeline `build` stage This frontloads part of !9 to get the `build` stage passing. The rest of !9 is blocked on a good CI configuration for Solr, but in the meanwhile we can have passing builds.
YAML
apache-2.0
dibbs-vdc/ccql,dibbs-vdc/ccql,dibbs-vdc/ccql,dibbs-vdc/ccql
yaml
## Code Before: image: registry.gitlab.com/notch8/scripts/builder:latest services: - docker:dind stages: - build # - test # - review # - staging # - production variables: DOCKER_DRIVER: overlay REGISTRY_HOST: registry.gitlab.com REGISTRY_URI: /notch8/rutgers-vdc SITE_URI_BASE: hykuup.com before_script: - export TAG=${CI_COMMIT_SHA:0:8} - export BRANCH=${CI_COMMIT_REF_NAME} - export REGISTRY_HOST=${CI_REGISTRY} - export REGISTRY_URI="/${CI_PROJECT_PATH}" - touch .env.development - touch .env.production base: stage: build script: - docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY - sc build -s base - sc push -s base when: manual tags: - docker build: stage: build script: - docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY - sc build - sc push - docker tag $CI_REGISTRY_IMAGE:$TAG $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME tags: - docker ## Instruction: Fix CI pipeline `build` stage This frontloads part of !9 to get the `build` stage passing. The rest of !9 is blocked on a good CI configuration for Solr, but in the meanwhile we can have passing builds. ## Code After: image: registry.gitlab.com/notch8/scripts/builder:latest services: - docker:dind stages: - build # - test # - review # - staging # - production variables: DOCKER_DRIVER: overlay REGISTRY_HOST: registry.gitlab.com REGISTRY_URI: /notch8/rutgers-vdc SITE_URI_BASE: hykuup.com before_script: - export TAG=${CI_COMMIT_SHA:0:8} - export BRANCH=${CI_COMMIT_REF_NAME} - export REGISTRY_HOST=${CI_REGISTRY} - export REGISTRY_URI="/${CI_PROJECT_PATH}" build: stage: build script: - docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY - sc build - sc push - docker tag $CI_REGISTRY_IMAGE $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA tags: - docker
image: registry.gitlab.com/notch8/scripts/builder:latest services: - docker:dind stages: - build # - test # - review # - staging # - production variables: DOCKER_DRIVER: overlay REGISTRY_HOST: registry.gitlab.com REGISTRY_URI: /notch8/rutgers-vdc SITE_URI_BASE: hykuup.com before_script: - export TAG=${CI_COMMIT_SHA:0:8} - export BRANCH=${CI_COMMIT_REF_NAME} - export REGISTRY_HOST=${CI_REGISTRY} - export REGISTRY_URI="/${CI_PROJECT_PATH}" - - touch .env.development - - touch .env.production - - base: - stage: build - script: - - docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY - - sc build -s base - - sc push -s base - when: manual - tags: - - docker build: stage: build script: - docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY - sc build - sc push - - docker tag $CI_REGISTRY_IMAGE:$TAG $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME ? ----- ^^^^^ -- + - docker tag $CI_REGISTRY_IMAGE $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA ? ^^ - - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME ? ^^^^^ -- + - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA ? ^^ tags: - docker
16
0.363636
2
14
2446b35ac06ab2ce6becd052afdeda2fde2d0d89
media/templates/osl_flatpages/display.html
media/templates/osl_flatpages/display.html
{% extends "base.html" %} {% block title %}{{ title }}{% endblock %} {% block description %}{{ description }}{% endblock %} {% block content %}{{ content }}{% endblock %}
{% extends "base.html" %} {% block title %}{{ page.title }}{% endblock %} {% block description %}{{ page.description }}{% endblock %} {% block content %}{{ content }}{% endblock %}
Fix flatpage template to output title and description
Fix flatpage template to output title and description
HTML
bsd-3-clause
jeffcharles/Open-Source-at-Laurier-Website,jeffcharles/Open-Source-at-Laurier-Website,jeffcharles/Open-Source-at-Laurier-Website,jeffcharles/Open-Source-at-Laurier-Website
html
## Code Before: {% extends "base.html" %} {% block title %}{{ title }}{% endblock %} {% block description %}{{ description }}{% endblock %} {% block content %}{{ content }}{% endblock %} ## Instruction: Fix flatpage template to output title and description ## Code After: {% extends "base.html" %} {% block title %}{{ page.title }}{% endblock %} {% block description %}{{ page.description }}{% endblock %} {% block content %}{{ content }}{% endblock %}
{% extends "base.html" %} - {% block title %}{{ title }}{% endblock %} + {% block title %}{{ page.title }}{% endblock %} ? +++++ - {% block description %}{{ description }}{% endblock %} + {% block description %}{{ page.description }}{% endblock %} ? +++++ {% block content %}{{ content }}{% endblock %}
4
0.571429
2
2
a08a2e797d2783defdd2551bf2ca203e54a3702b
js/main.js
js/main.js
// Github API call according to their json-p dox function callGHAPI(url, callback) { var apiRoot = "https://api.github.com/"; var script = document.createElement("script"); script.src = apiRoot + url + "?callback=" + callback; document.getElementsByTagName("head")[0].appendChild(script); } // validate the user input function validateInput() { if ($("#username").val().length > 0 && $("#repository").val().length > 0) { $("#get-stats-button").prop("disabled", false); } else { $("#get-stats-button").prop("disabled", true); } } // Callback function for getting user repositories function getUserReposCB(response) { var data = response.data; var repoNames = []; $.each(data, function(index, item) { repoNames.push(data[index].name); }); $("#repository").typeahead({source: repoNames}); } // The main function $(function() { validateInput(); $("#username, #repository").keyup(validateInput); $("#username").change(function() { var user = $("#username").val(); callGHAPI("users/" + user + "/repos", "getUserReposCB"); }); });
// Github API call according to their json-p dox function callGHAPI(url, callback) { var apiRoot = "https://api.github.com/"; var script = document.createElement("script"); script.src = apiRoot + url + "?callback=" + callback; document.getElementsByTagName("head")[0].appendChild(script); } // validate the user input function validateInput() { if ($("#username").val().length > 0 && $("#repository").val().length > 0) { $("#get-stats-button").prop("disabled", false); } else { $("#get-stats-button").prop("disabled", true); } } // Callback function for getting user repositories function getUserReposCB(response) { var data = response.data; var repoNames = []; $.each(data, function(index, item) { repoNames.push(data[index].name); }); var autoComplete = $('#repository').typeahead(); autoComplete.data('typeahead').source = repoNames; } // The main function $(function() { validateInput(); $("#username, #repository").keyup(validateInput); $("#username").change(function() { var user = $("#username").val(); callGHAPI("users/" + user + "/repos", "getUserReposCB"); }); });
Update typeahead source when different user entered
Update typeahead source when different user entered
JavaScript
mit
Somsubhra/github-release-stats,Somsubhra/github-release-stats
javascript
## Code Before: // Github API call according to their json-p dox function callGHAPI(url, callback) { var apiRoot = "https://api.github.com/"; var script = document.createElement("script"); script.src = apiRoot + url + "?callback=" + callback; document.getElementsByTagName("head")[0].appendChild(script); } // validate the user input function validateInput() { if ($("#username").val().length > 0 && $("#repository").val().length > 0) { $("#get-stats-button").prop("disabled", false); } else { $("#get-stats-button").prop("disabled", true); } } // Callback function for getting user repositories function getUserReposCB(response) { var data = response.data; var repoNames = []; $.each(data, function(index, item) { repoNames.push(data[index].name); }); $("#repository").typeahead({source: repoNames}); } // The main function $(function() { validateInput(); $("#username, #repository").keyup(validateInput); $("#username").change(function() { var user = $("#username").val(); callGHAPI("users/" + user + "/repos", "getUserReposCB"); }); }); ## Instruction: Update typeahead source when different user entered ## Code After: // Github API call according to their json-p dox function callGHAPI(url, callback) { var apiRoot = "https://api.github.com/"; var script = document.createElement("script"); script.src = apiRoot + url + "?callback=" + callback; document.getElementsByTagName("head")[0].appendChild(script); } // validate the user input function validateInput() { if ($("#username").val().length > 0 && $("#repository").val().length > 0) { $("#get-stats-button").prop("disabled", false); } else { $("#get-stats-button").prop("disabled", true); } } // Callback function for getting user repositories function getUserReposCB(response) { var data = response.data; var repoNames = []; $.each(data, function(index, item) { repoNames.push(data[index].name); }); var autoComplete = $('#repository').typeahead(); autoComplete.data('typeahead').source = repoNames; } // The main function $(function() { validateInput(); $("#username, #repository").keyup(validateInput); $("#username").change(function() { var user = $("#username").val(); callGHAPI("users/" + user + "/repos", "getUserReposCB"); }); });
// Github API call according to their json-p dox function callGHAPI(url, callback) { var apiRoot = "https://api.github.com/"; var script = document.createElement("script"); script.src = apiRoot + url + "?callback=" + callback; document.getElementsByTagName("head")[0].appendChild(script); } // validate the user input function validateInput() { if ($("#username").val().length > 0 && $("#repository").val().length > 0) { $("#get-stats-button").prop("disabled", false); } else { $("#get-stats-button").prop("disabled", true); } } // Callback function for getting user repositories function getUserReposCB(response) { var data = response.data; var repoNames = []; $.each(data, function(index, item) { repoNames.push(data[index].name); }); - $("#repository").typeahead({source: repoNames}); + var autoComplete = $('#repository').typeahead(); + autoComplete.data('typeahead').source = repoNames; } // The main function $(function() { validateInput(); $("#username, #repository").keyup(validateInput); $("#username").change(function() { var user = $("#username").val(); callGHAPI("users/" + user + "/repos", "getUserReposCB"); }); });
3
0.081081
2
1
0ad90feb3ad047f4f6f802702bf140ba44d26610
lib/facter/esx_version.rb
lib/facter/esx_version.rb
require 'facter' # Author: Francois Deppierraz <francois.deppierraz@nimag.net> # Idea and address/version mapping comes from # http://virtwo.blogspot.ch/2010/10/which-esx-version-am-i-running-on.html Facter.add(:esx_version) do confine :virtual => :vmware setcode do if File::executable?("/usr/sbin/dmidecode") result = Facter::Util::Resolution.exec("/usr/sbin/dmidecode 2>&1") if result bios_address = /^BIOS Information$.+?Address: (0x[0-9A-F]{5})$/m.match(result)[1] case bios_address when '0xE8480' '2.5' when '0xE7C70' '3.0' when '0xE7910' '3.5' when '0xEA6C0' '4' when '0xEA550' '4 update 1' when '0xEA2E0' '4.1' when '0xE72C0' '5' when '0xEA0C0' '5.1' else "unknown, please report #{bios_address}" end end end end end
require 'facter' # Author: Francois Deppierraz <francois.deppierraz@nimag.net> # Idea and address/version mapping comes from # http://virtwo.blogspot.ch/2010/10/which-esx-version-am-i-running-on.html Facter.add(:esx_version) do confine :virtual => :vmware setcode do if File::executable?("/usr/sbin/dmidecode") result = Facter::Util::Resolution.exec("/usr/sbin/dmidecode 2>&1") if result begin bios_address = /^BIOS Information$.+?Address: (0x[0-9A-F]{5})$/m.match(result)[1] case bios_address when '0xE8480' '2.5' when '0xE7C70' '3.0' when '0xE7910' '3.5' when '0xEA6C0' '4' when '0xEA550' '4 update 1' when '0xEA2E0' '4.1' when '0xE72C0' '5' when '0xEA0C0' '5.1' else "unknown, please report #{bios_address}" end rescue 'n/a' end end end end end
Handle case where facter is run as a non-root user
Handle case where facter is run as a non-root user
Ruby
apache-2.0
esalberg/puppet-vmwaretools,craigwatson/puppet-vmwaretools,craigwatson/puppet-vmwaretools,esalberg/puppet-vmwaretools
ruby
## Code Before: require 'facter' # Author: Francois Deppierraz <francois.deppierraz@nimag.net> # Idea and address/version mapping comes from # http://virtwo.blogspot.ch/2010/10/which-esx-version-am-i-running-on.html Facter.add(:esx_version) do confine :virtual => :vmware setcode do if File::executable?("/usr/sbin/dmidecode") result = Facter::Util::Resolution.exec("/usr/sbin/dmidecode 2>&1") if result bios_address = /^BIOS Information$.+?Address: (0x[0-9A-F]{5})$/m.match(result)[1] case bios_address when '0xE8480' '2.5' when '0xE7C70' '3.0' when '0xE7910' '3.5' when '0xEA6C0' '4' when '0xEA550' '4 update 1' when '0xEA2E0' '4.1' when '0xE72C0' '5' when '0xEA0C0' '5.1' else "unknown, please report #{bios_address}" end end end end end ## Instruction: Handle case where facter is run as a non-root user ## Code After: require 'facter' # Author: Francois Deppierraz <francois.deppierraz@nimag.net> # Idea and address/version mapping comes from # http://virtwo.blogspot.ch/2010/10/which-esx-version-am-i-running-on.html Facter.add(:esx_version) do confine :virtual => :vmware setcode do if File::executable?("/usr/sbin/dmidecode") result = Facter::Util::Resolution.exec("/usr/sbin/dmidecode 2>&1") if result begin bios_address = /^BIOS Information$.+?Address: (0x[0-9A-F]{5})$/m.match(result)[1] case bios_address when '0xE8480' '2.5' when '0xE7C70' '3.0' when '0xE7910' '3.5' when '0xEA6C0' '4' when '0xEA550' '4 update 1' when '0xEA2E0' '4.1' when '0xE72C0' '5' when '0xEA0C0' '5.1' else "unknown, please report #{bios_address}" end rescue 'n/a' end end end end end
require 'facter' # Author: Francois Deppierraz <francois.deppierraz@nimag.net> # Idea and address/version mapping comes from # http://virtwo.blogspot.ch/2010/10/which-esx-version-am-i-running-on.html Facter.add(:esx_version) do confine :virtual => :vmware setcode do if File::executable?("/usr/sbin/dmidecode") result = Facter::Util::Resolution.exec("/usr/sbin/dmidecode 2>&1") if result + begin - bios_address = /^BIOS Information$.+?Address: (0x[0-9A-F]{5})$/m.match(result)[1] + bios_address = /^BIOS Information$.+?Address: (0x[0-9A-F]{5})$/m.match(result)[1] ? ++ - case bios_address + case bios_address ? ++ - when '0xE8480' + when '0xE8480' ? ++ - '2.5' + '2.5' ? ++ - when '0xE7C70' + when '0xE7C70' ? ++ - '3.0' + '3.0' ? ++ - when '0xE7910' + when '0xE7910' ? ++ - '3.5' + '3.5' ? ++ - when '0xEA6C0' + when '0xEA6C0' ? ++ - '4' + '4' ? ++ - when '0xEA550' + when '0xEA550' ? ++ - '4 update 1' + '4 update 1' ? ++ - when '0xEA2E0' + when '0xEA2E0' ? ++ - '4.1' + '4.1' ? ++ - when '0xE72C0' + when '0xE72C0' ? ++ - '5' + '5' ? ++ - when '0xEA0C0' + when '0xEA0C0' ? ++ - '5.1' + '5.1' ? ++ - else + else ? ++ - "unknown, please report #{bios_address}" + "unknown, please report #{bios_address}" ? ++ + end + rescue + 'n/a' end end end end end
44
1.157895
24
20
e68fb9c0b3bd3a765abdc3299f793baa6c493eb4
src/lang-xpath/main/uk/co/reecedunn/intellij/plugin/xpath/lang/refactoring/XPathRefactoringSupportProvider.kt
src/lang-xpath/main/uk/co/reecedunn/intellij/plugin/xpath/lang/refactoring/XPathRefactoringSupportProvider.kt
/* * Copyright (C) 2021 Reece H. Dunn * * 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. */ package uk.co.reecedunn.intellij.plugin.xpath.lang.refactoring import com.intellij.lang.refactoring.RefactoringSupportProvider import com.intellij.psi.PsiElement class XPathRefactoringSupportProvider : RefactoringSupportProvider() { /** * Determines whether VariableInplaceRenameHandler should be used. */ override fun isInplaceRenameAvailable(element: PsiElement, context: PsiElement?): Boolean { return false } /** * Determines whether MemberInplaceRenameHandler should be used. */ override fun isMemberInplaceRenameAvailable(element: PsiElement, context: PsiElement?): Boolean { return false } /** * Determines whether SafeDeleteProcessor should be used. */ override fun isSafeDeleteAvailable(element: PsiElement): Boolean { return false } }
/* * Copyright (C) 2021 Reece H. Dunn * * 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. */ package uk.co.reecedunn.intellij.plugin.xpath.lang.refactoring import com.intellij.lang.refactoring.RefactoringSupportProvider import com.intellij.psi.PsiElement import uk.co.reecedunn.intellij.plugin.xpm.optree.variable.XpmVariableDefinition class XPathRefactoringSupportProvider : RefactoringSupportProvider() { /** * Determines whether VariableInplaceRenameHandler should be used. */ override fun isInplaceRenameAvailable(element: PsiElement, context: PsiElement?): Boolean { return element.parent is XpmVariableDefinition } /** * Determines whether MemberInplaceRenameHandler should be used. */ override fun isMemberInplaceRenameAvailable(element: PsiElement, context: PsiElement?): Boolean { return false } /** * Determines whether SafeDeleteProcessor should be used. */ override fun isSafeDeleteAvailable(element: PsiElement): Boolean { return false } }
Use VariableInplaceRenameHandler for XpmVariableDefinition elements.
Use VariableInplaceRenameHandler for XpmVariableDefinition elements.
Kotlin
apache-2.0
rhdunn/xquery-intellij-plugin,rhdunn/xquery-intellij-plugin
kotlin
## Code Before: /* * Copyright (C) 2021 Reece H. Dunn * * 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. */ package uk.co.reecedunn.intellij.plugin.xpath.lang.refactoring import com.intellij.lang.refactoring.RefactoringSupportProvider import com.intellij.psi.PsiElement class XPathRefactoringSupportProvider : RefactoringSupportProvider() { /** * Determines whether VariableInplaceRenameHandler should be used. */ override fun isInplaceRenameAvailable(element: PsiElement, context: PsiElement?): Boolean { return false } /** * Determines whether MemberInplaceRenameHandler should be used. */ override fun isMemberInplaceRenameAvailable(element: PsiElement, context: PsiElement?): Boolean { return false } /** * Determines whether SafeDeleteProcessor should be used. */ override fun isSafeDeleteAvailable(element: PsiElement): Boolean { return false } } ## Instruction: Use VariableInplaceRenameHandler for XpmVariableDefinition elements. ## Code After: /* * Copyright (C) 2021 Reece H. Dunn * * 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. */ package uk.co.reecedunn.intellij.plugin.xpath.lang.refactoring import com.intellij.lang.refactoring.RefactoringSupportProvider import com.intellij.psi.PsiElement import uk.co.reecedunn.intellij.plugin.xpm.optree.variable.XpmVariableDefinition class XPathRefactoringSupportProvider : RefactoringSupportProvider() { /** * Determines whether VariableInplaceRenameHandler should be used. */ override fun isInplaceRenameAvailable(element: PsiElement, context: PsiElement?): Boolean { return element.parent is XpmVariableDefinition } /** * Determines whether MemberInplaceRenameHandler should be used. */ override fun isMemberInplaceRenameAvailable(element: PsiElement, context: PsiElement?): Boolean { return false } /** * Determines whether SafeDeleteProcessor should be used. */ override fun isSafeDeleteAvailable(element: PsiElement): Boolean { return false } }
/* * Copyright (C) 2021 Reece H. Dunn * * 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. */ package uk.co.reecedunn.intellij.plugin.xpath.lang.refactoring import com.intellij.lang.refactoring.RefactoringSupportProvider import com.intellij.psi.PsiElement + import uk.co.reecedunn.intellij.plugin.xpm.optree.variable.XpmVariableDefinition class XPathRefactoringSupportProvider : RefactoringSupportProvider() { /** * Determines whether VariableInplaceRenameHandler should be used. */ override fun isInplaceRenameAvailable(element: PsiElement, context: PsiElement?): Boolean { - return false + return element.parent is XpmVariableDefinition } /** * Determines whether MemberInplaceRenameHandler should be used. */ override fun isMemberInplaceRenameAvailable(element: PsiElement, context: PsiElement?): Boolean { return false } /** * Determines whether SafeDeleteProcessor should be used. */ override fun isSafeDeleteAvailable(element: PsiElement): Boolean { return false } }
3
0.071429
2
1
e06c2f726d0471e9693f444086088c507753e939
README.md
README.md
[![Build Status](https://travis-ci.org/dubov94/vue-jwt-mongo.svg?branch=master)](https://travis-ci.org/dubov94/vue-jwt-mongo) [![codecov](https://codecov.io/gh/dubov94/vue-jwt-mongo/branch/master/graph/badge.svg)](https://codecov.io/gh/dubov94/vue-jwt-mongo)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/dubov94/vue-jwt-mongo/blob/master/LICENSE) [![Dependencies](https://david-dm.org/dubov94/vue-jwt-mongo.svg)](https://david-dm.org/dubov94/vue-jwt-mongo) [![Build](https://travis-ci.org/dubov94/vue-jwt-mongo.svg?branch=master)](https://travis-ci.org/dubov94/vue-jwt-mongo) [![Coverage](https://codecov.io/gh/dubov94/vue-jwt-mongo/branch/master/graph/badge.svg)](https://codecov.io/gh/dubov94/vue-jwt-mongo)
Add License and Dependencies badges
Add License and Dependencies badges
Markdown
mit
dubov94/vue-jwt-mongo
markdown
## Code Before: [![Build Status](https://travis-ci.org/dubov94/vue-jwt-mongo.svg?branch=master)](https://travis-ci.org/dubov94/vue-jwt-mongo) [![codecov](https://codecov.io/gh/dubov94/vue-jwt-mongo/branch/master/graph/badge.svg)](https://codecov.io/gh/dubov94/vue-jwt-mongo) ## Instruction: Add License and Dependencies badges ## Code After: [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/dubov94/vue-jwt-mongo/blob/master/LICENSE) [![Dependencies](https://david-dm.org/dubov94/vue-jwt-mongo.svg)](https://david-dm.org/dubov94/vue-jwt-mongo) [![Build](https://travis-ci.org/dubov94/vue-jwt-mongo.svg?branch=master)](https://travis-ci.org/dubov94/vue-jwt-mongo) [![Coverage](https://codecov.io/gh/dubov94/vue-jwt-mongo/branch/master/graph/badge.svg)](https://codecov.io/gh/dubov94/vue-jwt-mongo)
+ [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/dubov94/vue-jwt-mongo/blob/master/LICENSE) + [![Dependencies](https://david-dm.org/dubov94/vue-jwt-mongo.svg)](https://david-dm.org/dubov94/vue-jwt-mongo) - [![Build Status](https://travis-ci.org/dubov94/vue-jwt-mongo.svg?branch=master)](https://travis-ci.org/dubov94/vue-jwt-mongo) ? ------- + [![Build](https://travis-ci.org/dubov94/vue-jwt-mongo.svg?branch=master)](https://travis-ci.org/dubov94/vue-jwt-mongo) - [![codecov](https://codecov.io/gh/dubov94/vue-jwt-mongo/branch/master/graph/badge.svg)](https://codecov.io/gh/dubov94/vue-jwt-mongo) ? ^^^^^ + [![Coverage](https://codecov.io/gh/dubov94/vue-jwt-mongo/branch/master/graph/badge.svg)](https://codecov.io/gh/dubov94/vue-jwt-mongo) ? ^ +++++
6
3
4
2
39591fedee9d3ecbf4dbc90941da2a47af0babbf
cordova/config.xml
cordova/config.xml
<?xml version='1.0' encoding='utf-8'?> <widget id="com.bitpay.copay" version="1.0.1" android-versionCode="36" ios-CFBundleVersion="1.0.1"> <name>Copay</name> <description> A secure bitcoin wallet for friends and companies. </description> <author email="support@bitpay.com" href="https://copay.io"> BitPay Inc. </author> <content src="index.html" /> <access origin="*" /> <preference name="AndroidPersistentFileLocation" value="Internal" /> <preference name="iosPersistentFileLocation" value="Library" /> <preference name="DisallowOverscroll" value="true"/> <preference name="HideKeyboardFormAccessoryBar" value="true"/> <preference name="SplashScreen" value="copayscreen" /> <preference name="SplashScreenDelay" value="10000" /> <preference name="BackgroundColor" value="#2C3E50" /> <preference name="StatusBarOverlaysWebView" value="false" /> <preference name="StatusBarBackgroundColor" value="#2C3E50" /> <preference name="StatusBarStyle" value="lightcontent" /> <preference name="BackupWebStorage" value="none"/> <preference name="windows-target-version" value="8.1"/> <preference name="Orientation" value="portrait" /> </widget>
<?xml version='1.0' encoding='utf-8'?> <widget id="com.startcoin.startwallet" version="1.0.1" android-versionCode="36" ios-CFBundleVersion="1.0.1"> <name>StartWallet</name> <description> A secure StartCOIN wallet for friends and companies. </description> <author email="hello@startjoin.com" href="https://startwalet.com"> StartCOIN Holdings Ltd </author> <content src="index.html" /> <access origin="*" /> <preference name="AndroidPersistentFileLocation" value="Internal" /> <preference name="iosPersistentFileLocation" value="Library" /> <preference name="DisallowOverscroll" value="true"/> <preference name="HideKeyboardFormAccessoryBar" value="true"/> <preference name="SplashScreen" value="copayscreen" /> <preference name="SplashScreenDelay" value="10000" /> <preference name="BackgroundColor" value="#2C3E50" /> <preference name="StatusBarOverlaysWebView" value="false" /> <preference name="StatusBarBackgroundColor" value="#2C3E50" /> <preference name="StatusBarStyle" value="lightcontent" /> <preference name="BackupWebStorage" value="none"/> <preference name="windows-target-version" value="8.1"/> <preference name="Orientation" value="portrait" /> </widget>
Update build conf for mobile app
Update build conf for mobile app
XML
mit
startcoin-project/startwallet,startcoin-project/startwallet,startcoin-project/startwallet,startcoin-project/startwallet
xml
## Code Before: <?xml version='1.0' encoding='utf-8'?> <widget id="com.bitpay.copay" version="1.0.1" android-versionCode="36" ios-CFBundleVersion="1.0.1"> <name>Copay</name> <description> A secure bitcoin wallet for friends and companies. </description> <author email="support@bitpay.com" href="https://copay.io"> BitPay Inc. </author> <content src="index.html" /> <access origin="*" /> <preference name="AndroidPersistentFileLocation" value="Internal" /> <preference name="iosPersistentFileLocation" value="Library" /> <preference name="DisallowOverscroll" value="true"/> <preference name="HideKeyboardFormAccessoryBar" value="true"/> <preference name="SplashScreen" value="copayscreen" /> <preference name="SplashScreenDelay" value="10000" /> <preference name="BackgroundColor" value="#2C3E50" /> <preference name="StatusBarOverlaysWebView" value="false" /> <preference name="StatusBarBackgroundColor" value="#2C3E50" /> <preference name="StatusBarStyle" value="lightcontent" /> <preference name="BackupWebStorage" value="none"/> <preference name="windows-target-version" value="8.1"/> <preference name="Orientation" value="portrait" /> </widget> ## Instruction: Update build conf for mobile app ## Code After: <?xml version='1.0' encoding='utf-8'?> <widget id="com.startcoin.startwallet" version="1.0.1" android-versionCode="36" ios-CFBundleVersion="1.0.1"> <name>StartWallet</name> <description> A secure StartCOIN wallet for friends and companies. </description> <author email="hello@startjoin.com" href="https://startwalet.com"> StartCOIN Holdings Ltd </author> <content src="index.html" /> <access origin="*" /> <preference name="AndroidPersistentFileLocation" value="Internal" /> <preference name="iosPersistentFileLocation" value="Library" /> <preference name="DisallowOverscroll" value="true"/> <preference name="HideKeyboardFormAccessoryBar" value="true"/> <preference name="SplashScreen" value="copayscreen" /> <preference name="SplashScreenDelay" value="10000" /> <preference name="BackgroundColor" value="#2C3E50" /> <preference name="StatusBarOverlaysWebView" value="false" /> <preference name="StatusBarBackgroundColor" value="#2C3E50" /> <preference name="StatusBarStyle" value="lightcontent" /> <preference name="BackupWebStorage" value="none"/> <preference name="windows-target-version" value="8.1"/> <preference name="Orientation" value="portrait" /> </widget>
<?xml version='1.0' encoding='utf-8'?> - <widget id="com.bitpay.copay" + <widget id="com.startcoin.startwallet" version="1.0.1" android-versionCode="36" ios-CFBundleVersion="1.0.1"> - <name>Copay</name> + <name>StartWallet</name> <description> - A secure bitcoin wallet for friends and companies. ? ^^ ^^^^ + A secure StartCOIN wallet for friends and companies. ? ^ ^^^^^^^ </description> - <author email="support@bitpay.com" href="https://copay.io"> - BitPay Inc. + <author email="hello@startjoin.com" href="https://startwalet.com"> + StartCOIN Holdings Ltd </author> <content src="index.html" /> <access origin="*" /> <preference name="AndroidPersistentFileLocation" value="Internal" /> <preference name="iosPersistentFileLocation" value="Library" /> <preference name="DisallowOverscroll" value="true"/> <preference name="HideKeyboardFormAccessoryBar" value="true"/> <preference name="SplashScreen" value="copayscreen" /> <preference name="SplashScreenDelay" value="10000" /> <preference name="BackgroundColor" value="#2C3E50" /> <preference name="StatusBarOverlaysWebView" value="false" /> <preference name="StatusBarBackgroundColor" value="#2C3E50" /> <preference name="StatusBarStyle" value="lightcontent" /> <preference name="BackupWebStorage" value="none"/> <preference name="windows-target-version" value="8.1"/> <preference name="Orientation" value="portrait" /> </widget>
10
0.357143
5
5
4d7c1fec37943558ccc8bf6a17860b2a86fe1941
gee_asset_manager/batch_copy.py
gee_asset_manager/batch_copy.py
import ee import os import csv import logging def copy(source, destination): with open(source, 'r') as f: reader = csv.reader(f) for line in reader: name = line[0] gme_id = line[1] gme_path = 'GME/images/' + gme_id ee_path = os.path.join(destination, name) logging.info('Copying asset %s to %s', gme_path, ee_path) ee.data.copyAsset(gme_path, ee_path) if __name__ == '__main__': ee.Initialize() assets = '/home/tracek/Data/consbio2016/test.csv' with open(assets, 'r') as f: reader = csv.reader(f)
import ee import os import csv import logging def copy(source, destination): with open(source, 'r') as f: reader = csv.reader(f) for line in reader: name = line[0] gme_id = line[1] gme_path = 'GME/images/' + gme_id ee_path = os.path.join(destination, name) logging.info('Copying asset %s to %s', gme_path, ee_path) try: ee.data.copyAsset(gme_path, ee_path) except ee.EEException as e: with open('failed_batch_copy.csv', 'w') as fout: fout.write('%s,%s,%s,%s', name, gme_id, ee_path,e) if __name__ == '__main__': ee.Initialize() assets = '/home/tracek/Data/consbio2016/test.csv' with open(assets, 'r') as f: reader = csv.reader(f)
Add exception handling to batch copy
Add exception handling to batch copy
Python
apache-2.0
tracek/gee_asset_manager
python
## Code Before: import ee import os import csv import logging def copy(source, destination): with open(source, 'r') as f: reader = csv.reader(f) for line in reader: name = line[0] gme_id = line[1] gme_path = 'GME/images/' + gme_id ee_path = os.path.join(destination, name) logging.info('Copying asset %s to %s', gme_path, ee_path) ee.data.copyAsset(gme_path, ee_path) if __name__ == '__main__': ee.Initialize() assets = '/home/tracek/Data/consbio2016/test.csv' with open(assets, 'r') as f: reader = csv.reader(f) ## Instruction: Add exception handling to batch copy ## Code After: import ee import os import csv import logging def copy(source, destination): with open(source, 'r') as f: reader = csv.reader(f) for line in reader: name = line[0] gme_id = line[1] gme_path = 'GME/images/' + gme_id ee_path = os.path.join(destination, name) logging.info('Copying asset %s to %s', gme_path, ee_path) try: ee.data.copyAsset(gme_path, ee_path) except ee.EEException as e: with open('failed_batch_copy.csv', 'w') as fout: fout.write('%s,%s,%s,%s', name, gme_id, ee_path,e) if __name__ == '__main__': ee.Initialize() assets = '/home/tracek/Data/consbio2016/test.csv' with open(assets, 'r') as f: reader = csv.reader(f)
import ee import os import csv import logging def copy(source, destination): with open(source, 'r') as f: reader = csv.reader(f) for line in reader: name = line[0] gme_id = line[1] gme_path = 'GME/images/' + gme_id ee_path = os.path.join(destination, name) logging.info('Copying asset %s to %s', gme_path, ee_path) + try: - ee.data.copyAsset(gme_path, ee_path) + ee.data.copyAsset(gme_path, ee_path) ? ++++ + except ee.EEException as e: + with open('failed_batch_copy.csv', 'w') as fout: + fout.write('%s,%s,%s,%s', name, gme_id, ee_path,e) if __name__ == '__main__': ee.Initialize() assets = '/home/tracek/Data/consbio2016/test.csv' with open(assets, 'r') as f: reader = csv.reader(f)
6
0.272727
5
1
b83f8862cbf252eb0a3d53edceaa61733ea85e84
core/app/templates/users/_user.mustache
core/app/templates/users/_user.mustache
{{^is_current_user}} <div class="avatar-container"> <div class="user-avatar"> {{{ avatar }}} </div> <div class="wrapper"> <h3>{{ username }}</h3> <a class="btn btn-micro" href="/{{ username }}">View profile</a> </div> </div> {{/is_current_user}} {{#is_current_user}} <h2>{{ channel_listing_header }}</h2> {{{new_channel_button}}} <a href="/{{ username }}/channels/new" class="btn btn-micro add-channel">Add new</a> {{/is_current_user}}
{{^is_current_user}} <div class="avatar-container"> <div class="user-avatar"> {{{ avatar }}} </div> <div class="wrapper"> <h3>{{ username }}</h3> <a class="btn btn-micro" href="/{{ username }}" rel="backbone">View profile</a> </div> </div> {{/is_current_user}} {{#is_current_user}} <h2>{{ channel_listing_header }}</h2> {{{new_channel_button}}} <a href="/{{ username }}/channels/new" class="btn btn-micro add-channel">Add new</a> {{/is_current_user}}
Use rel=backbone for "view profile" button
Use rel=backbone for "view profile" button
HTML+Django
mit
Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core
html+django
## Code Before: {{^is_current_user}} <div class="avatar-container"> <div class="user-avatar"> {{{ avatar }}} </div> <div class="wrapper"> <h3>{{ username }}</h3> <a class="btn btn-micro" href="/{{ username }}">View profile</a> </div> </div> {{/is_current_user}} {{#is_current_user}} <h2>{{ channel_listing_header }}</h2> {{{new_channel_button}}} <a href="/{{ username }}/channels/new" class="btn btn-micro add-channel">Add new</a> {{/is_current_user}} ## Instruction: Use rel=backbone for "view profile" button ## Code After: {{^is_current_user}} <div class="avatar-container"> <div class="user-avatar"> {{{ avatar }}} </div> <div class="wrapper"> <h3>{{ username }}</h3> <a class="btn btn-micro" href="/{{ username }}" rel="backbone">View profile</a> </div> </div> {{/is_current_user}} {{#is_current_user}} <h2>{{ channel_listing_header }}</h2> {{{new_channel_button}}} <a href="/{{ username }}/channels/new" class="btn btn-micro add-channel">Add new</a> {{/is_current_user}}
{{^is_current_user}} <div class="avatar-container"> <div class="user-avatar"> {{{ avatar }}} </div> <div class="wrapper"> <h3>{{ username }}</h3> - <a class="btn btn-micro" href="/{{ username }}">View profile</a> + <a class="btn btn-micro" href="/{{ username }}" rel="backbone">View profile</a> ? +++++++++++++++ </div> </div> {{/is_current_user}} {{#is_current_user}} <h2>{{ channel_listing_header }}</h2> {{{new_channel_button}}} <a href="/{{ username }}/channels/new" class="btn btn-micro add-channel">Add new</a> {{/is_current_user}}
2
0.111111
1
1
35c8dfa10492444c55f35bbbbe1db8ec0232dcea
README.md
README.md
Programming Challenges ====================== Sample implementations of simple programming challenges to work on writing test cases. Challenges ---------- ### Beeramid Dependencies ------------ * pry: run the challenges interactively: `bundle exec pry` * rspec: tests! `bundle exec rspec --color`
Programming Challenges ====================== Sample implementations of simple programming challenges to work on writing test cases. Challenges ---------- ### Beeramid Given an amount of money and a price per beer how many levels of a beer can pyramid can you make? For example if you had $50 and beer was $5 you could make this pyramid: ``` 0 0 0 0 0 0 0 0 0 0 ``` Dependencies ------------ * pry: run the challenges interactively: `bundle exec pry` * rspec: tests! `bundle exec rspec --color` (or to be a little fancier: `bundle exec rspec --color --format documentation`)
Update readme with description of problem
Update readme with description of problem
Markdown
mit
mfinelli/programming-challenges
markdown
## Code Before: Programming Challenges ====================== Sample implementations of simple programming challenges to work on writing test cases. Challenges ---------- ### Beeramid Dependencies ------------ * pry: run the challenges interactively: `bundle exec pry` * rspec: tests! `bundle exec rspec --color` ## Instruction: Update readme with description of problem ## Code After: Programming Challenges ====================== Sample implementations of simple programming challenges to work on writing test cases. Challenges ---------- ### Beeramid Given an amount of money and a price per beer how many levels of a beer can pyramid can you make? For example if you had $50 and beer was $5 you could make this pyramid: ``` 0 0 0 0 0 0 0 0 0 0 ``` Dependencies ------------ * pry: run the challenges interactively: `bundle exec pry` * rspec: tests! `bundle exec rspec --color` (or to be a little fancier: `bundle exec rspec --color --format documentation`)
Programming Challenges ====================== - Sample implementations of simple programming challenges to work on writing test cases. ? ------------ + Sample implementations of simple programming challenges to work on writing + test cases. Challenges ---------- ### Beeramid + Given an amount of money and a price per beer how many levels of a beer can + pyramid can you make? + + For example if you had $50 and beer was $5 you could make this pyramid: + + ``` + 0 + 0 0 + 0 0 0 + 0 0 0 0 + ``` + Dependencies ------------ * pry: run the challenges interactively: `bundle exec pry` - * rspec: tests! `bundle exec rspec --color` + * rspec: tests! `bundle exec rspec --color` (or to be a little fancier: ? ++++++++++++++++++++++++++++ + `bundle exec rspec --color --format documentation`)
18
1.2
16
2
f2826431a1cc428fccc352d7af91d4b0b8955a9b
Note.h
Note.h
typedef struct note_range_t { uint16_t start; uint16_t end; } note_range_t; class Note { public: Note(CRGB aColor, uint16_t order, uint16_t ledCount); void setColor(CRGB aColor); private: CRGB _color; note_range_t _range; }; #endif
typedef struct note_range_t { uint16_t start; uint16_t end; } note_range_t; class Note { public: Note(uint8_t aHue, uint16_t order, uint16_t ledCount); void setHue(uint8_t aHue); uint8_t hue(); void setPlaying(boolean flag); boolean isPlaying(); private: boolean _playing; uint8_t _hue; note_range_t _range; }; #endif
Use hue instead of color.
Use hue instead of color. Also added a property for activation of the Note
C
mit
NSBum/lachaise2
c
## Code Before: typedef struct note_range_t { uint16_t start; uint16_t end; } note_range_t; class Note { public: Note(CRGB aColor, uint16_t order, uint16_t ledCount); void setColor(CRGB aColor); private: CRGB _color; note_range_t _range; }; #endif ## Instruction: Use hue instead of color. Also added a property for activation of the Note ## Code After: typedef struct note_range_t { uint16_t start; uint16_t end; } note_range_t; class Note { public: Note(uint8_t aHue, uint16_t order, uint16_t ledCount); void setHue(uint8_t aHue); uint8_t hue(); void setPlaying(boolean flag); boolean isPlaying(); private: boolean _playing; uint8_t _hue; note_range_t _range; }; #endif
typedef struct note_range_t { uint16_t start; uint16_t end; } note_range_t; class Note { public: - Note(CRGB aColor, uint16_t order, uint16_t ledCount); ? ^^^^ ^^^^^ + Note(uint8_t aHue, uint16_t order, uint16_t ledCount); ? ^^^^^^^ ^^^ - void setColor(CRGB aColor); + void setHue(uint8_t aHue); + uint8_t hue(); + + void setPlaying(boolean flag); + boolean isPlaying(); private: - CRGB _color; + boolean _playing; + uint8_t _hue; note_range_t _range; }; #endif
11
0.611111
8
3
aacb6604322c003beab357f25d04441f23214b40
package.json
package.json
{ "name": "ts-x-unit", "repository": { "type": "git", "url": "git@github.com:FreeElephants/TSxUnit.git" }, "description": "xUnit for TypeScript projects", "keywords": [ "xUnit", "ts", "typescript" ], "author": "samizdam", "license": "BSD-2-Clause", "scripts": { "tsc": "tsc", "typings": "typings", "build": "tsc @tsxunit-build.config", "pretest": "tsc @tsxunit-launch-builder.config && node bin/launch-builder.js tests/ && tsc", "test": "node out.js" }, "bin": { "launch-builder": "bin/launch-builder.js" }, "main": "build/index.js", "typescript": { "definition": "build/index.d.ts" }, "dependencies": { "typescript": "1.8.9", "typings": "0.7.9" }, "version": "0.0.6-rc1" }
{ "name": "ts-x-unit", "repository": { "type": "git", "url": "git@github.com:FreeElephants/TSxUnit.git" }, "description": "xUnit for TypeScript projects", "keywords": [ "xUnit", "ts", "typescript" ], "author": "samizdam", "license": "BSD-2-Clause", "scripts": { "tsc": "tsc", "typings": "typings", "build": "tsc @tsxunit-build.config", "build-launch-builder": "tsc @tsxunit-launch-builder.config && echo #! /usr/bin/env node | cat - bin/launch-builder.js > temp && mv temp bin/launch-builder.js", "pretest": "npm run build-launch-builder && node bin/launch-builder.js tests/ && tsc", "test": "node out.js" }, "bin": { "launch-builder": "bin/launch-builder.js" }, "main": "build/index.js", "typescript": { "definition": "build/index.d.ts" }, "dependencies": { "typescript": "1.8.9", "typings": "0.7.9" }, "version": "0.0.6-rc1" }
Add shebang in launch builder.
Add shebang in launch builder.
JSON
bsd-2-clause
FreeElephants/TSxUnit,FreeElephants/TSxUnit
json
## Code Before: { "name": "ts-x-unit", "repository": { "type": "git", "url": "git@github.com:FreeElephants/TSxUnit.git" }, "description": "xUnit for TypeScript projects", "keywords": [ "xUnit", "ts", "typescript" ], "author": "samizdam", "license": "BSD-2-Clause", "scripts": { "tsc": "tsc", "typings": "typings", "build": "tsc @tsxunit-build.config", "pretest": "tsc @tsxunit-launch-builder.config && node bin/launch-builder.js tests/ && tsc", "test": "node out.js" }, "bin": { "launch-builder": "bin/launch-builder.js" }, "main": "build/index.js", "typescript": { "definition": "build/index.d.ts" }, "dependencies": { "typescript": "1.8.9", "typings": "0.7.9" }, "version": "0.0.6-rc1" } ## Instruction: Add shebang in launch builder. ## Code After: { "name": "ts-x-unit", "repository": { "type": "git", "url": "git@github.com:FreeElephants/TSxUnit.git" }, "description": "xUnit for TypeScript projects", "keywords": [ "xUnit", "ts", "typescript" ], "author": "samizdam", "license": "BSD-2-Clause", "scripts": { "tsc": "tsc", "typings": "typings", "build": "tsc @tsxunit-build.config", "build-launch-builder": "tsc @tsxunit-launch-builder.config && echo #! /usr/bin/env node | cat - bin/launch-builder.js > temp && mv temp bin/launch-builder.js", "pretest": "npm run build-launch-builder && node bin/launch-builder.js tests/ && tsc", "test": "node out.js" }, "bin": { "launch-builder": "bin/launch-builder.js" }, "main": "build/index.js", "typescript": { "definition": "build/index.d.ts" }, "dependencies": { "typescript": "1.8.9", "typings": "0.7.9" }, "version": "0.0.6-rc1" }
{ "name": "ts-x-unit", "repository": { "type": "git", "url": "git@github.com:FreeElephants/TSxUnit.git" }, "description": "xUnit for TypeScript projects", "keywords": [ "xUnit", "ts", "typescript" ], "author": "samizdam", "license": "BSD-2-Clause", "scripts": { "tsc": "tsc", "typings": "typings", "build": "tsc @tsxunit-build.config", + + "build-launch-builder": "tsc @tsxunit-launch-builder.config && echo #! /usr/bin/env node | cat - bin/launch-builder.js > temp && mv temp bin/launch-builder.js", + - "pretest": "tsc @tsxunit-launch-builder.config && node bin/launch-builder.js tests/ && tsc", ? ^^^ ^^^^ ^ ------- + "pretest": "npm run build-launch-builder && node bin/launch-builder.js tests/ && tsc", ? ^^^ ^ +++ ^^ "test": "node out.js" }, "bin": { "launch-builder": "bin/launch-builder.js" }, "main": "build/index.js", "typescript": { "definition": "build/index.d.ts" }, "dependencies": { "typescript": "1.8.9", "typings": "0.7.9" }, "version": "0.0.6-rc1" }
5
0.142857
4
1