This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| KEYCHAIN_PASSWORD=$MATCH_KEYCHAIN_PASSWORD | |
| SYSTEM_KEYCHAIN=/Library/Keychains/System.keychain | |
| AUTHORISATION=(-T /usr/bin/security -T /usr/bin/codesign -T /usr/bin/xcodebuild) | |
| # Re-create System Keychain | |
| echo "Re-Creating System Keychain" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| KEYCAHIN_PASSWORD=$MATCH_KEYCHAIN_PASSWORD | |
| SYSTEM_KEYCHAIN=/Library/Keychains/System.keychain | |
| AUTHORISATION=(-T /usr/bin/security -T /usr/bin/codesign -T /usr/bin/xcodebuild) | |
| # Re-create System Keychain | |
| echo "Re-Creating System Keychain" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| infinite_slope = object() | |
| from collections import defaultdict | |
| def slope_intercept(p1, p2): | |
| run = p2[0] - p1[0] | |
| rise = p2[1] - p2[1] | |
| if run == 0: | |
| slope = infinite_slope() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| scale-y = "1.0 - v-timing + initial-x-offset"; | |
| scale-x = "1.0 - v-timing"; | |
| offset-x = "v-timing * (window-width / 2)"; | |
| offset-y = "v-timing * (window-height / 2)"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class StructLogCloudLoggingHandler(google_logging_v2.handlers.CloudLoggingHandler): | |
| _allowed_types = (dict, list, bool, str, int, float) | |
| _max_depth = 3 | |
| def _make_suitable_for_pb_conversion(self, dict_value, depth=0): | |
| if depth > self._max_depth: | |
| return | |
| for key in list(dict_value.keys()): | |
| value = dict_value[key] | |
| if isinstance(value, tuple): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import itertools | |
| from typing import List | |
| Y_AXIS = object() | |
| X_AXIS = object() | |
| def max_points(points: List[List[int]]) -> int: | |
| if len(points) == 1: | |
| return 1 | |
| if not points: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from typing import List | |
| import numpy as np | |
| import pytest | |
| import sqlalchemy as sa | |
| from railbird import containers, datatypes, shot_parsing, video | |
| from railbird.datatypes import models | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @pytest.mark.writes_db | |
| @pytest.mark.runs_model | |
| def test_jaws_combos( | |
| video_container_factory, | |
| get_feature_extractions, | |
| video_factory, | |
| sync_sessionmaker, | |
| user_factory, | |
| ): | |
| container = video_container_factory("4.mov") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useApolloClient } from "@apollo/client"; | |
| import { default as React } from "react"; | |
| import { | |
| Linking, | |
| StyleSheet, | |
| Text, | |
| TouchableOpacity, | |
| View, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class HatchetClient: | |
| def __init__( | |
| self, | |
| workflows: Dict[str, Any], | |
| sync_hatchet: Hatchet, | |
| async_hatchet: AsyncClientProxy[Hatchet], | |
| async_sessionmaker: sqlalchemy_async_sessionmaker, | |
| path_resolver: SegmentedVideoPathResolver, | |
| ): | |
| self._workflows = workflows |