repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
ksweta/BeamIt-Server | beamit/resources/signin.py | from beamit.resources.base import Resource
class SigninRequest(Resource):
MEDIA_TYPE = 'application/vnd.beamit.signin.request+json'
def __init__(self, email, password):
self.email = email
self.password = password
def __repr__(self):
return "<SigninRequest email: {}, password: {}... |
ksweta/BeamIt-Server | beamit/controllers/landing_page.py | """
Landing page controller var miscellaneous pages.
"""
from flask import render_template
def create_landing_page_routes(app):
@app.route('/')
def root():
return 'Hello from BeamIt!!'
@app.route('/android/download')
def android_download():
return render_template('androidAppDownload.... |
jerry871002/CSE201-project | doc/EcoModelForTransport.py | <gh_stars>1-10
import numpy as np
import random
#City
airQuality = 1
averageWage = 1600
revenue = 0
alpha = [0, 0, 0, 0]
pourcentage = [40, 20, 20, 20]
quantity = [0, 0, 0, 0]
alpha[0] = 10.0
alpha[1] = 10.0
alpha[2] = 2.0
alpha[3] = 1.0
#Objects
lifetime = [15, 10, 20, 10]
pricetotal = [30000, 50000, 5000, 600]
... |
spelcha/assemblyline-service-apkaye | test/test_apkaye.py | import os
import json
import pytest
import shutil
# Getting absolute paths, names and regexes
TEST_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT_DIR = os.path.dirname(TEST_DIR)
SERVICE_CONFIG_NAME = "service_manifest.yml"
SERVICE_CONFIG_PATH = os.path.join(ROOT_DIR, SERVICE_CONFIG_NAME)
TEMP_SERVICE_CONFIG_PAT... |
vanttec/vanttec_uuv | lib/choose_side/scripts/auto_nav_position.py | <gh_stars>0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import math
import time
import matplotlib.pyplot as plt
import numpy as np
import rospy
from std_msgs.msg import Float32MultiArray, Int32, String
from geometry_msgs.msg import Pose, PoseStamped
from vanttec_uuv.msg import GuidanceWaypoints
from usv_perception.... |
Owen-Liuyuxuan/LIGA-Stereo | tools/eval_utils/eval_utils.py | import pickle
import time
import numpy as np
import torch
import tqdm
from liga.models import load_data_to_gpu
from liga.utils import common_utils
def statistics_info(cfg, ret_dict, metric, disp_dict):
for cur_thresh in cfg.MODEL.POST_PROCESSING.RECALL_THRESH_LIST:
metric['recall_roi_%s' % str(cur_thres... |
Owen-Liuyuxuan/LIGA-Stereo | tools/train_utils/optimization/__init__.py | from functools import partial
import torch.nn as nn
import torch.optim as optim
import torch.optim.lr_scheduler as lr_sched
from .fastai_optim import OptimWrapper
from .learning_schedules_fastai import CosineWarmupLR, OneCycle
class FusedOptimizer(optim.Optimizer):
def __init__(self, all_params, lr=None, weight... |
Owen-Liuyuxuan/LIGA-Stereo | liga/models/dense_heads/__init__.py | <filename>liga/models/dense_heads/__init__.py<gh_stars>10-100
from .anchor_head_single import AnchorHeadSingle
from .det_head import DetHead
from .anchor_head_template import AnchorHeadTemplate
from .mmdet_2d_head import MMDet2DHead
__all__ = {
'AnchorHeadTemplate': AnchorHeadTemplate,
'AnchorHeadSingle': Anch... |
Owen-Liuyuxuan/LIGA-Stereo | liga/datasets/augmentor/stereo_data_augmentor.py | <filename>liga/datasets/augmentor/stereo_data_augmentor.py
# data augmentor for stereo data_dict.
from functools import partial
import numpy as np
from liga.utils import common_utils, box_utils
class StereoDataAugmentor(object):
def __init__(self, root_path, augmentor_configs, class_names, logger=None):
... |
Owen-Liuyuxuan/LIGA-Stereo | liga/models/backbones_3d_stereo/cost_volume.py | # Stereo cost volume builder.
import torch
from torch import nn
from liga.ops.build_cost_volume import build_cost_volume
class BuildCostVolume(nn.Module):
def __init__(self, volume_cfgs):
self.volume_cfgs = volume_cfgs
super(BuildCostVolume, self).__init__()
def get_dim(self, feature_chann... |
Owen-Liuyuxuan/LIGA-Stereo | liga/datasets/augmentor/augmentor_utils.py | # Modified from OpenPCDet. https://github.com/open-mmlab/OpenPCDet
# Augmentation utility functions.
import numpy as np
from liga.utils import common_utils
def random_flip_along_x(gt_boxes, points):
"""
Args:
gt_boxes: (N, 7 + C), [x, y, z, dx, dy, dz, heading, [vx], [vy]]
points: (M, 3 + C)... |
Owen-Liuyuxuan/LIGA-Stereo | liga/models/backbones_3d_stereo/liga_backbone.py | # The backbone of our LIGA model.
# including 2D feature extraction, stereo volume construction, stereo network, stereo space -> 3D space conversion
import math
import torch
import torch.nn as nn
import torch.utils.data
import torch.nn.functional as F
from mmdet.models.builder import build_backbone, build_neck
from ... |
Owen-Liuyuxuan/LIGA-Stereo | liga/models/dense_heads/det_head.py | """A variant of anchor_head_single.
The differences are as follows:
* two more options: num_convs, GN
* apply two split convs for regression outputs and classification outputs
* when num_convs == 0, this module should be almost the same as anchor_head_single
* in conv_box/cls, the kernel size is modified to 3 instead ... |
Owen-Liuyuxuan/LIGA-Stereo | tools/train.py | import argparse
import glob
import os
from pathlib import Path
from test import repeat_eval_ckpt
import torch
import torch.distributed as dist
import torch.nn as nn
from tensorboardX import SummaryWriter
from liga.config import cfg, cfg_from_list, cfg_from_yaml_file, update_cfg_by_args, log_config_to_file
from liga.d... |
Owen-Liuyuxuan/LIGA-Stereo | liga/ops/build_cost_volume/__init__.py | <gh_stars>10-100
import torch
from torch.autograd import Function
from torch.autograd.function import once_differentiable
from liga.ops.build_cost_volume import build_cost_volume_cuda
class _BuildCostVolume(Function):
@staticmethod
def forward(ctx, left, right, shift, downsample):
ctx.save_for_backwar... |
Owen-Liuyuxuan/LIGA-Stereo | liga/datasets/stereo_dataset_template.py | from collections import defaultdict
from pathlib import Path
import numpy as np
import torch.utils.data as torch_data
from liga.utils import common_utils, box_utils, depth_map_utils
from liga.ops.roiaware_pool3d import roiaware_pool3d_utils
from .augmentor.stereo_data_augmentor import StereoDataAugmentor
from .process... |
Owen-Liuyuxuan/LIGA-Stereo | liga/models/backbones_2d/map_to_bev/__init__.py | from .height_compression import HeightCompression
__all__ = {
'HeightCompression': HeightCompression,
}
|
Owen-Liuyuxuan/LIGA-Stereo | liga/models/backbones_2d/map_to_bev/height_compression.py | # Convert sparse or dense 3D tensors into BEV 2D tensors by dimension rearrangement
import torch.nn as nn
class HeightCompression(nn.Module):
def __init__(self, model_cfg, **kwargs):
super().__init__()
self.model_cfg = model_cfg
self.num_bev_features = self.model_cfg.NUM_BEV_FEATURES
... |
Owen-Liuyuxuan/LIGA-Stereo | liga/utils/box_utils.py | <gh_stars>10-100
from liga.utils.calibration_kitti import Calibration
import numpy as np
import scipy
import torch
from scipy.spatial import Delaunay
from liga.ops.roiaware_pool3d import roiaware_pool3d_utils
from liga.ops.iou3d_nms.iou3d_nms_utils import boxes_iou_bev
from . import common_utils
def in_hull(p, hull)... |
Owen-Liuyuxuan/LIGA-Stereo | liga/models/backbones_3d_stereo/submodule.py | <reponame>Owen-Liuyuxuan/LIGA-Stereo
# modified from DSGN https://github.com/Jia-Research-Lab/DSGN
# sub-modules used in LIGA backbone.
import torch
import torch.nn as nn
import torch.utils.data
import torch.nn.functional as F
def convbn(in_planes,
out_planes,
kernel_size,
stride,
... |
Owen-Liuyuxuan/LIGA-Stereo | liga/models/backbones_3d_stereo/__init__.py | <reponame>Owen-Liuyuxuan/LIGA-Stereo
from .liga_backbone import LigaBackbone
__all__ = {
'LigaBackbone': LigaBackbone
}
|
Owen-Liuyuxuan/LIGA-Stereo | liga/utils/loss_utils.py | import sys
import numpy as np
import torch
import math
import torch.nn as nn
import torch.nn.functional as F
from liga.ops.iou3d_nms.iou3d_nms_utils import boxes_iou3d_gpu_differentiable
from . import box_utils
class SigmoidFocalClassificationLoss(nn.Module):
"""
Sigmoid focal cross entropy loss.
"""
... |
Owen-Liuyuxuan/LIGA-Stereo | liga/utils/calibration_kitti.py | import torch
import numpy as np
def get_calib_from_file(calib_file):
with open(calib_file) as f:
lines = f.readlines()
calib_data = {}
for key in ['P2', 'P3', 'R0_rect', 'Tr_velo_to_cam']:
for line in lines:
line = line.strip()
splits = [x for x in line.split(' ') ... |
Owen-Liuyuxuan/LIGA-Stereo | liga/models/detectors_stereo/liga.py | <reponame>Owen-Liuyuxuan/LIGA-Stereo
from liga.ops.iou3d_nms import iou3d_nms_utils
from .stereo_detector3d_template import StereoDetector3DTemplate
class LIGA(StereoDetector3DTemplate):
def __init__(self, model_cfg, num_class, dataset):
super().__init__(model_cfg=model_cfg, num_class=num_class, dataset=d... |
Owen-Liuyuxuan/LIGA-Stereo | liga/models/backbones_3d_lidar/__init__.py | from .spconv_backbone import VoxelBackBone8x, VoxelBackBone4x, VoxelResBackBone8x, VoxelBackBone4xNoFinalBnReLU
__all__ = {
'VoxelBackBone8x': VoxelBackBone8x,
'VoxelBackBone4x': VoxelBackBone4x,
'VoxelResBackBone8x': VoxelResBackBone8x,
'VoxelBackBone4xNoFinalBnReLU': VoxelBackBone4xNoFinalBnReLU
}
|
Owen-Liuyuxuan/LIGA-Stereo | liga/models/backbones_2d/hg_bev_backbone.py | <gh_stars>10-100
# Hourglass BEV backbone (same as DSGN. https://arxiv.org/abs/2001.03398)
import torch.nn as nn
from liga.models.backbones_3d_stereo.submodule import convbn, hourglass2d
class HgBEVBackbone(nn.Module):
def __init__(self, model_cfg, input_channels):
super().__init__()
self.model_... |
Owen-Liuyuxuan/LIGA-Stereo | liga/models/detectors_stereo/__init__.py | from .liga import LIGA
__all__ = {
'stereo_LIGA': LIGA,
}
def build_detector(model_cfg, num_class, dataset):
model = __all__[model_cfg.NAME](
model_cfg=model_cfg, num_class=num_class, dataset=dataset
)
return model
|
Owen-Liuyuxuan/LIGA-Stereo | liga/models/__init__.py | <filename>liga/models/__init__.py
from collections import namedtuple
import numpy as np
import torch
from .detectors_lidar import build_detector as build_lidar_detector
from .detectors_stereo import build_detector as build_stereo_detector
def build_network(model_cfg, num_class, dataset):
if model_cfg['NAME'].st... |
Owen-Liuyuxuan/LIGA-Stereo | liga/models/detectors_stereo/stereo_detector3d_template.py | import os
import torch
import torch.nn as nn
import torch.distributed as dist
from liga.utils import nms_utils
from liga.utils.common_utils import create_logger
from liga.ops.iou3d_nms import iou3d_nms_utils
from liga.models import backbones_2d, backbones_3d_stereo, dense_heads
from liga.models.backbones_2d import map... |
Owen-Liuyuxuan/LIGA-Stereo | liga/utils/box_coder_utils.py | import numpy as np
import torch
from liga.utils import box_utils, common_utils
class ResidualCoder(object):
def __init__(self, code_size=7, encode_angle_by_sincos=False, div_by_diagonal=True, use_corners=False, use_tanh=False, tanh_range=3.14, **kwargs):
super().__init__()
self.code_size = code_s... |
Owen-Liuyuxuan/LIGA-Stereo | liga/models/backbones_3d_lidar/vfe/__init__.py | from .mean_vfe import MeanVFE
from .vfe_template import VFETemplate
__all__ = {
'VFETemplate': VFETemplate,
'MeanVFE': MeanVFE,
}
|
Owen-Liuyuxuan/LIGA-Stereo | liga/models/dense_heads/depth_loss_head.py | <reponame>Owen-Liuyuxuan/LIGA-Stereo
# Depth Loss Head for stereo matching supervision.
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.distributed as dist
IS_PRINT = (not dist.is_initialized()) or (dist.get_rank() == 0)
class DepthLossHead(nn.Module):
def __init__(self, model_cf... |
Owen-Liuyuxuan/LIGA-Stereo | liga/models/backbones_2d/__init__.py | <reponame>Owen-Liuyuxuan/LIGA-Stereo<gh_stars>10-100
from .base_bev_backbone import BaseBEVBackbone
from .hg_bev_backbone import HgBEVBackbone
__all__ = {
'BaseBEVBackbone': BaseBEVBackbone,
'HgBEVBackbone': HgBEVBackbone
}
|
Owen-Liuyuxuan/LIGA-Stereo | liga/datasets/kitti/stereo_kitti_dataset.py | <filename>liga/datasets/kitti/stereo_kitti_dataset.py
# Stereo KITTI Pytorch Dataset (for training Our LIGA model)
import copy
import pickle
import numpy as np
import torch
from skimage import io
from liga.utils import box_utils, calibration_kitti, common_utils, object3d_kitti, depth_map_utils
from liga.datasets.ster... |
Owen-Liuyuxuan/LIGA-Stereo | liga/models/detectors_lidar/second_net.py | # Modified from OpenPCDet. https://github.com/open-mmlab/OpenPCDet
from .lidar_detector3d_template import Detector3DTemplate
class SECONDNet(Detector3DTemplate):
def __init__(self, model_cfg, num_class, dataset):
super().__init__(model_cfg=model_cfg, num_class=num_class, dataset=dataset)
self.mo... |
Owen-Liuyuxuan/LIGA-Stereo | liga/utils/depth_map_utils.py | <filename>liga/utils/depth_map_utils.py
import numpy as np
def points_to_depth_map(pts_rect, img_shape, calib):
depth_gt_img = np.zeros(img_shape, dtype=np.float32)
pts_img, pts_depth = calib.rect_to_img(pts_rect[:, :3])
iy, ix = np.round(pts_img[:, 1]).astype(np.int64), np.round(pts_img[:, 0]).astype(np.... |
Owen-Liuyuxuan/LIGA-Stereo | liga/models/dense_heads/mmdet_2d_head.py | <filename>liga/models/dense_heads/mmdet_2d_head.py
# 2D detection head based on mmdetection.
import numpy as np
import torch
import torch.nn as nn
from mmdet.models.builder import build_head
from mmdet.core import bbox2result
class MMDet2DHead(nn.Module):
def __init__(self, model_cfg):
super(MMDet2DHea... |
rstudio/mlflow | examples/hyperparam/search_gpyopt.py | <gh_stars>10-100
"""
Example of hyperparameter search in MLflow using GPyOpt.
The run method will instantiate and run GPyOpt optimizer. Each parameter configuration is
evaluated in a new MLflow run invoking main entry point with selected parameters.
The runs are evaluated based on validation set loss. Test set score ... |
Shams261/IOSD-UIETKUK-HacktoberFest-Meetup-2019 | Intermediate/bubble_sort002.py | <filename>Intermediate/bubble_sort002.py
def bubblesort(A):
for i in range(len(A)):
for k in range(len(A) - 1, i, -1):
if (A[k] < A[k - 1]):
swap(A,k,k-1)
def swap(A,x,y):
temp = A[x]
A[x] = A[y]
A[y] = temp
A= [534,689,235,124,525,216,134,356]
bubblesort(A)
print(A)
... |
toxinu/spilleliste | setup.py | #!/usr/bin/env python2
# coding: utf-8
import os
import sys
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def get_version():
VERSIONFILE = 'spilleliste/__init__.py'
initfile_lines = open(VERSIONFILE, 'rt').readlines()
VSRE = r"^__version__ = ['\... |
toxinu/spilleliste | spilleliste/generator.py | <gh_stars>0
# -*- coding: utf-8 -*-
import os
import requests
import codecs
from spilleliste.core import Playlist
from spilleliste.core import Artist
from spilleliste.core import Album
from spilleliste.core import Track
from spilleliste.externals import googleimage
from spilleliste.externals import spotify
from spil... |
toxinu/spilleliste | spilleliste/connectors/googlemusic.py | # -*- coding: utf-8 -*-
try:
from gmusicapi import Mobileclient
except ImportError:
raise Exception('You need gmusicapi python package (pip install gmusicapi)')
def get_playlists(username, password):
api = Mobileclient(debug_logging=False)
api.login(username, password)
playlists = {}
_playlists = api.get_all_p... |
toxinu/spilleliste | spilleliste/__init__.py | # coding: utf-8
__title__ = 'spilleliste'
__version__ = '0.1.2'
__author__ = 'toxinu'
__license__ = ''
__copyright__ = 'Copyright 2013 toxinu'
|
toxinu/spilleliste | spilleliste/core.py | <reponame>toxinu/spilleliste<filename>spilleliste/core.py
# -*- coding: utf-8 -*-
class Track(object):
def __init__(self, name, infos):
self.name = name
self.infos = infos
class Album(object):
def __init__(self, name, infos):
self.name = name
self.tracks = []
self.inf... |
toxinu/spilleliste | spilleliste/externals/spotify.py | # -*- coding: utf-8 -*-
import requests
def search(artist, album, title):
res = None
request = "%s %s" % (artist, title)
r = requests.get('http://ws.spotify.com/search/1/track.json?q=%s' % request)
try:
data = r.json()
except ValueError:
return False
if data:
for tr... |
toxinu/spilleliste | spilleliste/externals/youtube.py | # -*- coding: utf-8 -*-
def search(artist, album, title):
query = "%s+%s+%s" % (artist, album, title)
return u"https://www.youtube.com/results?search_query=%s" % query
|
toxinu/spilleliste | spilleliste/externals/googleimage.py | # -*- coding: utf-8 -*-
import random
import requests
def search(playlists, nb_background=5):
artists = []
for playlist in playlists:
artists += playlist.get_artists()
background_found = 0
backgrounds = []
while background_found < nb_background:
for artist in random.sample(artist... |
toxinu/spilleliste | spilleliste/connectors/itunes.py | <reponame>toxinu/spilleliste
# -*- coding: utf-8 -*-
import isit
if not isit.osx:
raise Exception('Only available on OSX')
import xml.etree.ElementTree as ET
try:
from appscript import *
except ImportError:
raise Exception('You need appscript python package (pip install appscript)')
iTunes = app('iTune... |
Sourodip-ghosh123/Fruits-360 | ResNet50 V2/resnet50_v2_model.py | from keras.applications.resnet_v2 import ResNet50V2
model=ResNet50V2(include_top=True, weights=None, input_tensor=None, input_shape=(100,100,3),classes=41)
model.summary()
model.compile(loss='categorical_crossentropy',
optimizer='adam',
metrics=['accuracy'])
print('Compiled!')
from keras.m... |
Sourodip-ghosh123/Fruits-360 | CNN/cnn_model.py | from keras.preprocessing.image import array_to_img, img_to_array, load_img
def convert_image_to_array(files):
images_as_array=[]
for file in files:
# Convert to Numpy Array
images_as_array.append(img_to_array(load_img(file)))
return images_as_array
x_train = np.array(convert_image_to_array... |
Sourodip-ghosh123/Fruits-360 | ResNet50 V2/pre-processing.py | <gh_stars>0
from sklearn.datasets import load_files
import numpy as np
train_dir = '../input/fruits/Fruits_1/Training'
test_dir = '../input/fruits/Fruits_1/Test'
def load_dataset(path):
data = load_files(path)
files = np.array(data['filenames'])
targets = np.array(data['target'])
target_labels = np.ar... |
icarus523/xml_naming_convention_validator | xml_naming_convention_validator.py | import xml.etree.ElementTree as ET
import re
fname = "5101000843.xml"
class xml_naming_convention_validator:
def test_HMSC(self, name):
# BIOS
bios_matchObj = re.search(r'(bios)', name, re.M | re.I)
if bios_matchObj:
print(bios_matchObj.group(), name)
... |
grantcooksey/pytest-demo | src/taxi_trips/__main__.py | <reponame>grantcooksey/pytest-demo<filename>src/taxi_trips/__main__.py<gh_stars>0
from taxi_trips import passenger_count
passenger_count.start_job()
|
grantcooksey/pytest-demo | test/test_pytest_basics.py | import os
import copy
from unittest import mock
import requests
from taxi_trips import sleep_demo
import pytest
# This statement is only used to make it easier to only run unit test modules.
# Integration test modules will have `pytestmark = pytest.mark.integration`
# Check out the `pytest.ini` to the list of other ... |
grantcooksey/pytest-demo | src/taxi_trips/sleep_demo.py | <filename>src/taxi_trips/sleep_demo.py
import time
def long_sleep():
time.sleep(seconds=60)
return True
|
grantcooksey/pytest-demo | test/test_passenger_count.py | import io
from collections.abc import Iterable
from unittest import mock
from requests.exceptions import ConnectTimeout
from taxi_trips import passenger_count
import pytest
pytestmark = pytest.mark.unit
@pytest.fixture
def ten_person_taxi_report_file(raw_ten_passenger_taxi_records):
return io.StringIO(raw_ten_pa... |
grantcooksey/pytest-demo | test/conftest.py | <filename>test/conftest.py
from taxi_trips import passenger_count
import pytest
@pytest.fixture
def raw_ten_passenger_taxi_records():
# 1 + 1 + 3 + 5 = 10 passengers
return '''VendorID,tpep_pickup_datetime,tpep_dropoff_datetime,passenger_count,trip_distance,RatecodeID,store_and_fwd_flag,PULocationID,DOLocati... |
grantcooksey/pytest-demo | src/taxi_trips/passenger_count.py | import os
import io
import logging
import csv
import requests
logger = logging.getLogger(__name__)
YELLOW_TAXI_ENDPOINT = 'https://s3.amazonaws.com/nyc-tlc/trip+data/yellow_tripdata_{year}-{month}.csv'
REQUEST_TIMEOUT_SECONDS = 5
FILE_FORMAT = '{year}_{month}_count_passengers.csv'
RESULT_PATH = 'data/'
def start_j... |
grantcooksey/pytest-demo | test/test_passenger_count_integration.py | from unittest import mock
from taxi_trips import passenger_count
import pytest
pytestmark = pytest.mark.integration
@pytest.fixture
def test_data_path(tmp_path, mocker):
mocker.patch.object(passenger_count, 'RESULT_PATH')
data_dir = tmp_path / 'data'
data_dir.mkdir()
passenger_count.RESULT_PATH = str... |
grantcooksey/pytest-demo | src/taxi_trips/__init__.py | import logging
import os
import sys
LOG_LEVEL = os.getenv('LOG_LEVEL', 'INFO')
logger = logging.getLogger(__name__)
logger.setLevel(getattr(logging, LOG_LEVEL))
formatter = logging.Formatter('[%(levelname)s] %(name)s %(asctime)s - %(message)s')
handler = logging.StreamHandler(sys.stdout)
handler.setFormatter(formatter... |
grantcooksey/pytest-demo | setup.py | <reponame>grantcooksey/pytest-demo
from setuptools import setup, find_packages
setup(
name="sample etl job",
packages=find_packages('src/taxi_trips'),
package_dir={'': 'src'}
)
|
player1537-forks/spack | var/spack/repos/builtin/packages/diffmark/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Diffmark(AutotoolsPackage):
"""Diffmark is a DSL for transforming one string to another.""... |
player1537-forks/spack | var/spack/repos/builtin/packages/r-gridextra/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RGridextra(RPackage):
"""Miscellaneous Functions for "Grid" Graphics.
Provides a numb... |
player1537-forks/spack | var/spack/repos/builtin/packages/py-cupy/package.py | <filename>var/spack/repos/builtin/packages/py-cupy/package.py<gh_stars>10-100
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyCupy(PythonPac... |
player1537-forks/spack | var/spack/repos/builtin/packages/py-iocapture/package.py | <gh_stars>10-100
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyIocapture(PythonPackage):
"""Capture stdout, stderr easily."""
hom... |
player1537-forks/spack | var/spack/repos/builtin/packages/r-stabledist/package.py | <filename>var/spack/repos/builtin/packages/r-stabledist/package.py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RStabledist(RPackage):
... |
player1537-forks/spack | var/spack/repos/builtin/packages/r-e1071/package.py | <filename>var/spack/repos/builtin/packages/r-e1071/package.py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RE1071(RPackage):
"""Misc Fu... |
player1537-forks/spack | var/spack/repos/builtin/packages/debbuild/package.py | <reponame>player1537-forks/spack<gh_stars>10-100
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Debbuild(AutotoolsPackage):
"""Build deb ... |
player1537-forks/spack | var/spack/repos/builtin/packages/henson/package.py | <reponame>player1537-forks/spack<gh_stars>10-100
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Henson(CMakePackage):
"""Cooperative mult... |
player1537-forks/spack | var/spack/repos/builtin/packages/py-smmap/package.py | <reponame>player1537-forks/spack
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PySmmap(PythonPackage):
"""
A pure Python implementat... |
player1537-forks/spack | var/spack/repos/builtin/packages/r-watermelon/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RWatermelon(RPackage):
"""Illumina 450 methylation array normalization and metrics.
1... |
player1537-forks/spack | var/spack/repos/builtin/packages/opium/package.py | <gh_stars>10-100
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Opium(AutotoolsPackage):
"""DFT pseudopotential generation project"""
... |
player1537-forks/spack | var/spack/repos/builtin/packages/py-lap/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
class PyLap(PythonPackage):
"""lap is a linear assignment problem solver using
Jonker-Volgenant algorithm for den... |
player1537-forks/spack | var/spack/repos/builtin/packages/xf86miscproto/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Xf86miscproto(AutotoolsPackage, XorgPackage):
"""This package includes the protocol defini... |
player1537-forks/spack | var/spack/repos/builtin/packages/py-oslo-i18n/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyOsloI18n(PythonPackage):
"""
The oslo.i18n library contain utilities for working wit... |
player1537-forks/spack | var/spack/repos/builtin/packages/rsyslog/package.py | <filename>var/spack/repos/builtin/packages/rsyslog/package.py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Rsyslog(AutotoolsPackage):
"... |
player1537-forks/spack | var/spack/repos/builtin/packages/r-ampliqueso/package.py | <reponame>player1537-forks/spack
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RAmpliqueso(RPackage):
"""Analysis of amplicon enrichment... |
player1537-forks/spack | var/spack/repos/builtin/packages/r-condop/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RCondop(RPackage):
"""Condition-Dependent Operon Predictions.
An implementation of th... |
player1537-forks/spack | var/spack/repos/builtin/packages/prokka/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Prokka(Package):
"""Prokka is a software tool to annotate bacterial, archaeal and viral
... |
player1537-forks/spack | var/spack/repos/builtin/packages/nco/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Nco(AutotoolsPackage):
"""The NCO toolkit manipulates and analyzes data stored in
netC... |
player1537-forks/spack | var/spack/repos/builtin/packages/bioawk/package.py | <filename>var/spack/repos/builtin/packages/bioawk/package.py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Bioawk(MakefilePackage):
"""B... |
player1537-forks/spack | var/spack/repos/builtin/packages/py-yapf/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyYapf(PythonPackage):
""" Yet Another Python Formatter """
homepage = "https://github... |
player1537-forks/spack | var/spack/repos/builtin/packages/r-matrixstats/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RMatrixstats(RPackage):
"""Functions that Apply to Rows and Columns of Matrices (and to Ve... |
player1537-forks/spack | var/spack/repos/builtin/packages/perl-list-moreutils-xs/package.py | <gh_stars>10-100
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PerlListMoreutilsXs(PerlPackage):
"""List::MoreUtils::XS is a backend for... |
player1537-forks/spack | var/spack/repos/builtin/packages/p3dfft3/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class P3dfft3(AutotoolsPackage):
"""P3DFFT++ (a.k.a. P3DFFT v. 3) is a new generation of P3DFFT ... |
player1537-forks/spack | var/spack/repos/builtin/packages/mumax/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
import shutil
from spack import *
class Mumax(MakefilePackage, CudaPackage):
"""GPU accelerated micromagn... |
player1537-forks/spack | var/spack/repos/builtin/packages/chrpath/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Chrpath(AutotoolsPackage):
"""chrpath: Modifies the dynamic library load path (rpath and r... |
player1537-forks/spack | var/spack/repos/builtin/packages/py-h5glance/package.py | <filename>var/spack/repos/builtin/packages/py-h5glance/package.py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyH5glance(PythonPackage):
... |
player1537-forks/spack | var/spack/repos/builtin/packages/r-later/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RLater(RPackage):
"""Utilities for Scheduling Functions to Execute Later with Event Loops.... |
player1537-forks/spack | lib/spack/spack/compilers/aocc.py | <reponame>player1537-forks/spack
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import re
import sys
import llnl.util.lang
from spack.compiler import Compiler
from spa... |
player1537-forks/spack | var/spack/repos/builtin/packages/ladot/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Ladot(Package):
"""Ladot is a script that makes using LaTeX in graphs generated by dot
... |
player1537-forks/spack | var/spack/repos/builtin/packages/prometheus/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Prometheus(MakefilePackage):
"""Prometheus, a Cloud Native Computing Foundation project, i... |
player1537-forks/spack | var/spack/repos/builtin.mock/packages/fetch-options/package.py | <reponame>player1537-forks/spack
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class FetchOptions(Package):
"""Mock package with fetch_options... |
player1537-forks/spack | var/spack/repos/builtin/packages/filebench/package.py | <filename>var/spack/repos/builtin/packages/filebench/package.py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Filebench(AutotoolsPackage):
... |
player1537-forks/spack | lib/spack/llnl/util/compat.py | <filename>lib/spack/llnl/util/compat.py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
# isort: off
import sys
if sys.version_info < (3,):
from itertools import ifi... |
player1537-forks/spack | lib/spack/spack/test/test_activations.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
"""This includes tests for customized activation logic for specific packages
(e.g. python and perl).
"""
import os
im... |
player1537-forks/spack | var/spack/repos/builtin/packages/jsoncpp/package.py | <filename>var/spack/repos/builtin/packages/jsoncpp/package.py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Jsoncpp(CMakePackage):
"""Js... |
player1537-forks/spack | var/spack/repos/builtin/packages/py-dockerpy-creds/package.py | <reponame>player1537-forks/spack<filename>var/spack/repos/builtin/packages/py-dockerpy-creds/package.py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import ... |
player1537-forks/spack | var/spack/repos/builtin/packages/r-assertive-code/package.py | <gh_stars>10-100
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RAssertiveCode(RPackage):
"""Assertions to Check Properties of Code.
... |
player1537-forks/spack | var/spack/repos/builtin/packages/py-or-tools/package.py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
class PyOrTools(CMakePackage):
"""This project hosts operations research tools developed at
Google and made avail... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.