{"id":19925679,"url":"https://github.com/openscoring/openscoring-apps-script","last_synced_at":"2026-03-03T21:02:31.974Z","repository":{"id":17512949,"uuid":"20300894","full_name":"openscoring/openscoring-apps-script","owner":"openscoring","description":"Openscoring client library for the Google Apps platform","archived":false,"fork":false,"pushed_at":"2014-05-30T06:29:08.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T10:32:39.744Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Gosu","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openscoring.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-29T16:47:47.000Z","updated_at":"2016-09-07T17:53:36.000Z","dependencies_parsed_at":"2022-09-24T16:51:48.312Z","dependency_job_id":null,"html_url":"https://github.com/openscoring/openscoring-apps-script","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/openscoring/openscoring-apps-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openscoring%2Fopenscoring-apps-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openscoring%2Fopenscoring-apps-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openscoring%2Fopenscoring-apps-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openscoring%2Fopenscoring-apps-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openscoring","download_url":"https://codeload.github.com/openscoring/openscoring-apps-script/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openscoring%2Fopenscoring-apps-script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30060651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T22:23:42.766Z","updated_at":"2026-03-03T21:02:31.960Z","avatar_url":"https://github.com/openscoring.png","language":"Gosu","funding_links":[],"categories":[],"sub_categories":[],"readme":"Openscoring client library for the Google Apps platform\n\n# Installation and Usage #\n\n1. Start the script editor by clicking **Tools -\u003e Script Editor...** (spreadsheet window)\n2. Create a blank script project.\n3. Create a new script file by clicking **File -\u003e New -\u003e Script file** (script editor window).\n4. Copy and paste the contents of the [Openscoring.gs file] (https://github.com/jpmml/openscoring-apps-script/blob/master/Openscoring.gs) to this newly created script file.\n5. Open the default script file \"Code.gs\". Write a wrapper function for every model that you want to use in your spreadsheet application. Close the script editor when done.\n6. Reference wrapper functions by name in your spreadsheet application.\n\n### Wrapper functions ###\n\nTypical responsibilities of a wrapper function:\n1. Documentation ([JSDoc] (http://usejsdoc.org/) data format).\n2. Encapsulating the URL of the model.\n3. Binding input cell values to active field values.\n4. Binding the target field value to the output cell value.\n\nDefining a wrapper function for the `DecisionTreeIris.pmml` model: \n```javascript\n/**\n * @param sepalLength The length of sepals, in centimetres\n * @param sepalWidth The width of sepals, in centimetres\n * @param petalLength The length of petals, in centimetres\n * @param petalWidth The width of petals, in centimetres\n *\n * @return {string} The species of Iris\n */\nfunction decisionTreeIris(sepalLength, sepalWidth, petalLength, petalWidth){\n  // A map containing active fields\n  var arguments = {\n    \"Sepal.Length\" : sepalLength,\n    \"Sepal.Width\" : sepalWidth,\n    \"Petal.Length\" : petalLength,\n    \"Petal.Width\" : petalWidth\n  };\n\n  // A map containing target and output fields\n  var result = evaluate(\"http://mycompany.com/openscoring/model/DecisionTreeIris\", arguments);\n\n  return result[\"Species\"];\n}\n```\n\nReferencing this wrapper function:\n```\n=decisionTreeIris(A2, B2, C2, D2)\n```\n\n# License #\n\nOpenscoring is dual-licensed under the [GNU Affero General Public License (AGPL) version 3.0] (http://www.gnu.org/licenses/agpl-3.0.html) and a commercial license.\n\n# Additional information #\n\nPlease contact [info@openscoring.io] (mailto:info@openscoring.io)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenscoring%2Fopenscoring-apps-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenscoring%2Fopenscoring-apps-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenscoring%2Fopenscoring-apps-script/lists"}