id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
2,286,500
views.py
emmertex_chore_app/chore_app/views.py
import datetime from django.contrib.auth import authenticate, get_user_model, login, logout from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import UserCreationForm from django.core.paginator import Paginator from django.db.models import F, Q, Sum from django.shortcuts import re...
14,122
Python
.py
358
31.148045
151
0.635753
emmertex/chore_app
8
0
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,501
extra_filters.py
emmertex_chore_app/chore_app/templatetags/extra_filters.py
from django import template register = template.Library() @register.filter(name='halve') def halve(value): try: return str(int(value / 2)) except (ValueError, TypeError): return str(int(value)) @register.filter(name='fifth') def fifth(value): try: return str(int(value / 5)) e...
554
Python
.py
20
22.85
35
0.669187
emmertex/chore_app
8
0
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,502
setup.py
adithya-s-k_Indic-llm/setup.py
import os from setuptools import find_packages, setup _PATH_ROOT = os.path.dirname(__file__) with open(os.path.join(_PATH_ROOT, "README.md"), encoding="utf-8") as fo: readme = fo.read() setup( name="indic_llm", version="0.1.0", description="Open source large language model implementation", autho...
559
Python
.py
18
27
73
0.684015
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,503
sft.py
adithya-s-k_Indic-llm/archives/finetuning/sft.py
# Fine-Tune Llama2-7b on SE paired dataset import os from dataclasses import dataclass, field from typing import Optional import torch from accelerate import Accelerator from datasets import load_dataset from peft import AutoPeftModelForCausalLM, LoraConfig from tqdm import tqdm from transformers import AutoModelForCa...
6,958
Python
.py
156
39.717949
126
0.720762
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,504
template.py
adithya-s-k_Indic-llm/archives/eval/template.py
def create_prompt_with_tulu_chat_format(messages, bos="<s>", eos="</s>", add_bos=True): formatted_text = "" for message in messages: if message["role"] == "system": formatted_text += "<|system|>\n" + message["content"] + "\n" elif message["role"] == "user": formatted_text...
2,838
Python
.py
53
44.075472
256
0.600575
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,505
eval.py
adithya-s-k_Indic-llm/archives/eval/eval.py
import argparse import os import random import torch import numpy as np import pandas as pd import time import json from tqdm import tqdm import time import evaluate from datasets import load_dataset from eval.utils import ( generate_completions, load_hf_lm_and_tokenizer, dynamic_import_function, ) from ble...
8,510
Python
.py
217
31.668203
150
0.615989
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,506
predict.py
adithya-s-k_Indic-llm/archives/eval/predict.py
""" This script is used to get models' predictions on a set of prompts (put in files with *.jsonl format, with the prompt in a `prompt` field or the conversation history in a `messages` field). For example, to get predictions on a set of prompts, you should put them in a file with the following format: {"id": <un...
8,008
Python
.py
191
32.371728
150
0.602768
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,507
finetune.py
adithya-s-k_Indic-llm/archives/eval/finetune.py
#!/usr/bin/env python # coding=utf-8 import argparse import logging import math import os import json import random import datasets from open_instruct.utils import InitializationScheme import torch from functools import partial from accelerate import Accelerator from accelerate.logging import get_logger from accelerat...
46,833
Python
.py
1,041
33.591739
281
0.581979
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,508
utils.py
adithya-s-k_Indic-llm/archives/eval/utils.py
import torch import tqdm import json import time import asyncio import os from importlib import import_module from transformers import StoppingCriteria from eval.finetune import encode_with_prompt_completion_format from eval.dispatch_openai_requests import ( dispatch_openai_chat_requesets, dispatch_openai_prom...
17,769
Python
.py
417
32.395683
169
0.61017
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,509
dispatch_openai_requests.py
adithya-s-k_Indic-llm/archives/eval/dispatch_openai_requests.py
""" This file is copied and modified from https://gist.github.com/neubig/80de662fb3e225c18172ec218be4917a. Thanks to Graham Neubig for sharing the original code. """ import openai import asyncio from typing import Any, List, Dict async def dispatch_openai_chat_requesets( messages_list: List[List[Dict[str, Any]]]...
2,995
Python
.py
80
29.5
164
0.631198
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,510
test.py
adithya-s-k_Indic-llm/archives/tokenisation/test.py
import argparse import sentencepiece as spm class SentencePieceEncoder: def __init__(self, model_path): self.model_path = model_path def encode_text(self, input_text): sp = spm.SentencePieceProcessor(model_file=self.model_path) encoded_text = sp.encode(input_text, out_type=str) ...
1,119
Python
.py
32
26.53125
67
0.61467
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,511
tokenizer.ipynb
adithya-s-k_Indic-llm/archives/tokenisation/tokenizer.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "32000 20000\n", "['<s>', '</s>', '<unk>']\n", "[1, 2, 0]\n", "{'bos_token': '<s>', 'eos_token': '</s>', 'unk_token': '<...
80,136
Python
.py
292
235.547945
26,239
0.398861
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,512
train.py
adithya-s-k_Indic-llm/archives/tokenisation/train.py
import argparse import os import time import sentencepiece as spm class SentencePieceTrainer: def __init__(self): self.corpus_dir = "./corpus" self.output_dir = "./tokenizer_models" self.model_prefix = "trained_sp_tokenizer" self.vocab_size = 20000 self.character_coverage ...
3,073
Python
.py
82
27.390244
87
0.590602
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,513
merge_tokenizer.py
adithya-s-k_Indic-llm/archives/tokenisation/merge_tokenizer.py
# Based on https://github.com/ymcui/Chinese-LLaMA-Alpaca/blob/main/scripts/merge_tokenizer/merge_tokenizers.py import os os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = "python" import argparse import sentencepiece as spm from sentencepiece import sentencepiece_model_pb2 as sp_pb2_model from transformers impor...
6,152
Python
.py
65
60.907692
438
0.691731
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,514
merge_adapter.py
adithya-s-k_Indic-llm/archives/dpo/merge_adapter.py
from dataclasses import dataclass, field from typing import Optional import torch from peft import PeftConfig, PeftModel from transformers import AutoModelForCausalLM, AutoModelForSequenceClassification, AutoTokenizer, HfArgumentParser, LlamaForCausalLM, LlamaTokenizer @dataclass class ScriptArguments: """ T...
2,346
Python
.py
43
52.488372
148
0.779765
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,515
dpo.py
adithya-s-k_Indic-llm/archives/dpo/dpo.py
# 0. imports import os from dataclasses import dataclass, field from typing import Dict, Optional import torch from datasets import Dataset, load_dataset from peft import LoraConfig from transformers import AutoModelForCausalLM, AutoTokenizer, HfArgumentParser, TrainingArguments, LlamaTokenizer ,LlamaForCausalLM fro...
9,332
Python
.py
202
40.282178
131
0.656618
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,516
generate_text_corpus.py
adithya-s-k_Indic-llm/archives/dataset/generate_text_corpus.py
import argparse import logging import os import pandas as pd from datasets import load_dataset from tqdm import tqdm logging.basicConfig( level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", ) logger = logging.getLogger(__name__) class CorpusCreator: def __init__(self): ...
2,474
Python
.py
71
25.492958
106
0.575314
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,517
generate_dataset.ipynb
adithya-s-k_Indic-llm/archives/dataset/generate_dataset.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "!pip install ipywidgets" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from huggingface_hub import notebook_login\n"...
4,260
Python
.py
139
26.467626
106
0.566367
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,518
pretrain-gemma.py
adithya-s-k_Indic-llm/archives/pretraining/pretrain-gemma.py
#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Inc. team. 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/LI...
28,345
Python
.py
574
40.578397
200
0.647091
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,519
pretrain.py
adithya-s-k_Indic-llm/archives/pretraining/pretrain.py
#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Inc. team. 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/LI...
28,312
Python
.py
574
40.409408
198
0.647754
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,520
jupyter.dockerfile
adithya-s-k_Indic-llm/docker_environment/jupyter.dockerfile
ARG CUDA_VERSION="11.8.0" ARG CUDNN_VERSION="8" ARG UBUNTU_VERSION="22.04" ARG MAX_JOBS=4 FROM nvidia/cuda:$CUDA_VERSION-cudnn$CUDNN_VERSION-devel-ubuntu$UBUNTU_VERSION as base-builder ENV PATH="/root/miniconda3/bin:${PATH}" ARG PYTHON_VERSION="3.9" ARG PYTORCH_VERSION="2.0.1" ARG CUDA="118" ARG TORCH_CUDA_ARCH_LIST...
1,541
Python
.py
35
41.142857
157
0.704545
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,521
utils.py
adithya-s-k_Indic-llm/indic_llm/utils.py
from art import text2art def push_model_to_hub() -> None: pass def print_indic_llm_text_art(suffix=None): font = "nancyj" ascii_text = " indic-llm" if suffix: ascii_text += f" x {suffix}" ascii_art = text2art(ascii_text, font=font) print("\n\n") print(ascii_art)
303
Python
.py
11
23.181818
47
0.632302
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,522
__init__.py
adithya-s-k_Indic-llm/indic_llm/__init__.py
import re import logging # from indic_llm.dataset import * # from indic_llm.tokenisation import * from indic_llm.utils import *
128
Python
.py
5
24.6
38
0.804878
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,523
tokenization.py
adithya-s-k_Indic-llm/indic_llm/tokenization.py
import argparse import os import time import sentencepiece as spm from sentencepiece import sentencepiece_model_pb2 as sp_pb2_model from transformers import AutoTokenizer class SentencePieceTrainer: def __init__(self): self.vocab_size = 20000 self.character_coverage = 1.0 self.model_type ...
5,811
Python
.py
115
39.095652
143
0.608152
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,524
dataset.py
adithya-s-k_Indic-llm/indic_llm/dataset.py
import logging import os import json import pandas as pd from datasets import Dataset, load_dataset from tqdm import tqdm logging.basicConfig( level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", ) logger = logging.getLogger(__name__) def download_dataset( dataset_name, ...
2,149
Python
.py
63
26.619048
79
0.643729
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,525
sft.py
adithya-s-k_Indic-llm/indic_llm/instruct_finetune/llama/sft.py
# Fine-Tune Llama2-7b on SE paired dataset import os from dataclasses import dataclass, field from typing import Optional import torch from accelerate import Accelerator from datasets import load_dataset from peft import AutoPeftModelForCausalLM, LoraConfig from tqdm import tqdm from transformers import AutoModelForCa...
6,958
Python
.py
156
39.717949
126
0.720762
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,526
merge_adapter.py
adithya-s-k_Indic-llm/indic_llm/dpo_finetuning/merge_adapter.py
from dataclasses import dataclass, field from typing import Optional import torch from peft import PeftConfig, PeftModel from transformers import AutoModelForCausalLM, AutoModelForSequenceClassification, AutoTokenizer, HfArgumentParser, LlamaForCausalLM, LlamaTokenizer @dataclass class ScriptArguments: """ T...
2,346
Python
.py
43
52.488372
148
0.779765
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,527
dpo.py
adithya-s-k_Indic-llm/indic_llm/dpo_finetuning/dpo.py
# 0. imports import os from dataclasses import dataclass, field from typing import Dict, Optional import torch from datasets import Dataset, load_dataset from peft import LoraConfig from transformers import AutoModelForCausalLM, AutoTokenizer, HfArgumentParser, TrainingArguments, LlamaTokenizer ,LlamaForCausalLM fro...
9,332
Python
.py
202
40.282178
131
0.656618
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,528
pretrain-gemma.py
adithya-s-k_Indic-llm/indic_llm/continual_pretrain/pretrain-gemma.py
#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Inc. team. 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/LI...
28,345
Python
.py
574
40.578397
200
0.647091
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,529
pretrain.py
adithya-s-k_Indic-llm/indic_llm/continual_pretrain/pretrain.py
#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Inc. team. 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/LI...
20,961
Python
.py
407
42.432432
119
0.656131
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,530
SFT_finetune.py
adithya-s-k_Indic-llm/scripts/SFT_finetune.py
# Copyright 2023 The HuggingFace Inc. team. 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 appl...
3,992
Python
.py
103
34
113
0.688241
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,531
DPO_finetune.py
adithya-s-k_Indic-llm/scripts/DPO_finetune.py
# Copyright 2023 The HuggingFace Inc. team. 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 appl...
6,789
Python
.py
161
36.478261
117
0.678264
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,532
merge_lora.py
adithya-s-k_Indic-llm/scripts/merge_lora.py
import argparse import logging import torch from datasets import Dataset from peft import PeftModel from transformers import AutoModelForCausalLM, AutoTokenizer logging.basicConfig( level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", ) logger = logging.getLogger(__name__) def ...
1,717
Python
.py
50
28.5
82
0.678938
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,533
download_dataset.py
adithya-s-k_Indic-llm/scripts/download_dataset.py
import sys import os import json import shutil import logging import argparse from tqdm import tqdm import pandas as pd from datasets import load_dataset from dataclasses import asdict from pathlib import Path wd = Path(__file__).parent.parent.resolve() sys.path.append(str(wd)) from indic_llm.dataset import downloa...
3,701
Python
.py
105
25.295238
100
0.577628
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,534
tokenizer.py
adithya-s-k_Indic-llm/scripts/tokenizer.py
import sys import os import json import shutil import logging import argparse from tqdm import tqdm import pandas as pd from datasets import load_dataset from dataclasses import asdict from pathlib import Path wd = Path(__file__).parent.parent.resolve() sys.path.append(str(wd)) from indic_llm.tokenization import Se...
3,925
Python
.py
73
46
153
0.679609
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,535
push_to_hf.py
adithya-s-k_Indic-llm/scripts/push_to_hf.py
import argparse import json import logging import os from accelerate.state import PartialState from huggingface_hub import HfApi logging.basicConfig( level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", ) logger = logging.getLogger(__name__) def push_to_hub(target_model_path, r...
1,699
Python
.py
45
30.711111
88
0.641555
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,536
pretrain.py
adithya-s-k_Indic-llm/scripts/pretrain.py
#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Inc. team. 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/LI...
28,340
Python
.py
574
40.569686
200
0.647099
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,537
jupyter.dockerfile
adithya-s-k_Indic-llm/docker_environment/jupyter.dockerfile
ARG CUDA_VERSION="11.8.0" ARG CUDNN_VERSION="8" ARG UBUNTU_VERSION="22.04" ARG MAX_JOBS=4 FROM nvidia/cuda:$CUDA_VERSION-cudnn$CUDNN_VERSION-devel-ubuntu$UBUNTU_VERSION as base-builder ENV PATH="/root/miniconda3/bin:${PATH}" ARG PYTHON_VERSION="3.9" ARG PYTORCH_VERSION="2.0.1" ARG CUDA="118" ARG TORCH_CUDA_ARCH_LIST...
1,541
Python
.pyt
35
41.142857
157
0.704545
adithya-s-k/Indic-llm
8
1
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,538
copyright
amateur80lvl_lxcex/packages/uidmapshift/debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: uidmapshift Upstream-Contact: Serge Hallyn <[email protected]> Source: http://bazaar.launchpad.net/~serge-hallyn/+junk/nsexec/view/head:/uidmapshift.c Files: * Copyright: 2024 Anonymous License: GPL-2.0 Files: ui...
503
Python
.py
13
37.153846
87
0.778234
amateur80lvl/lxcex
8
1
1
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,539
knock.py
loredous_tommyknocker/src/python/knocker/knock.py
import logging from typing import Any from statemachine import State, StateMachine import docker from shared.models.objects import Knock, Runner, Test class ActiveKnock(StateMachine): """A state machine for tracking the status of knocks and updating their status with the controller""" pending = State(initial=...
3,050
Python
.py
54
48.555556
182
0.666555
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,540
service.py
loredous_tommyknocker/src/python/knocker/service.py
import asyncio from dataclasses import dataclass, asdict from logging import getLogger import sched from typing import Dict, List from uuid import UUID import requests from shared.models.objects import Result, Test, Knock, TestConfiguration, TestComponentStatus, Runner from shared.models.apiobjects import NewTestComp...
14,149
Python
.py
233
49.600858
233
0.65547
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,541
main.py
loredous_tommyknocker/src/python/knocker/main.py
from argparse import ArgumentParser, Namespace from logging import DEBUG, INFO, basicConfig, getLogger import sys from knocker.service import KnockerConfig, KnockerService def parse_arguments(args) -> Namespace: parser = ArgumentParser(description="Knocker service for the Tommyknocker control validation service")...
1,336
Python
.py
19
66.210526
147
0.750382
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,542
state.py
loredous_tommyknocker/src/python/controller/state.py
from abc import ABC, abstractmethod from datetime import datetime from typing import Dict, List from uuid import UUID import asyncio import pickle from controller.settings import app_settings from shared.models.objects import Knock, Knocker, Runner, Monitor, ResponseExpectation, Test, TestComponentStatus, TestConfigu...
32,304
Python
.py
646
40.619195
170
0.685913
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,543
settings.py
loredous_tommyknocker/src/python/controller/settings.py
from pydantic_settings import BaseSettings class Settings(BaseSettings): debug: bool = False seed_for_testing: bool = False state_type: str = "memory" state_file: str = "state.pkl" statemachines_file: str = "statemachines.pkl" file_state_path: str = "." app_settings = Settings()
308
Python
.py
9
30.111111
50
0.703704
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,544
statemachines.py
loredous_tommyknocker/src/python/controller/statemachines.py
import datetime from typing import Any, List from statemachine import State, StateMachine from controller.state import ControllerStateFactory from shared.models.objects import Test, TestConfiguration, ResponseExpectation, TestComponentStatus from shared.models.enums import ComponentStatus, ComponentType, TestStatus fr...
6,112
Python
.py
92
55.98913
171
0.700619
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,545
response.py
loredous_tommyknocker/src/python/controller/response.py
from dataclasses import dataclass from typing import Optional from shared.models.objects import Response, Monitor, ResponseExpectation from controller.monitor import MockMonitor, ElasticsearchMonitor from controller.state import ControllerStateFactory class ExpectedResponse(): response: ResponseExpectation de...
1,068
Python
.py
21
43.142857
78
0.735867
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,546
controller.py
loredous_tommyknocker/src/python/controller/controller.py
import asyncio from datetime import datetime import logging from uuid import UUID from fastapi import FastAPI, APIRouter from fastapi.concurrency import asynccontextmanager from controller.state import ControllerStateFactory, InMemoryState, PersistentInMemoryState from controller.v1api import v1APIRouter from shared.mo...
3,686
Python
.py
55
62.436364
246
0.780818
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,547
v1api.py
loredous_tommyknocker/src/python/controller/v1api.py
from dataclasses import asdict import datetime from typing import List from uuid import UUID from fastapi import APIRouter, BackgroundTasks from controller.state import ControllerState, ControllerStateFactory import shared.models.objects as StateObjects import shared.models.apiobjects as APIObjects from shared.models....
16,582
Python
.py
230
69.404348
186
0.798843
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,548
monitor.py
loredous_tommyknocker/src/python/controller/monitor.py
from dataclasses import dataclass import json import logging from typing import List, Optional from shared.models.objects import Monitor, Response from shared.models.enums import MonitorType from abc import ABC, abstractmethod from elasticsearch import Elasticsearch class MonitorBase(ABC): monitor: Monitor de...
2,558
Python
.py
56
37.125
179
0.664775
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,549
dependency.py
loredous_tommyknocker/src/python/controller/dependency.py
import logging from typing import Annotated, Dict from uuid import UUID from statemachine.exceptions import TransitionNotAllowed from fastapi import Depends from controller.statemachines import TestStateMachine from controller.state import ControllerState, ControllerStateFactory from shared.models.objects import Test ...
3,421
Python
.py
67
42.238806
159
0.683263
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,550
test_v1Api.py
loredous_tommyknocker/src/python/tests/test_v1Api.py
from uuid import UUID from fastapi.testclient import TestClient from controller.controller import api import pytest from controller.state import ControllerStateFactory from shared.models.objects import Knocker @pytest.fixture() def client(): with TestClient(api) as client: yield client class TestV1API: ...
2,766
Python
.py
44
56.113636
200
0.714338
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,551
test_shared_objects.py
loredous_tommyknocker/src/python/tests/test_shared_objects.py
import datetime from uuid import uuid4 from shared.models.objects import Knocker, Knock, Runner from shared.models.dbobjects import DBKnocker, DBKnock, DBRunner def test_knocker_from_db(): db_knocker = DBKnocker( name="test_knocker", description="test_description", id=uuid4(), last_...
1,163
Python
.py
32
30.9375
64
0.7
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,552
test_state.py
loredous_tommyknocker/src/python/tests/test_state.py
import pytest from controller.state import ControllerStateFactory, ControllerState, InMemoryState import pytest from uuid import UUID from controller.errors import NotFoundException from shared.models.objects import Knocker, Knock, Runner def test_controller_state_factory_get_state(): state = ControllerStateFacto...
7,449
Python
.py
93
72.258065
251
0.725041
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,553
enums.py
loredous_tommyknocker/src/python/shared/models/enums.py
from enum import Enum class ResultType(int, Enum): EXIT_CODE = 1 PRESENT_IN_OUTPUT = 2 REGEX_MATCH_OUTPUT = 3 class MonitorType(int, Enum): ELASTICSEARCH = 1 MOCK = 2 class TestStatus(int, Enum): PENDING = 1 KNOCKING = 2 CHECKING = 3 SUCCESS = 4 FAILURE = 5 ERROR = 6 cla...
492
Python
.py
24
16.291667
33
0.645788
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,554
apiobjects.py
loredous_tommyknocker/src/python/shared/models/apiobjects.py
from dataclasses import Field, dataclass, field from enum import Enum from typing import Dict, List, Optional from uuid import UUID from shared.models.objects import MonitorType, ResultType, NotUpdated from shared.models.enums import ComponentStatus, ComponentType, TestStatus ## Knock Objects @dataclass class Update...
3,568
Python
.py
120
26.175
80
0.763274
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,555
objects.py
loredous_tommyknocker/src/python/shared/models/objects.py
from dataclasses import dataclass, asdict, field import datetime from enum import Enum import re from typing import Any, Dict, List, Optional, Union from uuid import UUID, uuid4 from shared.models.dbobjects import DBKnock, DBKnocker, DBMonitor, DBResponse, DBResponseExpectation, DBResult, DBRunner, DBTest, DBTestConfig...
7,860
Python
.py
218
28.087156
190
0.653507
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,556
dbobjects.py
loredous_tommyknocker/src/python/shared/models/dbobjects.py
from datetime import datetime import sqlalchemy from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship from typing import Dict, List, Optional from uuid import UUID from shared.models.enums import MonitorType, ResultType, TestStatus, ComponentStatus from typing import TYPE_CHECKING if TYPE_CHE...
7,182
Python
.py
124
53.620968
148
0.758163
loredous/tommyknocker
8
0
9
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,557
zpaq_fileexplorer.py
EpicGazel_ZpaqTreeView/zpaq_fileexplorer.py
import os from tkinter import filedialog from os import getcwd import zpaqtreeview as ztv import sys import logging import argparse import threading from functools import wraps from pathlib import Path, PureWindowsPath from winfspy import ( FileSystem, BaseFileSystemOperations, enable_debug_log, FILE_A...
20,848
Python
.py
497
33.350101
129
0.617098
EpicGazel/ZpaqTreeView
8
2
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,558
zpaqtreeview.py
EpicGazel_ZpaqTreeView/zpaqtreeview.py
import configparser from treelib import Tree import re from subprocess import check_output, Popen, PIPE, CalledProcessError import tqdm from sys import stderr from platform import system import traceback class File: def __init__(self, full_path, size, last_modified, attribute): self.fullPath = full_path....
12,704
Python
.py
267
37.445693
184
0.571763
EpicGazel/ZpaqTreeView
8
2
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,559
tree_tui.py
EpicGazel_ZpaqTreeView/tree_tui.py
""" Code browser example. Run with: python code_browser.py PATH """ from sys import argv from os import getcwd from textual.app import App, ComposeResult from textual.containers import Container from textual.reactive import var from textual.widgets import Tree, Footer, Header, Input from tqdm import tqdm from tki...
3,720
Python
.py
88
35.113636
131
0.635457
EpicGazel/ZpaqTreeView
8
2
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,560
AndroidRemoteGPT.py
compilebunny_androidremoteGPT/AndroidRemoteGPT.py
# AndroidRemoteGPT by Jonathan Germain # Available at https://github.com/compilebunny/androidremoteGPT # Licensed under version 3 of the GNU General Public License import os import time import json import re from subprocess import Popen, PIPE import sys try: import termuxgui as tg except ModuleNotFoundError: sys...
12,683
Python
.py
260
45.934615
197
0.776168
compilebunny/androidremoteGPT
8
2
0
GPL-3.0
9/5/2024, 10:48:01 PM (Europe/Amsterdam)
2,286,561
sqlite.py
Xunop_death-knell/sqlite.py
import sqlite3 from course import Course def create_database(): conn = sqlite3.connect('data.db') c = conn.cursor() # 创建 users 表 c.execute(''' CREATE TABLE IF NOT EXISTS users ( user_id TEXT PRIMARY KEY, username TEXT, password TEXT year TEXT, semester TEXT ...
3,611
Python
.py
107
27.981308
180
0.613833
Xunop/death-knell
8
1
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,562
course.py
Xunop_death-knell/course.py
class Course: def __init__(self, year, semester, course_id, name, type, credit, gpa, normal_score, real_score, total_score, user_id): self.year = year self.semester = semester self.course_id = course_id self.name = name self.type = type self.credit = credit se...
1,856
Python
.py
46
30.391304
123
0.561179
Xunop/death-knell
8
1
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,563
user.py
Xunop_death-knell/user.py
class User: def __init__(self, user_id, username, password, year, semester): self.user_id = user_id self.username = username self.password = password self.semester = semester self.year = year
236
Python
.py
7
26.428571
68
0.620087
Xunop/death-knell
8
1
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,564
main.py
Xunop_death-knell/main.py
#!/bin/python3 import requests import ddddocr import argparse import re import base64 import difflib import os from time import sleep from PIL import Image import io from contextlib import redirect_stdout from io import StringIO from selenium import webdriver from selenium.webdriver.common.by import By from selenium....
8,770
Python
.py
224
30.584821
95
0.61916
Xunop/death-knell
8
1
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,565
linux_revshell_cmd.py
stevenvegar_Jenkins_scripts/linux_revshell_cmd.py/linux_revshell_cmd.py
from bs4 import BeautifulSoup import argparse import base64 import json import random import re import requests import time import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def parse_args(): parser = argparse.ArgumentParser(description='Bash reverse shell from Jenkins o...
7,310
Python
.py
138
49.456522
181
0.694639
stevenvegar/Jenkins_scripts
8
1
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,566
get_creds_CVE-2024-23897.py
stevenvegar_Jenkins_scripts/get_creds_CVE-2024-23897.py/get_creds_CVE-2024-23897.py
import argparse import base64 import binascii import re import requests import threading import time import uuid from concurrent.futures import ThreadPoolExecutor from Crypto.Cipher import AES from hashlib import sha256 def parse_args(): parser = argparse.ArgumentParser(description='Decrypt global cred...
25,623
Python
.py
546
42.576923
205
0.703481
stevenvegar/Jenkins_scripts
8
1
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,567
enum_access.py
stevenvegar_Jenkins_scripts/enum_access.py/enum_access.py
import argparse import base64 import json import random import requests import time import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def parse_args(): parser = argparse.ArgumentParser(description='Bash reverse shell from Jenkins on a Linux-based server using batch command...
15,293
Python
.py
349
39.530086
144
0.643107
stevenvegar/Jenkins_scripts
8
1
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,568
win_revshell_groovy.py
stevenvegar_Jenkins_scripts/win_revshell_groovy.py/win_revshell_groovy.py
from bs4 import BeautifulSoup import argparse import json import random import re import requests import time import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def parse_args(): parser = argparse.ArgumentParser(description='Powershell reverse shell from Jenkins on a Windo...
7,956
Python
.py
155
47.767742
181
0.691603
stevenvegar/Jenkins_scripts
8
1
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,569
linux_revshell_groovy.py
stevenvegar_Jenkins_scripts/linux_revshell_groovy.py/linux_revshell_groovy.py
from bs4 import BeautifulSoup import argparse import json import random import re import requests import time import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def parse_args(): parser = argparse.ArgumentParser(description='Bash reverse shell from Jenkins on a Linux-based...
7,934
Python
.py
155
47.625806
181
0.690208
stevenvegar/Jenkins_scripts
8
1
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,570
win_revshell_cmd.py
stevenvegar_Jenkins_scripts/win_revshell_cmd.py/win_revshell_cmd.py
from bs4 import BeautifulSoup import argparse import base64 import json import random import re import requests import time import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def parse_args(): parser = argparse.ArgumentParser(description='Powershell reverse shell from Jen...
7,812
Python
.py
138
53.094203
542
0.696382
stevenvegar/Jenkins_scripts
8
1
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,571
win_revshell_nodejs.py
stevenvegar_Jenkins_scripts/win_revshell_nodejs.py/win_revshell_nodejs.py
from bs4 import BeautifulSoup import argparse import json import random import re import requests import time import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def parse_args(): parser = argparse.ArgumentParser(description='Powershell reverse shell from Jenkins on a Windo...
7,596
Python
.py
146
48.184932
181
0.690084
stevenvegar/Jenkins_scripts
8
1
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,572
linux_revshell_nodejs.py
stevenvegar_Jenkins_scripts/linux_revshell_nodejs.py/linux_revshell_nodejs.py
from bs4 import BeautifulSoup import argparse import json import random import re import requests import time import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def parse_args(): parser = argparse.ArgumentParser(description='Bash reverse shell from Jenkins on a Linux-based...
7,574
Python
.py
146
48.034247
181
0.688618
stevenvegar/Jenkins_scripts
8
1
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,573
enum_users.py
stevenvegar_Jenkins_scripts/enum_users.py/enum_users.py
import argparse import requests import time import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def parse_args(): parser = argparse.ArgumentParser(description='Jenkins username bruteforcing. *Internet required* or use local wordlist to do it offline') parser.add_argument('-w'...
5,059
Python
.py
98
47.27551
164
0.674305
stevenvegar/Jenkins_scripts
8
1
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,574
.pylintrc
GearKite_MatrixZulipBridge/.pylintrc
[MAIN] # Analyse import fallback blocks. This can be used to support both Python 2 and # 3 compatible code, which means that the block might have code that exists # only in one or another interpreter, leading to false positives when analysed. analyse-fallback-blocks=no # Clear in-memory caches upon conclusion of lint...
21,277
Python
.py
458
44.181223
166
0.788316
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,575
test_import.py
GearKite_MatrixZulipBridge/tests/test_import.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
1,458
Python
.py
37
38.243243
95
0.821705
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,576
space_room.py
GearKite_MatrixZulipBridge/matrixzulipbridge/space_room.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
6,970
Python
.py
170
29.958824
131
0.586741
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,577
control_room.py
GearKite_MatrixZulipBridge/matrixzulipbridge/control_room.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
19,552
Python
.py
435
33.110345
130
0.586766
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,578
under_organization_room.py
GearKite_MatrixZulipBridge/matrixzulipbridge/under_organization_room.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
9,566
Python
.py
217
32.235023
95
0.58687
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,579
__main__.py
GearKite_MatrixZulipBridge/matrixzulipbridge/__main__.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
35,705
Python
.py
868
29.428571
134
0.568976
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,580
command_parse.py
GearKite_MatrixZulipBridge/matrixzulipbridge/command_parse.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
3,920
Python
.py
96
34
95
0.656217
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,581
stream_room.py
GearKite_MatrixZulipBridge/matrixzulipbridge/stream_room.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
21,277
Python
.py
517
30.814313
121
0.595147
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,582
personal_room.py
GearKite_MatrixZulipBridge/matrixzulipbridge/personal_room.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
8,171
Python
.py
200
31.655
95
0.626151
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,583
__init__.py
GearKite_MatrixZulipBridge/matrixzulipbridge/__init__.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
1,085
Python
.py
25
42.4
95
0.785849
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,584
direct_room.py
GearKite_MatrixZulipBridge/matrixzulipbridge/direct_room.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
17,173
Python
.py
420
30.4
100
0.595572
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,585
websocket.py
GearKite_MatrixZulipBridge/matrixzulipbridge/websocket.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
3,603
Python
.py
81
28.283951
95
0.505839
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,586
zulip.py
GearKite_MatrixZulipBridge/matrixzulipbridge/zulip.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
13,320
Python
.py
309
31.508091
95
0.578188
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,587
event_queue.py
GearKite_MatrixZulipBridge/matrixzulipbridge/event_queue.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
2,863
Python
.py
77
29.506494
95
0.632035
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,588
appservice.py
GearKite_MatrixZulipBridge/matrixzulipbridge/appservice.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
3,937
Python
.py
105
28.219048
95
0.58637
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,589
version.py
GearKite_MatrixZulipBridge/matrixzulipbridge/version.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
2,222
Python
.py
60
31.1
95
0.631383
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,590
room.py
GearKite_MatrixZulipBridge/matrixzulipbridge/room.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
20,747
Python
.py
528
27.179924
115
0.524574
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,591
organization_room.py
GearKite_MatrixZulipBridge/matrixzulipbridge/organization_room.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
30,920
Python
.py
751
30.338216
123
0.589586
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,592
types.py
GearKite_MatrixZulipBridge/matrixzulipbridge/types.py
# MatrixZulipBridge - an appservice puppeting bridge for Matrix - Zulip # # Copyright (C) 2024 Emma Meijere <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either versio...
1,081
Python
.py
24
43.958333
74
0.790521
GearKite/MatrixZulipBridge
8
1
3
AGPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,593
circular_contig_extractor.py
rrwick_Circular-Contig-Extractor/circular_contig_extractor.py
#!/usr/bin/env python3 """ Copyright 2024 Ryan Wick ([email protected]) https://github.com/rrwick/Circular-Contig-Extractor This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the Lice...
14,931
Python
.py
334
36.389222
100
0.625568
rrwick/Circular-Contig-Extractor
8
0
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,594
test_circular_contig_extractor.py
rrwick_Circular-Contig-Extractor/test/test_circular_contig_extractor.py
""" This module contains some tests for Circular Contig Extractor. To run them, execute `python3 -m pytest` from the root Circular Contig Extractor directory. Copyright 2024 Ryan Wick ([email protected]) https://github.com/rrwick/Circular-Contig-Extractor This program is free software: you can redistribute it and/or m...
8,507
Python
.py
157
49.401274
98
0.708644
rrwick/Circular-Contig-Extractor
8
0
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,595
crc_collision.py
ErnestThePoet_MU5735-ADSB-Reveal/crc_collision.py
import pyModeS as pms # When calculating CRC, AP should be all zeros df5_2101_template = "00101_{0}_0001001110000_000000000000000000000000" df5_0463_template = "00101_{0}_0010101010110_000000000000000000000000" collision_values: dict[str, list[str]] = {} fs_dr_um_valid_values: list[str] = [] for fs in map(lambda x:...
1,456
Python
.py
28
45.285714
84
0.644366
ErnestThePoet/MU5735-ADSB-Reveal
8
1
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,596
airborne_position_msg_drop_test.py
ErnestThePoet_MU5735-ADSB-Reveal/airborne_position_msg_drop_test.py
import math from geopy import distance import pyModeS as pms def cpr_mod(a: float, b: float): res = a % b if res < 0: res += b return res def generate_adsb_sequence(positions: list[tuple[float, float]]): MODES_TEMPLATE = f"10001_101_{pms.hex2bin('780DB8')}_{{0}}_000000000000000000000000" ...
3,725
Python
.py
94
32.170213
89
0.607341
ErnestThePoet/MU5735-ADSB-Reveal
8
1
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,597
FiveSpiralData.py
alanxuji_FaithPDP/FiveSpiralData.py
import math import numpy as np import matplotlib.pyplot as plt # save csv import csv # python2可以用file替代open # 写入多行用writerows tArr = np.arange(2, 4*np.pi, 0.001, dtype='float32') size = len(tArr) x = np.zeros(size) y= np.zeros(size) phi = [2.1, 2.8, 4.1, 4.8, 6.2] dataAll = np.zeros((5*size...
1,324
Python
.py
38
29.473684
91
0.621951
alanxuji/FaithPDP
8
0
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,598
FFP-DP-5Spiral.py
alanxuji_FaithPDP/FFP-DP-5Spiral.py
##### AlanXu @ SKLPBD, GZU. 2024-1-15 ##### For Faithful parallelism of Density Peaks Clustering #### mpiexec -n 14 python FFP-DP-5Spiral.py import time from mpi4py import MPI import numpy as np from sklearn.preprocessing import MinMaxScaler from utils import common def DensityAndBarDistance(ranX, X, i, sub...
10,742
Python
.py
207
40.869565
119
0.585087
alanxuji/FaithPDP
8
0
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)
2,286,599
FFP-DP-5Spiral-S.py
alanxuji_FaithPDP/FFP-DP-5Spiral-S.py
import time import numpy as np from sklearn import datasets from sklearn.preprocessing import MinMaxScaler from utils import common def DensityAndBarDistance(X,i ): if i == BatchNum - 1: subX = X[i * subSize:, :] else: subX = X[i * subSize:(i + 1) * subSize, :] TempRowNum = n...
6,309
Python
.py
135
37.592593
108
0.605936
alanxuji/FaithPDP
8
0
0
GPL-3.0
9/5/2024, 10:48:09 PM (Europe/Amsterdam)