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
af06f157b15738688fbdafb0444c7b5d877042ef
6,886
ml
OCaml
interprocedural_analyses/taint/features.ml
fylux/pyre-check
a675dc272a973972544e595c567bf432993c2b3a
[ "MIT" ]
null
null
null
interprocedural_analyses/taint/features.ml
fylux/pyre-check
a675dc272a973972544e595c567bf432993c2b3a
[ "MIT" ]
null
null
null
interprocedural_analyses/taint/features.ml
fylux/pyre-check
a675dc272a973972544e595c567bf432993c2b3a
[ "MIT" ]
1
2021-02-20T13:09:30.000Z
2021-02-20T13:09:30.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 Core open Ast open Analysis open Pyre module First (Kind : sig val kind : string end) = struct type t = string [@@derivin...
30.878924
99
0.678333
af3f8341426959e12ddf20f53308e90674d6c8ac
567
ml
OCaml
lib/ocamlorg_web/config.ml
patricoferris/v3.ocaml.org-server
e0bcf10f0f14cb817addaa5f83d31ee7ebf3f951
[ "0BSD" ]
null
null
null
lib/ocamlorg_web/config.ml
patricoferris/v3.ocaml.org-server
e0bcf10f0f14cb817addaa5f83d31ee7ebf3f951
[ "0BSD" ]
null
null
null
lib/ocamlorg_web/config.ml
patricoferris/v3.ocaml.org-server
e0bcf10f0f14cb817addaa5f83d31ee7ebf3f951
[ "0BSD" ]
null
null
null
let env_with_default k v = Sys.getenv_opt k |> Option.value ~default:v let to_bool s = match String.lowercase_ascii s with "true" | "1" -> true | _ -> false let debug = to_bool @@ env_with_default "OCAMLORG_DEBUG" "true" let port = env_with_default "PORT" "8080" |> int_of_string let secret_key = env_with_defaul...
31.5
80
0.758377
f31bd2c92eb0f532366e6eeaa2b938b12dbf475e
851
ml
OCaml
lib/tracing/src/queue_to_spans.ml
quantum5/magic-trace
ed72f21fa05df2192299bb6a958f1a22b2d6cf1e
[ "MIT" ]
206
2022-01-27T19:22:42.000Z
2022-03-31T22:23:18.000Z
lib/tracing/src/queue_to_spans.ml
quantum5/magic-trace
ed72f21fa05df2192299bb6a958f1a22b2d6cf1e
[ "MIT" ]
58
2022-01-28T08:10:14.000Z
2022-03-31T23:54:26.000Z
lib/tracing/src/queue_to_spans.ml
quantum5/magic-trace
ed72f21fa05df2192299bb6a958f1a22b2d6cf1e
[ "MIT" ]
12
2022-01-28T10:00:28.000Z
2022-03-31T18:26:51.000Z
open! Core type t = { mutable last_output : Time_ns.Span.t } let create () = { last_output = Time_ns.Span.zero } let event_start t ~output_time ?input_time () = let input_time = match input_time with (* Use 0-duration slice if no input time *) | None -> output_time (* We might have queuing, each me...
37
88
0.701528
af5fb6765c493dd2fca5c6ea187063a3b0cbb917
183
ml
OCaml
tests/benchmarks/r_type/first/copy_intro.ml
LinerSu/DART_IT
2bdd046f912d761278ee7387f487a2809053220e
[ "BSD-3-Clause" ]
7
2020-06-12T09:32:16.000Z
2020-10-05T09:04:07.000Z
tests/benchmarks/r_type/first/copy_intro.ml
nyu-acsys/drift2
2bdd046f912d761278ee7387f487a2809053220e
[ "BSD-3-Clause" ]
null
null
null
tests/benchmarks/r_type/first/copy_intro.ml
nyu-acsys/drift2
2bdd046f912d761278ee7387f487a2809053220e
[ "BSD-3-Clause" ]
2
2021-04-05T12:25:11.000Z
2021-05-14T09:31:24.000Z
(* USED: PEPM2013 as copy_intro *) let rec copy (x:int) = if x = 0 then 0 else 1 + copy (x - 1) let main (n:int(*-:{v:Int | true}*)) = assert (copy (copy n) = n)
16.636364
38
0.508197
af22e32de56c377c7449b831766555e2199c76f7
11,048
ml
OCaml
hphp/hack/src/stubs/logging/hackEventLogger.ml
josedelacerda835/https-github.com-facebook-hhvm
89c590d114c9f62bc374422e3663a1cf4dd75c6b
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/stubs/logging/hackEventLogger.ml
josedelacerda835/https-github.com-facebook-hhvm
89c590d114c9f62bc374422e3663a1cf4dd75c6b
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/stubs/logging/hackEventLogger.ml
josedelacerda835/https-github.com-facebook-hhvm
89c590d114c9f62bc374422e3663a1cf4dd75c6b
[ "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 serialized_globals = Serialized_globals let serialize_globals () = Serialized_globals type rollout_flags = { ...
20.383764
80
0.710807
f3f9346f25df96df7b88ec2e734ea74dc9dec593
3,751
mli
OCaml
src/git/sync.mli
patricoferris/ocaml-git
8ddb937e4888151dc639200f548b9494354f0a57
[ "0BSD" ]
null
null
null
src/git/sync.mli
patricoferris/ocaml-git
8ddb937e4888151dc639200f548b9494354f0a57
[ "0BSD" ]
null
null
null
src/git/sync.mli
patricoferris/ocaml-git
8ddb937e4888151dc639200f548b9494354f0a57
[ "0BSD" ]
null
null
null
(* * Copyright (c) 2013-2017 Thomas Gazagnaire <thomas@gazagnaire.org> * and Romain Calascibetta <romain.calascibetta@gmail.com> * * 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...
33.792793
82
0.639296
f34ef75adea7e9cc1ebe6323e68b4609bf6465f1
2,539
ml
OCaml
src/lib/signature_lib/private_key.ml
basicbang0x/coda
b6ec7573036d7ac6493125a74a85f3775fa0deaa
[ "Apache-2.0" ]
1
2020-05-05T07:31:26.000Z
2020-05-05T07:31:26.000Z
src/lib/signature_lib/private_key.ml
kunxian-xia/coda
93295e8b4db5f4f2d192a26f90146bf322808ef8
[ "Apache-2.0" ]
null
null
null
src/lib/signature_lib/private_key.ml
kunxian-xia/coda
93295e8b4db5f4f2d192a26f90146bf322808ef8
[ "Apache-2.0" ]
null
null
null
[%%import "../../config.mlh"] open Core_kernel open Async_kernel open Snark_params open Module_version [%%versioned_asserted module Stable = struct module V1 = struct type t = Tick.Inner_curve.Scalar.t [@@deriving sexp] let to_latest = Fn.id let to_yojson t = `String (Tick.Inner_curve.Scalar.to_string...
27.301075
138
0.689248
f360eec464fe2eb755b9678a0050365077fa74ed
10,727
ml
OCaml
src/xref2/find.ml
daimrod/odoc
8ad7cd5d1c9cf26adce61f0c2f86750efd937bba
[ "ISC" ]
null
null
null
src/xref2/find.ml
daimrod/odoc
8ad7cd5d1c9cf26adce61f0c2f86750efd937bba
[ "ISC" ]
null
null
null
src/xref2/find.ml
daimrod/odoc
8ad7cd5d1c9cf26adce61f0c2f86750efd937bba
[ "ISC" ]
null
null
null
open Odoc_model.Names open Component type module_ = [ `FModule of ModuleName.t * Module.t ] type module_type = [ `FModuleType of ModuleTypeName.t * ModuleType.t ] type datatype = [ `FType of TypeName.t * TypeDecl.t ] type class_ = [ `FClass of ClassName.t * Class.t | `FClassType of ClassTypeName.t * ClassType.t...
33.210526
103
0.631397
f34e7234ba7a19d101db3e40e57bf214ee5c5b33
6,979
ml
OCaml
src/number.ml
kunxian-xia/snarky
d2b475c55a15da933a6ddff2e6218b89bacccf57
[ "MIT" ]
null
null
null
src/number.ml
kunxian-xia/snarky
d2b475c55a15da933a6ddff2e6218b89bacccf57
[ "MIT" ]
null
null
null
src/number.ml
kunxian-xia/snarky
d2b475c55a15da933a6ddff2e6218b89bacccf57
[ "MIT" ]
null
null
null
module Bignum_bigint = Bigint open Core_kernel let pow2 n = Bignum_bigint.(pow (of_int 2) (of_int n)) let bigint_num_bits = let rec go acc i = if Bignum_bigint.(acc = zero) then i else go (Bignum_bigint.shift_right acc 1) (i + 1) in fun n -> go n 0 module Make (Impl : Snark_intf.Basic) = struct open ...
28.369919
84
0.600373
af5efa34ec9cbca73943351090ecf7a8c9fcc86f
89
ml
OCaml
data/derived/comb/progs/unify/prog6361.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/prog1516.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/fa15/progs/unify/prog1516.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let pipe fs = let f a x n = n a (a x) in let base f = f in List.fold_left f base fs;;
22.25
73
0.595506
f3e5d02a9ea48c91a921ae92a260b108c1492eea
4,838
ml
OCaml
src/core/DomainData.ml
clayrat/cooltt
b3e6246169e2118aade43d582f0c5ecb1ea9625d
[ "Apache-2.0" ]
null
null
null
src/core/DomainData.ml
clayrat/cooltt
b3e6246169e2118aade43d582f0c5ecb1ea9625d
[ "Apache-2.0" ]
null
null
null
src/core/DomainData.ml
clayrat/cooltt
b3e6246169e2118aade43d582f0c5ecb1ea9625d
[ "Apache-2.0" ]
null
null
null
open Basis open Cubical open Bwd module Make (Symbol : Symbol.S) = struct module S = Syntax.Make(Symbol) type dim = Dim.t type cof = (dim, int) Cof.cof (** A type code whose head constructor is stable under dimension substitution. *) type 'a stable_code = [ `Pi of 'a * 'a (** Dependent product type...
31.415584
345
0.626085
f3eca418ff95ffd0e927b9fb6994c594e9d3e100
1,419
mli
OCaml
presentations/coq-workshop-2014-coq/lib/remoteCounter.mli
JasonGross/test-broken-tar
6b52b8532879df53386b0f5413485888a1aa886a
[ "MIT" ]
null
null
null
presentations/coq-workshop-2014-coq/lib/remoteCounter.mli
JasonGross/test-broken-tar
6b52b8532879df53386b0f5413485888a1aa886a
[ "MIT" ]
null
null
null
presentations/coq-workshop-2014-coq/lib/remoteCounter.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...
47.3
79
0.569415
af2b8547fd30cbd7dcdc15ca0103735a7faa233f
44,784
ml
OCaml
src/lib_p2p/p2p_pool.ml
mengerhq/tezos
9bc9768e17bdd04dfe508e517cdb0858236a7a29
[ "MIT" ]
null
null
null
src/lib_p2p/p2p_pool.ml
mengerhq/tezos
9bc9768e17bdd04dfe508e517cdb0858236a7a29
[ "MIT" ]
null
null
null
src/lib_p2p/p2p_pool.ml
mengerhq/tezos
9bc9768e17bdd04dfe508e517cdb0858236a7a29
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *) ...
37.382304
95
0.645364
f37a5c133e54cdef93c21c3df900cd05f74bb9b6
34,052
ml
OCaml
upstream/ocaml_405/typing/typetexp.ml
rvantonder/merlin
09d6b2762f0be7129decae97bc2d87fc854bbbce
[ "MIT" ]
961
2020-09-15T11:01:50.000Z
2022-03-26T00:25:17.000Z
upstream/ocaml_405/typing/typetexp.ml
rvantonder/merlin
09d6b2762f0be7129decae97bc2d87fc854bbbce
[ "MIT" ]
83
2020-09-27T18:51:24.000Z
2022-03-08T10:57:53.000Z
upstream/ocaml_405/typing/typetexp.ml
rvantonder/merlin
09d6b2762f0be7129decae97bc2d87fc854bbbce
[ "MIT" ]
26
2020-10-13T10:39:13.000Z
2021-12-07T04:57:33.000Z
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
37.093682
80
0.596705
f35bb80015ad919c3e9265168e614a3ca2c0030e
793
mli
OCaml
src/fsmonitor/watchercommon.mli
paulp/unison
1bece7bf3b8f6ee62c64a0aa4e0045a6dbdd7eb2
[ "MIT" ]
2
2016-03-17T02:42:43.000Z
2016-03-17T13:59:31.000Z
src/fsmonitor/watchercommon.mli
paulp/unison
1bece7bf3b8f6ee62c64a0aa4e0045a6dbdd7eb2
[ "MIT" ]
null
null
null
src/fsmonitor/watchercommon.mli
paulp/unison
1bece7bf3b8f6ee62c64a0aa4e0045a6dbdd7eb2
[ "MIT" ]
null
null
null
val debug : bool ref val error : string -> 'a val format_exc : exn -> string exception Already_lost module StringMap : Map.S with type key = string module F (M : sig type watch end) : sig type t val get_id : t -> int val get_watch : t -> M.watch option val set_watch : t -> M.watch option -> unit val ge...
20.868421
61
0.626734
af2fd602471afd6d76a199298b3e4db516562913
53
ml
OCaml
vendor/ppx_hash/runtime-lib/src/ppx_hash_lib.ml
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
13
2016-07-06T07:37:18.000Z
2022-01-23T02:28:33.000Z
vendor/ppx_hash/runtime-lib/src/ppx_hash_lib.ml
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
3
2016-09-21T14:52:21.000Z
2022-03-06T19:13:17.000Z
vendor/ppx_hash/runtime-lib/src/ppx_hash_lib.ml
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
5
2016-07-15T09:35:03.000Z
2021-12-17T02:46:32.000Z
include Base.Exported_for_specific_uses.Ppx_hash_lib
26.5
52
0.924528
f36467eda7c212e0fa09f9dc14f0a45d56a5e99d
5,110
ml
OCaml
generator/stdlib_ml/stdlib.ml
Docteur-Lalla/jsexplain
b9b0d46fdd39fa566a3e4f8a13ac4c0af1bd0f34
[ "Apache-2.0" ]
1
2019-03-26T11:02:11.000Z
2019-03-26T11:02:11.000Z
generator/stdlib_ml/stdlib.ml
Docteur-Lalla/mlexplain
b9b0d46fdd39fa566a3e4f8a13ac4c0af1bd0f34
[ "Apache-2.0" ]
null
null
null
generator/stdlib_ml/stdlib.ml
Docteur-Lalla/mlexplain
b9b0d46fdd39fa566a3e4f8a13ac4c0af1bd0f34
[ "Apache-2.0" ]
1
2017-06-21T06:54:54.000Z
2017-06-21T06:54:54.000Z
(** OCaml Compatibility Wrapper for the Js_of_ocaml bis Standard Library This implementation of the library permits programs designed to be compiled with the limited standard library of Js_of_ocaml bis to be compiled against the OCaml standard library for native/bytecode targets. This file is to be compiled with the ...
27.771739
79
0.684149
f3e45bd5bc372af3464a1a6173a00dac02a8a31a
14,637
mll
OCaml
tools/lexLog_tools.mll
ShuyangLiu/herdtools7
babe12b2aa635bdcb8ebe8c389268cadf0ac5f1d
[ "CECILL-B" ]
null
null
null
tools/lexLog_tools.mll
ShuyangLiu/herdtools7
babe12b2aa635bdcb8ebe8c389268cadf0ac5f1d
[ "CECILL-B" ]
null
null
null
tools/lexLog_tools.mll
ShuyangLiu/herdtools7
babe12b2aa635bdcb8ebe8c389268cadf0ac5f1d
[ "CECILL-B" ]
null
null
null
(****************************************************************************) (* the diy toolsuite *) (* *) (* Jade Alglave, University College London, UK. *) (* L...
32.599109
89
0.573137
af316fa683c84db94733936566007226c16dab57
6,868
ml
OCaml
hphp/hack/src/server/findRefsService.ml
hkirsman/hhvm_centos7_builds
2a1fd6de0d2d289c1575f43f10018f3bec23bb13
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/server/findRefsService.ml
hkirsman/hhvm_centos7_builds
2a1fd6de0d2d289c1575f43f10018f3bec23bb13
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/server/findRefsService.ml
hkirsman/hhvm_centos7_builds
2a1fd6de0d2d289c1575f43f10018f3bec23bb13
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(** * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the "hack" directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * *) open Core ope...
35.402062
81
0.702679
f36e564718382da1f0a5367158c0b4034e77d3d2
2,275
ml
OCaml
version_util/test/check_build_info.ml
Gopiandcode/core_kernel
fab2048ede720205e65f1831d07e2b28524166c7
[ "MIT" ]
187
2015-01-02T03:14:37.000Z
2021-12-17T02:52:27.000Z
version_util/test/check_build_info.ml
Gopiandcode/core_kernel
fab2048ede720205e65f1831d07e2b28524166c7
[ "MIT" ]
84
2015-01-07T10:21:02.000Z
2021-11-10T05:55:37.000Z
version_util/test/check_build_info.ml
Gopiandcode/core_kernel
fab2048ede720205e65f1831d07e2b28524166c7
[ "MIT" ]
65
2015-02-01T11:01:32.000Z
2021-12-17T02:53:15.000Z
open! Core (* build_info is not available when building tests. This test makes sure that one can parse the default value of build_info *) let%test_unit _ = assert (String.( = ) Version_util.ocaml_version "") open Version_util let%expect_test "Version.parse*" = let line1 = "ssh://repo_1_04ce83e21002" in let li...
37.295082
91
0.65978
d2e72d2ce5aba3f3adf4b8178dc0d592a67f0411
29,096
ml
OCaml
src/dune_rules/expander.ml
hyphenrf/dune
0ecdf454ea4db89453b26a6b73cf96506697b4ac
[ "MIT" ]
null
null
null
src/dune_rules/expander.ml
hyphenrf/dune
0ecdf454ea4db89453b26a6b73cf96506697b4ac
[ "MIT" ]
null
null
null
src/dune_rules/expander.ml
hyphenrf/dune
0ecdf454ea4db89453b26a6b73cf96506697b4ac
[ "MIT" ]
null
null
null
open! Dune_engine open Import open Action_builder.O type any_package = | Local of Package.t | Installed of Dune_package.t module Expanding_what = struct type t = | Nothing_special | Deps_like_field | User_action of Path.Build.t Targets_spec.t | User_action_without_targets of { what : string } en...
35.876695
80
0.561005
f32e11d78033011c373203f6f16f50b0561495c1
457
ml
OCaml
src/lwt-tls/conduit_lwt_tls.ml
xclerc/ocaml-conduit
1ebbd6119b3b580d5e073d553e41ef5140bfc79c
[ "ISC" ]
null
null
null
src/lwt-tls/conduit_lwt_tls.ml
xclerc/ocaml-conduit
1ebbd6119b3b580d5e073d553e41ef5140bfc79c
[ "ISC" ]
null
null
null
src/lwt-tls/conduit_lwt_tls.ml
xclerc/ocaml-conduit
1ebbd6119b3b580d5e073d553e41ef5140bfc79c
[ "ISC" ]
null
null
null
include Conduit_tls.Make (Conduit_lwt.IO) (Conduit_lwt) let () = Mirage_crypto_rng_lwt.initialize () module TCP = struct open Conduit_lwt.TCP let protocol = protocol_with_tls protocol include (val Conduit_lwt.repr protocol) let service = service_with_tls service protocol let resolve ~port ~config domain...
22.85
55
0.726477
d2de9c22d7eb9a29ac97bf8c12ae0e648d083313
1,910
mli
OCaml
code/src/netmulticore/netmcore_mutex.mli
UnixJunkie/ocamlnet
81282279d073a85e3ed6e8b7030710ed9b7b2d02
[ "BSD-3-Clause" ]
null
null
null
code/src/netmulticore/netmcore_mutex.mli
UnixJunkie/ocamlnet
81282279d073a85e3ed6e8b7030710ed9b7b2d02
[ "BSD-3-Clause" ]
null
null
null
code/src/netmulticore/netmcore_mutex.mli
UnixJunkie/ocamlnet
81282279d073a85e3ed6e8b7030710ed9b7b2d02
[ "BSD-3-Clause" ]
null
null
null
(* $Id$ *) (** Mutexes *) (** Mutexes are here defined as values that reside in shared heaps ({!Netmcore_heap}), for example in the header field of {!Netmcore_array} or somewhere else in heap-allocated data structures. In order to ensure that the mutex is in the heap, the special function [creat...
31.311475
71
0.687435
af39ca271c12d726f53fc2306fde0bf732b2d287
2,497
ml
OCaml
src/Webpack/WebpackChunk.ml
Whoaa512/webpack-stats-explorer
b302c1a4a97919555a5058c1449a796254400cce
[ "MIT" ]
null
null
null
src/Webpack/WebpackChunk.ml
Whoaa512/webpack-stats-explorer
b302c1a4a97919555a5058c1449a796254400cce
[ "MIT" ]
null
null
null
src/Webpack/WebpackChunk.ml
Whoaa512/webpack-stats-explorer
b302c1a4a97919555a5058c1449a796254400cce
[ "MIT" ]
null
null
null
type t = { childrenByOrder : string Js.Dict.t ; entry : bool ; files : string list ; filteredModules : int ; hash : string ; id : string ; initial : bool ; modules : WebpackModule.t list ; names : string list ; origins : WebpackOrigin.t list ; parents : int list ; rendered : bool ; siblings : ...
24.722772
69
0.59992
f3ffd66697658a40c9710b1ae91dddee27d09552
195,426
ml
OCaml
test/model/semantics/test.ml
giltho/odoc
816710ac528b910d18f6bf661fe998ce0856508c
[ "ISC" ]
41
2016-06-15T14:19:05.000Z
2018-03-18T06:40:36.000Z
test/model/semantics/test.ml
giltho/odoc
816710ac528b910d18f6bf661fe998ce0856508c
[ "ISC" ]
103
2016-08-07T21:51:04.000Z
2018-03-20T23:26:33.000Z
test/model/semantics/test.ml
giltho/odoc
816710ac528b910d18f6bf661fe998ce0856508c
[ "ISC" ]
7
2016-12-12T14:38:12.000Z
2018-03-18T06:40:38.000Z
open Odoc_model open Odoc_model_desc type sections_allowed = [ `All | `No_titles | `None ] let warning_desc = Type_desc.To_string Error.to_string let parser_output_desc = let open Type_desc in Indirect ( Error.unpack_warnings, Record [ F ("value", fst, Indirect (fst, Comment_desc.docs...
27.19538
192
0.346213
af5a73c63835fc2786b3ca2d3c649db51b5f2116
25,393
mli
OCaml
hphp/hack/src/options/globalOptions.mli
Seanpm2001-languages/hhvm
4685a57b633609727c9755efe6d647aebf91ea77
[ "PHP-3.01", "Zend-2.0" ]
1
2021-05-15T22:07:47.000Z
2021-05-15T22:07:47.000Z
hphp/hack/src/options/globalOptions.mli
seanwallawalla-forks/hhvm
4685a57b633609727c9755efe6d647aebf91ea77
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/options/globalOptions.mli
seanwallawalla-forks/hhvm
4685a57b633609727c9755efe6d647aebf91ea77
[ "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. * *) (* Naming conventions in this file: - tco_<feature/flag/setting> - type checker option - po_<feature/flag/settin...
35.764789
121
0.763518
f3b386b105c46adb9d9f53551da5713f5b6b7710
5,228
ml
OCaml
src/lib_requester/requester_impl.ml
bikallem/tezos
34eb0fd5cb977cc04c3648d91d16e6210de8c8e3
[ "MIT" ]
8
2021-11-02T13:06:58.000Z
2021-11-18T19:07:33.000Z
src/lib_requester/requester_impl.ml
bikallem/tezos
34eb0fd5cb977cc04c3648d91d16e6210de8c8e3
[ "MIT" ]
14
2020-05-07T15:51:28.000Z
2022-02-06T10:11:51.000Z
src/lib_requester/requester_impl.ml
bikallem/tezos
34eb0fd5cb977cc04c3648d91d16e6210de8c8e3
[ "MIT" ]
3
2021-01-06T00:06:10.000Z
2021-05-31T18:07:55.000Z
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2021 Nomadic Labs, <contact@nomadic-labs.com> *) ...
38.441176
80
0.603864
af654603002f9cd1099fdbc678e810648422599b
47,353
ml
OCaml
source/ast/expression.ml
0xedward/pyre-check
dcfe8f45e40f235b49b5d04ed826433e0808f168
[ "MIT" ]
5,975
2018-05-11T15:54:32.000Z
2022-03-31T14:38:00.000Z
source/ast/expression.ml
yuhan1212/pyre-check
37a3fcb4dec517c37f381743bac8f8a269218f8c
[ "MIT" ]
524
2018-05-11T16:47:20.000Z
2022-03-22T17:43:06.000Z
source/ast/expression.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 Core open Sexplib.Std open Pyre module StringLiteral = struct type kind = | String | Bytes [@@deriving compare, e...
31.90903
101
0.643148
f3d9d948fe34aff1d564fcd833a7234d5a28ee2c
3,635
ml
OCaml
lib/kernel/checker.ml
jdrprod/lili
74c0acd8158f22ed21df0047c5f4342215217489
[ "MIT" ]
5
2021-03-24T09:11:15.000Z
2021-03-25T08:36:45.000Z
lib/kernel/checker.ml
jdrprod/lili
74c0acd8158f22ed21df0047c5f4342215217489
[ "MIT" ]
null
null
null
lib/kernel/checker.ml
jdrprod/lili
74c0acd8158f22ed21df0047c5f4342215217489
[ "MIT" ]
null
null
null
open Term open Option open Unification type type_env = (string * ptype) list type error = | Bad_type of ptype | Not_typable | Overwrite | Unification let new_env = [ "case", (ge "A" @@ ge "P") @@ ((ge "B" @@ ge "P") @@ ((T_or (ge "A", ge "B")) @@ ge "P")); "or_l", (ge "A" @@ (T_or (ge "A", ge "B"))); "...
32.455357
122
0.570014
f3a7ccca140d99fc1cc899ed952f870dc109c641
470
ml
OCaml
test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/typing-polyvariants-bugs-2/pr3918c.ml
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
2
2021-03-03T15:31:36.000Z
2021-03-05T16:01:39.000Z
test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/typing-polyvariants-bugs-2/pr3918c.ml
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
2
2021-03-03T16:08:23.000Z
2021-03-03T19:31:03.000Z
test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/typing-polyvariants-bugs-2/pr3918c.ml
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
null
null
null
(* TEST files = "pr3918a.mli pr3918b.mli" * setup-ocamlc.byte-build-env ** ocamlc.byte module = "pr3918a.mli" *** ocamlc.byte module = "pr3918b.mli" **** script script = "rm -f pr3918a.cmi" ***** ocamlc.byte module = "pr3918c.ml" ocamlc_byte_exit_status = "2" ***** check-ocamlc.byte-output *) (* ocamlc -c pr3918a.ml...
18.076923
37
0.642553
af5af5c8fb9ebef2a40101dc0c3796346874a8a4
10,922
ml
OCaml
source/ast/source.ml
dmitryvinn/pyre-check-1
b5e7c164397825ac32851bfe79a6f1a03399ed4c
[ "MIT" ]
1
2022-02-10T10:51:32.000Z
2022-02-10T10:51:32.000Z
source/ast/source.ml
dmitryvinn/pyre-check-1
b5e7c164397825ac32851bfe79a6f1a03399ed4c
[ "MIT" ]
null
null
null
source/ast/source.ml
dmitryvinn/pyre-check-1
b5e7c164397825ac32851bfe79a6f1a03399ed4c
[ "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 Core open Pyre type mode = | Debug | Strict | Unsafe | Declare [@@deriving compare, show, sexp, hash] type local_m...
35.232258
100
0.634682
d2e500aa4449b0a391f2c43e8857d14fd0f84d88
6,109
ml
OCaml
src/stages/common/types.ml
Zett98/ligolang
5217d4afa1f88401b3880c59aa553cd3aba3d627
[ "MIT" ]
1
2021-11-12T11:41:16.000Z
2021-11-12T11:41:16.000Z
src/stages/common/types.ml
Zett98/ligolang
5217d4afa1f88401b3880c59aa553cd3aba3d627
[ "MIT" ]
4
2021-11-10T15:04:00.000Z
2022-01-14T07:49:14.000Z
src/stages/common/types.ml
Zett98/ligolang
5217d4afa1f88401b3880c59aa553cd3aba3d627
[ "MIT" ]
1
2022-03-30T09:12:37.000Z
2022-03-30T09:12:37.000Z
include Enums module SMap = Map.Make(String) type location = Location.t type 'a location_wrap = 'a Location.wrap type attributes = string list type expression_ and expression_variable = expression_ Var.t Location.wrap let expression_variable_to_yojson var = Location.wrap_to_yojson (Var.to_yojson) var let expression...
23.140152
103
0.668686
af2c8e81e4bd41a573db52fe1a3d1b0a17faee32
629
ml
OCaml
benchmarks/list/maxcount.ml
victornicolet/atropos
86a96d263f49c1eccd8f584d624de119180e0eea
[ "MIT" ]
3
2021-05-03T16:20:32.000Z
2021-05-14T19:59:51.000Z
benchmarks/list/maxcount.ml
victornicolet/Synduce
86a96d263f49c1eccd8f584d624de119180e0eea
[ "MIT" ]
null
null
null
benchmarks/list/maxcount.ml
victornicolet/Synduce
86a96d263f49c1eccd8f584d624de119180e0eea
[ "MIT" ]
1
2021-05-12T15:14:40.000Z
2021-05-12T15:14:40.000Z
type 'a clist = Single of 'a | Concat of 'a clist * 'a clist type 'a list = Elt of 'a | Cons of 'a * 'a list let rec maxcount = function | Elt a -> (a, 1) | Cons (hd, tl) -> let amax, acnt = maxcount tl in (max amax hd, if hd > amax then 1 else acnt + if hd = amax then 1 else 0) let rec clist_to_list...
29.952381
95
0.593005
f3f3da57641b3fce68b2ab407c75a3baf8ac8f15
52
mli
OCaml
vendor/core_kernel/total_map/src/enumeration.mli
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
187
2015-01-02T03:14:37.000Z
2021-12-17T02:52:27.000Z
vendor/core_kernel/total_map/src/enumeration.mli
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
84
2015-01-07T10:21:02.000Z
2021-11-10T05:55:37.000Z
vendor/core_kernel/total_map/src/enumeration.mli
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
65
2015-02-01T11:01:32.000Z
2021-12-17T02:53:15.000Z
include Enumeration_intf.Enumeration (** @inline *)
26
51
0.769231
f35dbe6c6794cf27441327803a3e318398ff1045
11,724
ml
OCaml
hphp/hack/src/client/clientCheck.ml
geraldvillorente/hhvm
cf047fe5c43aa7133ce5703d883251a3da486821
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/client/clientCheck.ml
geraldvillorente/hhvm
cf047fe5c43aa7133ce5703d883251a3da486821
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/client/clientCheck.ml
geraldvillorente/hhvm
cf047fe5c43aa7133ce5703d883251a3da486821
[ "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. * *) open ClientEn...
35.853211
152
0.628199
f388a811d8e1789de2fe57c904bd2ca2320ca628
661
ml
OCaml
data/derived/comb/progs/unify/prog4176.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/prog4176.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog4176.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 s1 = List.length l1 in let s2 = List.length l2 in if s1 < s2 then (((clone 0 (s2 - s1)) @ l1), l2) else if s2 < s1 then (l1, ((clone 0 (s1 - s2)) @ l2)) else (l1, l2);; let rec removeZero l = match l with | [] -> ...
31.47619
77
0.529501
f3e8a13e1a738818adcbca70f29cbc75556add7c
2,225
mli
OCaml
src/dune_engine/sandbox_mode.mli
mbacarella/dune
cccfca1a80963c7582e55047fd5c8413c703c329
[ "MIT" ]
null
null
null
src/dune_engine/sandbox_mode.mli
mbacarella/dune
cccfca1a80963c7582e55047fd5c8413c703c329
[ "MIT" ]
null
null
null
src/dune_engine/sandbox_mode.mli
mbacarella/dune
cccfca1a80963c7582e55047fd5c8413c703c329
[ "MIT" ]
null
null
null
(** How to sandbox actions *) (** This module describes the method used to sandbox actions. Choices include: - not sandboxing - sandboxing by symlinking dependencies - sandboxing by copying dependencies - sandboxing by hardlinking dependencies - sandboxing by copying dependencies, detecting change...
22.474747
79
0.66427
f3285e648fe06200b71376fe8a96d5f68f1cba6b
16,258
ml
OCaml
src/utils/hh_json/hh_json.ml
UnixJunkie/hack-parallel
ca3f7fa590dad7c513568c0bcc789adaeb6eab9f
[ "MIT" ]
null
null
null
src/utils/hh_json/hh_json.ml
UnixJunkie/hack-parallel
ca3f7fa590dad7c513568c0bcc789adaeb6eab9f
[ "MIT" ]
null
null
null
src/utils/hh_json/hh_json.ml
UnixJunkie/hack-parallel
ca3f7fa590dad7c513568c0bcc789adaeb6eab9f
[ "MIT" ]
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 root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * *) (** * Hh_json p...
27.006645
80
0.610038
f3ea00d4b5cb4ac9568d2a483dd800755aebe42d
12,938
ml
OCaml
bin/carton/index_pack.ml
patricoferris/ocaml-git
8ddb937e4888151dc639200f548b9494354f0a57
[ "0BSD" ]
null
null
null
bin/carton/index_pack.ml
patricoferris/ocaml-git
8ddb937e4888151dc639200f548b9494354f0a57
[ "0BSD" ]
null
null
null
bin/carton/index_pack.ml
patricoferris/ocaml-git
8ddb937e4888151dc639200f548b9494354f0a57
[ "0BSD" ]
null
null
null
open Rresult let ( <.> ) f g x = f (g x) let verbosef max ppf fmt = let counter = ref 0 in let mutex = Mutex.create () in fun () -> Mutex.lock mutex; Format.fprintf ppf fmt (!counter * 100 / max) !counter max; incr counter; Mutex.unlock mutex module Scheduler = Carton.Make (Fiber) open Schedule...
32.024752
89
0.609909
f3fa5ca0c21b07ef9b6a8e07671fcec70f2351c1
378
ml
OCaml
src/util.ml
mattdamon108/res_tailwindcss
407562ea566ff0e00e6a9cbfbb92ad386e1029bf
[ "MIT" ]
7
2021-12-29T12:12:24.000Z
2022-02-23T12:38:32.000Z
src/util.ml
mattdamon108/res_tailwindcss
407562ea566ff0e00e6a9cbfbb92ad386e1029bf
[ "MIT" ]
10
2021-12-29T17:54:45.000Z
2022-03-25T02:40:48.000Z
src/util.ml
mattdamon108/res_tailwindcss
407562ea566ff0e00e6a9cbfbb92ad386e1029bf
[ "MIT" ]
3
2021-12-31T16:51:55.000Z
2022-01-16T12:21:50.000Z
open Core let rec find_project_root dir = let bsconfig = "bsconfig.json" in match Filename.concat dir bsconfig |> Sys.file_exists with | `Yes -> Ok dir | `Unknown -> Error "can't find the project root" | `No -> let parent = dir |> Filename.dirname in if String.equal parent dir then Error "can't f...
31.5
73
0.687831
af2a3a296d2c184be6a946e4eb12c462bf5adcc7
414
mli
OCaml
tool/error.mli
HarryGifford/AlphaCaml
634d0a04fa90a5b8512876c770584a9a4c8615ac
[ "BSD-3-Clause" ]
null
null
null
tool/error.mli
HarryGifford/AlphaCaml
634d0a04fa90a5b8512876c770584a9a4c8615ac
[ "BSD-3-Clause" ]
null
null
null
tool/error.mli
HarryGifford/AlphaCaml
634d0a04fa90a5b8512876c770584a9a4c8615ac
[ "BSD-3-Clause" ]
null
null
null
(* This module helps report errors and maintains some information about the source file that is being read. *) val filename: string option ref val verbose: bool ref val error1: Lexing.position -> string -> 'a val error2: Lexing.position -> Lexing.position -> string -> 'a val signal2: Lexing.position -> Lexing.p...
23
65
0.731884
d2f073614be0a67cc02e076ddb483f25f299271e
17,252
mli
OCaml
hphp/hack/src/typing/typing_defs_core.mli
jackwiy/hhvm
70a29c50903371ed3ab1d085ee03350e0982ed49
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/typing_defs_core.mli
jackwiy/hhvm
70a29c50903371ed3ab1d085ee03350e0982ed49
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/typing_defs_core.mli
jackwiy/hhvm
70a29c50903371ed3ab1d085ee03350e0982ed49
[ "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 Reason = Typing_reason module SN = Naming_special_names type visibility = | Vpublic | Vprivate of string...
34.993915
90
0.694586
f3b05fbf5dcc5b15dd370c98b1e5406280eaabf4
1,965
ml
OCaml
2008math4.ml
zettsu-t/examQuestions
f0481b33b0b5f11cc895b5430160c521f08ef998
[ "MIT" ]
null
null
null
2008math4.ml
zettsu-t/examQuestions
f0481b33b0b5f11cc895b5430160c521f08ef998
[ "MIT" ]
null
null
null
2008math4.ml
zettsu-t/examQuestions
f0481b33b0b5f11cc895b5430160c521f08ef998
[ "MIT" ]
null
null
null
let opToChar op = match op with | 0 -> "+" | _ -> "*";; let opsToString ops = List.map (fun x -> opToChar x) ops;; let numsToString nums = List.map (fun x -> string_of_int x) nums;; let zipLists nums ops = List.combine (numsToString nums) (opsToString ops);; let tailExpr nums ops = List.fold_right (fun (x,y)...
51.710526
119
0.658015
f32f6cf52ab0953eddf66c604862420a890f651f
81
ml
OCaml
data/derived/comb/progs/unify/prog2867.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/prog2867.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog2867.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let rec listReverse l = match l with | [] -> [l] | h::t -> [listReverse t; h];;
27
79
0.54321
f30292b93f5e0b0d401145d7d2f2a804084a212e
366
ml
OCaml
01-Working-with-lists/p21.ml
builtinnya/99-Problems-OCaml
dae73dac5ff9a5b2884f9f01b15594466d39e1a0
[ "MIT" ]
2
2015-11-08T06:38:01.000Z
2018-12-20T22:18:19.000Z
01-Working-with-lists/p21.ml
builtinnya/99-Problems-OCaml
dae73dac5ff9a5b2884f9f01b15594466d39e1a0
[ "MIT" ]
null
null
null
01-Working-with-lists/p21.ml
builtinnya/99-Problems-OCaml
dae73dac5ff9a5b2884f9f01b15594466d39e1a0
[ "MIT" ]
4
2019-01-28T01:46:10.000Z
2021-11-04T03:41:52.000Z
(** Problem 21: Insert an element at a given position into a list. *) (** Inserts [element] at the position [k] into [list]. *) let rec insert_at element k list = let rec recur acc i list = match list with [] -> acc | head :: tail -> recur (if i = k then head :: element :: acc else head :: acc) (...
30.5
80
0.595628
af042cb49f73954a7ce0a5e35c4471bf8d2645c1
5,658
ml
OCaml
ext/filesystem.ml
UnixJunkie/obuild
731c6cd27a1f951459e264e541a20b2dc2129963
[ "BSD-2-Clause" ]
null
null
null
ext/filesystem.ml
UnixJunkie/obuild
731c6cd27a1f951459e264e541a20b2dc2129963
[ "BSD-2-Clause" ]
null
null
null
ext/filesystem.ml
UnixJunkie/obuild
731c6cd27a1f951459e264e541a20b2dc2129963
[ "BSD-2-Clause" ]
null
null
null
open Printf open Fugue open Filepath exception UnexpectedFileType of string exception WriteFailed let removeDirContent wpath = let path = fp_to_string wpath in let rec rmdir_recursive f path = let dirhandle = Unix.opendir path in (try while true do let ent = Unix.readdir dirhandle in ...
29.936508
139
0.604807
f3d0c554afeb6b94e099fb6909a21d787512f8ab
231
ml
OCaml
Task1/Drive/Generator_Drive/generator.ml
dsarlis/PL1
a089eeae0191715033f1b6455c2a58a2125b7a76
[ "MIT" ]
null
null
null
Task1/Drive/Generator_Drive/generator.ml
dsarlis/PL1
a089eeae0191715033f1b6455c2a58a2125b7a76
[ "MIT" ]
null
null
null
Task1/Drive/Generator_Drive/generator.ml
dsarlis/PL1
a089eeae0191715033f1b6455c2a58a2125b7a76
[ "MIT" ]
null
null
null
let main = Random.init (int_of_string Sys.argv.(1)); let n = int_of_string Sys.argv.(2) in for i = 1 to n do Printf.printf "%d %d " (Random.int 10000 + 1) ((Random.int 300 / 10 + 1) * 10); done; Printf.printf "0 0";
28.875
83
0.601732
af54dc3d32bd58bef793d5f25e4ea2dd0a25a612
1,608
ml
OCaml
hphp/hack/src/ifc/ifc_security_lattice.ml
Raulkumar/hhvm
dfc1a50aff4d3a1df508c685fee401262e530879
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/ifc/ifc_security_lattice.ml
Raulkumar/hhvm
dfc1a50aff4d3a1df508c685fee401262e530879
[ "PHP-3.01", "Zend-2.0" ]
2
2020-10-11T22:54:12.000Z
2021-07-20T22:12:10.000Z
hphp/hack/src/ifc/ifc_security_lattice.ml
Jankyboy/hhvm
afae3b129fe51c74d9c169254d1755eec4cb0940
[ "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 Ifc_types (* This file contains code related to the security lattice we use to * check our co...
26.360656
68
0.652363
f396b81ac2f44d3790c0493b8f6379a3a5954328
18,358
ml
OCaml
hphp/hack/src/typing/typing_taccess.ml
Wilfred/hhvm
87cea12a34ec7edb94111be6bfb9458aac7b1997
[ "PHP-3.01", "Zend-2.0" ]
9,491
2015-01-01T00:30:28.000Z
2022-03-31T20:22:11.000Z
hphp/hack/src/typing/typing_taccess.ml
Wilfred/hhvm
87cea12a34ec7edb94111be6bfb9458aac7b1997
[ "PHP-3.01", "Zend-2.0" ]
4,796
2015-01-01T00:26:31.000Z
2022-03-31T01:09:05.000Z
hphp/hack/src/typing/typing_taccess.ml
Wilfred/hhvm
87cea12a34ec7edb94111be6bfb9458aac7b1997
[ "PHP-3.01", "Zend-2.0" ]
2,126
2015-01-01T11:13:29.000Z
2022-03-28T19:58:15.000Z
(* * 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 Common open Typing_defs module Reason = Typing_reason module Env = Typing_env module Log = Typi...
34.967619
97
0.615372
f3e28e228c69b8cc91bed1ad8718d246ad9dce02
30,215
ml
OCaml
src/proto_013_PtJakart/lib_client/michelson_v1_error_reporter.ml
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
src/proto_013_PtJakart/lib_client/michelson_v1_error_reporter.ml
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
src/proto_013_PtJakart/lib_client/michelson_v1_error_reporter.ml
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *) ...
37.674564
108
0.527519
f3516b85ac09082741f56eec11d2da89f2818cb2
25,684
ml
OCaml
hphp/hack/src/typing/typing_variance.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/typing/typing_variance.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/typing/typing_variance.ml
azjezz/hhvm
bb38fc533db545c1e9be9b5c373c759cd28b0f33
[ "PHP-3.01", "Zend-2.0" ]
1
2020-12-30T13:22:47.000Z
2020-12-30T13:22:47.000Z
(** * 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 Core_kernel open Typing_defs open Utils module Env = Typing_env module SN = Naming_special_names module TLazy...
40.13125
84
0.615169
f3b88e03f961b0e975996967abead19fd4891292
2,187
ml
OCaml
tools/mshowhashes.ml
fshaked/herdtools7
0935581355bf1b4ab0a53478947d0ec288d4c94f
[ "CECILL-B" ]
null
null
null
tools/mshowhashes.ml
fshaked/herdtools7
0935581355bf1b4ab0a53478947d0ec288d4c94f
[ "CECILL-B" ]
null
null
null
tools/mshowhashes.ml
fshaked/herdtools7
0935581355bf1b4ab0a53478947d0ec288d4c94f
[ "CECILL-B" ]
null
null
null
(****************************************************************************) (* the diy toolsuite *) (* *) (* Jade Alglave, University College London, UK. *) (* L...
32.161765
78
0.456333
f34e216869c47c88f117e239055c6e660a8c30c5
9,453
ml
OCaml
lib/sentinels_in_graphs.ml
nick-chin/dsa_final
07df8c9d07fd400e6ee71dcc8b3e7c60babf7ca9
[ "MIT" ]
null
null
null
lib/sentinels_in_graphs.ml
nick-chin/dsa_final
07df8c9d07fd400e6ee71dcc8b3e7c60babf7ca9
[ "MIT" ]
null
null
null
lib/sentinels_in_graphs.ml
nick-chin/dsa_final
07df8c9d07fd400e6ee71dcc8b3e7c60babf7ca9
[ "MIT" ]
null
null
null
open Week_01 open Week_02 open Week_06 open Week_12_BST open Week_12_Graphs open Week_13_Paths open Week_13_Reachability open BinarySearchTree open LinkedGraphs (***************************************************************) (* Part 1: Generating a Sentinel Tree from a rooted Graph *) (************************...
28.820122
118
0.579499
af0ba7ed2189ccc6ce0fc3fdef39d4bbdbc66243
28,190
ml
OCaml
infer/src/npex/SymDom.ml
kupl/npex-analyzer
c9a6d60aa76f39bbab04af5186b0399bc4fcdb49
[ "MIT" ]
null
null
null
infer/src/npex/SymDom.ml
kupl/npex-analyzer
c9a6d60aa76f39bbab04af5186b0399bc4fcdb49
[ "MIT" ]
null
null
null
infer/src/npex/SymDom.ml
kupl/npex-analyzer
c9a6d60aa76f39bbab04af5186b0399bc4fcdb49
[ "MIT" ]
null
null
null
open! IStd open! Vocab module F = Format module L = Logging module Node = InstrNode module Counter (Key : PrettyPrintable.PrintableOrderedType) = struct include PrettyPrintable.MakePPMonoMap (Key) (Int) let _counter = ref empty let get k = match find_opt k !_counter with | Some cnt -> _counter ...
29.799154
113
0.614438
f3e0726de6bd2c75ce072ee6b5b7b84ad5e1d0cb
1,580
mly
OCaml
2/parser.mly
ymyzk/ex4fp
fbb5ec855106555b20f379ac79eb2ad95dc33428
[ "MIT" ]
null
null
null
2/parser.mly
ymyzk/ex4fp
fbb5ec855106555b20f379ac79eb2ad95dc33428
[ "MIT" ]
null
null
null
2/parser.mly
ymyzk/ex4fp
fbb5ec855106555b20f379ac79eb2ad95dc33428
[ "MIT" ]
null
null
null
%{ open Syntax %} %token LPAREN RPAREN SEMISEMI %token PLUS MULT LT LAND LOR EQ RARROW %token IF THEN ELSE TRUE FALSE LET IN FUN REC %token <int> INTV %token <Syntax.id> ID %right LAND LOR %start toplevel %type <Syntax.program> toplevel %% toplevel : Expr SEMISEMI { Exp $1 } | LET ID LetDeclSubExpr { Decl ($...
18.809524
74
0.567722
f3b17f6f98ccb2d51590a126d7fe15e71c6df6c4
486
ml
OCaml
lib/obuilder.ml
timbertson/obuilder
6438c3ee7530bd6d73234b4b39360ac4af9d56d3
[ "Apache-2.0" ]
null
null
null
lib/obuilder.ml
timbertson/obuilder
6438c3ee7530bd6d73234b4b39360ac4af9d56d3
[ "Apache-2.0" ]
null
null
null
lib/obuilder.ml
timbertson/obuilder
6438c3ee7530bd6d73234b4b39360ac4af9d56d3
[ "Apache-2.0" ]
null
null
null
module S = S module Spec = Obuilder_spec module Config = Config module Context = Build.Context module type BUILDER = S.BUILDER with type context := Build.Context.t module Builder = Build.Make module Build_log = Build_log module Btrfs_store = Btrfs_store module Zfs_store = Zfs_store module Db = Db module Os = Os modu...
19.44
68
0.759259
af21ff85bf831f922d30f5a550fcbbe99b6c7ad8
1,909
ml
OCaml
bin/sub.ml
vbmithr/ocaml-kx
542fe2152868315eaf7dd30fd79f933d61738e5c
[ "0BSD" ]
9
2018-08-16T11:53:34.000Z
2019-12-30T13:50:16.000Z
bin/sub.ml
deepmarker/ocaml-kx
542fe2152868315eaf7dd30fd79f933d61738e5c
[ "0BSD" ]
1
2020-03-03T20:29:25.000Z
2020-03-06T13:26:11.000Z
bin/sub.ml
deepmarker/ocaml-kx
542fe2152868315eaf7dd30fd79f933d61738e5c
[ "0BSD" ]
null
null
null
open Core open Async let url = Uri.make ~scheme:"" ~host:"localhost" () type trade = { sym : string; side : char; size : int64; price : float } [@@deriving sexp] let random_trade () = let sym = "XBTUSD" in let side = if Random.bool () then 'b' else 'a' in let size = Random.int64 1000L in let price = 9000. +....
28.492537
81
0.5956
f31c47b0d5806a5983e39d1ea1c1e9b8c049eb45
8,215
ml
OCaml
src/l2-lib/verify.ml
nguyenkvi/comp403s18-L2
d799fbd02d23a85491b68fc4516332eb2c397c5a
[ "Apache-2.0" ]
null
null
null
src/l2-lib/verify.ml
nguyenkvi/comp403s18-L2
d799fbd02d23a85491b68fc4516332eb2c397c5a
[ "Apache-2.0" ]
null
null
null
src/l2-lib/verify.ml
nguyenkvi/comp403s18-L2
d799fbd02d23a85491b68fc4516332eb2c397c5a
[ "Apache-2.0" ]
null
null
null
open Core open Ast open Collections type status = | Invalid | Valid | Error (* type typed_constr = typed_expr * typed_id list *) (* let typed_constr constr = *) (* let body, vars = constr in *) (* let body' = *) (* let typ_ctx = List.map vars ~f:(fun var -> (var, fresh_free 0)) |> Ctx.of_alist_exn in ...
45.893855
110
0.536336
af6672268ca6d227f0593f1c1042d3014b0042bf
1,160
ml
OCaml
src/lib/test_genesis_ledger/test_genesis_ledger.ml
jjangg96/coda
f9607eb8536e4a897ca48e1e4fe5a085513cf1ff
[ "Apache-2.0" ]
null
null
null
src/lib/test_genesis_ledger/test_genesis_ledger.ml
jjangg96/coda
f9607eb8536e4a897ca48e1e4fe5a085513cf1ff
[ "Apache-2.0" ]
null
null
null
src/lib/test_genesis_ledger/test_genesis_ledger.ml
jjangg96/coda
f9607eb8536e4a897ca48e1e4fe5a085513cf1ff
[ "Apache-2.0" ]
null
null
null
[%%import "/src/config.mlh"] [%%inject "ledger_depth", ledger_depth] [%%inject "fake_accounts_target", fake_accounts_target] let _ = if Base.Int.(fake_accounts_target > pow 2 ledger_depth) then failwith "Genesis_ledger: fake_accounts_target >= 2**ledger_depth" [%%if defined genesis_ledger] [%%if genesis_ledg...
15.466667
70
0.763793
af237e618c32ec39e635c1558a47e44b5f7ecad8
6,969
mli
OCaml
src/product_kind_generator.mli
janestreet/ppx_typed_fields
d9a109286d1a6e3aa981daf88e7561eec0558987
[ "MIT" ]
9
2021-08-16T01:44:24.000Z
2022-03-30T18:00:36.000Z
src/product_kind_generator.mli
janestreet/ppx_typed_fields
d9a109286d1a6e3aa981daf88e7561eec0558987
[ "MIT" ]
null
null
null
src/product_kind_generator.mli
janestreet/ppx_typed_fields
d9a109286d1a6e3aa981daf88e7561eec0558987
[ "MIT" ]
1
2021-12-17T02:48:14.000Z
2021-12-17T02:48:14.000Z
open Ppxlib open Type_kind_intf type t (** Generates the GADT constructors used in the type t. *) val constructor_declarations : (module Product_kind_intf.S with type t = 'a) -> loc:location -> elements_to_convert:('a * granularity) list -> core_type_params:core_type list -> (('a * granularity) * construct...
24.28223
81
0.674846
f3502cb3eb71ee64fdad3b98a9c7862b701906bc
26,573
ml
OCaml
src/server/server.ml
angeloocana/flow
6632dcaebe460c691e60cdc33253a5940068ff1e
[ "BSD-3-Clause" ]
1
2017-03-25T19:40:07.000Z
2017-03-25T19:40:07.000Z
src/server/server.ml
angeloocana/flow
6632dcaebe460c691e60cdc33253a5940068ff1e
[ "BSD-3-Clause" ]
null
null
null
src/server/server.ml
angeloocana/flow
6632dcaebe460c691e60cdc33253a5940068ff1e
[ "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. * *) modul...
36.551582
95
0.638242
af0d060984d25a19e7ea2d010375f1b639a07471
91
ml
OCaml
data/derived/comb/progs/unify/prog6183.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/prog1327.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/fa15/progs/unify/prog1327.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let pipe fs = let f a x combine x = x a in let base x = x in List.fold_left f base fs;;
22.75
75
0.637363
af6a0674bfeb504e286b7f36c51120c6e6278319
1,697
mli
OCaml
internal/lib/shelf.mli
maranget/herdtools7
c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0
[ "CECILL-B" ]
103
2016-11-28T10:00:41.000Z
2022-03-08T05:06:00.000Z
internal/lib/shelf.mli
maranget/herdtools7
c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0
[ "CECILL-B" ]
193
2017-02-28T19:04:04.000Z
2022-03-25T14:33:24.000Z
internal/lib/shelf.mli
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...
44.657895
79
0.470831
f32122eeb38c7a5acc6593222bc7ea67447faba5
235
ml
OCaml
lib/arpv4_wire.ml
alistairfisher/AlistairFisherMirageDHCPServer
2586abe9a841475348b9936f3e776395a307c87d
[ "ISC" ]
1
2016-10-11T09:03:09.000Z
2016-10-11T09:03:09.000Z
lib/arpv4_wire.ml
agrski/mirage-tcpip-eidolon-xp
694ded297a7fd875e56f70d9173978d9b7f1420a
[ "0BSD" ]
null
null
null
lib/arpv4_wire.ml
agrski/mirage-tcpip-eidolon-xp
694ded297a7fd875e56f70d9173978d9b7f1420a
[ "0BSD" ]
null
null
null
cstruct arp { uint16_t htype; uint16_t ptype; uint8_t hlen; uint8_t plen; uint16_t op; uint8_t sha[6]; uint32_t spa; uint8_t tha[6]; uint32_t tpa } as big_endian cenum op { Op_request = 1; Op_reply } as uint16_t
13.823529
17
0.680851
af473bbd6fe59928c9c202eaede29cc19b046406
120
ml
OCaml
tests/types/tyfun/chain.ml
CrazedProgrammer/amulet
a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe
[ "BSD-3-Clause" ]
1
2021-11-23T13:07:37.000Z
2021-11-23T13:07:37.000Z
tests/types/tyfun/chain.ml
CrazedProgrammer/amulet
a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe
[ "BSD-3-Clause" ]
null
null
null
tests/types/tyfun/chain.ml
CrazedProgrammer/amulet
a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe
[ "BSD-3-Clause" ]
null
null
null
type function bar 'a begin bar int = int end type function foo 'a begin foo 'a = bar 'a end let x : foo int = 123
12
26
0.65
af0adf2820eb969b6aa463bef7f9552a1937d57c
1,033
ml
OCaml
data/sp14/3498.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/sp14/3498.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/sp14/3498.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
let rec wwhile (f,b) = match f b with | (b',c') -> if c' then wwhile (f, b') else b';; let fixpoint (f,b) = wwhile (match (f, b) with | (b',c') -> (((f b') <> b'), b));; (* fix let rec wwhile (f,b) = match f b with | (b',c') -> (match c' with | true -> wwhile (f, b') | false -> b');; let fixpoint (f,b) ...
14.757143
73
0.449177
f3a9b4116fe8240afc7d274bdb4bfd108394ab3f
8,061
ml
OCaml
data/derived/comb/progs/unify/prog4292.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/prog4292.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog4292.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*) (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXX XXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXXXXX XXXXXXXXXXXXXX XXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX...
24.803077
148
0.616921
f34ecb678da9de1e2bbb2b82a1767fc1a2e0c326
1,078
ml
OCaml
tests/typing-gadts/didier.ml
objmagic/synsyn
afad917e975fe16cb725e6cdd5a46e72ac8cb735
[ "WTFPL" ]
1
2016-05-17T14:29:13.000Z
2016-05-17T14:29:13.000Z
tests/typing-gadts/didier.ml
objmagic/synsyn
afad917e975fe16cb725e6cdd5a46e72ac8cb735
[ "WTFPL" ]
null
null
null
tests/typing-gadts/didier.ml
objmagic/synsyn
afad917e975fe16cb725e6cdd5a46e72ac8cb735
[ "WTFPL" ]
null
null
null
type 'a ty = | Int : int ty | Bool : bool ty let fbool (type t) (x : t) (tag : t ty) = match tag with | Bool -> x ;; (* val fbool : 'a -> 'a ty -> 'a = <fun> *) (** OK: the return value is x of type t **) let fint (type t) (x : t) (tag : t ty) = match tag with | Int -> x > 0 ;; (* val fint : 'a -> 'a ty -...
22.458333
78
0.51577
af55ac26e6e6c4f97b7ad5060a5371b06404946c
745
ml
OCaml
ocaml-node-unix/test/fs_test.ml
tmattio/ocaml-node
6913461fb7cde73a7963ced5d26878a9b1f6ac03
[ "MIT" ]
15
2021-03-16T12:43:28.000Z
2022-01-12T10:34:15.000Z
ocaml-node-unix/test/fs_test.ml
tmattio/ocaml-node
6913461fb7cde73a7963ced5d26878a9b1f6ac03
[ "MIT" ]
1
2021-03-16T21:29:50.000Z
2021-03-17T20:59:59.000Z
ocaml-node-unix/test/fs_test.ml
tmattio/ocaml-node
6913461fb7cde73a7963ced5d26878a9b1f6ac03
[ "MIT" ]
1
2021-07-31T20:00:51.000Z
2021-07-31T20:00:51.000Z
open Ocaml_node open Alcotest let test_file_exists () = Fs.exists_sync "fixtures/dummy" |> check bool "is true" true let test_read_file () = let buf = Fs.read_file_sync "fixtures/dummy" in Buffer.to_string buf |> check string "is same string" "dummy" let test_write_file () = let buf = Buffer.from_string "dum...
28.653846
64
0.718121
f3f6ffd63b78686a43881e8d59b521cfd699ea8d
1,284
mli
OCaml
coq-serapi/serlib/ide/ser_richpp.mli
reichel3/TacTok
c344e76263de04311af8a0030c07aec95d87f71c
[ "MIT" ]
7
2020-11-23T02:45:36.000Z
2022-03-18T03:03:33.000Z
coq-serapi/serlib/ide/ser_richpp.mli
LASER-UMASS/Diva
7dbb532cc6feec1e39c560b30a8e70f2691df365
[ "MIT" ]
4
2021-02-23T03:03:51.000Z
2021-11-13T00:07:38.000Z
coq-serapi/serlib/ide/ser_richpp.mli
LASER-UMASS/Diva
7dbb532cc6feec1e39c560b30a8e70f2691df365
[ "MIT" ]
2
2021-01-19T17:56:28.000Z
2022-03-28T04:39:41.000Z
(************************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) (* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2016 *) (* \VV/ **************************************************************) (* // * Th...
47.555556
74
0.348131
af156f04442728dad971b8bcbd37c56f1e7ca27a
540
ml
OCaml
data/derived/comb/progs/unify/prog5582.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/prog0696.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/fa15/progs/unify/prog0696.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 pi = 4.0 *. (atan 1.0);; let rec eval (e,x,y) = match e with | VarX -> x | VarY -> y | Sine e -> sin ((pi *. (eval e)), x, y) | Cosine e -> cos (p...
23.478261
72
0.490741
f3dc587b86c5f291fb76f270eebb7334ae72619b
780
ml
OCaml
src/value.ml
jberdine/dune
8d5bd6819fb71ec5be72ecac898dedaddb42cdae
[ "MIT" ]
null
null
null
src/value.ml
jberdine/dune
8d5bd6819fb71ec5be72ecac898dedaddb42cdae
[ "MIT" ]
null
null
null
src/value.ml
jberdine/dune
8d5bd6819fb71ec5be72ecac898dedaddb42cdae
[ "MIT" ]
null
null
null
open Stdune type t = | String of string | Dir of Path.t | Path of Path.t let string_of_path ~dir p = Path.reach ~from:dir p let to_string t ~dir = match t with | String s -> s | Dir p | Path p -> string_of_path ~dir p let to_path ?error_loc t ~dir = match t with | String s -> Path.relative ?error_...
19.02439
56
0.597436
af49ab8eb273a06a24c72b697ec7e0f6658828c7
2,737
mli
OCaml
vendor/dune/src/syntax.mli
prashant-shahi/pesy
5562d9387ba62704f6505c505c906b82f5d73a51
[ "MIT" ]
null
null
null
vendor/dune/src/syntax.mli
prashant-shahi/pesy
5562d9387ba62704f6505c505c906b82f5d73a51
[ "MIT" ]
null
null
null
vendor/dune/src/syntax.mli
prashant-shahi/pesy
5562d9387ba62704f6505c505c906b82f5d73a51
[ "MIT" ]
null
null
null
(** Management of syntaxes *) open! Stdune module Version : sig (** A syntax version. It is always assumed that a parser with version [(X, Y)] can read the output produced by a printer at version [(X, Z)] for any [Z <= Y]. *) type t = int * int include Dune_lang.Conv with type t := t val ...
25.820755
84
0.651078
f3f8d25713b5fede8e440c810dbad3fd02f329dd
1,603
mli
OCaml
src/unix/lwt_throttle.mli
bn-d/lwt
654952b62dccea63f186747be79916dbfdccf48d
[ "MIT" ]
575
2015-01-02T04:28:43.000Z
2022-03-11T16:56:22.000Z
src/unix/lwt_throttle.mli
bn-d/lwt
654952b62dccea63f186747be79916dbfdccf48d
[ "MIT" ]
773
2015-01-02T12:09:28.000Z
2022-03-31T10:10:24.000Z
src/unix/lwt_throttle.mli
Sudha247/lwt
c656870190847c1982dc36978529a67597271fd1
[ "MIT" ]
182
2015-01-13T10:33:42.000Z
2022-01-04T20:50:42.000Z
(* This file is part of Lwt, released under the MIT license. See LICENSE.md for details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. *) (** Rate limiters. A rate limiter allows generating sets of promises that will be resolved in the future, at a maximum rate of N promises per second....
38.166667
80
0.705552
af3fa3d1d03734366d2b1a5dc127a1bd35d28979
647
ml
OCaml
camlp4-extensions/pa_openin/pa_openin.ml
mjambon/mjambon2016
bd644e0a42cacba56d0260982614d1ef5c8305b3
[ "BSL-1.0", "BSD-3-Clause" ]
1
2020-11-02T04:11:52.000Z
2020-11-02T04:11:52.000Z
camlp4-extensions/pa_openin/pa_openin.ml
mjambon/mjambon2016
bd644e0a42cacba56d0260982614d1ef5c8305b3
[ "BSL-1.0", "BSD-3-Clause" ]
null
null
null
camlp4-extensions/pa_openin/pa_openin.ml
mjambon/mjambon2016
bd644e0a42cacba56d0260982614d1ef5c8305b3
[ "BSL-1.0", "BSD-3-Clause" ]
null
null
null
(* This code is in public domain. Written by Alain Frisch. 2002-02-05. *) let no = ref 0 let local_struct loc st e = incr no; let x = "OPENIN_" ^ (string_of_int !no) in let st = st @ [<:str_item< value res = $e$ >>] in <:expr< let module $x$ = struct $list: st$ end in ($uid:x$.res) >> EXTEND GLOBAL: ...
23.107143
77
0.561051
f36fef7f4672d1a07572b2bb80569909ce10042e
24,827
ml
OCaml
coq/checker/indtypes.ml
reichel3/TacTok
c344e76263de04311af8a0030c07aec95d87f71c
[ "MIT" ]
7
2020-11-23T02:45:36.000Z
2022-03-18T03:03:33.000Z
coq/checker/indtypes.ml
LASER-UMASS/Diva
7dbb532cc6feec1e39c560b30a8e70f2691df365
[ "MIT" ]
4
2021-02-23T03:03:51.000Z
2021-11-13T00:07:38.000Z
coq/checker/indtypes.ml
LASER-UMASS/Diva
7dbb532cc6feec1e39c560b30a8e70f2691df365
[ "MIT" ]
2
2021-01-19T17:56:28.000Z
2022-03-28T04:39:41.000Z
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) (* v * INRIA, CNRS and contributors - Copyright 1999-2018 *) (* <O___,, * (see CREDITS file for the list of authors) *) (* \VV/ *********...
38.372488
104
0.659766
f39c86ea172e31299acf6f731b50a4fb01762567
668
ml
OCaml
test/unit/fixtures/instrument/tuple.reference.ml
undu/bisect_ppx
a4b8cb617dd9b8f33be8da7b8e63390e81b85fb6
[ "MIT" ]
null
null
null
test/unit/fixtures/instrument/tuple.reference.ml
undu/bisect_ppx
a4b8cb617dd9b8f33be8da7b8e63390e81b85fb6
[ "MIT" ]
null
null
null
test/unit/fixtures/instrument/tuple.reference.ml
undu/bisect_ppx
a4b8cb617dd9b8f33be8da7b8e63390e81b85fb6
[ "MIT" ]
1
2020-11-17T11:14:18.000Z
2020-11-17T11:14:18.000Z
[@@@ocaml.text "/*"] module Bisect_visit___tuple___ml = struct let ___bisect_visit___ = let point_definitions = "\132\149\166\190\000\000\000\007\000\000\000\003\000\000\000\t\000\000\000\t\160\160d@\160yA" in let `Staged cb = Bisect.Runtime.register_file ~bisect_file:None ~bisect_sile...
35.157895
105
0.702096
f380c57ef62a46d863aa37d1af04217c67e357a3
477
ml
OCaml
hphp/hack/src/typing/nast_check/read_from_append_check.ml
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "PHP-3.01", "Zend-2.0" ]
1
2021-05-15T22:07:47.000Z
2021-05-15T22:07:47.000Z
hphp/hack/src/typing/nast_check/read_from_append_check.ml
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "PHP-3.01", "Zend-2.0" ]
2
2020-10-11T22:54:12.000Z
2021-07-20T22:12:10.000Z
hphp/hack/src/typing/nast_check/read_from_append_check.ml
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "PHP-3.01", "Zend-2.0" ]
1
2021-01-29T08:44:22.000Z
2021-01-29T08:44:22.000Z
(* * 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 Aast open Nast_check_env let handler = object inherit Nast_visitor.handler_base method! at_expr env...
20.73913
69
0.66457
af67e6356e3ca4b175c8aa82c28546073dd8c29b
5,458
ml
OCaml
test/lib/test_blackbox.ml
nickdecr/hardcaml
b1222bf55c927fa0c9200388068662ac32bfe24d
[ "MIT" ]
372
2018-05-25T10:51:24.000Z
2022-03-25T14:38:34.000Z
test/lib/test_blackbox.ml
nickdecr/hardcaml
b1222bf55c927fa0c9200388068662ac32bfe24d
[ "MIT" ]
9
2018-07-15T02:52:39.000Z
2022-01-05T15:11:16.000Z
test/lib/test_blackbox.ml
nickdecr/hardcaml
b1222bf55c927fa0c9200388068662ac32bfe24d
[ "MIT" ]
18
2018-08-12T06:08:50.000Z
2022-02-22T11:42:17.000Z
open! Import open Signal let f_coefs = Test_fir_filter.f (List.init 4 ~f:(fun _ -> random ~width:16)) let%expect_test "top level blackbox" = let module Circuit = Circuit.With_interface (Test_fir_filter.I) (Test_fir_filter.O) in let circuit = Circuit.create_exn ~name:"fir_filter_blackbox" f_coefs in Rtl.print ~b...
23.525862
88
0.487358
af5a18eb11b7a0208b72b6f9c729d204db1c5d21
6,873
ml
OCaml
data/derived/comb/progs/unify/prog6407.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/prog1563.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/fa15/progs/unify/prog1563.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXX *) (*XXXXXXXXXXXXXXXXXXXXXXXXXXX*) let rec sumList xs = match xs with | [] -> 0 | xf:: xb -> xf + sumList xb;; (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*) let _ = sumList [1; 2; 3; 4] let _ = sumList [1; -2; 3; 5] let _ = sumList [1; 3; 5; 7; 9; 1...
24.37234
94
0.633348
f3a9bc7d440c082e677138521aea1f6aaf9abbb1
5,621
mli
OCaml
src/lang/PMRS.mli
synduce/Synduce
11e9eb1d420113ae85ec63399dd493034c51a354
[ "MIT" ]
2
2022-01-12T16:50:30.000Z
2022-01-28T16:14:40.000Z
src/lang/PMRS.mli
synduce/Synduce
11e9eb1d420113ae85ec63399dd493034c51a354
[ "MIT" ]
null
null
null
src/lang/PMRS.mli
synduce/Synduce
11e9eb1d420113ae85ec63399dd493034c51a354
[ "MIT" ]
null
null
null
open Base open Term open Utils (** A PMRS rewrite rule [(v, args, pattern, rhs)] is the rewrite rule v(args,pattern) -> rhs. [v] which is a non-terminal (a recursive function in the OCaml code), [args] is a possibly empty list of arguments, [pattern] is an optional pattern, [rhs] is the production of the r...
34.484663
102
0.676926
af65dc4591b61e68f7d8a3188476d7f056254ccb
213
mli
OCaml
libraries/elasticloadbalancing/lib/describeTags.mli
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
1
2020-05-21T19:12:04.000Z
2020-05-21T19:12:04.000Z
libraries/elasticloadbalancing/lib/describeTags.mli
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
1
2021-06-22T14:33:23.000Z
2021-06-22T14:33:23.000Z
libraries/elasticloadbalancing/lib/describeTags.mli
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
null
null
null
open Types type input = DescribeTagsInput.t type output = DescribeTagsOutput.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
30.428571
74
0.741784
af4c84506da65948168538a9e264848124909732
87
mli
OCaml
src/mlv2/maybeMonad.mli
yoanncouillec/Monad
bbcd407fc890d9f4e1a341c2d9623f65a843581f
[ "MIT" ]
null
null
null
src/mlv2/maybeMonad.mli
yoanncouillec/Monad
bbcd407fc890d9f4e1a341c2d9623f65a843581f
[ "MIT" ]
null
null
null
src/mlv2/maybeMonad.mli
yoanncouillec/Monad
bbcd407fc890d9f4e1a341c2d9623f65a843581f
[ "MIT" ]
null
null
null
type 'a m val bind: 'a m -> ('a -> 'b m) -> 'b m val return: 'a -> 'a m val fail: 'a m
17.4
38
0.471264
d2dac64e8e5cb4560ba4c28c71327b9f8a901f0d
13,034
ml
OCaml
compiler/surface/parser_driver.ml
govlab-org/catala
0021c2c8e681bde88a222b2860525a1e678d121d
[ "Apache-2.0" ]
792
2020-04-17T16:13:37.000Z
2022-03-31T06:19:48.000Z
compiler/surface/parser_driver.ml
govlab-org/catala
0021c2c8e681bde88a222b2860525a1e678d121d
[ "Apache-2.0" ]
177
2020-05-13T11:28:20.000Z
2022-03-31T09:03:16.000Z
compiler/surface/parser_driver.ml
govlab-org/catala
0021c2c8e681bde88a222b2860525a1e678d121d
[ "Apache-2.0" ]
37
2020-04-20T08:35:06.000Z
2022-03-29T07:05:36.000Z
(* This file is part of the Catala compiler, a specification language for tax and social benefits computation rules. Copyright (C) 2020 Inria, contributors: Denis Merigoux <denis.merigoux@inria.fr>, Emile Rolley <emile.rolley@tuta.io> Licensed under the Apache License, Version 2.0 (the "License"); you may not...
44.333333
100
0.658739
af1c0cc596cd3412dff17805a2059da85ac221d8
1,284
ml
OCaml
data/sp14_min/0897.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/sp14/0897.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/sp14_min/0897.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));; let padZero l1 l2 = let leng1 = List.length l1 in let leng2 = List.length l2 in (((clone 0 (leng2 - leng1)) @ l1), ((clone 0 (leng1 - leng2)) @ l2));; let rec removeZero l = match l with | [] -> [] | h::t -> if h = 0 then removeZero t else l...
21.4
72
0.547508
d2fe4af1c701839dc49cbb0389571b17f14fdd98
9,288
ml
OCaml
src/context/display/displayEmitter.ml
frabbit/haxe-1
0ef6531617931f52180abca1e36ac2df28871c9a
[ "MIT" ]
4
2017-06-12T17:34:18.000Z
2018-10-13T14:13:22.000Z
src/context/display/displayEmitter.ml
frabbit/haxe-1
0ef6531617931f52180abca1e36ac2df28871c9a
[ "MIT" ]
null
null
null
src/context/display/displayEmitter.ml
frabbit/haxe-1
0ef6531617931f52180abca1e36ac2df28871c9a
[ "MIT" ]
null
null
null
open Globals open Ast open Type open Typecore open DisplayException open DisplayTypes open DisplayMode open CompletionItem open CompletionType open ImportStatus open ClassFieldOrigin open DisplayTypes.CompletionResultKind open Common open Display open DisplayPosition let sort_fields l with_type p = let l = List.map (...
33.774545
125
0.685293
af2368dcd62fa90bea0237ff3ba81b872f996cf7
1,754
mli
OCaml
source/analysis/inlineDecorator.mli
joshkehn/pyre-check
922b62e78e4990d8d268bb2ebde5912ceea9e226
[ "MIT" ]
null
null
null
source/analysis/inlineDecorator.mli
joshkehn/pyre-check
922b62e78e4990d8d268bb2ebde5912ceea9e226
[ "MIT" ]
null
null
null
source/analysis/inlineDecorator.mli
joshkehn/pyre-check
922b62e78e4990d8d268bb2ebde5912ceea9e226
[ "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 Ast open Statement val decorators_to_skip : path:PyrePath.t -> string -> Reference.t list val uniquify_names : get_refe...
28.290323
93
0.72691
f3cd5d1467d2630aa924f4826a65244e4f0056cc
39,491
ml
OCaml
src/lib/cparser/Cutil.ml
letonchanh/Coeus
21d417a56a80d6c9014cbb6ed86b329d522fd9a3
[ "Apache-2.0" ]
3
2019-10-06T12:05:37.000Z
2020-04-16T11:40:50.000Z
src/lib/cparser/Cutil.ml
letonchanh/Coeus
21d417a56a80d6c9014cbb6ed86b329d522fd9a3
[ "Apache-2.0" ]
null
null
null
src/lib/cparser/Cutil.ml
letonchanh/Coeus
21d417a56a80d6c9014cbb6ed86b329d522fd9a3
[ "Apache-2.0" ]
2
2020-06-12T00:18:56.000Z
2020-10-09T23:35:38.000Z
(* *********************************************************************) (* *) (* The Compcert verified compiler *) (* *) (* Xavier Leroy...
32.185004
85
0.614418
f3c3fde5d408a9c9b362d7092808eb32ee2e5e19
26,684
ml
OCaml
infer/src/biabduction/Absarray.ml
JamesBrace/infer
bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15
[ "MIT" ]
null
null
null
infer/src/biabduction/Absarray.ml
JamesBrace/infer
bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15
[ "MIT" ]
null
null
null
infer/src/biabduction/Absarray.ml
JamesBrace/infer
bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15
[ "MIT" ]
1
2019-10-24T14:47:52.000Z
2019-10-24T14:47:52.000Z
(* * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open! IStd module L = Logging (** This function should be used before adding a new index to E...
37.636107
122
0.636336
af5deb8a712120a3f67de3d06d57c4050289e9d6
9,279
ml
OCaml
bin/extract_from_certdata.ml
mirage/ca-certs-nss
5584a9746e844eb795af27f9a4d1c99406457461
[ "0BSD" ]
5
2020-10-08T16:23:46.000Z
2020-10-13T12:21:46.000Z
bin/extract_from_certdata.ml
mirage/ca-certs-nss
5584a9746e844eb795af27f9a4d1c99406457461
[ "0BSD" ]
3
2020-10-08T16:16:10.000Z
2022-02-01T20:35:41.000Z
bin/extract_from_certdata.ml
mirage/ca-certs-nss
5584a9746e844eb795af27f9a4d1c99406457461
[ "0BSD" ]
1
2020-10-13T10:13:19.000Z
2020-10-13T10:13:19.000Z
(* input is a certdata.txt from nss, output is a ml file with the trust anchors *) (* ideas from FreeBSD's security/ca-root-nss perl script, available at: https://github.com/freebsd/freebsd-ports/blob/master/security/ca_root_nss/files/MAca-bundle.pl.in *) let until_end data = let rec go acc = function | [] ->...
33.619565
103
0.604052
af0b0214720305d2b5b0d22be15a606ec7a145e7
963
ml
OCaml
src/services/inference/profile_utils.ml
stefb965/flow
77ce66fdc2aa382db781346e67d468901631fdc2
[ "BSD-3-Clause" ]
10
2016-07-28T20:02:37.000Z
2021-01-28T05:48:11.000Z
src/services/inference/profile_utils.ml
angeloocana/flow
6632dcaebe460c691e60cdc33253a5940068ff1e
[ "BSD-3-Clause" ]
2
2021-07-07T23:32:21.000Z
2022-03-23T16:49:04.000Z
src/services/inference/profile_utils.ml
angeloocana/flow
6632dcaebe460c691e60cdc33253a5940068ff1e
[ "BSD-3-Clause" ]
5
2017-02-06T11:42:23.000Z
2021-01-11T12:10:08.000Z
(** * 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. * *) (* Ti...
32.1
80
0.703011
f309a7b8c0508810415f949872cfd08a57ab9434
134
mli
OCaml
ocaml/lambda-untyped/core.mli
topliceanu/learn
6f4bb19fffb7b2baa88f047409075d5765ee6308
[ "MIT" ]
24
2016-03-21T07:53:54.000Z
2020-06-29T12:16:36.000Z
tapl/ocaml/untyped/core.mli
at15/mini-impl
9878dce9f0c7e59966f7a3e05e42d1188322b3c9
[ "MIT" ]
7
2016-11-06T05:24:57.000Z
2018-05-04T21:11:15.000Z
tapl/ocaml/untyped/core.mli
at15/mini-impl
9878dce9f0c7e59966f7a3e05e42d1188322b3c9
[ "MIT" ]
12
2016-05-24T16:48:32.000Z
2020-10-02T12:22:09.000Z
(* module Core Core typechecking and evaluation functions *) open Syntax open Support.Error val eval : context -> term -> term
13.4
45
0.716418
f34ee75d1f3270e37960fcb62ecfcaeb3609273f
820
ml
OCaml
result/cafe2/diff/sub37/patch.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
9
2021-06-04T04:38:13.000Z
2021-12-15T05:45:28.000Z
result/cafe2/diff/sub37/patch.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
result/cafe2/diff/sub37/patch.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
type aexp = | Const of int | Var of string | Power of (string * int) | Times of aexp list | Sum of aexp list let rec diff ((aexp : aexp), (str : string)) : aexp = match aexp with | Const n -> Const 0 | Var x -> if x = str then Const 1 else Const 0 | Power (x, n) -> if x != str then Const 0 ...
28.275862
80
0.496341
f3c399067d56a6bcea6058ca4843b47366d1c4de
5,108
ml
OCaml
syntax/common/block.ml
tiensonqin/mlorg
d6db2d671c2fa3761bdcc6b7f22abe4bb556a4d2
[ "BSD-2-Clause" ]
null
null
null
syntax/common/block.ml
tiensonqin/mlorg
d6db2d671c2fa3761bdcc6b7f22abe4bb556a4d2
[ "BSD-2-Clause" ]
null
null
null
syntax/common/block.ml
tiensonqin/mlorg
d6db2d671c2fa3761bdcc6b7f22abe4bb556a4d2
[ "BSD-2-Clause" ]
null
null
null
open Batteries type heading = { title: Inline.t list ; tags: string list ; marker: string option (** TODO, DONE, and so on *) ; level: int ; priority: char option } (** {2 Tables} *) and list_item = { contents: t list ; number: string option (** The optional number of the item *) ; checkbox: ...
31.925
79
0.610807
f3aa5aee9b0ad6b8516e5371965d5f5bf33cdc98
806
ml
OCaml
src/lib/rosetta_models/transaction_identifier_response.ml
kobigurk/mina
585c76fc631616a65c1c8eb067c625376d498ad2
[ "Apache-2.0" ]
1
2022-01-03T07:25:40.000Z
2022-01-03T07:25:40.000Z
src/lib/rosetta_models/transaction_identifier_response.ml
kobigurk/mina
585c76fc631616a65c1c8eb067c625376d498ad2
[ "Apache-2.0" ]
null
null
null
src/lib/rosetta_models/transaction_identifier_response.ml
kobigurk/mina
585c76fc631616a65c1c8eb067c625376d498ad2
[ "Apache-2.0" ]
null
null
null
(* * This file has been generated by the OCamlClientCodegen generator for openapi-generator. * * Generated by: https://openapi-generator.tech * * Schema Transaction_identifier_response.t : TransactionIdentifierResponse contains the transaction_identifier of a transaction that was submitted to either `/construction...
44.777778
205
0.775434
f38032d64219d3709965e32b25e8eb5922442738
1,535
ml
OCaml
src/termination/mi.ml
ksk/maedmax
487f9a13af6877b50bde6e19b44c959eb5bec813
[ "BSD-3-Clause" ]
null
null
null
src/termination/mi.ml
ksk/maedmax
487f9a13af6877b50bde6e19b44c959eb5bec813
[ "BSD-3-Clause" ]
2
2019-10-08T13:29:12.000Z
2020-12-29T05:49:08.000Z
src/termination/mi.ml
ksk/maedmax
487f9a13af6877b50bde6e19b44c959eb5bec813
[ "BSD-3-Clause" ]
2
2019-09-19T01:23:26.000Z
2021-05-03T09:43:08.000Z
open Listx open Term open Format open Yices open Arith open Matrix (* Matrix Interpretations *) let rec interpret ~c ~d ~a ~b ?(m = unit_m c d) = function | V x -> ([x, m], zero_v c d) | F (f,ts) -> let l = [ interpret ~c ~d ~a ~b ~m:(mul_mm c m (List.assoc (f, i) a)) ti | i, ti <- ix ts ...
28.962264
76
0.543322
af051e32c9fda1655961c93cc8ad652ab3a3d932
3,575
mli
OCaml
duniverse/opam/src/repository/opamVCS.mli
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
duniverse/opam/src/repository/opamVCS.mli
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
duniverse/opam/src/repository/opamVCS.mli
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
(**************************************************************************) (* *) (* Copyright 2012-2019 OCamlPro *) (* Copyright 2012 INRIA *) (* ...
45.253165
124
0.610629
af3928e0fe365f60e1bd3c41b0c363d21f963851
33,869
ml
OCaml
src/stdune/path.ml
gasche/dune
78c57fe05097d9e61370e104d79491c35080bc3a
[ "MIT" ]
null
null
null
src/stdune/path.ml
gasche/dune
78c57fe05097d9e61370e104d79491c35080bc3a
[ "MIT" ]
null
null
null
src/stdune/path.ml
gasche/dune
78c57fe05097d9e61370e104d79491c35080bc3a
[ "MIT" ]
null
null
null
module Sys = Stdlib.Sys let basename_opt ~is_root ~basename t = if is_root t then None else Some (basename t) let is_dir_sep = if Sys.win32 || Sys.cygwin then fun c -> c = '/' || c = '\\' || c = ':' else fun c -> c = '/' let explode_path = let rec start acc path i = if i < 0 then ...
25.736322
81
0.634917
f3539558cb925c2d164beb28f00bede3c75db985
3,691
ml
OCaml
src/proto_alpha/lib_benchmark/test/test_sampling_code.ml
ulrikstrid/tezos
96d4653ba4fb48eccdd0ca309c98254c39396712
[ "MIT" ]
null
null
null
src/proto_alpha/lib_benchmark/test/test_sampling_code.ml
ulrikstrid/tezos
96d4653ba4fb48eccdd0ca309c98254c39396712
[ "MIT" ]
null
null
null
src/proto_alpha/lib_benchmark/test/test_sampling_code.ml
ulrikstrid/tezos
96d4653ba4fb48eccdd0ca309c98254c39396712
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2021 Nomadic Labs, <contact@nomadic-labs.com> *) ...
38.852632
79
0.539691
af6843692eecdc20056e84a10267f92c73aa5066
6,326
ml
OCaml
hphp/hack/src/server/diagnostic_subscription.ml
cobbles/hhvm
583f879c7e1be697b1695a4506dd2f7171b921d0
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/server/diagnostic_subscription.ml
cobbles/hhvm
583f879c7e1be697b1695a4506dd2f7171b921d0
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/server/diagnostic_subscription.ml
cobbles/hhvm
583f879c7e1be697b1695a4506dd2f7171b921d0
[ "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 Reordered_argument_collections module RP = Relative_path exception Reached_error_limit of RP.Se...
35.539326
94
0.650332