index int64 | repo_name string | branch_name string | path string | content string | import_graph string |
|---|---|---|---|---|---|
38,368 | alexnwang/SketchEmbedNet-public | refs/heads/master | /run_compositionality_exp.py | import os
import traceback
import numpy as np
import cv2
import sklearn
import umap
import tensorflow as tf
import matplotlib.pyplot as plt
from sklearn import linear_model
from sklearn.neural_network import MLPRegressor
from PIL import Image
from absl import app, flags, logging
from matplotlib.offsetbox ... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,369 | alexnwang/SketchEmbedNet-public | refs/heads/master | /models/vae.py | import os
from time import time
import tensorflow as tf
from absl import logging
from models.base import TrainableModel, register_model
from models.subs.conv_block import ResNet12Block, ResNet12BlockReverse
from util import process_write_out
from util.write_routines import parallel_writer_vae_latent
@re... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,370 | alexnwang/SketchEmbedNet-public | refs/heads/master | /datasets/quickdraw.py | import os
from concurrent.futures.process import ProcessPoolExecutor
from itertools import repeat
from math import ceil
from time import time
import numpy as np
import psutil as psutil
from absl import logging
from datasets.base import register_dataset, DatasetBase
from util import get_normalizing_scale_fa... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,371 | alexnwang/SketchEmbedNet-public | refs/heads/master | /configs/base/configs.py | from absl import logging
CONFIGS = {}
def register_config(config_name):
"""
Decorator for registering config class.
:param config_name:
:return:
"""
def decorator(f):
CONFIGS[config_name] = f
return f
return decorator
def get_config_old(config):
"""
Returns conf... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,372 | alexnwang/SketchEmbedNet-public | refs/heads/master | /configs/miniimagenet_configs.py | from configs import register_config
from util import HParams, miniimagenet_train, miniimagenet_eval
@register_config("miniimagenet")
def miniimagenet_default():
return HParams(
# ----- Dataset Parameters ----- #
split="",
mode="batch", # episodic or batch
# ----- Batch... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,373 | alexnwang/SketchEmbedNet-public | refs/heads/master | /models/subs/decoders.py | import tensorflow as tf
from absl import logging
from models.subs.cells import LayerNormLSTMCell, HyperLSTMCell
from util import get_mixture_coef
class DecoderDefault(tf.keras.Model):
def __init__(self, rnn_output_size, num_mixtures, rnn_model, cell_configs):
"""
Autoregressive RNN Sequence decod... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,374 | alexnwang/SketchEmbedNet-public | refs/heads/master | /run_experiment.py | import os
import traceback
import numpy as np
import tensorflow as tf
from absl import app, flags, logging
import models
import configs
import datasets
from util import HParams
from util import log_flags, log_hparams
try:
import horovod.tensorflow as hvd
except:
hvd = None
os.environ['TF_C... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,375 | alexnwang/SketchEmbedNet-public | refs/heads/master | /configs/__init__.py | from .drawer_configs import *
from .vae_configs import *
from .classifier_configs import *
from .quickdraw_configs import *
from .fs_omniglot_configs import *
from .sketchy_configs import *
from .miniimagenet_configs import *
from .base import *
| {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,376 | alexnwang/SketchEmbedNet-public | refs/heads/master | /datasets/__init__.py | from .quickdraw import *
from .fs_omniglot import *
from .fs_omniglot_vinyals import *
from .sketchy import *
from .miniimagenet import *
from .base import *
| {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,377 | alexnwang/SketchEmbedNet-public | refs/heads/master | /util/drawer_utils.py | import tensorflow as tf
import numpy as np
from .utils import gaussian_blur
def compute_pixel_loss(pi, mu1, mu2, sigma1, sigma2, rho, pen, stroke_gt, batch_size, pixel_dims):
"""
Computes the pixel loss given mixture of gaussian outputs at every timestep for the entire decoding process.
:param pi:... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,378 | alexnwang/SketchEmbedNet-public | refs/heads/master | /models/drawer_enc_block.py | from models import DrawerModel, register_model, DecoderDefault
from models.subs.encoders import EncoderBlock4
import tensorflow as tf
try:
import horovod.tensorflow as hvd
except:
hvd = None
@register_model('drawer_enc_block')
class DrawerEncBlockModel(DrawerModel):
def __init__(self, base_di... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,379 | alexnwang/SketchEmbedNet-public | refs/heads/master | /util/quickdraw_utils.py | import os
from io import BytesIO
import numpy as np
import svgwrite
from PIL import Image
try:
import cairosvg
except:
cairosvg = None
def stroke_three_format(big_stroke):
"""
Convert from stroke-5 format (from sketch-rnn paper) back to stroke-3.
This is only for SCALE INVARIANT ... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,380 | alexnwang/SketchEmbedNet-public | refs/heads/master | /datasets/base/datasets.py | DATA_SETS = {}
def register_dataset(dataset_name):
"""
Decorator for registering a dataset class.
:param dataset_name:
:return:
"""
def decorator(f):
DATA_SETS[dataset_name] = f
return f
return decorator
def get_dataset(dataset):
"""
Returns dataset class if regi... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,381 | alexnwang/SketchEmbedNet-public | refs/heads/master | /models/subs/encoders.py | import tensorflow as tf
from models.subs.conv_block import ResNet12Block
class EncoderConv(tf.keras.Model):
def __init__(self, z_size, cell_state_size, filters=(4, 4, 8, 8, 8, 8)):
"""
Minimal pure-conv encoder used in https://arxiv.org/pdf/1709.04121.pdf
:param z_size:
:param cel... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,382 | alexnwang/SketchEmbedNet-public | refs/heads/master | /prepare_data.py | import os
import traceback
import numpy as np
import tensorflow as tf
from absl import app, flags, logging
import configs
import datasets
from util import HParams
from util import log_flags, log_hparams
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
FLAGS = flags.FLAGS
flags.DEFINE_string("dir", "/h/wang... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,383 | alexnwang/SketchEmbedNet-public | refs/heads/master | /models/base/model_base.py | import os
import tensorflow as tf
class BaseModel(object):
"""
Basic model
"""
def __init__(self, base_dir, model_id):
self._base_dir = base_dir
self._dir = os.path.join(base_dir, model_id)
self._summary_dir = os.path.join(self._dir, "tfsummary", self.__class__.__n... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,384 | alexnwang/SketchEmbedNet-public | refs/heads/master | /run_full_eval.py | import os
import traceback
import numpy as np
import tensorflow as tf
from absl import app, flags, logging
import models
import configs
import datasets
from models import ClassifierModel, DrawerModel
from util import HParams, interpolate
from util import log_flags
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
FLAGS = fl... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,385 | alexnwang/SketchEmbedNet-public | refs/heads/master | /models/__init__.py | from .drawer import *
from .drawer_enc_block import *
from .drawer_enc_resnet12 import *
from .classifier import *
from .vae import *
from .vae_enc_block import *
from .base import *
from .lr_fs import *
| {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,386 | alexnwang/SketchEmbedNet-public | refs/heads/master | /datasets/miniimagenet.py | import os
import pickle as pkl
import numpy as np
from PIL import Image
from absl import logging
from datasets import register_dataset, DatasetBase, DatasetEpisodic
@register_dataset("miniimagenet")
class MiniImageNet(DatasetEpisodic):
def __init__(self, data_dir, params):
super(MiniImage... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,387 | alexnwang/SketchEmbedNet-public | refs/heads/master | /util/write_routines.py | import os
from time import time
import numpy as np
from PIL import Image
from absl import logging
from util import stroke_three_format, scale_and_rasterize, stroke_three_format_centered, rasterize
def parallel_writer_sketches(path, queue, shard_size=1, cumul=False, png_dims=(28, 28)):
logging.info("Archiving la... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,388 | alexnwang/SketchEmbedNet-public | refs/heads/master | /models/classifier.py | import os
from time import time
import tensorflow as tf
import numpy as np
from absl import logging
from .drawer import DrawerModel
from .vae import VAE
from models.base import TrainableModel, register_model
from util import stroke_three_format, scale_and_center_stroke_three, rasterize
@register_model('classifier')... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,389 | alexnwang/SketchEmbedNet-public | refs/heads/master | /datasets/base/dataset_episodic.py | import os
import traceback
import random
import tensorflow as tf
import numpy as np
from absl import logging
from .dataset_base import DatasetBase
class DatasetEpisodic(DatasetBase):
def __init__(self, data_dir, params):
super(DatasetEpisodic, self).__init__(data_dir, params)
def _load... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,390 | alexnwang/SketchEmbedNet-public | refs/heads/master | /datasets/sketchy.py | import os
from concurrent.futures.process import ProcessPoolExecutor
from time import time
from itertools import repeat
from math import ceil
import numpy as np
import psutil
import csv
import requests
import gc
from PIL import Image
from absl import logging
from svgpathtools import svg2paths
from da... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,391 | alexnwang/SketchEmbedNet-public | refs/heads/master | /datasets/fs_omniglot_vinyals.py | import os
import numpy as np
from PIL import Image
from absl import logging
from datasets.base import register_dataset, DatasetEpisodic
from util import string_to_strokes, apply_rdp, strokes_to_stroke_three, stroke_five_format, get_normalizing_scale_factor, \
scale_and_center_stroke_three, rasterize, stro... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,392 | alexnwang/SketchEmbedNet-public | refs/heads/master | /configs/classifier_configs.py | from configs.base import register_config
from util import HParams, ST2_classes, T1_classes, T2_classes
@register_config("classifier")
def classifier_default():
return HParams(
# ----- Model Parameters ----- #
class_list=None,
png_dims=32,
weights=None,
# ----- ... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,393 | alexnwang/SketchEmbedNet-public | refs/heads/master | /util/fs_omniglot_utils.py | import numpy as np
from rdp import rdp
def string_to_strokes(stroke_str, flip=True):
"""
Convert Omniglot string-format data to an absolute stroke-3 format.
:param stroke_str:
:param epsilon:
:param flip: flip (only use if omniglot)
:return:
"""
strokes_raw = [stroke.stri... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,394 | alexnwang/SketchEmbedNet-public | refs/heads/master | /models/subs/cells.py | import tensorflow as tf
class LayerNormLSTMCell(tf.keras.layers.AbstractRNNCell):
"""Layer-Norm, with Ortho Init. and Recurrent Dropout without Memory Loss.
https://arxiv.org/abs/1607.06450 - Layer Norm
https://arxiv.org/abs/1603.05118 - Recurrent Dropout without Memory Loss
"""
def __init__(sel... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,395 | alexnwang/SketchEmbedNet-public | refs/heads/master | /models/base/__init__.py | from .model_base import *
from .models import *
| {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,396 | alexnwang/SketchEmbedNet-public | refs/heads/master | /models/base/models.py | MODELS = {}
def register_model(model_name):
"""
Decorator for registering a model class.
:param model_name:
:return:
"""
def decorator(f):
MODELS[model_name] = f
return f
return decorator
def get_model(model):
"""
Returns model class if register... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,397 | alexnwang/SketchEmbedNet-public | refs/heads/master | /util/logging.py | import logging
def log_flags(flags):
logging.info("---------------------------------------------FLAGS---------------------------------------------")
flags_dict = flags.flag_values_dict()
for key in list(flags_dict.keys())[20:-5]:
logging.info("[%s]: %s", key, flags_dict[key])
logging.info("--... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,398 | alexnwang/SketchEmbedNet-public | refs/heads/master | /models/drawer.py | import os
import tensorflow as tf
import numpy as np
from PIL import Image
from absl import logging
from time import time
from models.base import TrainableModel, register_model
from models.subs.decoders import DecoderDefault
from models.subs.encoders import EncoderConv
from util import compute_pen_state_lo... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,399 | alexnwang/SketchEmbedNet-public | refs/heads/master | /models/vae_enc_block.py | from models import register_model, VAE
from models.subs.conv_block import BlockConv, BlockConvReverse
import tensorflow as tf
try:
import horovod.tensorflow as hvd
except:
hvd = None
@register_model('vae_enc_block')
class VAEEncBlock(VAE):
def __init__(self, base_dir, model_id, params, traini... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,400 | alexnwang/SketchEmbedNet-public | refs/heads/master | /models/subs/conv_block.py | import tensorflow as tf
class ResNet12Block(tf.keras.layers.Layer):
def __init__(self, num_filters, add_relu=True):
"""
ResNet12 Block from https://arxiv.org/abs/1805.10123
Swapped swish activation for relu.
:param num_filters:
:param add_relu:
"""
... | {"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_... |
38,406 | borovskiy/defining_form_filling | refs/heads/main | /app.py | from validators import list_name_template
from flask import Flask, request
from tinydb import TinyDB
app = Flask(__name__)
db = TinyDB('base.db')
@app.route('/get_form', methods=['POST'])
def index():
if request.method == 'POST':
if request.args:
list_name = list_name_template(db=db.all(), re... | {"/app.py": ["/validators.py"], "/test_requests.py": ["/app.py"]} |
38,407 | borovskiy/defining_form_filling | refs/heads/main | /test_requests.py | from app import app
import unittest
class BasicTestCase(unittest.TestCase):
def setUp(self) -> None:
self.url = 'http://127.0.0.1:5000/get_form?'
def test_no_valid_response(self):
tester = app.test_client(self)
response = tester.post(self.url + 'f_name1=va@mail.ru&f_name2=+7950388651... | {"/app.py": ["/validators.py"], "/test_requests.py": ["/app.py"]} |
38,408 | borovskiy/defining_form_filling | refs/heads/main | /validators.py | import datetime
def telephone_check(enter_string_data: str) -> bool:
"""функция проверки числа на принадлежность к номеру телефона"""
if enter_string_data[0] == '8':
truncated_number = enter_string_data[1:]
elif enter_string_data[0:2].strip() in ['7', '+7']:
truncated_number = enter_string... | {"/app.py": ["/validators.py"], "/test_requests.py": ["/app.py"]} |
38,410 | MayfeelYang/angr | refs/heads/master | /angr/path_history.py | import logging
import weakref
import simuvex
import claripy
l = logging.getLogger("angr.path_history")
class PathHistory(object):
"""
This class keeps track of historically-relevant information for paths.
"""
__slots__ = ('_parent', 'merged_from', 'merge_conditions', 'length', 'extra_length', '_addrs... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,411 | MayfeelYang/angr | refs/heads/master | /angr/tablespecs.py | import claripy
class StringSpec(object):
def __new__(cls, string=None, sym_length=None, concat=None, name=None, nonnull=False):
print 'StringSpec is deprecated! Please use raw claripy ASTs or else face my wrath.'
if nonnull:
print 'Additional deprecation warning: nonnull completely does... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,412 | MayfeelYang/angr | refs/heads/master | /angr/surveyors/caller.py | from .explorer import Explorer
import simuvex
class Callable(object):
"""
Callable is a representation of a function in the binary that can be
interacted with like a native python function.
If you set perform_merge=True (the default), the result will be returned to you, and
you can get the result ... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,413 | MayfeelYang/angr | refs/heads/master | /tests/test_argv.py | import nose
import angr, claripy
import logging
l = logging.getLogger("angr_tests")
import os
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def test_mips():
arger_mips = angr.Project(test_location + "/mips/argv_test")
r_addr = 0x400768
s = arger_m... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,414 | MayfeelYang/angr | refs/heads/master | /angr/path.py | from os import urandom
import copy
import logging
import collections
l = logging.getLogger("angr.path")
import simuvex
import claripy
import mulpyplexer
#pylint:disable=unidiomatic-typecheck
UNAVAILABLE_RET_ADDR = -1
class CallFrame(object):
"""
Stores the address of the function you're in and the value of... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,415 | MayfeelYang/angr | refs/heads/master | /angr/simos.py | """
Manage OS-level configuration.
"""
import logging
from archinfo import ArchARM, ArchMIPS32, ArchMIPS64, ArchX86, ArchAMD64, ArchPPC32, ArchPPC64, ArchAArch64
from simuvex import SimState, SimIRSB, SimStateSystem, SimActionData
from simuvex import s_options as o, s_cc
from simuvex import SimProcedures
from simuvex... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,416 | MayfeelYang/angr | refs/heads/master | /tests/test_block_cache.py | import angr
import logging
l = logging.getLogger("angr.tests")
import os
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def test_block_cache():
p = angr.Project(os.path.join(test_location, "x86_64", "fauxware"), translation_cache=True)
b = p.factory.blo... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,417 | MayfeelYang/angr | refs/heads/master | /angr/analyses/girlscout.py | import logging
import string
import math
import re
import os
import pickle
from datetime import datetime
from collections import defaultdict
import networkx
import progressbar
import simuvex
import cle
import pyvex
from ..errors import AngrError
from ..analysis import Analysis, register_analysis
from ..surveyors imp... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,418 | MayfeelYang/angr | refs/heads/master | /angr/errors.py | class AngrError(Exception):
pass
class AngrValueError(AngrError, ValueError):
pass
class AngrMemoryError(AngrError):
pass
class AngrTranslationError(AngrError):
pass
class AngrLifterError(AngrError):
pass
class AngrExitError(AngrError):
pass
class AngrPathError(AngrError):
pass
class ... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,419 | MayfeelYang/angr | refs/heads/master | /tests/test_signed_div.py | import nose
import angr
import subprocess
import logging
l = logging.getLogger('angr.tests.test_signed_div')
import os
test_location = str(os.path.dirname(os.path.realpath(__file__)))
def run_signed_div():
test_bin = os.path.join(test_location, "../../binaries-private/tests/i386/test_signed_div")
b = angr.P... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,420 | MayfeelYang/angr | refs/heads/master | /angr/project.py | #!/usr/bin/env python
# pylint: disable=W0703
import os
import types
import logging
import weakref
import cle
import simuvex
import archinfo
l = logging.getLogger("angr.project")
projects = weakref.WeakValueDictionary()
def fake_project_unpickler(name):
if name not in projects:
raise AngrError("Project... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,421 | MayfeelYang/angr | refs/heads/master | /angr/knowledge_base.py | """Representing the artifacts of a project."""
from .knowledge.data import Data
from .knowledge.function_manager import FunctionManager
class KnowledgeBase(object):
"""Represents a "model" of knowledge about an artifact.
Contains things like a CFG, data references, etc.
"""
def __init__(self, projec... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,422 | MayfeelYang/angr | refs/heads/master | /angr/surveyors/executor.py | import logging
from ..surveyor import Surveyor
l = logging.getLogger("angr.surveyors.executor")
class Executor(Surveyor):
"""
This class handles pure concrete execution related issues.
No state splitting is ever allowed.
"""
def __init__(self, project, start, final_addr=None, \
p... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,423 | MayfeelYang/angr | refs/heads/master | /tests/test_self_modifying_code.py | import angr
from simuvex import o
import claripy
import nose
import os
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def test_self_modifying_code():
p = angr.Project(os.path.join(test_location, 'i386/stuff'))
pg = p.factory.path_group(p.factory.entry_st... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,424 | MayfeelYang/angr | refs/heads/master | /angr/helpers.py | #!/usr/bin/env python
import logging
l = logging.getLogger("angr.helpers")
def once(f):
name = f.__name__
def func(self, *args, **kwargs):
if len(args) + len(kwargs) == 0:
if hasattr(self, "_" + name):
return getattr(self, "_" + name)
a = f(self, *args, **kwa... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,425 | MayfeelYang/angr | refs/heads/master | /tests/test_hook.py | import nose
import angr
import os
location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def test_mips():
MAIN_END = 0x4007D8
INNER_LOOP = 0x40069C
OUTER_LOOP = 0x40076C
p = angr.Project(location + '/mips/test_loops')
output = []
def hook1(_):
... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,426 | MayfeelYang/angr | refs/heads/master | /angr/surveyors/slicecutor.py | #!/usr/bin/env python
import logging
l = logging.getLogger("angr.surveyors.slicecutor")
from ..surveyor import Surveyor
from ..errors import AngrExitError
from collections import defaultdict
# pylint: disable=W0212,
#
# HappyGraph is just here for testing. Please ignore it!
#
class HappyGraph(object):
def __in... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,427 | MayfeelYang/angr | refs/heads/master | /tests/broken_variableseekr.py | #!/usr/bin/env python
import logging
l = logging.getLogger("angr.tests")
import nose
import angr, simuvex
from angr import AngrError
# load the tests
import os
test_location = str(os.path.dirname(os.path.realpath(__file__)))
projects = {}
projects['fauxwares'] = {}
projects['cfg_1'] = {}
projects['allcmps'] = {}
pr... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,428 | MayfeelYang/angr | refs/heads/master | /tests/test_argc_sym.py | import angr
import claripy
import logging
l = logging.getLogger("angr_tests")
import os
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def _verify_results(pg, sargc, length=400):
argcs = pg.mp_found.state.se.any_int(sargc)
strs = pg.mp_found.state.se.an... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,429 | MayfeelYang/angr | refs/heads/master | /tests/test_cfg_path.py | import angr
import logging
import os
l = logging.getLogger("angr_tests")
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)),
'../../binaries/tests'))
def test_cfg_paths():
p = angr.Project(os.path.join(test_location, "x86_64/track_user_input"))
main_a... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,430 | MayfeelYang/angr | refs/heads/master | /angr/analyses/veritesting.py | import logging
from collections import defaultdict
import networkx
from simuvex import SimProcedures, o
from ..errors import AngrError, AngrCFGError
from ..analysis import Analysis, register_analysis
from ..path_group import PathGroup
from ..path import Path, AngrPathError
l = logging.getLogger('angr.analyses.verit... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,431 | MayfeelYang/angr | refs/heads/master | /angr/knowledge/data.py | class Data(object):
def __init__(self, model):
self._model = model
| {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,432 | MayfeelYang/angr | refs/heads/master | /angr/entry_wrapper.py | import copy
import logging
from itertools import dropwhile
import simuvex
l = logging.getLogger(name="angr.entry_wrapper")
# TODO: Make callsite an object and use it in SimRunKey and FunctionKey
class SimRunKey(object):
"""
A context-sensitive key for a SimRun object.
"""
def __init__(self, addr, c... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,433 | MayfeelYang/angr | refs/heads/master | /angr/analyses/code_location.py |
class CodeLocation(object):
"""
Stands for a specific program point by specifying basic block address and statement ID (for IRSBs), or SimProcedure
name (for SimProcedures).
"""
def __init__(self, simrun_addr, stmt_idx, sim_procedure=None, ins_addr=None, **kwargs):
"""
Constructor.... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,434 | MayfeelYang/angr | refs/heads/master | /angr/analyses/congruency_check.py | import logging
import claripy
import simuvex
from ..analysis import Analysis, register_analysis
l = logging.getLogger('angr.analyses.congruency_check')
#l.setLevel(logging.DEBUG)
class CongruencyCheck(Analysis):
"""
This is an analysis to ensure that angr executes things identically with different execution backen... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,435 | MayfeelYang/angr | refs/heads/master | /angr/knowledge/__init__.py | from .codenode import CodeNode, BlockNode, HookNode
from .data import Data
from .function_manager import FunctionManager
from .function import Function
| {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,436 | MayfeelYang/angr | refs/heads/master | /angr/analyses/cfg_node.py | import pyvex
import simuvex
class CFGNode(object):
"""
This class stands for each single node in CFG.
"""
def __init__(self,
addr,
size,
cfg,
callstack_key=None,
input_state=None,
simprocedure_name=Non... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,437 | MayfeelYang/angr | refs/heads/master | /tests/test_scanf.py | import nose
import logging
l = logging.getLogger('angr.tests.scanf')
import os
import string
import angr
test_location = str(os.path.dirname(os.path.realpath(__file__)))
class Checker(object):
def __init__(self, check_func, length=None, base=10, dummy=False):
self._check_func = check_func
self.... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,438 | MayfeelYang/angr | refs/heads/master | /tests/test_vfg_path.py | import angr
import logging
import os
l = logging.getLogger("angr_tests")
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)),
'../../binaries/tests'))
def test_vfg_paths():
p = angr.Project(os.path.join(test_location, "x86_64/track_user_input"))
main_a... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,439 | MayfeelYang/angr | refs/heads/master | /tests/test_serialization.py | import cPickle as pickle
import nose
import angr
import ana
import os
import tempfile
internaltest_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
internaltest_files = [ 'argc_decide', 'argc_symbol', 'argv_test', 'counter', 'fauxware', 'fauxware.idb', 'manysum', 'pw', ... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,440 | MayfeelYang/angr | refs/heads/master | /tests/test_mem_funcs.py | import nose
import angr
import logging
l = logging.getLogger("angr_tests")
import os
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def test_memmove():
memmove_amd64 = angr.Project(test_location + "/x86_64/memmove", load_options={'auto_load_libs': True}, ex... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,441 | MayfeelYang/angr | refs/heads/master | /angr/extern_obj.py | from cle import Backend, Clemory, Segment
class AngrExternObject(Backend):
def __init__(self, arch, alloc_size=0x4000, granularity=16):
super(AngrExternObject, self).__init__('##angr_externs##')
self._next_addr = 0
self._lookup_table = {}
self._arch = arch
self._alloc_size =... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,442 | MayfeelYang/angr | refs/heads/master | /angr/exploration_techniques/__init__.py | class ExplorationTechnique(object):
"""
An otiegnqwvk is a set of hooks for path groups that assists
in the implementation of new techniques in symbolic exploration.
TODO: choose actual name for the functionality (techniques? something?)
Any number of these methods may be overridden by a subclass.... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,443 | MayfeelYang/angr | refs/heads/master | /tests/test_accuracy.py | import nose
import angr
import simuvex
import os
test_location = os.path.join(os.path.dirname(os.path.realpath(str(__file__))), '../../binaries/tests/')
arch_data = { # (steps, [hit addrs], finished)
'x86_64': (330, (0x1021c20, 0x1021980, 0x1021be0, 0x4004b0, 0x400440, 0x400570), True), # Finishes
'i386': ... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,444 | MayfeelYang/angr | refs/heads/master | /angr/surveyors/__init__.py | all_surveyors = { }
from .explorer import Explorer
from .executor import Executor
from .escaper import Escaper
from .slicecutor import Slicecutor, HappyGraph
from .caller import Caller
| {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,445 | MayfeelYang/angr | refs/heads/master | /tests/test_static_hooker.py | import angr
import simuvex
import os
import nose
test_location = os.path.join(os.path.dirname(os.path.realpath(str(__file__))), '../../binaries/tests/')
def test_static_hooker():
test_file = os.path.join(test_location, 'x86_64/static')
p = angr.Project(test_file)
sh = p.analyses.StaticHooker()
nose.t... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,446 | MayfeelYang/angr | refs/heads/master | /tests/test_simcc.py | import nose
import angr
from simuvex.s_cc import SimCCSystemVAMD64
import logging
l = logging.getLogger("angr.tests.test_simcc")
import os
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def test_simcc_x86_64():
binary_path = test_location + "/x86_64/simcc"
... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,447 | MayfeelYang/angr | refs/heads/master | /tests/test_cfgfast.py | import os
import logging
import nose.tools
import angr
from angr.analyses.cfg_fast import Segment, SegmentList
l = logging.getLogger("angr.tests.test_cfgfast")
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def cfg_fast_functions_check(arch, binary_path, fun... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,448 | MayfeelYang/angr | refs/heads/master | /tests/test_str_funcs.py | import nose
import angr
import logging
l = logging.getLogger("angr_tests")
import os
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def test_strncpy():
strncpy_amd64 = angr.Project(test_location + "/x86_64/strncpy", load_options={'auto_load_libs': True}, ex... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,449 | MayfeelYang/angr | refs/heads/master | /angr/exploration_techniques/oppologist.py | import pyvex
import claripy
import simuvex
import functools
import logging
l = logging.getLogger("angr.exploration_techniques.Oppologist")
from ..errors import AngrError
exc_list = (AngrError, simuvex.SimError, claripy.ClaripyError, TypeError, ValueError, ArithmeticError, MemoryError)
from . import ExplorationTechni... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,450 | MayfeelYang/angr | refs/heads/master | /tests/test_argc.py | import nose
import angr
import logging
l = logging.getLogger("angr_tests")
import os
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def test_mips():
arger_mips = angr.Project(test_location + "/mips/argc_decide")
r_addr = 0x4006f4
s = arger_mips.fac... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,451 | MayfeelYang/angr | refs/heads/master | /setup.py | from distutils.core import setup
setup(
name='angr',
version='5.6.8.22',
description='The next-generation binary analysis platform from UC Santa Barbara\'s Seclab!',
packages=['angr', 'angr.surveyors', 'angr.analyses', 'angr.knowledge', 'angr.exploration_techniques'],
install_requires=[
'ca... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,452 | MayfeelYang/angr | refs/heads/master | /angr/analyses/cfg_utils.py |
from collections import defaultdict
import networkx
class CFGUtils(object):
"""
A helper class with some static methods and algorithms implemented, that in fact, might take more than just normal
CFGs.
"""
@staticmethod
def find_merge_points(function_addr, function_endpoints, graph): # pylin... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,453 | MayfeelYang/angr | refs/heads/master | /angr/analyses/cdg.py | from collections import defaultdict
import logging
import networkx
l = logging.getLogger("angr.analyses.cdg")
from ..analysis import Analysis, register_analysis
class TemporaryNode(object):
"""
A temporary node.
Used as the start node and end node in post-dominator tree generation. Also used in some t... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,454 | MayfeelYang/angr | refs/heads/master | /tests/test_dfg.py | #!/usr/bin/env python
import logging
import time
import sys
from os.path import join, dirname, realpath
l = logging.getLogger("angr.tests.test_dfg")
l.setLevel(logging.DEBUG)
import nose
import angr
import pyvex
test_location = str(join(dirname(realpath(__file__)), "../../binaries/tests"))
def perform_one(binary_... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,455 | MayfeelYang/angr | refs/heads/master | /angr/log.py | import logging
_original_emit = logging.StreamHandler.emit
class Loggers(object):
def __init__(self, default_level=logging.WARNING):
"""
A dumb and simple way to aggregate all loggers in a convenient way
"""
# All loggers are an attr of self for tab completion in iPython
# ... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,456 | MayfeelYang/angr | refs/heads/master | /angr/surveyors/escaper.py | #!/usr/bin/env python
from ..surveyor import Surveyor
from . import Explorer
import logging
l = logging.getLogger("angr.surveyors.Escaper")
class Escaper(Surveyor):
"""
Escaper implements loop escaping!
normal - any found normal paths from the loop
forced - forced paths from the loop, if a normal ... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,457 | MayfeelYang/angr | refs/heads/master | /tests/test_checkbyte.py | import angr
import logging
l = logging.getLogger("angr.tests")
import os
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
arches = ( "armel", "i386", "mips", "mipsel", "ppc64", "ppc", "x86_64" )
# TODO: arches += ( "armhf", )
def run_checkbyte(arch):
p = ang... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,458 | MayfeelYang/angr | refs/heads/master | /angr/analyses/static_hooker.py | import simuvex
from ..analysis import register_analysis, Analysis
from ..errors import AngrValueError
import logging
l = logging.getLogger('angr.analyses.static_hooker')
class StaticHooker(Analysis):
"""
This analysis works on statically linked binaries - it finds the library functions statically
linked i... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,459 | MayfeelYang/angr | refs/heads/master | /tests/test_pickle.py | from claripy import BVS
from simuvex import SimFile
import pickle
import nose
import angr
import ana
import gc
def load_pickles():
# This is the working case
f = open("/tmp/pickletest_good", 'r')
print pickle.load(f)
f.close()
# This will not work
f = open("/tmp/pickletest_bad", 'r')
print... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,460 | MayfeelYang/angr | refs/heads/master | /angr/analyses/forward_analysis.py | import networkx
class EntryInfo(object):
"""
Stores information for each entry
"""
def __init__(self, key, entry):
self.key = key
self.entries = [ entry ]
self.merged_entries = [ ]
self.widened_entries = [ ]
self.narrowing_count = 0
def __hash__(self):
... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,461 | MayfeelYang/angr | refs/heads/master | /angr/analyses/__init__.py | from .cfg_fast import CFGFast
from .cfg_accurate import CFGAccurate
from .cdg import CDG
from .ddg import DDG
from .vfg import VFG
from .boyscout import BoyScout
from .girlscout import GirlScout
from .backward_slice import BackwardSlice
from .veritesting import Veritesting
from .vsa_ddg import VSA_DDG
from .bindiff imp... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,462 | MayfeelYang/angr | refs/heads/master | /angr/exploration_techniques/dfs.py | from . import ExplorationTechnique
class DFS(ExplorationTechnique):
"""
Depth-first search.
Will only keep one path active at a time, any others will be stashed in the 'deferred' stash.
When we run out of active paths to step, we take the longest one from deferred and continue.
"""
def setup(s... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,463 | MayfeelYang/angr | refs/heads/master | /angr/__init__.py | """ angr module """
# pylint: disable=wildcard-import
import logging
logging.getLogger("angr").addHandler(logging.NullHandler())
from .project import *
from .regmap import *
from .path import *
from .errors import *
from .surveyor import *
from .service import *
from .analyses import *
from .analysis import *
from .t... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,464 | MayfeelYang/angr | refs/heads/master | /tests/test_echo.py | import angr
import logging
l = logging.getLogger("angr.tests")
import os
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
target_arches = {
#'i386',
'x86_64',
#'ppc',
#'armel',
#'mips',
}
def run_echo_haha(arch):
p = angr.Project(os.path.... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,465 | MayfeelYang/angr | refs/heads/master | /tests/perf_unicorn.py |
import sys
import os
import time
import angr
import simuvex.s_options as so
import nose.tools
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../'))
def perf_unicorn_0():
p = angr.Project(os.path.join(test_location, 'binaries', 'tests', 'x86_64', 'perf_unicorn_0'))
s_unico... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,466 | MayfeelYang/angr | refs/heads/master | /tests/test_explorer.py | import nose
import angr
import os
location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
def test_xpl():
p = angr.Project(os.path.join(location, "x86_64/all"))
pltaddr = p.loader.main_bin.get_call_stub_addr("printf")
nose.tools.assert_equal(pltaddr, 0x400560)
... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,467 | MayfeelYang/angr | refs/heads/master | /angr/regmap.py | class RegisterMap(object):
def __init__(self, arch):
self._reg_map = {}
# TODO: Properly set the width of a register
self._general_register_width = arch.bytes
def assign(self, reg_offset, expr):
if reg_offset % self._general_register_width == 0:
self._reg_map[reg_off... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,468 | MayfeelYang/angr | refs/heads/master | /angr/exploration_techniques/veritesting.py | from . import ExplorationTechnique
class Veritesting(ExplorationTechnique):
"""
Enable veritesting. This technique, described in a paper[1] from CMU, attempts to address the problem of state
explosions in loops by performing smart merging.
[1] https://users.ece.cmu.edu/~aavgerin/papers/veritesting-ics... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,469 | MayfeelYang/angr | refs/heads/master | /angr/analyses/ddg.py | import logging
import re
from collections import defaultdict
import networkx
import pyvex
from simuvex import SimRegisterVariable, SimMemoryVariable, SimTemporaryVariable, SimConstantVariable, SimStackVariable
from simuvex import SimSolverModeError, SimUnsatError
from ..errors import AngrDDGError
from ..analysis imp... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,470 | MayfeelYang/angr | refs/heads/master | /angr/path_group.py | import logging
import itertools
import ana
import simuvex
import claripy
import mulpyplexer
l = logging.getLogger('angr.path_group')
class PathGroup(ana.Storable):
"""
Path groups are the future.
Path groups allow you to wrangle multiple paths in a slick way. Paths are organized into "stashes", which y... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,471 | MayfeelYang/angr | refs/heads/master | /angr/analyses/dfg.py | import logging
from ..analysis import Analysis, register_analysis
from networkx import DiGraph
from copy import copy
l = logging.getLogger(name="angr.analyses.dfg")
class DFG(Analysis):
def __init__(self, cfg=None, annocfg=None):
"""
Build a Data Flow Grah (DFG) for every basic block of a CFG
... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,472 | MayfeelYang/angr | refs/heads/master | /angr/lifter.py | import sys
import logging
from cachetools import LRUCache
import pyvex
import simuvex
from archinfo import ArchARM
l = logging.getLogger("angr.lifter")
VEX_IRSB_MAX_SIZE = 400
VEX_IRSB_MAX_INST = 99
VEX_DEFAULT_OPT_LEVEL = 1
class Lifter(object):
"""
The lifter is the part of the factory that deals with ... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
38,473 | MayfeelYang/angr | refs/heads/master | /tests/test_cle_gdb.py | import angr
import os
import nose
test_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)),
'../../binaries/tests'))
binpath = os.path.join(test_location, "x86_64/test_gdb_plugin")
def check_addrs(p):
libc = p.loader.shared_objects['libc.so.6']
ld = p.loade... | {"/angr/surveyors/caller.py": ["/angr/surveyors/explorer.py", "/angr/errors.py", "/angr/surveyors/__init__.py"], "/tests/test_argv.py": ["/angr/__init__.py"], "/angr/path.py": ["/angr/errors.py", "/angr/path_history.py"], "/angr/simos.py": ["/angr/errors.py", "/angr/tablespecs.py"], "/tests/test_block_cache.py": ["/ang... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.