{"action":"created","comment":{"url":"https://api.github.com/repos/openturns/openturns/pulls/comments/109519858","pull_request_review_id":30627841,"id":109519858,"diff_hunk":"@@ -0,0 +1,67 @@\n+//                                               -*- C++ -*-\n+/**\n+ *  @brief The class that implements indicator functions.\n+ *\n+ *  Copyright 2005-2017 Airbus-EDF-IMACS-Phimeca\n+ *\n+ *  This library is free software: you can redistribute it and/or modify\n+ *  it under the terms of the GNU Lesser General Public License as published by\n+ *  the Free Software Foundation, either version 3 of the License, or\n+ *  (at your option) any later version.\n+ *\n+ *  This library is distributed in the hope that it will be useful,\n+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ *  GNU Lesser General Public License for more details.\n+ *\n+ *  You should have received a copy of the GNU Lesser General Public\n+ *  along with this library.  If not, see <http://www.gnu.org/licenses/>.\n+ *\n+ */\n+#include \"openturns/IndicatorFunction.hxx\"\n+#include \"openturns/IndicatorNumericalMathEvaluationImplementation.hxx\"\n+#include \"openturns/NoNumericalMathGradientImplementation.hxx\"\n+#include \"openturns/NoNumericalMathHessianImplementation.hxx\"\n+\n+BEGIN_NAMESPACE_OPENTURNS\n+\n+CLASSNAMEINIT(IndicatorFunction);\n+\n+/* Default constructor */\n+IndicatorFunction::IndicatorFunction ()\n+  : NumericalMathFunction()\n+{\n+}\n+\n+\n+/* Parameter constructor */\n+IndicatorFunction::IndicatorFunction (const NumericalMathFunction & function,\n+                                      const ComparisonOperator & comparisonOperator,\n+                                      const NumericalScalar threshold)\n+  : NumericalMathFunction()\n+{\n+  const IndicatorNumericalMathEvaluationImplementation evaluation(function.getEvaluation(), comparisonOperator, threshold);\n+  setEvaluation(evaluation.clone());\n+  setGradient(NoNumericalMathGradientImplementation().clone());\n+  setHessian(NoNumericalMathHessianImplementation().clone());\n+}\n+\n+\n+/* Comparison operator */\n+Bool IndicatorFunction::operator ==(const IndicatorFunction & other) const\n+{\n+  return true;\n+}\n+\n+/* String converter */\n+String IndicatorFunction::__repr__() const\n+{\n+  return getImplementation()->__repr__();","path":"lib/src/Base/Func/IndicatorFunction.cxx","position":59,"original_position":59,"commit_id":"1c8108735eee4cead59faa3b1c86ec663a5ee4fd","original_commit_id":"7e7ba9ec3e1220c3c5b62aaaa768b7fdfc990234","user":{"login":"regislebrun","id":8220933,"avatar_url":"https://avatars3.githubusercontent.com/u/8220933?v=3","gravatar_id":"","url":"https://api.github.com/users/regislebrun","html_url":"https://github.com/regislebrun","followers_url":"https://api.github.com/users/regislebrun/followers","following_url":"https://api.github.com/users/regislebrun/following{/other_user}","gists_url":"https://api.github.com/users/regislebrun/gists{/gist_id}","starred_url":"https://api.github.com/users/regislebrun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/regislebrun/subscriptions","organizations_url":"https://api.github.com/users/regislebrun/orgs","repos_url":"https://api.github.com/users/regislebrun/repos","events_url":"https://api.github.com/users/regislebrun/events{/privacy}","received_events_url":"https://api.github.com/users/regislebrun/received_events","type":"User","site_admin":false},"body":"TODO: implement an actual __repr__ metod","created_at":"2017-04-03T20:44:21Z","updated_at":"2017-04-03T20:50:43Z","html_url":"https://github.com/openturns/openturns/pull/462#discussion_r109519858","pull_request_url":"https://api.github.com/repos/openturns/openturns/pulls/462","_links":{"self":{"href":"https://api.github.com/repos/openturns/openturns/pulls/comments/109519858"},"html":{"href":"https://github.com/openturns/openturns/pull/462#discussion_r109519858"},"pull_request":{"href":"https://api.github.com/repos/openturns/openturns/pulls/462"}}},"pull_request":{"url":"https://api.github.com/repos/openturns/openturns/pulls/462","id":113969575,"html_url":"https://github.com/openturns/openturns/pull/462","diff_url":"https://github.com/openturns/openturns/pull/462.diff","patch_url":"https://github.com/openturns/openturns/pull/462.patch","issue_url":"https://api.github.com/repos/openturns/openturns/issues/462","number":462,"state":"open","locked":false,"title":"Release","user":{"login":"jschueller","id":3832365,"avatar_url":"https://avatars1.githubusercontent.com/u/3832365?v=3","gravatar_id":"","url":"https://api.github.com/users/jschueller","html_url":"https://github.com/jschueller","followers_url":"https://api.github.com/users/jschueller/followers","following_url":"https://api.github.com/users/jschueller/following{/other_user}","gists_url":"https://api.github.com/users/jschueller/gists{/gist_id}","starred_url":"https://api.github.com/users/jschueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jschueller/subscriptions","organizations_url":"https://api.github.com/users/jschueller/orgs","repos_url":"https://api.github.com/users/jschueller/repos","events_url":"https://api.github.com/users/jschueller/events{/privacy}","received_events_url":"https://api.github.com/users/jschueller/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-04-03T16:21:54Z","updated_at":"2017-04-03T20:50:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03cf675347f718e14dfa9e2a4fe315c7effc97eb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openturns/openturns/pulls/462/commits","review_comments_url":"https://api.github.com/repos/openturns/openturns/pulls/462/comments","review_comment_url":"https://api.github.com/repos/openturns/openturns/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openturns/openturns/issues/462/comments","statuses_url":"https://api.github.com/repos/openturns/openturns/statuses/1c8108735eee4cead59faa3b1c86ec663a5ee4fd","head":{"label":"jschueller:release","ref":"release","sha":"1c8108735eee4cead59faa3b1c86ec663a5ee4fd","user":{"login":"jschueller","id":3832365,"avatar_url":"https://avatars1.githubusercontent.com/u/3832365?v=3","gravatar_id":"","url":"https://api.github.com/users/jschueller","html_url":"https://github.com/jschueller","followers_url":"https://api.github.com/users/jschueller/followers","following_url":"https://api.github.com/users/jschueller/following{/other_user}","gists_url":"https://api.github.com/users/jschueller/gists{/gist_id}","starred_url":"https://api.github.com/users/jschueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jschueller/subscriptions","organizations_url":"https://api.github.com/users/jschueller/orgs","repos_url":"https://api.github.com/users/jschueller/repos","events_url":"https://api.github.com/users/jschueller/events{/privacy}","received_events_url":"https://api.github.com/users/jschueller/received_events","type":"User","site_admin":false},"repo":{"id":47819537,"name":"openturns","full_name":"jschueller/openturns","owner":{"login":"jschueller","id":3832365,"avatar_url":"https://avatars1.githubusercontent.com/u/3832365?v=3","gravatar_id":"","url":"https://api.github.com/users/jschueller","html_url":"https://github.com/jschueller","followers_url":"https://api.github.com/users/jschueller/followers","following_url":"https://api.github.com/users/jschueller/following{/other_user}","gists_url":"https://api.github.com/users/jschueller/gists{/gist_id}","starred_url":"https://api.github.com/users/jschueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jschueller/subscriptions","organizations_url":"https://api.github.com/users/jschueller/orgs","repos_url":"https://api.github.com/users/jschueller/repos","events_url":"https://api.github.com/users/jschueller/events{/privacy}","received_events_url":"https://api.github.com/users/jschueller/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jschueller/openturns","description":"Uncertainty library in C++/Python","fork":true,"url":"https://api.github.com/repos/jschueller/openturns","forks_url":"https://api.github.com/repos/jschueller/openturns/forks","keys_url":"https://api.github.com/repos/jschueller/openturns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jschueller/openturns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jschueller/openturns/teams","hooks_url":"https://api.github.com/repos/jschueller/openturns/hooks","issue_events_url":"https://api.github.com/repos/jschueller/openturns/issues/events{/number}","events_url":"https://api.github.com/repos/jschueller/openturns/events","assignees_url":"https://api.github.com/repos/jschueller/openturns/assignees{/user}","branches_url":"https://api.github.com/repos/jschueller/openturns/branches{/branch}","tags_url":"https://api.github.com/repos/jschueller/openturns/tags","blobs_url":"https://api.github.com/repos/jschueller/openturns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jschueller/openturns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jschueller/openturns/git/refs{/sha}","trees_url":"https://api.github.com/repos/jschueller/openturns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jschueller/openturns/statuses/{sha}","languages_url":"https://api.github.com/repos/jschueller/openturns/languages","stargazers_url":"https://api.github.com/repos/jschueller/openturns/stargazers","contributors_url":"https://api.github.com/repos/jschueller/openturns/contributors","subscribers_url":"https://api.github.com/repos/jschueller/openturns/subscribers","subscription_url":"https://api.github.com/repos/jschueller/openturns/subscription","commits_url":"https://api.github.com/repos/jschueller/openturns/commits{/sha}","git_commits_url":"https://api.github.com/repos/jschueller/openturns/git/commits{/sha}","comments_url":"https://api.github.com/repos/jschueller/openturns/comments{/number}","issue_comment_url":"https://api.github.com/repos/jschueller/openturns/issues/comments{/number}","contents_url":"https://api.github.com/repos/jschueller/openturns/contents/{+path}","compare_url":"https://api.github.com/repos/jschueller/openturns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jschueller/openturns/merges","archive_url":"https://api.github.com/repos/jschueller/openturns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jschueller/openturns/downloads","issues_url":"https://api.github.com/repos/jschueller/openturns/issues{/number}","pulls_url":"https://api.github.com/repos/jschueller/openturns/pulls{/number}","milestones_url":"https://api.github.com/repos/jschueller/openturns/milestones{/number}","notifications_url":"https://api.github.com/repos/jschueller/openturns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jschueller/openturns/labels{/name}","releases_url":"https://api.github.com/repos/jschueller/openturns/releases{/id}","deployments_url":"https://api.github.com/repos/jschueller/openturns/deployments","created_at":"2015-12-11T10:11:25Z","updated_at":"2016-01-18T11:09:49Z","pushed_at":"2017-04-03T16:23:03Z","git_url":"git://github.com/jschueller/openturns.git","ssh_url":"git@github.com:jschueller/openturns.git","clone_url":"https://github.com/jschueller/openturns.git","svn_url":"https://github.com/jschueller/openturns","homepage":"","size":22446,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openturns:master","ref":"master","sha":"f7e513499feb4cd7eed58e2f91d7784e48642c95","user":{"login":"openturns","id":13798124,"avatar_url":"https://avatars1.githubusercontent.com/u/13798124?v=3","gravatar_id":"","url":"https://api.github.com/users/openturns","html_url":"https://github.com/openturns","followers_url":"https://api.github.com/users/openturns/followers","following_url":"https://api.github.com/users/openturns/following{/other_user}","gists_url":"https://api.github.com/users/openturns/gists{/gist_id}","starred_url":"https://api.github.com/users/openturns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openturns/subscriptions","organizations_url":"https://api.github.com/users/openturns/orgs","repos_url":"https://api.github.com/users/openturns/repos","events_url":"https://api.github.com/users/openturns/events{/privacy}","received_events_url":"https://api.github.com/users/openturns/received_events","type":"Organization","site_admin":false},"repo":{"id":40717169,"name":"openturns","full_name":"openturns/openturns","owner":{"login":"openturns","id":13798124,"avatar_url":"https://avatars1.githubusercontent.com/u/13798124?v=3","gravatar_id":"","url":"https://api.github.com/users/openturns","html_url":"https://github.com/openturns","followers_url":"https://api.github.com/users/openturns/followers","following_url":"https://api.github.com/users/openturns/following{/other_user}","gists_url":"https://api.github.com/users/openturns/gists{/gist_id}","starred_url":"https://api.github.com/users/openturns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openturns/subscriptions","organizations_url":"https://api.github.com/users/openturns/orgs","repos_url":"https://api.github.com/users/openturns/repos","events_url":"https://api.github.com/users/openturns/events{/privacy}","received_events_url":"https://api.github.com/users/openturns/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openturns/openturns","description":"Uncertainty treatment library","fork":false,"url":"https://api.github.com/repos/openturns/openturns","forks_url":"https://api.github.com/repos/openturns/openturns/forks","keys_url":"https://api.github.com/repos/openturns/openturns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openturns/openturns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openturns/openturns/teams","hooks_url":"https://api.github.com/repos/openturns/openturns/hooks","issue_events_url":"https://api.github.com/repos/openturns/openturns/issues/events{/number}","events_url":"https://api.github.com/repos/openturns/openturns/events","assignees_url":"https://api.github.com/repos/openturns/openturns/assignees{/user}","branches_url":"https://api.github.com/repos/openturns/openturns/branches{/branch}","tags_url":"https://api.github.com/repos/openturns/openturns/tags","blobs_url":"https://api.github.com/repos/openturns/openturns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openturns/openturns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openturns/openturns/git/refs{/sha}","trees_url":"https://api.github.com/repos/openturns/openturns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openturns/openturns/statuses/{sha}","languages_url":"https://api.github.com/repos/openturns/openturns/languages","stargazers_url":"https://api.github.com/repos/openturns/openturns/stargazers","contributors_url":"https://api.github.com/repos/openturns/openturns/contributors","subscribers_url":"https://api.github.com/repos/openturns/openturns/subscribers","subscription_url":"https://api.github.com/repos/openturns/openturns/subscription","commits_url":"https://api.github.com/repos/openturns/openturns/commits{/sha}","git_commits_url":"https://api.github.com/repos/openturns/openturns/git/commits{/sha}","comments_url":"https://api.github.com/repos/openturns/openturns/comments{/number}","issue_comment_url":"https://api.github.com/repos/openturns/openturns/issues/comments{/number}","contents_url":"https://api.github.com/repos/openturns/openturns/contents/{+path}","compare_url":"https://api.github.com/repos/openturns/openturns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openturns/openturns/merges","archive_url":"https://api.github.com/repos/openturns/openturns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openturns/openturns/downloads","issues_url":"https://api.github.com/repos/openturns/openturns/issues{/number}","pulls_url":"https://api.github.com/repos/openturns/openturns/pulls{/number}","milestones_url":"https://api.github.com/repos/openturns/openturns/milestones{/number}","notifications_url":"https://api.github.com/repos/openturns/openturns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openturns/openturns/labels{/name}","releases_url":"https://api.github.com/repos/openturns/openturns/releases{/id}","deployments_url":"https://api.github.com/repos/openturns/openturns/deployments","created_at":"2015-08-14T13:48:42Z","updated_at":"2017-03-18T02:41:25Z","pushed_at":"2017-04-03T16:23:04Z","git_url":"git://github.com/openturns/openturns.git","ssh_url":"git@github.com:openturns/openturns.git","clone_url":"https://github.com/openturns/openturns.git","svn_url":"https://github.com/openturns/openturns","homepage":"","size":19581,"stargazers_count":15,"watchers_count":15,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":1,"forks":16,"open_issues":1,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openturns/openturns/pulls/462"},"html":{"href":"https://github.com/openturns/openturns/pull/462"},"issue":{"href":"https://api.github.com/repos/openturns/openturns/issues/462"},"comments":{"href":"https://api.github.com/repos/openturns/openturns/issues/462/comments"},"review_comments":{"href":"https://api.github.com/repos/openturns/openturns/pulls/462/comments"},"review_comment":{"href":"https://api.github.com/repos/openturns/openturns/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openturns/openturns/pulls/462/commits"},"statuses":{"href":"https://api.github.com/repos/openturns/openturns/statuses/1c8108735eee4cead59faa3b1c86ec663a5ee4fd"}}}}
{"actor":{"display_login":"regislebrun"}}