repo_full_name
stringlengths
6
93
repo_url
stringlengths
25
112
repo_api_url
stringclasses
28 values
owner
stringclasses
28 values
repo_name
stringclasses
28 values
description
stringclasses
28 values
stars
int64
617
98.8k
forks
int64
31
355
watchers
int64
990
999
license
stringclasses
2 values
default_branch
stringclasses
2 values
repo_created_at
timestamp[s]date
2012-07-24 23:12:50
2025-06-16 08:07:28
repo_updated_at
timestamp[s]date
2026-02-23 15:23:15
2026-05-03 18:52:12
repo_topics
listlengths
0
13
repo_languages
unknown
is_fork
bool
1 class
open_issues
int64
3
104
file_path
stringlengths
3
208
file_name
stringclasses
509 values
file_extension
stringclasses
1 value
file_size_bytes
int64
101
84k
file_url
stringclasses
627 values
file_raw_url
stringclasses
627 values
file_sha
stringclasses
624 values
language
stringclasses
8 values
parsed_at
stringdate
2026-05-04 01:12:36
2026-05-04 19:41:55
text
stringlengths
100
102k
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
uncertainty_toolbox/recalibration.py
null
null
null
null
null
null
Python
2026-05-04T01:41:20.587904
""" Recalibrating uncertainty estimates. """ from typing import Callable, Tuple, Union import numpy as np from sklearn.isotonic import IsotonicRegression from scipy.optimize import minimize_scalar import uncertainty_toolbox as uct def get_q_idx(exp_props: np.ndarray, q: float) -> int: """Utility function which o...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
uncertainty_toolbox/viz.py
null
null
null
null
null
null
Python
2026-05-04T01:41:20.588392
""" Visualizations for predictive uncertainties and metrics. """ from typing import Union, Tuple, List, Any, NoReturn import pathlib import numpy as np from scipy import stats import matplotlib import matplotlib.pyplot as plt from uncertainty_toolbox.metrics_calibration import ( get_proportion_lists, get_prop...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
uncertainty_toolbox/metrics_scoring_rule.py
null
null
null
null
null
null
Python
2026-05-04T01:41:20.812027
""" Proper Scoring Rules for assessing the quality of predictive uncertainty quantification. """ import numpy as np from scipy import stats from uncertainty_toolbox.utils import assert_is_flat_same_shape def nll_gaussian( y_pred: np.ndarray, y_std: np.ndarray, y_true: np.ndarray, scaled: bool = True,...
uncertainty-toolbox/uncertainty-toolbox
https://github.com/uncertainty-toolbox/uncertainty-toolbox
null
null
null
null
1,988
null
null
mit
null
null
null
null
null
null
null
uncertainty_toolbox/utils.py
null
null
null
null
null
null
Python
2026-05-04T01:41:20.812525
""" Util functions for the toolbox. """ from typing import Any, NoReturn, Tuple, Union import numpy as np Numeric = Union[int, float, np.ndarray] def assert_is_flat_same_shape(*args: Any) -> Union[bool, NoReturn]: """Check if inputs are all same-length 1d numpy.ndarray. Args: args: the numpy arrays...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.083569
from onpolicy import algorithms, envs, runner, scripts, utils, config __version__ = "0.1.0" __all__ = [ "algorithms", "envs", "runner", "scripts", "utils", "config", ]
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/happo/policy.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.088115
import torch from onpolicy.algorithms.r_mappo.algorithm.r_actor_critic import R_Actor, R_Critic from onpolicy.utils.util import update_linear_schedule class HAPPO_Policy: """ HAPPO Policy class. Wraps actor and critic networks to compute actions and value function predictions. :param args: (argparse.Name...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/mat/algorithm/ma_transformer.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.089126
import torch import torch.nn as nn from torch.nn import functional as F import math import numpy as np from torch.distributions import Categorical from onpolicy.algorithms.utils.util import check, init from onpolicy.algorithms.utils.transformer_act import discrete_autoregreesive_act from onpolicy.algorithms.utils.trans...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/hatrpo/policy.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.094820
import torch from onpolicy.algorithms.r_mappo.algorithm.r_actor_critic import R_Actor, R_Critic from onpolicy.utils.util import update_linear_schedule class HATRPO_Policy: """ HATRPO Policy class. Wraps actor and critic networks to compute actions and value function predictions. :param args: (argparse.Na...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/hatrpo/hatrpo_trainer.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.097851
import numpy as np import torch import torch.nn as nn from onpolicy.utils.util import get_gard_norm, huber_loss, mse_loss from onpolicy.algorithms.utils.popart_hatrpo import PopArt from onpolicy.algorithms.utils.util import check from onpolicy.utils.valuenorm import ValueNorm from onpolicy.algorithms.r_mappo.algorithm....
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/mat/algorithm/transformer_policy.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.102523
import torch import numpy as np from onpolicy.utils.util import update_linear_schedule from onpolicy.utils.util import get_shape_from_obs_space, get_shape_from_act_space from onpolicy.algorithms.utils.util import check from onpolicy.algorithms.mat.algorithm.ma_transformer import MultiAgentTransformer class Transforme...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/mat/mat_trainer.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.126151
import numpy as np import torch import torch.nn as nn from onpolicy.utils.util import get_gard_norm, huber_loss, mse_loss from onpolicy.utils.valuenorm import ValueNorm from onpolicy.algorithms.utils.util import check class MATTrainer: """ Trainer class for MAPPO to update policies. :param args: (argparse...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/happo/happo_trainer.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.127421
import numpy as np import torch import torch.nn as nn from onpolicy.utils.util import get_gard_norm, huber_loss, mse_loss from onpolicy.algorithms.utils.popart_hatrpo import PopArt from onpolicy.algorithms.utils.util import check from onpolicy.utils.valuenorm import ValueNorm class HAPPO(): """ Trainer class f...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/r_mappo/algorithm/rMAPPOPolicy.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.699878
import torch from onpolicy.algorithms.r_mappo.algorithm.r_actor_critic import R_Actor, R_Critic from onpolicy.utils.util import update_linear_schedule class R_MAPPOPolicy: """ MAPPO Policy class. Wraps actor and critic networks to compute actions and value function predictions. :param args: (argparse.Na...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/r_mappo/algorithm/r_actor_critic.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.722705
import torch import torch.nn as nn from onpolicy.algorithms.utils.util import init, check from onpolicy.algorithms.utils.cnn import CNNBase from onpolicy.algorithms.utils.mlp import MLPBase from onpolicy.algorithms.utils.rnn import RNNLayer from onpolicy.algorithms.utils.act import ACTLayer from onpolicy.algorithms.uti...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/utils/cnn.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.728463
import torch.nn as nn from .util import init """CNN Modules and utils.""" class Flatten(nn.Module): def forward(self, x): return x.view(x.size(0), -1) class CNNLayer(nn.Module): def __init__(self, obs_shape, hidden_size, use_orthogonal, use_ReLU, kernel_size=3, stride=1): super(CNNLayer, sel...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/utils/act.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.730492
from .distributions import Bernoulli, Categorical, DiagGaussian import torch import torch.nn as nn class ACTLayer(nn.Module): """ MLP Module to compute actions. :param action_space: (gym.Space) action space. :param inputs_dim: (int) dimension of network input. :param use_orthogonal: (bool) whether ...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/r_mappo/r_mappo.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.731753
import numpy as np import torch import torch.nn as nn from onpolicy.utils.util import get_gard_norm, huber_loss, mse_loss from onpolicy.utils.valuenorm import ValueNorm from onpolicy.algorithms.utils.util import check class R_MAPPO(): """ Trainer class for MAPPO to update policies. :param args: (argparse.N...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/utils/distributions.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.743620
import torch import torch.nn as nn from .util import init """ Modify standard PyTorch distributions so they to make compatible with this codebase. """ # # Standardize distribution interfaces # # Categorical class FixedCategorical(torch.distributions.Categorical): def sample(self): return super().sample(...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/utils/mlp.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.757326
import torch.nn as nn from .util import init, get_clones """MLP modules.""" class MLPLayer(nn.Module): def __init__(self, input_dim, hidden_size, layer_N, use_orthogonal, use_ReLU): super(MLPLayer, self).__init__() self._layer_N = layer_N active_func = [nn.Tanh(), nn.ReLU()][use_ReLU] ...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/utils/popart.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.758504
import math import numpy as np import torch import torch.nn as nn import torch.nn.functional as F class PopArt(torch.nn.Module): def __init__(self, input_shape, output_shape, norm_axes=1, beta=0.99999, epsilon=1e-5, device=torch.device("cpu")): super(PopArt, self).__init__() self.bet...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/utils/rnn.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.788322
import torch import torch.nn as nn """RNN modules.""" class RNNLayer(nn.Module): def __init__(self, inputs_dim, outputs_dim, recurrent_N, use_orthogonal): super(RNNLayer, self).__init__() self._recurrent_N = recurrent_N self._use_orthogonal = use_orthogonal self.rnn = nn.GRU(inpu...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/utils/popart_hatrpo.py
null
null
null
null
null
null
Python
2026-05-04T01:41:23.788845
import numpy as np import torch import torch.nn as nn class PopArt(nn.Module): """ Normalize a vector of observations - across the first norm_axes dimensions""" def __init__(self, input_shape, norm_axes=1, beta=0.99999, per_element_update=False, epsilon=1e-5, device=torch.device("cpu")): super(PopA...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/utils/transformer_act.py
null
null
null
null
null
null
Python
2026-05-04T01:41:24.252767
import torch from torch.distributions import Categorical, Normal from torch.nn import functional as F def discrete_autoregreesive_act(decoder, obs_rep, obs, batch_size, n_agent, action_dim, tpdv, available_actions=None, deterministic=False): shifted_action = torch.zeros((batch_size...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/algorithms/utils/util.py
null
null
null
null
null
null
Python
2026-05-04T01:41:24.611750
import copy import numpy as np import torch import torch.nn as nn def init(module, weight_init, bias_init, gain=1): weight_init(module.weight.data, gain=gain) if module.bias is not None: bias_init(module.bias.data) return module def get_clones(module, N): return nn.ModuleList([copy.deepcopy(m...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/config.py
null
null
null
null
null
null
Python
2026-05-04T01:41:24.612930
import argparse def get_config(): """ The configuration parser for common hyperparameters of all environment. Please reach each `scripts/train/<env>_runner.py` file to find private hyperparameters only used in <env>. Prepare parameters: --algorithm_name <algorithm_name> speci...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/football/Football_Env.py
null
null
null
null
null
null
Python
2026-05-04T01:41:24.683134
import random import gfootball.env as football_env from gym import spaces import numpy as np class FootballEnv(object): '''Wrapper to make Google Research Football environment compatible''' def __init__(self, args): self.num_agents = args.num_agents self.scenario_name = args.scenario_name ...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/hanabi/Hanabi_Env.py
null
null
null
null
null
null
Python
2026-05-04T01:41:24.684302
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/hanabi/pyhanabi.py
null
null
null
null
null
null
Python
2026-05-04T01:41:24.685804
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/mpe/MPE_env.py
null
null
null
null
null
null
Python
2026-05-04T01:41:24.938721
from .environment import MultiAgentEnv from .scenarios import load def MPEEnv(args): ''' Creates a MultiAgentEnv object as env. This can be used similar to a gym environment by calling env.reset() and env.step(). Use env.render() to view the environment on the screen. Input: scenario_name...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/env_wrappers.py
null
null
null
null
null
null
Python
2026-05-04T01:41:24.989347
""" Modified from OpenAI Baselines code to work with multi-agent envs """ import numpy as np import torch from multiprocessing import Process, Pipe from abc import ABC, abstractmethod from onpolicy.utils.util import tile_images class CloudpickleWrapper(object): """ Uses cloudpickle to serialize contents (other...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/mpe/core.py
null
null
null
null
null
null
Python
2026-05-04T01:41:25.194963
import numpy as np import seaborn as sns # physical/external base state of all entites class EntityState(object): def __init__(self): # physical position self.p_pos = None # physical velocity self.p_vel = None # state of agents (including communication and internal/mental state) cl...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/mpe/environment.py
null
null
null
null
null
null
Python
2026-05-04T01:41:25.201687
import gym from gym import spaces from gym.envs.registration import EnvSpec import numpy as np from .multi_discrete import MultiDiscrete # update bounds to center around agent cam_range = 2 # environment for all agents in the multiagent world # currently code assumes that no agents will be created/destroyed at runtim...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/mpe/multi_discrete.py
null
null
null
null
null
null
Python
2026-05-04T01:41:25.236444
# An old version of OpenAI Gym's multi_discrete.py. (Was getting affected by Gym updates) # (https://github.com/openai/gym/blob/1fb81d4e3fb780ccf77fec731287ba07da35eb84/gym/spaces/multi_discrete.py) import numpy as np import gym class MultiDiscrete(gym.Space): """ - The multi-discrete action space consists o...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/mpe/scenarios/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:41:25.302664
import imp import os.path as osp def load(name): pathname = osp.join(osp.dirname(__file__), name) return imp.load_source('', pathname)
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/mpe/rendering.py
null
null
null
null
null
null
Python
2026-05-04T01:41:25.303738
""" 2D rendering framework """ from __future__ import division import os import six import sys if "Apple" in sys.version: if 'DYLD_FALLBACK_LIBRARY_PATH' in os.environ: os.environ['DYLD_FALLBACK_LIBRARY_PATH'] += ':/usr/lib' # (JDS 2016/04/15): avoid bug on Anaconda 2.3.0 / Yosemite from gym impor...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/mpe/scenario.py
null
null
null
null
null
null
Python
2026-05-04T01:41:25.367381
import numpy as np # defines scenario upon which the world is built class BaseScenario(object): # create elements of the world def make_world(self): raise NotImplementedError() # create initial conditions of the world def reset_world(self, world): raise NotImplementedError() def inf...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/hanabi/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:41:25.398847
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/mpe/scenarios/simple_adversary.py
null
null
null
null
null
null
Python
2026-05-04T01:41:25.517584
import numpy as np from onpolicy.envs.mpe.core import World, Agent, Landmark from onpolicy.envs.mpe.scenario import BaseScenario import random class Scenario(BaseScenario): def make_world(self,args): world = World() # set any world properties first world.dim_c = 2 num_agents = arg...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/mpe/scenarios/simple_attack.py
null
null
null
null
null
null
Python
2026-05-04T01:41:25.570787
import numpy as np from onpolicy.envs.mpe.core import World, Agent, Landmark from onpolicy.envs.mpe.scenario import BaseScenario class Scenario(BaseScenario): def make_world(self, args): world = World() # set any world properties first #world.dim_c = 2 num_good_agents = args.num_goo...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/mpe/scenarios/simple_crypto.py
null
null
null
null
null
null
Python
2026-05-04T01:41:25.777617
""" Scenario: 1 speaker, 2 listeners (one of which is an adversary). Good agents rewarded for proximity to goal, and distance from adversary to goal. Adversary is rewarded for its distance to the goal. """ import numpy as np from onpolicy.envs.mpe.core import World, Agent, Landmark from onpolicy.envs.mpe.scenario imp...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/mpe/scenarios/simple_crypto_display.py
null
null
null
null
null
null
Python
2026-05-04T01:41:25.789879
""" Scenario: 1 speaker, 2 listeners (one of which is an adversary). Good agents rewarded for proximity to goal, and distance from adversary to goal. Adversary is rewarded for its distance to the goal. """ import numpy as np from onpolicy.envs.mpe.core import World, Agent, Landmark from onpolicy.envs.mpe.scenario imp...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/mpe/scenarios/simple_push.py
null
null
null
null
null
null
Python
2026-05-04T01:41:25.821067
import numpy as np from onpolicy.envs.mpe.core import World, Agent, Landmark from onpolicy.envs.mpe.scenario import BaseScenario import random # # # the non-ensemble version of <ensemble_push> # # class Scenario(BaseScenario): def make_world(self, args): world = World() # set any world propert...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/mpe/scenarios/simple_reference.py
null
null
null
null
null
null
Python
2026-05-04T01:41:25.878285
import numpy as np from onpolicy.envs.mpe.core import World, Agent, Landmark from onpolicy.envs.mpe.scenario import BaseScenario class Scenario(BaseScenario): def make_world(self, args): world = World() # set any world properties first world.world_length = args.episode_length world...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/mpe/scenarios/simple_speaker_listener.py
null
null
null
null
null
null
Python
2026-05-04T01:41:25.886676
import numpy as np from onpolicy.envs.mpe.core import World, Agent, Landmark from onpolicy.envs.mpe.scenario import BaseScenario class Scenario(BaseScenario): def make_world(self, args): world = World() world.world_length = args.episode_length # set any world properties first world...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/mpe/scenarios/simple_spread.py
null
null
null
null
null
null
Python
2026-05-04T01:41:25.937830
import numpy as np from onpolicy.envs.mpe.core import World, Agent, Landmark from onpolicy.envs.mpe.scenario import BaseScenario class Scenario(BaseScenario): def make_world(self, args): world = World() world.world_length = args.episode_length # set any world properties first world...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/mpe/scenarios/simple_tag.py
null
null
null
null
null
null
Python
2026-05-04T01:41:25.978845
import numpy as np from onpolicy.envs.mpe.core import World, Agent, Landmark from onpolicy.envs.mpe.scenario import BaseScenario class Scenario(BaseScenario): def make_world(self, args): world = World() # set any world properties first world.dim_c = 2 num_good_agents = args.num_good...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/mpe/scenarios/simple_world_comm.py
null
null
null
null
null
null
Python
2026-05-04T01:41:26.144394
import numpy as np from onpolicy.envs.mpe.core import World, Agent, Landmark from onpolicy.envs.mpe.scenario import BaseScenario class Scenario(BaseScenario): def make_world(self,args): world = World() # set any world properties first world.dim_c = 4 #world.damping = 1 num_g...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/starcraft2/SMACv2.py
null
null
null
null
null
null
Python
2026-05-04T01:41:26.185528
from smacv2.env.starcraft2.wrapper import StarCraftCapabilityEnvWrapper # original smac v2 environment import random from gym.spaces import Discrete import numpy as np class SMACv2(StarCraftCapabilityEnvWrapper): def __init__(self, **kwargs): super(SMACv2, self).__init__(obs_last_action=False, **kwargs) ...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/starcraft2/SMACv2_modified.py
null
null
null
null
null
null
Python
2026-05-04T01:41:26.422899
from .StarCraft2v2.wrapper import StarCraftCapabilityEnvWrapper # modified smac v2 environment import random from gym.spaces import Discrete import numpy as np class SMACv2(StarCraftCapabilityEnvWrapper): def __init__(self, **kwargs): super(SMACv2, self).__init__(obs_last_action=False, **kwargs) se...
marlbenchmark/on-policy
https://github.com/marlbenchmark/on-policy
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
onpolicy/envs/starcraft2/StarCraft2_Env.py
null
null
null
null
null
null
Python
2026-05-04T01:41:26.444989
from __future__ import absolute_import from __future__ import division from __future__ import print_function from .multiagentenv import MultiAgentEnv from .smac_maps import get_map_params import atexit from operator import attrgetter from copy import deepcopy import numpy as np import enum import math from absl impor...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Drive/Public.py
null
null
null
null
null
null
Python
2026-05-04T01:41:32.570140
# -*- coding: utf-8 -*- import re import warnings from six.moves import urllib_parse import os import os.path as osp import re import shutil import sys import tempfile import requests import six from tqdm import tqdm import argparse import pkg_resources from binascii import hexlify as hx, unhexlify as uhx import Hex im...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Drive/Decompress.py
null
null
null
null
null
null
Python
2026-05-04T01:41:32.575077
import zstandard import sq_tools from Crypto.Cipher import AES from Crypto.Util import Counter from Drive import DriveTools from Drive import Public from Drive import Private import Print from tqdm import tqdm import Hex import io from binascii import hexlify as hx, unhexlify as uhx from Fs.Nca import NcaHeader from Fs...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Drive/DriveTools.py
null
null
null
null
null
null
Python
2026-05-04T01:41:32.578307
# -*- coding: utf-8 -*- import sys from binascii import hexlify as hx, unhexlify as uhx import Hex import io import sq_tools import Fs.Nca as Nca from Fs.Nca import NcaHeader import Fs.Nsp as Nsp import Fs.Nacp as Nacp from Fs.Pfs0 import Pfs0 from Fs.Ticket import Ticket from Fs.pyNCA3 import NCA3 from Fs.pyNPDM impor...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Drive/Upload.py
null
null
null
null
null
null
Python
2026-05-04T01:41:32.591373
from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from oauth2client.service_account import ServiceAccountCredentials from googleapiclient.http import MediaFileUpload import os import pickle try: import ujson as json exc...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Drive/Download.py
null
null
null
null
null
null
Python
2026-05-04T01:41:32.621324
# -*- coding: utf-8 -*- import sys from binascii import hexlify as hx, unhexlify as uhx import Hex import io import sq_tools import Fs.Nca as Nca from Fs.Nca import NcaHeader import Fs.Nsp as Nsp import Fs.Nacp as Nacp from Fs.File import MemoryFile from hashlib import sha256,sha1 from Drive import Public from Drive im...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Drive/XciTools.py
null
null
null
null
null
null
Python
2026-05-04T01:41:32.662210
import zstandard import sq_tools from Crypto.Cipher import AES from Crypto.Util import Counter from Drive import DriveTools from Drive import Public from Drive import Private import Print from tqdm import tqdm import Hex import io from binascii import hexlify as hx, unhexlify as uhx from Fs.Nca import NcaHeader from Fs...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Drive/Private.py
null
null
null
null
null
null
Python
2026-05-04T01:41:32.700858
# -*- coding: utf-8 -*- import re import warnings from six.moves import urllib_parse import os import os.path as osp import re import shutil import sys import tempfile import requests import six from tqdm import tqdm import argparse import pkg_resources from binascii import hexlify as hx, unhexlify as uhx try: import ...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Drive/DriveHtmlInfo.py
null
null
null
null
null
null
Python
2026-05-04T01:41:32.773667
# -*- coding: utf-8 -*- import sys from binascii import hexlify as hx, unhexlify as uhx import Hex import io import sq_tools import Fs.Nca as Nca from Fs.Nca import NcaHeader import Fs.Nsp as Nsp import Fs.Nacp as Nacp from Fs.File import MemoryFile from hashlib import sha256,sha1 from Drive import Public from Drive im...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Drive/Info.py
null
null
null
null
null
null
Python
2026-05-04T01:41:32.813401
# -*- coding: utf-8 -*- import sys from binascii import hexlify as hx, unhexlify as uhx import Hex import io import sq_tools import Fs.Nca as Nca from Fs.Nca import NcaHeader import Fs.Nsp as Nsp import Fs.Nacp as Nacp from Fs.File import MemoryFile from hashlib import sha256,sha1 from Drive import Public from Drive im...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Drive/fichier.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.134635
import Print import os import shutil import sq_tools import io import sys import listmanager import csv import requests try: import ujson as json except: import json from tqdm import tqdm # SET ENVIRONMENT squirrel_dir=os.path.abspath(os.curdir) NSCB_dir=os.path.abspath('../'+(os.curdir)) if os.path.exists(os.path....
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Drive/service.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.171017
# -*- coding: utf-8 -*- import re import warnings from six.moves import urllib_parse import os import os.path as osp import re import shutil import sys import tempfile import requests import six from tqdm import tqdm import argparse import pkg_resources from binascii import hexlify as hx, unhexlify as uhx try: import ...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/Bktr.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.185274
import aes128 import Hex from binascii import hexlify as hx, unhexlify as uhx from struct import pack as pk, unpack as upk from Fs.File import File from Fs.File import MemoryFile from hashlib import sha256 import Fs.Type import os import re import pathlib import Keys import Print MEDIA_SIZE = 0x200 class Header(Fi...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/ChromeNacp.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.190619
from Fs.File import File import Fs.Type from binascii import hexlify as hx, unhexlify as uhx from enum import IntEnum import Print import Keys import re import pykakasi import io indent = 1 tabs = '\t' * indent class NacpLanguageType(IntEnum): AmericanEnglish = 0 BritishEnglish = 1 Japanese = 2 French = 3 German...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/BaseFs.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.223314
from Fs.File import File import Print from binascii import hexlify as hx, unhexlify as uhx indent = 1 tabs = '\t' * indent class BaseFs(File): def __init__(self, buffer, path = None, mode = None, cryptoType = -1, cryptoKey = -1, cryptoCounter = -1): self.buffer = buffer self.sectionStart = 0 self.fsType = Non...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/ChromeNca.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.236149
import aes128 import Title import Titles import Hex import math from binascii import hexlify as hx, unhexlify as uhx from struct import pack as pk, unpack as upk from hashlib import sha256 import Fs.Type import os import re import pathlib import Keys import Config import Print import Nsps from tqdm import tqdm import ...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/File.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.298286
from enum import IntEnum import nutFs.Type import aes128 import Print import Hex from binascii import hexlify as hx, unhexlify as uhx import hashlib import os.path class BaseFile: def __init__(self, path = None, mode = None, cryptoType = -1, cryptoKey = -1, cryptoCounter = -1): self.offset = 0x0 self.size = None ...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/Cnmt.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.348674
from Fs.File import File import Fs.Type from binascii import hexlify as hx, unhexlify as uhx import Print import Keys class MetaEntry: def __init__(self, f): self.titleId = hx(f.read(8)[::-1]).decode() self.version = f.readInt32() self.type = f.readInt8() self.install = f.readInt8() f.readInt16() # junk ...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/Ivfc.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.397836
import aes128 import Title import Titles import Hex from binascii import hexlify as hx, unhexlify as uhx from struct import pack as pk, unpack as upk from Fs.File import File from hashlib import sha256 import Fs.Type import os import re import pathlib import Keys import Config import Print import Nsps from tqdm impor...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/Hfs0.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.449738
import aes128 import Title import Titles import Hex import math from binascii import hexlify as hx, unhexlify as uhx from struct import pack as pk, unpack as upk from Fs.File import File from hashlib import sha256 import Fs.Type from Fs.Pfs0 import Pfs0 from Fs.Ticket import Ticket from Fs.Nca import Nca from Fs.BaseFs...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/Pfs0.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.736543
import aes128 import Title import Titles import Hex from binascii import hexlify as hx, unhexlify as uhx from struct import pack as pk, unpack as upk from Fs.File import File from hashlib import sha256 import Fs.Type import os import re import pathlib import Keys import Config import Print import Nsps from tqdm import...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/Nacp.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.738360
from Fs.File import File import Fs.Type from binascii import hexlify as hx, unhexlify as uhx from enum import IntEnum import Print import Keys import re import pykakasi import io indent = 1 tabs = '\t' * indent class NacpLanguageType(IntEnum): AmericanEnglish = 0 BritishEnglish = 1 Japanese = 2 French = 3 German...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/Ticket.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.768903
from Fs.File import File import Fs.Type from binascii import hexlify as hx, unhexlify as uhx import Print import Keys import Hex from binascii import hexlify as hx, unhexlify as uhx import os indent = 1 tabs = '\t' * indent class Ticket(File): def __init__(self, path = None, mode = None, cryptoType = -1, cryptoKey =...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/Rom.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.769424
from binascii import hexlify as hx, unhexlify as uhx from struct import pack as pk, unpack as upk from Fs.File import File from Fs.File import MemoryFile import os import re import pathlib import Keys import Config import Print import Nsps from tqdm import tqdm from Fs.BaseFs import BaseFs from Fs.Ivfc import Ivfc ME...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/Type.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.789387
from enum import IntEnum class Content(IntEnum): PROGRAM = 0x0 META = 0x1 CONTROL = 0x2 MANUAL = 0x3 DATA = 0x4 PUBLIC_DATA = 0x5 class Fs(IntEnum): NONE = 0x0 PFS0 = 0x2 ROMFS = 0x3 class Crypto(IntEnum): ERR = 0 NONE = 1 XTS = 2 CTR = 3 BKTR = 4 NCA0 = 0x3041434E class TicketSignature(IntEnum): R...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/Titles.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.807549
#!/usr/bin/python3 # -*- coding: utf-8 -*- import os import re import time import json import operator import Print global titles titles = None class Title: def __init__(self): self.key = None self.id = None def setId(self, id): self.id = id.upper() global nsuIdMap nsuIdMap = {} global regionTitles regi...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.867849
from Fs.Xci import Xci from Fs.pXci import uXci from Fs.pXci import nXci from Fs.pXci import lXci from Fs.Nca import Nca from Fs.Nsp import Nsp from Fs.Rom import Rom from Fs.Nacp import Nacp from Fs.Pfs0 import Pfs0 from Fs.Hfs0 import Hfs0 from Fs.Ticket import Ticket from Fs.File import File from Fs.ChromeNsp import...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/pHfs0.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.932893
import aes128 import Title import Titles import Hex from binascii import hexlify as hx, unhexlify as uhx from struct import pack as pk, unpack as upk from Fs.File import File from hashlib import sha256 import Fs.Type from Fs.Pfs0 import Pfs0 from Fs.BaseFs import BaseFs import os import re import pathlib import Keys i...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/pXci.py
null
null
null
null
null
null
Python
2026-05-04T01:41:33.981416
from binascii import hexlify as hx, unhexlify as uhx from Fs.pHfs0 import uHfs0 from Fs.pHfs0 import nHfs0 from Fs.pHfs0 import lHfs0 from Fs.Ticket import Ticket from Fs.Nca import Nca from Fs.File import File import os import Print import Keys import aes128 import Hex import Title import Titles import Hex import sq_...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/pyNCA3.py
null
null
null
null
null
null
Python
2026-05-04T01:41:34.028689
#!/usr/bin/python3 # -*- coding: utf-8 -*- import os import io from struct import pack as pk from binascii import hexlify as hx, unhexlify as uhx from Crypto.Cipher import AES from Crypto.Util import Counter from Utils import ( read_at, read_u8, read_u32, read_u64, pk_u32, pk_u64, memdump, check_tkey, bytes2human, a...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/pyPFS0.py
null
null
null
null
null
null
Python
2026-05-04T01:41:34.306795
#!/usr/bin/python3 # -*- coding: utf-8 -*- import os from math import ceil from Utils import ( read_at, read_u32, read_u64, pk_u32, pk_u64, align_to, pad_to, bytes2human, FileInContainer ) from CryptoUtils import sha256 PFS0_HEADER_LENGTH = 0x10 PFS0_FILE_ENTRY_LENGTH = 0x18 class PFS0: '''Class to manipulate PF...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/pyNPDM.py
null
null
null
null
null
null
Python
2026-05-04T01:41:34.308098
#!/usr/bin/python3 # -*- coding: utf-8 -*- import io import re from Utils import read_at, read_u8, read_u32, read_u64, memdump class FsAccessControl: def __init__(self, fp): self.f = fp self._parse() def __str__(self): string = ' FS Access Control:\n' string += ' Version: %d\n' % self...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/_EEL_/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:41:34.355635
from builtins import range import traceback from io import open import sys import os squirrel_dir=os.path.abspath(os.curdir) NSCB_dir=os.path.abspath('../'+(os.curdir)) if os.path.exists(os.path.join(squirrel_dir,'ztools')): NSCB_dir=squirrel_dir zconfig_dir=os.path.join(NSCB_dir, 'zconfig') ztools_dir=os.path....
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/_EEL_/browsers.py
null
null
null
null
null
null
Python
2026-05-04T01:41:34.404477
import subprocess as sps import webbrowser as wbr import _EEL_.chrome as chm import _EEL_.electron as ele import _EEL_.edge as edge #import _EEL_.firefox as ffx TODO #import _EEL_.safari as saf TODO _browser_paths = {} _browser_modules = {'chrome': chm, 'electron': ele, ...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/_EEL_/chrome.py
null
null
null
null
null
null
Python
2026-05-04T01:41:34.444185
import sys, subprocess as sps, os # Every browser specific module must define run(), find_path() and name like this name = 'Google Chrome/Chromium' def run(path, options, start_urls): if options['app_mode']: for url in start_urls: sps.Popen([path, '--app=%s' % url] + op...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/_EEL_/__main__.py
null
null
null
null
null
null
Python
2026-05-04T01:41:34.460851
import sys import pkg_resources as pkg import PyInstaller.__main__ as pyi import os args = sys.argv[1:] main_script = args.pop(0) web_folder = args.pop(0) print("Building executable with main script '%s' and web folder '%s'...\n" % (main_script, web_folder)) eel_js_file = pkg.resource_filename('eel', 'eel.js')...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/_EEL_/edge.py
null
null
null
null
null
null
Python
2026-05-04T01:41:34.468285
import sys, subprocess as sps, os name = 'Edge' def run(path, options, start_urls): if options['app_mode']: for url in start_urls: sps.Popen([path, '--app=%s' % url] + options['cmdline_args'], stdout=sps.PIPE, stderr=sps.PIPE, stdin=sps.PIPE) else: cmd = 'start microsoft-edge:{}'.f...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/Fs/pyRomFS.py
null
null
null
null
null
null
Python
2026-05-04T01:41:34.514456
#!/usr/bin/python3 # -*- coding: utf-8 -*- import os import io from math import ceil from Crypto.Hash import SHA256 from Utils import ( read_at, read_u32, read_u64, pk_u32, pk_u64, align_to, bytes2human, pad_to, FileInContainer ) from CryptoUtils import sha256 ROMFS_HEADER_LENGTH = 0x50 ROMFS_FILEPARTITION_OFS = 0...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/_EEL_/electron.py
null
null
null
null
null
null
Python
2026-05-04T01:41:34.535388
import sys import os import subprocess as sps import whichcraft as wch name = 'Electron' def run(path, options, start_urls): cmd = [path] + options['cmdline_args'] cmd += ['.', ';'.join(start_urls)] sps.Popen(cmd, stdout=sys.stdout, stderr=sys.stderr, stdin=sps.PIPE) def find_path(): if sys.platform...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/_bottle_websocket_/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:41:34.598996
from .plugin import websocket from .server import GeventWebSocketServer __all__ = ['websocket', 'GeventWebSocketServer'] __version__ = '0.2.9'
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/_bottle_websocket_/plugin.py
null
null
null
null
null
null
Python
2026-05-04T01:41:34.871861
from bottle import request def websocket(callback): def wrapper(*args, **kwargs): callback(request.environ.get('wsgi.websocket'), *args, **kwargs) return wrapper
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/_bottle_websocket_/server.py
null
null
null
null
null
null
Python
2026-05-04T01:41:34.876137
import logging from bottle import ServerAdapter from gevent import pywsgi from geventwebsocket.handler import WebSocketHandler from geventwebsocket.logging import create_logger class GeventWebSocketServer(ServerAdapter): def run(self, handler): server = pywsgi.WSGIServer((self.host, self.port), handler, h...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/lib/Config.py
null
null
null
null
null
null
Python
2026-05-04T01:41:34.968377
#!/usr/bin/python3 # -*- coding: utf-8 -*- import json import os import platform class Server: def __init__(self): self.hostname = 'localhost' self.port = 9000 class Cdn: def __init__(self): self.region = 'US' self.firmware = '5.1.0-0' self.deviceId = '0000000000000000' self.environment = 'lp1' class...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/lib/CryptoUtils.py
null
null
null
null
null
null
Python
2026-05-04T01:41:34.968880
#!/usr/bin/python3 # -*- coding: utf-8 -*- from binascii import hexlify as hx, unhexlify as uhx from Utils import pk_u8 from Crypto.Hash import SHA256 from Crypto.Cipher import AES from Crypto.Util import Counter from Crypto.PublicKey import RSA from Crypto.Signature import PKCS1_v1_5, PKCS1_PSS def sha256(data): r...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/lib/File_chunk.py
null
null
null
null
null
null
Python
2026-05-04T01:41:35.042365
import aes128 import Title import Titles import Hex from binascii import hexlify as hx, unhexlify as uhx from struct import pack as pk, unpack as upk from Fs.File import File from hashlib import sha256,sha1 import Fs.Type from Fs import Type import os import re import pathlib import Keys import Config import Print imp...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/lib/File_chunk2.py
null
null
null
null
null
null
Python
2026-05-04T01:41:35.078260
import sq_tools from Fs.File import MemoryFile import aes128 import Title import Titles import Hex from binascii import hexlify as hx, unhexlify as uhx from struct import pack as pk, unpack as upk from Fs.File import File from hashlib import sha256,sha1 import Fs.Type from Fs import Type import os import re import pat...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/lib/Hex.py
null
null
null
null
null
null
Python
2026-05-04T01:41:35.101432
from string import ascii_letters, digits, punctuation import Print def bufferToHex(buffer, start, count): accumulator = '' for item in range(count): accumulator += '%02X' % buffer[start + item] + ' ' return accumulator def bufferToAscii(buffer, start, count): accumulator = '' for item in r...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/lib/DBmodule.py
null
null
null
null
null
null
Python
2026-05-04T01:41:35.151951
''' Based on Pysos with modifications to handle switch added clases to handle NSCB library Pydbm - Library Data: * Name: Pysos * Author: dagnelies * License: Apache 2.0 -> https://github.com/dagnelies/pysos * Modifications by julesontheroad: https://github.com/julesontheroad/NSC_BUILDER/ ''' import io import os.path i...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/lib/Keys.py
null
null
null
null
null
null
Python
2026-05-04T01:41:35.154414
import re import aes128 from binascii import hexlify as hx, unhexlify as uhx import Print from pathlib import Path import sq_settings keys = {} titleKeks = [] keyAreaKeys = [] def getMasterKeyIndex(i): if i > 0: return i-1 else: return 0 def keyAreaKey(cryptoType, i): # print(cryptoType) # print(i) return k...
julesontheroad/NSC_BUILDER
https://github.com/julesontheroad/NSC_BUILDER
null
null
null
null
1,987
null
null
mit
null
null
null
null
null
null
null
py/ztools/lib/Interface.py
null
null
null
null
null
null
Python
2026-05-04T01:41:35.264530
import io import _EEL_ as eel import sq_tools import Fs import sys import platform if sys.platform in ['win32', 'win64']: import win32com.client from base64 import b64encode try: import tkinter as tk from tkinter import filedialog except:pass import sq_tools import os import ast import Print import nutdb from sub...
pykeen/pykeen
https://github.com/pykeen/pykeen
null
null
null
null
1,986
null
null
mit
null
null
null
null
null
null
null
docs/source/examples/first_steps/entity_and_relation_mapping.py
null
null
null
null
null
null
Python
2026-05-04T01:41:38.743517
"""Mapping Entity and Relation Identifiers to their Names.""" # %% import torch from pykeen.datasets.utils import get_dataset from pykeen.triples.triples_factory import TriplesFactory # As an example, we will use a small dataset that comes with entity and relation labels. dataset = get_dataset(dataset="nations") tri...