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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
zai-org/GLM-TTS | https://github.com/zai-org/GLM-TTS | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | grpo/run_sim.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:20.667800 | # Copyright (c) 2025 Zhipu AI Inc (authors: CogAudio Group Members)
#
# 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 app... |
zai-org/GLM-TTS | https://github.com/zai-org/GLM-TTS | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | grpo/run_wer.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:20.742240 | # Copyright (c) 2025 Zhipu AI Inc (authors: CogAudio Group Members)
#
# 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 app... |
zai-org/GLM-TTS | https://github.com/zai-org/GLM-TTS | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | grpo/train_ds_grpo.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:20.841884 | # Copyright (c) 2025 Zhipu AI Inc (authors: CogAudio Group Members)
#
# 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 app... |
zai-org/GLM-TTS | https://github.com/zai-org/GLM-TTS | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | llm/glmtts.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:20.912081 | # Copyright (c) 2025 Zhipu AI Inc (authors: CogAudio Group Members)
#
# 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 app... |
zai-org/GLM-TTS | https://github.com/zai-org/GLM-TTS | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/flow_reconstruct.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:20.990240 | # Copyright (c) 2025 Zhipu AI Inc (authors: CogAudio Group Members)
#
# 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 app... |
zai-org/GLM-TTS | https://github.com/zai-org/GLM-TTS | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/ffmpeg_speech_control.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:21.041906 | # Copyright (c) 2025 Zhipu AI Inc (authors: CogAudio Group Members)
#
# 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 app... |
zai-org/GLM-TTS | https://github.com/zai-org/GLM-TTS | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/gradio_app.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:21.097764 | # Copyright (c) 2025 Zhipu AI Inc (authors: CogAudio Group Members)
#
# 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 app... |
zai-org/GLM-TTS | https://github.com/zai-org/GLM-TTS | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | utils/audio.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:21.178505 | # Copyright (c) 2025 Zhipu AI Inc (authors: CogAudio Group Members)
#
# 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 app... |
zai-org/GLM-TTS | https://github.com/zai-org/GLM-TTS | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | utils/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:21.189332 | # Copyright (c) 2025 Zhipu AI Inc (authors: CogAudio Group Members)
#
# 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 app... |
zai-org/GLM-TTS | https://github.com/zai-org/GLM-TTS | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | utils/block_mask_util.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:21.247414 | # Copyright (c) 2025 Zhipu AI Inc (authors: CogAudio Group Members)
#
# 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 app... |
zai-org/GLM-TTS | https://github.com/zai-org/GLM-TTS | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | utils/file_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:21.276913 | # Copyright (c) 2025 Zhipu AI Inc (authors: CogAudio Group Members)
#
# 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 app... |
zai-org/GLM-TTS | https://github.com/zai-org/GLM-TTS | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | utils/glm_g2p.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:21.353108 | # Copyright (c) 2025 Zhipu AI Inc (authors: CogAudio Group Members)
#
# 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 app... |
zai-org/GLM-TTS | https://github.com/zai-org/GLM-TTS | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | utils/hift_util.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:21.464592 | # Copyright (c) 2025 Zhipu AI Inc (authors: CogAudio Group Members)
#
# 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 app... |
zai-org/GLM-TTS | https://github.com/zai-org/GLM-TTS | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | utils/seed_util.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:21.534922 | # Copyright (c) 2025 Zhipu AI Inc (authors: CogAudio Group Members)
#
# 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 app... |
zai-org/GLM-TTS | https://github.com/zai-org/GLM-TTS | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | utils/tts_model_util.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:21.576909 | # Copyright (c) 2025 Zhipu AI Inc (authors: CogAudio Group Members)
#
# 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 app... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | scripts/query_db.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:24.486175 | '''
A simple script to allow querying the securitybot DB and
viewing recent alerts, mostly for debugging purposes.
'''
import argparse
import re
from securitybot.sql import SQLEngine
from typing import Any, Dict, List, Sequence
BLACKLIST_QUERY = '''
SELECT ldap
FROM blacklist
'''
IGNORED_QUERY = '''
SELECT ldap, ti... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | plugins/splunk/apps/securitybot_alerts/bin/bot_lookup.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:24.489432 | #!/usr/local/env python
'''
Performs a MySQL query to return any events that have a SHA-256 hash matching
an event handled by the bot.
'''
__author__ = 'Alex Bertsch'
__email__ = 'abertsch@dropbox.com'
import sys
import csv
import logging
from securitybot.sql import SQLEngine, init_sql
from typing import Any, Sequen... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | frontend.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:24.489961 | #!/usr/local/env python
import argparse
from frontend.securitybot_frontend import main, init
if __name__ == '__main__':
init()
parser = argparse.ArgumentParser(description='Securitybot frontent')
parser.add_argument('--port', dest='port', default='8888', type=int)
args = parser.parse_args()
main(... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | frontend/securitybot_api.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:24.818313 | '''
API for the Securitybot database.
'''
# Securitybot imports
from securitybot.sql import SQLEngine, SQLEngineException, init_sql
from securitybot.util import create_new_alert
# Typing
from typing import Any, Dict, List, Sequence
def init_api():
# type: () -> None
init_sql()
# API functions
'''
Every API c... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | main.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:24.884712 | #!/usr/bin/env python
import logging
from securitybot.bot import SecurityBot
from securitybot.chat.slack import Slack
from securitybot.tasker.sql_tasker import SQLTasker
from securitybot.auth.duo import DuoAuth
from securitybot.sql import init_sql
import duo_client
CONFIG = {}
SLACK_KEY = 'slack_api_token'
DUO_INTEGR... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | frontend/securitybot_frontend.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:24.965627 | #!/usr/bin/env python
'''
Front-end for the Securitybot database.
'''
# Python includes
import argparse
from csv import reader
import logging
import os
# Tornado includes
import tornado.httpserver
import tornado.ioloop
import tornado.netutil
import tornado.web
# Securitybot includes
import securitybot_api as api
# T... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | scripts/custom_alert.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:24.967223 | #!/usr/bin/python
'''
Creates a custom Securitybot alert for a specified user.
'''
import argparse
from securitybot.sql import SQLEngine
from securitybot.util import create_new_alert
from typing import Any
def main(args):
# type: (Any) -> None
SQLEngine('localhost', 'root', '', 'securitybot')
create_new_... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | plugins/splunk/apps/securitybot_alerts/bin/bot_lookup_launcher.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:25.106883 | #!/usr/bin/python
import sys
from subprocess import call
logging_file = open('/var/log/securitybot/bot_lookup.log', 'a+')
# Build arguments
c = ['env', '-u', 'PYTHONPATH', '-u', 'LD_LIBRARY_PATH', '/path/to/securitybot']
c.extend(sys.argv[1:])
call(c, stderr=logging_file)
|
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | securitybot/auth/auth.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:25.140291 | '''
An authentication object for doing 2FA on Slack users.
'''
__author__ = 'Alex Bertsch'
__email__ = 'abertsch@dropbox.com'
from securitybot.util import enum
from datetime import timedelta
from abc import ABCMeta, abstractmethod
AUTH_STATES = enum('NONE',
'PENDING',
'AUTHORIZED... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | securitybot/auth/duo.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:25.236926 | '''
Authentication using Duo.
'''
__author__ = 'Alex Bertsch'
__email__ = 'abertsch@dropbox.com'
import logging
from datetime import datetime
from urllib import urlencode
from securitybot.auth.auth import Auth, AUTH_STATES, AUTH_TIME
from typing import Any
class DuoAuth(Auth):
def __init__(self, duo_api, usernam... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | plugins/splunk/apps/securitybot_alerts/bin/send_bot_alerts.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:25.285113 | #!/usr/local/env python
import sys
import csv
import gzip
import logging
import json
from securitybot.sql import SQLEngine, init_sql
from securitybot.util import create_new_alert
def create_securitybot_task(search_name, hash, username, description, reason, url):
'''
Creates a new Maniphest task with the sec... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | securitybot/blacklist/blacklist.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:25.508769 | '''
A generic blacklist class.
'''
__author__ = 'Alex Bertsch'
__email__ = 'abertsch@dropbox.com'
from abc import ABCMeta, abstractmethod
class Blacklist(object):
__metaclass__ = ABCMeta
@abstractmethod
def is_present(self, name):
# type: (str) -> bool
'''
Checks if a name is on t... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | securitybot/bot.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:25.542158 | '''
The internals of securitybot. Defines a core class SecurityBot that manages
most of the bot's behavior.
'''
__author__ = 'Alex Bertsch'
__email__ = 'abertsch@dropbox.com'
import logging
from securitybot.user import User
import time
from datetime import datetime, timedelta
import pytz
import shlex
import yaml
impor... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | securitybot/blacklist/sql_blacklist.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:25.545585 | '''
A MySQL-based blacklist class.
'''
__author__ = 'Alex Bertsch'
__email__ = 'abertsch@dropbox.com'
from securitybot.blacklist.blacklist import Blacklist
from securitybot.sql import SQLEngine
class SQLBlacklist(Blacklist):
def __init__(self):
# type: () -> None
'''
Creates a new blacklis... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | securitybot/chat/chat.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:25.713165 | '''
A simple wrapper over an abstract chat/messaging system
like Slack.
'''
__author__ = 'Alex Bertsch'
__email__ = 'abertsch@dropbox.com'
from securitybot.user import User
from abc import ABCMeta, abstractmethod
from typing import Any, Dict, List
class Chat(object):
'''
A wrapper over various chat framework... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | securitybot/chat/slack.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:25.751415 | '''
A wrapper over the Slack API.
'''
__author__ = 'Alex Bertsch'
__email__ = 'abertsch@dropbox.com'
import logging
from slackclient import SlackClient
import json
from securitybot.user import User
from securitybot.chat.chat import Chat, ChatException
from typing import Any, Dict, List
class Slack(Chat):
'''
... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | securitybot/commands.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:25.779514 | '''
File for securitybot commands.
Each command function takes a user and arguments as its arguments.
It also has `bot`, a reference to the bot that called it.
They return True upon success and False upon failure, or just None
if the command doesn't have success/failure messages.
'''
import re
from datetime import ti... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | securitybot/ignored_alerts.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:25.791290 | '''
A small file for keeping track of ignored alerts in the database.
'''
import pytz
from datetime import datetime, timedelta
from securitybot.sql import SQLEngine
from typing import Dict
def __update_ignored_list():
# type: () -> None
'''
Prunes the ignored table of old ignored alerts.
'''
SQLEng... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | securitybot/sql.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:25.889313 | '''
A wrapper for the securitybot to access its database.
'''
import MySQLdb
import logging
from typing import Any, Sequence
class SQLEngine(object):
# Whether the singleton has been instantiated
_host = None # type: str
_user = None # type: str
_passwd = None # type: str
_db = None # type: str
... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | securitybot/state_machine.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:25.993779 | '''
A simple FSM for controlling user state.
You know, as opposed to all those state machines that _don't_ manage state.
'''
__author__ = 'Alex Bertsch'
__email__ = 'abertsch@dropbox.com'
import logging
from collections import defaultdict
from typing import Callable
class StateMachine(object):
'''
A minimal ... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | securitybot/tasker/sql_tasker.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:26.134288 | '''
A tasker on top of a SQL database.
'''
from securitybot.tasker.tasker import Task, Tasker, STATUS_LEVELS
from securitybot.sql import SQLEngine
from typing import List
# Note: this order is provided to match the SQLTask constructor
GET_ALERTS = '''
SELECT HEX(alerts.hash),
title,
ldap,
reason,... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | securitybot/tasker/tasker.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:26.172386 | '''
A system for retrieving and assigning tasks for the bot as well as updating
their statuses once acted up. This file contains two abstract classes,
Tasker and Task, which define a class to manage tasks and a task class
respectively.
'''
__author__ = 'Alex Bertsch'
__email__ = 'abertsch@dropbox.com'
from abc import ... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | securitybot/user.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:26.274607 | '''
An object to manage user interactions.
Wraps user information, all known alerts, and an active DM channel with the user.
'''
__author__ = 'Alex Bertsch'
__email__ = 'abertsch@dropbox.com'
import logging
import pytz
from datetime import datetime, timedelta
import securitybot.ignored_alerts as ignored_alerts
from se... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | securitybot/util.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:26.344488 | __author__ = 'Alex Bertsch'
__email__ = 'abertsch@dropbox.com'
import pytz
import binascii
import os
from datetime import datetime, timedelta
from collections import namedtuple
from securitybot.sql import SQLEngine
# http://stackoverflow.com/questions/36932/how-can-i-represent-an-enum-in-python
def enum(*sequential,... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/state_machine_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:26.359643 | from unittest2 import TestCase
from securitybot.state_machine import StateMachine, StateMachineException
# Helper junk
class Helper(object):
def __init__(self):
self.x = 0
def increment(self):
self.x += 1
def x_is_five(self):
return self.x == 5
class Helper2(object):
def __i... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/bot_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:26.378900 | from unittest2 import TestCase
from mock import Mock, patch
import yaml
import types
import os.path
import pytz
from datetime import datetime
import securitybot.bot as bot
import securitybot.commands as commands
import securitybot.user
import securitybot.chat.chat
MAIN_CONFIG = 'config/bot.yaml'
COMMAND_CONFIG = 'co... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/user_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:26.534171 | from unittest2 import TestCase
from mock import Mock, patch
from collections import defaultdict
from datetime import timedelta
from time import sleep
import securitybot.user as user
import securitybot.bot
import securitybot.chat.chat
import securitybot.auth.auth
# Mock away ignoring alerts
import securitybot.ignored... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/util_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:26.606952 | from unittest2 import TestCase
from datetime import datetime, timedelta
import securitybot.util as util
class VarTest(TestCase):
def test_hours(self):
assert util.OPENING_HOUR < util.CLOSING_HOUR, 'Closing hour must be after opening hour.'
class NamedTupleTest(TestCase):
def test_empty(self):
... |
dropbox/securitybot | https://github.com/dropbox/securitybot | null | null | null | null | 991 | null | null | apache-2.0 | null | null | null | null | null | null | null | util/db_up.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:26.646924 | #!/usr/bin/env python
import MySQLdb
import sys
# DB CONFIG GOES HERE
host = 'localhost'
user = 'root'
passwd= ''
db = MySQLdb.connect(host=host,
user=user,
passwd=passwd,
db='securitybot')
cur = db.cursor()
# Start fresh
print 'Removing all tables'
cur... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | docs/build_tft_docs.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.185959 | #
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/census_example.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.189287 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/local_model_server.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.190506 | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/census_example_v2.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.197904 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/dataset_tfxio_example.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.203512 | # Copyright 2023 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/census_example_v2_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.205179 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/sentiment_example_v2_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.212697 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | docs/build_tft_beam_docs.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.217146 | #
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/dataset_tfxio_example_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.275129 | # Copyright 2023 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/sentiment_example_v2.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.297652 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/simple_example_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.770474 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/simple_example.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.801568 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | setup.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.828103 | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/simple_sequence_example.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.828772 | # Copyright 2022 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/simple_sequence_example_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.830708 | # Copyright 2022 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/analyzer_nodes.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.846655 | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/analyzers_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.859262 | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.882861 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/annotators_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.909352 | # Copyright 2021 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/annotators.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:29.910602 | # Copyright 2021 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/analysis_graph_builder.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:30.390931 | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:30.394678 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/analyzer_cache_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:30.399658 | #
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/analysis_graph_builder_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:30.418973 | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/analyzer_cache.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:30.438824 | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/analyzer_impls_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:30.465093 | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/annotators_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:30.476315 | #
# Copyright 2023 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/analyzer_impls.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:30.502556 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/beam_nodes.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:30.521300 | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/bucketize_integration_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:30.526187 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/combiner_packing_util.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:30.969158 | # Copyright 2020 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/combiner_packing_util_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:30.981256 | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/common.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.019277 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/context.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.039100 | # Copyright 2019 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/context_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.045954 | # Copyright 2021 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/deep_copy.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.047009 | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/experimental/analyzer_impls.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.111563 | # Copyright 2021 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/experimental/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.114672 | # Copyright 2021 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/deep_copy_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.116424 | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/impl.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.199276 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/impl_output_record_batches_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.571263 | # Copyright 2020 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/test_helpers.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.583559 | #
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/tft_beam_io/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.600710 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/tft_beam_io/beam_metadata_io_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.645676 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/tft_beam_io/test_metadata.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.655121 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/tft_beam_io/beam_metadata_io.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.683696 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/tft_beam_io/transform_fn_io.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.689914 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/tft_unit.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.695599 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/tft_beam_io/transform_fn_io_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.741883 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
tensorflow/transform | https://github.com/tensorflow/transform | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | tensorflow_transform/beam/tukey_hh_params_integration_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:31.815041 | # Copyright 2020 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | evaluation/endoscopy_NSD_Eval.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:34.403835 | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 15 12:59:48 2022
@author: 12593
"""
import numpy as np
#import nibabel as nb
import cv2
import os
from collections import OrderedDict
import pandas as pd
from SurfaceDice import compute_surface_distances, compute_surface_dice_at_tolerance, compute_dice_coefficient
join =... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | evaluation/abdomen_NSD_Eval.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:34.405711 | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 15 12:59:48 2022
@author: 12593
"""
import sys
import numpy as np
import nibabel as nb
import os
from collections import OrderedDict
import pandas as pd
from SurfaceDice import compute_surface_distances, compute_surface_dice_at_tolerance, compute_dice_coefficient
join = o... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | evaluation/compute_cell_metric.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:34.447501 | """
Created on Thu Mar 31 18:10:52 2022
adapted form https://github.com/stardist/stardist/blob/master/stardist/matching.py
Thanks the authors of Stardist for sharing the great code
"""
import argparse
import numpy as np
from numba import jit
from scipy.optimize import linear_sum_assignment
from collections import Ord... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | evaluation/abdomen_DSC_Eval.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:34.915730 | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 15 12:59:48 2022
@author: 12593
"""
import numpy as np
import nibabel as nb
import os
from collections import OrderedDict
import pandas as pd
from SurfaceDice import compute_surface_distances, compute_surface_dice_at_tolerance, compute_dice_coefficient
join = os.path.joi... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | evaluation/SurfaceDice.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:34.917027 | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 15 13:01:08 2022
@author: 12593
"""
import numpy as np
import scipy.ndimage
# neighbour_code_to_normals is a lookup table.
# For every binary neighbour code
# (2x2x2 neighbourhood = 8 neighbours = 8 bits = 256 codes)
# it contains the surface normals of the triangles... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | assets/create_visualization_video.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:35.186154 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 2 20:27:52 2024
This script is used to generate the visualization video for the segmentation results.
author (@GitHub ID): Zhihe Wang (@h1shen), Feifei Li (@ff98li), Jun Ma (@JunMa11)
"""
import cv2
import os
join = os.path.join
list... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.