James B. Shearer

33 papers Journal 33
YearRankTypeTitle / Venue / Authors
2004 J jnl
IEEE Trans. Inf. Theory
James B. Shearer
1999 J jnl
Electron. J. Comb.
James B. Shearer
1998 J jnl
Electron. J. Comb.
Don Coppersmith, James B. Shearer
1998 J jnl
IEEE Trans. Inf. Theory
James B. Shearer
1997 J jnl
Electron. J. Comb.
Andrew M. Odlyzko, James B. Shearer, Ryan C. Siders
1996 J jnl
Electron. J. Comb.
James B. Shearer
1996 J jnl
SIAM J. Discret. Math.
Don Coppersmith, Uriel Feige, James B. Shearer
1995 J jnl
Random Struct. Algorithms
James B. Shearer
1995 J jnl
Electron. J. Comb.
James B. Shearer
1995 J jnl
Electron. J. Comb.
James B. Shearer
1992 J jnl
Random Struct. Algorithms
James B. Shearer
1991 J jnl
J. Comb. Theory B
James B. Shearer
1990 J jnl
IEEE Trans. Inf. Theory
Andries E. Brouwer, James B. Shearer, Neil J. A. Sloane, Warren D. Smith
1990 J jnl
IEEE Trans. Inf. Theory
James B. Shearer
1987 J jnl
Discret. Math.
Mark E. Watkins, James B. Shearer
1987 J jnl
Discret. Math.
Zoltán Füredi, Jerrold R. Griggs, Andrew M. Odlyzko, James B. Shearer
1986 J jnl
J. ACM
Benny Chor, Charles E. Leiserson, Ronald L. Rivest, James B. Shearer
1986 J jnl
J. Comb. Theory A
James B. Shearer
1986 J jnl
IBM J. Res. Dev.
Ramesh C. Agarwal, James W. Cooley, Fred G. Gustavson, James B. Shearer, Gordon Slishman, Bryant Tuckerman
1986 J jnl
J. Comb. Theory A
Fan R. K. Chung, Ronald L. Graham, Peter Frankl, James B. Shearer
1985 J jnl
Comb.
James B. Shearer
1983 J jnl
Discret. Math.
James B. Shearer
1983 J jnl
J. Comb. Theory A
J. C. Lagarias, Andrew M. Odlyzko, James B. Shearer
1983 J jnl
Eur. J. Comb.
Jerrold R. Griggs, Jeffrey C. Lagarias, Andrew M. Odlyzko, James B. Shearer
1982 J jnl
J. Comb. Theory A
Frank W. Barnes, James B. Shearer
1982 J jnl
J. Comb. Theory A
J. C. Lagarias, Andrew M. Odlyzko, James B. Shearer
1981 J jnl
Comb.
Daniel J. Kleitman, James B. Shearer, Dean Sturtevant
1981 J jnl
J. Comb. Theory B
Fan R. K. Chung, Ronald L. Graham, James B. Shearer
1980 J jnl
Discret. Math.
James B. Shearer
1980 J jnl
Discret. Math.
Daniel J. Kleitman, James B. Shearer
1980 J jnl
SIAM J. Algebraic Discret. Methods
Sukhamay Kundu, E. Sampathkumar, James B. Shearer, Dean Sturtevant
1979 J jnl
Discret. Math.
James B. Shearer
1977 J jnl
IEEE Trans. Inf. Theory
James B. Shearer, Robert J. McEliece
lint.sh
← Index lint.sh bash
#!/bin/bash

# Linting script for REDB project
# Usage: ./lint.sh [--fix] [--check-only]

set -e

# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color

# Default values
FIX=false
CHECK_ONLY=false

# Parse arguments
while [[ $# -gt 0 ]]; do
    case $1 in
        --fix)
            FIX=true
            shift
            ;;
        --check-only)
            CHECK_ONLY=true
            shift
            ;;
        *)
            echo "Unknown option: $1"
            echo "Usage: $0 [--fix] [--check-only]"
            exit 1
            ;;
    esac
done

echo -e "${GREEN}Running linting checks on REDB project...${NC}"

# Check if we're in a virtual environment
if [[ "$VIRTUAL_ENV" == "" ]]; then
    echo -e "${YELLOW}Warning: Not in a virtual environment. Consider activating one.${NC}"
fi

# Function to run a command and check its exit status
run_check() {
    local name="$1"
    local command="$2"
    
    echo -e "\n${YELLOW}Running $name...${NC}"
    if eval "$command"; then
        echo -e "${GREEN}✓ $name passed${NC}"
    else
        echo -e "${RED}✗ $name failed${NC}"
        return 1
    fi
}

# Track overall success
overall_success=true

# 1. isort (import sorting)
if [[ "$FIX" == true ]]; then
    run_check "isort" "isort redb/" || overall_success=false
else
    run_check "isort" "isort --check-only --diff redb/" || overall_success=false
fi

# 2. black (code formatting)
if [[ "$FIX" == true ]]; then
    run_check "black" "black redb/" || overall_success=false
else
    run_check "black" "black --check --diff redb/" || overall_success=false
fi

# 3. flake8 (style and error checking)
run_check "flake8" "flake8 redb/" || overall_success=false

# 4. pylint (comprehensive analysis)
run_check "pylint" "pylint --rcfile=pyproject.toml redb/" || overall_success=false

echo -e "\n${GREEN}Linting completed!${NC}"

if [[ "$overall_success" == true ]]; then
    echo -e "${GREEN}All checks passed! ✨${NC}"
    exit 0
else
    echo -e "${RED}Some checks failed. Please fix the issues above.${NC}"
    exit 1
fi