Skip to main content

Set of PyTorch modules for developing and evaluating different algorithms for embedding trees.

Project description

JetBrains Research Github action: build Code style: black Checked with mypy

Embeddings for trees

Set of PyTorch modules for developing and evaluating different algorithms for embedding trees.

Requirements

You can install the dependencies by using the requirement list

pip install -r requirements.txt

Although it's better to install PyTorch and DGL manually for correct CUDA support.

Data preprocessing

List of some useful tools for preprocessing source code into a dataset with ASTs:

  • ASTMiner - tool for mining raw ASTs and path-based representation of code using ANTLR, GumTree and other grammars.
  • PSIMiner - tool for processing PSI trees from IntelliJ IDEA and creating labeled dataset from them.

Model zoo

List of supported algorithms of tree embeddings with links to wiki guides:

Contribution

Supporting different algorithms of encoding and decoding trees is the key area of improvement for this framework. If you have any suggestions or questions, feel free to open issues and create pull requests.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

embeddings-for-trees-1.0.2.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

embeddings_for_trees-1.0.2-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file embeddings-for-trees-1.0.2.tar.gz.

File metadata

  • Download URL: embeddings-for-trees-1.0.2.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for embeddings-for-trees-1.0.2.tar.gz
Algorithm Hash digest
SHA256 92659cae946c80a9fac24fc63ba6df44fc34e62f34694a820bfe25d4d09f1677
MD5 1e0ae41d8aacb607551158f741efd78e
BLAKE2b-256 938b7fcff16161fe2ae34d3a5a69ed4abc6a9bb9953076fb56f23d362d9274c1

See more details on using hashes here.

File details

Details for the file embeddings_for_trees-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: embeddings_for_trees-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for embeddings_for_trees-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 98f3cdaf57d55430a0d0e5ba9f262c9c7e4815b458c711cbc08791b4a1b719ab
MD5 3e8e4e0a3254ecaf84adf8cea7f55c2b
BLAKE2b-256 3faa0ca1c95cc9c06e773e3d2bdaa99b051e51cc610821fe9fec9c7e0eb9d3af

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page