text
stringlengths
12
786k
let find_relay_agent_information = find_option ( function Relay_agent_information x -> Some x | _ -> None )
let find_isns = find_option ( function Isns x -> Some x | _ -> None )
let find_nds_servers = find_option ( function Nds_servers x -> Some x | _ -> None )
let find_nds_tree_name = find_option ( function Nds_tree_name x -> Some x | _ -> None )
let find_nds_context = find_option ( function Nds_context x -> Some x | _ -> None )
let find_bcmcs_controller_domain_name = find_option ( function Bcmcs_controller_domain_name_list x -> Some x | _ -> None )
let collect_bcmcs_controller_ipv4_addrs = collect_options ( function Bcmcs_controller_ipv4_addrs x -> Some x | _ -> None )
let find_authentication = find_option ( function Authentication x -> Some x | _ -> None )
let find_client_last_transaction_time = find_option ( function Client_last_transaction_time x -> Some x | _ -> None )
let collect_associated_ips = collect_options ( function Associated_ips x -> Some x | _ -> None )
let find_client_system = find_option ( function Client_system x -> Some x | _ -> None )
let find_client_ndi = find_option ( function Client_ndi x -> Some x | _ -> None )
let find_ldap = find_option ( function Ldap x -> Some x | _ -> None )
let find_uuid_guid = find_option ( function Uuid_guid x -> Some x | _ -> None )
let find_user_auth = find_option ( function User_auth x -> Some x | _ -> None )
let find_geoconf_civic = find_option ( function Geoconf_civic x -> Some x | _ -> None )
let find_pcode = find_option ( function Pcode x -> Some x | _ -> None )
let find_tcode = find_option ( function Tcode x -> Some x | _ -> None )
let find_netinfo_address = find_option ( function Netinfo_address x -> Some x | _ -> None )
let find_netinfo_tag = find_option ( function Netinfo_tag x -> Some x | _ -> None )
let find_url = find_option ( function Url x -> Some x | _ -> None )
let find_auto_config = find_option ( function Auto_config x -> Some x | _ -> None )
let find_name_service_search = find_option ( function Name_service_search x -> Some x | _ -> None )
let find_subnet_selection = find_option ( function Subnet_selection x -> Some x | _ -> None )
let find_domain_search = find_option ( function Domain_search x -> Some x | _ -> None )
let find_sip_servers = find_option ( function Sip_servers x -> Some x | _ -> None )
let find_classless_static_route = find_option ( function Classless_static_route x -> Some x | _ -> None )
let find_ccc = find_option ( function Ccc x -> Some x | _ -> None )
let find_geoconf = find_option ( function Geoconf x -> Some x | _ -> None )
let find_vi_vendor_class = find_option ( function Vi_vendor_class x -> Some x | _ -> None )
let find_vi_vendor_info = find_option ( function Vi_vendor_info x -> Some x | _ -> None )
let find_pxe_128 = find_option ( function Pxe_128 x -> Some x | _ -> None )
let find_pxe_129 = find_option ( function Pxe_129 x -> Some x | _ -> None )
let find_pxe_130 = find_option ( function Pxe_130 x -> Some x | _ -> None )
let find_pxe_131 = find_option ( function Pxe_131 x -> Some x | _ -> None )
let find_pxe_132 = find_option ( function Pxe_132 x -> Some x | _ -> None )
let find_pxe_133 = find_option ( function Pxe_133 x -> Some x | _ -> None )
let find_pxe_134 = find_option ( function Pxe_134 x -> Some x | _ -> None )
let find_pxe_135 = find_option ( function Pxe_135 x -> Some x | _ -> None )
let find_pana_agent = find_option ( function Pana_agent x -> Some x | _ -> None )
let find_v4_lost = find_option ( function V4_lost x -> Some x | _ -> None )
let find_capwap_ac_v4 = find_option ( function Capwap_ac_v4 x -> Some x | _ -> None )
let find_ipv4_address_mos = find_option ( function Ipv4_address_mos x -> Some x | _ -> None )
let find_ipv4_fqdn_mos = find_option ( function Ipv4_fqdn_mos x -> Some x | _ -> None )
let find_sip_ua_domains = find_option ( function Sip_ua_domains x -> Some x | _ -> None )
let find_ipv4_address_andsf = find_option ( function Ipv4_address_andsf x -> Some x | _ -> None )
let find_geolock = find_option ( function Geolock x -> Some x | _ -> None )
let find_forcenew_nonce_capable = find_option ( function Forcenew_nonce_capable x -> Some x | _ -> None )
let find_rdnss_selection = find_option ( function Rdnss_selection x -> Some x | _ -> None )
let find_misc_150 = find_option ( function Misc_150 x -> Some x | _ -> None )
let find_status_code = find_option ( function Status_code x -> Some x | _ -> None )
let find_absolute_time = find_option ( function Absolute_time x -> Some x | _ -> None )
let find_start_time_of_state = find_option ( function Start_time_of_state x -> Some x | _ -> None )
let find_query_start_time = find_option ( function Query_start_time x -> Some x | _ -> None )
let find_query_end_time = find_option ( function Query_end_time x -> Some x | _ -> None )
let find_dhcp_state = find_option ( function Dhcp_state x -> Some x | _ -> None )
let find_data_source = find_option ( function Data_source x -> Some x | _ -> None )
let find_v4_pcp_server = find_option ( function V4_pcp_server x -> Some x | _ -> None )
let find_v4_portparams = find_option ( function V4_portparams x -> Some x | _ -> None )
let find_dhcp_captive_portal = find_option ( function Dhcp_captive_portal x -> Some x | _ -> None )
let find_etherboot_175 = find_option ( function Etherboot_175 x -> Some x | _ -> None )
let find_ip_telefone = find_option ( function Ip_telefone x -> Some x | _ -> None )
let find_etherboot_177 = find_option ( function Etherboot_177 x -> Some x | _ -> None )
let find_pxe_linux = find_option ( function Pxe_linux x -> Some x | _ -> None )
let find_configuration_file = find_option ( function Configuration_file x -> Some x | _ -> None )
let find_path_prefix = find_option ( function Path_prefix x -> Some x | _ -> None )
let find_reboot_time = find_option ( function Reboot_time x -> Some x | _ -> None )
let find_option_6rd = find_option ( function Option_6rd x -> Some x | _ -> None )
let find_v4_access_domain = find_option ( function V4_access_domain x -> Some x | _ -> None )
let find_subnet_allocation = find_option ( function Subnet_allocation x -> Some x | _ -> None )
let find_virtual_subnet_selection = find_option ( function Virtual_subnet_selection x -> Some x | _ -> None )
let find_web_proxy_auto_disc = find_option ( function Web_proxy_auto_disc x -> Some x | _ -> None )
let find_unassigned code = find_option ( function Unassigned ( c , s ) when c = code -> Some ( c , s ) | _ -> None )
let collect_unassigned code = collect_options ( function Unassigned ( c , s ) when c = code -> Some [ ( c , s ) ] | _ -> None )
let find_private_classless_static_route = find_option ( function Private_classless_static_route x -> Some x | _ -> None )
type response = { r_conditions : string option ; r_output : json option ; r_context : json option ; }
type slot = { s_prompt : output_def ; s_conditions : string ; s_variable : string ; s_context : json option ; s_match : response list ; s_nomatch : response list ; }
type node = { n_dialog_node : string ; n_description : string option ; n_conditions : string option ; n_prompt : output_def ; n_reactions : response list ; n_responses : response list ; n_slots : slot list ; n_metadata : json option ; n_next_step : next_step option ; n_created : string op...
type dialog = | D of ( node * dialog ) list
let ( ) >>= x f = match x with Ok x -> f x | ( Error _ ) as x -> x
let ( ) >|= x f = x >>= fun x -> Ok ( f x )
let rec map_bind f acc xs = match xs with | x :: xs -> f x >>= fun x -> map_bind f ( x :: acc ) xs | [ ] -> Ok ( List . rev acc )
type ' a error_or = ( ' a , string ) result
type workspace_ids = { ws_dispatch_id : string ; ws_when_id : string ; ws_cond_id : string ; ws_cond_continue_id : string ; ws_then_id : string ; ws_expr_id : string ; ws_actn_id : string ; ws_accept_id : string ; }
type ' a dispatch = { dsp_replace : bool ; dsp_abort : bool ; dsp_number : ' a option ; dsp_when : bool ; dsp_cond : bool ; dsp_then : bool ; }
let rec dispatch_to_yojson : ' a . ( ' a -> Yojson . Safe . json ) -> ' a dispatch -> Yojson . Safe . json = fun poly_a -> ( ( fun x -> let fields = [ ] in let fields = ( " dsp_then " , ( ( fun x -> ` Bool x ) x . dsp_then ) ) :: fields in let fields = ( "...
let int_dispatch_of_yojson = dispatch_of_yojson ( fun json -> match json with | ` Int n -> Ok n | _ -> Error ( " int_dispatch_of_yojson : " ^ ( Yojson . Safe . pretty_to_string json ) ) )
let string_dispatch_to_yojson = dispatch_to_yojson ( fun x -> ` String x )
let bypass_expr input = try let regexp = Str . regexp " ` ( . ) ` " \\*\\ in let _ = Str . search_forward regexp input 0 in let quoted_string = Str . matched_group 1 input in try Some ( false , ( Parser_util . parse_cnl_expr_from_string quoted_string ) ) with | e -> ( Io_util...
let bypass_empty input = None
let match_string s = try try let regexp = Str . regexp " " ( . ) " " \\\*\\\ in let _ = Str . search_forward regexp s 0 in let string = Str . matched_group 1 s in let s_minus_string = Str . global_replace regexp " " s in Some ( s_minus_string , string ) with | Not_found -> let...
let debug_message req resp = Format . eprintf " request :@\ n % s @\ n " ( Wcs_j . string_of_message_request req ) ; Format . eprintf " response :@\ n % s . " @ ( Wcs_j . string_of_message_response resp )
let string str = unsafe_string str 0 ( String . length str )
let bytes b = string ( Bytes . unsafe_to_string b )
let substring str ofs len = if ofs < 0 || len < 0 || ofs > String . length str - len then invalid_arg " Digest . substring " else unsafe_string str ofs len
let subbytes b ofs len = substring ( Bytes . unsafe_to_string b ) ofs len
let file filename = let ic = open_in_bin filename in match channel ic ( - 1 ) with | d -> close_in ic ; d | exception e -> close_in ic ; raise e
let output chan digest = output_string chan digest
let input chan = really_input_string chan 16
let char_hex n = Char . unsafe_chr ( n + if n < 10 then Char . code ' 0 ' else ( Char . code ' a ' - 10 ) )