text stringlengths 0 601k |
|---|
let init dir = datadir := Some dir |
let then_false ( ) = Lwt . return_false |
let do_compile hash p = get_datadir ( ) >>= fun datadir -> let source_dir = datadir // Protocol_hash . to_short_b58check hash // " src " in let log_file = datadir // Protocol_hash . to_short_b58check hash // " LOG " in let plugin_file = datadir // Protocol_hash . to_short_b58check hash // Format . asprintf " protocol_ ... |
let compile hash p = if Tezos_protocol_registerer . Registerer . mem hash then Lwt . return_true else do_compile hash p >>= fun success -> let loaded = Tezos_protocol_registerer . Registerer . mem hash in if success && not loaded then Events . ( emit internal_error ) hash >>= fun ( ) -> Lwt . return loaded else Lwt . r... |
let node_uninitialized = declare_0 ~ section ~ level ~ name " : node_uninitialized " ~ msg " : node not initialized " ( ) |
let compiler_exit_error = declare_1 ~ section ~ level ~ name " : compiler_exit_error " ~ msg " : error : { error } " ( " error " , Error_monad . ( TzTrace . encoding error_encoding ) ) |
let compilation_interrupted = declare_1 ~ section ~ level ~ name " : compilation_interrupted " ~ msg " : compilation interrupted ( see logs in : { filename } ) " ( " filename " , Data_encoding . string ) |
let compilation_error = declare_1 ~ section ~ level ~ name " : compilation_error " ~ msg " : compilation error ( logs in file : { filename } ) " ( " filename " , Data_encoding . string ) |
let dynlink_error = declare_2 ~ section ~ level ~ name " : dynlink_error " ~ msg " : can ' t load plugin : { plugin } ( { reason } ) " ( " plugin " , Data_encoding . string ) ( " reason " , Data_encoding . string ) |
let dynlink_error_static = declare_2 ~ section ~ level ~ name " : dynlink_error_static " ~ msg : " can ' t load plugin either because the binary is statically linked or \ because there was an error in its compilation : { plugin } ( { reason } ) " ( " plugin " , Data_encoding . string ) ( " reason " , Data_encoding . st... |
let internal_error = declare_1 ~ section ~ level ~ name " : internal_error " ~ msg " : internal error while compiling { protocol } " ( " protocol " , Protocol_hash . encoding ) |
let to_http service region req = let uri = Uri . add_query_params ( Uri . of_string ( Aws . Util . of_option_exn ( Endpoints . url_of service region ) ) ) ( List . append [ ( " Version " , [ " 2016 - 11 - 15 " ] ) ; ( " Action " , [ " UpdateSecurityGroupRuleDescriptionsEgress " ] ) ] ( Util . drop_empty ( Uri . query_o... |
let of_http body = try let xml = Ezxmlm . from_string body in let resp = Xml . member " UpdateSecurityGroupRuleDescriptionsEgressResponse " ( snd xml ) in try Util . or_error ( Util . option_bind resp UpdateSecurityGroupRuleDescriptionsEgressResult . parse ) ( let open Error in BadResponse { body ; message = " Could no... |
let parse_error code err = let errors = [ ] @ Errors_internal . common in match Errors_internal . of_string err with | Some var -> if ( List . mem var errors ) && ( ( match Errors_internal . to_http_code var with | Some var -> var = code | None -> true ) ) then Some var else None | None -> None |
let to_http service region req = let uri = Uri . add_query_params ( Uri . of_string ( Aws . Util . of_option_exn ( Endpoints . url_of service region ) ) ) ( List . append [ ( " Version " , [ " 2016 - 11 - 15 " ] ) ; ( " Action " , [ " UpdateSecurityGroupRuleDescriptionsIngress " ] ) ] ( Util . drop_empty ( Uri . query_... |
let of_http body = try let xml = Ezxmlm . from_string body in let resp = Xml . member " UpdateSecurityGroupRuleDescriptionsIngressResponse " ( snd xml ) in try Util . or_error ( Util . option_bind resp UpdateSecurityGroupRuleDescriptionsIngressResult . parse ) ( let open Error in BadResponse { body ; message = " Could ... |
let parse_error code err = let errors = [ ] @ Errors_internal . common in match Errors_internal . of_string err with | Some var -> if ( List . mem var errors ) && ( ( match Errors_internal . to_http_code var with | Some var -> var = code | None -> true ) ) then Some var else None | None -> None |
let to_http service region req = let uri = Uri . add_query_params ( Uri . of_string ( Aws . Util . of_option_exn ( Endpoints . url_of service region ) ) ) ( List . append [ ( " Version " , [ " 2010 - 05 - 15 " ] ) ; ( " Action " , [ " UpdateStack " ] ) ] ( Util . drop_empty ( Uri . query_of_encoded ( Query . render ( U... |
let of_http body = try let xml = Ezxmlm . from_string body in let resp = Util . option_bind ( Xml . member " UpdateStackResponse " ( snd xml ) ) ( Xml . member " UpdateStackResult " ) in try Util . or_error ( Util . option_bind resp UpdateStackOutput . parse ) ( let open Error in BadResponse { body ; message = " Could ... |
let parse_error code err = let errors = [ ] @ Errors_internal . common in match Errors_internal . of_string err with | Some var -> if ( List . mem var errors ) && ( ( match Errors_internal . to_http_code var with | Some var -> var = code | None -> true ) ) then Some var else None | None -> None |
let to_http service region req = let uri = Uri . add_query_params ( Uri . of_string ( Aws . Util . of_option_exn ( Endpoints . url_of service region ) ) ) ( List . append [ ( " Version " , [ " 2010 - 05 - 15 " ] ) ; ( " Action " , [ " UpdateStackInstances " ] ) ] ( Util . drop_empty ( Uri . query_of_encoded ( Query . r... |
let of_http body = try let xml = Ezxmlm . from_string body in let resp = Util . option_bind ( Xml . member " UpdateStackInstancesResponse " ( snd xml ) ) ( Xml . member " UpdateStackInstancesResult " ) in try Util . or_error ( Util . option_bind resp UpdateStackInstancesOutput . parse ) ( let open Error in BadResponse ... |
let parse_error code err = let errors = [ ] @ Errors_internal . common in match Errors_internal . of_string err with | Some var -> if ( List . mem var errors ) && ( ( match Errors_internal . to_http_code var with | Some var -> var = code | None -> true ) ) then Some var else None | None -> None |
let to_http service region req = let uri = Uri . add_query_params ( Uri . of_string ( Aws . Util . of_option_exn ( Endpoints . url_of service region ) ) ) ( List . append [ ( " Version " , [ " 2010 - 05 - 15 " ] ) ; ( " Action " , [ " UpdateStackSet " ] ) ] ( Util . drop_empty ( Uri . query_of_encoded ( Query . render ... |
let of_http body = try let xml = Ezxmlm . from_string body in let resp = Util . option_bind ( Xml . member " UpdateStackSetResponse " ( snd xml ) ) ( Xml . member " UpdateStackSetResult " ) in try Util . or_error ( Util . option_bind resp UpdateStackSetOutput . parse ) ( let open Error in BadResponse { body ; message =... |
let parse_error code err = let errors = [ ] @ Errors_internal . common in match Errors_internal . of_string err with | Some var -> if ( List . mem var errors ) && ( ( match Errors_internal . to_http_code var with | Some var -> var = code | None -> true ) ) then Some var else None | None -> None |
let to_http service region req = let uri = Uri . add_query_params ( Uri . of_string ( Aws . Util . of_option_exn ( Endpoints . url_of service region ) ) ) ( List . append [ ( " Version " , [ " 2010 - 05 - 15 " ] ) ; ( " Action " , [ " UpdateTerminationProtection " ] ) ] ( Util . drop_empty ( Uri . query_of_encoded ( Qu... |
let of_http body = try let xml = Ezxmlm . from_string body in let resp = Util . option_bind ( Xml . member " UpdateTerminationProtectionResponse " ( snd xml ) ) ( Xml . member " UpdateTerminationProtectionResult " ) in try Util . or_error ( Util . option_bind resp UpdateTerminationProtectionOutput . parse ) ( let open ... |
let parse_error code err = let errors = [ ] @ Errors_internal . common in match Errors_internal . of_string err with | Some var -> if ( List . mem var errors ) && ( ( match Errors_internal . to_http_code var with | Some var -> var = code | None -> true ) ) then Some var else None | None -> None |
let to_http service region req = let uri = Uri . add_query_params ( Uri . of_string ( Aws . Util . of_option_exn ( Endpoints . url_of service region ) ) ) ( List . append [ ( " Version " , [ " 2013 - 04 - 01 " ] ) ; ( " Action " , [ " UpdateTrafficPolicyComment " ] ) ] ( Util . drop_empty ( Uri . query_of_encoded ( Que... |
let of_http body = try let xml = Ezxmlm . from_string body in let resp = Xml . member " UpdateTrafficPolicyCommentResponse " ( snd xml ) in try Util . or_error ( Util . option_bind resp UpdateTrafficPolicyCommentResponse . parse ) ( let open Error in BadResponse { body ; message = " Could not find well formed UpdateTra... |
let parse_error code err = let errors = [ ] @ Errors_internal . common in match Errors_internal . of_string err with | Some var -> if ( List . mem var errors ) && ( ( match Errors_internal . to_http_code var with | Some var -> var = code | None -> true ) ) then Some var else None | None -> None |
let to_http service region req = let uri = Uri . add_query_params ( Uri . of_string ( Aws . Util . of_option_exn ( Endpoints . url_of service region ) ) ) ( List . append [ ( " Version " , [ " 2013 - 04 - 01 " ] ) ; ( " Action " , [ " UpdateTrafficPolicyInstance " ] ) ] ( Util . drop_empty ( Uri . query_of_encoded ( Qu... |
let of_http body = try let xml = Ezxmlm . from_string body in let resp = Xml . member " UpdateTrafficPolicyInstanceResponse " ( snd xml ) in try Util . or_error ( Util . option_bind resp UpdateTrafficPolicyInstanceResponse . parse ) ( let open Error in BadResponse { body ; message = " Could not find well formed UpdateT... |
let parse_error code err = let errors = [ ] @ Errors_internal . common in match Errors_internal . of_string err with | Some var -> if ( List . mem var errors ) && ( ( match Errors_internal . to_http_code var with | Some var -> var = code | None -> true ) ) then Some var else None | None -> None |
let to_http service region req = let uri = Uri . add_query_params ( Uri . of_string ( Aws . Util . of_option_exn ( Endpoints . url_of service region ) ) ) ( List . append [ ( " Version " , [ " 2013 - 11 - 01 " ] ) ; ( " Action " , [ " UpdateTrail " ] ) ] ( Util . drop_empty ( Uri . query_of_encoded ( Query . render ( U... |
let of_http body = try let xml = Ezxmlm . from_string body in let resp = Xml . member " UpdateTrailResponse " ( snd xml ) in try Util . or_error ( Util . option_bind resp UpdateTrailResponse . parse ) ( let open Error in BadResponse { body ; message = " Could not find well formed UpdateTrailResponse . " } ) with | Xml ... |
let parse_error code err = let errors = [ ] @ Errors_internal . common in match Errors_internal . of_string err with | Some var -> if ( List . mem var errors ) && ( ( match Errors_internal . to_http_code var with | Some var -> var = code | None -> true ) ) then Some var else None | None -> None |
let int_of_uchar u = UChar . uint_code u |
let uchar_of_int n = UChar . chr_of_uint n |
let sprint_uchar u = let n = UChar . uint_code u in let n2 = n land 0xffff in let n1 = n lsr 16 in if n1 = 0 then Printf . sprintf " \\ u % 04X " n2 else Printf . sprintf " \\ U % 04X % 04X " n1 n2 |
let escaped_uchar u = let n = int_of_uchar u in if n > 0x7f || n < 0 then sprint_uchar u else Char . escaped ( Char . chr n ) n |
let backslash = Char . code ' \\ ' |
let escaped_utf8 s = let buf = Buffer . create 0 in let proc u = let n = int_of_uchar u in if n > 0x7f || n < 0 then Buffer . add_string buf ( sprint_uchar u ) u else Buffer . add_string buf ( String . escaped ( String . make 1 ( Char . chr n ) n ) n ) n in UTF8 . iter proc s ; Buffer . contents buf |
let printer_utf8 f s = let b = UTF8 . Buf . create 0 in UTF8 . iter ( fun u -> if UChar . uint_code u = 92 then UTF8 . Buf . add_string b " " \\\\ else if UChar . uint_code u < 0x80 then UTF8 . Buf . add_char b u else let s = sprint_uchar u in UTF8 . Buf . add_string b s ) s s ; let s = UTF8 . Buf . contents b in Forma... |
let printer_uchar f u = Format . fprintf f " ' % s ' " ( if UChar . uint_code u = backslash then " " \\\\ else if UChar . uint_code u < 0x80 then UTF8 . init 1 ( fun _ -> u ) u else sprint_uchar u ) u |
let src = Logs . Src . create " websocket . upgrade_connection " |
let lwt_reporter ( ) = let buf_fmt ~ like = let b = Buffer . create 512 in ( Fmt . with_buffer ~ like b , fun ( ) -> let m = Buffer . contents b in Buffer . reset b ; m ) in let app , app_flush = buf_fmt ~ like : Fmt . stdout in let dst , dst_flush = buf_fmt ~ like : Fmt . stderr in let reporter = Logs_fmt . reporter ~... |
let handler ( _ , conn ) req body = let open Frame in Logs_lwt . app ~ src ( fun m -> m " [ CONN ] % a " Sexplib . Sexp . pp ( Cohttp . Connection . sexp_of_t conn ) ) >>= fun _ -> let uri = Cohttp . Request . uri req in match Uri . path uri with | " " / -> Logs_lwt . app ~ src ( fun m -> m " [ PATH ] " ) / >>= fun ( )... |
let start_server ? tls port = let conn_closed ( _ , c ) = Logs . app ~ src ( fun m -> m " [ SERV ] connection % a closed " Sexplib . Sexp . pp ( Cohttp . Connection . sexp_of_t c ) ) in Logs_lwt . app ~ src ( fun m -> m " [ SERV ] Listening for HTTP on port % d " port ) >>= fun ( ) -> let mode = match tls with | None -... |
let ( ) = Logs . ( set_reporter ( lwt_reporter ( ) ) ) ; let port = ref 7777 in let cert = ref " " in let key = ref " " in let speclist = Arg . align [ ( " - cert " , Arg . Set_string cert , " cert file " ) ; ( " - key " , Arg . Set_string key , " key file " ) ; ( " - v " , Arg . Unit ( fun ( ) -> Logs . set_level ( So... |
let old_data = { Format_v1 . a = Some 1 ; b = true ; c = Some 3 ; d = 4 . 0 ; } |
let print_old_data ( ) = let ob = Bi_outbuf . create_channel_writer stdout in Format_v1 . write_t ob old_data ; Bi_outbuf . flush_channel_writer ob ; flush stdout |
let convert x = Format_v2 . t_of_string ( Format_v1 . string_of_t ~ len : 100 x ) |
let print_new_data ( ) = let new_data = convert old_data in let ob = Bi_outbuf . create_channel_writer stdout in Format_v2 . write_t ob new_data ; Bi_outbuf . flush_channel_writer ob ; flush stdout |
let upgrade ( ) = let ib = Bi_inbuf . from_channel stdin in let x = Format_v2 . read_t ib in let ob = Bi_outbuf . create_channel_writer stdout in Format_v2 . write_t ob x ; Bi_outbuf . flush_channel_writer ob ; flush stdout |
let usage ( ) = eprintf " \ " %! Sys . argv . ( 0 ) ; exit 1 |
let main ( ) = match Sys . argv with [ | _ ; action ] | -> ( match action with " old " -> print_old_data ( ) | " new " -> print_new_data ( ) | " up " -> upgrade ( ) | _ -> usage ( ) ) | _ -> usage ( ) |
let ( ) = main ( ) |
let src = Logs . Src . create " uplink " ~ doc " : Network connection to NetVM " |
module Log = ( val Logs . src_log src : Logs . LOG ) |
module Make ( R : Mirage_random . S ) ( Clock : Mirage_clock . MCLOCK ) = struct module Arp = Arp . Make ( Eth ) ( OS . Time ) module I = Static_ipv4 . Make ( R ) ( Clock ) ( Eth ) ( Arp ) module U = Udp . Make ( I ) ( R ) type t = { net : Netif . t ; eth : Eth . t ; arp : Arp . t ; interface : interface ; mutable frag... |
let interface t = t . interface |
let connect config = let my_ip = config . Dao . uplink_our_ip in let gateway = config . Dao . uplink_netvm_ip in Netif . connect " 0 " >>= fun net -> Eth . connect net >>= fun eth -> Arp . connect eth >>= fun arp -> Arp . add_ip arp my_ip >>= fun ( ) -> let cidr = Ipaddr . V4 . Prefix . make 0 my_ip in I . connect ~ ci... |
type ' a t = | Begin of ( [ ` Begin ] , ' a ODBUpload . t ) Task . t | Edit of ' a ODBUpload . t * LogBox . t | Commit of ' a ODBUpload . t * ( [ ` Commit ] , ODBPkgVer . t ) Task . t | Cancel of ( [ ` Cancel ] , unit ) Task . t |
let upload_data = create_volatile_table ( ) |
let upload_data_set ~ sp id t = let hsh = match get_volatile_session_data ~ table : upload_data ~ sp ( ) with | Data hsh -> hsh | Data_session_expired | No_data -> let hsh = Hashtbl . create 2 in set_volatile_session_data ~ table : upload_data ~ sp hsh ; hsh in Hashtbl . replace hsh id t |
let upload_data_unset ~ sp id = match get_volatile_session_data ~ table : upload_data ~ sp ( ) with | Data hsh -> Hashtbl . remove hsh id | Data_session_expired | No_data -> ( ) |
let upload_data_get ~ sp id = match get_volatile_session_data ~ table : upload_data ~ sp ( ) with | Data hsh -> Hashtbl . find hsh id | Data_session_expired | No_data -> raise Not_found |
let upload_template ~ ctxt ~ sp ? extra_headers ctnt = template ~ ctxt ~ sp ~ title ( : OneTitle ( s_ " Upload " ) ) ~ div_id " : upload " ? extra_headers ctnt |
let upload_completion_box ~ ctxt ~ sp id upload = let service = Eliom_predefmod . Action . register_new_post_coservice_for_session ' ~ sp ~ name " : upload_completion_action " ~ post_params ( : opt ( string " publink " ) ** string " package " ** ExtParams . version " version " ** int " order " ** int " id " ) ~ keep_ge... |
let upload_preview_box ~ ctxt ~ sp id upload = catch ( fun ( ) -> upload_phantom_storage ~ ctxt : ctxt . odb upload >>= fun ( pkg_ver , stor ) -> ODBStorage . PkgVer . oasis stor ( ` PkgVer pkg_ver ) >>= fun oasis_opt -> begin let ctxt = { ( Context . anonymize ctxt ) with stor = stor } in PkgVerViewCommon . preview_bo... |
let upload_confirm_action = Eliom_predefmod . Action . register_new_post_coservice ' ~ name " : upload_confirm_action " ~ post_params ( : string " action " ** int " id " ) ~ keep_get_na_params : false ( fun sp id ( action , id ) -> Context . get_user ~ sp ( ) >>= fun ( ctxt , _ ) -> begin match upload_data_get ~ sp id ... |
let upload_confirm_box ~ ctxt ~ sp id is_ok upload = return ( post_form ~ service : upload_confirm_action ~ sp ( fun ( action , id ' ) -> [ p [ int_input ~ input_type ` : Hidden ~ name : id ' ~ value : id ( ) ; string_button ~ name : action ~ value " : cancel " [ pcdata ( s_ " Cancel upload " ) ] ; string_button ~ a ( ... |
let upload_edit_box ~ ctxt ~ sp id upload log = upload_preview_box ~ ctxt ~ sp id upload >>= fun ( is_ok_preview , preview_box ) -> upload_completion_box ~ ctxt ~ sp id upload >>= fun ( is_ok_completion , completion_box ) -> upload_confirm_box ~ ctxt ~ sp id ( is_ok_preview && is_ok_completion ) upload >>= fun action_b... |
let upload_init_check tarball_fd publink_opt = try let publink_opt = match publink_opt with | Some s -> begin match ExtString . String . strip s with | " " -> None | s -> Some s end | None -> None in let tarball_nm = match get_original_filename tarball_fd with | " none " -> failwith ( s_ " No tarball uploaded , be sure... |
let upload_init_action = Eliom_predefmod . Action . register_new_post_coservice ' ~ name " : upload_tarball " ~ post_params ( : string " publink " ** file " tarball " ** int " id " ) ( fun sp _ ( publink , ( tarball_fd , id ) ) -> Context . get_user ~ sp ( ) >>= fun ( ctxt , accnt ) -> upload_init_check tarball_fd ( So... |
let upload_init_box ~ ctxt ~ sp id = let upload_form = post_form ~ service : upload_init_action ~ sp ( fun ( publink , ( tarball , id_nm ) ) -> [ p [ pcdata ( s_ " Tarball : " ) ; file_input ~ a [ : a_accept " application / x - bzip2 ; \ application / zip ; \ application / x - gzip " ] ~ name : tarball ( ) ; br ( ) ; p... |
let upload_with_id = Eliom_predefmod . Any . register_new_service ~ path [ " : upload " ] ~ get_params ( : int " id " ) ( fun sp id ( ) -> Context . get_user ~ sp ( ) >>= fun ( ctxt , _ ) -> try match upload_data_get ~ sp id with | Begin task_upload -> begin Task . wait ~ ctxt task_upload ctxt . upload_delay ( s_ " The... |
let upload_id = ref 1 |
let upload_handler sp ( ) ( ) = incr upload_id ; return ( preapply upload_with_id ! upload_id ) |
type t = { stop_async_upload : bool ; upload_resource_by_id : int64 -> unit ; thread_pool : ThreadPool . t ; } |
let stop_async_upload = { GapiLens . get = ( fun x -> x . stop_async_upload ) ; GapiLens . set = ( fun v x -> { x with stop_async_upload = v } ) ; } |
let upload_resource_by_id = { GapiLens . get = ( fun x -> x . upload_resource_by_id ) ; GapiLens . set = ( fun v x -> { x with upload_resource_by_id = v } ) ; } |
let thread_pool = { GapiLens . get = ( fun x -> x . thread_pool ) ; GapiLens . set = ( fun v x -> { x with thread_pool = v } ) ; } |
module ConcurrentUploadQueue = ConcurrentGlobal . Make ( struct type u = t let label = " upload - queue " end ) |
let upload_resource cache = let d = ConcurrentUploadQueue . get ( ) in let upload = d . upload_resource_by_id in let upload_entry = Cache . UploadQueue . select_next_resource cache in let do_work e = let entry_id = e . CacheData . UploadEntry . id in let resource_id = e . CacheData . UploadEntry . resource_id in Utils ... |
let poll_upload_queue cache = let check ( ) = let d = ConcurrentUploadQueue . get ( ) in if d . stop_async_upload then ( let entries = Cache . UploadQueue . count_entries cache in Utils . log_with_header " Waiting for pending uploads ( % d ) \ n " %! entries ; if entries = 0 then raise Exit ) in try while true do check... |
let start_async_upload_thread cache upload_threads upload_resource = let data = { stop_async_upload = false ; upload_resource_by_id = upload_resource ; thread_pool = ThreadPool . create ~ max_threads : upload_threads ( ) ; } in ConcurrentUploadQueue . set data ; let thread = Thread . create poll_upload_queue cache in U... |
let stop_async_upload_thread ( ) = ConcurrentUploadQueue . update ( fun q -> q |> stop_async_upload ^= true ) |
let queue_resource cache config resource = let resource_id = resource . CacheData . Resource . id in let wait_for_slot ( ) = let check ( ) = let max_length = config . Config . async_upload_queue_max_length in let entries = Cache . UploadQueue . count_entries cache in if entries >= max_length then Utils . log_with_heade... |
let o = Oauth . get_oauth auth_file |
let ( ) = Format . eprintf " % a . " @ ( Ocaml . format_with Api . People . GetUploadStatus . ocaml_of_user ) ( Poly_result . from_Ok & Job . run & People . getUploadStatus o ) |
let rev_dirs = ref [ ] |
let remove_non_local = ref false |
let upload_movie = ref false |
let ( ) = Arg . parse [ " - remove - non - local " , Arg . Set remove_non_local , " remove photos not in local directory from photoset ( the photo still exists in the flickr ) " ; " - upload - movie " , Arg . Set upload_movie , " upload movies too " ] ( fun x -> rev_dirs := x :: ! rev_dirs ) " uploads dirs . . " |
let dirs = List . rev ! rev_dirs |
let ( ) = let dirs = flip List . filter dirs & fun dir -> let b = File . Test . _d dir in if not b then !!% " WARNING : % s is not a directory . Skipped . . " @ dir ; b in flip List . iter dirs & fun dir -> let photoset = Filename . basename dir in assert ( photoset <> " " ) ; let photos = let acc = ref [ ] in Unix . F... |
let uri = ref " http :// 127 . 0 . 0 . 1 " / |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.