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.1.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

embeddings_for_trees-1.1.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: embeddings-for-trees-1.1.0.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for embeddings-for-trees-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b7f4ced52d3ecb9e789ee7d5fb98a69dfad2b4e943df2a83b168ec649ad94f59
MD5 f3169b120fa0291b8577c0d1b1e60de6
BLAKE2b-256 500be1cae7b1205923bfc02f1947ea45c9516b3deb1e1d0e899884b25ebbc7da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: embeddings_for_trees-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for embeddings_for_trees-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bdca3073956c554a3bd9053656cda3aa5b2d063ecc60bb4e4a0f7aca0b7cabe2
MD5 10ba2829e02548526abc1d2848dc9a5c
BLAKE2b-256 082cdb95208df3a3da5680d0710e920ce02f9b1aa96f26bdbf6bd0f2feba5787

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