{"id":16087170,"url":"https://github.com/juliendelplanque/arff","last_synced_at":"2025-10-19T00:47:43.916Z","repository":{"id":83914395,"uuid":"56996514","full_name":"juliendelplanque/Arff","owner":"juliendelplanque","description":"An Arff generator written in Pharo.","archived":false,"fork":false,"pushed_at":"2018-04-16T13:59:27.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-11T11:51:35.866Z","etag":null,"topics":["arff","arff-generator","arff-strings","pharo","smalltalk","weka"],"latest_commit_sha":null,"homepage":null,"language":"Smalltalk","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juliendelplanque.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-04-24T22:02:37.000Z","updated_at":"2018-10-11T14:55:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"d623be80-11bb-4e46-942e-cbb335bfe66e","html_url":"https://github.com/juliendelplanque/Arff","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliendelplanque%2FArff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliendelplanque%2FArff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliendelplanque%2FArff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliendelplanque%2FArff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juliendelplanque","download_url":"https://codeload.github.com/juliendelplanque/Arff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353749,"owners_count":20925329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["arff","arff-generator","arff-strings","pharo","smalltalk","weka"],"created_at":"2024-10-09T13:28:30.720Z","updated_at":"2025-10-19T00:47:43.823Z","avatar_url":"https://github.com/juliendelplanque.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arff\nAn Arff generator written in Pharo.\n\nArff is a format defined by [Weka](http://www.cs.waikato.ac.nz/ml/weka/) to be used for data importation.\nThis project implements a representation of weka's arff concepts as objects in Pharo  and is able to generate valid arff strings.\n\nSee [Arff file spec](https://weka.wikispaces.com/ARFF) to learn more about this format.\n\n## Install\nYou can install this project using the Catalog Browser or by evaluating the following code in a fresh image:\n~~~\nMetacello new\n    baseline: 'Arff';\n    repository: 'github://juliendelplanque/Arff/repository';\n    load\n~~~\n\n## Use this project as a dependency\nSimply add this code snippet to your baseline:\n~~~\nspec baseline: 'Arff' with: [\n    spec repository: 'github://juliendelplanque/Arff/repository' ].\n~~~\n\n## Example\nThe following code:\n~~~\ndoc := ArffDocument new.\ndoc\n    relation: 'temperature';\n    addDateAttribute: 'time' format: 'yyyy-MM-dd HH:mm:ss';\n    addNumericAttribute: 'temperature';\n    addNominalAttribute: 'weather' specification: #('sunny' 'cloudy').\n\ndoc\n    addInstance: #('2015-01-01 12:00:00' 5  'sunny');\n    addInstance: #('2015-02-01 18:40:00' 8  'sunny');\n    addInstance: #('2015-03-01 05:04:00' 3  'cloudy');\n    addInstance: #('2015-04-01 13:01:20' 15 'cloudy');\n    addInstance: #('2015-05-01 09:07:00' 12  'sunny');\n    addInstance: #('2015-06-01 12:20:00' 6  'cloudy').\n\ndoc asString\n~~~\n\nGenerates the arff string:\n~~~\n@relation temperature\n@attribute time date \"yyyy-MM-dd HH:mm:ss\"\n@attribute temperature numeric\n@attribute weather {sunny,cloudy}\n@data\n\"2015-01-01 12:00:00\",5,\"sunny\"\n\"2015-02-01 18:40:00\",8,\"sunny\"\n\"2015-03-01 05:04:00\",3,\"cloudy\"\n\"2015-04-01 13:01:20\",15,\"cloudy\"\n\"2015-05-01 09:07:00\",12,\"sunny\"\n\"2015-06-01 12:20:00\",6,\"cloudy\"\n~~~\n\n## TODO\n- Add messages in ArffDocument to make the DSL simpler.\n- Add possibility to add comment in an ArffDocument.\n\nPull requests are welcome. :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliendelplanque%2Farff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliendelplanque%2Farff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliendelplanque%2Farff/lists"}