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
179193c42da3b5babeb3631cd5b3367b5141f78a
3,980
ml
OCaml
data/fa15/0207.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/fa15/0207.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/fa15/0207.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
type expr = | VarX | VarY | Sine of expr | Cosine of expr | Average of expr* expr | Times of expr* expr | Thresh of expr* expr* expr* expr | NewOp1 of expr* expr* expr | NewOp2 of expr;; let pi = 4.0 *. (atan 1.0);; let rec eval (e,x,y) = match e with | VarX -> x | VarY -> y | Sine e1 -> ...
18.685446
70
0.477387
17a536758d54c9448b843e691750fbab0e8405b8
3,027
ml
OCaml
src/core/CCHash.ml
struktured/ocaml-containers
da09bfa02e2d4c74949834847df654a7859729e9
[ "BSD-2-Clause" ]
null
null
null
src/core/CCHash.ml
struktured/ocaml-containers
da09bfa02e2d4c74949834847df654a7859729e9
[ "BSD-2-Clause" ]
null
null
null
src/core/CCHash.ml
struktured/ocaml-containers
da09bfa02e2d4c74949834847df654a7859729e9
[ "BSD-2-Clause" ]
null
null
null
(* Copyright (c) 2013, Simon Cruanes All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disc...
30.887755
79
0.691444
aaf768537b29548fd112d379a9490994f5652df9
580
ml
OCaml
hphp/hack/src/client/clientRestart.ml
OrochiProject/hhvm-log
67d6048eaad7dc65357c6cf91cfd10c24d32ed95
[ "PHP-3.01", "Zend-2.0" ]
1
2021-03-09T04:27:14.000Z
2021-03-09T04:27:14.000Z
hphp/hack/src/client/clientRestart.ml
OrochiProject/hhvm-log
67d6048eaad7dc65357c6cf91cfd10c24d32ed95
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/client/clientRestart.ml
OrochiProject/hhvm-log
67d6048eaad7dc65357c6cf91cfd10c24d32ed95
[ "PHP-3.01", "Zend-2.0" ]
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 "hack" directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * *) let main env ...
34.117647
80
0.748276
17fc1f4864cf78737bca25d93e25263cb83db65d
4,511
ml
OCaml
hphp/hack/src/typing/tast_check/instantiability_check.ml
Nicztin/hhvm
25d78f95e739823350a1a48e0f60d5a05598ad83
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/tast_check/instantiability_check.ml
Nicztin/hhvm
25d78f95e739823350a1a48e0f60d5a05598ad83
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/tast_check/instantiability_check.ml
Nicztin/hhvm
25d78f95e739823350a1a48e0f60d5a05598ad83
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(* * Copyright (c) 2018, 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 Core_kernel open Aast module ShapeMap = Aast.ShapeMap module SN = Naming_special_names module Cls = Decl_provid...
27.339394
78
0.640213
1753cc32e13296f04c99d26350fdda38ab1dd312
1,299
ml
OCaml
data/fa15/0900.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/fa15/0900.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/fa15/0900.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
let explode s = let rec go i = if i >= (String.length s) then [] else (s.[i]) :: (go (i + 1)) in go 0;; let palindrome w = if String.length = 0 then true else explode w;; (* fix let explode s = let rec go i = if i >= (String.length s) then [] else (s.[i]) :: (go (i + 1)) in go 0;; let rec listReve...
14.931034
73
0.47883
1707bdbf11e6e720b2add71a5c0d1ca26315a756
13,770
ml
OCaml
src/lib/pipe_lib/strict_pipe.ml
nireno/coda
40c1957c788a021c7bc25cf1e0b8ea8d5770d2d9
[ "Apache-2.0" ]
1
2020-05-05T07:31:26.000Z
2020-05-05T07:31:26.000Z
src/lib/pipe_lib/strict_pipe.ml
nireno/coda
40c1957c788a021c7bc25cf1e0b8ea8d5770d2d9
[ "Apache-2.0" ]
null
null
null
src/lib/pipe_lib/strict_pipe.ml
nireno/coda
40c1957c788a021c7bc25cf1e0b8ea8d5770d2d9
[ "Apache-2.0" ]
null
null
null
open Async_kernel open Core_kernel exception Overflow of string exception Multiple_reads_attempted of string type crash = Overflow_behavior_crash type drop_head = Overflow_behavior_drop_head type _ overflow_behavior = | Crash : crash overflow_behavior | Drop_head : drop_head overflow_behavior type synchronous...
34.253731
80
0.635294
17df3b3ea0843b83d2e972e89ba998a0e102df9d
5,825
ml
OCaml
src/lex/output.ml
objmagic/synsyn
afad917e975fe16cb725e6cdd5a46e72ac8cb735
[ "WTFPL" ]
1
2016-05-17T14:29:13.000Z
2016-05-17T14:29:13.000Z
src/lex/output.ml
objmagic/synsyn
afad917e975fe16cb725e6cdd5a46e72ac8cb735
[ "WTFPL" ]
null
null
null
src/lex/output.ml
objmagic/synsyn
afad917e975fe16cb725e6cdd5a46e72ac8cb735
[ "WTFPL" ]
null
null
null
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
38.071895
79
0.591416
cd203421f70f2afd87dbf8a79760a9a6c8df33ac
60
ml
OCaml
Chapter1/ex1.10.ml
gbamqzkdyg/OCaml_basic_tutorial_ex
693d1597a9f2722e4b9aa3c54d3bb68f5b559014
[ "MIT" ]
null
null
null
Chapter1/ex1.10.ml
gbamqzkdyg/OCaml_basic_tutorial_ex
693d1597a9f2722e4b9aa3c54d3bb68f5b559014
[ "MIT" ]
null
null
null
Chapter1/ex1.10.ml
gbamqzkdyg/OCaml_basic_tutorial_ex
693d1597a9f2722e4b9aa3c54d3bb68f5b559014
[ "MIT" ]
null
null
null
(* * 有类型错误。 * 在"let d = a + 1.0"中,a为int型,而1.0为float型。 *)
12
42
0.5
17b84dd6fbf0dee9b6577eea0a3b6368c5c924cd
2,763
ml
OCaml
lib/functoria/filegen.ml
CraigFe/mirage
a4b2f712d2af8a002f74e8b578a8479108eb9b29
[ "ISC" ]
null
null
null
lib/functoria/filegen.ml
CraigFe/mirage
a4b2f712d2af8a002f74e8b578a8479108eb9b29
[ "ISC" ]
2
2019-10-26T12:20:32.000Z
2019-12-18T17:27:43.000Z
lib/functoria/filegen.ml
CraigFe/mirage
a4b2f712d2af8a002f74e8b578a8479108eb9b29
[ "ISC" ]
1
2021-06-16T23:14:47.000Z
2021-06-16T23:14:47.000Z
(* * Copyright (c) 2013-2020 Thomas Gazagnaire <thomas@gazagnaire.org> * Copyright (c) 2013-2020 Anil Madhavapeddy <anil@recoil.org> * Copyright (c) 2015-2020 Gabriel Radanne <drupyog@zoho.com> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby grante...
34.974684
75
0.636265
17f2bfefdc09530301a2ba9ae26343c5f3c0c7d2
2,121
ml
OCaml
src/lib_mockup/mockup_args.ml
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
8
2021-11-02T13:06:58.000Z
2021-11-18T19:07:33.000Z
src/lib_mockup/mockup_args.ml
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
14
2020-05-07T15:51:28.000Z
2022-02-06T10:11:51.000Z
src/lib_mockup/mockup_args.ml
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
3
2021-01-06T00:06:10.000Z
2021-05-31T18:07:55.000Z
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2020 Nomadic Labs, <contact@nomadic-labs.com> *) ...
64.272727
79
0.490335
17fec6d0ec6fd70ff43b83a113c150d303cac5d1
1,655
ml
OCaml
src/owl/dense/owl_dense_matrix_d.ml
jzstark/owl
eead31f1920e63b876421e6a30e61c947f29827f
[ "MIT" ]
null
null
null
src/owl/dense/owl_dense_matrix_d.ml
jzstark/owl
eead31f1920e63b876421e6a30e61c947f29827f
[ "MIT" ]
null
null
null
src/owl/dense/owl_dense_matrix_d.ml
jzstark/owl
eead31f1920e63b876421e6a30e61c947f29827f
[ "MIT" ]
null
null
null
(* * OWL - OCaml Scientific Computing * Copyright (c) 2016-2022 Liang Wang <liang@ocaml.xyz> *) (** [ Real dense matrix ] *) [@@@warning "-34"] open Bigarray module M = Owl_dense_matrix_generic include M type elt = float type mat = (float, float64_elt) M.t type arr = (float, float64_elt) Owl_dense_ndarray_gen...
20.432099
69
0.700302
176b8d5199914737e47262206e991c0dc99fc407
1,502
ml
OCaml
indexset/indexset.ml
meggermo/hmlib
17fb8bab63b9775a4c01fa22b5ba2e522179e521
[ "MIT" ]
null
null
null
indexset/indexset.ml
meggermo/hmlib
17fb8bab63b9775a4c01fa22b5ba2e522179e521
[ "MIT" ]
null
null
null
indexset/indexset.ml
meggermo/hmlib
17fb8bab63b9775a4c01fa22b5ba2e522179e521
[ "MIT" ]
null
null
null
(** Module for working with one dimensional index sets *) module IndexSet1D : sig type t (** Representation of a 1D index set *) val create : int -> t (** [create size] creates an index set containing the indices 1,2,...,size *) val ib : t -> int (** [ib s] returns the begin index of the set s *) val ...
27.309091
80
0.575233
177b57e6fe3f6195d976051c5a147194d3781e34
262
ml
OCaml
bench/src/bench_run_length_encode.ml
bcc32/projecteuler-ocaml
647a1db1caaf919a1c506c213a2e7948ac3ea63c
[ "MIT" ]
10
2018-10-15T02:11:39.000Z
2022-01-26T08:57:12.000Z
bench/src/bench_run_length_encode.ml
bcc32/projecteuler-ocaml
647a1db1caaf919a1c506c213a2e7948ac3ea63c
[ "MIT" ]
null
null
null
bench/src/bench_run_length_encode.ml
bcc32/projecteuler-ocaml
647a1db1caaf919a1c506c213a2e7948ac3ea63c
[ "MIT" ]
1
2020-04-18T13:03:50.000Z
2020-04-18T13:03:50.000Z
open! Core open! Import let%bench_fun "Euler.run_length_encode" = let length = 200 in let list = List.gen_with_length length [%quickcheck.generator: bool] |> Quickcheck.random_value in fun () -> Sequences.run_length_encode list ~equal:Bool.equal ;;
23.818182
88
0.732824
179bdea907baf7346afd93f969989b1f797299c5
1,625
ml
OCaml
src/core/Namespace.ml
mmcqd/cooltt
88511e10cb9e17286f585882dee334f3d8ace47c
[ "Apache-2.0" ]
14
2019-12-21T05:59:18.000Z
2020-01-08T09:14:42.000Z
src/core/Namespace.ml
mmcqd/cooltt
88511e10cb9e17286f585882dee334f3d8ace47c
[ "Apache-2.0" ]
46
2020-01-12T19:12:26.000Z
2020-05-09T03:27:35.000Z
src/core/Namespace.ml
jonsterling/fun-tt
46a0bd0b5b270aa341c9f7d3af7937fabf6c8562
[ "Apache-2.0" ]
2
2020-05-01T01:24:41.000Z
2020-05-05T16:00:19.000Z
open Yuujinchou type path = Pattern.path type 'a t = 'a Trie.t type 'a pattern = ([< `Print of string option] as 'a) Pattern.t type ('a, 'error) result = ('a, [> `BindingNotFound of path | `Shadowing of path ] as 'error) Stdlib.result let empty = Trie.empty let prefix = Trie.prefix let merge ~shadowing ~rev_path _...
31.25
107
0.649231
17e361c87b4dc770eb9470afab1d72774aa9766b
74
mli
OCaml
src/common/image.mli
pstlGameEngine/gameEngine
45df74efcb79164ab35f7a000544a64ab732ab3b
[ "CECILL-B" ]
1
2017-03-20T11:30:35.000Z
2017-03-20T11:30:35.000Z
src/common/image.mli
pstlGameEngine/gameEngine
45df74efcb79164ab35f7a000544a64ab732ab3b
[ "CECILL-B" ]
null
null
null
src/common/image.mli
pstlGameEngine/gameEngine
45df74efcb79164ab35f7a000544a64ab732ab3b
[ "CECILL-B" ]
null
null
null
type t val create_from_file : string -> t val get_filename : t -> string
18.5
34
0.716216
17c78aebdb8138a2c8a8df44bc7032dc07616dbd
60,908
ml
OCaml
hphp/hack/src/hhbc/closure_convert.ml
modyharshit23/hhvm
dc14931d80a49c60fac2365b92f3648e12d9b0f4
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/hhbc/closure_convert.ml
modyharshit23/hhvm
dc14931d80a49c60fac2365b92f3648e12d9b0f4
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/hhbc/closure_convert.ml
modyharshit23/hhvm
dc14931d80a49c60fac2365b92f3648e12d9b0f4
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(* * Copyright (c) 2017, 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 Aast open Tast open Ast_scope open Core_kernel open Common module ULS = Unique_list_string module SN = Naming_s...
32.056842
112
0.622217
1738934ff0ea0196774d0e89b860b89f80ec84f4
278
ml
OCaml
ocaml-sources/testsuite/tests/runtime-naked-pointers/np.ml
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
2
2021-03-03T15:31:36.000Z
2021-03-05T16:01:39.000Z
ocaml-sources/testsuite/tests/runtime-naked-pointers/np.ml
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
2
2021-03-03T16:08:23.000Z
2021-03-03T19:31:03.000Z
ocaml-sources/testsuite/tests/runtime-naked-pointers/np.ml
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
null
null
null
type color = White | Gray | Blue | Black external make_block: nativeint -> color -> nativeint -> Obj.t = "make_block" external make_raw_pointer: nativeint -> Obj.t = "make_raw_pointer" let do_gc root = Gc.compact(); (* full major + compaction *) root
23.166667
61
0.643885
cd045e4252545c7b59440c6eafe3bc1dc098a62a
4,564
ml
OCaml
Resources/coq-8.3pl2/plugins/micromega/persistent_cache.ml
mzp/coq-for-ipad
4fb3711723e2581a170ffd734e936f210086396e
[ "MIT" ]
1
2015-01-27T00:11:26.000Z
2015-01-27T00:11:26.000Z
Resources/coq-8.3pl2/plugins/micromega/persistent_cache.ml
mzp/coq-for-ipad
4fb3711723e2581a170ffd734e936f210086396e
[ "MIT" ]
null
null
null
Resources/coq-8.3pl2/plugins/micromega/persistent_cache.ml
mzp/coq-for-ipad
4fb3711723e2581a170ffd734e936f210086396e
[ "MIT" ]
null
null
null
(************************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) (* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2010 *) (* \VV/ **************************************************************) (* // * Th...
25.21547
96
0.523883
17ff23bfcf1f4bd7a097df5e71088e4c45c48589
4,264
ml
OCaml
test/bin/hash_queue_test.ml
acatton/fork--janestreet--core
c125d07001e8a15a3b705e783e3da7e8e6413f25
[ "Apache-2.0" ]
null
null
null
test/bin/hash_queue_test.ml
acatton/fork--janestreet--core
c125d07001e8a15a3b705e783e3da7e8e6413f25
[ "Apache-2.0" ]
null
null
null
test/bin/hash_queue_test.ml
acatton/fork--janestreet--core
c125d07001e8a15a3b705e783e3da7e8e6413f25
[ "Apache-2.0" ]
null
null
null
open OUnit;; open Core let test = "hash_queue" >::: [ "basic" >:: (fun () -> let module Hq_arg = struct include String let hash (x : t) = Hashtbl.hash x let sexp_of_t = Sexplib.Conv.sexp_of_string end in let module Hq = Hash_queue.Make (Hq_arg) in let hq = Hq.cre...
34.95082
82
0.526266
cd177aee981ad597075319c876f307cd96ee0b87
6,196
ml
OCaml
examples/better-make-style/jenga/root.ml
npm-opam/jenga
a2356d38bbe3d5be9cbcd4dae4d5a998521f4f44
[ "Apache-2.0" ]
null
null
null
examples/better-make-style/jenga/root.ml
npm-opam/jenga
a2356d38bbe3d5be9cbcd4dae4d5a998521f4f44
[ "Apache-2.0" ]
null
null
null
examples/better-make-style/jenga/root.ml
npm-opam/jenga
a2356d38bbe3d5be9cbcd4dae4d5a998521f4f44
[ "Apache-2.0" ]
null
null
null
open Core.Std open Async.Std open Jenga_lib.Api let return = Dep.return let ( *>>| ) = Dep.map let ( *>>= ) = Dep.bind let relative = Path.relative let bash ~dir command = Action.process ~dir ~prog:"bash" ~args:["-c"; command] () let slice s a b = if a = b then "" else String.slice s a b let expand_dollar_vars ~l...
34.043956
82
0.596998
cd0907fc1644d4f2b9cda4858257c716ae4c0464
2,857
ml
OCaml
src/utop.ml
bluddy/dune
a0fc548eb65e9a11165f4a86bba609fa0b71a1be
[ "MIT" ]
null
null
null
src/utop.ml
bluddy/dune
a0fc548eb65e9a11165f4a86bba609fa0b71a1be
[ "MIT" ]
null
null
null
src/utop.ml
bluddy/dune
a0fc548eb65e9a11165f4a86bba609fa0b71a1be
[ "MIT" ]
null
null
null
open Import open Jbuild open Build.O open! No_io let exe_name = "utop" let main_module_name = Module.Name.of_string exe_name let main_module_filename = exe_name ^ ".ml" let pp_ml fmt include_dirs = let pp_include fmt = let pp_sep fmt () = Format.fprintf fmt "@ ; " in Format.pp_print_list ~pp_sep (fun fmt p ...
32.465909
77
0.622681
17c471edc18003d7d1edff9ef9f9a6454dba4b41
138
mli
OCaml
src/external_job.mli
npm-opam/async_kernel
f10eb24919198c15f3a1f95e41f5eae67e93cb17
[ "Apache-2.0" ]
null
null
null
src/external_job.mli
npm-opam/async_kernel
f10eb24919198c15f3a1f95e41f5eae67e93cb17
[ "Apache-2.0" ]
null
null
null
src/external_job.mli
npm-opam/async_kernel
f10eb24919198c15f3a1f95e41f5eae67e93cb17
[ "Apache-2.0" ]
null
null
null
open! Core_kernel.Std open! Import type t = Types.External_job.t = T : Execution_context.t * ('a -> unit) * 'a -> t [@@deriving sexp_of]
23
80
0.666667
17f3f80ac6489c7da6911f9d12329f61aed36577
668
ml
OCaml
data/fa15/1983.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/fa15/1983.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/fa15/1983.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
let pipe fs = let f a x b = b x in let base b = b in List.fold_left f base fs;; (* fix let pipe fs = let f a x b = b in let base b = b in List.fold_left f base fs;; *) (* changed spans (2,28)-(2,31) (2,30)-(2,31) *) (* type error slice (2,14)-(2,77) (2,20)-(2,31) (2,22)-(2,31) (2,24)-(2,31) (2,28)-(2,29) (2,28)-...
13.36
79
0.483533
aac301046b4fd7e3554e58db3254ca734328abe5
2,082
ml
OCaml
lib/asttypes.ml
serokell/ocaml-recovery-parser
e05c872d1a0e8074940d995b57556121eddbf0f2
[ "MIT" ]
1
2022-02-12T05:08:47.000Z
2022-02-12T05:08:47.000Z
lib/asttypes.ml
serokell/ocaml-recovery-parser
e05c872d1a0e8074940d995b57556121eddbf0f2
[ "MIT" ]
5
2021-10-15T16:40:17.000Z
2022-03-25T22:36:20.000Z
lib/asttypes.ml
serokell/ocaml-recovery-parser
e05c872d1a0e8074940d995b57556121eddbf0f2
[ "MIT" ]
null
null
null
(* SPDX-License-Identifier: LGPL-2.1-only *) (**************************************************************************) (* *) (* OCaml *) (* ...
32.030769
76
0.462536
1793093b5c97177cad2a6a7b668e4bcec1386bf3
134
mli
OCaml
eager_deferred/src/eager_deferred_or_error.mli
janestreet/async_kernel
0f53fece3a9e5aeb404a067250aa8d6b71744a0d
[ "MIT" ]
47
2015-02-08T20:14:40.000Z
2021-12-17T02:54:42.000Z
eager_deferred/src/eager_deferred_or_error.mli
janestreet/async_kernel
0f53fece3a9e5aeb404a067250aa8d6b71744a0d
[ "MIT" ]
12
2015-03-13T14:32:22.000Z
2020-10-26T17:28:18.000Z
eager_deferred/src/eager_deferred_or_error.mli
janestreet/async_kernel
0f53fece3a9e5aeb404a067250aa8d6b71744a0d
[ "MIT" ]
16
2015-01-18T04:15:19.000Z
2021-12-17T02:55:43.000Z
open! Core open! Async_kernel open! Import include Eager_deferred_intf.Eager_deferred_or_error with type 'a deferred := 'a Deferred.t
26.8
90
0.820896
17d47096a1d8dbfdabfd7344cc533355cedc61f0
149,773
ml
OCaml
src/ocaml-output/FStar_Syntax_DsEnv.ml
pnmadelaine/FStar
cd926286b895228447ca15e03e00e7f7509815bb
[ "Apache-2.0" ]
null
null
null
src/ocaml-output/FStar_Syntax_DsEnv.ml
pnmadelaine/FStar
cd926286b895228447ca15e03e00e7f7509815bb
[ "Apache-2.0" ]
null
null
null
src/ocaml-output/FStar_Syntax_DsEnv.ml
pnmadelaine/FStar
cd926286b895228447ca15e03e00e7f7509815bb
[ "Apache-2.0" ]
null
null
null
open Prims type used_marker = Prims.bool FStar_Compiler_Effect.ref type open_kind = | Open_module | Open_namespace let (uu___is_Open_module : open_kind -> Prims.bool) = fun projectee -> match projectee with | Open_module -> true | uu___ -> false let (uu___is_Open_namespace : open_kind -> Prims.bool) = fun...
44.562035
121
0.542675
17b949dce5ac78938de98340e2a5322e6815304f
8,017
ml
OCaml
src/dune_rules/compilation_context.ml
snowleopard/dune
dcf921ca5cd825ddb054682809bc4032e0d92ebc
[ "MIT" ]
null
null
null
src/dune_rules/compilation_context.ml
snowleopard/dune
dcf921ca5cd825ddb054682809bc4032e0d92ebc
[ "MIT" ]
null
null
null
src/dune_rules/compilation_context.ml
snowleopard/dune
dcf921ca5cd825ddb054682809bc4032e0d92ebc
[ "MIT" ]
null
null
null
open! Dune_engine open! Stdune open Import module SC = Super_context module Includes = struct type t = Command.Args.without_targets Command.Args.t Cm_kind.Dict.t let make ~project ~opaque ~requires : _ Cm_kind.Dict.t = let open Resolve.Build.O in let iflags libs mode = Lib.L.include_flags ~project libs mo...
28.838129
80
0.676687
1744674db7a4a873a82b23a3a47ab8d8e7a12e4f
67,589
ml
OCaml
src/frontend/Typechecker.ml
mike-lawrence/stanc3
6701c66871b7169467cf13f5bfdf2fa59b895532
[ "BSD-3-Clause" ]
null
null
null
src/frontend/Typechecker.ml
mike-lawrence/stanc3
6701c66871b7169467cf13f5bfdf2fa59b895532
[ "BSD-3-Clause" ]
null
null
null
src/frontend/Typechecker.ml
mike-lawrence/stanc3
6701c66871b7169467cf13f5bfdf2fa59b895532
[ "BSD-3-Clause" ]
null
null
null
(** a type/semantic checker for Stan ASTs Functions which begin with "check_" return a typed version of their input Functions which begin with "verify_" return unit if a check succeeds, or else throw an Errors.SemanticError exception. Other functions which begin with "infer"/"calculate" vary. Usually they re...
39.96984
101
0.686058
17ca9bc5c221ac2bb3645d9cf93a06e64dbb5cb9
2,802
ml
OCaml
tools/print_binable_functors.ml
obazl/ppx_version
dc0d05d92a783644b5e136acb6960dcbd0cee104
[ "Apache-2.0" ]
8
2020-08-15T15:43:42.000Z
2021-10-30T04:38:30.000Z
tools/print_binable_functors.ml
obazl/ppx_version
dc0d05d92a783644b5e136acb6960dcbd0cee104
[ "Apache-2.0" ]
3
2020-07-01T17:27:26.000Z
2021-11-03T00:44:21.000Z
tools/print_binable_functors.ml
obazl/ppx_version
dc0d05d92a783644b5e136acb6960dcbd0cee104
[ "Apache-2.0" ]
4
2020-06-30T03:33:05.000Z
2021-07-28T19:35:34.000Z
(* print_binable_functors.ml *) (* print out applications of functors Binable.Of... or Bin_prot.Utils.Make_binable within a versioned type, these should not change and they should always appear within a versioned type *) open Core_kernel open Ppxlib open Ppx_version open Versioned_util let name = "print_bina...
27.742574
82
0.6399
cd2c882e7df1ce0ca93ded4ca06f212cafd68e55
1,045
ml
OCaml
data/derived/comb/progs/unify/prog8026.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/prog3233.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/fa15/progs/unify/prog3233.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));; let padZero l1 l2 = let numZeros = (List.length l1) - (List.length l2) in let absNumZeros = abs numZeros in if numZeros = 0 then (l1, l2) else (let listZeros = clone 0 absNumZeros in if numZeros > 0 then (l1, (listZeros @ l2)) else...
33.709677
79
0.61244
17e8889d575c40fdb8797e21fd506be63f1211bc
5,902
ml
OCaml
src/bin_node/node_data_version.ml
xtzbaker/tezos
f2961db7406b56b060da1895857f48835ecfc260
[ "MIT" ]
null
null
null
src/bin_node/node_data_version.ml
xtzbaker/tezos
f2961db7406b56b060da1895857f48835ecfc260
[ "MIT" ]
null
null
null
src/bin_node/node_data_version.ml
xtzbaker/tezos
f2961db7406b56b060da1895857f48835ecfc260
[ "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> *) ...
43.080292
81
0.612165
bcff715b300bbf04a8221f43aab0e3d7b29f5bdd
8,026
ml
OCaml
src/transform/expressionEvaluation.ml
TimOrtel/analyzer
f29b1604963a72dca80d27ad2c06bcd17088dc54
[ "MIT" ]
null
null
null
src/transform/expressionEvaluation.ml
TimOrtel/analyzer
f29b1604963a72dca80d27ad2c06bcd17088dc54
[ "MIT" ]
7
2022-02-23T17:37:19.000Z
2022-03-30T16:23:06.000Z
src/transform/expressionEvaluation.ml
TimOrtel/analyzer
f29b1604963a72dca80d27ad2c06bcd17088dc54
[ "MIT" ]
null
null
null
open Batteries let transformation_identifier = "expeval" let transformation_query_file_name_identifier = "trans." ^ transformation_identifier ^ ".query_file_name" type query = { kind : CodeQuery.kind; target : CodeQuery.target; find : CodeQuery.find; structure : (CodeQuery.structure [@default None_...
38.401914
165
0.571393
17d4d53e7cf220700850fa6d091e5d62f9782eff
4,924
ml
OCaml
hphp/hack/src/typing/tast.ml
jthemphill/hhvm
29b7fafaeecd83b817e31bbe11a591aa78a6c879
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/tast.ml
jthemphill/hhvm
29b7fafaeecd83b817e31bbe11a591aa78a6c879
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/tast.ml
jthemphill/hhvm
29b7fafaeecd83b817e31bbe11a591aa78a6c879
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(* * Copyright (c) 2017, 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. * *) include Aast_defs [@@@warning "-33"] open Hh_prelude [@@@warning "+33"] (* This is the current notion of type in...
29.48503
96
0.719943
17aae2d5235a3eaa40dd637002a8c766f7efdc70
2,725
mli
OCaml
src/core/lwt_pqueue.mli
Octachron/lwt
5cfa9daa3494d1702179ac629e94d117e6d8da6c
[ "MIT" ]
24
2021-03-13T22:22:18.000Z
2021-12-16T21:51:26.000Z
src/core/lwt_pqueue.mli
Octachron/lwt
5cfa9daa3494d1702179ac629e94d117e6d8da6c
[ "MIT" ]
null
null
null
src/core/lwt_pqueue.mli
Octachron/lwt
5cfa9daa3494d1702179ac629e94d117e6d8da6c
[ "MIT" ]
null
null
null
(* 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. *) (** Functional priority queues (deprecated). A priority queue maintains, in the abstract sense, a set of elements in order, and supports fast lookup ...
34.935897
84
0.662752
17794e13618d0478d7571cb3f6f3efdb69a6ab94
2,668
ml
OCaml
2IMA/Graphes/tp1/exemples_graphes.ml
LagOussama/enseeiht
d3247880c66cd3754d0bd29781ab1ddec9f6536f
[ "FTL" ]
1
2021-02-26T11:38:34.000Z
2021-02-26T11:38:34.000Z
2IMA/Graphes/tp1/exemples_graphes.ml
LagOussama/enseeiht
d3247880c66cd3754d0bd29781ab1ddec9f6536f
[ "FTL" ]
null
null
null
2IMA/Graphes/tp1/exemples_graphes.ml
LagOussama/enseeiht
d3247880c66cd3754d0bd29781ab1ddec9f6536f
[ "FTL" ]
1
2021-04-10T11:39:01.000Z
2021-04-10T11:39:01.000Z
(* graphe non orienté g1 *) (* les sommets de label 0,1,2 forment une clique *) (* et {2,3} est une arête *) let g1 = create ();; let vv0=V.create 0;; let vv1=V.create 1;; let vv2=V.create 2;; let vv3=V.create 3;; add_vertex g1 vv0;; add_vertex g1 vv1;; add_vertex g1 vv2;; add_vertex g1 vv3;; add_edge g1 vv0 vv1;; add...
20.523077
52
0.695277
177dc209de1c52d505d81aa530494e97552985bf
14,198
mli
OCaml
ast/builder_unstable_for_testing.mli
ceastlund/ppx
e9367353e0ac7f6e1b408be21b01645475eea623
[ "MIT" ]
57
2019-05-15T14:23:37.000Z
2021-05-24T19:23:19.000Z
ast/builder_unstable_for_testing.mli
ceastlund/ppx
e9367353e0ac7f6e1b408be21b01645475eea623
[ "MIT" ]
53
2019-06-06T16:27:15.000Z
2020-05-14T18:05:50.000Z
ast/builder_unstable_for_testing.mli
ceastlund/ppx
e9367353e0ac7f6e1b408be21b01645475eea623
[ "MIT" ]
7
2019-06-03T15:07:32.000Z
2020-04-06T14:06:22.000Z
(*$ Ppx_ast_cinaps.print_builder_mli (Astlib.Version.of_string "unstable_for_testing") *) open Versions val module_binding : loc:Astlib.Location.t -> expr:module_expr -> name:string Astlib.Loc.t -> module_binding val value_binding : loc:Astlib.Location.t -> expr:expression -> pat:pattern -> value_bindin...
20.458213
89
0.709959
cd1f0d2de271718d1627685f2b59b900fb791e6b
578
mli
OCaml
src/external/ocaml-dune/src/dune_env.mli
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
1
2022-03-21T15:43:42.000Z
2022-03-21T15:43:42.000Z
src/external/ocaml-dune/src/dune_env.mli
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
null
null
null
src/external/ocaml-dune/src/dune_env.mli
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
null
null
null
open! Stdune type stanza = Stanza.t = .. module Stanza : sig type config = { flags : Ordered_set_lang.Unexpanded.t ; ocamlc_flags : Ordered_set_lang.Unexpanded.t ; ocamlopt_flags : Ordered_set_lang.Unexpanded.t ; env_vars : Env.t ; binaries : File_bindings.Unexpanded.t ...
19.266667
52
0.612457
aaddcc280d42d520ada8a17c987e766c381c6cd3
387
ml
OCaml
src/owl/ppl/owl_ppl_random_variable.ml
pvdhove/owl
072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31
[ "MIT" ]
null
null
null
src/owl/ppl/owl_ppl_random_variable.ml
pvdhove/owl
072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31
[ "MIT" ]
null
null
null
src/owl/ppl/owl_ppl_random_variable.ml
pvdhove/owl
072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31
[ "MIT" ]
null
null
null
(* * OWL - OCaml Scientific and Engineering Computing * Copyright (c) 2016-2018 Liang Wang <liang.wang@cl.cam.ac.uk> *) open Owl_types module Make (A : Stats_Dist) = struct module Dist = Owl_distribution.Make (A) module Lazy = Owl_lazy.Make (A) type t = { mutable dist : Dist.dist; mutable expr : ...
15.48
63
0.640827
17ef74f452d3a93a647767b115a64c688febdb21
601
mli
OCaml
command/specification.mli
yuhonghong66/pyre-check
00690c8de631daaf43e07d3f289aa9ff2dfa35bf
[ "MIT" ]
null
null
null
command/specification.mli
yuhonghong66/pyre-check
00690c8de631daaf43e07d3f289aa9ff2dfa35bf
[ "MIT" ]
null
null
null
command/specification.mli
yuhonghong66/pyre-check
00690c8de631daaf43e07d3f289aa9ff2dfa35bf
[ "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. *) val base_command_line_arguments : (bool -> string option -> string list -> bool -> bool -> bool -> bool ...
19.387097
67
0.542429
cd3bfe76b2de3d0d0426e956ea3f2869a566fdaf
21,617
ml
OCaml
src/proto_010_PtGRANAD/lib_client/client_proto_context.ml
callistonianembrace/tezos
d7c25242bd6b0b368c731fc264a112e00f126818
[ "MIT" ]
null
null
null
src/proto_010_PtGRANAD/lib_client/client_proto_context.ml
callistonianembrace/tezos
d7c25242bd6b0b368c731fc264a112e00f126818
[ "MIT" ]
null
null
null
src/proto_010_PtGRANAD/lib_client/client_proto_context.ml
callistonianembrace/tezos
d7c25242bd6b0b368c731fc264a112e00f126818
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *) ...
33.053517
81
0.655641
cd19a8ae3faeeaf2715c25da67ef7eb6051b8ee9
6,884
ml
OCaml
src/domain.ml
roddyyaga/colombe
654f75b8d394ab37d06fed8132cd53a86e6e4bd4
[ "MIT" ]
null
null
null
src/domain.ml
roddyyaga/colombe
654f75b8d394ab37d06fed8132cd53a86e6e4bd4
[ "MIT" ]
null
null
null
src/domain.ml
roddyyaga/colombe
654f75b8d394ab37d06fed8132cd53a86e6e4bd4
[ "MIT" ]
null
null
null
type t = | IPv4 of Ipaddr.V4.t | IPv6 of Ipaddr.V6.t | Extension of string * string | Domain of string list let equal a b = match a, b with | IPv4 a, IPv4 b -> Ipaddr.(compare (V4 a) (V4 b)) = 0 | IPv6 a, IPv6 b -> Ipaddr.(compare (V6 a) (V6 b)) = 0 | IPv4 a, IPv6 b -> Ipaddr.(compare (V4 a) (V6 b)) = 0 ...
29.930435
90
0.594567
171b82f70f75a6498d5e85bacd2c9055da2d5fde
7,089
ml
OCaml
hphp/hack/src/options/typecheckerOptions.ml
Wilfred/hhvm
87cea12a34ec7edb94111be6bfb9458aac7b1997
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/options/typecheckerOptions.ml
Wilfred/hhvm
87cea12a34ec7edb94111be6bfb9458aac7b1997
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/options/typecheckerOptions.ml
Wilfred/hhvm
87cea12a34ec7edb94111be6bfb9458aac7b1997
[ "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. * *) type t = GlobalOptions.t [@@deriving eq, show] let num_local_workers = GlobalOptions.tco_num_local_workers let par...
31.229075
79
0.886867
1764e68bdcf494cc135836fdb6a3b7f3c4875c8f
907
ml
OCaml
src/BackendLinux.ml
ymanerka/pipeproof
351505845fa1d0e4afc02b746b9469651c32e120
[ "MIT" ]
13
2018-09-05T22:01:35.000Z
2021-02-21T05:02:03.000Z
src/BackendLinux.ml
ymanerka/pipeproof
351505845fa1d0e4afc02b746b9469651c32e120
[ "MIT" ]
1
2018-10-26T03:39:58.000Z
2019-12-18T05:52:38.000Z
src/BackendLinux.ml
ymanerka/pipeproof
351505845fa1d0e4afc02b746b9469651c32e120
[ "MIT" ]
2
2018-11-06T15:51:26.000Z
2020-12-03T19:17:47.000Z
let verbosity = ref 0 let cpThreshold = ref 0 let memoThreshold = ref 0 let outfile = ref stdout let printFlag n = !verbosity >= n let filter_strat = ref 1 let use_isa_sym = ref 0 let genCex = ref false let cexBound = ref 10 let doGenCex n = !genCex == n let belowCPThresholdInternal n = n < !cpThreshold let ...
19.297872
88
0.694598
17bac2ba76017e537f69e219a8c753e155ccb2de
190,802
ml
OCaml
setup.ml
hcarty/proj4ml
e3bddf89f884e8ff47543a8daedcf9e6d093d9b2
[ "MIT" ]
1
2020-04-02T19:50:16.000Z
2020-04-02T19:50:16.000Z
setup.ml
hcarty/proj4ml
e3bddf89f884e8ff47543a8daedcf9e6d093d9b2
[ "MIT" ]
5
2017-10-06T13:10:31.000Z
2019-08-28T12:35:22.000Z
setup.ml
hcarty/proj4ml
e3bddf89f884e8ff47543a8daedcf9e6d093d9b2
[ "MIT" ]
2
2017-10-03T08:41:23.000Z
2019-05-03T14:12:01.000Z
(* setup.ml generated for the first time by OASIS v0.4.10 *) (* OASIS_START *) (* DO NOT EDIT (digest: c7cdcbdf2f39ff7a746b9e36ef8b60cb) *) (* Regenerated by OASIS v0.4.10 Visit http://oasis.forge.ocamlcore.org for more information and documentation about functions used in this file. *) module OASISGettext = ...
26.843275
150
0.505435
17e2330c4e53c9abd01490ac2cbf312838e9fdf5
2,381
ml
OCaml
gen/util.ml
maranget/herdtools7
c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0
[ "CECILL-B" ]
103
2016-11-28T10:00:41.000Z
2022-03-08T05:06:00.000Z
gen/util.ml
maranget/herdtools7
c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0
[ "CECILL-B" ]
193
2017-02-28T19:04:04.000Z
2022-03-25T14:33:24.000Z
gen/util.ml
maranget/herdtools7
c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0
[ "CECILL-B" ]
39
2016-12-14T23:10:34.000Z
2022-03-22T21:35:17.000Z
(****************************************************************************) (* the diy toolsuite *) (* *) (* Jade Alglave, University College London, UK. *) (* L...
37.793651
78
0.472491
aa207f16c13547c3d0fa26778756190829a83770
2,174
ml
OCaml
test/LU_decomposition_multicore.ml
OlivierNicole/domainslib
df4afa26ebbaee6f0eecb26955fde28dee53a19d
[ "ISC" ]
74
2019-11-25T18:58:00.000Z
2022-02-17T16:46:37.000Z
test/LU_decomposition_multicore.ml
OlivierNicole/domainslib
df4afa26ebbaee6f0eecb26955fde28dee53a19d
[ "ISC" ]
55
2020-04-06T08:08:49.000Z
2022-03-21T15:33:31.000Z
test/LU_decomposition_multicore.ml
OlivierNicole/domainslib
df4afa26ebbaee6f0eecb26955fde28dee53a19d
[ "ISC" ]
11
2019-12-09T19:22:37.000Z
2022-01-17T16:46:40.000Z
module T = Domainslib.Task let num_domains = try int_of_string Sys.argv.(1) with _ -> 1 let mat_size = try int_of_string Sys.argv.(2) with _ -> 1200 let k = Domain.DLS.new_key Random.State.make_self_init module SquareMatrix = struct let create f : float array = let fa = Array.create_float (mat_size * mat_size)...
32.939394
106
0.603036
1720f19e4e24e2b5e82ca6aaeec5389e714b9642
821
mli
OCaml
libraries/ssm/lib/deregisterManagedInstance.mli
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
1
2020-05-21T19:12:04.000Z
2020-05-21T19:12:04.000Z
libraries/ssm/lib/deregisterManagedInstance.mli
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
null
null
null
libraries/ssm/lib/deregisterManagedInstance.mli
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
null
null
null
(** "<p>Removes the server or virtual machine from the list of registered servers. You can reregister the instance again at any time. If you don't plan to use Run Command on the server, we suggest uninstalling SSM Agent first.</p>" *) open Types[@@ocaml.warning "-33"] open Aws.BaseTypes[@@ocaml.warning "-33"] module De...
41.05
234
0.717418
cd493f2ec1d6934d8f323281e2c28aea989b6117
2,799
ml
OCaml
command/incrementalCommand.ml
yuhonghong66/pyre-check
00690c8de631daaf43e07d3f289aa9ff2dfa35bf
[ "MIT" ]
null
null
null
command/incrementalCommand.ml
yuhonghong66/pyre-check
00690c8de631daaf43e07d3f289aa9ff2dfa35bf
[ "MIT" ]
null
null
null
command/incrementalCommand.ml
yuhonghong66/pyre-check
00690c8de631daaf43e07d3f289aa9ff2dfa35bf
[ "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 Pyre open Network open Server let run verbose expected_version sections debug strict declare sh...
26.158879
96
0.618435
cd3b0ac063ef24e6b46e0a94a4067ed6c7d986e2
13,161
ml
OCaml
libraries/ec2/lib/createClientVpnEndpoint.ml
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
1
2020-05-21T19:12:04.000Z
2020-05-21T19:12:04.000Z
libraries/ec2/lib/createClientVpnEndpoint.ml
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
null
null
null
libraries/ec2/lib/createClientVpnEndpoint.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 CreateClientVpnEndpointRequest = struct type t = { client_cidr_block: String.t [@ocaml.doc "<p>The IPv4 address range, in CIDR notation, from which to assign client IP addresses. The address r...
46.178947
486
0.572753
bced1bb3b6145b5b998504b11fdb0cb0b4cbafdd
827
ml
OCaml
lib/parser.ml
dhcmrlchtdj/mine
dfffc2a0c174cf683d0d78e1bd3a58b490baadc5
[ "Unlicense" ]
null
null
null
lib/parser.ml
dhcmrlchtdj/mine
dfffc2a0c174cf683d0d78e1bd3a58b490baadc5
[ "Unlicense" ]
null
null
null
lib/parser.ml
dhcmrlchtdj/mine
dfffc2a0c174cf683d0d78e1bd3a58b490baadc5
[ "Unlicense" ]
null
null
null
open! Containers let trim_bom (input : string) : string = if String.prefix ~pre:"\239\187\191" input then String.drop 3 input else input let replace_crlf (input : string) : string = String.replace ~which:`All ~sub:"\r\n" ~by:"\n" input let expand_tab (input : string) : string = if String.contains input '\t' ...
22.972222
80
0.56711
cd2cfa7a7db162b66b68a99a0274990360f5d2a7
2,532
ml
OCaml
taint/taintAnalysis.ml
ishaanthakur/pyre-check
b0f12f8a3e6a817a81d87feae301c96d57d167b9
[ "MIT" ]
null
null
null
taint/taintAnalysis.ml
ishaanthakur/pyre-check
b0f12f8a3e6a817a81d87feae301c96d57d167b9
[ "MIT" ]
null
null
null
taint/taintAnalysis.ml
ishaanthakur/pyre-check
b0f12f8a3e6a817a81d87feae301c96d57d167b9
[ "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. *) module Callable = Interprocedural.Callable open Core open Pyre (* Registers the Taint analysis with the interprocedural analysis framework. ...
37.235294
97
0.669036
cd28c2b5cfe0f406d034221cc9ebed6cff272e85
123
ml
OCaml
result/cafe2/max/sub45/original.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
9
2021-06-04T04:38:13.000Z
2021-12-15T05:45:28.000Z
result/prog/max/sub45/original.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
result/prog/max/sub45/original.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
let rec max (lst : int list) : int = match lst with | [] -> -100000 | hd :: tl -> if hd > max tl then hd else max tl
24.6
50
0.552846
170dc8ada5036e1e61000137cb4266e8a6f2a84a
1,604
ml
OCaml
lib/utils.ml
CraigFe/scaffold
000d9297958ead08cc4640c8355e341cb50c5f2a
[ "MIT" ]
8
2020-09-21T16:23:13.000Z
2021-04-12T11:09:21.000Z
lib/utils.ml
CraigFe/scaffold
000d9297958ead08cc4640c8355e341cb50c5f2a
[ "MIT" ]
null
null
null
lib/utils.ml
CraigFe/scaffold
000d9297958ead08cc4640c8355e341cb50c5f2a
[ "MIT" ]
null
null
null
let ( >> ) f g x = g (f x) let under2 f b x y = b (f x) (f y) let log : type a. (((a, Format.formatter, unit, unit) format4 -> a) -> unit) -> unit = fun f -> f Format.eprintf; Format.eprintf "\n%!" module Bool = struct let of_option_flag = function Some () -> true | None -> false end module Option = struc...
25.460317
80
0.523067
aa080bda181db92fa61bb61dcb14c23944b0ec38
5,041
ml
OCaml
src/bin_node/node_reconstruct_command.ml
d4hines/marigold-tezos
d106ccb9208af16d673aaa4ca48878eeba37527b
[ "MIT" ]
null
null
null
src/bin_node/node_reconstruct_command.ml
d4hines/marigold-tezos
d106ccb9208af16d673aaa4ca48878eeba37527b
[ "MIT" ]
1
2022-02-18T09:54:32.000Z
2022-02-18T09:54:32.000Z
src/bin_node/node_reconstruct_command.ml
Ngoguey42/tezos
68f0f84ed58f3c72b1bf3e732d8ee385461a2d14
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *) ...
41.319672
79
0.583019
aa0c470f5a01c75fb693634f5a410345de5b6ddc
191
mli
OCaml
src/lib/ledger_catchup/best_tip_lru.mli
hanabi1224/mina
66da4ad53fe8737b6980dd76a264a9a39ffca52f
[ "Apache-2.0" ]
512
2018-10-24T23:22:35.000Z
2020-09-29T02:54:20.000Z
src/lib/ledger_catchup/best_tip_lru.mli
hanabi1224/mina
66da4ad53fe8737b6980dd76a264a9a39ffca52f
[ "Apache-2.0" ]
3,150
2018-10-25T00:06:09.000Z
2020-09-29T15:22:14.000Z
src/lib/ledger_catchup/best_tip_lru.mli
hanabi1224/mina
66da4ad53fe8737b6980dd76a264a9a39ffca52f
[ "Apache-2.0" ]
105
2018-10-25T00:02:43.000Z
2020-09-01T12:31:15.000Z
open Mina_base type elt = ( Mina_block.initial_valid_block , State_body_hash.t list * Mina_block.t ) Proof_carrying_data.t val add : elt -> unit val get : State_hash.t -> elt option
17.363636
43
0.727749
cd36776963b744dbff67114e66936a8644616fcf
219
ml
OCaml
tests/compiler/expressions.t/funref.ml
nicobao/caramel
5f77e1db48146ecb69c7ebad72c40c89106b79b6
[ "Apache-2.0" ]
961
2020-09-15T11:01:50.000Z
2022-03-26T00:25:17.000Z
tests/compiler/expressions.t/funref.ml
nicobao/caramel
5f77e1db48146ecb69c7ebad72c40c89106b79b6
[ "Apache-2.0" ]
83
2020-09-27T18:51:24.000Z
2022-03-08T10:57:53.000Z
tests/compiler/expressions.t/funref.ml
nicobao/caramel
5f77e1db48146ecb69c7ebad72c40c89106b79b6
[ "Apache-2.0" ]
26
2020-10-13T10:39:13.000Z
2021-12-07T04:57:33.000Z
module Nested = struct let add x y = x + y end let f g = g () let rec g _ = f g let add x y = x + y let call_op_2 f x y = f x y let do_add x y = call_op_2 add x y let do_nested_add x y = call_op_2 Nested.add x y
14.6
48
0.630137
cd3f2637d36414080127b563fff517a2ea098189
600
ml
OCaml
benchmarks/formula/formula2/submissions/sub23.ml
kupl/FixML
0a032a733d68cd8ccc8b1034d2908cd43b241fce
[ "MIT" ]
10
2018-11-06T00:08:12.000Z
2019-12-05T11:05:16.000Z
benchmarks/formula/formula2/submissions/sub23.ml
kupl/FixML
0a032a733d68cd8ccc8b1034d2908cd43b241fce
[ "MIT" ]
null
null
null
benchmarks/formula/formula2/submissions/sub23.ml
kupl/FixML
0a032a733d68cd8ccc8b1034d2908cd43b241fce
[ "MIT" ]
2
2020-02-06T14:59:50.000Z
2022-03-16T19:25:43.000Z
type formula = True | False | Neg of formula | Or of formula * formula | And of formula * formula | Imply of formula * formula | Equiv of formula * formula;; let rec eval : formula -> bool = fun f -> true;; let rec eval f = match f with True -> true | False -> false | Neg (f1) -> if f1 = True then fa...
26.086957
71
0.595
cd3349e65706fd09e38aed426386745061dd6169
19,380
ml
OCaml
src/lib_rules.ml
ejgallego/dune
f2fb4a9ee651270546392ab27be7e0896c287815
[ "MIT" ]
null
null
null
src/lib_rules.ml
ejgallego/dune
f2fb4a9ee651270546392ab27be7e0896c287815
[ "MIT" ]
null
null
null
src/lib_rules.ml
ejgallego/dune
f2fb4a9ee651270546392ab27be7e0896c287815
[ "MIT" ]
null
null
null
open! Stdune open Import open Build.O open! No_io module Buildable = Dune_file.Buildable module Library = Dune_file.Library module Mode_conf = Dune_file.Mode_conf module SC = Super_context module Gen (P : Install_rules.Params) = struct module Odoc = Odoc.Gen(P) let sctx = P.sctx let ctx = SC.context sctx l...
35.822551
92
0.607792
17ba84bdf326a845d2fe0da83251fa713592e894
4,492
ml
OCaml
src/lib/transition_frontier_controller/transition_frontier_controller.ml
ZabelTech/mina
2a01ff9862922eab3073e2a54950f600dc2e9e44
[ "Apache-2.0" ]
null
null
null
src/lib/transition_frontier_controller/transition_frontier_controller.ml
ZabelTech/mina
2a01ff9862922eab3073e2a54950f600dc2e9e44
[ "Apache-2.0" ]
null
null
null
src/lib/transition_frontier_controller/transition_frontier_controller.ml
ZabelTech/mina
2a01ff9862922eab3073e2a54950f600dc2e9e44
[ "Apache-2.0" ]
null
null
null
open Core_kernel open Async_kernel open Pipe_lib open O1trace let run ~logger ~trust_system ~verifier ~network ~time_controller ~collected_transitions ~frontier ~network_transition_reader ~producer_transition_reader ~clear_reader ~precomputed_values = let valid_transition_pipe_capacity = 30 in let start_ti...
44.475248
80
0.745325
17d43e0b7b23a2bda05d1cd315db2bed331573f7
13,147
ml
OCaml
src/server/protocol/lspProt.ml
Egrodo/flow
3aaf52aeaab019a8f6e292100b18dec6bb3fda4b
[ "MIT" ]
null
null
null
src/server/protocol/lspProt.ml
Egrodo/flow
3aaf52aeaab019a8f6e292100b18dec6bb3fda4b
[ "MIT" ]
null
null
null
src/server/protocol/lspProt.ml
Egrodo/flow
3aaf52aeaab019a8f6e292100b18dec6bb3fda4b
[ "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. *) type client_id = int type error_kind = | ExpectedError | UnexpectedError type error_info = error_kind * string * Utils.callst...
41.473186
103
0.715068
17eae2c5836d176cdc3386b17a4113a6b3dc10dd
8,302
ml
OCaml
test/test_cisco.ml
stg-tud/pi4
d0745c428cf546705c81b894b3b2c2698b4bb377
[ "Apache-2.0" ]
null
null
null
test/test_cisco.ml
stg-tud/pi4
d0745c428cf546705c81b894b3b2c2698b4bb377
[ "Apache-2.0" ]
null
null
null
test/test_cisco.ml
stg-tud/pi4
d0745c428cf546705c81b894b3b2c2698b4bb377
[ "Apache-2.0" ]
1
2022-01-25T13:09:29.000Z
2022-01-25T13:09:29.000Z
open Alcotest open Pi4 open Syntax module TestConfig = struct let verbose = true let maxlen = 360 end module Test = Test_utils.TestRunner (TestConfig) let parse_typecheck check prog_str typ_str = let prog = Parsing.parse_program prog_str in let header_table = HeaderTable.of_decls prog.declarations in let ...
25.782609
140
0.579378
cd17ba39261b1dd7418fc8ad358b371bf5166bcc
1,320
ml
OCaml
src/rresult_top.ml
ryanartecona/rresult
5e0a87fae06546396fd885b8e0fd6775d6ff4ee6
[ "0BSD" ]
11
2020-11-25T14:23:49.000Z
2021-07-22T07:45:09.000Z
src/rresult_top.ml
ryanartecona/rresult
5e0a87fae06546396fd885b8e0fd6775d6ff4ee6
[ "0BSD" ]
1
2020-07-27T17:35:13.000Z
2020-09-21T11:17:06.000Z
src/rresult_top.ml
ryanartecona/rresult
5e0a87fae06546396fd885b8e0fd6775d6ff4ee6
[ "0BSD" ]
1
2020-11-25T12:01:04.000Z
2020-11-25T12:01:04.000Z
(*--------------------------------------------------------------------------- Copyright (c) 2015 Daniel C. Bünzli. All rights reserved. Distributed under the ISC license, see terms at the end of the file. %%NAME%% %%VERSION%% ---------------------------------------------------------------------------*) let ...
55
79
0.579545
177247b9f840d1911c4fea6dd457ff4454d88b47
8,398
ml
OCaml
src/bin_node/node_snapshot_command.ml
osiz-blockchainapp/mica-hCoinSandbox
f877e01bbef8e748a52490bf0af599c654754148
[ "MIT" ]
null
null
null
src/bin_node/node_snapshot_command.ml
osiz-blockchainapp/mica-hCoinSandbox
f877e01bbef8e748a52490bf0af599c654754148
[ "MIT" ]
null
null
null
src/bin_node/node_snapshot_command.ml
osiz-blockchainapp/mica-hCoinSandbox
f877e01bbef8e748a52490bf0af599c654754148
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *) ...
36.513043
80
0.573113
cd160a125f220b475b1fdb1f64e8da7eec0b2d30
685
ml
OCaml
src/parser/camligo/location.ml
web-vertalo/ligo
153bf691992580f4d163f4e8129292f7759efd5b
[ "MIT" ]
null
null
null
src/parser/camligo/location.ml
web-vertalo/ligo
153bf691992580f4d163f4e8129292f7759efd5b
[ "MIT" ]
null
null
null
src/parser/camligo/location.ml
web-vertalo/ligo
153bf691992580f4d163f4e8129292f7759efd5b
[ "MIT" ]
1
2021-08-18T16:15:52.000Z
2021-08-18T16:15:52.000Z
type file_location = { filename : string ; start_line : int ; start_column : int ; end_line : int ; end_column : int ; } type virtual_location = string type t = | File of file_location | Virtual of virtual_location let make (start_pos:Lexing.position) (end_pos:Lexing.position) : t = let filename = st...
26.346154
71
0.735766
178bc0b5c47b1e3d64b0742858cdb67a61a699cc
72,613
ml
OCaml
src/ocaml/preprocess/402/parser_printer.ml
mlasson/merlin
7cccd4fc9517ce4ee56728cd6c87649487fb2d9c
[ "MIT" ]
null
null
null
src/ocaml/preprocess/402/parser_printer.ml
mlasson/merlin
7cccd4fc9517ce4ee56728cd6c87649487fb2d9c
[ "MIT" ]
null
null
null
src/ocaml/preprocess/402/parser_printer.ml
mlasson/merlin
7cccd4fc9517ce4ee56728cd6c87649487fb2d9c
[ "MIT" ]
null
null
null
open Parser_raw let string_of_STRING = function | s, Some s' -> Printf.sprintf "STRING(%S,%S)" s s' | s, None -> Printf.sprintf "STRING(%S)" s let print_symbol = function | MenhirInterpreter.X (MenhirInterpreter.T MenhirInterpreter.T_error) -> "error" | MenhirInterpreter.X (MenhirInterpreter.T MenhirIn...
79.882288
138
0.775991
bc6177e5ac4d255279d62baf87a504e890fe23c9
6,383
ml
OCaml
lwt/carton_lwt.ml
dinosaure/carton
8cb8b3685fab477594b2d83c70b2fc965d1d59b9
[ "MIT" ]
17
2018-01-24T07:46:02.000Z
2020-07-09T23:24:30.000Z
lwt/carton_lwt.ml
dinosaure/carton
8cb8b3685fab477594b2d83c70b2fc965d1d59b9
[ "MIT" ]
null
null
null
lwt/carton_lwt.ml
dinosaure/carton
8cb8b3685fab477594b2d83c70b2fc965d1d59b9
[ "MIT" ]
1
2019-02-10T11:01:42.000Z
2019-02-10T11:01:42.000Z
open Lwt_io type lwt = Lwt_io.lwt external inj : 'a Lwt.t -> ('a, lwt) Carton.io = "%identity" external prj : ('a, lwt) Carton.io -> 'a Lwt.t = "%identity" let lwt_bind x f = let open Lwt.Infix in inj (prj x >>= fun x -> prj (f x)) [@@inline] let lwt_return x = inj (Lwt.return x) [@@inline] let lwt = { Carton...
28.623318
90
0.649695
1799ae4e0b81a27d16fe54996610925b62bb1474
3,474
ml
OCaml
src/uafastree.ml
montyly/gueb
45f496a5a1e8e908e562928762ece304c2408c3a
[ "MIT" ]
254
2016-01-14T10:37:32.000Z
2022-03-27T02:18:21.000Z
src/uafastree.ml
montyly/gueb
45f496a5a1e8e908e562928762ece304c2408c3a
[ "MIT" ]
10
2016-01-19T09:53:35.000Z
2020-07-20T16:51:37.000Z
src/uafastree.ml
montyly/gueb
45f496a5a1e8e908e562928762ece304c2408c3a
[ "MIT" ]
55
2016-01-19T02:46:57.000Z
2021-12-29T06:20:18.000Z
open Uafgenerique exception NOT_EQUAL type tree_node = { site : site*site_type; mutable leafs : tree_node list; } let rec equal_tree t1 t2 = if(not ( equal_site t1.site t2.site)) then false else if( (List.length t1.leafs) <> (List.length t2.leafs)) then false else if (List.length t1.l...
36.568421
132
0.540299
17bfc1610a064650e98f5e8cab803bb44d19f01a
4,373
ml
OCaml
duniverse/dune_/src/stdune/list.ml
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
duniverse/dune_/src/stdune/list.ml
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
duniverse/dune_/src/stdune/list.ml
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
include ListLabels type 'a t = 'a list let map ~f t = rev (rev_map ~f t) let is_empty = function | [] -> true | _ -> false let is_non_empty = function | [] -> false | _ -> true let filter_map l ~f = let rec loop acc = function | [] -> rev acc | x :: xs -> ( match f x with | None -> lo...
19.698198
76
0.507661
17ed86fe036f67b83370d64c9e4fefbd3cbef226
32
mli
OCaml
src/run.mli
mooreryan/git_lab_notebooks
82285351b7c3aa9ad17da0f510e128618821ff7e
[ "Apache-2.0", "MIT" ]
2
2022-01-21T19:16:05.000Z
2022-03-07T14:57:49.000Z
src/run.mli
mooreryan/git_lab_notebooks
82285351b7c3aa9ad17da0f510e128618821ff7e
[ "Apache-2.0", "MIT" ]
null
null
null
src/run.mli
mooreryan/git_lab_notebooks
82285351b7c3aa9ad17da0f510e128618821ff7e
[ "Apache-2.0", "MIT" ]
null
null
null
val main : dry_run:bool -> unit
16
31
0.6875
cd1ab7a55638e66cd297127ab32d48032795f9fe
20,248
ml
OCaml
lib/handshake_common.ml
mirleft/ocaml-tls
6e13d2f9f4a47427ac330e4465b57bd45bb3ef86
[ "BSD-2-Clause" ]
214
2015-01-06T12:04:34.000Z
2022-01-19T05:37:38.000Z
lib/handshake_common.ml
mirleft/ocaml-tls
6e13d2f9f4a47427ac330e4465b57bd45bb3ef86
[ "BSD-2-Clause" ]
137
2015-01-05T10:17:44.000Z
2022-03-29T19:59:52.000Z
lib/handshake_common.ml
mirleft/ocaml-tls
6e13d2f9f4a47427ac330e4465b57bd45bb3ef86
[ "BSD-2-Clause" ]
55
2015-01-05T21:04:25.000Z
2022-03-29T18:49:31.000Z
open Utils open Core open State open Mirage_crypto open Rresult.R.Infix let guard p e = if p then Ok () else Error e let src = Logs.Src.create "handshake" ~doc:"TLS handshake" module Log = (val Logs.src_log src : Logs.LOG) let trace_cipher cipher = let kex = Ciphersuite.ciphersuite_kex cipher and papr = Cipher...
37.426987
124
0.654336
bc4b95d0b04ba2b4c2c26bbd005a70475e4b740b
4,558
ml
OCaml
lib/world.ml
roddyyaga/txtshooter
00fa8cc97f521a85a67f71905f41f67a1f748604
[ "MIT" ]
null
null
null
lib/world.ml
roddyyaga/txtshooter
00fa8cc97f521a85a67f71905f41f67a1f748604
[ "MIT" ]
null
null
null
lib/world.ml
roddyyaga/txtshooter
00fa8cc97f521a85a67f71905f41f67a1f748604
[ "MIT" ]
null
null
null
open Base type t = { rooms: Room.t list; players: (Ws.Client.Id.t, Player.t) Dict.t } let fountain_room = Room.make "the fountain room" "A room with a fountain." let other_room = Room.make "the non-fountain room" "A room without a fountain." let central_room = Room.make "the central room" "A room with no inte...
37.669421
80
0.721369
17902aa19aec58fe14af139a288738452b0fcbbe
35,186
mli
OCaml
src/core/CCList.mli
bbc2/ocaml-containers
bfaffc5c39cdb1c1c5a4e6e10f01c07ce5835907
[ "BSD-2-Clause" ]
null
null
null
src/core/CCList.mli
bbc2/ocaml-containers
bfaffc5c39cdb1c1c5a4e6e10f01c07ce5835907
[ "BSD-2-Clause" ]
null
null
null
src/core/CCList.mli
bbc2/ocaml-containers
bfaffc5c39cdb1c1c5a4e6e10f01c07ce5835907
[ "BSD-2-Clause" ]
null
null
null
(* This file is free software, part of containers. See file "license" for more details. *) (** {1 Complements to list} *) type 'a iter = ('a -> unit) -> unit (** Fast internal iterator. @since 2.8 *) type 'a gen = unit -> 'a option type 'a printer = Format.formatter -> 'a -> unit type 'a random_gen = Random.Sta...
38.708471
115
0.587734
cd00a130bd6fd6d52b064edb455429ee34486e25
11,905
ml
OCaml
slug_data.ml
thangngoc89/ocaml-slug
2b711fe706756261e9262c7d5a63625dc4828cca
[ "MIT" ]
12
2021-07-05T20:22:34.000Z
2021-10-20T20:08:53.000Z
slug_data.ml
thangngoc89/ocaml-slug
2b711fe706756261e9262c7d5a63625dc4828cca
[ "MIT" ]
6
2021-07-06T17:20:12.000Z
2021-08-21T12:52:09.000Z
slug_data.ml
thangngoc89/ocaml-slug
2b711fe706756261e9262c7d5a63625dc4828cca
[ "MIT" ]
2
2021-07-05T20:49:47.000Z
2021-07-06T10:08:01.000Z
(* This file is auto generated *) let base = [ ({|$|}, {|dollar|}); ({|%|}, {|percent|}); ({|&|}, {|and|}); ({|<|}, {|less|}); ({|>|}, {|greater|}); ({|||}, {|or|}); ({|¢|}, {|cent|}); ({|£|}, {|pound|}); ({|¤|}, {|currency|}); ({|¥|}, {|yen|}); ({|©|}, {|(c)|}); ({|ª|}, {|a|}); ({|®|}, {|(r)|...
18.543614
33
0.141621
cd39052b6070046ed60633c5b199a3e58a73e084
1,432
mll
OCaml
lexer.mll
pguijas/dlp-2021
82380ece64f36e380161f67b6a91605d333b66e7
[ "MIT" ]
null
null
null
lexer.mll
pguijas/dlp-2021
82380ece64f36e380161f67b6a91605d333b66e7
[ "MIT" ]
null
null
null
lexer.mll
pguijas/dlp-2021
82380ece64f36e380161f67b6a91605d333b66e7
[ "MIT" ]
null
null
null
{ open Parser;; exception Lexical_error;; } rule token = parse [' ' '\t'] { token lexbuf } | "lambda" { LAMBDA } | "L" { LAMBDA } | "true" { TRUE } | "false" { FALSE } | "if" { IF } | "then" { THEN } | "else" { ELSE } | "succ" { SUCC } | "pred" ...
26.036364
63
0.326117
cd20f1c33669c8bc764eeb6a17de0c8687a82de8
683
ml
OCaml
benchmarks/C/formula/sol99.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
9
2021-06-04T04:38:13.000Z
2021-12-15T05:45:28.000Z
benchmarks/C/formula/sol99.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
benchmarks/C/formula/sol99.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
type formula = True | False | Not of formula | AndAlso of formula * formula | OrElse of formula * formula | Imply of formula * formula | Equal of exp * exp and exp = Num of int | Plus of exp * exp | Minus of exp * exp let rec eval : formula -> bool = fun(f) -> let rec calc(exp) = match exp with | Num(a) -> a...
20.69697
42
0.540264
bcf32a2d203a514ccebbe0b940c42aa15ac686b3
6,786
ml
OCaml
data/derived/comb/progs/unify/prog1314.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/prog1314.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog1314.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXX *) (*XXXXXXXXXXXXXXXXXXXXXXXXXXX*) let rec sumList xs = match xs with | [] -> 0 | hd::tl -> hd + sumList tl ;; let _ = sumList [] let _ = sumList [1; 2; 3; 4] let _ = sumList [1; -2; 3; 5] let _ = sumList [1; 3; 5; 7; 9; 11] (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...
23.894366
94
0.626879
17f1da9b4ed1fcd7662a67b9f167e21522deb145
1,609
ml
OCaml
data/fa15_min/0713.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15_min/0713.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15_min/0713.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
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 e1 -> "sin(pi*" ^ ((exprToString e1) ^ ")") | Cosine e1 -> "cos(pi*" ^ ((exprT...
22.985714
81
0.465507
cd182d478577b89c804f27ca3a5aedf56d6da10c
6,697
ml
OCaml
hphp/hack/src/typing/typing_lenv.ml
swtaarrs/hhvm
dfb8867363623d7d02d03a64691610f1289ef5ad
[ "PHP-3.01", "Zend-2.0" ]
1
2021-02-04T22:07:59.000Z
2021-02-04T22:07:59.000Z
hphp/hack/src/typing/typing_lenv.ml
alisha/hhvm
523dc33b444bd5b59695eff2b64056629b0ed523
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/typing_lenv.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. * *) module Env = Typing_env open Env module TUtils = Typing_utils module Type = Typing_ops module Reason = Typing_rea...
35.433862
81
0.712707
bceb76339d023748140cab015f76ba28abe2e4b3
556
ml
OCaml
data/fa15/2805.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/fa15/2805.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/fa15/2805.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
let pipe fs = let f a x x = a in let base f = f in List.fold_left f base fs;; (* fix let pipe fs = let f a x x a = a in let base f = f in List.fold_left f base fs;; *) (* changed spans (2,28)-(2,29) *) (* type error slice (2,14)-(2,75) (2,20)-(2,29) (2,22)-(2,29) (2,24)-(2,29) (2,28)-(2,29) (2,51)-(2,65) (2,51)-...
13.238095
79
0.494604
17f6400e6e797341a343b6d6e7b8ed0cb5e9e7f6
6,048
ml
OCaml
backend/cn/argumentTypes.ml
talsewell/cerberus
c8c6d25f0cb8d4cd2672ffd0790fb0de3f2a51e3
[ "BSD-2-Clause" ]
12
2020-09-03T09:57:26.000Z
2022-01-28T04:28:00.000Z
backend/cn/argumentTypes.ml
talsewell/cerberus
c8c6d25f0cb8d4cd2672ffd0790fb0de3f2a51e3
[ "BSD-2-Clause" ]
182
2021-02-26T23:07:40.000Z
2022-02-10T12:33:45.000Z
backend/cn/argumentTypes.ml
talsewell/cerberus
c8c6d25f0cb8d4cd2672ffd0790fb0de3f2a51e3
[ "BSD-2-Clause" ]
4
2020-09-02T11:54:39.000Z
2022-03-16T23:23:11.000Z
open Locations module BT = BaseTypes module IT = IndexTerms module LS = LogicalSorts module RE = Resources.RE module LC = LogicalConstraints module SymSet = Set.Make(Sym) type 'i at = | Computational of (Sym.t * BT.t) * info * 'i at | Logical of (Sym.t * LS.t) * info * 'i at | Define of (Sym.t * IT.t) * info *...
30.545455
87
0.583829
cd1c59ce57794dad5b7c9a92024dfc72c7619a86
189,595
ml
OCaml
hphp/hack/src/client/clientLsp.ml
the-storm/hhvm
8c173160bb6b8e56277a04d00efe4c1a234b605c
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/client/clientLsp.ml
the-storm/hhvm
8c173160bb6b8e56277a04d00efe4c1a234b605c
[ "PHP-3.01", "Zend-2.0" ]
1
2021-04-19T09:53:42.000Z
2021-04-19T09:53:42.000Z
hphp/hack/src/client/clientLsp.ml
isabella232/hhvm
6345684c993c575db92cbe18cd739147bfa0296f
[ "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_prelude open Lsp open Lsp_fmt open Hh_json_helpers (* All hack-specific code relating to LSP goes in here. ...
38.232507
110
0.672286
cd39eedb51f1263d638550c2fa57aa99806c88cb
487
mli
OCaml
bench/common.mli
CraigFe/index
5d32a9a495d0cf38986801317679892a15da17c9
[ "MIT" ]
null
null
null
bench/common.mli
CraigFe/index
5d32a9a495d0cf38986801317679892a15da17c9
[ "MIT" ]
null
null
null
bench/common.mli
CraigFe/index
5d32a9a495d0cf38986801317679892a15da17c9
[ "MIT" ]
null
null
null
val report : unit -> unit (** Set logs reporter at [Logs.Info] level *) module Make_context (Config : sig val key_size : int val hash_size : int val value_size : int end) : sig module Key : sig include Index.Key with type t = string val v : unit -> t end module Value : sig include Index.Val...
18.730769
64
0.63655
aacc0d59a5ffe5f99baa063893afa9c1331cedc3
613
ml
OCaml
dist/gcc-compatible/lib/Hacl_Frodo_KEM_bindings.ml
victor-dumitrescu/hacl-star
92ca72a2706eec40b8e7fd2f984581e12ac49c0c
[ "Apache-2.0" ]
null
null
null
dist/gcc-compatible/lib/Hacl_Frodo_KEM_bindings.ml
victor-dumitrescu/hacl-star
92ca72a2706eec40b8e7fd2f984581e12ac49c0c
[ "Apache-2.0" ]
null
null
null
dist/gcc-compatible/lib/Hacl_Frodo_KEM_bindings.ml
victor-dumitrescu/hacl-star
92ca72a2706eec40b8e7fd2f984581e12ac49c0c
[ "Apache-2.0" ]
null
null
null
open Ctypes module Bindings(F:Cstubs.FOREIGN) = struct open F let hacl_Frodo_KEM_crypto_kem_keypair = foreign "Hacl_Frodo_KEM_crypto_kem_keypair" (ocaml_bytes @-> (ocaml_bytes @-> (returning uint32_t))) let hacl_Frodo_KEM_crypto_kem_enc = foreign "Hacl_Frodo_KEM_crypto_kem_enc" ...
32.263158
68
0.657423
176a15490b61de921578080719827bead59fd483
15,719
ml
OCaml
src/typing/codegen.ml
thalesfsp/flow
0d5e954fcc631b3e0705b02d5305e0be65cec18e
[ "BSD-3-Clause" ]
null
null
null
src/typing/codegen.ml
thalesfsp/flow
0d5e954fcc631b3e0705b02d5305e0be65cec18e
[ "BSD-3-Clause" ]
2
2021-05-11T23:33:41.000Z
2022-03-28T18:43:26.000Z
src/typing/codegen.ml
thalesfsp/flow
0d5e954fcc631b3e0705b02d5305e0be65cec18e
[ "BSD-3-Clause" ]
null
null
null
(** * Copyright (c) 2013-present, 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. * *) (** ...
32.277207
89
0.621732
cd11aeb79ffebf480092b4936191131177cdb8f8
5,847
ml
OCaml
src/core/options.ml
kupl/sparrow_ku
b4074e1b4567e54e2347cf8da0e47efe50160923
[ "BSD-3-Clause" ]
1
2019-04-29T08:52:46.000Z
2019-04-29T08:52:46.000Z
src/core/options.ml
kupl/sparrow_ku
b4074e1b4567e54e2347cf8da0e47efe50160923
[ "BSD-3-Clause" ]
null
null
null
src/core/options.ml
kupl/sparrow_ku
b4074e1b4567e54e2347cf8da0e47efe50160923
[ "BSD-3-Clause" ]
2
2018-03-20T09:53:25.000Z
2022-02-04T06:44:31.000Z
(***********************************************************************) (* *) (* Copyright (c) 2007-present. *) (* Programming Research Laboratory (ROPAS), Seoul National University. *) (* All rights reserved. ...
47.92623
149
0.642723
1753a213a9b2260d419e90cbae51444e2ac3ac5f
9,092
ml
OCaml
hphp/hack/src/hh_fanout/calculate_fanout.ml
jie-pan/hhvm
41853383c5b53a69ac2c67f9d3cce5e38c6eafa5
[ "PHP-3.01", "Zend-2.0" ]
1
2021-08-09T16:16:00.000Z
2021-08-09T16:16:00.000Z
hphp/hack/src/hh_fanout/calculate_fanout.ml
jie-pan/hhvm
41853383c5b53a69ac2c67f9d3cce5e38c6eafa5
[ "PHP-3.01", "Zend-2.0" ]
1
2021-08-21T07:48:37.000Z
2021-08-21T07:48:37.000Z
hphp/hack/src/hh_fanout/calculate_fanout.ml
LaudateCorpus1/hhvm
15914f0afb9dc408fe56949d5871a46ffa103b44
[ "PHP-3.01", "Zend-2.0" ]
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 "hack" directory of this source tree. * *) open Hh_prelude module Detail_level = struct type t = | Low | High end type symbol_edge = { symbol_type: FileInf...
32.705036
80
0.655411
171e5c03d09cb0071824a0a090efe8bc956ab464
117
ml
OCaml
data/derived/comb/progs/unify/prog3869.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/prog3869.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog3869.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let listReverse l = let rec helper xs n = function | [] -> xs | hd::tl -> helper (hd :: xs) tl in helper [] l;;
23.4
79
0.555556
aaee6a7a153cac03575a2c5e5a01c6eeac6adb03
186,615
ml
OCaml
setup.ml
sdamashek/ocaml-tdk
3fe83ccc5e70187cf5011f6553eb891c5d4a2c3f
[ "BSD-3-Clause" ]
8
2015-01-26T00:43:25.000Z
2020-11-03T21:38:21.000Z
setup.ml
sdamashek/ocaml-tdk
3fe83ccc5e70187cf5011f6553eb891c5d4a2c3f
[ "BSD-3-Clause" ]
1
2015-01-27T01:15:57.000Z
2015-12-04T00:16:52.000Z
setup.ml
sdamashek/ocaml-tdk
3fe83ccc5e70187cf5011f6553eb891c5d4a2c3f
[ "BSD-3-Clause" ]
4
2015-01-09T22:34:38.000Z
2020-11-03T21:38:35.000Z
(* setup.ml generated for the first time by OASIS v0.4.4 *) (* OASIS_START *) (* DO NOT EDIT (digest: db3aa73ddf917b4f9fbc54429042add1) *) (* Regenerated by OASIS v0.4.5 Visit http://oasis.forge.ocamlcore.org for more information and documentation about functions used in this file. *) module OASISGettext = st...
26.12192
264
0.467047
cd032e5f4d6ae6824c7c2493f6b5e618b229f9be
4,673
mly
OCaml
src/util/oilParser.mly
mikcp/analyzer
c506fa4bfed6dfd4d81c549e7a4c59be8122a855
[ "MIT" ]
1
2022-03-28T16:25:31.000Z
2022-03-28T16:25:31.000Z
src/util/oilParser.mly
mikcp/analyzer
c506fa4bfed6dfd4d81c549e7a4c59be8122a855
[ "MIT" ]
null
null
null
src/util/oilParser.mly
mikcp/analyzer
c506fa4bfed6dfd4d81c549e7a4c59be8122a855
[ "MIT" ]
null
null
null
%{ open OilUtil %} %token RBRACK LBRACK RCURL LCURL SEMICOLON COLON COMMA ASSIGN DOTS EOF %token CPU IMPLEMENTATION OIL_VERSION %token AUTO NO_DEFAULT WITH_AUTO %token BOOLEAN STRING ENUM FLOAT INT64 UINT64 INT32 UINT32 %token <string> OIL_STRING %token <int> NUMBER %token <float> OIL_FLOAT %token <string> OBJECT %t...
26.106145
114
0.696341
176da60ab7c96a78349c2dfc8c55e1f64180a26a
20,922
mli
OCaml
ag_pathanalysis/batteries/src/batPathGen.mli
BambooL/AutoGrader
f537d396605d1b943137b1b964c5a2ebecbf2aca
[ "MIT" ]
2
2019-12-05T19:47:42.000Z
2021-05-05T13:41:16.000Z
ag_pathanalysis/batteries/src/batPathGen.mli
BambooL/AutoGrader
f537d396605d1b943137b1b964c5a2ebecbf2aca
[ "MIT" ]
null
null
null
ag_pathanalysis/batteries/src/batPathGen.mli
BambooL/AutoGrader
f537d396605d1b943137b1b964c5a2ebecbf2aca
[ "MIT" ]
2
2021-04-20T07:44:02.000Z
2021-04-20T08:38:41.000Z
(* * Path - Path and directory manipulation * Copyright (C) 2008 Dawid Toton * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your opti...
41.347826
317
0.652519
17b7f4c15710791161c68dee06ecbc0b9c1d2016
302
mli
OCaml
src/memprof_tracer.mli
hannesm/memtrace-mirage
e873c35d63ea2ec283009edf3c4a118209c8c4f9
[ "MIT" ]
9
2020-10-29T11:03:54.000Z
2020-11-23T16:35:08.000Z
src/memprof_tracer.mli
hannesm/memtrace-mirage
e873c35d63ea2ec283009edf3c4a118209c8c4f9
[ "MIT" ]
null
null
null
src/memprof_tracer.mli
hannesm/memtrace-mirage
e873c35d63ea2ec283009edf3c4a118209c8c4f9
[ "MIT" ]
null
null
null
module Make (Trace : Trace.S) : sig type t val start : ?report_exn:(exn -> unit) -> sampling_rate:float -> Trace.Writer.t -> t val stop : t -> unit val active_tracer : unit -> t option type ext_token [@@immediate] val ext_alloc : bytes:int -> ext_token option val ext_free : ext_token -> unit end
20.133333
83
0.688742
176ae71ca993e2ffc05e33cb80feac1ec35b3214
111,720
ml
OCaml
src/typing/type.ml
cristiancota/flow
1f87ab350fb65bf3461dc52dbd177bbcf0882be8
[ "MIT" ]
null
null
null
src/typing/type.ml
cristiancota/flow
1f87ab350fb65bf3461dc52dbd177bbcf0882be8
[ "MIT" ]
null
null
null
src/typing/type.ml
cristiancota/flow
1f87ab350fb65bf3461dc52dbd177bbcf0882be8
[ "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 ...
32.039002
114
0.647333
cd0b31db337cb1ffa1a71713008f94d335b2eb12
7,708
ml
OCaml
src/common/options.ml
dylanirlbeck/flow
33e628317b950f99e23648b722254cc377ae280f
[ "MIT" ]
null
null
null
src/common/options.ml
dylanirlbeck/flow
33e628317b950f99e23648b722254cc377ae280f
[ "MIT" ]
null
null
null
src/common/options.ml
dylanirlbeck/flow
33e628317b950f99e23648b722254cc377ae280f
[ "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. *) type esproposal_feature_mode = | ESPROPOSAL_ENABLE | ESPROPOSAL_IGNORE | ESPROPOSAL_WARN type file_watcher = | NoFileWatch...
29.307985
93
0.8233
aa961c6a50807a1cf244374d80b44df1d5a3a185
9,463
ml
OCaml
src/sim/vr/protocols/replica/normal.ml
Gordonbuck/vr-sim-diss
a03bed19c2ed6f8d015e1ea0b172e951cf502c5d
[ "MIT" ]
null
null
null
src/sim/vr/protocols/replica/normal.ml
Gordonbuck/vr-sim-diss
a03bed19c2ed6f8d015e1ea0b172e951cf502c5d
[ "MIT" ]
null
null
null
src/sim/vr/protocols/replica/normal.ml
Gordonbuck/vr-sim-diss
a03bed19c2ed6f8d015e1ea0b172e951cf502c5d
[ "MIT" ]
null
null
null
open Core open VR_State open StateTransfer let start_replica state = if is_primary state then (state, [Timeout(ReplicaTimeout(HeartbeatTimeout(valid_timeout state, op_no state), int_of_index (replica_no state)))], Null) else (state, [Timeout(ReplicaTimeout(PrimaryTimeout(valid_timeout state, no_primary_co...
62.668874
192
0.712987
175aed84c6ea10d6ab10dc05ea9129812e324313
3,762
ml
OCaml
src/iterator.ml
rizo/streams
bf586c8b986a41353f5e3963de01047b83e7649a
[ "BSD-2-Clause" ]
14
2016-06-15T08:56:37.000Z
2020-06-12T12:27:52.000Z
src/iterator.ml
rizo/streams
bf586c8b986a41353f5e3963de01047b83e7649a
[ "BSD-2-Clause" ]
null
null
null
src/iterator.ml
rizo/streams
bf586c8b986a41353f5e3963de01047b83e7649a
[ "BSD-2-Clause" ]
2
2017-06-07T19:37:24.000Z
2018-09-26T14:07:25.000Z
module A = struct type ('a, 's) iter = ('s * ('s -> ('a * 's) option)) let take n ((init, next)) = let next' (i, s) = if i <= 0 then None else match next s with | Some (a, s') -> Some (a, (i - 1, s')) | None -> None in ((n, init), next') let init n f = let next i = ...
20.335135
54
0.457735
cd31c77bbed29cd0c4ba2dfbc002e00221c73106
1,012
ml
OCaml
src/dune/ocaml_version.ml
dinosaure/dune
c4ed162536a40ae0bac54be0fb2fb4522769b588
[ "MIT" ]
null
null
null
src/dune/ocaml_version.ml
dinosaure/dune
c4ed162536a40ae0bac54be0fb2fb4522769b588
[ "MIT" ]
null
null
null
src/dune/ocaml_version.ml
dinosaure/dune
c4ed162536a40ae0bac54be0fb2fb4522769b588
[ "MIT" ]
null
null
null
type t = int * int * int let make x = x let of_ocaml_config ocfg = Ocaml_config.version ocfg let supports_no_keep_locs version = version >= (4, 03, 0) let supports_opaque_for_mli version = version >= (4, 03, 0) let always_reads_alias_cmi version = version < (4, 03, 0) let supports_color_in_ocamlparam version = ve...
28.111111
69
0.722332
17ee4630dea69af45f94bc490358157ad2abe3af
345
mli
OCaml
src/main/shell.mli
Stienvdh/eff
80ff311a6509a20148c823c69a084cd3ce200b83
[ "BSD-2-Clause" ]
null
null
null
src/main/shell.mli
Stienvdh/eff
80ff311a6509a20148c823c69a084cd3ce200b83
[ "BSD-2-Clause" ]
null
null
null
src/main/shell.mli
Stienvdh/eff
80ff311a6509a20148c823c69a084cd3ce200b83
[ "BSD-2-Clause" ]
1
2020-11-06T07:37:00.000Z
2020-11-06T07:37:00.000Z
module type Shell = sig type state val initialize : unit -> state val execute_file : string -> state -> state val load_file : string -> state -> state val execute_source : string -> state -> state val load_source : string -> state -> state val finalize : state -> unit end module Make (Backend : Bac...
19.166667
50
0.675362
cd25e46d3361a749528bf725c88de31c80386a77
4,743
ml
OCaml
x86/proofs/bignum_iszero.ml
SalusaSecondus/s2n-bignum
bf33aba81577a72924a9add994cba61fbb146026
[ "Apache-2.0" ]
33
2021-03-11T16:12:01.000Z
2022-03-06T17:01:18.000Z
x86/proofs/bignum_iszero.ml
SalusaSecondus/s2n-bignum
bf33aba81577a72924a9add994cba61fbb146026
[ "Apache-2.0" ]
8
2021-09-06T12:58:47.000Z
2022-01-03T16:43:09.000Z
x86/proofs/bignum_iszero.ml
SalusaSecondus/s2n-bignum
bf33aba81577a72924a9add994cba61fbb146026
[ "Apache-2.0" ]
4
2021-03-11T19:28:16.000Z
2021-12-12T23:40:44.000Z
(* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "LICENSE" file ...
44.327103
85
0.569049
17cae2d9792a210a0c8379303def39ac3311eefc
348
ml
OCaml
benchmarks/C/iter/sol361.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
9
2021-06-04T04:38:13.000Z
2021-12-15T05:45:28.000Z
benchmarks/C/iter/sol361.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
benchmarks/C/iter/sol361.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
2
2020-02-06T00:36:38.000Z
2020-07-27T09:53:35.000Z
(* problem 3*) let rec iter : int * (int -> int) -> (int -> int) = fun (n, f) -> if n = 0 then fun x -> x else let main_func = f in let rec help_iter n f = if n = 1 then f else help_iter (n-1) (fun x -> main_func(f(x))) ...
49.714286
95
0.399425
17c4862d63b6ee917ab5914ff827dfce86d505b5
5,140
mli
OCaml
upstream/ocaml_405/typing/outcometree.mli
rvantonder/merlin
09d6b2762f0be7129decae97bc2d87fc854bbbce
[ "MIT" ]
961
2020-09-15T11:01:50.000Z
2022-03-26T00:25:17.000Z
upstream/ocaml_405/typing/outcometree.mli
rvantonder/merlin
09d6b2762f0be7129decae97bc2d87fc854bbbce
[ "MIT" ]
83
2020-09-27T18:51:24.000Z
2022-03-08T10:57:53.000Z
upstream/ocaml_405/typing/outcometree.mli
rvantonder/merlin
09d6b2762f0be7129decae97bc2d87fc854bbbce
[ "MIT" ]
26
2020-10-13T10:39:13.000Z
2021-12-07T04:57:33.000Z
(**************************************************************************) (* *) (* OCaml *) (* *) (* Dani...
36.453901
76
0.629572