Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This is a comment.
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
# @global-owner1 and @global-owner2 will be requested for
# review when someone opens a pull request.
* @wandera/datascience

# Order is important; the last matching pattern takes the most
# precedence. When someone opens a pull request that only
# modifies JS files, only @js-owner and not the global
# owner(s) will be requested for a review.
# *.js @js-owner

# You can also use email addresses if you prefer. They'll be
# used to look up users just like we do for commit author
# emails.
#*.go [email protected]

# The `docs/*` pattern will match files like
# `docs/getting-started.md` but not further nested files like
# `docs/build-app/troubleshooting.md`.
# docs/* [email protected]

# In this example, @octocat owns any file in an apps directory
# anywhere in your repository.
# apps/ @octocat

# In this example, @doctocat owns any file in the `/docs`
# directory in the root of your repository.
# /docs/ @doctocat
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM python:3.10.11-slim

ADD . /asm2vec-pytorch
WORKDIR asm2vec-pytorch

RUN apt-get update && apt-get install -y --no-install-recommends \
unixodbc-dev \
unixodbc \
libpq-dev && \
pip install -r requirements.txt && \
python setup.py install

CMD ["/bin/sh"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The details of the model can be found in the original paper: [(sp'19) Asm2Vec: B

## Requirements

python >= 3.6
python >= 3.10

| packages | for |
| --- | --- |
Expand Down
2 changes: 2 additions & 0 deletions asm2vec/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VERSION = '1.0.0'
DEV_VERSION = '0'
15 changes: 15 additions & 0 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: asm2vec-pytorch
description: All code running ASM2VEC using PyTorch
labels:
- jira-key: DATASCI
- language: Python
annotations:
backstage.io/source-location: url:https://github.com/wandera/asm2vec-pytorch
spec:
type: service
lifecycle: production
owner: datascience
system: datascience
30 changes: 23 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
from setuptools import setup, find_packages

from asm2vec.version import VERSION


def readme():
with open('README.md') as f:
return f.read()


def read_requirements():
with open('requirements.txt') as f:
return [s for s in f.read().split('\n') if not ('--index-url' in s)]


setup(
name='asm2vec',
version='1.0.0',
description='Unofficial implementation of asm2vec using pytorch',
install_requires=['torch>=1.7,<2'
'click>=7.1,<8'
'r2pipe>=1.5,<2'],
author='oalieno',
author_email='[email protected]',
version=VERSION,
description="Jamf's implementation of asm2vec using pytorch",
long_description=readme(),
author='oalieno/jamf',
author_email='[email protected]',
license='MIT License',
install_requires=read_requirements(),
packages = find_packages(),
zip_safe=False,
include_package_data=True,
test_suite='nose.collector',
tests_require=['nose']
)