hexsha stringlengths 40 40 | size int64 3 1.05M | ext stringclasses 163
values | lang stringclasses 53
values | max_stars_repo_path stringlengths 3 945 | max_stars_repo_name stringlengths 4 112 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count float64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 945 | max_issues_repo_name stringlengths 4 113 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count float64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 945 | max_forks_repo_name stringlengths 4 113 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 3 1.05M | avg_line_length float64 1 966k | max_line_length int64 1 977k | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
affddcc8dc2c1ccefb74d461beca0b36aae078a2 | 1,167 | ml | OCaml | id.ml | namachan10777/S8 | 19c832291c4a9f2a5d7d58b43fea32ca833500fa | [
"Unlicense"
] | 1 | 2021-08-20T01:28:02.000Z | 2021-08-20T01:28:02.000Z | id.ml | namachan10777/naml | 19c832291c4a9f2a5d7d58b43fea32ca833500fa | [
"Unlicense"
] | 7 | 2021-02-22T07:48:28.000Z | 2021-02-26T10:24:35.000Z | id.ml | namachan10777/naml | 19c832291c4a9f2a5d7d58b43fea32ca833500fa | [
"Unlicense"
] | null | null | null | type t = string list * string * int
let show = function
| [], name, id -> Printf.sprintf "%s(%d)" name id
| prefix, name, id ->
Printf.sprintf "%s(%d)"
(List.fold_left
(fun name ident -> ident ^ "." ^ name)
name (List.rev prefix))
id
let pp fmt id = Format.... | 29.923077 | 67 | 0.524422 |
af93f25ca32737151892a4c2ebfbb90539c3ce02 | 26,219 | ml | OCaml | src/app/cli/src/tests/coda_worker_testnet.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/app/cli/src/tests/coda_worker_testnet.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/app/cli/src/tests/coda_worker_testnet.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | open Core
open Async
open Signature_lib
open Mina_base
open Pipe_lib
module Api = struct
type user_cmd_status = { expected_deadline : int; passed_root : unit Ivar.t }
type user_cmds_under_inspection = (User_command.t, user_cmd_status) Hashtbl.t
type restart_type = [ `Catchup | `Bootstrap ]
(* TODO: remove s... | 37.137394 | 109 | 0.582898 |
af919a966864e617e1018a951ba1c6fa5141707a | 7,829 | ml | OCaml | xapi-idl/lib/posix_channel.ml | edwintorok/message-switch | bd5c2e4db86998cba97b02ab2d4e1b91067e8817 | [
"0BSD"
] | 6 | 2015-05-09T18:10:05.000Z | 2022-02-04T19:09:55.000Z | xapi-idl/lib/posix_channel.ml | xcp-ng/message-switch | 969eb1d156c6db0e2009696ada305ec4bc765a9d | [
"0BSD"
] | 35 | 2015-04-08T10:32:16.000Z | 2021-11-05T15:17:13.000Z | xapi-idl/lib/posix_channel.ml | xcp-ng/message-switch | 969eb1d156c6db0e2009696ada305ec4bc765a9d | [
"0BSD"
] | 21 | 2015-06-17T13:55:18.000Z | 2022-02-04T19:13:23.000Z | let my_domid = 0 (* TODO: figure this out *)
exception End_of_file
exception Channel_setup_failed
module CBuf = struct
(** A circular buffer constructed from a string *)
type t = {
mutable buffer: bytes
; mutable len: int (** bytes of valid data in [buffer] *)
; mutable start: int (** index of fi... | 33.891775 | 83 | 0.553711 |
af866660045d64697fef48e9cd7da9d6e9da4340 | 4,689 | ml | OCaml | test/test_jubjub_conversions_between_forms.ml | dannywillems/ocaml-ec | 82bcddc87459a86d032549e75a9098ac7276de7c | [
"MIT"
] | 1 | 2022-02-01T11:14:20.000Z | 2022-02-01T11:14:20.000Z | test/test_jubjub_conversions_between_forms.ml | dannywillems/ocaml-ec | 82bcddc87459a86d032549e75a9098ac7276de7c | [
"MIT"
] | null | null | null | test/test_jubjub_conversions_between_forms.ml | dannywillems/ocaml-ec | 82bcddc87459a86d032549e75a9098ac7276de7c | [
"MIT"
] | null | null | null | open Mec.Curve.Jubjub
let rec repeat n f =
if n <= 0 then
let f () = () in
f
else (
f () ;
repeat (n - 1) f)
let test_generation () =
let pt_ed1 = AffineEdwards.random () in
let pt_mt1 = from_affine_edwards_to_affine_montgomery pt_ed1 in
assert (Option.(is_some pt_mt1)) ;
let pt_wt1 = from... | 40.422414 | 82 | 0.764769 |
f3be89c3a0b94a023aebaf5d8dc573879a04845a | 7,846 | ml | OCaml | data/derived/comb/progs/unify/prog3165.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | 4 | 2017-07-04T22:30:05.000Z | 2021-03-29T14:44:52.000Z | data/derived/sp14/progs/unify/prog3165.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3165.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 26.506757 | 148 | 0.690798 |
afc60d11846cfe9795158a2e5965415e0c30a159 | 11,508 | ml | OCaml | minos/path_producer.ml | chubbymaggie/bap-plugins | d61192ae1d47a62e764a74d285fac649219a4560 | [
"MIT"
] | null | null | null | minos/path_producer.ml | chubbymaggie/bap-plugins | d61192ae1d47a62e764a74d285fac649219a4560 | [
"MIT"
] | null | null | null | minos/path_producer.ml | chubbymaggie/bap-plugins | d61192ae1d47a62e764a74d285fac649219a4560 | [
"MIT"
] | null | null | null | open Bap.Std
open Core_kernel.Std
open Pathlib
open Options
open Simple
open Ctxt
open Check
open Trim
open Graphlib.Std
let (^::) = Seq.cons
let print_count ~v count =
if v then (Format.printf "%08d%!" count;
Format.printf "\x08\x08\x08\x08\x08\x08\x08\x08%!")
(** For each direct jmp, if the next blo... | 34.978723 | 83 | 0.677181 |
afb0a6ef1169d49cef49fb90d65497111c207370 | 12,248 | ml | OCaml | src/cdomains/exp.ml | mikcp/analyzer | c506fa4bfed6dfd4d81c549e7a4c59be8122a855 | [
"MIT"
] | 64 | 2015-02-21T12:09:08.000Z | 2022-03-30T14:38:16.000Z | src/cdomains/exp.ml | mikcp/analyzer | c506fa4bfed6dfd4d81c549e7a4c59be8122a855 | [
"MIT"
] | 507 | 2015-03-17T14:56:21.000Z | 2022-03-31T12:25:20.000Z | src/cdomains/exp.ml | mikcp/analyzer | c506fa4bfed6dfd4d81c549e7a4c59be8122a855 | [
"MIT"
] | 39 | 2015-05-03T19:46:24.000Z | 2022-03-30T14:38:18.000Z | open Pretty
open Cil
module Exp =
struct
include CilType.Exp
let name () = "Cil expressions"
(* TODO: what does interesting mean? *)
let rec interesting x =
match x with
| SizeOf _
| SizeOfE _
| SizeOfStr _
| AlignOf _
| AlignOfE _
| UnOp _
| BinOp _ -> false
| Const _ ->... | 32.924731 | 176 | 0.536496 |
af2cbed3d3e1ad84958a9589aaae4c62bc0c042b | 200 | ml | OCaml | data/derived/comb/progs/unify/prog2698.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | 4 | 2017-07-04T22:30:05.000Z | 2021-03-29T14:44:52.000Z | data/derived/sp14/progs/unify/prog2698.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2698.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec wwhile (f,b) =
let func = f b in
let (value,boo) = func in if boo then wwhile (f, value) else value;;
let fixpoint (f,b) =
wwhile ((let g x = let d = f x in (d, (x = d)) in g b), b);;
| 25 | 70 | 0.56 |
afb0ef3fcaedfeafbcd8b716ab6bb69d49b7f8f1 | 13,149 | ml | OCaml | duniverse/0install/src/gui_gtk/app_list_box.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/0install/src/gui_gtk/app_list_box.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/0install/src/gui_gtk/app_list_box.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | (* Copyright (C) 2013, Thomas Leonard
* See the README file for details, or visit http://0install.net.
*)
(** The app browser dialog *)
open Zeroinstall.General
open Zeroinstall
open Support
open Support.Common
open Gtk_common
module F = Zeroinstall.Feed
module U = Support.Utils
module FC = Zeroinstall.Feed_cache
... | 36.935393 | 122 | 0.622177 |
f3d006bf21eea513a078c7de20182ebd95183fc5 | 3,628 | ml | OCaml | src/lib_stdlib/tzString.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_stdlib/tzString.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_stdlib/tzString.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | 1 | 2021-06-04T09:31:48.000Z | 2021-06-04T09:31:48.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 37.791667 | 79 | 0.524256 |
af6a0ea6bbd10bcdf7c63e6289400fdb5e553c7e | 3,953 | mli | OCaml | ast_convenience_406.mli | let-def/ppx_tools | 00a0150cdabfa7f0dad2c5e0e6b32230d22295ca | [
"MIT"
] | 13 | 2017-08-18T14:31:59.000Z | 2020-07-16T02:38:52.000Z | ast_convenience_406.mli | let-def/ppx_tools | 00a0150cdabfa7f0dad2c5e0e6b32230d22295ca | [
"MIT"
] | 26 | 2017-12-25T02:40:38.000Z | 2021-09-16T15:59:11.000Z | ast_convenience_406.mli | let-def/ppx_tools | 00a0150cdabfa7f0dad2c5e0e6b32230d22295ca | [
"MIT"
] | 12 | 2017-09-18T05:06:27.000Z | 2021-12-12T19:18:57.000Z | open Migrate_parsetree.Ast_406
(* This file is part of the ppx_tools package. It is released *)
(* under the terms of the MIT license (see LICENSE file). *)
(* Copyright 2013 Alain Frisch and LexiFi *)
(** {1 Convenience functions to help build and deconstruct AST fragments.} *)
open... | 34.982301 | 113 | 0.674172 |
afad529708bdea1f4ac6e1adc2f52850adb5bf28 | 1,149 | ml | OCaml | src/ocaml-3.12.0/testsuite/tests/basic-more/tformat.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2015-01-27T00:11:26.000Z | 2015-01-27T00:11:26.000Z | src/ocaml-3.12.0/testsuite/tests/basic-more/tformat.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/testsuite/tests/basic-more/tformat.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | (*************************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Pi... | 33.794118 | 75 | 0.341166 |
afcd80883d8ab87d8de1ec0e5a4898e4d570654e | 652 | mly | OCaml | grammar-artefacts/07-menhir-modules/_2.5_2.6_.mly | MalloyPower/parsing-python | b2bca5eed07ea2af7a2001cd4f63becdfb0570be | [
"MIT"
] | 1 | 2020-11-26T18:53:46.000Z | 2020-11-26T18:53:46.000Z | grammar-artefacts/07-menhir-modules/_2.5_2.6_.mly | MalloyPower/parsing-python | b2bca5eed07ea2af7a2001cd4f63becdfb0570be | [
"MIT"
] | null | null | null | grammar-artefacts/07-menhir-modules/_2.5_2.6_.mly | MalloyPower/parsing-python | b2bca5eed07ea2af7a2001cd4f63becdfb0570be | [
"MIT"
] | 1 | 2019-04-11T11:27:01.000Z | 2019-04-11T11:27:01.000Z | // Grammar for versions: 2.5 2.6
// Generated by CompareGrammar on 2018-01-16 at 20:28:53.035+00:00
// Top non-terminals: atom gen_for gen_if with_stmt
%%
%public
gen_if:
IF old_test _optional(gen_iter {})
{} ;
%public
atom:
LPAR _optional(_choice(yield_expr | testl... | 16.3 | 73 | 0.633436 |
afb0d5200bd543bdccb48c90631b6edef1190dda | 12,955 | ml | OCaml | src/stmpl_c/stmpl.ml | fccm/ocaml-mkstub | 3b96b4c254188bfda70c19d25a747026209e2375 | [
"MIT"
] | null | null | null | src/stmpl_c/stmpl.ml | fccm/ocaml-mkstub | 3b96b4c254188bfda70c19d25a747026209e2375 | [
"MIT"
] | null | null | null | src/stmpl_c/stmpl.ml | fccm/ocaml-mkstub | 3b96b4c254188bfda70c19d25a747026209e2375 | [
"MIT"
] | null | null | null | (* Stmpl - a simple string template system
Copyright (C) 2012 Florent Monnier <monnier.florent(_)gmail.com>
Code provided under the MIT license:
http://en.wikipedia.org/wiki/MIT_License
This software is provided "AS-IS", without warranty of any kind.
*)
type assoc = string * string
type param =
| VAR of ... | 25.755467 | 79 | 0.563643 |
f32b35daed0ece2483a54ff58c8c32b6000140af | 120 | mli | OCaml | driver/pkcs11_log.mli | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | driver/pkcs11_log.mli | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | driver/pkcs11_log.mli | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | (** Logging interface for this library *)
val set_logging_function : (string -> unit) -> unit
val log : string -> unit
| 24 | 51 | 0.691667 |
f3b837486534c98ef6b2e8471b441342a3df6405 | 876 | ml | OCaml | src/lib/snarky_taylor/tests/snarky_taylor_test.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | 1 | 2020-05-08T06:34:25.000Z | 2020-05-08T06:34:25.000Z | src/lib/snarky_taylor/tests/snarky_taylor_test.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | null | null | null | src/lib/snarky_taylor/tests/snarky_taylor_test.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Bitstring_lib
open Snarky
open Snark
open Snarky_integer
open Snarky_taylor
let%test_unit "instantiate" =
let module M = Snark_params.Tick.Run in
let m : M.field m = (module M) in
let open M in
let params =
Exp.params ~field_size_in_bits:Field.Constant.size_in_bits
~base:Bignum.... | 29.2 | 79 | 0.676941 |
afd7338106a077d824dc01ce30ece51e8a72a9ef | 136 | ml | OCaml | lib/base/covar_optional_args.ml | struktured/ocaml-covar | 84f1d3a2bc3da1b617647b4ddadd75eb1808b06f | [
"MIT"
] | 4 | 2017-12-21T05:16:08.000Z | 2019-03-22T10:23:30.000Z | lib/base/covar_optional_args.ml | struktured/ocaml-covar | 84f1d3a2bc3da1b617647b4ddadd75eb1808b06f | [
"MIT"
] | null | null | null | lib/base/covar_optional_args.ml | struktured/ocaml-covar | 84f1d3a2bc3da1b617647b4ddadd75eb1808b06f | [
"MIT"
] | null | null | null | module type S =
sig
type t
val default : t
end
module Create(Default:S) =
struct
let create ?(opt=Default.default) () = opt
end
| 11.333333 | 44 | 0.669118 |
af5ba6a1bfe80e342edce2c0d16e9221676a06fc | 20,520 | mli | OCaml | src/owl/cblas/owl_cblas_generated.mli | Drup/owl | cc2520b2f057d6b7f64d175e97ae810b63d3d14b | [
"MIT"
] | null | null | null | src/owl/cblas/owl_cblas_generated.mli | Drup/owl | cc2520b2f057d6b7f64d175e97ae810b63d3d14b | [
"MIT"
] | null | null | null | src/owl/cblas/owl_cblas_generated.mli | Drup/owl | cc2520b2f057d6b7f64d175e97ae810b63d3d14b | [
"MIT"
] | null | null | null | (*
* OWL - an OCaml numerical library for scientific computing
* Copyright (c) 2016-2018 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
(** auto-generated cblas interface file, timestamp:1498396302 *)
open Ctypes
val sdsdot : n:int -> alpha:float -> x:(float ptr) -> incx:int -> y:(float ptr) -> incy:int -> float
val d... | 69.795918 | 230 | 0.579922 |
af40033bd0dc8ab495b92656eaceeebba3a439e8 | 37,463 | ml | OCaml | bootstrap/src/basis/map.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 25 | 2020-02-03T20:31:04.000Z | 2022-03-30T17:22:35.000Z | bootstrap/src/basis/map.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 152 | 2020-02-03T23:16:05.000Z | 2022-02-24T22:14:04.000Z | bootstrap/src/basis/map.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 4 | 2020-02-03T07:36:22.000Z | 2020-10-31T03:44:52.000Z | (* Hash array mapped trie (HAMT) implementation of maps. See the following for background
* information:
*
* - [Ideal Hash Trees](http://infoscience.epfl.ch/record/64398/files/idealhashtrees.pdf)
* - [Optimizing Hash-Array Mapped Tries for Fast and Lean Immutable JVM
* Collections](http://michael.steindorfer.nam... | 36.301357 | 100 | 0.597496 |
f3b6dfb6d5319200e7bcd32b81bf1176df3de9d7 | 1,345 | ml | OCaml | examples/low-level/crypto/ml/test_aes256.ml | jaybosamiya/FStar | b879c339e9c7d6880a0c52667a71b9b1fe8ec235 | [
"Apache-2.0"
] | 2,231 | 2015-01-05T02:19:24.000Z | 2022-03-30T05:54:05.000Z | examples/low-level/crypto/ml/test_aes256.ml | shiatsumat/FStar | 2a518c125e15eef6a3443cb1d29531411c995069 | [
"Apache-2.0"
] | 2,151 | 2015-01-06T05:01:08.000Z | 2022-03-31T23:16:08.000Z | examples/low-level/crypto/ml/test_aes256.ml | shiatsumat/FStar | 2a518c125e15eef6a3443cb1d29531411c995069 | [
"Apache-2.0"
] | 281 | 2015-02-13T00:14:17.000Z | 2022-03-13T12:51:04.000Z | open FStar_UInt8
open FStar_Buffer
open Crypto_Symmetric_AES
let print (b:bytes) =
for i = 0 to (Array.length b.content - 1) do
print_string (to_string_hex (index b i));
if i mod 4 = 3 then print_string "\n"
done;
print_string "\n"
let _ =
let zero = 0 in
let plaintext = create zero 16 in
l... | 30.568182 | 142 | 0.684015 |
afd65a312789b597f938bc3a8c82e1fc2401c051 | 26,644 | ml | OCaml | project_windows.ml | MartinRadman/Advent-of-Code-2020 | 59c9521fda0b0732603111e2e526764b152d8139 | [
"MIT"
] | null | null | null | project_windows.ml | MartinRadman/Advent-of-Code-2020 | 59c9521fda0b0732603111e2e526764b152d8139 | [
"MIT"
] | null | null | null | project_windows.ml | MartinRadman/Advent-of-Code-2020 | 59c9521fda0b0732603111e2e526764b152d8139 | [
"MIT"
] | null | null | null | #load "str.cma"
let preberi_datoteko ime_datoteke =
let chan = open_in ime_datoteke in
let vsebina = really_input_string chan (in_channel_length chan) in
close_in chan;
vsebina
let izpisi_datoteko ime_datoteke vsebina =
let chan = open_out ime_datoteke in
output_string chan vsebina;
close_out chan
modul... | 34.602597 | 190 | 0.63474 |
afd0fddc339d08bcbb26efac2a72b95e86cf4d2f | 30,105 | ml | OCaml | test/blst/test_signature.ml | ManasJayanth/ocaml-bls12-381 | 44078fbb9961b4e6711876fca72624d183d04933 | [
"MIT"
] | null | null | null | test/blst/test_signature.ml | ManasJayanth/ocaml-bls12-381 | 44078fbb9961b4e6711876fca72624d183d04933 | [
"MIT"
] | null | null | null | test/blst/test_signature.ml | ManasJayanth/ocaml-bls12-381 | 44078fbb9961b4e6711876fca72624d183d04933 | [
"MIT"
] | null | null | null | let read_file filename =
let lines = ref [] in
let chan = open_in filename in
try
while true do
lines := input_line chan :: !lines
done ;
!lines
with End_of_file ->
close_in chan ;
List.rev !lines
let test_keygen_raise_invalid_argument_if_ikm_too_small () =
ignore
@@ Alcotest.chec... | 41.639004 | 203 | 0.717921 |
8a0d143b8905d13e6c5c58f915b2b7dec4b0bede | 1,543 | mli | OCaml | CodeHawk/CHB/bchlibpe/bCHPEResourceDirectory.mli | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 17 | 2020-08-17T15:35:57.000Z | 2022-03-23T14:40:19.000Z | CodeHawk/CHB/bchlibpe/bCHPEResourceDirectory.mli | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 6 | 2020-07-17T05:43:51.000Z | 2021-01-06T03:41:46.000Z | CodeHawk/CHB/bchlibpe/bCHPEResourceDirectory.mli | sipma/codehawk | e4eeb41fdea6a8467d1892b9467ec54ef04953b0 | [
"MIT"
] | 3 | 2020-08-13T23:18:39.000Z | 2021-12-11T11:10:06.000Z | (* =============================================================================
CodeHawk Binary Analyzer
Author: Henny Sipma
------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2005-2019 Kestrel Technology LLC
Permission is hereby gra... | 48.21875 | 83 | 0.646792 |
af8183f06177e5e639f104f54d1befe6484fe7e2 | 1,584 | ml | OCaml | src/frontend/assoc.ml | gfngfn/Macrodown | df01321daf1a7c31a066fdcb63b4bb0fb21cd6ee | [
"MIT"
] | 83 | 2015-03-26T14:57:33.000Z | 2018-02-06T04:58:11.000Z | src/frontend/assoc.ml | gfngfn/Macrodown | df01321daf1a7c31a066fdcb63b4bb0fb21cd6ee | [
"MIT"
] | 5 | 2015-11-02T21:22:15.000Z | 2018-02-08T11:13:02.000Z | src/frontend/assoc.ml | gfngfn/Macrodown | df01321daf1a7c31a066fdcb63b4bb0fb21cd6ee | [
"MIT"
] | 6 | 2015-05-04T09:40:25.000Z | 2018-02-05T11:55:07.000Z |
module AssocMap = Map.Make(String)
type key = AssocMap.key
type 'a t = 'a AssocMap.t
let empty = AssocMap.empty
let rec add amap key value =
amap |> AssocMap.add key value
let find_opt amap key =
amap |> AssocMap.find_opt key
let to_list amap =
AssocMap.fold (fun k v acc ->
(k, v) :: acc
) amap [... | 18 | 72 | 0.644571 |
f3a85c5105e8ea841534d2b58a9eb5a3ddf32a0c | 10,714 | ml | OCaml | bap-vibes/tests/unit/test_arm_selector.ml | draperlaboratory/VIBES | 46d3284e7ff0f897bd553a1678023ea1ebc9005e | [
"MIT"
] | 12 | 2022-02-11T18:58:30.000Z | 2022-03-30T18:00:39.000Z | bap-vibes/tests/unit/test_arm_selector.ml | draperlaboratory/VIBES | 46d3284e7ff0f897bd553a1678023ea1ebc9005e | [
"MIT"
] | 21 | 2022-02-13T06:18:16.000Z | 2022-03-31T18:09:17.000Z | bap-vibes/tests/unit/test_arm_selector.ml | draperlaboratory/VIBES | 46d3284e7ff0f897bd553a1678023ea1ebc9005e | [
"MIT"
] | null | null | null | (***************************************************************************)
(* *)
(* Copyright (C) 2022/2023 The Charles Stark Draper Laboratory, Inc. *)
(* *)
(* This... | 22.603376 | 95 | 0.550215 |
af336b47981997cd04d04c080398a5ec16a2f03a | 1,635 | ml | OCaml | data/sp14/0118.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/0118.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/0118.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec wwhile (f,b) =
let helper = f b in
match helper with | (x,y) -> if y = false then x else wwhile (f, x);;
let fixpoint (f,b) =
wwhile
(let g b =
let helper = f b in
match helper with | (x,y) -> if x = b then (f, false) else (f, true) in
(g, b));;
(* fix
let rec wwhile (f,b) =
... | 15.424528 | 78 | 0.475841 |
af3f975c25975ba9097def4895d84de215d633fc | 290 | ml | OCaml | ReWebTest/HeaderTest/StrictTransportSecurityTest.ml | tatchi/re-web | a430547b368b695b5e24b166619f3b1aa77ab7c1 | [
"MIT"
] | 269 | 2019-03-23T10:45:43.000Z | 2022-01-09T09:34:18.000Z | ReWebTest/HeaderTest/StrictTransportSecurityTest.ml | tatchi/re-web | a430547b368b695b5e24b166619f3b1aa77ab7c1 | [
"MIT"
] | 39 | 2019-12-27T04:21:28.000Z | 2021-08-24T17:07:00.000Z | ReWebTest/HeaderTest/StrictTransportSecurityTest.ml | tatchi/re-web | a430547b368b695b5e24b166619f3b1aa77ab7c1 | [
"MIT"
] | 9 | 2019-12-25T17:44:59.000Z | 2021-08-24T13:29:31.000Z | open Alcotest
open ReWeb.Header.StrictTransportSecurity
let s = "ReWeb.Header.StrictTransportSecurity", [
test_case "make - defaults" `Quick begin fun () ->
100_000
|> make
|> to_header
|> snd
|> check string "" "max-age=100000; includeSubDomains; preload"
end;
]
| 20.714286 | 67 | 0.672414 |
8a1a77aca83fbccfa7a359dc351d4977b09fbffe | 153 | ml | OCaml | wrk2il/non_empty_list.ml | a12n/wrked | f707baa7b43f646c71cf5cdef1159b389445a533 | [
"0BSD"
] | null | null | null | wrk2il/non_empty_list.ml | a12n/wrked | f707baa7b43f646c71cf5cdef1159b389445a533 | [
"0BSD"
] | null | null | null | wrk2il/non_empty_list.ml | a12n/wrked | f707baa7b43f646c71cf5cdef1159b389445a533 | [
"0BSD"
] | null | null | null | type 'a t = 'a * 'a list
let of_list = function
| x :: xs -> x, xs
| [] -> invalid_arg "Non_empty_list.of_list"
let to_list (x, xs) = x :: xs
| 19.125 | 51 | 0.54902 |
afdfb93a37f09cf2fc699c046ee82812a87f02d2 | 22,685 | ml | OCaml | src/proto_008_PtEdo2Zk/lib_protocol/test/endorsement.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/proto_008_PtEdo2Zk/lib_protocol/test/endorsement.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | src/proto_008_PtEdo2Zk/lib_protocol/test/endorsement.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 34.84639 | 85 | 0.631342 |
afa3b3d10e3c72c3a329975c8fec495015bd59cc | 11,890 | mll | OCaml | src/ocaml-3.12.0/tools/lexer301.mll | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2015-01-27T00:11:26.000Z | 2015-01-27T00:11:26.000Z | src/ocaml-3.12.0/tools/lexer301.mll | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/tools/lexer301.mll | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Xavier Ler... | 25.735931 | 78 | 0.518587 |
af04e0b290354600d122ecd913f08dd316457547 | 3,561 | ml | OCaml | otherlibs/site/src/helpers.ml | snowleopard/dune | dcf921ca5cd825ddb054682809bc4032e0d92ebc | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | otherlibs/site/src/helpers.ml | snowleopard/dune | dcf921ca5cd825ddb054682809bc4032e0d92ebc | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | otherlibs/site/src/helpers.ml | snowleopard/dune | dcf921ca5cd825ddb054682809bc4032e0d92ebc | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | module Location = struct
type t = string
end
let dirs : (string * Dune_section.t, string) Hashtbl.t = Hashtbl.create 10
(* multi-bindings first is the one with least priority *)
(* TODO already exists in stdue/bin.ml *)
let path_sep =
if Sys.win32 then
';'
else
':'
let () =
match Sys.getenv_opt "DUN... | 26.977273 | 79 | 0.632968 |
aff6a1971ebb8c18e6cffca031f26f9376bcea68 | 859 | mli | OCaml | source/interprocedural_analyses/taint/taintReporting.mli | sthagen/pyre-check | 2cd35436b5a5516116177e8e80881882341701e5 | [
"MIT"
] | 1 | 2019-12-07T06:58:52.000Z | 2019-12-07T06:58:52.000Z | source/interprocedural_analyses/taint/taintReporting.mli | sthagen/pyre-check | 2cd35436b5a5516116177e8e80881882341701e5 | [
"MIT"
] | null | null | null | source/interprocedural_analyses/taint/taintReporting.mli | sthagen/pyre-check | 2cd35436b5a5516116177e8e80881882341701e5 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Interprocedural
module Json = Yojson.Safe
val externalize
: filename_lookup:(Ast.Reference.t -> string option) ->
Target... | 26.030303 | 66 | 0.724098 |
afe668b72d9d7977517997b5c101f061e877bde1 | 7,286 | ml | OCaml | src/ounit/QCheck_ounit.ml | Sir4ur0n/qcheck | 6aaef3945ca9ffad312e397fa0d81538763d9abd | [
"BSD-2-Clause"
] | null | null | null | src/ounit/QCheck_ounit.ml | Sir4ur0n/qcheck | 6aaef3945ca9ffad312e397fa0d81538763d9abd | [
"BSD-2-Clause"
] | null | null | null | src/ounit/QCheck_ounit.ml | Sir4ur0n/qcheck | 6aaef3945ca9ffad312e397fa0d81538763d9abd | [
"BSD-2-Clause"
] | null | null | null |
open OUnit
open QCheck_base_runner
let ps = print_string
let va = Printf.sprintf
let pf = Printf.printf
let not_success = function RSuccess _ -> false | _ -> true
let result_path = function
| RSuccess path
| RError (path, _)
| RFailure (path, _)
| RSkip (path, _)
| RTodo (path, _) -> path
let r... | 33.888372 | 92 | 0.624348 |
f327344fcfbb2f1dcd4cad41c77d69564d2c8ee7 | 3,043 | mli | OCaml | src/proto_alpha/lib_protocol/test/helpers/account.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_alpha/lib_protocol/test/helpers/account.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_alpha/lib_protocol/test/helpers/account.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 44.101449 | 80 | 0.565232 |
af12696e61df77506f7f060c73c9d46222073db3 | 655 | mli | OCaml | src/services/inference/init_js.mli | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | null | null | null | src/services/inference/init_js.mli | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | null | null | null | src/services/inference/init_js.mli | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(* called to initialize library code on initial full pass.
params are functions to save errors and suppressions:
circular de... | 29.772727 | 69 | 0.722137 |
af269d83704bc1f3336025c176d65e34d447ef78 | 1,476 | mly | OCaml | src/horn_solver/smtParse.mly | ryosu-sato/r_type | a6540a6c6cc01c4ce17b8e87dc6412fd39ea6277 | [
"Apache-2.0"
] | 1 | 2017-10-13T09:37:46.000Z | 2017-10-13T09:37:46.000Z | src/horn_solver/smtParse.mly | ryosu-sato/r_type | a6540a6c6cc01c4ce17b8e87dc6412fd39ea6277 | [
"Apache-2.0"
] | 1 | 2021-01-19T10:44:43.000Z | 2021-02-15T09:45:29.000Z | src/horn_solver/smtParse.mly | ryosu-sato/r_type | a6540a6c6cc01c4ce17b8e87dc6412fd39ea6277 | [
"Apache-2.0"
] | 1 | 2020-12-31T09:39:32.000Z | 2020-12-31T09:39:32.000Z | %{
open! ParseBase
%}
%token <string> OP
%token EXISTS FORALL LET
%token EOF OPAREN CPAREN
%token SAT UNSAT MODEL ERROR DEFINE
%token <string> DQUOTED
%token <string> IDENT CINT CBOOL
%token INT BOOL
%start top
%type <ParseBase.parse> top
%%
top:
| SAT { ParseBase.Sat }
| UNSAT { ParseBase.Unsat }
| error = er... | 19.945946 | 63 | 0.617886 |
af8376076f4973021315d64409573111ec44d084 | 40,092 | ml | OCaml | src/parser/flow_parser_js.ml | josephwinston/flow | 231b6dd9a1a031e623722cc359cbeffa94209c6a | [
"BSD-3-Clause"
] | null | null | null | src/parser/flow_parser_js.ml | josephwinston/flow | 231b6dd9a1a031e623722cc359cbeffa94209c6a | [
"BSD-3-Clause"
] | null | null | null | src/parser/flow_parser_js.ml | josephwinston/flow | 231b6dd9a1a031e623722cc359cbeffa94209c6a | [
"BSD-3-Clause"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
module Transl... | 37.822642 | 104 | 0.649356 |
8a1a71d132cbe8354163f165dcf42ef29d209b4b | 515 | ml | OCaml | data/derived/comb/progs/cnstr/prog1633.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | 4 | 2017-07-04T22:30:05.000Z | 2021-03-29T14:44:52.000Z | data/derived/sp14/progs/cnstr/prog1633.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/cnstr/prog1633.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr;;
let rec exprToString e =
match e with
| VarX -> "x"
| VarY -> "y"
| Sine e' -> Printf.sprintf "sin(pi*%s)" (exprToString e')
| Cosine e' -> Printf.spri... | 25.75 | 70 | 0.594175 |
8a1506b581af23cf4b5affc2d38d28fc7a6b1ce3 | 2,319 | ml | OCaml | src/lib/coda_base/transaction_union_tag.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/transaction_union_tag.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/transaction_union_tag.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Fold_lib
open Tuple_lib
open Snark_params.Tick
type t = Payment | Stake_delegation | Fee_transfer | Coinbase
[@@deriving enum, eq, sexp]
let gen =
Quickcheck.Generator.map (Int.gen_incl min max) ~f:(fun i ->
Option.value_exn (of_enum i) )
type var = Boolean.var * Boolean.var
let to_bit... | 24.935484 | 79 | 0.645537 |
af4cfb99d9059f902014685ee3e9d0bd492d0e99 | 4,144 | ml | OCaml | src/flow.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | 1 | 2020-07-11T17:49:59.000Z | 2020-07-11T17:49:59.000Z | src/flow.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | null | null | null | src/flow.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | 1 | 2019-11-30T03:40:04.000Z | 2019-11-30T03:40:04.000Z | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(***********************************************************************)
(* flow shell is just a simple command-dispatching main ... | 32.888889 | 98 | 0.664575 |
8a12959ed40c08a55023e4760970bb42c1db39c6 | 990 | mli | OCaml | src/unix/lwt_sys.mli | bn-d/lwt | 654952b62dccea63f186747be79916dbfdccf48d | [
"MIT"
] | 575 | 2015-01-02T04:28:43.000Z | 2022-03-11T16:56:22.000Z | src/unix/lwt_sys.mli | bn-d/lwt | 654952b62dccea63f186747be79916dbfdccf48d | [
"MIT"
] | 773 | 2015-01-02T12:09:28.000Z | 2022-03-31T10:10:24.000Z | src/unix/lwt_sys.mli | Sudha247/lwt | c656870190847c1982dc36978529a67597271fd1 | [
"MIT"
] | 182 | 2015-01-13T10:33:42.000Z | 2022-01-04T20:50:42.000Z | (* This file is part of Lwt, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. *)
(** System informations. *)
exception Not_available of string
(** [Not_available(feature)] is an exception that may be raised when
a feature is not a... | 24.75 | 79 | 0.657576 |
f322dc7d35f74f63275ce9d0e213bb93fd822978 | 1,174 | ml | OCaml | data/fa15/0185.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/0185.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/0185.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec wwhile (f,b) =
let (x,y) = f b in if y = false then x else wwhile (f, x);;
let fixpoint (f,b) =
wwhile (if (f b) = b then (b, false) else (((f b), true), b));;
(* fix
let rec wwhile (f,b) = let (x,y) = f b in if y then wwhile (f, x) else x;;
let fixpoint (f,b) =
wwhile (let g b = ((f b), (if (f b) =... | 14.675 | 77 | 0.46167 |
aff027a89e8695ba8712df7ed733c4037a25a8fd | 153 | ml | OCaml | data/derived/comb/progs/unify/prog5144.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | 4 | 2017-07-04T22:30:05.000Z | 2021-03-29T14:44:52.000Z | data/derived/fa15/progs/unify/prog0236.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0236.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec wwhile (f,b) = match f b with | (h,t) -> if t = false then h t;;
let _ = let f x = let xx = (x * x) * x in (xx, (xx < 100)) in wwhile (f, 2);;
| 30.6 | 77 | 0.503268 |
af0d018fde019d307b90e614687126dce43c310f | 388 | mli | OCaml | src/reindex.mli | erickoskinen/kmt | 2f624eadc19d9bbff5f78b9722a09feaa4384a19 | [
"MIT"
] | 19 | 2020-03-06T13:52:57.000Z | 2021-07-30T07:40:20.000Z | src/reindex.mli | erickoskinen/kmt | 2f624eadc19d9bbff5f78b9722a09feaa4384a19 | [
"MIT"
] | 1 | 2022-02-09T20:48:48.000Z | 2022-02-09T20:48:48.000Z | src/reindex.mli | erickoskinen/kmt | 2f624eadc19d9bbff5f78b9722a09feaa4384a19 | [
"MIT"
] | 2 | 2021-02-12T19:02:50.000Z | 2021-08-10T06:20:34.000Z | (* Provide a 2-way renaming maps.
Elements of type 'a are mapped to unique positive integer names.
Useful for converting automata over arbitrary types to be
over ints during construction. *)
module type S = sig
type elt
type t
val create: unit -> t
val get_val: t -> int -> elt
val get_idx: t -> el... | 27.714286 | 67 | 0.688144 |
af46fb9f0b75a92441a3b6b39ba3db3ee660ab57 | 9 | ml | OCaml | examples/ocaml-cycle/a.ml | b0-system/brzo | 87a02530707f551a60f9949f82b8603dfa5158b3 | [
"0BSD"
] | 5 | 2019-10-02T20:04:19.000Z | 2021-11-04T10:04:53.000Z | examples/ocaml-cycle/a.ml | b0-system/brzo | 87a02530707f551a60f9949f82b8603dfa5158b3 | [
"0BSD"
] | null | null | null | examples/ocaml-cycle/a.ml | b0-system/brzo | 87a02530707f551a60f9949f82b8603dfa5158b3 | [
"0BSD"
] | null | null | null | type t =
| 4.5 | 8 | 0.555556 |
afa12acccf7b788fd38ca610b203a5fc3abc6dfe | 5,352 | ml | OCaml | analysis/classMetadataEnvironment.ml | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | 1 | 2020-08-12T14:33:46.000Z | 2020-08-12T14:33:46.000Z | analysis/classMetadataEnvironment.ml | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | null | null | null | analysis/classMetadataEnvironment.ml | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | null | null | null | (* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. *)
open Core
open Ast
open Pyre
module PreviousEnvironment = ClassHierarchyEnvironment
type t = { class_hierarchy_environment: ClassHierarchyEn... | 32.047904 | 99 | 0.765321 |
afca13d1303409661a6e85e4d7224231566bd846 | 4,829 | mli | OCaml | duniverse/alcotest.1.1.0/src/alcotest/alcotest.mli | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | duniverse/alcotest.1.1.0/src/alcotest/alcotest.mli | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | duniverse/alcotest.1.1.0/src/alcotest/alcotest.mli | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | (*
* Copyright (c) 2013 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS... | 33.534722 | 83 | 0.66784 |
af5d4714d77b1415dfad8eece4eef357359daf1d | 30,513 | ml | OCaml | infer/src/clang/CType_decl.ml | gatarelib/infer | 21145c75c920962b3c2970d1224eca7b6dc8ba8d | [
"MIT"
] | null | null | null | infer/src/clang/CType_decl.ml | gatarelib/infer | 21145c75c920962b3c2970d1224eca7b6dc8ba8d | [
"MIT"
] | null | null | null | infer/src/clang/CType_decl.ml | gatarelib/infer | 21145c75c920962b3c2970d1224eca7b6dc8ba8d | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
(** Processes types and record declarations by adding them to the tenv *)
module BuildMethodSignature = struct
let get_cla... | 38.673004 | 100 | 0.718284 |
af9e1d6c1e27b99b173dc47126ab068ae1616eb7 | 11,256 | ml | OCaml | hphp/hack/src/typing/typing_redecl_service.ml | hkirsman/hhvm_centos7_builds | 2a1fd6de0d2d289c1575f43f10018f3bec23bb13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_redecl_service.ml | hkirsman/hhvm_centos7_builds | 2a1fd6de0d2d289c1575f43f10018f3bec23bb13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_redecl_service.ml | hkirsman/hhvm_centos7_builds | 2a1fd6de0d2d289c1575f43f10018f3bec23bb13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(**********... | 40.344086 | 80 | 0.599769 |
afcd97e4bc738b6231913e3991802563c15ec502 | 839 | mli | OCaml | src/lib/virtualization.mli | patricoferris/ocaml-virtualization | d4a49f36a2e7a1681cad88f6e58c29644f48e89a | [
"0BSD"
] | 6 | 2021-11-01T14:39:47.000Z | 2021-11-07T11:56:10.000Z | src/lib/virtualization.mli | patricoferris/ocaml-virtualization | d4a49f36a2e7a1681cad88f6e58c29644f48e89a | [
"0BSD"
] | null | null | null | src/lib/virtualization.mli | patricoferris/ocaml-virtualization | d4a49f36a2e7a1681cad88f6e58c29644f48e89a | [
"0BSD"
] | null | null | null | module Bootloader : sig
module Linux : sig
type t
val create : string -> t
(** Create a new linux boot loader with the specified kernel path *)
end
end
module Network : sig
module Macaddr : sig
type t
val create : unit -> t
end
type t
val create : ?macaddr:Macaddr.t -> unit -> t
end... | 16.78 | 75 | 0.636472 |
affabc47f7e9afe747b430f25e9554061c49384e | 125 | ml | OCaml | data/derived/fa15/progs/unify/prog0132.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | 4 | 2017-07-04T22:30:05.000Z | 2021-03-29T14:44:52.000Z | data/derived/sp14/progs/unify/prog1520.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1520.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec listReverse l = match l with | [] -> [] | h::t -> (listReverse t) @ h;;
let _ = listReverse ["a"; "b"; "c"; "d"];;
| 25 | 79 | 0.496 |
afa2c34a6045185973d2834aefb66ef4c004d843 | 26,203 | ml | OCaml | code/src/netcgi2/netcgi1_compat.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/src/netcgi2/netcgi1_compat.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/src/netcgi2/netcgi1_compat.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | (* netcgi_compat.ml
Copyright (C) 2005-2006
Christophe Troestler
email: Christophe.Troestler@umh.ac.be
WWW: http://math.umh.ac.be/an/
This library is free software; see the file LICENSE for more information.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY W... | 34.937333 | 105 | 0.693737 |
8a217812b59ffc2a71d42470715933a57eaf0a47 | 31 | ml | OCaml | lib/std_kernel.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | lib/std_kernel.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | lib/std_kernel.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | include Core_kernel.Std_kernel
| 15.5 | 30 | 0.903226 |
aff9087b74805a7816df196560a02af6137d2db1 | 2,424 | mli | OCaml | bindings/ocaml/Hacl.mli | BlackHorseSolutions/hacl-star | e7d8effb0c14f049cf016c09882c18681849c2a3 | [
"Apache-2.0"
] | null | null | null | bindings/ocaml/Hacl.mli | BlackHorseSolutions/hacl-star | e7d8effb0c14f049cf016c09882c18681849c2a3 | [
"Apache-2.0"
] | null | null | null | bindings/ocaml/Hacl.mli | BlackHorseSolutions/hacl-star | e7d8effb0c14f049cf016c09882c18681849c2a3 | [
"Apache-2.0"
] | null | null | null | open SharedDefs
module C = CBytes
module RandomBuffer : sig
val randombytes : C.t -> bool
end
module Chacha20_Poly1305_32 : Chacha20_Poly1305
module Chacha20_Poly1305_128 : Chacha20_Poly1305
module Chacha20_Poly1305_256 : Chacha20_Poly1305
module Curve25519_51 : Curve25519
module Curve25519_64 : Curve25519
modul... | 27.862069 | 66 | 0.640264 |
8a15d4e1eb75260781984c1a91c55322f3a5b88a | 50 | ml | OCaml | hphp/hack/src/typing/tanySentinel.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/src/typing/tanySentinel.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/src/typing/tanySentinel.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 2,126 | 2015-01-01T11:13:29.000Z | 2022-03-28T19:58:15.000Z | type t = unit [@@deriving eq]
let value : t = ()
| 12.5 | 29 | 0.56 |
afdb4b3bbb49df9d726b3f023a195937f245a0cb | 1,155 | mli | OCaml | ppx_view/lib/error.mli | ceastlund/ppx | e9367353e0ac7f6e1b408be21b01645475eea623 | [
"MIT"
] | 57 | 2019-05-15T14:23:37.000Z | 2021-05-24T19:23:19.000Z | ppx_view/lib/error.mli | ceastlund/ppx | e9367353e0ac7f6e1b408be21b01645475eea623 | [
"MIT"
] | 53 | 2019-06-06T16:27:15.000Z | 2020-05-14T18:05:50.000Z | ppx_view/lib/error.mli | ceastlund/ppx | e9367353e0ac7f6e1b408be21b01645475eea623 | [
"MIT"
] | 7 | 2019-06-03T15:07:32.000Z | 2020-04-06T14:06:22.000Z | open Import
(** Error reporting functions *)
type t = string Astlib.Loc.t
(** Reports that the [[%view ...]] payload is neither a [match] nor a [function]
expression. *)
val invalid_payload : loc: Astlib.Location.t -> t
(** Reports that the [[@view ...]] payload is not properly formed, i.e. it's not
a record... | 33.970588 | 80 | 0.690043 |
8a0f312acf2065b498027d48ec36f8d967500513 | 4,385 | ml | OCaml | II rok/I semestr/PF/Zajecia 06/Syntax.ml | antonitomaszewski/Studia | ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b | [
"MIT"
] | null | null | null | II rok/I semestr/PF/Zajecia 06/Syntax.ml | antonitomaszewski/Studia | ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b | [
"MIT"
] | null | null | null | II rok/I semestr/PF/Zajecia 06/Syntax.ml | antonitomaszewski/Studia | ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b | [
"MIT"
] | null | null | null | (** Typ danych reprezentujący formuły zdaniowe *)
type 'a prop = Var of 'a | Top | Bot
| Conj of 'a prop * 'a prop
| Disj of 'a prop * 'a prop
| Impl of 'a prop * 'a prop
(** Typ danych reprezentujący drzewa dowodu w systemie dedukcji
naturalnej, wraz z typem ramek *)
type 'a... | 30.880282 | 113 | 0.552566 |
f3f88987ac5af9eeec930a610bb84d929d29161e | 4,036 | ml | OCaml | hphp/hack/src/typing/nast_terminality.ml | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-02-04T22:07:59.000Z | 2021-02-04T22:07:59.000Z | hphp/hack/src/typing/nast_terminality.ml | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/nast_terminality.ml | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_core
open Nast
module Env = Typing_env
module SN = Naming_special_names
module FuncTerm = Typing_func_ter... | 31.046154 | 80 | 0.613974 |
8a183220de8350ed2877083f9248b67204e3dedd | 84 | ml | OCaml | example/adder.ml | maekawatoshiki/rcaml | c9824653d7acd5de76731428b52d63e41f51c3e9 | [
"MIT"
] | 69 | 2017-10-05T03:57:49.000Z | 2021-07-24T07:28:52.000Z | example/adder.ml | maekawatoshiki/rcaml | c9824653d7acd5de76731428b52d63e41f51c3e9 | [
"MIT"
] | null | null | null | example/adder.ml | maekawatoshiki/rcaml | c9824653d7acd5de76731428b52d63e41f51c3e9 | [
"MIT"
] | 2 | 2019-03-23T02:15:01.000Z | 2021-02-22T10:43:03.000Z | let make_adder x =
let adder y = x + y in
adder in
print_int ((make_adder 3) 7)
| 16.8 | 28 | 0.654762 |
f3d298adf348e99ce2e2b1cc2c61c7b06722340a | 1,366 | mli | OCaml | src/findlib.mli | jonludlam/dune | d6ca965c0556d9925b1160c471b5f04f9fccd41b | [
"MIT"
] | null | null | null | src/findlib.mli | jonludlam/dune | d6ca965c0556d9925b1160c471b5f04f9fccd41b | [
"MIT"
] | 2 | 2018-01-12T08:41:59.000Z | 2020-12-30T21:57:31.000Z | src/findlib.mli | jonludlam/dune | d6ca965c0556d9925b1160c471b5f04f9fccd41b | [
"MIT"
] | null | null | null | (** Findlib database *)
open! Stdune
open Import
(** Findlib database *)
type t
val create
: stdlib_dir:Path.t
-> paths:Path.t list
-> version:Ocaml_version.t
-> t
(** The search path for this DB *)
val paths : t -> Path.t list
module Package : sig
val preds : Variant.Set.t
end
module Unavailable_reaso... | 21.34375 | 76 | 0.674231 |
affc49f3cde49ce61afb0b1da014a15fa565d777 | 7,355 | ml | OCaml | src/lib_shell/validator.ml | Shikanime/Tezos | 3f4be780d80337454518b7fed424520c1a0a5c3c | [
"MIT"
] | 1 | 2021-11-03T08:21:08.000Z | 2021-11-03T08:21:08.000Z | src/lib_shell/validator.ml | Shikanime/Tezos | 3f4be780d80337454518b7fed424520c1a0a5c3c | [
"MIT"
] | null | null | null | src/lib_shell/validator.ml | Shikanime/Tezos | 3f4be780d80337454518b7fed424520c1a0a5c3c | [
"MIT"
] | 4 | 2021-04-27T15:00:34.000Z | 2021-09-26T21:50:01.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 37.335025 | 79 | 0.60068 |
af5b56e6d6802cc48b9145d349aa55b5b365095a | 1,645 | ml | OCaml | src/irmin-pack/pack_store_intf.ml | zshipko/irmin | 733df281a9e56c4e7e7dc5efa92d86abcfc3a012 | [
"0BSD"
] | null | null | null | src/irmin-pack/pack_store_intf.ml | zshipko/irmin | 733df281a9e56c4e7e7dc5efa92d86abcfc3a012 | [
"0BSD"
] | 2 | 2020-09-24T07:16:37.000Z | 2021-01-07T18:03:13.000Z | src/irmin-pack/pack_store_intf.ml | zshipko/irmin | 733df281a9e56c4e7e7dc5efa92d86abcfc3a012 | [
"0BSD"
] | null | null | null | open! Import
(** A [Pack_store.S] is a closeable, persistent implementation of
{!Content_addressable.S} that uses an append-only file of variable-length
data blocks. The data file is indexed by hash via {!Pack_index.S}
implementation. *)
module type S = sig
include Indexable.S
type index
val v :
... | 25.703125 | 78 | 0.636474 |
af58d32ba143c3c6eae7a4bb02a011718371972f | 1,132 | ml | OCaml | data/fa15/0214.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/0214.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/0214.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec wwhile (f,b) =
let temp = f b in
match temp with | (a,boolean) -> if boolean then wwhile (f, a) else a;;
let fixpoint (f,b) = wwhile (let g = f b in ((f, (g < b)), b));;
(* fix
let rec wwhile (f,b) =
let temp = f b in
match temp with | (a,boolean) -> if boolean then wwhile (f, a) else a;;
let fixp... | 14.894737 | 73 | 0.476148 |
afacf6b52f8b124c5b1a918c6bacf4b052aabfb8 | 1,363 | mli | OCaml | src/config.mli | tezosprime/tezosprime | 151c6aaadea7b2d1ba46a172955ef2122bb66528 | [
"MIT"
] | 1 | 2018-06-29T22:29:34.000Z | 2018-06-29T22:29:34.000Z | src/config.mli | tezosprime/tezosprime | 151c6aaadea7b2d1ba46a172955ef2122bb66528 | [
"MIT"
] | null | null | null | src/config.mli | tezosprime/tezosprime | 151c6aaadea7b2d1ba46a172955ef2122bb66528 | [
"MIT"
] | null | null | null | (* Copyright (c) 2015 The Qeditas developers *)
(* Distributed under the MIT software license, see the accompanying
file COPYING or http://www.opensource.org/licenses/mit-license.php. *)
val datadir : string ref
val offline : bool ref
val ltcoffline : bool ref
val daemon : bool ref
val testnet : bool ref
val stakin... | 29.630435 | 73 | 0.779164 |
af3923bf2154582b6493e4907085aa1ffbce10af | 955 | mli | OCaml | src/core/failure.mli | pascutto/ortac | 783b5447d5c540f6256f08dcc186f79225db9604 | [
"MIT"
] | 5 | 2021-05-04T16:49:44.000Z | 2021-11-22T16:46:59.000Z | src/core/failure.mli | pascutto/ortac | 783b5447d5c540f6256f08dcc186f79225db9604 | [
"MIT"
] | 6 | 2021-11-04T11:24:31.000Z | 2022-03-29T18:46:21.000Z | src/core/failure.mli | pascutto/ortac | 783b5447d5c540f6256f08dcc186f79225db9604 | [
"MIT"
] | 1 | 2021-03-09T07:43:41.000Z | 2021-03-09T07:43:41.000Z | open Ppxlib
val violated_invariant :
expression -> term:string -> register_name:expression -> expression
val violated :
[ `Check | `Post | `Pre | `XPost | `Invariant ] ->
term:string ->
register_name:expression ->
expression
val violated_axiom : register_name:expression -> expression
val axiom_failure : ex... | 25.131579 | 76 | 0.731937 |
d2e3d7b74bee0406b533dedad0465d27537f80f2 | 147,695 | ml | OCaml | src/proto_003_PsddFKi3/lib_protocol/script_ir_translator.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_003_PsddFKi3/lib_protocol/script_ir_translator.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_003_PsddFKi3/lib_protocol/script_ir_translator.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 45.472599 | 121 | 0.579444 |
afb6ea4b3d5e692a8af31958e479aaa5378229ee | 24 | ml | OCaml | lib/bag.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | lib/bag.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | lib/bag.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | include Core_kernel.Bag
| 12 | 23 | 0.875 |
afee8888b5dadda88961a52bad5fba30103d51a5 | 1,377 | ml | OCaml | src/ubuffer.ml | hcarty/ulib | b9bb020c2956d0d75b5220c69c90b13035e57b96 | [
"BSD-3-Clause"
] | 1 | 2016-09-07T14:25:46.000Z | 2016-09-07T14:25:46.000Z | src/ubuffer.ml | hcarty/ulib | b9bb020c2956d0d75b5220c69c90b13035e57b96 | [
"BSD-3-Clause"
] | null | null | null | src/ubuffer.ml | hcarty/ulib | b9bb020c2956d0d75b5220c69c90b13035e57b96 | [
"BSD-3-Clause"
] | null | null | null | (***********************************************************************)
(* *)
(* My_stdlib *)
(* *)
(* projets E... | 44.419355 | 73 | 0.351489 |
f31de54ddf5ce2a1d43291bb43966481bda25057 | 1,141 | mli | OCaml | coq-serapi/serlib/ser_inv.mli | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq-serapi/serlib/ser_inv.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq-serapi/serlib/ser_inv.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 2 | 2021-01-19T17:56:28.000Z | 2022-03-28T04:39:41.000Z | (************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2017 *)
(* \VV/ **************************************************************)
(* // * Th... | 51.863636 | 74 | 0.322524 |
8a08bc4fce9d1c5d5665c8ebae77f1cd71a1b717 | 1,309 | ml | OCaml | src/com.docker.slirp/src/bind.ml | samoht/vpnkit | 844f9fabd10147647814b15cc1b81392c4fb60fb | [
"Apache-2.0"
] | null | null | null | src/com.docker.slirp/src/bind.ml | samoht/vpnkit | 844f9fabd10147647814b15cc1b81392c4fb60fb | [
"Apache-2.0"
] | null | null | null | src/com.docker.slirp/src/bind.ml | samoht/vpnkit | 844f9fabd10147647814b15cc1b81392c4fb60fb | [
"Apache-2.0"
] | null | null | null | let src =
let src = Logs.Src.create "port forward" ~doc:"forward local ports to the VM" in
Logs.Src.set_level src (Some Logs.Debug);
src
module Log = (val Logs.src_log src : Logs.LOG)
(* This implementation is OSX-only *)
let request_privileged_port local_ip local_port sock_stream =
let s = Lwt_unix.socket Lw... | 34.447368 | 104 | 0.62796 |
af3efa0f5d6660d82364345bf2136f39b1fe2263 | 52 | mli | OCaml | compiler/lib/Typechecker/ApplyCoercions.mli | nilern/mulled | 45df2af868542be92202ea0aca2c8dc489418d2b | [
"BSD-3-Clause"
] | 6 | 2018-11-27T02:03:49.000Z | 2020-06-16T11:21:18.000Z | compiler/lib/Typechecker/ApplyCoercions.mli | nilern/mulled | 45df2af868542be92202ea0aca2c8dc489418d2b | [
"BSD-3-Clause"
] | 65 | 2019-10-17T14:56:37.000Z | 2020-08-31T18:54:20.000Z | compiler/lib/Typechecker/ApplyCoercions.mli | broom-lang/broom | c91b155e4385f498112afac5bc26f0e33e87459e | [
"BSD-3-Clause"
] | 1 | 2019-10-17T16:23:27.000Z | 2019-10-17T16:23:27.000Z | val apply_coercions : Fc.Program.t -> Fc.Program.t
| 17.333333 | 50 | 0.730769 |
afdd4214e58f120305a15dba8e71667f50a7f56e | 821 | ml | OCaml | src/common/lints/severity.ml | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | 2 | 2018-02-28T06:36:27.000Z | 2018-02-28T06:36:30.000Z | src/common/lints/severity.ml | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | null | null | null | src/common/lints/severity.ml | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | 2 | 2021-02-02T14:51:26.000Z | 2021-02-02T14:52:05.000Z | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
type severity =
| Off
| Warn
| Err
let string_of_severity = function
| Off -> "off"
| Warn -> "warn"
| Err -> "error"
let ... | 21.051282 | 66 | 0.632156 |
f3ee585317e695b3eb30eee8714d5c844fd4fe3d | 393 | mli | OCaml | src/tensorboard/tf_record_writer.mli | LaurentMazare/ocaml-tensorboard | 11022591e15327f31595443d18e1f3e38cc0a433 | [
"MIT"
] | 1 | 2019-05-27T00:54:45.000Z | 2019-05-27T00:54:45.000Z | src/tensorboard/tf_record_writer.mli | LaurentMazare/ocaml-tensorboard | 11022591e15327f31595443d18e1f3e38cc0a433 | [
"MIT"
] | null | null | null | src/tensorboard/tf_record_writer.mli | LaurentMazare/ocaml-tensorboard | 11022591e15327f31595443d18e1f3e38cc0a433 | [
"MIT"
] | null | null | null | module P = Tensorboard_protobuf
type t
val create : filename:string -> t
val close : t -> unit
val write : t -> string -> unit
type feature = [ `f of float list | `b of bytes list | `i of Int64.t list ]
val write_example : t -> (string * feature) list -> unit
val write_sequence_example
: t
-> context:(string *... | 23.117647 | 75 | 0.666667 |
afc0295d467ea883f655568f7522d3a43d805904 | 414 | mli | OCaml | atdgen/src/ov_emit.mli | jchavarri/atd | 2f4f347069efcd0e461fbcf4e3e6e1c0a0eeb66b | [
"BSD-3-Clause"
] | 137 | 2015-03-03T20:17:59.000Z | 2019-08-27T17:01:40.000Z | atdgen/src/ov_emit.mli | jchavarri/atd | 2f4f347069efcd0e461fbcf4e3e6e1c0a0eeb66b | [
"BSD-3-Clause"
] | 154 | 2015-06-22T14:35:58.000Z | 2019-08-27T15:35:05.000Z | atdgen/src/ov_emit.mli | jchavarri/atd | 2f4f347069efcd0e461fbcf4e3e6e1c0a0eeb66b | [
"BSD-3-Clause"
] | 20 | 2015-06-18T18:37:59.000Z | 2019-04-18T11:31:21.000Z | (** Code generator for OCaml validators. *)
val make_ocaml_files
: opens:string list
-> with_typedefs:bool
-> with_create:bool
-> with_fundefs:bool
-> all_rec:bool
-> pos_fname:string option
-> pos_lnum:int option
-> type_aliases:string option
-> force_defaults:_ (* TODO unused *)
-> ocaml_version:... | 25.875 | 44 | 0.688406 |
d2f706d0ada4b1797c9aab47bf2f35e62171424d | 513 | ml | OCaml | result/cafe2/diff/sub4/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/prog/diff/sub4/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/prog/diff/sub4/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type aexp =
| Const of int
| Var of string
| Power of (string * int)
| Times of aexp list
| Sum of aexp list
let rec diff ((aexp : aexp), (x : string)) : aexp =
match aexp with
| Const n -> Const 0
| Var v -> if v = x then Const 1 else Const 0
| Power (v, n) ->
if v = x then Times [ Const n; Po... | 27 | 77 | 0.534113 |
8a266e4b6006812f6b98f1ef6f2c315c07fdd0f1 | 1,795 | ml | OCaml | libraries/ec2/lib/deleteVpcEndpoints.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/deleteVpcEndpoints.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/deleteVpcEndpoints.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DeleteVpcEndpointsRequest.t
type output = DeleteVpcEndpointsResult.t
type error = Errors_internal.t
let service = "ec2"
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)))
(... | 30.948276 | 98 | 0.572145 |
aff4817839c6050d100f39c97e9476e4c33e2924 | 18,000 | ml | OCaml | hphp/hack/src/typing/typing_union.ml | ammarfaizi2/hhvm | 51daefa61e9f6c5e6781c853ec558796e38db4fd | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-08-03T16:16:53.000Z | 2021-08-03T16:16:53.000Z | hphp/hack/src/typing/typing_union.ml | ammarfaizi2/hhvm | 51daefa61e9f6c5e6781c853ec558796e38db4fd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_union.ml | ammarfaizi2/hhvm | 51daefa61e9f6c5e6781c853ec558796e38db4fd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_core
open Typing_defs
module TO = TypecheckerOptions
module Env = Typing_env
module Reason = Typing_reason... | 39.823009 | 80 | 0.646444 |
8a11c3ea9ee6f0ced7729a8245d163271ad72545 | 2,546 | ml | OCaml | tests/slow/test_002.ml | lukaszcz/hcpl | 622fcec8e9275410e916ca28a8982a74f55770a4 | [
"MIT"
] | null | null | null | tests/slow/test_002.ml | lukaszcz/hcpl | 622fcec8e9275410e916ca28a8982a74f55770a4 | [
"MIT"
] | null | null | null | tests/slow/test_002.ml | lukaszcz/hcpl | 622fcec8e9275410e916ca28a8982a74f55770a4 | [
"MIT"
] | null | null | null |
let cons x y = x :: y
let tl = List.tl
let hd = List.hd
let rec revappend lst1 lst2 =
match lst1 with
| h :: t -> revappend t (h :: lst2)
| [] -> lst2
let reverse lst =
let rec aux lst acc = if lst = [] then acc else aux (List.tl lst) ((List.hd lst) :: acc)
in
aux lst []
let append lst1 lst2 = revappend... | 25.46 | 108 | 0.569521 |
af922985bfc06f22a798a52b7354c12835eec609 | 50 | ml | OCaml | src/compiler_modules.ml | NathanReb/toplevel_expect_test | e06d8289a513ad781972995cb0933c0c8351af5e | [
"MIT"
] | 14 | 2016-04-14T09:30:45.000Z | 2021-12-17T02:45:22.000Z | src/compiler_modules.ml | NathanReb/toplevel_expect_test | e06d8289a513ad781972995cb0933c0c8351af5e | [
"MIT"
] | 7 | 2016-03-23T01:04:41.000Z | 2019-09-01T04:03:53.000Z | src/compiler_modules.ml | NathanReb/toplevel_expect_test | e06d8289a513ad781972995cb0933c0c8351af5e | [
"MIT"
] | 4 | 2017-03-24T15:40:17.000Z | 2021-12-17T02:47:38.000Z | module Toploop = Toploop
module Topdirs = Topdirs
| 16.666667 | 24 | 0.8 |
af34ba328b1724ea110d509df4412535c054b0b8 | 5,075 | ml | OCaml | hphp/hack/test/integration_ml/ide/test_auto_ns_aliasing.ml | ammarfaizi2/hhvm | 51daefa61e9f6c5e6781c853ec558796e38db4fd | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-08-03T16:16:53.000Z | 2021-08-03T16:16:53.000Z | hphp/hack/test/integration_ml/ide/test_auto_ns_aliasing.ml | ammarfaizi2/hhvm | 51daefa61e9f6c5e6781c853ec558796e38db4fd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration_ml/ide/test_auto_ns_aliasing.ml | ammarfaizi2/hhvm | 51daefa61e9f6c5e6781c853ec558796e38db4fd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*
*)
module Test = Integration_test_base
let foo_contents =
"<?hh // strict
namespace HH\\LongName\\ShortName;
fun... | 28.194444 | 82 | 0.749557 |
afa80e4ca53d9f77d3023b85d38abc003b132ef0 | 1,853 | ml | OCaml | sledge/nonstdlib/timer.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | sledge/nonstdlib/timer.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | sledge/nonstdlib/timer.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** Timers for runtime statistics *)
open NS0
type t =
{ mutable ustart: float
; mutable sstart: float
; mutable uaggregate... | 26.098592 | 73 | 0.606584 |
af6d73689e53d1745d9720db66fac51853891fdd | 1,374 | ml | OCaml | test/foo.ml | c-cube/frog-utils | 3f68c606a7abe702f9e22a0606080191a2952b18 | [
"BSD-2-Clause"
] | 4 | 2015-03-18T16:27:30.000Z | 2019-05-14T11:49:53.000Z | test/foo.ml | c-cube/frog-utils | 3f68c606a7abe702f9e22a0606080191a2952b18 | [
"BSD-2-Clause"
] | 29 | 2015-02-04T18:45:07.000Z | 2017-06-15T14:13:49.000Z | test/foo.ml | c-cube/frog-utils | 3f68c606a7abe702f9e22a0606080191a2952b18 | [
"BSD-2-Clause"
] | null | null | null |
open OUnit2
let id x = x
(* Testing for froglock *)
let expect_line stream l =
let s = String.init (String.length l) (fun _ -> Stream.next stream) in
assert_equal ~printer:id l s;
assert_equal '\n' (Stream.next stream)
let expect lines s = List.iter (expect_line s) lines
let lock_echo_1 ctxt =
assert_comma... | 27.48 | 98 | 0.665939 |
f3de61f87ae83ae23cba0354ecd04987578d259e | 144,027 | ml | OCaml | src/typing/type.ml | nnmrts/flow | 603a727930a1bf978cc7b644de0c05d3204106c6 | [
"MIT"
] | null | null | null | src/typing/type.ml | nnmrts/flow | 603a727930a1bf978cc7b644de0c05d3204106c6 | [
"MIT"
] | null | null | null | src/typing/type.ml | nnmrts/flow | 603a727930a1bf978cc7b644de0c05d3204106c6 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Polarity
open Reason
open Utils_js
(******************************************************************************)
(* Types ... | 35.111409 | 114 | 0.640873 |
afae4151dcb09851535fa0c335c6b444c309b06d | 400 | mli | OCaml | src/mule/lib/lint.mli | zenhack/mule | f3e23342906d834abb9659c72a67c1405c936a00 | [
"Apache-2.0"
] | 6 | 2019-07-27T19:40:16.000Z | 2020-01-16T18:46:33.000Z | src/mule/lib/lint.mli | zenhack/mule | f3e23342906d834abb9659c72a67c1405c936a00 | [
"Apache-2.0"
] | 1 | 2019-09-24T22:59:02.000Z | 2019-09-24T22:59:02.000Z | src/mule/lib/lint.mli | zenhack/mule | f3e23342906d834abb9659c72a67c1405c936a00 | [
"Apache-2.0"
] | 2 | 2019-09-21T19:57:39.000Z | 2022-03-28T22:05:19.000Z | (** Run several ad-hoc static checks on an expression:
*
* - make sure there are no expressions with duplicate record fields.
* - check for unbound variables.
*
* This is invoked by the type checker, before doing the more principled
* type inference algorithm.
*)
val check_expr : Surface_ast.Expr.lt -> unit... | 30.769231 | 73 | 0.715 |
af9b4f7e8df227b851ae63cc6e2d4c349636ca70 | 32,405 | ml | OCaml | hphp/hack/src/decl/decl_folded_class.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/decl_folded_class.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/decl_folded_class.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(*****************************************************************************)
(* Module used to declare class type... | 34.769313 | 87 | 0.679216 |
af598b444986de7f6627dbd02a6059ff3d5f84cd | 617 | ml | OCaml | benchmarks/C/nat/sol214.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/nat/sol214.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/nat/sol214.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | (* problem 2*)
type nat = ZERO | SUCC of nat
let rec natadd : nat -> nat -> nat
= fun n1 n2 ->
if n1 = ZERO then n2
else match n2 with
| ZERO -> n1
| SUCC a -> natadd (SUCC n1) a
let rec natmul : nat -> nat -> nat
= fun n1 n2 -> (* TODO *)
if n1 = ZERO || n2 = ZERO then ZERO
else if n1 = SUC... | 23.730769 | 42 | 0.560778 |
8a013da00c1b60ae701372766ba6424b2b35a4c7 | 525,782 | ml | OCaml | src/typing/flow_js.ml | bryanmojica/flow | c1cd46caec6f02eee15b0616b3c7a3610ed5a5f9 | [
"MIT"
] | null | null | null | src/typing/flow_js.ml | bryanmojica/flow | c1cd46caec6f02eee15b0616b3c7a3610ed5a5f9 | [
"MIT"
] | null | null | null | src/typing/flow_js.ml | bryanmojica/flow | c1cd46caec6f02eee15b0616b3c7a3610ed5a5f9 | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(* This module describes the subtyping algorithm that forms the core of
typechecking. The algorithm (in its basic form) is desc... | 45.298699 | 106 | 0.573911 |
af2e5354cc36a0edd0d4fda5f4903f6388de2da6 | 15,525 | mli | OCaml | ocaml-sources/stdlib/string.mli | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | ocaml-sources/stdlib/string.mli | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | ocaml-sources/stdlib/string.mli | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 37.5 | 79 | 0.633172 |
af1ac2c7819209eb76f39834f0ef5a7c3b9cc177 | 3,710 | ml | OCaml | examples/awr.ml | LaurentMazare/ocaml-rpi-gpio | f13e019fbb0f9e2d99cc7fe22031c8b0861129fa | [
"MIT"
] | 2 | 2020-04-11T15:37:43.000Z | 2020-06-24T09:14:43.000Z | examples/awr.ml | LaurentMazare/ocaml-rpi-gpio | f13e019fbb0f9e2d99cc7fe22031c8b0861129fa | [
"MIT"
] | null | null | null | examples/awr.ml | LaurentMazare/ocaml-rpi-gpio | f13e019fbb0f9e2d99cc7fe22031c8b0861129fa | [
"MIT"
] | 1 | 2021-03-02T15:06:20.000Z | 2021-03-02T15:06:20.000Z | (* Adeept AWR robot control. *)
open Base
module Gpio = Rpi_gpio.Gpio
module Ultrasonic : sig
type t
val create : unit -> t
val get : t -> float
val close : t -> unit
end = struct
type t =
{ tr : [ `output ] Gpio.t
; ec : [ `input ] Gpio.t
}
let create () =
let tr = Gpio.create_output ~ch... | 24.090909 | 65 | 0.58814 |
afe5a34dd0e40c5ad6b80785c613acacecec1f66 | 12,332 | ml | OCaml | duniverse/opam/src/solver/opamActionGraph.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/opam/src/solver/opamActionGraph.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/opam/src/solver/opamActionGraph.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | (**************************************************************************)
(* *)
(* Copyright 2014-2019 OCamlPro *)
(* Copyright 2012 INRIA *)
(* ... | 35.436782 | 84 | 0.537058 |
afe08e7a74436203a5238caac5d2bbd4dadbe413 | 19,114 | ml | OCaml | lib/cstruct.ml | imbsky/ocaml-cstruct | 2dfc521cf8ea09b3f383391255b97f47e5b873d3 | [
"ISC"
] | 11 | 2020-07-14T13:57:02.000Z | 2020-09-05T23:50:25.000Z | lib/cstruct.ml | imbsky/ocaml-cstruct | 2dfc521cf8ea09b3f383391255b97f47e5b873d3 | [
"ISC"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | lib/cstruct.ml | imbsky/ocaml-cstruct | 2dfc521cf8ea09b3f383391255b97f47e5b873d3 | [
"ISC"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | (*
* Copyright (c) 2012 Anil Madhavapeddy <anil@recoil.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 35.265683 | 140 | 0.664905 |
afaf600c0ef36c9684386aa19690a7682ba5b328 | 9,826 | ml | OCaml | src/lib_lwt_result_stdlib/bare/sigs/option.ml | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/lib_lwt_result_stdlib/bare/sigs/option.ml | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/lib_lwt_result_stdlib/bare/sigs/option.ml | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020-2021 Nomadic Labs <contact@nomadic-labs.com> *)
... | 38.085271 | 92 | 0.574598 |
f35db312c38734827bf94410b82a7f8a33c8c38c | 2,603 | ml | OCaml | src/irmin-pack/IO_layers.ml | AntouanK/test-irmin | 07c8378acb835281d0fd2e4f492b84b0fc3b5588 | [
"0BSD"
] | null | null | null | src/irmin-pack/IO_layers.ml | AntouanK/test-irmin | 07c8378acb835281d0fd2e4f492b84b0fc3b5588 | [
"0BSD"
] | null | null | null | src/irmin-pack/IO_layers.ml | AntouanK/test-irmin | 07c8378acb835281d0fd2e4f492b84b0fc3b5588 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-2020 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 32.5375 | 78 | 0.666539 |
f32d86a490885e9b0332d1225ed08ac83567e8e5 | 2,743 | ml | OCaml | src/cdomains/fileDomain.ml | AlexanderEichler/analyzer | 7d0eec92c338dceac99a7847a8a7c5428c1f89c3 | [
"MIT"
] | null | null | null | src/cdomains/fileDomain.ml | AlexanderEichler/analyzer | 7d0eec92c338dceac99a7847a8a7c5428c1f89c3 | [
"MIT"
] | null | null | null | src/cdomains/fileDomain.ml | AlexanderEichler/analyzer | 7d0eec92c338dceac99a7847a8a7c5428c1f89c3 | [
"MIT"
] | null | null | null | open Prelude
module D = LvalMapDomain
module Val =
struct
type mode = Read | Write
type s = Open of string*mode | Closed | Error
let name = "File handles"
let var_state = Closed
let string_of_mode = function Read -> "Read" | Write -> "Write"
let string_of_state = function
| Open(filename, m) -> "open... | 33.864198 | 100 | 0.604083 |
f394f28812cf5d9e837afd1ad49fa3e65c2f7d9c | 56,790 | ml | OCaml | src/ocaml/typer_402/typing/printtyp.ml | bluddy/merlin | cdb6b7100dce8f02970d1b69f3a68fe498ec22b4 | [
"MIT"
] | null | null | null | src/ocaml/typer_402/typing/printtyp.ml | bluddy/merlin | cdb6b7100dce8f02970d1b69f3a68fe498ec22b4 | [
"MIT"
] | null | null | null | src/ocaml/typer_402/typing/printtyp.ml | bluddy/merlin | cdb6b7100dce8f02970d1b69f3a68fe498ec22b4 | [
"MIT"
] | 1 | 2017-11-06T17:46:59.000Z | 2017-11-06T17:46:59.000Z | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Leroy and Jero... | 32.121041 | 111 | 0.596866 |
afdbb22537fe08692860d03c1a4e429cffdc04d5 | 8,232 | ml | OCaml | libraries/ec2/lib/revokeSecurityGroupEgress.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/ec2/lib/revokeSecurityGroupEgress.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/revokeSecurityGroupEgress.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | open Types[@@ocaml.warning "-33"]
open Aws.BaseTypes[@@ocaml.warning "-33"]
open Aws
module RevokeSecurityGroupEgressRequest =
struct
type t =
{
dry_run: Boolean.t option
[@ocaml.doc
"<p>Checks whether you have the required permissions for the action, without actually making the requ... | 42.43299 | 297 | 0.56086 |
afa9af14d030eb19e6107a7b8dfa122c3da1de83 | 1,207 | mli | OCaml | infer/src/IR/DecompiledExp.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | infer/src/IR/DecompiledExp.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | infer/src/IR/DecompiledExp.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 2,225 | 2015-06-11T16:36:10.000Z | 2022-03-31T05:16:59.000Z | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** The Smallfoot Intermediate Language: Decompiled Expressions *)
open! IStd
module F ... | 27.431818 | 98 | 0.673571 |
f3d30ad33a6f56768af0dd418b3ddddd7a6b4164 | 8,194 | ml | OCaml | data/derived/comb/progs/unify/prog0731.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | 4 | 2017-07-04T22:30:05.000Z | 2021-03-29T14:44:52.000Z | data/derived/sp14/progs/unify/prog0731.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0731.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 25.68652 | 148 | 0.643642 |
aff298638d11d989b28f73f73a264197e3720b0a | 2,130 | ml | OCaml | lib/job.ml | npm-opam/jenga | a2356d38bbe3d5be9cbcd4dae4d5a998521f4f44 | [
"Apache-2.0"
] | null | null | null | lib/job.ml | npm-opam/jenga | a2356d38bbe3d5be9cbcd4dae4d5a998521f4f44 | [
"Apache-2.0"
] | null | null | null | lib/job.ml | npm-opam/jenga | a2356d38bbe3d5be9cbcd4dae4d5a998521f4f44 | [
"Apache-2.0"
] | null | null | null |
open Core.Std
open! Int.Replace_polymorphic_compare
open Async.Std
include Db.Job
let to_sh_ignoring_dir t =
Job_summary.Q.shell_escape_list (prog t :: args t)
(* returns a bash script that expects to be run from the repo root *)
let to_sh_root_relative t =
if Path.(=) (dir t) Path.the_root
then to_sh_ignorin... | 25.357143 | 82 | 0.647418 |
8a0f587fdae500dd250e82e779bb13ffc0746bb0 | 9,836 | ml | OCaml | bindings/types/stubs.ml | wlitwin/ocaml_portaudio | 28f555d2e80a7ac24dffdb5d27ef09b6da58ee57 | [
"MIT"
] | null | null | null | bindings/types/stubs.ml | wlitwin/ocaml_portaudio | 28f555d2e80a7ac24dffdb5d27ef09b6da58ee57 | [
"MIT"
] | null | null | null | bindings/types/stubs.ml | wlitwin/ocaml_portaudio | 28f555d2e80a7ac24dffdb5d27ef09b6da58ee57 | [
"MIT"
] | null | null | null | module Make(S : Cstubs_structs.TYPE) = struct
open Ctypes
open S
let e_val a n = a, S.constant n S.int64_t
module PaError = struct
type t = NoError
| Not_initialized
| Unanticipated_host_error
| Invalid_channel_count
| Invalid_device
| Inv... | 37.685824 | 117 | 0.655348 |
Subsets and Splits
HTML Code Excluding Scripts
The query retrieves a limited set of HTML content entries that are longer than 8 characters and do not contain script tags, offering only basic filtering with minimal analytical value.