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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8a656a7d3a016d60ddd4463861fdd6c946c989c0 | 5,375 | ml | OCaml | src/inuit_format.ml | c-cube/inuit | 144e19aaf6d488000169ecc8ec0ac579187409d8 | [
"ISC"
] | null | null | null | src/inuit_format.ml | c-cube/inuit | 144e19aaf6d488000169ecc8ec0ac579187409d8 | [
"ISC"
] | null | null | null | src/inuit_format.ml | c-cube/inuit | 144e19aaf6d488000169ecc8ec0ac579187409d8 | [
"ISC"
] | null | null | null | external reraise : exn -> 'a = "%reraise"
module Make (M : sig type flag end) :
sig
type cursor = M.flag Inuit.cursor
val formatter_of_cursor : cursor -> Format.formatter
val push_cursor : (cursor -> cursor) -> Format.formatter -> unit
val push_flags : (M.flag list -> M.flag list) -> Format.formatter -> unit
... | 30.367232 | 99 | 0.55814 |
8a03dfd3939faea8e49fd133e3e9d7a1e394f1f6 | 2,651 | ml | OCaml | hphp/hack/test/full_fidelity/full_fidelity_random_ast_config_test.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | 7 | 2015-08-28T06:20:50.000Z | 2021-11-08T09:48:24.000Z | hphp/hack/test/full_fidelity/full_fidelity_random_ast_config_test.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-19T19:06:32.000Z | 2020-01-19T19:06:32.000Z | hphp/hack/test/full_fidelity/full_fidelity_random_ast_config_test.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2018-01-23T20:44:59.000Z | 2021-05-06T12:45:31.000Z | (**
* Copyright (c) 2016, 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.
*
*)
module Syntax... | 28.815217 | 80 | 0.690683 |
8ae41f66faa688272ab62fdbbcef7d969e260568 | 426 | ml | OCaml | bin/main.ml | CraigFe/duff | 3e56a971ee58167967dc997c0694ee6361459d07 | [
"MIT"
] | null | null | null | bin/main.ml | CraigFe/duff | 3e56a971ee58167967dc997c0694ee6361459d07 | [
"MIT"
] | null | null | null | bin/main.ml | CraigFe/duff | 3e56a971ee58167967dc997c0694ee6361459d07 | [
"MIT"
] | null | null | null | open Cmdliner
let cmds = [ Diff.cmd; Patch.cmd; ]
let main () = `Help (`Pager, None)
let cmd =
let doc = "Xduff utility" in
let exits = Term.default_exits in
let man =
[ `S Manpage.s_description
; `P "Xduff utility, libXdiff algorithm in OCaml." ] in
Term.(ret (const main $ Cli.setup)),
Term.info C... | 25.058824 | 72 | 0.664319 |
444ec0194698977fb826fdc95496617a0e451df7 | 452 | mli | OCaml | duniverse/alcotest.1.1.0/src/alcotest/utils.mli | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | duniverse/alcotest.1.1.0/src/alcotest/utils.mli | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | duniverse/alcotest.1.1.0/src/alcotest/utils.mli | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | module List : sig
include module type of List
type 'a t = 'a list
val filter_map : ('a -> 'b option) -> 'a list -> 'b list
val lift_result : ('a, 'b) result t -> ('a t, 'b t) result
end
module Result : sig
val map : ('a -> 'b) -> ('a, 'e) result -> ('b, 'e) result
end
module Unix : sig
include module t... | 17.384615 | 60 | 0.599558 |
afa6539cf1de086ee0643f026cefcfba04711624 | 18,851 | ml | OCaml | data/derived/comb/progs/unify/prog7613.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/fa15/progs/unify/prog2813.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2813.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 33.130053 | 208 | 0.674712 |
44045a8dbf6852cfeac7a42f60d14cd0a9965430 | 3,210 | ml | OCaml | graphv_core_lib/dynArray.ml | wlitwin/graphv | bc6ae65975f544d74d0387690c40e65bf1b188d4 | [
"MIT"
] | 10 | 2021-08-31T14:38:31.000Z | 2021-10-02T15:22:30.000Z | graphv_core_lib/dynArray.ml | wlitwin/graphv | bc6ae65975f544d74d0387690c40e65bf1b188d4 | [
"MIT"
] | null | null | null | graphv_core_lib/dynArray.ml | wlitwin/graphv | bc6ae65975f544d74d0387690c40e65bf1b188d4 | [
"MIT"
] | null | null | null | type 'a t = {
empty_value : 'a;
mutable arr : 'a array;
mutable size : int;
}
let [@inline always] empty t = t.size = 0
let remove t idx =
for i=idx to t.size-2 do
Array.unsafe_set t.arr i (Array.unsafe_get t.arr (i+1))
done;
t.size <- max (t.size - 1) 0;
;;
let create cap value = {
... | 23.602941 | 89 | 0.528037 |
443479f597d4d7b3b48871a09cd697bcf4857ab7 | 15,124 | ml | OCaml | gen/dumpAll.ml | ambroise-arm/herdtools7 | 9df11f822b2957f427e1324680dc9cd3f680762f | [
"CECILL-B"
] | null | null | null | gen/dumpAll.ml | ambroise-arm/herdtools7 | 9df11f822b2957f427e1324680dc9cd3f680762f | [
"CECILL-B"
] | 4 | 2021-06-29T09:31:26.000Z | 2021-07-02T15:26:56.000Z | gen/dumpAll.ml | ambroise-arm/herdtools7 | 9df11f822b2957f427e1324680dc9cd3f680762f | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 33.608889 | 79 | 0.505356 |
4461ac8cf627ee8864f81af39d05743fc984770f | 47 | ml | OCaml | exercises/03_03-est_trie/template.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | exercises/03_03-est_trie/template.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | exercises/03_03-est_trie/template.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | let est_trie a = failwith "Put your code here"
| 23.5 | 46 | 0.744681 |
444cf5b848000295e2af1633f6e19ce85eaccdcc | 1,702 | ml | OCaml | libraries/ec2/lib/revokeClientVpnIngress.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/revokeClientVpnIngress.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/revokeClientVpnIngress.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = RevokeClientVpnIngressRequest.t
type output = RevokeClientVpnIngressResult.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)))
... | 27.901639 | 89 | 0.622209 |
442a0a8d9be503163134efdbdb37d668c8458444 | 7,131 | ml | OCaml | src/core/islLocalSpace_Core.ml | tobig/ocaml-isl | 6965efff65f7d7b3231011f0f69d484dc3ad8bf5 | [
"MIT"
] | 1 | 2018-10-21T18:39:57.000Z | 2018-10-21T18:39:57.000Z | src/core/islLocalSpace_Core.ml | tobig/ocaml-isl | 6965efff65f7d7b3231011f0f69d484dc3ad8bf5 | [
"MIT"
] | null | null | null | src/core/islLocalSpace_Core.ml | tobig/ocaml-isl | 6965efff65f7d7b3231011f0f69d484dc3ad8bf5 | [
"MIT"
] | null | null | null | open Types
open Ctypes
open Foreign
open IslMemory
open IslErrors
open Unsigned
let isl_local_space_dim = foreign "isl_local_space_dim" (Types.local_space @-> dim_type @-> returning int)
let dim ctx ls typ =
let ret = isl_local_space_dim ls typ in
check_for_errors ctx;
ret
let isl_local_space_find_dim_by... | 38.755435 | 170 | 0.75922 |
8a7d220a23a319d0a85410cb01118d00ee711c61 | 20,653 | ml | OCaml | syntactic_matching/src/matching.ml | dklee0501/PLDI_20_242_artifact_publication | f2b73df9165c76e8b521d8ebd639d68321e3862b | [
"MIT"
] | 1 | 2022-02-14T02:37:58.000Z | 2022-02-14T02:37:58.000Z | syntactic_matching/src/matching.ml | dklee0501/Lobster | f2b73df9165c76e8b521d8ebd639d68321e3862b | [
"MIT"
] | null | null | null | syntactic_matching/src/matching.ml | dklee0501/Lobster | f2b73df9165c76e8b521d8ebd639d68321e3862b | [
"MIT"
] | null | null | null | open Circuit
open Graph_circuit
let rec alpha_subst : (var, var) BatMap.t -> bexp -> bexp = fun subst -> fun bexp ->
match bexp with
| NULL -> raise (Error "null is used")
| CONST _ -> bexp
| VAR x -> if (BatMap.mem x subst) then VAR (BatMap.find x subst) else bexp
| AND (b1, b2) ->
let alpha_b1 = alp... | 45.093886 | 183 | 0.63584 |
8a768e54adf5626a1f4dc18430eadcbec9ea505b | 909 | ml | OCaml | p7/mylist3.ml | alvaro-freire/paradigmas-udc | 033105ff298676c3dd632a19b5ef4a38627120be | [
"MIT"
] | null | null | null | p7/mylist3.ml | alvaro-freire/paradigmas-udc | 033105ff298676c3dd632a19b5ef4a38627120be | [
"MIT"
] | null | null | null | p7/mylist3.ml | alvaro-freire/paradigmas-udc | 033105ff298676c3dd632a19b5ef4a38627120be | [
"MIT"
] | null | null | null | (* EJERCICIO 2 *)
let rec remove n list =
match list with
| [] -> []
| hd::tl -> if (n = hd)
then tl
else hd::(remove n tl)
;;
let rec remove_all n list =
match list with
| [] -> []
| hd::tl -> if (n = hd)
then remove_all n tl
... | 22.170732 | 56 | 0.465347 |
afbce1a89be14bbf7fe196bbab3cfdb6209ccb89 | 252 | mli | OCaml | src/dune_rules/packages.mli | hyphenrf/dune | 0ecdf454ea4db89453b26a6b73cf96506697b4ac | [
"MIT"
] | 245 | 2016-12-02T14:13:32.000Z | 2018-01-14T20:00:40.000Z | src/dune_rules/packages.mli | hyphenrf/dune | 0ecdf454ea4db89453b26a6b73cf96506697b4ac | [
"MIT"
] | 380 | 2017-01-28T18:46:52.000Z | 2018-01-17T13:34:51.000Z | src/dune_rules/packages.mli | hyphenrf/dune | 0ecdf454ea4db89453b26a6b73cf96506697b4ac | [
"MIT"
] | 59 | 2016-12-02T13:58:19.000Z | 2018-01-06T18:23:02.000Z | open! Dune_engine
(* TODO : for now these take the super context, but eventually this should be
more fine grained *)
(** Collect functions keyed by a package *)
open Stdune
val mlds : Super_context.t -> Package.Name.t -> Path.Build.t list Memo.t
| 25.2 | 77 | 0.722222 |
8a589ee85893fc2a048585c1a79463cc0f456345 | 1,203 | ml | OCaml | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/typing-gadts/pr7214.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 1 | 2020-09-24T05:03:32.000Z | 2020-09-24T05:03:32.000Z | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/typing-gadts/pr7214.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/typing-gadts/pr7214.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | (* TEST
* expect
*)
type _ t = I : int t;;
let f (type a) (x : a t) =
let module M = struct
let (I : a t) = x (* fail because of toplevel let *)
let x = (I : a t)
end in
() ;;
[%%expect{|
type _ t = I : int t
Line _, characters 9-10:
let (I : a t) = x (* fail because of toplevel let *)
... | 26.152174 | 74 | 0.563591 |
8a9ec470dedfe57326fbd1178ffe60a18a486313 | 2,408 | ml | OCaml | hphp/hack/src/utils/relative_path.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/relative_path.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/relative_path.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"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.
*
*)
open Core
ope... | 23.841584 | 80 | 0.691445 |
8a57e7bf7f18d333de509d4d665cf1287ad1b680 | 1,318 | ml | OCaml | hphp/hack/src/server/serverWorker.ml | azjezz/hhvm | bb38fc533db545c1e9be9b5c373c759cd28b0f33 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2019-09-01T19:40:10.000Z | 2019-10-18T13:30:30.000Z | hphp/hack/src/server/serverWorker.ml | azjezz/hhvm | bb38fc533db545c1e9be9b5c373c759cd28b0f33 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-12-16T15:39:15.000Z | 2018-12-16T15:39:16.000Z | hphp/hack/src/server/serverWorker.ml | azjezz/hhvm | bb38fc533db545c1e9be9b5c373c759cd28b0f33 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-01-04T09:54:09.000Z | 2019-01-04T09:54:09.000Z | (**
* Copyright (c) 2014, 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.
*
*)
(* As for [Daemon.register_entry_point], this should stay
at toplevel, in order to be executed before
[Daemon... | 32.95 | 86 | 0.720789 |
44080d13ab7a915a390d50406aebc1362ce45db0 | 177 | ml | OCaml | src/time_zones_cmd.ml | daypack-dev/timeisin | ba6cd76271527f61ce972ecfe69211244650cfdf | [
"MIT"
] | 10 | 2020-09-03T16:27:30.000Z | 2021-02-08T12:11:09.000Z | src/time_zones_cmd.ml | daypack-dev/timeisin | ba6cd76271527f61ce972ecfe69211244650cfdf | [
"MIT"
] | null | null | null | src/time_zones_cmd.ml | daypack-dev/timeisin | ba6cd76271527f61ce972ecfe69211244650cfdf | [
"MIT"
] | null | null | null | open Cmdliner
let run () : unit =
List.iter (fun s -> print_endline s) Timere.Time_zone.available_time_zones
let cmd = (Term.(const run $ const ()), Term.info "time-zones")
| 25.285714 | 76 | 0.694915 |
8a412766f0828fee61bc41a988e01e2dc5c35c5c | 65 | ml | OCaml | sample/config/config_02.ml | npm-opam/ocaml_plugin | e5df6815ca301421a0cbeb5fe6e9364c7bb21c74 | [
"Apache-2.0"
] | null | null | null | sample/config/config_02.ml | npm-opam/ocaml_plugin | e5df6815ca301421a0cbeb5fe6e9364c7bb21c74 | [
"Apache-2.0"
] | null | null | null | sample/config/config_02.ml | npm-opam/ocaml_plugin | e5df6815ca301421a0cbeb5fe6e9364c7bb21c74 | [
"Apache-2.0"
] | null | null | null | let x = "from config_02"
let job = Dsl.make_v2 (Config_util.f x)
| 21.666667 | 39 | 0.707692 |
8af0c238c0b8caf7ea9d1984729e2dee3b1edbb7 | 430 | ml | OCaml | bin_server_ws/param.ml | idkjs/ocaml-todo | 9ad7bb71473e7629249b0f66b124338bf6f5c599 | [
"MIT"
] | 2 | 2020-10-27T20:09:00.000Z | 2021-07-30T10:21:49.000Z | bin_server_ws/param.ml | idkjs/ocaml-todo | 9ad7bb71473e7629249b0f66b124338bf6f5c599 | [
"MIT"
] | 1 | 2021-07-30T12:36:32.000Z | 2021-07-30T13:49:12.000Z | bin_server_ws/param.ml | idkjs/ocaml-todo | 9ad7bb71473e7629249b0f66b124338bf6f5c599 | [
"MIT"
] | 1 | 2021-07-30T12:39:31.000Z | 2021-07-30T12:39:31.000Z | open Core_kernel
let unit _ = ()
let id = function
| s :: _ -> int_of_string s
| _ -> failwith "id parameter missing"
let json decode data =
data |> List.hd_exn |> Yojson.Safe.from_string |> decode
let id_json decode to_record list =
match list with
| s1 :: s2 :: _ ->
let id' = id [ s1 ] in
let ... | 22.631579 | 58 | 0.623256 |
441c9dd2d51a076ac581d7d6cffb2f38737c5ae3 | 1,087 | mli | OCaml | presentations/coq-workshop-2014-coq/kernel/cooking.mli | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/kernel/cooking.mli | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/kernel/cooking.mli | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | (************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2015 *)
(* \VV/ **************************************************************)
(* // * Th... | 35.064516 | 74 | 0.523459 |
af5cadc708fb34d426d61c1002d4050043723098 | 68,079 | ml | OCaml | src/ocaml_trunk/typing/typemod.ml | jordwalke/merlin | 40cd1704df97d7e74e17824b684438a4e55c1771 | [
"MIT"
] | 1 | 2021-03-12T10:45:56.000Z | 2021-03-12T10:45:56.000Z | src/ocaml_trunk/typing/typemod.ml | jordwalke/merlin | 40cd1704df97d7e74e17824b684438a4e55c1771 | [
"MIT"
] | null | null | null | src/ocaml_trunk/typing/typemod.ml | jordwalke/merlin | 40cd1704df97d7e74e17824b684438a4e55c1771 | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 37.737805 | 80 | 0.603725 |
afe9901ec84d4f5ff84b2b468d2ae7b26e69190b | 2,139 | ml | OCaml | src/dune_engine/utils.ml | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | 1 | 2022-03-18T02:24:50.000Z | 2022-03-18T02:24:50.000Z | src/dune_engine/utils.ml | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | null | null | null | src/dune_engine/utils.ml | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | 1 | 2021-05-07T18:08:53.000Z | 2021-05-07T18:08:53.000Z | open! Stdune
open Import
let system_shell_exn =
let cmd, arg, os =
if Sys.win32 then
("cmd", "/c", "on Windows")
else
("sh", "-c", "")
in
let bin = lazy (Bin.which ~path:(Env.path Env.initial) cmd) in
fun ~needed_to ->
match Lazy.force bin with
| Some path -> (path, arg)
| None ... | 28.905405 | 81 | 0.631604 |
4438af55d485c35ae49e5bca2db6fa0326e99e2a | 1,205 | ml | OCaml | data/fa15/2220.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/2220.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/2220.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let removeDuplicates l =
let rec helper (seen,rest) =
match rest with
| [] -> seen
| h::t ->
let seen' = if not (List.mem (h, l)) then h :: seen else seen in
let rest' = t in helper (seen', rest') in
List.rev (helper ([], l));;
(* fix
let removeDuplicates l =
let rec helper (seen,r... | 15.448718 | 72 | 0.472199 |
44604e6d717b3bac4cea444b444b231817ba3368 | 3,330 | mli | OCaml | src/typing/func_sig.mli | stefb965/flow | 77ce66fdc2aa382db781346e67d468901631fdc2 | [
"BSD-3-Clause"
] | 10 | 2016-07-28T20:02:37.000Z | 2021-01-28T05:48:11.000Z | src/typing/func_sig.mli | stefb965/flow | 77ce66fdc2aa382db781346e67d468901631fdc2 | [
"BSD-3-Clause"
] | null | null | null | src/typing/func_sig.mli | stefb965/flow | 77ce66fdc2aa382db781346e67d468901631fdc2 | [
"BSD-3-Clause"
] | 5 | 2017-02-06T11:42:23.000Z | 2021-01-11T12:10:08.000Z | (** Intermediate representation for functions *)
type t
(** 1. Constructors *)
(** Create signature from function AST. *)
val mk: Context.t ->
Type.t SMap.t -> (* type params map *)
expr:(Context.t -> Spider_monkey_ast.Expression.t -> Type.t) ->
Reason.t ->
Spider_monkey_ast.Function.t ->
t
(** Create sig... | 31.415094 | 79 | 0.696096 |
443b7f8a9dc49bbfb8d719f6009aa4c02486a9c0 | 8,222 | mli | OCaml | src/proto_alpha/lib_benchmark/lib_benchmark_type_inference/mikhailsky.mli | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_benchmark/lib_benchmark_type_inference/mikhailsky.mli | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_benchmark/lib_benchmark_type_inference/mikhailsky.mli | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 24.839879 | 89 | 0.607516 |
442bbd1ed97b7ed6b16b9680e266bbc5df3f0320 | 1,309 | ml | OCaml | data/derived/comb/progs/unify/prog8832.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/prog4050.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog4050.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 e1 -> "sin(pi*" ^ ((exprToString e1) ^ ")")
| Cosine e1 -> "cos(pi*" ^ ((exprT... | 28.456522 | 81 | 0.440794 |
8a9135d52ca9f021c2a1bd80706237d37bd9f5eb | 5,714 | ml | OCaml | src/proto_000_Ps9mPmXa/lib_protocol/data.ml | Decentralized-Pictures/T4L3NT | 3a9265949d50d2e925b5d6b3df21f283211df6a2 | [
"MIT"
] | 3 | 2021-12-16T20:28:56.000Z | 2022-01-21T01:37:49.000Z | src/proto_000_Ps9mPmXa/lib_protocol/data.ml | Decentralized-Pictures/T4L3NT | 3a9265949d50d2e925b5d6b3df21f283211df6a2 | [
"MIT"
] | 5 | 2022-01-20T21:30:24.000Z | 2022-03-11T14:43:56.000Z | src/proto_000_Ps9mPmXa/lib_protocol/data.ml | Decentralized-Pictures/T4L3NT | 3a9265949d50d2e925b5d6b3df21f283211df6a2 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 35.937107 | 80 | 0.571404 |
8aca3f180d512ef9529ea66e85ff2ba7fad642e0 | 1,071 | ml | OCaml | driver/pkcs11_CK_RSA_PKCS_OAEP_PARAMS.ml | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | driver/pkcs11_CK_RSA_PKCS_OAEP_PARAMS.ml | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | driver/pkcs11_CK_RSA_PKCS_OAEP_PARAMS.ml | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | open Ctypes
open Ctypes_helpers
type source_type = P11_ulong.t
let source_type : source_type typ = ulong
let _CKZ_DATA_SPECIFIED : source_type = Unsigned.ULong.of_int 0x00000001
type _t
type t = _t structure
let t : t typ = structure "CK_RSA_PKCS_OAEP_PARAMS"
let (-:) ty label = smart_field t label ty
let hashAlg... | 29.75 | 75 | 0.757236 |
4461f7ce1a5161e3aa6717ceffcef3ceb7023892 | 3,188 | mli | OCaml | GillianCore/engine/GeneralSemantics/General/GInterpreter.mli | NatKarmios/Gillian | 511a16196bd89d25ffe5cf868188b6ddf546efd7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | GillianCore/engine/GeneralSemantics/General/GInterpreter.mli | NatKarmios/Gillian | 511a16196bd89d25ffe5cf868188b6ddf546efd7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | GillianCore/engine/GeneralSemantics/General/GInterpreter.mli | NatKarmios/Gillian | 511a16196bd89d25ffe5cf868188b6ddf546efd7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | type 'state_vt branch_case' =
| GuardedGoto of bool
| LCmd of int
| SpecExec of Flag.t
| LAction of 'state_vt list
| LActionFail of int
[@@deriving yojson]
module type S = sig
module CallStack : CallStack.S
type vt
type st
type store_t
type state_t
type state_err_t
type state_vt
type heap_t
... | 27.016949 | 80 | 0.608846 |
8a853ac312a5b8235ed80d613e8417d60de4b51c | 2,835 | ml | OCaml | source/service/test/staticAnalysisTest.ml | ekmixon/pyre-check | bd2475cc0cf4bef941f0aea6df10d674e6c907ab | [
"MIT"
] | 5,975 | 2018-05-11T15:54:32.000Z | 2022-03-31T14:38:00.000Z | source/service/test/staticAnalysisTest.ml | yuhan1212/pyre-check | 37a3fcb4dec517c37f381743bac8f8a269218f8c | [
"MIT"
] | 524 | 2018-05-11T16:47:20.000Z | 2022-03-22T17:43:06.000Z | source/service/test/staticAnalysisTest.ml | yuhan1212/pyre-check | 37a3fcb4dec517c37f381743bac8f8a269218f8c | [
"MIT"
] | 501 | 2018-05-11T16:46:29.000Z | 2022-03-19T04:41:57.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.
*)
open OUnit2
open Core
let test_callables context =
let assert_callables ?(additional_sources = []) ?(source_filename = "test.py"... | 29.226804 | 100 | 0.606702 |
8aa7240889be734fb0593f8a2ecb2f1eb4c453aa | 5,392 | ml | OCaml | test/unit-tests/artifact_substitution/artifact_substitution.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | null | null | null | test/unit-tests/artifact_substitution/artifact_substitution.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | null | null | null | test/unit-tests/artifact_substitution/artifact_substitution.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | null | null | null | open Stdune
open Dune_engine
module Re = Dune_re
let () =
Path.set_root (Path.External.cwd ());
Path.Build.set_build_dir (Path.Build.Kind.of_string "_build")
let fail fmt =
Printf.ksprintf
(fun msg ->
prerr_endline msg;
exit 1)
fmt
(* {1 encoding/decoding tests} Test that encoding and decod... | 27.793814 | 79 | 0.561387 |
8ae935f8ee082a4dbadef33e3eb70e19103f3545 | 9,425 | ml | OCaml | lib/model.ml | dra27/opam-0install-solver | 55762f565d69c18a27a965e6800143cb4affdcd1 | [
"ISC"
] | null | null | null | lib/model.ml | dra27/opam-0install-solver | 55762f565d69c18a27a965e6800143cb4affdcd1 | [
"ISC"
] | null | null | null | lib/model.ml | dra27/opam-0install-solver | 55762f565d69c18a27a965e6800143cb4affdcd1 | [
"ISC"
] | null | null | null | (* Note: changes to this file may require similar changes to lib-cudf/model.ml *)
module Make (Context : S.CONTEXT) = struct
(* Note: [OpamFormula.neg] doesn't work in the [Empty] case, so we just
record whether to negate the result here. *)
type restriction = {
kind : [ `Ensure | `Prevent ];
expr : O... | 33.540925 | 102 | 0.602122 |
440e1b4edd1d83468c896b715e4ab4b26c2578ef | 1,549 | mli | OCaml | lib/functoria/dune.mli | palainp/mirage | 09d3e17125e782c58aae92c8bb2f849b41fd2037 | [
"ISC"
] | 1,622 | 2015-01-03T13:32:31.000Z | 2022-03-31T23:16:50.000Z | lib/functoria/dune.mli | palainp/mirage | 09d3e17125e782c58aae92c8bb2f849b41fd2037 | [
"ISC"
] | 739 | 2015-01-08T12:44:35.000Z | 2022-03-30T06:31:27.000Z | lib/functoria/dune.mli | palainp/mirage | 09d3e17125e782c58aae92c8bb2f849b41fd2037 | [
"ISC"
] | 190 | 2015-01-04T12:20:37.000Z | 2022-03-30T02:57:26.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... | 33.673913 | 75 | 0.724338 |
44447040540fec17521e41fac5227349c021820f | 2,240 | ml | OCaml | src/swr_options.ml | jibingeo/bs-swr | 3f499c0e5c6fcf6525b65662d9f094f7d35383be | [
"MIT"
] | 22 | 2020-06-26T13:47:58.000Z | 2021-09-06T09:09:33.000Z | src/swr_options.ml | jibingeo/bs-swr | 3f499c0e5c6fcf6525b65662d9f094f7d35383be | [
"MIT"
] | 1 | 2020-08-02T14:01:10.000Z | 2020-08-02T14:08:15.000Z | src/swr_options.ml | jibingeo/bs-swr | 3f499c0e5c6fcf6525b65662d9f094f7d35383be | [
"MIT"
] | 2 | 2020-08-02T08:24:47.000Z | 2021-08-19T13:31:10.000Z | type t = {
errorRetryInterval: int option;
errorRetryCount: int option;
loadingTimeout: int option;
focusThrottleInterval: int option;
dedupingInterval: int option;
refreshInterval: int option;
refreshWhenHidden: bool option;
refreshWhenOffline: bool option;
revalidateOnFocus: bool option;
revalidat... | 35 | 84 | 0.751339 |
8ac4bcf890d5907ef7a7ab1d7a22ed92bd587ff7 | 1,771 | mli | OCaml | src/irmin-pack/ext.mli | smorimoto/irmin | 6287d115dc615459f8a4bc711e5388c353f98017 | [
"0BSD"
] | null | null | null | src/irmin-pack/ext.mli | smorimoto/irmin | 6287d115dc615459f8a4bc711e5388c353f98017 | [
"0BSD"
] | null | null | null | src/irmin-pack/ext.mli | smorimoto/irmin | 6287d115dc615459f8a4bc711e5388c353f98017 | [
"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... | 34.057692 | 75 | 0.699605 |
4462369d25af722046c4d0daf8457b769ab83254 | 242 | ml | OCaml | benchmarks/C/mem/sol78.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/mem/sol78.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/mem/sol78.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type btree =
| Empty
| Node of int * btree * btree
let rec mem : int -> btree -> bool
= fun n tree -> match tree with | Empty -> false
| Node(a,node_left,node_right) -> if a=n then true else (mem n node_left) || (mem n node_right)
| 30.25 | 102 | 0.628099 |
443e7ff6b16f1170af375be5786b621a23b7748c | 4,055 | ml | OCaml | src/lib_mockup_proxy/RPC_client.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_mockup_proxy/RPC_client.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_mockup_proxy/RPC_client.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2019 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 40.55 | 79 | 0.552651 |
8a0869984413553af7c55b2857a1aa47bb042882 | 138 | ml | OCaml | data/derived/comb/progs/unify/prog2763.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/prog2763.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2763.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let pipe fs = let f a x p = x a in let base d = d in List.fold_left f base fs;;
let _ = pipe [(fun x -> x + x); (fun x -> x + 3)] 3;;
| 27.6 | 79 | 0.521739 |
afa6868f0f6125c96a25273e2f3684b5cf382085 | 20,643 | ml | OCaml | infer/src/eradicate/eradicateChecks.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/eradicate/eradicateChecks.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/eradicate/eradicateChecks.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2014-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
(** Module for the checks called by Eradicate. *)
(* do not report RETURN_NOT_NULLABLE if the return is annotated @Nonnull *... | 42.73913 | 99 | 0.7014 |
4468a1acc3ac035e0d5d6d4d120905f33b8ecf73 | 1,322 | mli | OCaml | hphp/hack/src/parser/docblock_finder.mli | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2016-10-08T12:13:09.000Z | 2016-10-08T12:13:09.000Z | hphp/hack/src/parser/docblock_finder.mli | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/docblock_finder.mli | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"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.
*
*)
(**
* This i... | 35.72973 | 80 | 0.705749 |
441939d1773c46859c2c011e1da4c8d3c850e45f | 2,697 | ml | OCaml | lib/prettym/fancy.ml | shonfeder/mrmime | c5eb5fae36a99af5d7b6a5802c66908e3248b1d7 | [
"MIT"
] | null | null | null | lib/prettym/fancy.ml | shonfeder/mrmime | c5eb5fae36a99af5d7b6a5802c66908e3248b1d7 | [
"MIT"
] | null | null | null | lib/prettym/fancy.ml | shonfeder/mrmime | c5eb5fae36a99af5d7b6a5802c66908e3248b1d7 | [
"MIT"
] | null | null | null | type 'a t = Pretty.t -> 'a -> Pretty.t
type ('ty, 'v) order =
| Const : 'a t * 'a -> ('v, 'v) order
| Atom : 'a t -> ('a -> 'v, 'v) order
| Param : ('a t -> 'a -> 'v, 'v) order
| New_line : ('v, 'v) order
| Open : Pretty.box -> ('v, 'v) order
| Close : ('v, 'v) order
| Break : (int * int) -> ('v, 'v) ord... | 27.520408 | 92 | 0.563218 |
442b1aa48af5ee91dd87d0ddff16475ab6d39ae6 | 23 | ml | OCaml | bin/main_dune.ml | nandor/shmap | 6a730de81a1e8568a61ac0f53af3aebabde8e58b | [
"MIT"
] | 1 | 2018-09-14T10:47:11.000Z | 2018-09-14T10:47:11.000Z | bin/main_jbuilder.ml | nandor/shmap | 6a730de81a1e8568a61ac0f53af3aebabde8e58b | [
"MIT"
] | null | null | null | bin/main_jbuilder.ml | nandor/shmap | 6a730de81a1e8568a61ac0f53af3aebabde8e58b | [
"MIT"
] | null | null | null | let () = Entry.main ()
| 11.5 | 22 | 0.521739 |
446885bd86866ce1756461dd6ebae0035685f3fb | 5,078 | mli | OCaml | libraries/rds/lib/createDBCluster.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/rds/lib/createDBCluster.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/rds/lib/createDBCluster.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<p>Creates a new Amazon Aurora DB cluster.</p> <p>You can use the <code>ReplicationSourceIdentifier</code> parameter to create the DB cluster as a Read Replica of another DB cluster or Amazon RDS MySQL DB instance. For cross-region replication where the DB cluster identified by <code>ReplicationSourceIdentifier</c... | 57.05618 | 696 | 0.545096 |
8a086ccab4e549435a04fc9f9db2594b7ed21ed8 | 72 | ml | OCaml | data/derived/comb/progs/unify/prog5145.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/prog0237.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0237.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 f;;
| 24 | 70 | 0.555556 |
44775b9abc0043b9aebeaf39a8a3540d0009cbcf | 2,746 | ml | OCaml | hphp/hack/test/integration_ml/ide/test_diagnostics_in_closed_file.ml | Jankyboy/hhvm | afae3b129fe51c74d9c169254d1755eec4cb0940 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration_ml/ide/test_diagnostics_in_closed_file.ml | Jankyboy/hhvm | afae3b129fe51c74d9c169254d1755eec4cb0940 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2020-10-11T22:54:12.000Z | 2021-07-20T22:12:10.000Z | hphp/hack/test/integration_ml/ide/test_diagnostics_in_closed_file.ml | Jankyboy/hhvm | afae3b129fe51c74d9c169254d1755eec4cb0940 | [
"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_name = "foo.php"
let foo_contents =
Printf.sprintf "<?hh // stric... | 26.921569 | 79 | 0.730153 |
8a93f7aa322f30b059f9d813248d86c9b192bddb | 13,742 | mly | OCaml | src/compilerlib/pb_parsing_parser.mly | anmolsahoo25/ocaml-protoc | 802dc25c2ac029a7ea5e9624f5727f35c8824a15 | [
"MIT"
] | null | null | null | src/compilerlib/pb_parsing_parser.mly | anmolsahoo25/ocaml-protoc | 802dc25c2ac029a7ea5e9624f5727f35c8824a15 | [
"MIT"
] | null | null | null | src/compilerlib/pb_parsing_parser.mly | anmolsahoo25/ocaml-protoc | 802dc25c2ac029a7ea5e9624f5727f35c8824a15 | [
"MIT"
] | null | null | null | /*(*
The MIT License (MIT)
Copyright (c) 2016 Maxime Ransan <maxime.ransan@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation t... | 33.435523 | 115 | 0.679668 |
8afbbc8be2f6a5f7f7b82f482087bc43c0ddc0ca | 9,476 | ml | OCaml | src/state/heaps/context/context_heaps.ml | marcmenn/flow | 96e2ae6e50401594a2fbffcce883cf7349a5a15a | [
"MIT"
] | 1 | 2020-12-23T05:42:50.000Z | 2020-12-23T05:42:50.000Z | src/state/heaps/context/context_heaps.ml | Miazzy/flow | 9ec27c7b6582d0e46a57508a2491130e7912e533 | [
"MIT"
] | null | null | null | src/state/heaps/context/context_heaps.ml | Miazzy/flow | 9ec27c7b6582d0e46a57508a2491130e7912e533 | [
"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 Utils_js
(****************** shared context heap *********************)
module SigContextHeap =
SharedMem.WithCache
(F... | 31.798658 | 98 | 0.693647 |
445fb33e200067b8618e730d77dd233ce323f05c | 10,796 | ml | OCaml | src/lib_p2p/test/node.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/lib_p2p/test/node.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/lib_p2p/test/node.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 34.492013 | 79 | 0.585865 |
4416266c71e9924c73016046db5aac57164b8775 | 3,059 | ml | OCaml | libs/symphony-chat-workflow-spring-boot-starter/src/test/resources/org/finos/symphony/toolkit/workflow/testNestedWeirdFieldsView.ml | pankajpkhandelwal/symphony-java-toolkit | 8c2d865fc53909b3d0548bd640c12c9bdc57bb42 | [
"Apache-2.0"
] | 15 | 2020-09-24T08:37:06.000Z | 2022-01-05T14:56:36.000Z | libs/symphony-chat-workflow-spring-boot-starter/src/test/resources/org/finos/symphony/toolkit/workflow/testNestedWeirdFieldsView.ml | pankajpkhandelwal/symphony-java-toolkit | 8c2d865fc53909b3d0548bd640c12c9bdc57bb42 | [
"Apache-2.0"
] | 144 | 2020-09-15T10:33:34.000Z | 2022-01-27T13:13:52.000Z | libs/symphony-chat-workflow-spring-boot-starter/src/test/resources/org/finos/symphony/toolkit/workflow/testNestedWeirdFieldsView.ml | pankajpkhandelwal/symphony-java-toolkit | 8c2d865fc53909b3d0548bd640c12c9bdc57bb42 | [
"Apache-2.0"
] | 20 | 2020-09-24T08:37:08.000Z | 2022-01-07T10:41:58.000Z | <#ftl output_format="HTML">
<messageML>
<card iconSrc="data:image/svg+xml,%0A%3Csvg width='28px' height='28px' fill='%23000000' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' x='0px' y='0px' viewBox='0 0 100 100' enable-background='new 0 0 20 20' xml:space='preserve'%3E%3C... | 51.847458 | 1,425 | 0.585485 |
8a9f5a4ab952af166731f40b1f47eae2c750dd1e | 350 | ml | OCaml | lib/state_machine/counter.ml | Isaac-DeFrain/liveness-checking | 5a0caebcefb9dfc020c30c394230b9582678ef30 | [
"Apache-2.0"
] | 3 | 2021-05-05T20:09:49.000Z | 2021-05-21T23:02:40.000Z | lib/state_machine/counter.ml | Isaac-DeFrain/liveness-checking | 5a0caebcefb9dfc020c30c394230b9582678ef30 | [
"Apache-2.0"
] | null | null | null | lib/state_machine/counter.ml | Isaac-DeFrain/liveness-checking | 5a0caebcefb9dfc020c30c394230b9582678ef30 | [
"Apache-2.0"
] | null | null | null | (* counter state *)
type state = {mutable value : int; mutable step : int; mutable continue : bool}
(* initial counter state *)
let counter = {value = 0; step = 0; continue = true}
(* actions *)
let incr v = v + 1
let decr v = v - 1
let change f s =
s.value <- f s.value ;
s.step <- s.step + 1 ;
s
let stop s ... | 17.5 | 79 | 0.591429 |
44760267e06efcd2cbed7f72ed8b332d58f453c1 | 570 | ml | OCaml | benchmarks/wellformedness/wellformedness1/submissions/sub10.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 10 | 2018-11-06T00:08:12.000Z | 2019-12-05T11:05:16.000Z | benchmarks/wellformedness/wellformedness1/submissions/sub10.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | null | null | null | benchmarks/wellformedness/wellformedness1/submissions/sub10.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 2 | 2020-02-06T14:59:50.000Z | 2022-03-16T19:25:43.000Z | type metro = STATION of name
| AREA of name * metro
| CONNECT of metro * metro
and name = string
let rec sub (l,a) =
match l with
[] -> []
| hd::tl -> if hd = a then sub(tl,a) else hd::sub(tl,a)
let rec concat (a,b) =
match a with
[] -> b
| hd::tl -> hd::concat(tl,b)
let rec listsub (m:metro) =
match m with
STATIO... | 17.272727 | 63 | 0.598246 |
444e271090e956177e2a3f6140db8aed37d8e11c | 1,603 | mli | OCaml | lib/Non_overlapping_interval_tree.mli | danielmercier/ocamlformat | 62d702a1b2cdc05040234ed920fcf1bd6203e06b | [
"MIT"
] | 1 | 2021-11-07T18:54:48.000Z | 2021-11-07T18:54:48.000Z | lib/Non_overlapping_interval_tree.mli | danielmercier/ocamlformat | 62d702a1b2cdc05040234ed920fcf1bd6203e06b | [
"MIT"
] | 4 | 2019-05-02T01:31:10.000Z | 2022-01-26T13:59:27.000Z | lib/Non_overlapping_interval_tree.mli | danielmercier/ocamlformat | 62d702a1b2cdc05040234ed920fcf1bd6203e06b | [
"MIT"
] | 1 | 2018-11-22T21:37:51.000Z | 2018-11-22T21:37:51.000Z | (**************************************************************************)
(* *)
(* OCamlFormat *)
(* *)
(* ... | 34.106383 | 76 | 0.425452 |
4473a0fcf10f870c1a76b5413ea491311a27a8bc | 414 | mli | OCaml | src/lib/coda_base/sparse_ledger.mli | khoazany/coda | 0cef5efc14cf901334837820ef69209594a4dec3 | [
"Apache-2.0"
] | 1 | 2018-11-01T06:43:26.000Z | 2018-11-01T06:43:26.000Z | src/lib/coda_base/sparse_ledger.mli | khoazany/coda | 0cef5efc14cf901334837820ef69209594a4dec3 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/sparse_ledger.mli | khoazany/coda | 0cef5efc14cf901334837820ef69209594a4dec3 | [
"Apache-2.0"
] | null | null | null | open Core
open Import
open Snark_params.Tick
type t [@@deriving bin_io, sexp]
val merkle_root : t -> Ledger_hash.t
val path_exn :
t -> int -> [`Left of Merkle_hash.t | `Right of Merkle_hash.t] list
val apply_payment_exn : t -> Payment.t -> t
val apply_transaction_exn : t -> Transaction.t -> t
val of_ledger_subs... | 21.789474 | 72 | 0.710145 |
8a5510d19fefe7c3fb8ae5e9b9acf60700dac07d | 4,492 | ml | OCaml | data/fa15/1328.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/1328.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/1328.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;;
let buildAverage (e1,e2) = Average (e1, e2);;
let buildCosine e = Cosine e;;
let buildSine e = Sine e;;
let buildThresh (a,b,a_less,b_less) = Thresh (a, b, a_le... | 18.561983 | 73 | 0.508014 |
8a6f29166133cb7c84cf4a366e7d62a507e3c9aa | 86,518 | mly | OCaml | src/ocaml_400/chunk_parser.mly | jpdeplaix/merlin | 81a6f05bcdc32ab2ec32057bd37dd0d6db315426 | [
"MIT"
] | null | null | null | src/ocaml_400/chunk_parser.mly | jpdeplaix/merlin | 81a6f05bcdc32ab2ec32057bd37dd0d6db315426 | [
"MIT"
] | null | null | null | src/ocaml_400/chunk_parser.mly | jpdeplaix/merlin | 81a6f05bcdc32ab2ec32057bd37dd0d6db315426 | [
"MIT"
] | null | null | null |
(***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Le... | 40.848914 | 177 | 0.593564 |
446106ea74cdf149e5947a4800d3ed29b752ca55 | 893 | ml | OCaml | result/prog/lambda/sub16/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/prog/lambda/sub16/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/prog/lambda/sub16/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type lambda = V of var | P of (var * lambda) | C of (lambda * lambda)
and var = string
let rec __s3 ((__s4 : lambda), (__s5 : string list)) : bool =
match (__s4, __s5) with
| V __s11, __s12 -> List.mem __s11 __s12
| P (__s13, __s14), __s15 -> __s3 (__s14, List.append [ __s13 ] __s15)
| C (__s16, __s17), __s18... | 31.892857 | 73 | 0.539754 |
444ea705111e4f17765cca59e2648150b911cb0f | 7,613 | ml | OCaml | hphp/hack/src/utils/process/future.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-07-21T09:08:35.000Z | 2019-07-21T09:08:35.000Z | hphp/hack/src/utils/process/future.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/process/future.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-07-30T11:52:42.000Z | 2019-07-30T11:52:42.000Z | (**
* 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.
*
*)
(**
* We shell out hg commands, so its computation is out-of-process, and
* return a Future for the result.
*
*... | 39.445596 | 94 | 0.664127 |
4474d13e535531324856fef2ac590fa02237752e | 1,858 | mll | OCaml | src/htdocs/monitoring/deformation/edm/longvalley/data/lincoln.mll | ehunter-usgs/earthquake-website | 06cd6893079456fb8d533fd7bd2e3b2961056ff4 | [
"CC0-1.0"
] | null | null | null | src/htdocs/monitoring/deformation/edm/longvalley/data/lincoln.mll | ehunter-usgs/earthquake-website | 06cd6893079456fb8d533fd7bd2e3b2961056ff4 | [
"CC0-1.0"
] | null | null | null | src/htdocs/monitoring/deformation/edm/longvalley/data/lincoln.mll | ehunter-usgs/earthquake-website | 06cd6893079456fb8d533fd7bd2e3b2961056ff4 | [
"CC0-1.0"
] | null | null | null | Mill (mll) to lincoln
approximate distance is 2987.0 meters
1989.00 243.83 -12.62 0.57 12
1989.00 243.86 -12.77 0.57 12
1989.00 243.87 -12.85 0.57 12
1989.00 247.90 -13.51 0.56 12
1989.00 247.93 -13.28 0.57 12
1989.00 276.88 -1... | 44.238095 | 45 | 0.4338 |
440474579a34b38d2d132fb07009bcfed6512c0c | 20,046 | ml | OCaml | data/derived/comb/progs/unify/prog5428.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/fa15/progs/unify/prog0525.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0525.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 34.741768 | 208 | 0.636436 |
8a5ff1970698004676dc96dda4c6993c78a6a579 | 2,445 | ml | OCaml | src/sizeof.ml | percontation/ocaml_of_llvm | 0e0184ac1a26a813e5d50e2572304bad846a6c80 | [
"0BSD"
] | null | null | null | src/sizeof.ml | percontation/ocaml_of_llvm | 0e0184ac1a26a813e5d50e2572304bad846a6c80 | [
"0BSD"
] | null | null | null | src/sizeof.ml | percontation/ocaml_of_llvm | 0e0184ac1a26a813e5d50e2572304bad846a6c80 | [
"0BSD"
] | null | null | null | (* Should probably be calling data_layout to figure out the right size and alignment values.
* If this doesn't match the target code, it will all break. *)
open Llvm
let pointer_size = Runtime.pointer_size
(* Return the index of the highest bit plus one (or, 0 for 0). Only for positive numbers. *)
let num_bits x =
... | 30.949367 | 108 | 0.623313 |
4414f4349ea498bc205453dc4cad633ddbb63966 | 6,269 | ml | OCaml | src/lib/coda_base/pending_coinbase_intf.ml | dangdennis/coda | c968ad8fb46a21a615be4ac1d5b6b015f9216d44 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/pending_coinbase_intf.ml | dangdennis/coda | c968ad8fb46a21a615be4ac1d5b6b015f9216d44 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/pending_coinbase_intf.ml | dangdennis/coda | c968ad8fb46a21a615be4ac1d5b6b015f9216d44 | [
"Apache-2.0"
] | null | null | null | (** Pending_coinbase is to keep track of all the coinbase transactions that have been applied to the ledger but for which there is no ledger proof yet. Every ledger proof corresponds to a sequence of coinbase transactions which is part of all the transactions it proves. Each of these sequences[Stack] are stored using t... | 27.738938 | 610 | 0.655926 |
8a33473f61356622c199de41a4004e3c75c0ba34 | 6,756 | ml | OCaml | analysis/test/integration/unionTest.ml | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 1 | 2020-08-08T16:01:55.000Z | 2020-08-08T16:01:55.000Z | analysis/test/integration/unionTest.ml | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 4 | 2022-02-15T02:42:33.000Z | 2022-02-28T01:30:07.000Z | analysis/test/integration/unionTest.ml | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 1 | 2020-11-22T12:08:51.000Z | 2020-11-22T12:08:51.000Z | (* 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 OUnit2
open IntegrationTest
let test_check_union context =
let assert_type_errors = assert_type_errors ~context in
assert_type_erro... | 27.024 | 99 | 0.568088 |
8a97d3f8678eaa0c0629180633678a624e443428 | 20,461 | ml | OCaml | data/derived/comb/progs/unify/prog8638.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/fa15/progs/unify/prog3854.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3854.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 34.273032 | 208 | 0.629002 |
441cef5ef266926ec312ed4172773bd068b7190e | 9,238 | ml | OCaml | example/packer.ml | hannesm/ke | d00464d89d494907e6b11c46dbeab63f64069135 | [
"MIT"
] | null | null | null | example/packer.ml | hannesm/ke | d00464d89d494907e6b11c46dbeab63f64069135 | [
"MIT"
] | null | null | null | example/packer.ml | hannesm/ke | d00464d89d494907e6b11c46dbeab63f64069135 | [
"MIT"
] | null | null | null | let () = Printexc.record_backtrace true
module type GRAPH = sig
type t
type id
type value
type error = private [> `Not_found ]
val pp_error : error Fmt.t
val preds : value -> id list
val get : t -> id -> (value, error) result Lwt.t
val compare : value -> value -> int
end
module Make (Q: Ke.Sigs.R) (... | 33.111111 | 141 | 0.579779 |
8a53854d1cd86f5dbaf43f0c8e3efb7e6254d758 | 148 | ml | OCaml | benchmarks/C/iter/sol338.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/iter/sol338.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/iter/sol338.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*1
else fun x -> iter(n-1,f) (f x);; | 29.6 | 52 | 0.466216 |
8a3bb3efce516df52197d0fffe7891b24e7d73e2 | 10,622 | ml | OCaml | src/main.ml | DadaIsCrazy/usuba | 5ecbf056d7d8bd77462d29309c85f897f36d0f49 | [
"MIT"
] | 41 | 2018-06-22T18:19:20.000Z | 2021-11-14T16:24:15.000Z | src/main.ml | DadaIsCrazy/usuba | 5ecbf056d7d8bd77462d29309c85f897f36d0f49 | [
"MIT"
] | 2 | 2018-06-22T17:55:02.000Z | 2020-07-10T21:54:32.000Z | src/main.ml | DadaIsCrazy/usuba | 5ecbf056d7d8bd77462d29309c85f897f36d0f49 | [
"MIT"
] | 3 | 2019-04-02T22:19:25.000Z | 2021-12-03T02:36:23.000Z |
open Usuba_AST
open Printf
open Basic_utils
open Utils
open Tightprove_to_usuba
open Config
let warnings = ref false
let verbose = ref 1
let path = ref [ "." ]
let type_check = ref true
let check_tbl = ref false
let no_inline = ref false
let auto_inline = ref true
let inline_all = ref fal... | 39.340741 | 243 | 0.610808 |
4440eb27750e89418cebde51ad2f213106605d7e | 5,382 | ml | OCaml | src/context.ml | zarumaru/google-drive-ocamlfuse | 79a4aea495552cc17b6d0f448131bbf4176bb267 | [
"MIT"
] | 4,601 | 2015-01-01T08:14:52.000Z | 2022-03-30T08:39:09.000Z | src/context.ml | zarumaru/google-drive-ocamlfuse | 79a4aea495552cc17b6d0f448131bbf4176bb267 | [
"MIT"
] | 677 | 2015-01-01T18:00:33.000Z | 2022-03-30T22:51:49.000Z | src/context.ml | zarumaru/google-drive-ocamlfuse | 79a4aea495552cc17b6d0f448131bbf4176bb267 | [
"MIT"
] | 314 | 2015-01-27T03:16:50.000Z | 2022-03-25T08:04:25.000Z | open GapiLens.Infix
module ConfigFileStore = KeyValueStore.MakeFileStore (Config)
module StateFileStore = KeyValueStore.MakeFileStore (State)
type t = {
(* Application paths *)
app_dir : AppDir.t;
(* Configuration filesystem storage *)
config_store : ConfigFileStore.t;
(* State filesystem storage *)
state_... | 26.512315 | 80 | 0.669454 |
afe0eab1538dc7c3ed842c1e02cd2fefac515742 | 3,015 | mli | OCaml | src/kernel/merlin_lexer.mli | jordwalke/merlin | 40cd1704df97d7e74e17824b684438a4e55c1771 | [
"MIT"
] | 1 | 2021-03-12T10:45:56.000Z | 2021-03-12T10:45:56.000Z | src/kernel/merlin_lexer.mli | jordwalke/merlin | 40cd1704df97d7e74e17824b684438a4e55c1771 | [
"MIT"
] | null | null | null | src/kernel/merlin_lexer.mli | jordwalke/merlin | 40cd1704df97d7e74e17824b684438a4e55c1771 | [
"MIT"
] | null | null | null | (* {{{ COPYING *(
This file is part of Merlin, an helper for ocaml editors
Copyright (C) 2013 - 2015 Frédéric Bour <frederic.bour(_)lakaban.net>
Thomas Refis <refis.thomas(_)gmail.com>
Simon Castellan <simon.castellan(_)iuwt.fr>
Permission is hereby... | 39.671053 | 103 | 0.727032 |
8adcde76c3f18dbdfb3a4bd5cba7e3acb9184b3c | 912 | ml | OCaml | test_gen/main.ml | Huxpro/jscert | 73c0c7108bd79419eb8e8cfd02cbf664ca4d0877 | [
"BSD-2-Clause"
] | 163 | 2015-01-06T08:57:17.000Z | 2022-01-20T10:39:00.000Z | test_gen/main.ml | Huxpro/jscert | 73c0c7108bd79419eb8e8cfd02cbf664ca4d0877 | [
"BSD-2-Clause"
] | 9 | 2015-07-26T19:07:32.000Z | 2019-04-10T06:13:35.000Z | test_gen/main.ml | Huxpro/jscert | 73c0c7108bd79419eb8e8cfd02cbf664ca4d0877 | [
"BSD-2-Clause"
] | 10 | 2015-01-20T09:21:00.000Z | 2019-04-09T09:02:10.000Z | open Environment;;
open Reference;;
open Context;;
let () =
Random.self_init ();;
let generator = Statement.create ()
and channel = open_out "result";;
let fresh =
let compt = ref (-1) in
fun () -> incr compt; string_of_int (!compt);;
let test = generator#statement in
List.iter (fun t ->
... | 28.5 | 68 | 0.605263 |
447cb20dd70999a51d8bafe70061d4f082cc7bd1 | 9,031 | ml | OCaml | src/services/get_def/getDef_js.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | src/services/get_def/getDef_js.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | src/services/get_def/getDef_js.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Base.Result
open Utils_js
let loc_of_aloc = Parsing_heaps.Reader.loc_of_aloc
module Get_def_result = struct
type t =
... | 37.318182 | 99 | 0.629388 |
afe3d19274628bcf9bfe23a17839c208d5fd7cbd | 3,161 | ml | OCaml | lib/models/guild/guild_t.ml | fuwn/disml | b2f081fff12093a7d3434859ebd621608dde6c7d | [
"MIT"
] | 30 | 2019-01-04T11:02:34.000Z | 2022-03-01T11:45:20.000Z | lib/models/guild/guild_t.ml | rosalogia/disml | 244f46f0b06f881a1f30ae3c5f281619dab46e51 | [
"MIT"
] | 1 | 2021-08-10T03:34:36.000Z | 2021-08-10T18:41:26.000Z | lib/models/guild/guild_t.ml | rosalogia/disml | 244f46f0b06f881a1f30ae3c5f281619dab46e51 | [
"MIT"
] | 6 | 2020-04-27T17:36:35.000Z | 2021-08-09T22:19:32.000Z | open Core
type unavailable = {
id: Guild_id_t.t;
unavailable: bool [@default false];
} [@@deriving sexp, yojson { strict = false; exn = true }]
type pre = {
id: Guild_id_t.t;
name: string;
icon: string option [@default None];
splash: string option [@default None];
owner_id: Use... | 44.521127 | 322 | 0.713065 |
4458319b7f35ef45b960d1c842a00c73fe85b5bb | 89,871 | ml | OCaml | trained/NYSE-MS-day-2015-03-06-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | null | null | null | trained/NYSE-MS-day-2015-03-06-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | null | null | null | trained/NYSE-MS-day-2015-03-06-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | 2 | 2020-05-03T11:14:09.000Z | 2021-11-18T10:26:30.000Z | [BASIC]
[BASIC:PARAMS]
[BASIC:NETWORK]
beginTraining=0
connectionLimit=0
contextTargetOffset=0,0,0
contextTargetSize=0,0,0
endTraining=2
hasContext=f
inputCount=180
layerCounts=4,37,181
layerFeedCounts=4,36,180
layerContextCount=0,0,0
layerIndex=0,4,41
output=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,... | 2,995.7 | 27,358 | 0.814968 |
445ac821f0233a049083e80ab6f6c7beca71553d | 2,068 | ml | OCaml | src/irmin-server-internal/tree_intf.ml | dinosaure/irmin-server | 3ed546cde5957a7b2dbea7e86bcfc69ae62c72c7 | [
"ISC"
] | 22 | 2018-05-13T19:10:44.000Z | 2021-07-31T15:06:56.000Z | src/irmin-server-internal/tree_intf.ml | dinosaure/irmin-server | 3ed546cde5957a7b2dbea7e86bcfc69ae62c72c7 | [
"ISC"
] | 6 | 2021-08-05T00:26:35.000Z | 2022-03-18T18:54:34.000Z | src/irmin-server-types/tree_intf.ml | zshipko/irmin-server | 899bb11d79916534214a4117d565b96841cefeac | [
"0BSD"
] | 4 | 2021-08-05T00:15:05.000Z | 2022-03-02T14:19:23.000Z | module type LOCAL = sig
type t
type contents
type path
type hash
type node
type step
type metadata
val t : t Irmin.Type.t
type concrete =
[ `Tree of (step * concrete) list | `Contents of contents * metadata ]
val concrete_t : concrete Irmin.Type.t
val of_concrete : concrete -> t
val to_co... | 24.915663 | 77 | 0.612186 |
8a55ff67f0da509f4d245942dbbf9db5414fbc9c | 35,340 | ml | OCaml | tests/writertests.ml | hcarty/ocaml-tls | ba21b961dd17f2be10b85e25e4db69a5aa64c3bb | [
"BSD-2-Clause"
] | null | null | null | tests/writertests.ml | hcarty/ocaml-tls | ba21b961dd17f2be10b85e25e4db69a5aa64c3bb | [
"BSD-2-Clause"
] | null | null | null | tests/writertests.ml | hcarty/ocaml-tls | ba21b961dd17f2be10b85e25e4db69a5aa64c3bb | [
"BSD-2-Clause"
] | null | null | null | open OUnit2
open Tls
open Testlib
let version_assembler (ver, res) _ =
let buf = Writer.assemble_protocol_version ver in
assert_cs_eq buf res
let version_assembler_tests = Core.([
(TLS_1_0, list_to_cstruct [3; 1]) ;
(TLS_1_1, list_to_cstruct [3; 2]) ;
(TLS_1_2, list_to_cstruct [3; 3]) ;
])
let version_tests =... | 69.566929 | 2,585 | 0.586842 |
8a84533223124a448431f8b4a4288d8c5fe8813a | 16,469 | ml | OCaml | trans/il3_optimize.ml | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | 1 | 2018-02-10T02:52:09.000Z | 2018-02-10T02:52:09.000Z | trans/il3_optimize.ml | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | null | null | null | trans/il3_optimize.ml | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | null | null | null | (*
Part of Fail-Safe C Compiler. Produced by Yutaka Oiwa.
(c) 2001-2005 Yutaka Oiwa.
(c) 2005- AIST.
This file is written by Yutaka Oiwa in 2003-2009. *)
open Format
open Util
open Locterm
open Il
open Il3
open Il3_formatter
include Debug.Install (struct let category = 160 end)
type car_cdr = CAR o... | 29.30427 | 110 | 0.657842 |
4443ac5db4ab36a7431f59113351dcce77bd0058 | 207 | ml | OCaml | src/common/flow_version.ml | kevinold/flow | ef3393c014ef3dc1e006fd17e16462e3c3acb563 | [
"MIT"
] | null | null | null | src/common/flow_version.ml | kevinold/flow | ef3393c014ef3dc1e006fd17e16462e3c3acb563 | [
"MIT"
] | null | null | null | src/common/flow_version.ml | kevinold/flow | ef3393c014ef3dc1e006fd17e16462e3c3acb563 | [
"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.
*)
let version = "0.68.0"
| 23 | 66 | 0.690821 |
8aa0871e4ff156a0f294003a61e5964d70d61d5b | 6,143 | ml | OCaml | lib/obj_array.ml | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | lib/obj_array.ml | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | lib/obj_array.ml | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | open Int_replace_polymorphic_compare
module Sexp = Sexplib.Sexp
module String = Caml.StringLabels
module Array = Core_array
let phys_equal = Caml.(==)
let does_raise = Exn.does_raise
(* We maintain the property that all values of type [t] do not have the tag
[double_array_tag]. Some functions below assume this ... | 29.533654 | 90 | 0.65945 |
44811a1d79c213d23f8a1a1db46e251338795488 | 6,802 | ml | OCaml | data/derived/comb/progs/unify/prog6895.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/fa15/progs/unify/prog2079.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2079.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
let rec append xs ys =
match xs with
| [] -> ys
| h :: t -> h :: append t ys
(*XXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let rec sumList xs =
match xs with
| [] -> 0
| h :: t -> h + sumList t
let _ = sumList [1; 2; 3; 4]
let _ = sumList [1; -2; 3; 5]
let _... | 24.467626 | 94 | 0.631873 |
4486e39c9c6e5dad96992d284f07bb53aff5b230 | 208 | mli | OCaml | libraries/cloudformation/lib/setStackPolicy.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudformation/lib/setStackPolicy.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudformation/lib/setStackPolicy.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | open Types_internal
type input = SetStackPolicyInput.t
type output = unit
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 29.714286 | 74 | 0.740385 |
444d0e1857f1856416d30d8ef1197329186337a4 | 3,344 | ml | OCaml | test/passing/extensions.ml | trefis/ocamlformat | 42ce8535faa81507991e9d1ca599aafb5d75d9ea | [
"MIT"
] | null | null | null | test/passing/extensions.ml | trefis/ocamlformat | 42ce8535faa81507991e9d1ca599aafb5d75d9ea | [
"MIT"
] | null | null | null | test/passing/extensions.ml | trefis/ocamlformat | 42ce8535faa81507991e9d1ca599aafb5d75d9ea | [
"MIT"
] | null | null | null | let () = [%ext expr] ; ()
let _ = (match%ext x with () -> ()) [@attr y]
let _ =
match%ext x with () ->
let y = [%test let x = y] in
let%test x = d in
d
val f : compare:[%compare : 'a] -> sexp_of:[%sexp_of : 'a] -> t
let invariant t =
Invariant.invariant [%here] t [%sexp_of : t] (fun () ->
asse... | 17.882353 | 72 | 0.595694 |
447307fa8d2884152b567069747eae42d9d2c587 | 15,143 | ml | OCaml | src/syntax/reification.ml | Mu-L/haxe | c73f8b7077d84dfbd43a76f6986ead3321676d34 | [
"MIT"
] | null | null | null | src/syntax/reification.ml | Mu-L/haxe | c73f8b7077d84dfbd43a76f6986ead3321676d34 | [
"MIT"
] | null | null | null | src/syntax/reification.ml | Mu-L/haxe | c73f8b7077d84dfbd43a76f6986ead3321676d34 | [
"MIT"
] | null | null | null | (*
The Haxe Compiler
Copyright (C) 2005-2019 Haxe Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This prog... | 36.314149 | 201 | 0.610381 |
445c23a96bedbd53f60cc24084895eeb82437b39 | 5,407 | ml | OCaml | src/percent.ml | Octachron/core_kernel | 0e0a953b9543c10b88b9420991a1f730262b2bf3 | [
"MIT"
] | null | null | null | src/percent.ml | Octachron/core_kernel | 0e0a953b9543c10b88b9420991a1f730262b2bf3 | [
"MIT"
] | null | null | null | src/percent.ml | Octachron/core_kernel | 0e0a953b9543c10b88b9420991a1f730262b2bf3 | [
"MIT"
] | null | null | null | open! Import
open Std_internal
module Stable = struct
module V1 = struct
type t = (float[@quickcheck.generator Float.gen_finite])
[@@deriving compare, hash, quickcheck]
let of_mult f = f
let to_mult t = t
let of_percentage f = f /. 100.
let to_percentage t = t *. 100.
let of_bp f = f /. ... | 30.548023 | 92 | 0.608286 |
4448938b0bbc64f2973b58147b83b4bd41f7b806 | 4,601 | ml | OCaml | herd/RISCVArch_herd.ml | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"CECILL-B"
] | null | null | null | herd/RISCVArch_herd.ml | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"CECILL-B"
] | null | null | null | herd/RISCVArch_herd.ml | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 29.876623 | 78 | 0.52206 |
8a5b1ec90527d5a74ab09d86b207caccace8dfc5 | 5,667 | ml | OCaml | libraries/ec2/lib/provisionByoipCidr.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/ec2/lib/provisionByoipCidr.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/provisionByoipCidr.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 ProvisionByoipCidrRequest =
struct
type t =
{
cidr: String.t
[@ocaml.doc
"<p>The public IPv4 address range, in CIDR notation. The most specific prefix that you can specify is /24. The address ... | 40.769784 | 297 | 0.591142 |
4479c32e4b412767c26849e0d5fe3e2072d71f37 | 15,958 | ml | OCaml | hphp/hack/src/typing/nastInitCheck.ml | modyharshit23/hhvm | dc14931d80a49c60fac2365b92f3648e12d9b0f4 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/nastInitCheck.ml | modyharshit23/hhvm | dc14931d80a49c60fac2365b92f3648e12d9b0f4 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/nastInitCheck.ml | modyharshit23/hhvm | dc14931d80a49c60fac2365b92f3648e12d9b0f4 | [
"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 checking that all the class members are properly initialized.
* To be more precise, this checks that if t... | 28.64991 | 80 | 0.602143 |
4471efeda8ccd8a551e28f9ceca277f89fc357a4 | 257 | mli | OCaml | libraries/rds/lib/describeDBClusterParameterGroups.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/rds/lib/describeDBClusterParameterGroups.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/rds/lib/describeDBClusterParameterGroups.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | open Types_internal
type input = DescribeDBClusterParameterGroupsMessage.t
type output = DBClusterParameterGroupsMessage.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 36.714286 | 74 | 0.785992 |
447ad20f18048d3b64e4ebb6a4f507643d02e407 | 12,765 | ml | OCaml | vendor/core_kernel/iobuf/bench/bench_iobuf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/core_kernel/iobuf/bench/bench_iobuf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/core_kernel/iobuf/bench/bench_iobuf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open! Core_kernel
open! Iobuf
(* Minimal blit benchmarks. *)
(* ┌────────────────────────────────────────┬────────────┬────────────┐
* │ Name │ Time/Run │ Percentage │
* ├────────────────────────────────────────┼────────────┼────────────┤
* │ [iobuf.ml:Blit] string:5 ... | 44.947183 | 95 | 0.531845 |
44619b09fe58b5fdd318c0d8d34d280a2ea1a215 | 9,942 | mli | OCaml | src/proto_alpha/lib_protocol/tx_rollup_l2_apply.mli | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/tx_rollup_l2_apply.mli | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/tx_rollup_l2_apply.mli | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2022 Marigold <contact@marigold.dev> *)
... | 43.797357 | 80 | 0.658821 |
4444731ff5cf3c6b303ed6aed2eda4573b862aab | 365 | mli | OCaml | ch4/Counter.mli | klimisa/rwocaml | 606b835a72df3ba8f674bbfb11fde05eff184483 | [
"MIT"
] | null | null | null | ch4/Counter.mli | klimisa/rwocaml | 606b835a72df3ba8f674bbfb11fde05eff184483 | [
"MIT"
] | null | null | null | ch4/Counter.mli | klimisa/rwocaml | 606b835a72df3ba8f674bbfb11fde05eff184483 | [
"MIT"
] | null | null | null | open Core.Std
(** A collection of string frequency counts *)
type t
(** The empty set of frequency counts *)
val empty : t
(** Bump the frequency count of a given string *)
val touch : t -> string -> t
(** Converts the set of frequency to an associative list.
A string shows up at the most once, and the counts are >... | 24.333333 | 61 | 0.682192 |
8a68d166ff32bb3c0e73b7ae6ef2536eff227a25 | 4,452 | mli | OCaml | src/syntax/syntax.mli | Andromedans/andromeda | 761b0fd07cab5cbcf68a06e79b7f27301826ca82 | [
"BSD-2-Clause"
] | 210 | 2015-11-10T17:16:02.000Z | 2022-03-31T16:08:42.000Z | src/syntax/syntax.mli | anjapetkovic/andromeda | a5c678450e6c6d4a7cd5eee1196bde558541b994 | [
"BSD-2-Clause"
] | 244 | 2015-11-10T16:20:24.000Z | 2020-09-06T03:55:46.000Z | src/syntax/syntax.mli | anjapetkovic/andromeda | a5c678450e6c6d4a7cd5eee1196bde558541b994 | [
"BSD-2-Clause"
] | 20 | 2015-11-10T16:15:10.000Z | 2022-02-16T08:08:23.000Z | (** Runtime syntax, suitable for evaluation. *)
type ml_constructor = Ident.t
(** An operation is referred to by a unique identifier *)
type operation = Ident.t
(** An exception is referred to by a unique identifier *)
type ml_exception = Ident.t
(** An exception is referred to by a unique identifier *)
type exc = ... | 31.352113 | 80 | 0.716307 |
44630a29a3df9d3a09daf584a0dffdf87f0978f3 | 2,794 | ml | OCaml | src_top/herd_based/lib/symbConstant.ml | VarunKoyyalagunta/rmem | 9de95224f6293acb3cd6022471219a0a01b9b260 | [
"BSD-2-Clause"
] | 37 | 2019-01-14T13:08:24.000Z | 2022-02-14T20:57:12.000Z | src_top/herd_based/lib/symbConstant.ml | VarunKoyyalagunta/rmem | 9de95224f6293acb3cd6022471219a0a01b9b260 | [
"BSD-2-Clause"
] | 10 | 2019-07-26T09:34:35.000Z | 2021-12-31T20:17:32.000Z | src_top/herd_based/lib/symbConstant.ml | VarunKoyyalagunta/rmem | 9de95224f6293acb3cd6022471219a0a01b9b260 | [
"BSD-2-Clause"
] | 12 | 2019-02-13T17:50:41.000Z | 2021-12-31T19:08:00.000Z | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 36.763158 | 78 | 0.51539 |
4416e645a5e8102cca33ae2ad5e0f17577916642 | 3,738 | ml | OCaml | vendor/base/src/char.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/base/src/char.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/base/src/char.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open! Import
module Array = Array0
module String = String0
include Char0
module T = struct
type t = char [@@deriving_inline compare, hash, sexp, sexp_grammar]
let compare = (compare_char : t -> t -> int)
let (hash_fold_t : Ppx_hash_lib.Std.Hash.state -> t -> Ppx_hash_lib.Std.Hash.state) =
hash_fold_char
... | 25.256757 | 89 | 0.640182 |
448271fdaee6fc133951c87f1a341035003f5da6 | 122,350 | ml | OCaml | src/services/inference/types_js.ml | chicoxyzzy/flow | 7091387f0ff0574c4246930d31d12f6d89845d42 | [
"MIT"
] | null | null | null | src/services/inference/types_js.ml | chicoxyzzy/flow | 7091387f0ff0574c4246930d31d12f6d89845d42 | [
"MIT"
] | null | null | null | src/services/inference/types_js.ml | chicoxyzzy/flow | 7091387f0ff0574c4246930d31d12f6d89845d42 | [
"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 drives the type checker *)
open Utils_js
(****************** typecheck job helpers *********************)
let cle... | 39.827474 | 103 | 0.660703 |
af48d754fee6a01c014868dd67f2b2f19d329dcf | 159 | ml | OCaml | result/fixml/iter/sub49/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/iter/sub49/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/iter/sub49/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | let rec iter : int * (int -> int) -> int -> int =
fun (n, f) -> if n > 0 then iter (n - 1, fun x -> f x) else fun x -> x
let _ = iter (3, fun x -> 2 + x) 0
| 26.5 | 71 | 0.471698 |
44083b27ba55422f0a8517cb0561ab940dd1e07f | 368 | ml | OCaml | data/derived/comb/progs/unify/prog0273.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/prog0273.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0273.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec mulByDigit i l =
match List.rev l with
| [] -> []
| h::t ->
let f a x = a + x in
let base = 0 in
let rec helper acc v =
if v = 0 then acc else helper ((v mod 10) :: acc) (v / 10) in
helper []
[List.fold_left f base
((mulByDigit i (List.rev (List.map (fun... | 26.285714 | 71 | 0.453804 |
446571147a962f30dbb4f2b49b059234a192ef44 | 1,772 | ml | OCaml | benchmarks/C/diff/sol72.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/diff/sol73.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/diff/sol73.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
exception InvalidArgument
let rec diff (aexp, str) =
match aexp with
| Const(num) -> Const 0
| Var(str2)-> if str=str2 then Const 1 else Const 0
| Power(str2,num) -> if str=str2 then
if num=1 then Const... | 46.631579 | 87 | 0.562077 |
442bcbb7ff8ba350514410321932395524d67240 | 2,025 | ml | OCaml | src/proto_007_PsDELPH1/lib_protocol/tez_repr.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_007_PsDELPH1/lib_protocol/tez_repr.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_007_PsDELPH1/lib_protocol/tez_repr.ml | 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> *)
... | 57.857143 | 79 | 0.475556 |
8afe630ec575319beb5c67b4ea61c980600dcc63 | 76,873 | ml | OCaml | presentations/coq-workshop-2014-coq/interp/constrintern.ml | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/interp/constrintern.ml | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/interp/constrintern.ml | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | (************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2015 *)
(* \VV/ **************************************************************)
(* // * Th... | 39.83057 | 162 | 0.647991 |
444f7e289bca11ba3f37d4bae0fd6d9f534304af | 49,226 | ml | OCaml | src/core/Semantics.ml | jonsterling/cool-tt | 060eb034879a6e4fa17655feda2fd81a5a78cc9b | [
"MIT"
] | 14 | 2019-12-21T05:59:18.000Z | 2020-01-08T09:14:42.000Z | src/core/Semantics.ml | jonsterling/cool-tt | 060eb034879a6e4fa17655feda2fd81a5a78cc9b | [
"MIT"
] | 13 | 2019-12-21T22:24:08.000Z | 2020-01-08T16:24:02.000Z | src/core/Semantics.ml | jonsterling/cool-tt | 060eb034879a6e4fa17655feda2fd81a5a78cc9b | [
"MIT"
] | 1 | 2020-01-03T13:43:25.000Z | 2020-01-03T13:43:25.000Z | open Basis
open Bwd
open CodeUnit
module S = Syntax
module D = Domain
exception Todo
exception CJHM
exception CFHM
exception CCHM
exception NbeFailed of string
module Splice = Splice
module TB = TermBuilder
module CM = struct include Monads.CmpM include Monad.Notation (Monads.CmpM) module MU = Monad.Util (Monads.... | 29.529694 | 124 | 0.563605 |
af358b195bb27003e69960fab07395e01ac5af2b | 530 | mli | OCaml | src/varint.mli | XnuKernPoll/ocaml-varint | 3b1d28b35455a0a2001d7e526cc6ad6b992bdcd0 | [
"MIT"
] | 1 | 2020-09-11T23:25:53.000Z | 2020-09-11T23:25:53.000Z | src/varint.mli | XnuKernPoll/ocaml-varint | 3b1d28b35455a0a2001d7e526cc6ad6b992bdcd0 | [
"MIT"
] | null | null | null | src/varint.mli | XnuKernPoll/ocaml-varint | 3b1d28b35455a0a2001d7e526cc6ad6b992bdcd0 | [
"MIT"
] | 1 | 2020-09-11T23:25:57.000Z | 2020-09-11T23:25:57.000Z | type error = UnexpectedEof
module type S = sig
type t
val to_cstruct: t -> Cstruct.t
val of_cstruct: Cstruct.t -> (t * Cstruct.t, error) result
(**
put_uvarint buffer off int
be careful with this function be sure that the buffer has enough space
the max sizes for 64 bit is 10, 5 for ... | 16.5625 | 127 | 0.650943 |
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.