{"action":"created","comment":{"url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/pulls/comments/224701798","pull_request_review_id":164133365,"id":224701798,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDcwMTc5OA==","diff_hunk":"@@ -0,0 +1,359 @@\n+// Copyright 2015, Tobias Hermann and the FunctionalPlus contributors.\n+// https://github.com/Dobiasd/FunctionalPlus\n+// Distributed under the Boost Software License, Version 1.0.\n+// (See accompanying file LICENSE_1_0.txt or copy at\n+//  http://www.boost.org/LICENSE_1_0.txt)\n+\n+#include <vector>\n+#include <mutex>\n+#include <fplus/fplus.hpp>\n+\n+namespace fplus\n+{\n+using FunctionName = std::string;\n+struct benchmark_function_report\n+{\n+    size_t nb_calls;\n+    ExecutionTime total_time;\n+    ExecutionTime average_time;\n+    ExecutionTime deviation;\n+};\n+\n+\n+namespace internal\n+{\n+    std::string show_benchmark_function_report(const std::map<FunctionName, benchmark_function_report> & reports);\n+}\n+\n+\n+// benchmark_session stores timings during a benchmark session\n+// and is able to emit a report at the end\n+class benchmark_session\n+{\n+public:\n+    benchmark_session() : functions_times_mutex_(), functions_times_() {};\n+\n+    // report() shall return a string with a summary of the session\n+    // Example below:\n+    // Function              |Nb calls|Total time|Av. time|Deviation|\n+    // ----------------------+--------+----------+--------+---------+\n+    // convert_charset_string|    4000|   4.942ms| 1.236ns|  1.390ns|\n+    // split_lines           |    1000|   4.528ms| 4.528ns|  1.896ns|\n+    inline std::string report() const \n+    {\n+        const auto reports = report_list();\n+        return fplus::internal::show_benchmark_function_report(reports);\n+    }\n+\n+    std::map<FunctionName, benchmark_function_report> report_list() const\n+    {\n+        std::lock_guard<std::mutex> lock(functions_times_mutex_);\n+        std::map<FunctionName, benchmark_function_report> report;\n+        for (const auto & one_function_time : functions_times_)\n+            report[one_function_time.first] = make_bench_report(one_function_time.second);\n+        return report;\n+    }\n+\n+    inline void store_one_time(const FunctionName & function_name, ExecutionTime time) \n+    {\n+        std::lock_guard<std::mutex> lock(functions_times_mutex_);\n+        functions_times_[function_name].push_back(time);\n+    }\n+\n+private:\n+    benchmark_function_report make_bench_report(const std::vector<ExecutionTime> & times) const\n+    {\n+        benchmark_function_report result;\n+        result.nb_calls = times.size();\n+        auto mean_and_dev = fplus::mean_stddev<double>(times);\n+        result.average_time = mean_and_dev.first;\n+        result.deviation = mean_and_dev.second;\n+        result.total_time = fplus::sum(times);\n+        return result;\n+    }\n+\n+    mutable std::mutex functions_times_mutex_;\n+    std::map<FunctionName, std::vector<ExecutionTime>> functions_times_;\n+};\n+\n+namespace internal \n+{\n+    template<typename Fn>\n+    class bench_function_impl\n+    {\n+    public:\n+        explicit bench_function_impl(\n+            benchmark_session & benchmark_sess,\n+            FunctionName function_name,\n+            Fn fn) \n+            : benchmark_session_(benchmark_sess)\n+            , function_name_(function_name)\n+            , fn_(fn)\n+        {};\n+\n+        template<typename ...Args> auto operator()(Args... args) { return _bench_result(args...); }\n+\n+    private:\n+        template<typename ...Args>\n+        auto _bench_result(Args... args)\n+        {\n+            fplus::stopwatch timer;\n+            auto r = fn_(args...);\n+            benchmark_session_.store_one_time(function_name_, timer.elapsed());\n+            return r;\n+        }\n+\n+        benchmark_session & benchmark_session_;\n+        FunctionName function_name_;\n+        Fn fn_;\n+    };\n+\n+    template<typename Fn>\n+    class bench_void_function_impl\n+    {\n+    public:\n+        explicit bench_void_function_impl(\n+            benchmark_session & benchmark_sess,\n+            FunctionName function_name,\n+            Fn fn) \n+            : benchmark_session_(benchmark_sess)\n+            , function_name_(function_name)\n+            , fn_(fn)\n+        {};\n+\n+        template<typename ...Args> auto operator()(Args... args) { _bench_result(args...); }\n+\n+    private:\n+        template<typename ...Args>\n+        auto _bench_result(Args... args)\n+        {\n+            fplus::stopwatch timer;\n+            fn_(args...);\n+            benchmark_session_.store_one_time(function_name_, timer.elapsed());\n+        }\n+\n+        benchmark_session & benchmark_session_;\n+        FunctionName function_name_;\n+        Fn fn_;\n+    };\n+\n+} // namespace internal\n+\n+\n+// API search type: make_benchmark_function : (benchmark_session, string, (a... -> b)) -> (a... -> b)\n+// fwd bind count: 0\n+// Transforms a function into a function with the *same* signature\n+// and behavior, except that it also stores stats into the benchmark session (first parameter),\n+// under the name given by the second parameter.\n+// (use make_benchmark_void_function if your function returns void).\n+//\n+// Note that make_benchmark_function *will add side effects* to the function\n+// (since it stores data into the benchmark session at each call).\n+//\n+// If you intend to benchmark only one function, prefer to use the simpler `make_timed_function`\n+//\n+// Example of a minimal benchmark session:\n+//\n+// fplus::benchmark_session benchmark_sess;\n+// void foo() {\n+//     auto add_bench = fplus::make_benchmark_function(benchmark_sess, \"add\", add);\n+//     auto printf_bench = fplus::make_benchmark_void_function(benchmark_sess, \"printf\", printf);\n+//     int forty_five = add_bench(20, add_bench(19, 6));\n+//     int forty_two = benchmark_expression(benchmark_sess, \"sub\", forty_five - 3);\n+//     printf_bench(\"forty_two is %i\\n\", forty_two);\n+// }\n+// void main() {\n+//     foo();\n+//     std::cout << benchmark_sess.report();\n+// }\n+//\n+// This will output a report like this:\n+// Function|Nb calls|Total time|Av. time|Deviation|\n+// --------+--------+----------+--------+---------+\n+// printf  |       1|   0.010ms| 9.952ns|  0.000ns|\n+// add     |       2|   0.000ms| 0.050ns|  0.009ns|\n+// sub     |       1|   0.000ms| 0.039ns|  0.000ns|\n+//\n+// (Read benchmark_session_test.cpp for a full example)\n+//\n+// ----------------------------------------------------------\n+//\n+// As an alternative to make_benchmark_function, you can also benchmark an expression.\n+// For example, if you want to benchmark the following line:\n+//\n+//     auto sorted = fplus::sort(my_vector);\n+//\n+// In order to do so, ye just copy/paste this expression into \"bench_expression\" like shown below.\n+// This expression will then be benchmarked with the name \"sort_my_vector\"\n+//\n+// auto sorted = benchmark_expression(\n+//     my_benchmark_session,\n+//     \"sort_my_vector\",\n+//     fplus::sort(my_vector);\n+// );\n+//\n+// Notes :\n+//  - benchmark_expression is a preprocessor macro that uses an immediately invoked lambda (IIL)\n+// - the expression can be copy-pasted with no modification, and it is possible to not remove the \";\"\n+//   (although it also works if it is not present)\n+// - you can also benchmark an expression that returns void using benchmark_void_expression\n+//\n+template<class Fn>\n+auto make_benchmark_function(benchmark_session & session, const FunctionName & name, Fn f)\n+{\n+    // transforms f into a function with the same \n+    // signature, that will store timings into the benchmark session\n+    return internal::bench_function_impl<Fn>(session, name, f);\n+}\n+\n+\n+// API search type: make_benchmark_void_function : (benchmark_session, string, (a... -> Void)) -> (a... -> Void)\n+// fwd bind count: 0\n+// Transforms a function that returns a void into a function with the *same* signature\n+// and behavior, except that it also stores stats into the benchmark session (first parameter),\n+// under the name given by the second parameter\n+//\n+// Note that make_benchmark_void_function *will add side effects* to the function\n+// (since it stores data into the benchmark session at each call)\n+//\n+// Example:\n+//\n+// benchmark_session bench_session;\n+// ...\n+// void foo() { \n+//     std::this_thread::sleep_for(std::chrono::milliseconds(1000));\n+// }\n+// ...\n+// auto foo_bench = make_benchmark_void_function(bench_session, \"foo\", foo);\n+// foo_bench();\n+// ...\n+// std::cout << benchmark_session.report();\n+template<class Fn>\n+auto make_benchmark_void_function(benchmark_session & session, const FunctionName & name, Fn f)\n+{\n+    // transforms a void returning function into a function with the same \n+    // signature, that will store timings into the benchmark session\n+    return internal::bench_void_function_impl<Fn>(session, name, f);\n+}\n+\n+#define benchmark_expression(bench_session, name, expression)      \\\n+make_benchmark_function(                                           \\\n+    bench_session,                                                 \\\n+    name,                                                          \\\n+    [&]() { return expression; }                                   \\\n+)();\n+\n+#define benchmark_void_expression(bench_session, name, expression) \\\n+make_benchmark_void_function(                                      \\\n+    bench_session,                                                 \\\n+    name,                                                          \\\n+    [&]() { expression; }                                          \\\n+)();\n+\n+\n+template<class Fn>\n+auto run_n_times(int nb_runs, Fn f) // run_n_times is perhaps a nice addition to fplus\n+{\n+    for (auto _ : fplus::numbers(0, nb_runs)) {\n+        (void) _; // suppress warning / unused variable\n+        f();\n+    }\n+}\n+\n+\n+namespace internal\n+{\n+    // transform_and_sum is perhaps a nice addition to fplus\n+    template <typename UnaryF, typename Container>\n+    auto transform_and_sum(UnaryF unary_f, const Container& xs)\n+    {\n+        return fplus::sum(fplus::transform(unary_f, xs));\n+    }\n+\n+\n+    inline std::string show_tableau(const std::vector<std::vector<std::string>> & rows)","path":"include/fplus/benchmark_session.hpp","position":274,"original_position":274,"commit_id":"76b6d8f55887fa660dacac4888f29d2218562c20","original_commit_id":"76b6d8f55887fa660dacac4888f29d2218562c20","user":{"login":"pthom","id":7694091,"node_id":"MDQ6VXNlcjc2OTQwOTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7694091?v=4","gravatar_id":"","url":"https://api.github.com/users/pthom","html_url":"https://github.com/pthom","followers_url":"https://api.github.com/users/pthom/followers","following_url":"https://api.github.com/users/pthom/following{/other_user}","gists_url":"https://api.github.com/users/pthom/gists{/gist_id}","starred_url":"https://api.github.com/users/pthom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pthom/subscriptions","organizations_url":"https://api.github.com/users/pthom/orgs","repos_url":"https://api.github.com/users/pthom/repos","events_url":"https://api.github.com/users/pthom/events{/privacy}","received_events_url":"https://api.github.com/users/pthom/received_events","type":"User","site_admin":false},"body":"done","created_at":"2018-10-12T08:03:20Z","updated_at":"2018-10-12T08:31:25Z","html_url":"https://github.com/Dobiasd/FunctionalPlus/pull/142#discussion_r224701798","pull_request_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/pulls/142","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Dobiasd/FunctionalPlus/pulls/comments/224701798"},"html":{"href":"https://github.com/Dobiasd/FunctionalPlus/pull/142#discussion_r224701798"},"pull_request":{"href":"https://api.github.com/repos/Dobiasd/FunctionalPlus/pulls/142"}},"in_reply_to_id":224695203},"pull_request":{"url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/pulls/142","id":222361874,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyMzYxODc0","html_url":"https://github.com/Dobiasd/FunctionalPlus/pull/142","diff_url":"https://github.com/Dobiasd/FunctionalPlus/pull/142.diff","patch_url":"https://github.com/Dobiasd/FunctionalPlus/pull/142.patch","issue_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/issues/142","number":142,"state":"open","locked":false,"title":"Benchmark session","user":{"login":"pthom","id":7694091,"node_id":"MDQ6VXNlcjc2OTQwOTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7694091?v=4","gravatar_id":"","url":"https://api.github.com/users/pthom","html_url":"https://github.com/pthom","followers_url":"https://api.github.com/users/pthom/followers","following_url":"https://api.github.com/users/pthom/following{/other_user}","gists_url":"https://api.github.com/users/pthom/gists{/gist_id}","starred_url":"https://api.github.com/users/pthom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pthom/subscriptions","organizations_url":"https://api.github.com/users/pthom/orgs","repos_url":"https://api.github.com/users/pthom/repos","events_url":"https://api.github.com/users/pthom/events{/privacy}","received_events_url":"https://api.github.com/users/pthom/received_events","type":"User","site_admin":false},"body":"As discussed, here is my take on benchmark_session.\r\n\r\nI took some time to think about it and I found three possible use cases:\r\n\r\n- multiplatform development: when you port some code on a different platform (windows, iOs, etc), and you want to quickly profile without having to learn/install/buy a profiler for this platform.\r\n\r\n- on site benchmarking : it could be feasible to deploy an application on a customer site (or on a server) where carefuly selected parts of the app are benchmarked. \r\n\r\n- CI, unit-test and integration test: when running longer tests in CI (integration test), it could be desirable to assert that the original performance is kept, and to be able to pinpoint the cause if it is not kept. I discussed this possibility with one of my lead developers, and his answer was \r\nthat he might consider using something like this (especially in CI, when outside of his main platform). He was also veru interested in the `make_timed_function` (last pull request)\r\n\r\n\r\nA minimal `benchmark_session`could look like:\r\n````cpp\r\nfplus::benchmark_session benchmark_sess;\r\nvoid foo() {\r\n    auto add_bench = fplus::make_benchmark_function(benchmark_sess, \"add\", add);\r\n    auto printf_bench = fplus::make_benchmark_void_function(benchmark_sess, \"printf\", printf);\r\n    int forty_five = add_bench(20, add_bench(19, 6));\r\n    int forty_two = benchmark_expression(benchmark_sess, \"sub\", forty_five - 3);\r\n    printf_bench(\"forty_two is %i\\n\", forty_two);\r\n}\r\nvoid main() {\r\n    foo();\r\n    std::cout << benchmark_sess.report();\r\n}\r\n````\r\nAnd it gives the following report:\r\n````\r\nFunction|Nb calls|Total time|Av. time|Deviation|\r\n--------+--------+----------+--------+---------+\r\nprintf  |       1|   0.010ms| 9.952ns|  0.000ns|\r\nadd     |       2|   0.000ms| 0.050ns|  0.009ns|\r\nsub     |       1|   0.000ms| 0.039ns|  0.000ns|\r\n````\r\n\r\n\r\nAs a side note, I added a macro (this is bad, I know, I know...) :\r\n\r\n````cpp\r\n#define benchmark_expression(bench_session, name, expression)      \\\r\n    make_benchmark_function(                                       \\\r\n        bench_session,                                             \\\r\n        name,                                                      \\\r\n        [&]() { return expression; }                               \\\r\n    )();\r\n````\r\n\r\nIt is suprisingly useful, because you can also benchmark an expression without having to create a lambda/function.\r\nFor example, if you want to benchmark the following line:\r\n\r\n````cpp\r\n    auto shuffled_numbers = fplus::shuffle(std::mt19937::default_seed, ascending_numbers);\r\n````\r\n\r\nYou can do it like this\r\n\r\n````cpp\r\n    auto shuffled_numbers = benchmark_expression(\r\n        my_benchmark_session,\r\n        \"shuffle\",\r\n        fplus::shuffle(std::mt19937::default_seed, ascending_numbers); // same line as before\r\n    );\r\n````\r\n\r\nI know that this PR is not really in the original scope of fplus, so your opinion will matter to me.\r\n\r\n### Remark\r\n\r\nbenchmark.hpp contains two functions that might be of interest for fplus.\r\nWhat do you think? If you think they are interesting, I can make a separate pull request for them.\r\n\r\n````cpp\r\n    // transform_and_sum is perhaps a nice addition to fplus \r\n    // (this is equivalent to transform_reduce with the default empty value and + operator)\r\n    template <typename UnaryF, typename Container>\r\n    auto transform_and_sum(UnaryF unary_f, const Container& xs)\r\n    {\r\n        return fplus::sum(fplus::transform(unary_f, xs));\r\n    }\r\n\r\n    template<class Fn>\r\n    auto run_n_times(int nb_runs, Fn f)\r\n    {\r\n        for (auto _ : fplus::numbers(0, nb_runs)) {\r\n            (void) _; // suppress warning / unused variable\r\n            f();\r\n        }\r\n    }\r\n````\r\n","created_at":"2018-10-12T06:26:01Z","updated_at":"2018-10-12T08:31:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b662666853ee6bd0997ce698dd9ecac08551595","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/pulls/142/commits","review_comments_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/pulls/142/comments","review_comment_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/issues/142/comments","statuses_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/statuses/76b6d8f55887fa660dacac4888f29d2218562c20","head":{"label":"pthom:benchmark_session","ref":"benchmark_session","sha":"76b6d8f55887fa660dacac4888f29d2218562c20","user":{"login":"pthom","id":7694091,"node_id":"MDQ6VXNlcjc2OTQwOTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7694091?v=4","gravatar_id":"","url":"https://api.github.com/users/pthom","html_url":"https://github.com/pthom","followers_url":"https://api.github.com/users/pthom/followers","following_url":"https://api.github.com/users/pthom/following{/other_user}","gists_url":"https://api.github.com/users/pthom/gists{/gist_id}","starred_url":"https://api.github.com/users/pthom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pthom/subscriptions","organizations_url":"https://api.github.com/users/pthom/orgs","repos_url":"https://api.github.com/users/pthom/repos","events_url":"https://api.github.com/users/pthom/events{/privacy}","received_events_url":"https://api.github.com/users/pthom/received_events","type":"User","site_admin":false},"repo":{"id":143206108,"node_id":"MDEwOlJlcG9zaXRvcnkxNDMyMDYxMDg=","name":"FunctionalPlus","full_name":"pthom/FunctionalPlus","private":false,"owner":{"login":"pthom","id":7694091,"node_id":"MDQ6VXNlcjc2OTQwOTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7694091?v=4","gravatar_id":"","url":"https://api.github.com/users/pthom","html_url":"https://github.com/pthom","followers_url":"https://api.github.com/users/pthom/followers","following_url":"https://api.github.com/users/pthom/following{/other_user}","gists_url":"https://api.github.com/users/pthom/gists{/gist_id}","starred_url":"https://api.github.com/users/pthom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pthom/subscriptions","organizations_url":"https://api.github.com/users/pthom/orgs","repos_url":"https://api.github.com/users/pthom/repos","events_url":"https://api.github.com/users/pthom/events{/privacy}","received_events_url":"https://api.github.com/users/pthom/received_events","type":"User","site_admin":false},"html_url":"https://github.com/pthom/FunctionalPlus","description":"Functional Programming Library for C++. Write concise and readable C++ code.","fork":true,"url":"https://api.github.com/repos/pthom/FunctionalPlus","forks_url":"https://api.github.com/repos/pthom/FunctionalPlus/forks","keys_url":"https://api.github.com/repos/pthom/FunctionalPlus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pthom/FunctionalPlus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pthom/FunctionalPlus/teams","hooks_url":"https://api.github.com/repos/pthom/FunctionalPlus/hooks","issue_events_url":"https://api.github.com/repos/pthom/FunctionalPlus/issues/events{/number}","events_url":"https://api.github.com/repos/pthom/FunctionalPlus/events","assignees_url":"https://api.github.com/repos/pthom/FunctionalPlus/assignees{/user}","branches_url":"https://api.github.com/repos/pthom/FunctionalPlus/branches{/branch}","tags_url":"https://api.github.com/repos/pthom/FunctionalPlus/tags","blobs_url":"https://api.github.com/repos/pthom/FunctionalPlus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pthom/FunctionalPlus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pthom/FunctionalPlus/git/refs{/sha}","trees_url":"https://api.github.com/repos/pthom/FunctionalPlus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pthom/FunctionalPlus/statuses/{sha}","languages_url":"https://api.github.com/repos/pthom/FunctionalPlus/languages","stargazers_url":"https://api.github.com/repos/pthom/FunctionalPlus/stargazers","contributors_url":"https://api.github.com/repos/pthom/FunctionalPlus/contributors","subscribers_url":"https://api.github.com/repos/pthom/FunctionalPlus/subscribers","subscription_url":"https://api.github.com/repos/pthom/FunctionalPlus/subscription","commits_url":"https://api.github.com/repos/pthom/FunctionalPlus/commits{/sha}","git_commits_url":"https://api.github.com/repos/pthom/FunctionalPlus/git/commits{/sha}","comments_url":"https://api.github.com/repos/pthom/FunctionalPlus/comments{/number}","issue_comment_url":"https://api.github.com/repos/pthom/FunctionalPlus/issues/comments{/number}","contents_url":"https://api.github.com/repos/pthom/FunctionalPlus/contents/{+path}","compare_url":"https://api.github.com/repos/pthom/FunctionalPlus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pthom/FunctionalPlus/merges","archive_url":"https://api.github.com/repos/pthom/FunctionalPlus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pthom/FunctionalPlus/downloads","issues_url":"https://api.github.com/repos/pthom/FunctionalPlus/issues{/number}","pulls_url":"https://api.github.com/repos/pthom/FunctionalPlus/pulls{/number}","milestones_url":"https://api.github.com/repos/pthom/FunctionalPlus/milestones{/number}","notifications_url":"https://api.github.com/repos/pthom/FunctionalPlus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pthom/FunctionalPlus/labels{/name}","releases_url":"https://api.github.com/repos/pthom/FunctionalPlus/releases{/id}","deployments_url":"https://api.github.com/repos/pthom/FunctionalPlus/deployments","created_at":"2018-08-01T20:35:55Z","updated_at":"2018-10-10T16:28:37Z","pushed_at":"2018-10-12T07:12:15Z","git_url":"git://github.com/pthom/FunctionalPlus.git","ssh_url":"git@github.com:pthom/FunctionalPlus.git","clone_url":"https://github.com/pthom/FunctionalPlus.git","svn_url":"https://github.com/pthom/FunctionalPlus","homepage":"http://www.editgym.com/fplus-api-search/","size":2140,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsl-1.0","name":"Boost Software License 1.0","spdx_id":"BSL-1.0","url":"https://api.github.com/licenses/bsl-1.0","node_id":"MDc6TGljZW5zZTI4"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Dobiasd:master","ref":"master","sha":"9a6e46ccbd9d77d7b7e23aa9866fcbca7b6e1122","user":{"login":"Dobiasd","id":5544610,"node_id":"MDQ6VXNlcjU1NDQ2MTA=","avatar_url":"https://avatars0.githubusercontent.com/u/5544610?v=4","gravatar_id":"","url":"https://api.github.com/users/Dobiasd","html_url":"https://github.com/Dobiasd","followers_url":"https://api.github.com/users/Dobiasd/followers","following_url":"https://api.github.com/users/Dobiasd/following{/other_user}","gists_url":"https://api.github.com/users/Dobiasd/gists{/gist_id}","starred_url":"https://api.github.com/users/Dobiasd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dobiasd/subscriptions","organizations_url":"https://api.github.com/users/Dobiasd/orgs","repos_url":"https://api.github.com/users/Dobiasd/repos","events_url":"https://api.github.com/users/Dobiasd/events{/privacy}","received_events_url":"https://api.github.com/users/Dobiasd/received_events","type":"User","site_admin":false},"repo":{"id":46746797,"node_id":"MDEwOlJlcG9zaXRvcnk0Njc0Njc5Nw==","name":"FunctionalPlus","full_name":"Dobiasd/FunctionalPlus","private":false,"owner":{"login":"Dobiasd","id":5544610,"node_id":"MDQ6VXNlcjU1NDQ2MTA=","avatar_url":"https://avatars0.githubusercontent.com/u/5544610?v=4","gravatar_id":"","url":"https://api.github.com/users/Dobiasd","html_url":"https://github.com/Dobiasd","followers_url":"https://api.github.com/users/Dobiasd/followers","following_url":"https://api.github.com/users/Dobiasd/following{/other_user}","gists_url":"https://api.github.com/users/Dobiasd/gists{/gist_id}","starred_url":"https://api.github.com/users/Dobiasd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dobiasd/subscriptions","organizations_url":"https://api.github.com/users/Dobiasd/orgs","repos_url":"https://api.github.com/users/Dobiasd/repos","events_url":"https://api.github.com/users/Dobiasd/events{/privacy}","received_events_url":"https://api.github.com/users/Dobiasd/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Dobiasd/FunctionalPlus","description":"Functional Programming Library for C++. Write concise and readable C++ code.","fork":false,"url":"https://api.github.com/repos/Dobiasd/FunctionalPlus","forks_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/forks","keys_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/teams","hooks_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/hooks","issue_events_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/issues/events{/number}","events_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/events","assignees_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/assignees{/user}","branches_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/branches{/branch}","tags_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/tags","blobs_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/statuses/{sha}","languages_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/languages","stargazers_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/stargazers","contributors_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/contributors","subscribers_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/subscribers","subscription_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/subscription","commits_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/contents/{+path}","compare_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/merges","archive_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/downloads","issues_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/issues{/number}","pulls_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/pulls{/number}","milestones_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/milestones{/number}","notifications_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/labels{/name}","releases_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/releases{/id}","deployments_url":"https://api.github.com/repos/Dobiasd/FunctionalPlus/deployments","created_at":"2015-11-23T20:41:52Z","updated_at":"2018-10-10T12:25:40Z","pushed_at":"2018-10-12T07:12:17Z","git_url":"git://github.com/Dobiasd/FunctionalPlus.git","ssh_url":"git@github.com:Dobiasd/FunctionalPlus.git","clone_url":"https://github.com/Dobiasd/FunctionalPlus.git","svn_url":"https://github.com/Dobiasd/FunctionalPlus","homepage":"http://www.editgym.com/fplus-api-search/","size":2118,"stargazers_count":761,"watchers_count":761,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":63,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"bsl-1.0","name":"Boost Software License 1.0","spdx_id":"BSL-1.0","url":"https://api.github.com/licenses/bsl-1.0","node_id":"MDc6TGljZW5zZTI4"},"forks":63,"open_issues":2,"watchers":761,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Dobiasd/FunctionalPlus/pulls/142"},"html":{"href":"https://github.com/Dobiasd/FunctionalPlus/pull/142"},"issue":{"href":"https://api.github.com/repos/Dobiasd/FunctionalPlus/issues/142"},"comments":{"href":"https://api.github.com/repos/Dobiasd/FunctionalPlus/issues/142/comments"},"review_comments":{"href":"https://api.github.com/repos/Dobiasd/FunctionalPlus/pulls/142/comments"},"review_comment":{"href":"https://api.github.com/repos/Dobiasd/FunctionalPlus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Dobiasd/FunctionalPlus/pulls/142/commits"},"statuses":{"href":"https://api.github.com/repos/Dobiasd/FunctionalPlus/statuses/76b6d8f55887fa660dacac4888f29d2218562c20"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"pthom"}}