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 typing | |
| import cv2 as cv | |
| import numpy as np | |
| from galipa import Rect | |
| def contour_remove(image: 'cv.typing.MatLike', | |
| chunk: 'Rect', | 
  
    
      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
    
  
  
    
  | use deku::prelude::*; | |
| pub const SOCKS5_VERSION: u8 = 0x05; | |
| #[derive(Default, Copy, Clone, DekuRead, DekuWrite)] | |
| #[deku(id_type = "u8")] | |
| pub enum Version { | |
| #[default] | |
| #[deku(id = 0x05)] | |
| Socks5, | 
  
    
      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
    
  
  
    
  | use std::{ | |
| borrow::Cow, | |
| fmt::Debug, | |
| future::Future, | |
| net::SocketAddr, | |
| pin::Pin, | |
| task::{Context, Poll, ready}, | |
| time::Instant, | |
| }; | 
  
    
      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
    
  
  
    
  | edition="2021" | |
| group_imports="StdExternalCrate" | |
| imports_granularity="Crate" | |
| reorder_imports=true | |
| reorder_modules=true | 
  
    
      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
    
  
  
    
  | [http] | |
| proxy = "http://127.0.0.1:7890" | |
| [net] | |
| git-fetch-with-cli = true | |
| [profile.release] | |
| strip = true | |
| lto = true | 
  
    
      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
    
  
  
    
  | pub mod as_text { | |
| use std::{fmt::Display, str::FromStr}; | |
| use serde::{de::Error as DeError, Deserialize, Deserializer, Serializer}; | |
| #[derive(Deserialize)] | |
| #[serde(untagged)] | |
| enum OrText<'a, T> { | |
| Data(T), | |
| Text(&'a str), | 
  
    
      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
    
  
  
    
  | use std::{convert::Infallible, error::Error}; | |
| use axum::{ | |
| body::Body, | |
| http::{Request, Response}, | |
| Router, | |
| }; | |
| use tonic::{body::BoxBody, server::NamedService}; | |
| use tower::Service; | 
  
    
      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 Foundation; | |
| @import AVFoundation; | |
| @import VideoToolbox; | |
| @import AudioToolbox; | |
| void videoCompressTest(void); | |
| int main(int argc, const char * argv[]) { | |
| @autoreleasepool { | |
| videoCompressTest(); | 
  
    
      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
    
  
  
    
  | #[cfg(target_os = "android")] | |
| mod android { | |
| use crate::{ | |
| exceptions::PyBaseExceptionRef, stdlib::ssl::convert_openssl_error, VirtualMachine, | |
| }; | |
| use openssl::{ | |
| ssl::SslContextBuilder, | |
| x509::{store::X509StoreBuilder, X509}, | |
| }; | |
| use std::{ |