filename
stringlengths
7
140
content
stringlengths
0
76.7M
scripts/metadata/code/sorting/src/gnome_sort/data.json
{ "location": "code/sorting/src/gnome_sort", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "gnome_sort.java", "gnome_sort.go", "gnome_sort.swift", "gnome_sort.cpp", "README.md", "gnome_sort.c", "gnome_sort.js", "gnome_sort.m", "gnome_sort.py" ], "updated": "18-0...
scripts/metadata/code/sorting/src/heap_sort/data.json
{ "location": "code/sorting/src/heap_sort", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "heap_sort.py", "heap_sort.m", "heap_sort.swift", "heap_sort.js", "heap_sort.cpp", "heapsort.go", "heap_sort.java", "README.md", "heap_sort.rs", "heap_sort.sc", "heap_s...
scripts/metadata/code/sorting/src/insertion_sort/data.json
{ "location": "code/sorting/src/insertion_sort", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "insertion_sort_extension.swift", "insertion_sort.hs", "insertion_sort.py", "insertion_sort.rb", "insertion_sort.go", "insertion_sort.cs", "insertion_sort.java", "insertion_so...
scripts/metadata/code/sorting/src/intro_sort/data.json
{ "location": "code/sorting/src/intro_sort", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "intro_sort.swift", "intro_sort.m", "intro_sort.cpp", "README.md" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/sorting/src/median_sort/data.json
{ "location": "code/sorting/src/median_sort", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "median_sort.py", "median_sort.m", "median_sort.swift", "median_sort.cpp", "median_sort_fast.cpp", "median_sort.cs" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/sorting/src/merge_sort/data.json
{ "location": "code/sorting/src/merge_sort", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "merge_sort.cs", "merge_sort.sh", "merge_sort.ts", "merge_sort.kt", "merge_sort.pl", "merge_sort.fs", "merge_sort.php", "merge_sort.go", "merge_sort_extension.swift", "mer...
scripts/metadata/code/sorting/src/pigeonhole_sort/data.json
{ "location": "code/sorting/src/pigeonhole_sort", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "pigeonhole_sort.cpp", "pigeonhole_sort.php", "pigeonhole_sort.js", "pigeonhole_sort.go", "pigeonhole_sort.py", "pigeonhole_sort.m", "pigeonhole_sort.c", "pigeonhole_sort.swi...
scripts/metadata/code/sorting/src/quick_sort/data.json
{ "location": "code/sorting/src/quick_sort", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "quick_sort_median_of_medians.c", "quick_sort.py", "quick_sort.swift", "quick_sort.elm", "quick_sort_extension.swift", "quick_sort.java", "quick_sort.m", "quick_sort.hs", "qui...
scripts/metadata/code/sorting/src/radix_sort/data.json
{ "location": "code/sorting/src/radix_sort", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "radix_sort.py", "radix_sort.c", "radix_sort.js", "radix_sort.go", "radix_sort.rs", "radix_sort.java", "radix_sort.cpp", "README.md", "radix_sort.hs" ], "updated": "18-05-...
scripts/metadata/code/sorting/src/selection_sort/data.json
{ "location": "code/sorting/src/selection_sort", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "selection_sort.vb", "selection_sort.kt", "selection_sort.cpp", "selection_sort.py", "selection_sort.php", "selection_sort.go", "selection_sort.m", "selection_sort_extension.s...
scripts/metadata/code/sorting/src/shaker_sort/data.json
{ "location": "code/sorting/src/shaker_sort", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "shaker_sort.m", "shaker_sort.cs", "shaker_sort.js", "shaker_sort.cpp", "shaker_sort.java", "shaker_sort.c", "shaker_sort.py", "shaker_sort.swift", "shaker_sort.go", "sha...
scripts/metadata/code/sorting/src/shell_sort/data.json
{ "location": "code/sorting/src/shell_sort", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "shell_sort.py", "shell_sort.c", "shell_sort.go", "shell_sort.js", "shell_sort.cpp", "shell_sort.swift", "shellsort.go", "shell_sort.java", "shell_sort.kt", "README.md", ...
scripts/metadata/code/sorting/src/sleep_sort/data.json
{ "location": "code/sorting/src/sleep_sort", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "sleep_sort.cpp", "sleep_sort.swift", "sleep_sort.cs", "sleep_sort.c", "sleep_sort.py", "sleep_sort.sh", "sleep_sort.js", "sleep_sort.go", "sleep_sort.jl", "sleep_sort.php...
scripts/metadata/code/sorting/src/stooge_sort/data.json
{ "location": "code/sorting/src/stooge_sort", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "stooge_sort.java", "stooge_sort.js", "stooge_sort.go", "stooge_sort.c", "stooge_sort.py", "README.md" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/sorting/src/topological_sort/data.json
{ "location": "code/sorting/src/topological_sort", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "readme.md", "topological_sort.c", "topological_sort.java", "topological_sort.py", "topological_sort.cpp" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/sorting/src/tree_sort/data.json
{ "location": "code/sorting/src/tree_sort", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "tree_sort.cpp", "tree_sort.js", "tree_sort.c", "README.md", "tree_sort.java", "tree_sort.py", "tree_sort.go" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/square_root_decomposition/src/mos_algorithm/data.json
{ "location": "code/square_root_decomposition/src/mos_algorithm", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "mos_algorithm.cpp" ], "updated": "18-05-2019 08:11:05" }
scripts/metadata/code/string_algorithms/src/aho_corasick_algorithm/data.json
{ "location": "code/string_algorithms/src/aho_corasick_algorithm", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "aho_corasick_algorithm2.cpp", "README.md", "aho_corasick_algorithm.cpp", "aho_corasick_algorithm.java" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/string_algorithms/src/anagram_search/data.json
{ "location": "code/string_algorithms/src/anagram_search", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "anagram_search.swift", "anagram.scala", "anagram_search.js", "anagram_search.go", "anagram_search.java", "anagram_search.cs", "anagram_search.py", "anagram_search.r...
scripts/metadata/code/string_algorithms/src/arithmetic_on_large_numbers/data.json
{ "location": "code/string_algorithms/src/arithmetic_on_large_numbers", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "string_factorial.cpp", "string_multiplication.cpp", "string_subtract.cpp", "string_addition.cpp" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/string_algorithms/src/boyer_moore_algorithm/data.json
{ "location": "code/string_algorithms/src/boyer_moore_algorithm", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "boyer_moore_algorithm.c", "boyer_moore_algorithm.cpp", "README.md", "boyer_moore_algorithm2.c" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/string_algorithms/src/finite_automata/data.json
{ "location": "code/string_algorithms/src/finite_automata", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "searchstringusingdfa.rs", "searchstringusingdfa.java", "README.md" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/string_algorithms/src/kasai_algorithm/data.json
{ "location": "code/string_algorithms/src/kasai_algorithm", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "kasai_algorithm.cpp", "README.md" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/string_algorithms/src/kmp_algorithm/data.json
{ "location": "code/string_algorithms/src/kmp_algorithm", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "kmp.py", "README.md", "kmp_algorithm.cpp" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/string_algorithms/src/levenshtein_distance/data.json
{ "location": "code/string_algorithms/src/levenshtein_distance", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "levenshteindistance.java", "README.md" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/string_algorithms/src/lipogram_checker/data.json
{ "location": "code/string_algorithms/src/lipogram_checker", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "lipogram_checker.py", "lipogram_checker.cs", "lipogram_checker.cpp", "lipogram_checker.js" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/string_algorithms/src/longest_palindromic_substring/data.json
{ "location": "code/string_algorithms/src/longest_palindromic_substring", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "longest_palindromic_substring.py" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/string_algorithms/src/manachar_algorithm/data.json
{ "location": "code/string_algorithms/src/manachar_algorithm", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "manachar_longest_palindromic_subs.py", "manachar_longest_palindromic_subs.cpp" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/string_algorithms/src/morse_code/data.json
{ "location": "code/string_algorithms/src/morse_code", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "morsecode.php", "morsecode.js", "morsecode.py", "morsecode.go", "morsecode.cpp" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/string_algorithms/src/naive_pattern_search/data.json
{ "location": "code/string_algorithms/src/naive_pattern_search", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "naive_pattern_search.py", "README.md" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/string_algorithms/src/palindrome_checker/data.json
{ "location": "code/string_algorithms/src/palindrome_checker", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "palindrome.purs", "palindrome.cr", "palindrome.clj", "palindrome.cs", "palindrome.java", "palindrome.hs", "palindrome.rs", "palindrome.py", "palindrome.c", ...
scripts/metadata/code/string_algorithms/src/palindrome_substring/data.json
{ "location": "code/string_algorithms/src/palindrome_substring", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "palindrome_substring.c" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/string_algorithms/src/pangram_checker/data.json
{ "location": "code/string_algorithms/src/pangram_checker", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "pangram_checker.c", "pangram.cpp", "pangram_checker.php", "pangram_checker.py", "pangram_checker.go", "pangram_checker.m", "pangram.java", "pangram_checker.js", ...
scripts/metadata/code/string_algorithms/src/password_strength_checker/data.json
{ "location": "code/string_algorithms/src/password_strength_checker", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "pw_checker.js", "pw_checker.cpp", "pw_checker.java", "pw_checker.cs", "README.md", "pw_checker.py" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/string_algorithms/src/rabin_karp_algorithm/data.json
{ "location": "code/string_algorithms/src/rabin_karp_algorithm", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "rabin_karp.c", "rabinkarp.java", "README.md", "rabin_karp.py" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/string_algorithms/src/remove_dups/data.json
{ "location": "code/string_algorithms/src/remove_dups", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "remove_dups.js", "remove_dups.cpp", "remove_dups.rs", "remove_dumps.py", "remove_dups.c" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/string_algorithms/src/trie_pattern_search/data.json
{ "location": "code/string_algorithms/src/trie_pattern_search", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "trie.cpp", "README.md" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/string_algorithms/src/z_algorithm/data.json
{ "location": "code/string_algorithms/src/z_algorithm", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "z_algorithm_z_array.cpp", "z_algorithm.py", "z_algorithm.cpp", "README.md" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/theory_of_computation/src/deterministic_finite_automaton/data.json
{ "location": "code/theory_of_computation/src/deterministic_finite_automaton", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "dfa.py" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/theory_of_computation/src/nondeterministic_finite_atomaton/data.json
{ "location": "code/theory_of_computation/src/nondeterministic_finite_atomaton", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "nfa.py" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/unclassified/src/average/data.json
{ "location": "code/unclassified/src/average", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "readme.md", "average.rb", "average.go", "average.py", "average.js", "average.erl", "average.swift", "average.rs", "average.es6.js", "average.ex", "average.cpp", ...
scripts/metadata/code/unclassified/src/biggest_of_n_numbers/data.json
{ "location": "code/unclassified/src/biggest_of_n_numbers", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "biggest_of_n.js", "readme.md", "biggest_of_n_numbers2.cpp", "biggest_of_n_numbers.java", "biggest_of_n_numbers.c", "biggest_of_n_numbers.py", "biggest_of_n_numbers.cpp...
scripts/metadata/code/unclassified/src/biggest_suffix/data.json
{ "location": "code/unclassified/src/biggest_suffix", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "readme.md", "biggest_suffix.c" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/unclassified/src/fifteen_puzzle/data.json
{ "location": "code/unclassified/src/fifteen_puzzle", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "readme.md", "makefile", "log.txt", "fifteen.c" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/unclassified/src/flutter_res/data.json
{ "location": "code/unclassified/src/flutter_res", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "Readme.md" ], "updated": "29-05-2020 11:36:00" }
scripts/metadata/code/unclassified/src/jaccard_similarity/data.json
{ "location": "code/unclassified/src/jaccard_similarity", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "jaccard.java", "README.md", "jaccard.c", "jaccard.py" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/unclassified/src/josephus_problem/data.json
{ "location": "code/unclassified/src/josephus_problem", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "josephus.go", "josephus.c", "josephus.py", "README.md", "josephus.cpp" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/unclassified/src/lapindrom_checker/data.json
{ "location": "code/unclassified/src/lapindrom_checker", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "lapindrome_checker.py", "lapindrome_checker.cpp", "README.md" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/unclassified/src/leap_year/data.json
{ "location": "code/unclassified/src/leap_year", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "leap_year.cs", "readme.txt", "leap_year.c", "leap_year.nim", "leap_year.java", "leap_year.rs", "leap_year.go", "leap_year.cpp", "leap_year.py" ], "updated": "18-05-20...
scripts/metadata/code/unclassified/src/magic_square/data.json
{ "location": "code/unclassified/src/magic_square", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "magic_square.php", "magic_square.c", "magic_square.swift", "magic_square.py" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/unclassified/src/majority_element/data.json
{ "location": "code/unclassified/src/majority_element", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "majority_element.cpp" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/unclassified/src/minimum_subarray_size_with_degree/data.json
{ "location": "code/unclassified/src/minimum_subarray_size_with_degree", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "minsubarraysizewithdegree.cpp" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/unclassified/src/no_operator_addition/data.json
{ "location": "code/unclassified/src/no_operator_addition", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "addition.c" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/unclassified/src/optimized_fibonacci/data.json
{ "location": "code/unclassified/src/optimized_fibonacci", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "optimized_fibonacci.cpp" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/unclassified/src/paint_fill/data.json
{ "location": "code/unclassified/src/paint_fill", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "paint_fill.cpp" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/unclassified/src/smallest_number_to_the_left/data.json
{ "location": "code/unclassified/src/smallest_number_to_the_left", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "smallest.cpp" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/unclassified/src/spiral_print/data.json
{ "location": "code/unclassified/src/spiral_print", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "spiral_print.c", "spiral_print.py", "spiral_print.go", "README.md", "spiral_print.cpp" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/unclassified/src/split_list/data.json
{ "location": "code/unclassified/src/split_list", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "split_array.js", "split_list.py" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/unclassified/src/tokenizer/data.json
{ "location": "code/unclassified/src/tokenizer", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "tokenizer.cpp" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/unclassified/src/unique_number/data.json
{ "location": "code/unclassified/src/unique_number", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "unique_number.java" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/unclassified/src/utilities/data.json
{ "location": "code/unclassified/src/utilities", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "convert2mp3.sh", "download_link.sh" ], "updated": "18-05-2019 08:11:06" }
scripts/metadata/code/utility/src/palindrome/palindrome_check/data.json
{ "location": "code/utility/src/palindrome/palindrome_check", "opengenus_discuss": "", "opengenus_iq": "", "files": [ "palindrome_check.java", "palindrome_check.js", "palindrome.py", "palindrome_check.cpp", "palindrome.nim", "palindrome_check.c", "palindrome_check.cs", "palindrom...
scripts/python_code_style_checker.sh
#!/usr/bin/env bash find code/ -type f -name "*.py" | xargs black --check
scripts/stats.py
#!/usr/bin/env python3 import collections import itertools import pathlib import argparse from datetime import datetime Path = collections.namedtuple("Entry", ("suffix", "group", "name")) avoid_extensions = [ "", ".md", ".png", ".csv", ".class", ".data", ".in", ".jpeg", ".jpg", ...
test/c++/README.md
Catch2 === Assuming you have the foo function in sample.cpp and want to test it, you should create test-sample.cpp and include sample.cpp, and don't forgot that define `#define CATCH\_CONFIX\_MAIN`. Since Catch2 is a large file and is not often changed, we should pre-compile it to save time. Sample === #### Source f...
test/c++/catch.hpp
/* * Catch v2.0.1 * Generated: 2017-11-03 11:53:39.642003 * ---------------------------------------------------------- * This file has been merged from multiple headers. Please don't edit it directly * Copyright (c) 2017 Two Blue Cubes Ltd. All rights reserved. * * Distributed under the Boost Software Lice...
test/c++/catch_pch.cpp
#define CATCH_CONFIG_MAIN #include "catch.hpp"
test/c++/test_sample.cpp
#define CATCH_CONFIG_MAIN #include "catch.hpp" // this function should be stored in code folder bool isEqual(int a, int b) { return a == b; } TEST_CASE("just sample", "[sample]") { REQUIRE(isEqual(1, 0) == false); }
testing.make
.PHONY: all G++FLAGS = -Wall ##################### # add prerequisites # ##################### # TODO we could save testing time on reduce *.d files. files_o = $(shell cat dependencies_list) all: $(files_o); ############################# # include dependent targets # ############################# COSMOS_ROOT_PATH ...
third_party/namanager_settings.json
{ "CHECK_DIRS": ["code/"], "DIR_FORMATS": { "LETTER_CASE": "lower_case", "SEP": ["dash_to_underscore"] }, "DIR_PREFIX": "", "DIR_PREFIX_MODE": "ignore", "DIR_SUFFIX": "", "DIR_SUFFIX_MODE": "ignore", "FILE_FORMATS": { "LETTER_CASE": "lower_case", "SEP": ["...
third_party/uncrustify.cfg
# Uncrustify-0.66.1 # # General options # # The type of line endings. Default=Auto. newlines = auto # auto/lf/crlf/cr # The original size of tabs in the input. Default=8. input_tab_size = 8 # unsigned number # The size of tabs in the output (only used if align_with...