{"action":"created","issue":{"url":"https://api.github.com/repos/apache/metron/issues/667","repository_url":"https://api.github.com/repos/apache/metron","labels_url":"https://api.github.com/repos/apache/metron/issues/667/labels{/name}","comments_url":"https://api.github.com/repos/apache/metron/issues/667/comments","events_url":"https://api.github.com/repos/apache/metron/issues/667/events","html_url":"https://github.com/apache/metron/pull/667","id":245398112,"number":667,"title":"METRON-1061 Add FUZZY_SCORE STELLAR function","user":{"login":"ottobackwards","id":1111551,"avatar_url":"https://avatars0.githubusercontent.com/u/1111551?v=4","gravatar_id":"","url":"https://api.github.com/users/ottobackwards","html_url":"https://github.com/ottobackwards","followers_url":"https://api.github.com/users/ottobackwards/followers","following_url":"https://api.github.com/users/ottobackwards/following{/other_user}","gists_url":"https://api.github.com/users/ottobackwards/gists{/gist_id}","starred_url":"https://api.github.com/users/ottobackwards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ottobackwards/subscriptions","organizations_url":"https://api.github.com/users/ottobackwards/orgs","repos_url":"https://api.github.com/users/ottobackwards/repos","events_url":"https://api.github.com/users/ottobackwards/events{/privacy}","received_events_url":"https://api.github.com/users/ottobackwards/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-25T13:18:18Z","updated_at":"2017-07-28T03:40:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/metron/pulls/667","html_url":"https://github.com/apache/metron/pull/667","diff_url":"https://github.com/apache/metron/pull/667.diff","patch_url":"https://github.com/apache/metron/pull/667.patch"},"body":"[Apache Commons Text Similarity](https://commons.apache.org/proper/commons-text/javadocs/api-release/org/apache/commons/text/similarity/FuzzyScore.html)\r\n\r\nFuzzyScore :\r\n\"A matching algorithm that is similar to the searching algorithms implemented in editors such as Sublime Text, TextMate, Atom and others.\r\nOne point is given for every matched character. Subsequent matches yield two bonus points. A higher score indicates a higher similarity.\"\r\n\r\nThis PR adds FUZZY_SCORE to STELLAR, exposing the Apache Commons FuzzyScore class functionality.\r\n\r\nThis allows for fuzzy matching of strings to queries, and composing statements based on thresholds related to those scores.\r\n\r\nFor example:\r\n\r\nterm = \"metron\"\r\nquery = \"metron\"\r\n\r\n```java\r\n16 == FUZZY_SCORE(term,query,'en')\r\n```\r\n+1 for each match and +2 bonus for the 2nd, 3rd, 4th, 5th, and 6th matches.\r\n\r\n\r\n\r\nThis is related to [METRON-1052](https://issues.apache.org/jira/browse/METRON-1052)\r\n\r\n### For all changes:\r\n- [x] Is there a JIRA ticket associated with this PR? If not one needs to be created at [Metron Jira](https://issues.apache.org/jira/browse/METRON/?selectedTab=com.atlassian.jira.jira-projects-plugin:summary-panel). \r\n- [x] Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen \"-\" character.\r\n- [x] Has your PR been rebased against the latest commit within the target branch (typically master)?\r\n\r\n\r\n### For code changes:\r\n- [ ] Have you included steps to reproduce the behavior or problem that is being changed or addressed?\r\n- [ ] Have you included steps or a guide to how the change may be verified and tested manually?\r\n- [x] Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:\r\n  ```\r\n  mvn -q clean integration-test install && build_utils/verify_licenses.sh \r\n  ```\r\n\r\n- [x] Have you written or updated unit tests and or integration tests to verify your changes?\r\n- [x] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)? \r\n- [] Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?\r\n\r\n### For documentation related changes:\r\n-  [x] Have you ensured that format looks appropriate for the output in which it is rendered by building and verifying the site-book? If not then run the following commands and the verify changes via `site-book/target/site/index.html`:\r\n\r\n  ```\r\n  cd site-book\r\n  mvn site\r\n  ```\r\n\r\n#### Note:\r\nPlease ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.\r\nIt is also recommended that [travis-ci](https://travis-ci.org) is set up for your personal repository such that your branches are built there before submitting a pull request.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/metron/issues/comments/318549509","html_url":"https://github.com/apache/metron/pull/667#issuecomment-318549509","issue_url":"https://api.github.com/repos/apache/metron/issues/667","id":318549509,"user":{"login":"ottobackwards","id":1111551,"avatar_url":"https://avatars0.githubusercontent.com/u/1111551?v=4","gravatar_id":"","url":"https://api.github.com/users/ottobackwards","html_url":"https://github.com/ottobackwards","followers_url":"https://api.github.com/users/ottobackwards/followers","following_url":"https://api.github.com/users/ottobackwards/following{/other_user}","gists_url":"https://api.github.com/users/ottobackwards/gists{/gist_id}","starred_url":"https://api.github.com/users/ottobackwards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ottobackwards/subscriptions","organizations_url":"https://api.github.com/users/ottobackwards/orgs","repos_url":"https://api.github.com/users/ottobackwards/repos","events_url":"https://api.github.com/users/ottobackwards/events{/privacy}","received_events_url":"https://api.github.com/users/ottobackwards/received_events","type":"User","site_admin":false},"created_at":"2017-07-28T03:40:56Z","updated_at":"2017-07-28T03:40:56Z","body":"@JonZeolla "}}
{"actor":{"display_login":"ottobackwards"}}