{"id":19838971,"url":"https://github.com/objectionary/ddr","last_synced_at":"2025-05-01T18:31:47.516Z","repository":{"id":52997755,"uuid":"518891717","full_name":"objectionary/ddr","owner":"objectionary","description":"Experimental Dynamic Dispatch Removal (DDR) Toolkit for EO Programs","archived":false,"fork":false,"pushed_at":"2024-10-29T09:47:59.000Z","size":686,"stargazers_count":7,"open_issues_count":22,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T11:49:59.439Z","etag":null,"topics":["eolang","oop"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/objectionary.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-28T15:04:17.000Z","updated_at":"2024-05-09T00:14:38.000Z","dependencies_parsed_at":"2023-02-10T01:30:33.437Z","dependency_job_id":"15365d4c-af3b-4135-a517-cf8520c1f6d6","html_url":"https://github.com/objectionary/ddr","commit_stats":{"total_commits":281,"total_committers":5,"mean_commits":56.2,"dds":"0.28113879003558717","last_synced_commit":"859549bdb23af38ac079b13a89b16956d06ec598"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Fddr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Fddr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Fddr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Fddr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/objectionary","download_url":"https://codeload.github.com/objectionary/ddr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224270897,"owners_count":17283874,"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":["eolang","oop"],"created_at":"2024-11-12T12:19:46.547Z","updated_at":"2025-05-01T18:31:47.510Z","avatar_url":"https://github.com/objectionary.png","language":"Kotlin","readme":"\u003cimg alt=\"logo\" src=\"https://www.objectionary.com/cactus.svg\" height=\"100px\" /\u003e\n\n[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)\n[![DevOps By Rultor.com](http://www.rultor.com/b/objectionary/eo-files)](http://www.rultor.com/p/objectionary/ddr)\n[![We recommend IntelliJ IDEA](https://www.elegantobjects.org/intellij-idea.svg)](https://www.jetbrains.com/idea/)\n\n[![mvn](https://github.com/objectionary/ddr/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/objectionary/ddr/actions/workflows/build.yml)\n[![Hits-of-Code](https://hitsofcode.com/github/objectionary/ddr)](https://hitsofcode.com/view/github/objectionary/ddr)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/objectionary/ddr/blob/master/LICENSE.txt)\n\nDDR is an Experimental Dynamic Dispatch Removal Toolkit for [EO](https://www.eolang.org) Programs\n\n### Launch\n\n#### Using Maven\nJust add this to your `pom.xml`\n\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.eolang\u003c/groupId\u003e\n  \u003cartifactId\u003eddr\u003c/artifactId\u003e\n  \u003cversion\u003e0.0.5\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nAnd then you'll be able to use the tool like this:\n```\nCombinerKt.launch(\"${PATH_TO_YOUR_DIRECTORY}\");\n```\n\n#### From IntelliJ Idea\nYou can launch the tool from IntelliJ Idea using MainKt configuration.\nJust click `Edit configuration` in the `'Edit run/debug configurations' dialog` and\ntype an absolute path to your input directory with `.xmir` files in the `Program arguments` field.\n\nAfter the execution a new directory named `${YOUR_DIRECTORY_NAME}_ddr` will be created near your directory.\n\n#### From console\nUse these commands to launch the tool from console\n```\n$ mvn clean install\n$ java -jar target/ddr-1.0-SNAPSHOT-jar-with-dependencies.jar \"${PATH_TO_YOUR_DIRECTORY}\"\n```\n\n### Tests\n\n#### How to add integration tests:\n1) Add your directory with `.eo` source files to `src/test/resources/integration/in`.\nNote that directory name must be written in snake case.\n\n2) Add your directory with desired output `.eo` files to `src/test/resources/integration/out`.\nNote that `.eo` files in the output directory must use dot notation like shown below:\n```\n[] \u003e greet\n  QQ\n  .io\n  .stdout \u003e @\n    \"Hello, world!\"\n```\n\n3) Add a test to [ResolverTest](src/test/kotlin/org/objectionary/ddr/integration/resolver/ResolverTest.kt).\nYour test name must be identical to your added directory name with `_` symbols replaced with spaces and a word `test` inserted in the beginning.\nExample:\nDirectory name: `basic_example`\nTest:\n```\n@Test\nfun `test basic example`() = doTest()\n```\n\nIf your tests don't pass - you can take a look at temporary files in `src/test/resources/integration/eo_outputs` directory.\nIt should be more convenient for you, because you will have all your actual `.eo` files located there.\n\nThat's it :)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectionary%2Fddr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobjectionary%2Fddr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectionary%2Fddr/lists"}