repo stringlengths 2 99 | file stringlengths 13 225 | code stringlengths 0 18.3M | file_length int64 0 18.3M | avg_line_length float64 0 1.36M | max_line_length int64 0 4.26M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
scalene | scalene-master/scalene/replacement_poll_selector.py | import selectors
import sys
import threading
import time
from typing import List, Optional, Tuple
from scalene.scalene_profiler import Scalene
@Scalene.shim
def replacement_poll_selector(scalene: Scalene) -> None:
"""
A replacement for selectors.PollSelector that
periodically wakes up to accept signals
... | 1,299 | 32.333333 | 68 | py |
scalene | scalene-master/scalene/scalene_preload.py | import argparse
import contextlib
import os
import platform
import signal
import struct
import subprocess
import sys
from typing import Dict
import scalene
class ScalenePreload:
@staticmethod
def get_preload_environ(args: argparse.Namespace) -> Dict[str, str]:
env = dict()
# Set allocation s... | 4,311 | 34.933333 | 126 | py |
scalene | scalene-master/scalene/runningstats.py | # Translated from C++ by Emery Berger from https://www.johndcook.com/blog/skewness_kurtosis/
import math
class RunningStats:
"""Incrementally compute statistics"""
def __init__(self) -> None:
self.clear()
def __add__(self: "RunningStats", other: "RunningStats") -> "RunningStats":
s = Ru... | 2,060 | 26.851351 | 92 | py |
scalene | scalene-master/scalene/replacement_get_context.py | import multiprocessing
from typing import Any
from scalene.scalene_profiler import Scalene
@Scalene.shim
def replacement_mp_get_context(scalene: Scalene) -> None:
old_get_context = multiprocessing.get_context
def replacement_get_context(method: Any = None) -> Any:
return old_get_context("fork")
... | 375 | 24.066667 | 59 | py |
scalene | scalene-master/scalene/scalene_mapfile.py | import mmap
import os
import sys
from typing import Any, NewType, TextIO
if sys.platform != "win32":
from scalene import get_line_atomic # type: ignore
Filename = NewType("Filename", str)
class ScaleneMapFile:
# Things that need to be in sync with the C++ side
# (see include/sampleheap.hpp, include/s... | 2,457 | 28.614458 | 75 | py |
scalene | scalene-master/scalene/scalene_client_timer.py | from typing import Tuple
class ScaleneClientTimer:
"""
A class to wrap the logic of a timer running at
a different frequency than the Scalene timer. Can handle at most
one timer.
"""
seconds: float
interval: float
remaining_seconds: float
remaining_interval: float
delay_elapse... | 1,909 | 28.384615 | 75 | py |
scalene | scalene-master/scalene/scalene_output.py | import random
import sys
import tempfile
from collections import OrderedDict, defaultdict
from operator import itemgetter
from pathlib import Path
from typing import Any, Callable, Dict, List, Union
from rich import box
from rich.console import Console
from rich.markdown import Markdown
from rich.syntax import Syntax
... | 26,914 | 36.908451 | 192 | py |
scalene | scalene-master/scalene/scalene_statistics.py | import os
import pathlib
import pickle
import time
from collections import defaultdict
from typing import Any, DefaultDict, Dict, List, NewType, Set, Tuple, TypeVar
import cloudpickle
# from scalene.adaptive import Adaptive
from scalene.runningstats import RunningStats
Address = NewType("Address", str)
Filename = Ne... | 16,816 | 38.569412 | 79 | py |
scalene | scalene-master/scalene/adaptive.py | from typing import List
class Adaptive:
"""Implements sampling to achieve the effect of a uniform random sample."""
def __init__(self, size: int):
# size must be a power of two
self.max_samples = size
self.current_index = 0
self.sample_array = [0.0] * size
def __add__(sel... | 1,565 | 34.590909 | 79 | py |
scalene | scalene-master/scalene/profile.py | import argparse
import os
import sys
from textwrap import dedent
from scalene.scalene_signals import ScaleneSignals
usage = dedent("""Turn Scalene profiling on or off for a specific process.""")
parser = argparse.ArgumentParser(
prog="scalene.profile",
description=usage,
formatter_class=argparse.RawTextH... | 1,130 | 28.763158 | 78 | py |
scalene | scalene-master/scalene/scalene_json.py | import copy
import linecache
import random
import re
from collections import OrderedDict, defaultdict
from operator import itemgetter
from pathlib import Path
from typing import Any, Callable, Dict, List
from scalene.scalene_leak_analysis import ScaleneLeakAnalysis
from scalene.scalene_statistics import Filename, Line... | 15,219 | 38.025641 | 124 | py |
scalene | scalene-master/scalene/sparkline.py | import os
from typing import List, Optional, Tuple
"""Produces a sparkline, as in ▁▁▁▁▁▂▃▂▄▅▄▆█▆█▆
From https://rosettacode.org/wiki/Sparkline_in_unicode#Python
"""
def generate(
arr: List[float],
minimum: Optional[float] = None,
maximum: Optional[float] = None,
) -> Tuple[float, float, str]:
all_ze... | 2,204 | 25.890244 | 70 | py |
scalene | scalene-master/scalene/syntaxline.py | from typing import Any, Iterator, List
from rich.console import Console
from rich.segment import Segment
class SyntaxLine:
def __init__(self, segments: List[Segment]):
self.segments = segments
def __rich_console__(
self, console: Console, _options: Any
) -> Iterator[Segment]:
yie... | 342 | 21.866667 | 48 | py |
scalene | scalene-master/scalene/scalene_parseargs.py | import argparse
import contextlib
import sys
from textwrap import dedent
from typing import Any, List, NoReturn, Optional, Tuple
from scalene.scalene_arguments import ScaleneArguments
from scalene.scalene_version import scalene_version
class RichArgParser(argparse.ArgumentParser):
def __init__(self, *args: Any, ... | 10,968 | 34.498382 | 139 | py |
scalene | scalene-master/scalene/scalene_magics.py | import contextlib
import sys
import textwrap
from typing import Any
with contextlib.suppress(Exception):
from IPython.core.magic import (
Magics,
line_cell_magic,
line_magic,
magics_class,
)
from scalene import scalene_profiler
from scalene.scalene_arguments import Sc... | 3,403 | 38.126437 | 200 | py |
scalene | scalene-master/scalene/replacement_pjoin.py | import multiprocessing
import os
import sys
import threading
import time
from scalene.scalene_profiler import Scalene
minor_version = sys.version_info.minor
@Scalene.shim
def replacement_pjoin(scalene: Scalene) -> None:
def replacement_process_join(self, timeout: float = -1) -> None: # type: ignore
"""... | 1,906 | 34.314815 | 84 | py |
scalene | scalene-master/scalene/scalene_leak_analysis.py | from typing import Any, List, OrderedDict
from scalene.scalene_statistics import Filename, LineNumber, ScaleneStatistics
class ScaleneLeakAnalysis:
# Only report potential leaks if the allocation velocity is above this threshold
growth_rate_threshold = 0.01
# Only report leaks whose likelihood is 1 minu... | 1,398 | 33.975 | 84 | py |
scalene | scalene-master/scalene/scalene_gpu.py | import contextlib
from typing import Tuple
import pynvml
class ScaleneGPU:
"""A wrapper around the nvidia device driver library (nvidia-ml-py)."""
def __init__(self) -> None:
self.__ngpus = 0
self.__has_gpu = False
self.__handle = []
with contextlib.suppress(Exception):
... | 1,708 | 33.877551 | 79 | py |
scalene | scalene-master/scalene/replacement_exit.py | import os
import sys
from scalene.scalene_profiler import Scalene
@Scalene.shim
def replacement_exit(scalene: Scalene) -> None:
"""
Shims out the unconditional exit with
the "neat exit" (which raises the SystemExit error and
allows Scalene to exit neatly)
"""
# Note: MyPy doesn't like this, b... | 434 | 24.588235 | 71 | py |
scalene | scalene-master/scalene/__init__.py | # Jupyter support
from scalene.scalene_magics import *
| 57 | 10.6 | 36 | py |
scalene | scalene-master/scalene/replacement_thread_join.py | import sys
import threading
import time
from typing import Optional
from scalene.scalene_profiler import Scalene
@Scalene.shim
def replacement_thread_join(scalene: Scalene) -> None:
orig_thread_join = threading.Thread.join
def thread_join_replacement(
self: threading.Thread, timeout: Optional[float]... | 1,054 | 31.96875 | 73 | py |
scalene | scalene-master/scalene/scalene_signals.py | import signal
import sys
from typing import List, Tuple
class ScaleneSignals:
def __init__(self) -> None:
self.start_profiling_signal = signal.SIGILL
self.set_timer_signals(True)
if sys.platform != "win32":
self.stop_profiling_signal = signal.SIGBUS
self.memcpy_sign... | 1,951 | 35.830189 | 88 | py |
scalene | scalene-master/scalene/scalene_profiler.py | """Scalene: a scripting-language aware profiler for Python.
https://github.com/plasma-umass/scalene
See the paper "docs/scalene-paper.pdf" in this repository for technical
details on an earlier version of Scalene's design; note that a
number of these details have changed.
by Emery Berger
http... | 69,267 | 37.482222 | 130 | py |
scalene | scalene-master/scalene/replacement_fork.py | import os
from scalene.scalene_profiler import Scalene
from scalene.scalene_signals import ScaleneSignals
@Scalene.shim
def replacement_fork(scalene: Scalene) -> None:
"""
Executes Scalene fork() handling.
Works just like os.register_at_fork(), but unlike that also provides the child PID.
"""
ori... | 629 | 22.333333 | 87 | py |
scalene | scalene-master/scalene/scalene_funcutils.py | import dis
import sys
from functools import lru_cache
from types import CodeType
from typing import FrozenSet
from scalene.scalene_statistics import ByteCodeIndex
class ScaleneFuncUtils:
"""Utility class to determine whether a bytecode corresponds to function calls."""
# We use these in is_call_function to ... | 1,174 | 30.756757 | 86 | py |
scalene | scalene-master/scalene/replacement_mp_lock.py | import multiprocessing.synchronize
import sys
import threading
from typing import Any
import _multiprocessing
from scalene.scalene_profiler import Scalene
# The _multiprocessing module is entirely undocumented-- the header of the
# acquire function is
# static PyObject * _multiprocessing_SemLock_acquire_impl(SemLoc... | 1,101 | 32.393939 | 115 | py |
scalene | scalene-master/scalene/scalene_apple_gpu.py | import platform
import re
import subprocess
from typing import Tuple
class ScaleneAppleGPU:
"""Wrapper class for Apple integrated GPU statistics."""
def __init__(self) -> None:
assert platform.system() == "Darwin"
self.cmd = (
'DYLD_INSERT_LIBRARIES="" ioreg -r -d 1 -w 0 -c "IOAcc... | 1,969 | 35.481481 | 98 | py |
scalene | scalene-master/scalene/scalene_sigqueue.py | import queue
import threading
from typing import Any, Generic, Optional, TypeVar
T = TypeVar("T")
class ScaleneSigQueue(Generic[T]):
def __init__(self, process: Any) -> None:
self.queue: queue.SimpleQueue[Optional[T]] = queue.SimpleQueue()
self.process = process
self.thread: Optional[thre... | 1,301 | 30 | 86 | py |
scalene | scalene-master/scalene/old/leak_analysis.py | import math
from typing import Any, List, Tuple
import numpy as np
from numpy.random import default_rng
rng = default_rng()
def zlog(x: float) -> float:
"""Redefine log so that if x is <= 0, log x is 0."""
if x <= 0:
return 0
else:
return math.log(x)
def xform(i: float, n: int) -> floa... | 5,533 | 29.240437 | 129 | py |
WasabiDataset | WasabiDataset-master/preprocessing.py | from time import time
import spacy as spacy
from gensim.models.phrases import Phraser, Phrases
from gensim.utils import simple_preprocess
def flatten_list(lst):
return [item for sublist in lst for item in sublist]
def lemmatization(spacy_nlp, texts, allowed_postags=['NOUN', 'ADJ', 'VERB', 'ADV']):
texts_ou... | 1,405 | 41.606061 | 149 | py |
muTable | muTable-main/src/main.py | import multiprocessing
from multiprocessing.managers import BaseManager
from mock_tap_receiver import start_tap_receiving
from calibration import ArucoBasedCalibration
from depth_calibration import DepthCalibration
from hand_location_detector import start_hand_tracking
from event_manager import start_receving_tap_event... | 3,613 | 37.446809 | 113 | py |
muTable | muTable-main/src/sound_event.py | from dataclasses import dataclass
@dataclass
class SoundEvent:
"""Data Class for Sound Event Object"""
intensity: float
locationX: float
locationY: float
@dataclass
class TapLocationEvent:
"""Data Class for Sound Event Object"""
intensity: float
locationX: float
locationY: float
| 315 | 17.588235 | 43 | py |
muTable | muTable-main/src/camera.py | import pyrealsense2 as rs
import numpy as np
import time
import multiprocessing
class Camera:
def __init__(self):
self.pipeline = rs.pipeline()
config = rs.config()
config.enable_stream(rs.stream.color, 640, 480, rs.format.bgr8, 30)
config.enable_stream(rs.stream.depth, 640, 480, ... | 2,537 | 31.961039 | 87 | py |
muTable | muTable-main/src/ble_tap_receiver.py | import asyncio
from typing import Any
from tap import *
import multiprocessing
from bleak import BleakClient, discover
import struct
class Connection:
client: BleakClient = None
def __init__(
self,
loop: asyncio.AbstractEventLoop,
read_characteristic: str,
tap_... | 4,658 | 32.76087 | 105 | py |
muTable | muTable-main/src/event_manager.py | from sound_event import SoundEvent
from instruments.drums.drums import Drums
import time
def play_predefined_sound(width, height, projectionData):
drums = Drums(width, height)
pieces = drums.pieces
highlighed_images = drums.get_highlighted_images()
time_delay = 0.35
intensity = 1.8
for num_re... | 2,026 | 46.139535 | 117 | py |
muTable | muTable-main/src/utils.py | import numpy as np
from cv2 import aruco
def get_aruco_image(width, height):
image_size = (height, width)
aruco_dict = aruco.Dictionary_get(aruco.DICT_4X4_50)
aruco_image = np.ones(image_size, dtype=np.uint8) * 255
n = 9
for i in range(0, n):
row = i // 3
col = i % 3
img =... | 591 | 30.157895 | 67 | py |
muTable | muTable-main/src/depth_calibration.py | import numpy as np
from camera import Camera
class DepthCalibration:
def __init__(self):
# TODO: Camera object should be global
self.camera = Camera()
def start_calibrating(self, max_tries=60):
try_count = 0
sum_projection_depths = 0.0
while try_count < max_tries:
... | 780 | 30.24 | 82 | py |
muTable | muTable-main/src/calibration.py | import numpy as np
import cv2
from cv2 import aruco
import time
from camera import Camera
class ArucoBasedCalibration:
def __init__(self, aruco_image, aruco_dict):
# TODO: Camera object should be global
self.camera = Camera()
self.aruco_dict = aruco_dict
self.count_threshold = 6
... | 1,889 | 39.212766 | 123 | py |
muTable | muTable-main/src/mock_tap_receiver.py | import time
from tap import *
class MockTapReceiver:
def __init__(self, tap_sender_pipe_connection):
print("Initialize Bluetooth and all")
self.tap_sender_pipe_connection = tap_sender_pipe_connection
def start_receiving(self):
print("Start Receiving Tap Events")
while 1:
... | 606 | 26.590909 | 93 | py |
muTable | muTable-main/src/projection.py | import pyglet
from pyglet.canvas import Display
import cv2
class Projection:
def __init__(self, img, channels="RGBA"):
self.pic = pyglet.image.ImageData(img.shape[1], img.shape[0], channels, img.tobytes(),
-1 * img.shape[1] * len(channels))
def update_pic(se... | 931 | 26.411765 | 94 | py |
muTable | muTable-main/src/hand_location_detector.py | import time
import pyrealsense2 as rs
import numpy as np
import cv2
import mediapipe as mp
from sound_event import TapLocationEvent
from camera import Camera
from tap import *
class HandLocationDetector:
def __init__(self, calibratrion_matrix, surface_depth, tap_receiver_conn, tap_location_sender_conn):
... | 5,435 | 51.269231 | 154 | py |
muTable | muTable-main/src/tap.py | from dataclasses import dataclass
from enum import Enum
class Hand(Enum):
LEFT = 1
RIGHT = 2
@dataclass
class Tap:
"""Data Class for Tap Object"""
hand: Hand
intensity: float
checkHandLocation: bool
| 227 | 13.25 | 35 | py |
muTable | muTable-main/src/__init__.py | 0 | 0 | 0 | py | |
muTable | muTable-main/src/instruments/circle.py | import math
class Circle:
def __init__(self, center=(0, 0), radius=10):
self.center = center
self.radius = radius
def is_point_inside(self, point):
assert len(point) == 2
distance_from_center = math.sqrt(
math.pow(point[0] - self.center[0], 2) + math.pow(point[1] ... | 392 | 25.2 | 92 | py |
muTable | muTable-main/src/instruments/rectangle.py | import math
class Rectangle:
def __init__(self, topLeft=(0, 0), bottomRight=(0, 0)):
self.topLeft = topLeft
self.bottomRight = bottomRight
def is_point_inside(self, point):
assert len(point) == 2
return (point[0] > self.topLeft[0]) and (point[0] < self.bottomRight[0]) and (po... | 382 | 30.916667 | 150 | py |
muTable | muTable-main/src/instruments/__init__.py | 0 | 0 | 0 | py | |
muTable | muTable-main/src/instruments/concentric_circle.py | import math
class ConcentricCircle:
def __init__(self, center=(0, 0), radius=10, thickness=10):
self.center = center
self.radius1 = radius
self.radius2 = radius + thickness
self.thickness = thickness
def is_point_inside(self, point):
assert len(point) == 2
dis... | 539 | 30.764706 | 94 | py |
muTable | muTable-main/src/instruments/drums/ui.py | import cv2
import numpy as np
from instruments.rectangle import Rectangle
class UI:
def __init__(self, width=1920, height=1080, space_for_ui=0.15):
self.height = height
self.width = width
self.space_for_ui = space_for_ui
self.pieces = self.get_ui_pieces(width, height, space_for_ui... | 1,436 | 41.264706 | 233 | py |
muTable | muTable-main/src/instruments/drums/drums.py | import cv2
import numpy as np
from dataclasses import dataclass
from ..circle import Circle
from sound_event import SoundEvent
import soundfile as sf
from .ui import UI
import pathlib
import time
from _thread import *
def update_pair_pics(projectorData, firstPic, secondPic):
projectorData.update_pic(firstPic, "RG... | 5,373 | 40.022901 | 122 | py |
muTable | muTable-main/src/instruments/drums/__init__.py | 0 | 0 | 0 | py | |
muTable | muTable-main/experiments/BLEPython.py | import logging
import asyncio
import platform
import ast
import time
from bleak import BleakClient
from bleak import BleakScanner
from bleak import discover
import struct
import numpy as np
import scipy
from numpy import mean
BLE_UUID_TEST_SERVICE = "9A48ECBA-2E92-082F-C079-9E75AAE428B1"
BLE_UUID_AMPLITUD... | 2,427 | 26.590909 | 97 | py |
muTable | muTable-main/experiments/simpleAudioTest.py | import numpy as np
import simpleaudio as sa
frequency = 1000 # Our played note will be 440 Hz
fs = 44100 # 44100 samples per second
seconds = 10 # Note duration of 3 seconds
# Generate array with seconds*sample_rate steps, ranging between 0 and seconds
t = np.linspace(0, seconds, seconds * fs, False)
# Generate a... | 661 | 26.583333 | 78 | py |
XFL | XFL-master/python/xfl.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 2,770 | 35.460526 | 94 | py |
XFL | XFL-master/python/scheduler_run.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 6,575 | 44.351724 | 131 | py |
XFL | XFL-master/python/client.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 3,692 | 33.839623 | 83 | py |
XFL | XFL-master/python/__init__.py | 0 | 0 | 0 | py | |
XFL | XFL-master/python/trainer_run.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 4,189 | 34.811966 | 94 | py |
XFL | XFL-master/python/service/fed_node.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 7,810 | 39.682292 | 109 | py |
XFL | XFL-master/python/service/scheduler.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 17,385 | 46.632877 | 140 | py |
XFL | XFL-master/python/service/fed_config.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 8,244 | 35.973094 | 127 | py |
XFL | XFL-master/python/service/fed_control.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 4,187 | 36.72973 | 109 | py |
XFL | XFL-master/python/service/__init__.py | 0 | 0 | 0 | py | |
XFL | XFL-master/python/service/fed_job.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 1,715 | 30.2 | 137 | py |
XFL | XFL-master/python/service/trainer.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 2,460 | 38.063492 | 100 | py |
XFL | XFL-master/python/common/xoperator.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 1,985 | 35.777778 | 115 | py |
XFL | XFL-master/python/common/__init__.py | 0 | 0 | 0 | py | |
XFL | XFL-master/python/common/xregister.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 2,152 | 34.883333 | 102 | py |
XFL | XFL-master/python/common/evaluation/metrics.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 20,407 | 37.946565 | 115 | py |
XFL | XFL-master/python/common/crypto/__init__.py | 0 | 0 | 0 | py | |
XFL | XFL-master/python/common/crypto/key_agreement/contants.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 9,020 | 59.543624 | 74 | py |
XFL | XFL-master/python/common/crypto/key_agreement/__init__.py | 0 | 0 | 0 | py | |
XFL | XFL-master/python/common/crypto/key_agreement/diffie_hellman.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 3,484 | 39.523256 | 96 | py |
XFL | XFL-master/python/common/crypto/paillier/context.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 6,659 | 33.153846 | 135 | py |
XFL | XFL-master/python/common/crypto/paillier/utils.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 2,228 | 21.979381 | 74 | py |
XFL | XFL-master/python/common/crypto/paillier/encoder.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 2,467 | 36.969231 | 123 | py |
XFL | XFL-master/python/common/crypto/paillier/paillier.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 17,105 | 38.597222 | 122 | py |
XFL | XFL-master/python/common/crypto/paillier/__init__.py | 0 | 0 | 0 | py | |
XFL | XFL-master/python/common/crypto/one_time_pad/one_time_add.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 7,887 | 40.298429 | 128 | py |
XFL | XFL-master/python/common/crypto/one_time_pad/component.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 7,684 | 33.931818 | 125 | py |
XFL | XFL-master/python/common/crypto/one_time_pad/__init__.py | 0 | 0 | 0 | py | |
XFL | XFL-master/python/common/crypto/ckks/utils.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 1,467 | 28.959184 | 109 | py |
XFL | XFL-master/python/common/crypto/ckks/__init__.py | 0 | 0 | 0 | py | |
XFL | XFL-master/python/common/crypto/csprng/drbg.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 2,975 | 37.153846 | 125 | py |
XFL | XFL-master/python/common/crypto/csprng/hmac_drbg.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 7,678 | 40.961749 | 156 | py |
XFL | XFL-master/python/common/crypto/csprng/__init__.py | 0 | 0 | 0 | py | |
XFL | XFL-master/python/common/crypto/csprng/drbg_base.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 1,919 | 34.555556 | 113 | py |
XFL | XFL-master/python/common/dataset/h_kmeans.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 2,592 | 32.675325 | 75 | py |
XFL | XFL-master/python/common/dataset/azpro_data.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 5,809 | 38.52381 | 110 | py |
XFL | XFL-master/python/common/dataset/hiv.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 5,661 | 37.256757 | 110 | py |
XFL | XFL-master/python/common/dataset/sst2.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 4,360 | 36.594828 | 105 | py |
XFL | XFL-master/python/common/dataset/breast_cancer_wisconsin.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 7,461 | 40.921348 | 108 | py |
XFL | XFL-master/python/common/dataset/cifar.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 12,098 | 40.434932 | 182 | py |
XFL | XFL-master/python/common/dataset/boston_housing_price.py | # Copyright 2022 The XFL Authors. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 5,887 | 39.054422 | 110 | py |
XFL | XFL-master/python/common/communication/__init__.py | 0 | 0 | 0 | py | |
XFL | XFL-master/python/common/communication/gRPC/__init__.py | 0 | 0 | 0 | py | |
XFL | XFL-master/python/common/communication/gRPC/python/checker_pb2_grpc.py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
| 159 | 31 | 75 | py |
XFL | XFL-master/python/common/communication/gRPC/python/status_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: status.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
fro... | 3,792 | 46.4125 | 973 | py |
XFL | XFL-master/python/common/communication/gRPC/python/control_pb2_grpc.py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
| 159 | 31 | 75 | py |
XFL | XFL-master/python/common/communication/gRPC/python/status_pb2_grpc.py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
| 159 | 31 | 75 | py |
XFL | XFL-master/python/common/communication/gRPC/python/scheduler_pb2_grpc.py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import checker_pb2 as checker__pb2
import commu_pb2 as commu__pb2
import control_pb2 as control__pb2
import scheduler_pb2 as scheduler__pb2
import status_pb2 as ... | 13,217 | 42.768212 | 102 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.