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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
google-deepmind/penzai | https://github.com/google-deepmind/penzai | null | null | null | null | 1,881 | null | null | apache-2.0 | null | null | null | null | null | null | null | penzai/deprecated/v1/nn/standardization.py | null | null | null | null | null | null | Python | 2026-05-04T02:50:56.267136 | # Copyright 2024 The Penzai Authors.
#
# 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 or agreed to in w... |
google-deepmind/penzai | https://github.com/google-deepmind/penzai | null | null | null | null | 1,881 | null | null | apache-2.0 | null | null | null | null | null | null | null | penzai/deprecated/v1/nn/parameters.py | null | null | null | null | null | null | Python | 2026-05-04T02:50:56.267841 | # Copyright 2024 The Penzai Authors.
#
# 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 or agreed to in w... |
google-deepmind/penzai | https://github.com/google-deepmind/penzai | null | null | null | null | 1,881 | null | null | apache-2.0 | null | null | null | null | null | null | null | penzai/deprecated/v1/example_models/gemma/simple_decoding_loop.py | null | null | null | null | null | null | Python | 2026-05-04T02:50:58.636065 | # Copyright 2024 The Penzai Authors.
#
# 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 or agreed to in w... |
google-deepmind/penzai | https://github.com/google-deepmind/penzai | null | null | null | null | 1,881 | null | null | apache-2.0 | null | null | null | null | null | null | null | penzai/deprecated/v1/example_models/gemma/sampling_mode.py | null | null | null | null | null | null | Python | 2026-05-04T02:50:58.783322 | # Copyright 2024 The Penzai Authors.
#
# 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 or agreed to in w... |
hexiangnan/neural_collaborative_filtering | https://github.com/hexiangnan/neural_collaborative_filtering | null | null | null | null | 1,880 | null | null | apache-2.0 | null | null | null | null | null | null | null | Dataset.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:00.942027 | '''
Created on Aug 8, 2016
Processing datasets.
@author: Xiangnan He (xiangnanhe@gmail.com)
'''
import scipy.sparse as sp
import numpy as np
class Dataset(object):
'''
classdocs
'''
def __init__(self, path):
'''
Constructor
'''
self.trainMatrix = self.load_rating_file... |
hexiangnan/neural_collaborative_filtering | https://github.com/hexiangnan/neural_collaborative_filtering | null | null | null | null | 1,880 | null | null | apache-2.0 | null | null | null | null | null | null | null | NeuMF.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:00.942922 | '''
Created on Aug 9, 2016
Keras Implementation of Neural Matrix Factorization (NeuMF) recommender model in:
He Xiangnan et al. Neural Collaborative Filtering. In WWW 2017.
@author: Xiangnan He (xiangnanhe@gmail.com)
'''
import numpy as np
import theano
import theano.tensor as T
import keras
from keras import backe... |
hexiangnan/neural_collaborative_filtering | https://github.com/hexiangnan/neural_collaborative_filtering | null | null | null | null | 1,880 | null | null | apache-2.0 | null | null | null | null | null | null | null | evaluate.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:00.965666 | '''
Created on Apr 15, 2016
Evaluate the performance of Top-K recommendation:
Protocol: leave-1-out evaluation
Measures: Hit Ratio and NDCG
(more details are in: Xiangnan He, et al. Fast Matrix Factorization for Online Recommendation with Implicit Feedback. SIGIR'16)
@author: hexiangnan
'''
import math
imp... |
hexiangnan/neural_collaborative_filtering | https://github.com/hexiangnan/neural_collaborative_filtering | null | null | null | null | 1,880 | null | null | apache-2.0 | null | null | null | null | null | null | null | GMF.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:00.967388 | '''
Created on Aug 9, 2016
Keras Implementation of Generalized Matrix Factorization (GMF) recommender model in:
He Xiangnan et al. Neural Collaborative Filtering. In WWW 2017.
@author: Xiangnan He (xiangnanhe@gmail.com)
'''
import numpy as np
import theano.tensor as T
import keras
from keras import backend as K
fro... |
hexiangnan/neural_collaborative_filtering | https://github.com/hexiangnan/neural_collaborative_filtering | null | null | null | null | 1,880 | null | null | apache-2.0 | null | null | null | null | null | null | null | MLP.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:00.998262 | '''
Created on Aug 9, 2016
Keras Implementation of Multi-Layer Perceptron (GMF) recommender model in:
He Xiangnan et al. Neural Collaborative Filtering. In WWW 2017.
@author: Xiangnan He (xiangnanhe@gmail.com)
'''
import numpy as np
import theano
import theano.tensor as T
import keras
from keras import backend as ... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/airpods_max.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:03.912766 |
# Description: Apple proximity pairing notification spoofing
# Model: AirPods Max
# Author: ECTO-1A & SAY-10
# Github: https://github.com/ECTO-1A
# Based on the previous work of chipik / _hexway
import random
import hashlib
import argparse
from time import sleep
import bluetooth._bluetooth as bluez
from utils.blue... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/airpods.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:03.930066 |
# Description: Apple proximity pairing notification spoofing
# Model: Original AirPods
# Author: ECTO-1A & SAY-10
# Github: https://github.com/ECTO-1A
# Based on the previous work of chipik / _hexway
import random
import hashlib
import argparse
from time import sleep
import bluetooth._bluetooth as bluez
from utils... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/appletv_keyboard.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:03.953868 |
# Description: Apple proximity pairing notification spoofing
# Message: AppleTV Keyboard Password Autofill Prompt
# Author: ECTO-1A & SAY-10
# Github: https://github.com/ECTO-1A
# Based on the previous work of chipik / _hexway
import random
import hashlib
import argparse
from time import sleep
import bluetooth._bl... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/appletv_audiosync.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:03.955766 |
# Description: Apple proximity pairing notification spoofing
# Message: AppleTV Wireless Audio Sync
# Author: ECTO-1A & SAY-10
# Github: https://github.com/ECTO-1A
# Based on the previous work of chipik / _hexway
import argparse
import bluetooth._bluetooth as bluez
from time import sleep
from utils.bluetooth_utils... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/appletv_homekit.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:03.962071 |
# Description: Apple proximity pairing notification spoofing
# Message: Set Up Airplay and Homekit on Apple TV
# Author: ECTO-1A & SAY-10
# Github: https://github.com/ECTO-1A
# Based on the previous work of chipik / _hexway
import random
import hashlib
import argparse
from time import sleep
import bluetooth._bluet... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/appletv_newuser.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:03.975586 |
# Description: Apple proximity pairing notification spoofing
# Message: AppleTV Add New User
# Author: ECTO-1A & SAY-10
# Github: https://github.com/ECTO-1A
# Based on the previous work of chipik / _hexway
import random
import hashlib
import argparse
from time import sleep
import bluetooth._bluetooth as bluez
from... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/appletv_network.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:03.986328 |
# Description: Apple proximity pairing notification spoofing
# Message: Connecting... Apple Tv requires additional information to connect to this network
# Author: ECTO-1A & SAY-10
# Github: https://github.com/ECTO-1A
# Based on the previous work of chipik / _hexway
import random
import hashlib
import argparse
fro... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/appletv_appleid.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:03.987573 |
# Description: Apple proximity pairing notification spoofing
# Message: Use Your Apple ID on AppleTV (message from DEF CON 31)
# Author: ECTO-1A & SAY-10
# Github: https://github.com/ECTO-1A
# Based on the previous work of chipik / _hexway
import random
import hashlib
import argparse
from time import sleep
import ... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/beatssolopro.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:03.989197 |
# Description: Apple proximity pairing notification spoofing
# Model: Beats Solo Pro
# Author: ECTO-1A & SAY-10
# Github: https://github.com/ECTO-1A
# Based on the previous work of chipik / _hexway
import random
import hashlib
import argparse
from time import sleep
import bluetooth._bluetooth as bluez
from utils.b... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/airpods_pro.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:04.035348 |
# Description: Apple proximity pairing notification spoofing
# Model: AirPods Pro
# Author: ECTO-1A & SAY-10
# Github: https://github.com/ECTO-1A
# Based on the previous work of chipik / _hexway
import random
import hashlib
import argparse
from time import sleep
import bluetooth._bluetooth as bluez
from utils.blue... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/setupnewphone.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:04.691188 |
# Description: Apple proximity pairing notification spoofing
# Message: Setup New Phone
# Author: ECTO-1A & SAY-10
# Github: https://github.com/ECTO-1A
# Based on the previous work of chipik / _hexway
import random
import hashlib
import argparse
from time import sleep
import bluetooth._bluetooth as bluez
from util... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Cli_Version/Standalone Pair New Device Notifications/airpods_max.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:04.799249 | import bluetooth
import time
import random
def advertise():
print("Starting AirPods Max advertising")
# Combine all the data fields
complete_data = data1 + left_speaker + right_speaker + case + data2
ble.gap_advertise(interval, adv_data=bytes(complete_data))
# Initialize BLE
print("Initializing BLE...... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/transfernumber.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:04.803018 |
# Description: Apple proximity pairing notification spoofing
# Message: Transfer Number
# Author: ECTO-1A & SAY-10
# Github: https://github.com/ECTO-1A
# Based on the previous work of chipik / _hexway
import random
import hashlib
import argparse
from time import sleep
import bluetooth._bluetooth as bluez
from util... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/tvcolorbalance.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:04.805659 |
# Description: Apple proximity pairing notification spoofing
# Message: TV Color Balance
# Author: ECTO-1A & SAY-10
# Github: https://github.com/ECTO-1A
# Based on the previous work of chipik / _hexway
import random
import hashlib
import argparse
from time import sleep
import bluetooth._bluetooth as bluez
from uti... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/beatsx.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:04.821498 |
# Description: Apple proximity pairing notification spoofing
# Model: BeatsX
# Author: ECTO-1A & SAY-10
# Github: https://github.com/ECTO-1A
# Based on the previous work of chipik / _hexway
import random
import hashlib
import argparse
from time import sleep
import bluetooth._bluetooth as bluez
from utils.bluetooth... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/uart_listener.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:04.930257 | import serial
import subprocess
# Define the UART port and baud rate
uart_port = '/dev/ttyS0' # Use '/dev/ttyAMA0' on older Raspberry Pi models
baud_rate = 115200
# Open the UART port
ser = serial.Serial(uart_port, baud_rate)
while True:
# Read data from UART
data = ser.readline().decode('utf-8').strip()
... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Cli_Version/Standalone Pair New Device Notifications/airpods_pro.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:05.208312 | import bluetooth
import time
import random
def advertise():
print("Starting AirPods Pro advertising")
# Combine all the data fields
complete_data = data1 + left_speaker + right_speaker + case + data2
ble.gap_advertise(interval, adv_data=bytes(complete_data))
# Initialize BLE
print("Initializing BLE...... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Cli_Version/Standalone Pair New Device Notifications/airpods.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:05.314937 | import bluetooth
import time
import random
def advertise():
print("Starting AirPod advertising")
# Combine all the data fields
complete_data = data1 + left_speaker + right_speaker + case + data2
ble.gap_advertise(interval, adv_data=bytes(complete_data))
# Initialize BLE
print("Initializing BLE...")
bl... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/homepod.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:05.317642 |
# Description: Apple proximity pairing notification spoofing
# Message: HomePod Setup
# Author: ECTO-1A & SAY-10
# Github: https://github.com/ECTO-1A
# Based on the previous work of chipik / _hexway
import random
import hashlib
import argparse
from time import sleep
import bluetooth._bluetooth as bluez
from utils.... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Cli_Version/Standalone Pair New Device Notifications/appletv_appleid.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:05.345561 | import bluetooth
import time
def advertise():
print("Starting AppleTV Pairing Notification Advertising")
# Use the single data1 field
ble.gap_advertise(interval, adv_data=bytes(data1))
# Initialize BLE
print("Initializing BLE...")
ble = bluetooth.BLE()
ble.active(True)
if ble.active():
print("BLE is ... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Cli_Version/Standalone Pair New Device Notifications/appletv_homekit.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:05.347119 | import bluetooth
import time
def advertise():
print("Starting Set Up Airplay and Homekit on Apple TV Advertising")
ble.gap_advertise(interval, adv_data=bytes(data1))
# Initialize BLE
print("Initializing BLE...")
ble = bluetooth.BLE()
ble.active(True)
if ble.active():
print("BLE is active")
else:
prin... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Cli_Version/Standalone Pair New Device Notifications/appletv_audiosync.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:05.348621 | import bluetooth
import time
def advertise():
print("Starting AppleTV Wireless Audio Sync Advertising")
# Use the single data1 field
ble.gap_advertise(interval, adv_data=bytes(data1))
# Initialize BLE
print("Initializing BLE...")
ble = bluetooth.BLE()
ble.active(True)
if ble.active():
print("BLE is a... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/powerbeats.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:05.795295 |
# Description: Apple proximity pairing notification spoofing
# Model: PowerBeats
# Author: ECTO-1A & SAY-10
# Github: https://github.com/ECTO-1A
# Based on the previous work of chipik / _hexway
import random
import hashlib
import argparse
from time import sleep
import bluetooth._bluetooth as bluez
from utils.bluet... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Cli_Version/Standalone Pair New Device Notifications/appletv_keyboard.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:05.900745 | import bluetooth
import time
def advertise():
print("Starting AppleTV Keyboard Password Autofill Prompt Advertising")
ble.gap_advertise(interval, adv_data=bytes(data1))
# Initialize BLE
print("Initializing BLE...")
ble = bluetooth.BLE()
ble.active(True)
if ble.active():
print("BLE is active")
else:
p... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Cli_Version/Standalone Pair New Device Notifications/appletv_network.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:05.920475 | import bluetooth
import time
def advertise():
print("Starting 'Connecting... Apple Tv requires additional information to connect to this network' Advertising")
# Use the single data1 field for advertising
ble.gap_advertise(interval, adv_data=bytes(data1))
# Initialize BLE
print("Initializing BLE...")
ble ... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Cli_Version/Standalone Pair New Device Notifications/power_beats.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:06.096923 | import bluetooth
import time
import random
def advertise():
print("Starting PowerBeats advertising")
# Combine all the data fields
complete_data = data1 + left_speaker + right_speaker + case + data2
ble.gap_advertise(interval, adv_data=bytes(complete_data))
# Initialize BLE
print("Initializing BLE..."... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Cli_Version/Standalone Pair New Device Notifications/setupnewphone.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:06.230208 | import bluetooth
import time
def advertise():
print("Starting 'Setup New Phone' Advertising")
ble.gap_advertise(interval, adv_data=bytes(data1))
# Initialize BLE
ble = bluetooth.BLE()
ble.active(True)
# Check if BLE is active
if ble.active():
print("BLE is active")
else:
print("Failed to activate BLE... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pair New Device Notifications/utils/bluetooth_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:06.265294 | # -*- coding: utf-8 -*-
"""
Module containing some bluetooth utility functions (linux only).
It either uses HCI commands using PyBluez, or does ioctl calls like it's
done in Bluez tools such as hciconfig.
Main functions:
- toggle_device : enable or disable a bluetooth device
- set_scan : set scan type on a device... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Cli_Version/Standalone Pair New Device Notifications/transfernumber.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:06.336584 | import bluetooth
import time
def advertise():
print("Starting 'Transfer Number' Advertising")
ble.gap_advertise(interval, adv_data=bytes(data1))
# Initialize BLE
ble = bluetooth.BLE()
ble.active(True)
# Check if BLE is active
if ble.active():
print("BLE is active")
else:
print("Failed to activate BLE... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Cli_Version/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:06.441681 | # Raspberry Pico Pi W - Micropython implementation of Apple Juice
# Author: Manu
# Github: https://github.com/0day1day
# Based on the previous work of chipik / _hexway / ECTO-1A & SAY-10
import bluetooth
import time
# Initialize BLE
ble = bluetooth.BLE()
ble.active(True)
if ble.active():
print("BLE is active")... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Cli_Version/Standalone Pair New Device Notifications/tvcolorbalance.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:06.563362 | import bluetooth
import time
def advertise():
print("Starting 'TV Color Balance' Advertising")
ble.gap_advertise(interval, adv_data=bytes(data1))
# Initialize BLE
ble = bluetooth.BLE()
ble.active(True)
# Check if BLE is active
if ble.active():
print("BLE is active")
else:
print("Failed to activate BL... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Web_Version/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:06.620150 | import uselect as select
import usocket as socket
import ujson as json
import network
import bluetooth
import time
from machine import Pin
from utime import sleep
led = machine.Pin('LED', machine.Pin.OUT)
############################################### ACCESS POINT MODE CONFIGURATION ################################... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | app.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:06.869783 | # Author: ECTO-1A & SAY-10
# Github: https://github.com/ECTO-1A
# Based on the previous work of chipik / _hexway
import random
import argparse
import bluetooth._bluetooth as bluez
from time import sleep
from utils.bluetooth_utils import toggle_device, start_le_advertising, stop_le_advertising
# Add a docstring to des... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Cli_Version/Standalone Pair New Device Notifications/appletv_newuser.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:06.899863 | import bluetooth
import time
import random
def advertise():
print("Starting AppleTV Add New User advertising")
ble.gap_advertise(interval, adv_data=bt_data)
# Initialize BLE
ble = bluetooth.BLE()
ble.active(True)
# Parameters
interval = 200
# Create advertising payload
bt_data = bytes([0x16, 0xff, 0x4c, 0x0... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | utils/ble_read_state.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:06.992329 | #!/usr/bin/env python3
# Author: Dmitry Chastuhin
# Twitter: https://twitter.com/_chipik
# web: https://hexway.io
# Twitter: https://twitter.com/_hexway
import random
import re
import sys
import time
import json
import curses
import hashlib
import urllib3
import sqlite3
import requests
import argparse
import npyscreen... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | utils/bluetooth_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:07.019106 | # -*- coding: utf-8 -*-
"""
Module containing some bluetooth utility functions (linux only).
It either uses HCI commands using PyBluez, or does ioctl calls like it's
done in Bluez tools such as hciconfig.
Main functions:
- toggle_device : enable or disable a bluetooth device
- set_scan : set scan type on a device... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Cli_Version/Standalone Pair New Device Notifications/homepod.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:11.202211 | import bluetooth
import time
def advertise():
print("Starting 'HomePod Setup' Advertising")
# Use the single data1 field for advertising
ble.gap_advertise(interval, adv_data=bytes(data1))
# Initialize BLE
print("Initializing BLE...")
ble = bluetooth.BLE()
ble.active(True)
if ble.active():
print("BLE ... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Cli_Version/Standalone Pair New Device Notifications/beats_x.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:11.203081 | import bluetooth
import time
import random
def advertise():
print("Starting BeatsX advertising")
# Combine all the data fields
complete_data = data1 + left_speaker + right_speaker + case + data2
ble.gap_advertise(interval, adv_data=bytes(complete_data))
# Initialize BLE
print("Initializing BLE...")
bl... |
ECTO-1A/AppleJuice | https://github.com/ECTO-1A/AppleJuice | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Pico_Pi_W_MicroPython/Cli_Version/Standalone Pair New Device Notifications/beatsolo_pro.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:11.203614 | import bluetooth
import time
import random
def advertise():
print("Starting Beats Solo Pro advertising")
# Combine all the data fields
complete_data = data1 + left_speaker + right_speaker + case + data2
ble.gap_advertise(interval, adv_data=bytes(complete_data))
# Initialize BLE
print("Initializing BLE... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/evaluation/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.242485 | '''
@Description:
@Author: shenlei
@Date: 2023-12-18 12:55:55
@LastEditTime: 2023-12-28 18:20:31
@LastEditors: shenlei
'''
from .c_mteb import *
|
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/models/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.243841 | '''
@Description:
@Author: shenlei
@Date: 2023-11-29 12:34:35
@LastEditTime: 2024-01-16 00:50:14
@LastEditors: shenlei
'''
from .embedding import EmbeddingModel
from .reranker import RerankerModel
__all__ = [
'EmbeddingModel', 'RerankerModel'
] |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/models/reranker.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.246117 | '''
@Description:
@Author: shenlei
@Date: 2023-11-28 14:04:27
@LastEditTime: 2024-05-13 17:04:41
@LastEditors: shenlei
'''
import logging
import torch
import numpy as np
from tqdm import tqdm
from typing import List, Dict, Tuple, Type, Union
from copy import deepcopy
from .utils import reranker_tokenize_preproc
fr... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/evaluation/c_mteb/Retrieval.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.248156 | from collections import defaultdict
from datasets import load_dataset, DatasetDict
from mteb import AbsTaskRetrieval
from mteb.tasks import load_retrieval_data
class CrosslingualRetrievalBooksEn2Zh(AbsTaskRetrieval):
@property
def description(self):
return {
'name': 'CrosslingualRetrievalB... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/evaluation/c_mteb/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.250431 | '''
@Description:
@Author: shenlei
@Date: 2023-12-18 12:34:25
@LastEditTime: 2023-12-27 13:00:25
@LastEditors: shenlei
'''
from .Reranking import *
from .Retrieval import *
from .yd_dres_model import YDDRESModel
from mteb import MTEB |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.251516 | '''
@Description:
@Author: shenlei
@Date: 2023-11-28 17:16:10
@LastEditTime: 2023-12-18 15:08:31
@LastEditors: shenlei
'''
from .models import * |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/evaluation/c_mteb/Reranking.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.252629 | import numpy as np
from mteb import RerankingEvaluator, AbsTaskReranking
from tqdm import tqdm
from BCEmbedding.utils import logger_wrapper
logger = logger_wrapper('evaluation.c_mteb.Reranking')
class ModChineseRerankingEvaluator(RerankingEvaluator):
"""
This class evaluates a SentenceTransformer model for t... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/models/embedding.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.258602 | '''
@Description:
@Author: shenlei
@Date: 2023-11-28 14:04:27
@LastEditTime: 2024-09-02 22:32:01
@LastEditors: Chengjie Guo i@guoch.xyz
'''
import logging
import torch
from tqdm import tqdm
from numpy import ndarray
from typing import List, Dict, Tuple, Type, Union
from transformers import AutoModel, AutoTokenizer
f... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/evaluation/c_mteb/yd_dres_model.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.260574 | '''
@Description:
@Author: shenlei
@Date: 2023-11-29 18:52:01
@LastEditTime: 2024-01-07 00:17:13
@LastEditors: shenlei
'''
from typing import cast, List, Dict, Union
import numpy as np
from torch import nn
from BCEmbedding import EmbeddingModel
from BCEmbedding.utils import logger_wrapper
logger = logger_wrapper('eva... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/models/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.261896 | '''
@Description:
@Author: shenlei
@Date: 2024-01-15 13:06:56
@LastEditTime: 2024-04-09 17:33:35
@LastEditors: shenlei
'''
from typing import List, Dict, Tuple, Type, Union
from copy import deepcopy
def reranker_tokenize_preproc(
query: str,
passages: List[str],
tokenizer=None,
max_length: int=512,
... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/tools/eval_rag/eval_llamaindex_reproduce.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.857279 | '''
@Description:
@Author: shenlei
@Date: 2023-12-26 16:24:57
@LastEditTime: 2024-03-19 09:59:46
@LastEditors: shenlei
'''
import os, json
import os.path as osp
import argparse
import pandas as pd
from llama_index import VectorStoreIndex, ServiceContext
from llama_index.schema import TextNode
# LLM
from llama_index.... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/tools/eval_mteb/eval_embedding_mteb.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.858600 | '''
@Description:
@Author: shenlei
@Date: 2023-11-29 17:21:19
@LastEditTime: 2024-01-07 00:19:52
@LastEditors: shenlei
'''
import argparse
import os
os.environ["TOKENIZERS_PARALLELISM"] = "false"
import os.path as osp
import random
from tqdm import tqdm
from BCEmbedding.evaluation import c_mteb, YDDRESModel
from BCE... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/tools/eval_mteb/eval_reranker_mteb.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.866304 | '''
@Description:
@Author: shenlei
@Date: 2023-11-29 17:21:15
@LastEditTime: 2024-01-02 14:12:59
@LastEditors: shenlei
'''
import argparse
import os
os.environ["TOKENIZERS_PARALLELISM"] = "false"
import os.path as osp
import random
from tqdm import tqdm
from BCEmbedding import RerankerModel
from BCEmbedding.evaluati... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/tools/eval_rag/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.880679 | '''
@Description:
@Author: shenlei
@Date: 2023-12-29 17:09:31
@LastEditTime: 2024-01-27 13:12:00
@LastEditors: shenlei
'''
import json
import os.path as osp
import pandas as pd
from typing import List
from llama_index import SimpleDirectoryReader
from llama_index.node_parser import SimpleNodeParser
from llama_index... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/tools/langchain/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.884361 | '''
@Description:
@Author: shenlei
@Date: 2024-01-15 23:11:48
@LastEditTime: 2024-01-16 00:26:57
@LastEditors: shenlei
'''
from .bce_rerank import BCERerank
|
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/tools/eval_rag/summarize_eval_results.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.885802 | '''
@Description:
@Author: shenlei
@Date: 2023-12-31 01:04:18
@LastEditTime: 2024-02-06 10:33:56
@LastEditors: shenlei
'''
import os, json, sys
import os.path as osp
import argparse
import pandas as pd
from collections import OrderedDict
from tqdm import tqdm
from BCEmbedding.utils import logger_wrapper
logger = logg... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/tools/eval_rag/eval_llamaindex_multiple_domains.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.887154 | '''
@Description:
@Author: shenlei
@Date: 2023-12-26 16:24:57
@LastEditTime: 2024-03-19 09:59:59
@LastEditors: shenlei
'''
import os, json, sys
import os.path as osp
import argparse
import pandas as pd
from llama_index import VectorStoreIndex, ServiceContext
from llama_index.schema import TextNode
# LLM
from llama_i... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/tools/eval_mteb/summarize_eval_results.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.888619 | import argparse
import json
import os
import os.path as osp
from collections import defaultdict
from BCEmbedding.evaluation import c_mteb
from BCEmbedding.utils import logger_wrapper, query_instruction_for_retrieval_dict
logger = logger_wrapper('evaluation.summarize_eval_results')
need_instruction_models = [model_nam... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/tools/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.906873 | '''
@Description:
@Author: shenlei
@Date: 2024-01-15 15:26:38
@LastEditTime: 2024-01-16 00:27:22
@LastEditors: shenlei
'''
|
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/tools/langchain/bce_rerank.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:13.908274 | '''
@Description:
@Author: shenlei
@Date: 2024-01-15 18:56:59
@LastEditTime: 2024-02-24 23:19:02
@LastEditors: shenlei
'''
from __future__ import annotations
from typing import Dict, Optional, Sequence, Any
from langchain_core.documents import Document
from langchain_core.pydantic_v1 import Extra, root_validator
fr... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/utils/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:15.102488 | '''
@Description:
@Author: shenlei
@Date: 2023-11-28 17:32:38
@LastEditTime: 2023-12-18 16:54:43
@LastEditors: shenlei
'''
from .logger import logger_wrapper
from .query_instructions import * |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Docs/RyzenAI/compile.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:15.103597 | import os
import sys
import json
import onnxruntime as ort
onnx_model_path = sys.argv[1]
model_name = os.path.splitext(os.path.basename(onnx_model_path))[0]
ctx_cache = model_name + "_ctx.onnx"
# Delete prexisting EP context cache model
if os.path.exists(ctx_cache):
print(f"INFO: EP context model {ctx_cache} alr... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/tools/llama_index/bce_rerank.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:15.104976 | '''
@Description:
@Author: shenlei
@Date: 2024-01-15 14:15:30
@LastEditTime: 2024-03-04 16:00:52
@LastEditors: shenlei
'''
from typing import Any, List, Optional
from pydantic.v1 import Field, PrivateAttr
from llama_index.callbacks import CBEventType, EventPayload
from llama_index.postprocessor.types import BaseNodeP... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/utils/logger.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:15.105547 | '''
@Description:
@Author: shenlei
@Date: 2023-11-28 17:29:01
@LastEditTime: 2023-12-28 18:09:24
@LastEditors: shenlei
'''
import logging
def logger_wrapper(name='BCEmbedding'):
logging.basicConfig(format='%(asctime)s - [%(levelname)s] -%(name)s->>> %(message)s', datefmt='%m/%d/%Y %H:%M:%S',
... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Docs/RyzenAI/test_perf_accuray.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:15.106180 | import sys
import numpy as np
import onnxruntime as ort
import torch
import pathlib
# eval
from typing import cast, List, Dict, Union
from collections import defaultdict
from typing import cast, List, Dict, Union
from mteb import MTEB
from mteb.tasks import SciFact, DuRetrieval
from transformers import AutoTokenizer
... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/utils/query_instructions.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:15.106839 | '''
@Description:
@Author: shenlei
@Date: 2023-12-18 16:54:50
@LastEditTime: 2024-01-07 00:22:50
@LastEditors: shenlei
'''
query_instruction_for_retrieval_dict = {
"BAAI/bge-large-en": "Represent this sentence for searching relevant passages: ",
"BAAI/bge-base-en": "Represent this sentence for searching relev... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Docs/RyzenAI/export_to_onnx.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:15.107294 | #!/usr/bin/env python3
import os
import argparse
import torch
from transformers import AutoModel, AutoTokenizer, AutoFeatureExtractor, AutoImageProcessor
from transformers.modeling_utils import PreTrainedModel
from PIL import Image
import numpy as np
def process_items(item_string):
# Split the string into individu... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | BCEmbedding/tools/llama_index/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:15.300851 | '''
@Description:
@Author: shenlei
@Date: 2024-01-15 23:12:14
@LastEditTime: 2024-01-16 00:27:06
@LastEditors: shenlei
'''
from .bce_rerank import BCERerank
|
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | Docs/RyzenAI/run_npu_only.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:15.863674 | # Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
import sys
import json
import os
import pathlib
import argparse
import numpy as np
import onnxruntime as ort
import onnx
parser = argparse.ArgumentParser(description="onnxruntime compile and run using python API")
parser.add_argument("--input_mod... |
netease-youdao/BCEmbedding | https://github.com/netease-youdao/BCEmbedding | null | null | null | null | 1,878 | null | null | apache-2.0 | null | null | null | null | null | null | null | setup.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:16.047949 | '''
@Description: A text embedding model and reranking model produced by YouDao Inc., which can be use for dense embedding retrieval and reranking in RAG workflow.
@Author: shenlei
@Date: 2023-11-28 17:53:45
@LastEditTime: 2024-05-13 17:05:00
@LastEditors: shenlei
'''
from setuptools import setup, find_packages
with o... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/SlowOnly/slowonly_kinetics400_se_rgb_r50_seg1_4x16_finetune.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:18.455940 | model = dict(
type='TSN3D',
backbone=dict(
type='ResNet_I3D',
pretrained='modelzoo://resnet50',
depth=50,
num_stages=4,
out_indices=[3],
frozen_stages=-1,
inflate_freq=(0, 0, 1, 1),
conv1_kernel_t=1,
conv1_stride_t=1,
pool1_kernel_t... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/SlowOnly/slowonly_kinetics400_se_rgb_r50_seg1_8x8_scratch.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:18.461174 | model = dict(
type='TSN3D',
backbone=dict(
type='ResNet_I3D',
pretrained=None,
depth=50,
num_stages=4,
out_indices=[3],
frozen_stages=-1,
inflate_freq=(0, 0, 1, 1),
conv1_kernel_t=1,
conv1_stride_t=1,
pool1_kernel_t=1,
pool1... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/I3D_RGB/i3d_kinetics400_3d_rgb_r50_c3d_inflate3x1x1_seg1_f32s2_video.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:18.480462 | # model settings
model = dict(
type='TSN3D',
backbone=dict(
type='ResNet_I3D',
pretrained='modelzoo://resnet50',
depth=50,
num_stages=4,
out_indices=[3],
frozen_stages=-1,
inflate_freq=((1,1,1), (1,0,1,0), (1,0,1,0,1,0), (0,1,0)),
inflate_style='3x... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/SlowOnly/slowonly_kinetics400_se_rgb_r50_seg1_4x16_scratch.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:18.511253 | model = dict(
type='TSN3D',
backbone=dict(
type='ResNet_I3D',
pretrained=None,
depth=50,
num_stages=4,
out_indices=[3],
frozen_stages=-1,
inflate_freq=(0, 0, 1, 1),
conv1_kernel_t=1,
conv1_stride_t=1,
pool1_kernel_t=1,
pool1... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/TSN/tsn_kinetics400_2d_rgb_r50_seg3_f1s1.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:18.512893 | model = dict(
type='TSN2D',
backbone=dict(
type='ResNet',
pretrained='modelzoo://resnet50',
depth=50,
out_indices=(3,),
bn_eval=False,
partial_bn=False),
spatial_temporal_module=dict(
type='SimpleSpatialModule',
spatial_type='avg',
spat... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/C3D/c3d_sports1m_3d_rgb_vgg_c3d_seg1_f16s1.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:18.519722 | # model settings
model = dict(
type='TSN3D',
backbone=dict(
type='C3D',
pretrained='https://open-mmlab.s3.ap-northeast-2.amazonaws.com/pretrain/third_party/c3d_caffe_sports1m_pretrain-c8182401.pth'),
spatial_temporal_module=dict(
type='SimpleSpatialTemporalModule',
spatial_ty... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/I3D_RGB/i3d_kinetics400_3d_rgb_r50_c3d_inflate3x1x1_seg1_f32s2.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:18.520725 | # model settings
model = dict(
type='TSN3D',
backbone=dict(
type='ResNet_I3D',
pretrained='modelzoo://resnet50',
depth=50,
num_stages=4,
out_indices=[3],
frozen_stages=-1,
inflate_freq=((1,1,1), (1,0,1,0), (1,0,1,0,1,0), (0,1,0)),
inflate_style='3x... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/SlowOnly/slowonly_kinetics400_se_rgb_r50_seg1_8x8_finetune.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:18.557489 |
model = dict(
type='TSN3D',
backbone=dict(
type='ResNet_I3D',
pretrained='modelzoo://resnet50',
depth=50,
num_stages=4,
out_indices=[3],
frozen_stages=-1,
inflate_freq=(0, 0, 1, 1),
conv1_kernel_t=1,
conv1_stride_t=1,
pool1_kernel_... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/TSN/ucf101/tsn_rgb_bninception.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:18.571240 | # model settings
model = dict(
type='TSN2D',
backbone=dict(
type='BNInception',
pretrained='open-mmlab://bninception_caffe',
bn_eval=False,
partial_bn=True),
spatial_temporal_module=dict(
type='SimpleSpatialModule',
spatial_type='avg',
spatial_size=7),... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/TSN/ucf101/tsn_flow_bninception.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:18.603392 | # model settings
model = dict(
type='TSN2D',
modality='Flow',
in_channels=10,
backbone=dict(
type='BNInception',
pretrained='open-mmlab://bninception_caffe',
bn_eval=False,
partial_bn=True),
spatial_temporal_module=dict(
type='SimpleSpatialModule',
spa... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/ava/ava_fast_rcnn_nl_r50_c4_1x_kinetics_pretrain_crop.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:18.995977 | # model settings
model = dict(
type='FastRCNN',
backbone=dict(
type='ResNet_I3D',
pretrained='open-mmlab://kin400/nl3d_r50_f32s2_k400',
pretrained2d=False,
depth=50,
num_stages=3,
spatial_strides=(1, 2, 2),
temporal_strides=(1, 1, 1),
dilations=(1,... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/hmdb51/tsn_rgb_bninception.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:19.063864 | # model settings
model = dict(
type='TSN2D',
backbone=dict(
type='BNInception',
pretrained='open-mmlab://bninception_caffe',
bn_eval=False,
partial_bn=True),
spatial_temporal_module=dict(
type='SimpleSpatialModule',
spatial_type='avg',
spatial_size=7),... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/thumos14/ssn_thumos14_rgb_bn_inception.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:19.069342 | # model settings
model = dict(
type='SSN2D',
backbone=dict(
type='BNInception',
pretrained='open-mmlab://bninception_caffe',
bn_eval=False,
partial_bn=True),
spatial_temporal_module=dict(
type='SimpleSpatialModule',
spatial_type='avg',
spatial_size=7),... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | data_tools/build_file_list.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:19.074565 | import argparse
import os.path as osp
import glob
from mmaction.datasets.utils import (parse_directory,
parse_hmdb51_splits,
parse_ucf101_splits,
parse_kinetics_splits,
bui... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | data_tools/build_rawframes.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:19.092214 | import argparse
import sys
import os
import os.path as osp
import glob
from pipes import quote
from multiprocessing import Pool, current_process
import mmcv
def dump_frames(vid_item):
full_path, vid_path, vid_id = vid_item
vid_name = vid_path.split('.')[0]
out_full_path = osp.join(args.out_dir, vid_name)... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | configs/hmdb51/tsn_flow_bninception.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:19.119373 | # model settings
model = dict(
type='TSN2D',
modality='Flow',
in_channels=10,
backbone=dict(
type='BNInception',
pretrained='open-mmlab://bninception_caffe',
bn_eval=False,
partial_bn=True),
spatial_temporal_module=dict(
type='SimpleSpatialModule',
spa... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/apis/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:19.120959 | from .env import init_dist, get_root_logger, set_random_seed
from .train import train_network
__all__ = [
'init_dist', 'get_root_logger', 'set_random_seed',
'train_network',
]
|
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/apis/train.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:19.141509 | from __future__ import division
from collections import OrderedDict
import torch
from mmcv.runner import EpochBasedRunner, DistSamplerSeedHook, build_optimizer
from mmcv.parallel import MMDataParallel
from mmcv.parallel.distributed import MMDistributedDataParallel
from mmaction.core import (DistOptimizerHook, DistEv... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/apis/env.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:19.265245 | import logging
import os
import random
import numpy as np
import torch
import torch.distributed as dist
import torch.multiprocessing as mp
from mmcv.runner import get_dist_info
def init_dist(launcher, backend='nccl', **kwargs):
if mp.get_start_method(allow_none=True) is None:
mp.set_start_method('spawn')... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/anchor2d/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:19.609125 | from .anchor_generator import AnchorGenerator
from .anchor_target import anchor_target
__all__ = ['AnchorGenerator', 'anchor_target'] |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/anchor2d/anchor_generator.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:19.621070 | import torch
class AnchorGenerator(object):
def __init__(self, base_size, scales, ratios, scale_major=True, ctr=None):
self.base_size = base_size
self.scales = torch.Tensor(scales)
self.ratios = torch.Tensor(ratios)
self.scale_major = scale_major
self.ctr = ctr
sel... |
open-mmlab/mmaction | https://github.com/open-mmlab/mmaction | null | null | null | null | 1,877 | null | null | apache-2.0 | null | null | null | null | null | null | null | mmaction/core/anchor2d/anchor_target.py | null | null | null | null | null | null | Python | 2026-05-04T02:51:19.657006 | import torch
from ..bbox2d import assign_and_sample, build_assigner, PseudoSampler, bbox2delta
from mmaction.utils.misc import multi_apply
def anchor_target(anchor_list,
valid_flag_list,
gt_bboxes_list,
img_metas,
target_means,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.