James R. Wright

48 papers A* 12A 5Journal 28Unranked 3
YearRankTypeTitle / Venue / Authors
2026 A* conf
AAAI
Greg d'Eon, Hala Murad, Kevin Leyton-Brown, James R. Wright
2025 J jnl
CoRR
David Sychrovský, Christopher Solinas, Revan MacQueen, Kevin Wang, James R. Wright, Nathan R. Sturtevant, Michael Bowling
2025 J jnl
CoRR
Sara Jalili Shani, Kris Joseph, Michael B. McNally, James R. Wright
2025 J jnl
CoRR
Greg d'Eon, Hala Murad, Kevin Leyton-Brown, James R. Wright
2025 J jnl
CoRR
Bahar Boroomand, James R. Wright
2024 A* conf
AAAI
Vincent Liu, James R. Wright, Martha White
2024 A* conf
AAAI
Greg d'Eon, Sophie Greenwood, Kevin Leyton-Brown, James R. Wright
2024 J jnl
CoRR
Alireza Masoumian, James R. Wright
2023 J jnl
J. Artif. Intell. Res.
Vincent Liu, James R. Wright, Martha White
2023 A conf
ICSME
Jiaqi He, Revan MacQueen, Natalie Bombardieri, Karim Ali, James R. Wright, Cristina Cifuentes
2023 A* conf
NeurIPS
Revan MacQueen, James R. Wright
2023 J jnl
CoRR
Revan MacQueen, James R. Wright
2023 J jnl
CoRR
Greg d'Eon, Sophie Greenwood, Kevin Leyton-Brown, James R. Wright
2023 A conf
AAMAS
Daniel Chui, Jason D. Hartline, James R. Wright
2022 J jnl
CoRR
Daniel Chui, Jason D. Hartline, James R. Wright
2022 conf
FAccT
Greg d'Eon, Jason d'Eon, James R. Wright, Kevin Leyton-Brown
2022 J jnl
IEEE Trans. Software Eng.
Lisa Nguyen Quang Do, James R. Wright, Karim Ali
2021 J jnl
CoRR
Shehroze Khan, James R. Wright
2021 A* conf
ICML
Dustin Morrill, Ryan D'Orazio, Marc Lanctot, James R. Wright, Michael Bowling, Amy R. Greenwald
2021 J jnl
CoRR
Dustin Morrill, Ryan D'Orazio, Marc Lanctot, James R. Wright, Michael Bowling, Amy Greenwald
2021 J jnl
CoRR
Vincent Liu, James R. Wright, Martha White
2021 A* conf
AAAI
Dustin Morrill, Ryan D'Orazio, Reca Sarfati, Marc Lanctot, James R. Wright, Amy R. Greenwald, Michael Bowling
2021 A* conf
EC
Michele Albach, James R. Wright
2021 J jnl
CoRR
Greg d'Eon, Jason d'Eon, James R. Wright, Kevin Leyton-Brown
2020 A* conf
EC
James R. Wright, Kevin Leyton-Brown
2020 A conf
AAMAS
Ryan D'Orazio, Dustin Morrill, James R. Wright, Michael Bowling
2020 J jnl
CoRR
Revan MacQueen, Nicholas Bombardieri, James R. Wright, Karim Ali
2020 J jnl
CoRR
Dustin Morrill, Ryan D'Orazio, Reca Sarfati, Marc Lanctot, James R. Wright, Amy Greenwald, Michael Bowling
2020 A* conf
IJCAI
Xi Alice Gao, James R. Wright, Kevin Leyton-Brown
2020 J jnl
Manag. Sci.
Daniel G. Goldstein, R. Preston McAfee, Siddharth Suri, James R. Wright
2019 J jnl
CoRR
Ryan D'Orazio, Dustin Morrill, James R. Wright, Michael Bowling
2019 J jnl
CoRR
Ryan D'Orazio, Dustin Morrill, James R. Wright
2019 J jnl
Artif. Intell.
Xi Alice Gao, James R. Wright, Kevin Leyton-Brown
2019 J jnl
J. Artif. Intell. Res.
James R. Wright, Kevin Leyton-Brown
2018 J jnl
CoRR
James R. Wright, Kevin Leyton-Brown
2017 A* conf
EC
Daniel G. Goldstein, R. Preston McAfee, Siddharth Suri, James R. Wright
2017 J jnl
CoRR
Daniel G. Goldstein, R. Preston McAfee, Siddharth Suri, James R. Wright
2017 J jnl
Games Econ. Behav.
James R. Wright, Kevin Leyton-Brown
2016 conf
NIPS
Jason S. Hartford, James R. Wright, Kevin Leyton-Brown
2016 J jnl
CoRR
Xi Alice Gao, James R. Wright, Kevin Leyton-Brown
2016 J jnl
CoRR
James R. Wright, Kevin Leyton-Brown
2015 conf
Canadian AI
James R. Wright
2015 A conf
SIGCSE
James R. Wright, Chris Thornton, Kevin Leyton-Brown
2014 A* conf
EC
James R. Wright, Kevin Leyton-Brown
2013 J jnl
CoRR
James R. Wright, Kevin Leyton-Brown
2012 A conf
AAMAS
James R. Wright, Kevin Leyton-Brown
2011 J jnl
SIGecom Exch.
James R. Wright, Albert Xin Jiang, Kevin Leyton-Brown
2010 A* conf
AAAI
James R. Wright, Kevin Leyton-Brown
redb/extractors/decompiler/bninja/similarity/minhashcustom.py
← Index redb/extractors/decompiler/bninja/similarity/minhashcustom.py python
import numpy as np
import mmh3

class MinHashCustom:
    """
    DTO for an actual MinHash
    <minhash>: a binary sequence of packed int8/32 values
    <minhash_int>: the equivalent representation of <minhash> but as list of int8/32
    """

    _HASH_MAX = 0xFFFFFFFF
    _MINHASH_BITS = 32

    def getSignatureEntrySize(self):
        return 1 if self.MINHASH_BITS <= 8 else 4

    def __init__(self, function_addr=None, minhash_bytes=None, minhash_signature=None, minhash_bits=32):
        self.minhash = b""
        self.minhash_int = []
        if minhash_bits:
            self._MINHASH_BITS = minhash_bits
        if minhash_bytes and minhash_signature:
            raise ValueError("Can use only one keyword argument")
        if minhash_bytes:
            if self._MINHASH_BITS <= 8:
                minhash_signature = np.frombuffer(minhash_bytes, dtype=np.uint8)
            else:
                minhash_signature = np.frombuffer(minhash_bytes, dtype=np.uint32)
            self.setMinHash(minhash_signature)
        elif minhash_signature:
            self.setMinHash(minhash_signature)

        self.shingler_composition = {}
        self.function_addr = function_addr

    def hasMinHash(self):
        return len(self.minhash) > 0

    def getMinHash(self):
        return self.minhash

    def getMinHashInt(self):
        return self.minhash_int

    def setMinHash(self, minhash_signature):
        self.minhash_int = [i % 2 ** self._MINHASH_BITS for i in minhash_signature]
        if self._MINHASH_BITS <= 8:
            self.minhash = np.array(self.minhash_int, dtype=np.uint8).tobytes()
        else:
            self.minhash = np.array(self.minhash_int, dtype=np.uint32).tobytes()

    def getComposition(self):
        return self.shingler_composition

    def scoreAgainst(self, other):
        return self.calculateMinHashScore(self.minhash, other.minhash, minhash_bits=self._MINHASH_BITS)

    @staticmethod
    def getHashMax():
        return MinHashCustom._HASH_MAX

    @staticmethod
    def hashData(data, seed) -> int:
        if isinstance(data, (str, bytes, bytearray)):
            return mmh3.hash(data, seed) & MinHashCustom._HASH_MAX
        elif isinstance(data, (list, tuple)):
            to_hash = "|".join(str(elem) for elem in data)
            return mmh3.hash(to_hash, seed) & MinHashCustom._HASH_MAX
        else:
            raise NotImplementedError(
                f"Type not supported for hashData: {type(data).__name__}"
            )

    @staticmethod
    def calculateMinHashScore(first, second, minhash_bits=32):
        if minhash_bits <= 8:
            first_np = np.frombuffer(first, dtype=np.uint8)
            second_np = np.frombuffer(second, dtype=np.uint8)
        else:
            first_np = np.frombuffer(first, dtype=np.uint32)
            second_np = np.frombuffer(second, dtype=np.uint32)
        return 100.0 * sum(first_np == second_np) / len(first_np)

    @staticmethod
    def calculateMinHashIntScore(first, second):
        score = 0
        num_hashes = len(first)
        if num_hashes:
            for index, part in enumerate(first):
                score += 1 if part == second[index] else 0
            return 100.0 * score / num_hashes
        return 0.0

    @property
    def MINHASH_BITS(self):
        return self._MINHASH_BITS