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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
442d21a01c51bd161936c5b6a96a9e5be9cbf008 | 1,229 | ml | OCaml | data/derived/comb/progs/unify/prog1957.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/prog1957.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1957.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n =
let rec helper acc x n =
if n <= 0 then acc else helper (x :: acc) x (n - 1) in
helper [] x n;;
let padZero l1 l2 =
let len1 = List.length l1 in
let len2 = List.length l2 in
if len1 < len2
then ((List.append (clone 0 (len2 - len1)) l1), l2)
else (l1, (List.append (clone 0 (len1 -... | 31.512821 | 74 | 0.49227 |
af753cc17de4d10fd1e0dbc87bf1b484710cf247 | 58,002 | ml | OCaml | hphp/hack/src/server/serverMain.ml | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverMain.ml | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverMain.ml | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"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 ServerEnv
open Reordered_argument_collections
open String_utils
open Option.Monad_infix
(*****... | 36.756654 | 114 | 0.683442 |
affa07678d12241fd8d57c7a2ca0d49ce063d164 | 410 | ml | OCaml | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/experimental/frisch/test_nomli.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/experimental/frisch/test_nomli.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/experimental/frisch/test_nomli.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | type t = A | B
[@@mli]
and s = C | D
[@@mli abstract]
module X = struct
type t = X | Y
[@@mli]
and s
let id x = x
[@@mli]
end
module Y : sig type t type s end = struct
type t = X | Y
type s = A | B
end
let f x y = x + y
[@@mli]
and g a b = (a, b)
[@@mli]
and h a b = (a, b)
[@@mli (... | 13.225806 | 41 | 0.436585 |
8a915ad1beb5f3a94c5819348f214ab7617454cf | 2,605 | ml4 | OCaml | coq_projects/maple-mode/fake_maple/fake_maple.ml4 | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq_projects/maple-mode/fake_maple/fake_maple.ml4 | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq_projects/maple-mode/fake_maple/fake_maple.ml4 | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 2 | 2021-01-19T17:56:28.000Z | 2022-03-28T04:39:41.000Z | let answers =
[ "p := simplify((x0*(1/x0))):", "1";
"p := simplify(((1+x0)*(1/(1+x0)))):", "1";
"p := simplify(((((((x0*(1/x1))+(x1*(1/x0)))*x0)*x1)+(-((x0^2)+(x1^2))))+1)):", "1";
"p := simplify(((x0*(1/(x0+x1)))+(x1*(1/(x0+x1))))):", "1";
"p := factor((((x0^2)+((2*x0)*x1))+(x1^2))):", "(x0 + x1)^2";
"... | 45.701754 | 116 | 0.446449 |
4421b147a39298711e4d6f75436d017284375d3e | 1,901 | ml | OCaml | examples/strict_async/main.ml | gersonmoraes/ocaml-sugar | 87e17d3b648e89b6e68c35ea2edb5c81ca8bac70 | [
"MIT"
] | 3 | 2016-07-28T19:04:35.000Z | 2019-07-08T13:00:34.000Z | examples/strict_async/main.ml | gersonmoraes/ocaml-sugar | 87e17d3b648e89b6e68c35ea2edb5c81ca8bac70 | [
"MIT"
] | null | null | null | examples/strict_async/main.ml | gersonmoraes/ocaml-sugar | 87e17d3b648e89b6e68c35ea2edb5c81ca8bac70 | [
"MIT"
] | null | null | null |
(*
Example of basic usage of Sugar to build an Error Handling Layer
It uses a parametrized module to build sugar syntatic and useful functions
that only make sense in your project.
We're hinting the functions result to make clear what's going on. But you
can effectively remove them, because we're also usin... | 22.104651 | 77 | 0.634929 |
442997aad3243b121e7a2c67a6b1779367b15b69 | 1,034 | mli | OCaml | src/services/inference/merge_stream.mli | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | null | null | null | src/services/inference/merge_stream.mli | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | null | null | null | src/services/inference/merge_stream.mli | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Utils_js
type element = Component of File_key.t Nel.t
type merge_stats
val get_total_files: merge_stats -> int
val get_skip... | 26.512821 | 73 | 0.713733 |
440afcf2e2a6fd2e751632284edac0ee9b949aa5 | 855 | ml | OCaml | test/react/test_lwt_signal.ml | osener/lwt | 2b825c9c551025dd12656088c061a283ce710bb9 | [
"MIT"
] | 1 | 2021-06-14T11:28:37.000Z | 2021-06-14T11:28:37.000Z | test/react/test_lwt_signal.ml | osener/lwt | 2b825c9c551025dd12656088c061a283ce710bb9 | [
"MIT"
] | null | null | null | test/react/test_lwt_signal.ml | osener/lwt | 2b825c9c551025dd12656088c061a283ce710bb9 | [
"MIT"
] | null | null | null | (* This file is part of Lwt, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. *)
open Test
open Lwt
let suite = suite "lwt_signal" [
test "limit"
(fun () ->
let s, push = React.S.create 0 in
let cond = Lwt_condition... | 28.5 | 80 | 0.54152 |
8aee551d8a207082564d7cfcd93d8aa21384ad9a | 429 | ml | OCaml | src/engines/owl_symbolic_engine.ml | owlbarn/owl_onnx | 956f45dd80cc28d85f9b4c061e21c878f969eefd | [
"MIT"
] | 6 | 2019-09-16T20:42:42.000Z | 2019-10-30T11:51:14.000Z | src/engines/owl_symbolic_engine.ml | owlbarn/owl_onnx | 956f45dd80cc28d85f9b4c061e21c878f969eefd | [
"MIT"
] | null | null | null | src/engines/owl_symbolic_engine.ml | owlbarn/owl_onnx | 956f45dd80cc28d85f9b4c061e21c878f969eefd | [
"MIT"
] | 1 | 2019-10-26T15:46:26.000Z | 2019-10-26T15:46:26.000Z | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
(*
open Owl_symbolic_types
module type Sig = sig
type t
val of_symbolic : symbolic_graph -> t
val to_symbolic : t -> symbolic_graph
end
module Make (S : Owl_symbolic_engine_sig.Sig) =... | 14.3 | 63 | 0.706294 |
8aea9090154ec9c316199b8e465ba8c8806a3453 | 9,332 | ml | OCaml | src/irmin/object_graph.ml | shubhamkumar13/irmin | b9849102b73a8036eb85e7bb7136bb35dbabf518 | [
"0BSD"
] | null | null | null | src/irmin/object_graph.ml | shubhamkumar13/irmin | b9849102b73a8036eb85e7bb7136bb35dbabf518 | [
"0BSD"
] | null | null | null | src/irmin/object_graph.ml | shubhamkumar13/irmin | b9849102b73a8036eb85e7bb7136bb35dbabf518 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-2021 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 32.859155 | 80 | 0.585084 |
8ad530cfefa7ffd60e51694d8f573c7e7d1f14fc | 134 | mli | OCaml | lib/ocaml_compat.mli | pitag-ha/ppx_yojson | 1db98d829534dd4396e28678bec141800e70e678 | [
"BSD-2-Clause"
] | null | null | null | lib/ocaml_compat.mli | pitag-ha/ppx_yojson | 1db98d829534dd4396e28678bec141800e70e678 | [
"BSD-2-Clause"
] | null | null | null | lib/ocaml_compat.mli | pitag-ha/ppx_yojson | 1db98d829534dd4396e28678bec141800e70e678 | [
"BSD-2-Clause"
] | null | null | null | (** Redefined standard library functions for compatibility with older Ocaml versions *)
val int_of_string_opt : string -> int option
| 33.5 | 87 | 0.791045 |
afc29af2a2d275749b30a2e605e65b4b1ee4bb26 | 368 | ml | OCaml | src/util.ml | jonathanyc/topple | deefa35094ca0fd7562527348d8bb6abf6f4a5ec | [
"BSD-2-Clause"
] | 2 | 2016-03-22T23:41:46.000Z | 2016-03-22T23:51:00.000Z | src/util.ml | jonathanyc/topple | deefa35094ca0fd7562527348d8bb6abf6f4a5ec | [
"BSD-2-Clause"
] | null | null | null | src/util.ml | jonathanyc/topple | deefa35094ca0fd7562527348d8bb6abf6f4a5ec | [
"BSD-2-Clause"
] | null | null | null | let partition f xs =
let rec partition' f xs bs cs =
match xs with
| [] -> bs, cs
| x :: xs ->
begin match f x with
| `Left b -> partition' f xs (b :: bs) cs
| `Right c -> partition' f xs bs (c :: cs)
| `Discard -> partition' f xs bs cs
end
in
let (bs, cs) = partiti... | 24.533333 | 50 | 0.497283 |
af5202233268bdc8318723ea317b21a7518a7bb9 | 103 | ml | OCaml | code/dynlink/reg.ml | mgttlinger/ocaml-book | 09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75 | [
"BSD-3-Clause"
] | 142 | 2015-01-12T16:45:40.000Z | 2022-01-15T00:47:37.000Z | code/dynlink/reg.ml | mgttlinger/ocaml-book | 09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75 | [
"BSD-3-Clause"
] | 1 | 2018-10-09T13:53:43.000Z | 2018-12-03T04:15:48.000Z | code/dynlink/reg.ml | mgttlinger/ocaml-book | 09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75 | [
"BSD-3-Clause"
] | 17 | 2015-02-10T18:12:15.000Z | 2021-06-21T06:57:32.000Z | open Format
let (registry : (string, unit -> unit) Hashtbl.t) = Hashtbl.create 32
| 4.681818 | 69 | 0.563107 |
4419325d239fcb24922233a103a074f6932c2f16 | 2,272 | mli | OCaml | infer/src/istd/IList.mli | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 4 | 2021-11-19T02:07:46.000Z | 2022-03-24T06:03:50.000Z | infer/src/istd/IList.mli | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 1 | 2021-04-05T15:19:58.000Z | 2021-12-16T04:22:26.000Z | infer/src/istd/IList.mli | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2015-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
val map_changed : equal:('a -> 'a -> bool) -> f:('a -> 'a) -> 'a list -> 'a list
(** like map, but returns the original list ... | 40.571429 | 99 | 0.621039 |
f3bbfd76b8425385179e3ff5d583a4090610b89f | 27,235 | ml | OCaml | src/monitor/flowServerMonitorServer.ml | sevenEng/flow | 4215b5cfb27254f0e927b557291d13ec2b53d6af | [
"MIT"
] | null | null | null | src/monitor/flowServerMonitorServer.ml | sevenEng/flow | 4215b5cfb27254f0e927b557291d13ec2b53d6af | [
"MIT"
] | null | null | null | src/monitor/flowServerMonitorServer.ml | sevenEng/flow | 4215b5cfb27254f0e927b557291d13ec2b53d6af | [
"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.
*)
(* The Flow server monitor will start one or more Flow servers over its lifetime. This module is how
* the monitor interacts with ... | 39.875549 | 102 | 0.669066 |
4425f2d47b8a121538120dd5b01223ed068e06d5 | 81,298 | ml | OCaml | hphp/hack/src/parser/full_fidelity_syntax_type.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_syntax_type.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_syntax_type.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"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. An additional
* directory.
*
**
*
* THIS FILE IS @generated; DO NOT EDIT IT
* To regenerate this file, run
*
* buc... | 32.057571 | 80 | 0.717742 |
442196153372a10f50c0eb8f40c22f4bcfb539cb | 4,079 | ml | OCaml | src/lib_mockup/registration_intf.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/lib_mockup/registration_intf.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/lib_mockup/registration_intf.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"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.121495 | 87 | 0.61976 |
afaa1e1b87deecc52d0dbbc47e8c740dba3666d5 | 9,221 | ml | OCaml | src/util/messages.ml | MartinWehking/analyzer | 11789260de08a3b619f1482f9ef2d77d21699265 | [
"MIT"
] | null | null | null | src/util/messages.ml | MartinWehking/analyzer | 11789260de08a3b619f1482f9ef2d77d21699265 | [
"MIT"
] | 7 | 2022-02-23T17:37:19.000Z | 2022-03-30T16:23:06.000Z | src/util/messages.ml | MartinWehking/analyzer | 11789260de08a3b619f1482f9ef2d77d21699265 | [
"MIT"
] | null | null | null | open GobConfig
module GU = Goblintutil
module Category = MessageCategory
module Severity =
struct
type t =
| Error
| Warning
| Info
| Debug
| Success
[@@deriving eq, hash, show { with_path = false }, enum]
(* TODO: fix ord Error: https://github.com/ocaml-ppx/ppx_deriving/issues/254 *)
le... | 34.02583 | 382 | 0.660991 |
4430e73288ff69190035167c1305691078765a7a | 2,558 | mli | OCaml | src/gapi/gapiAuthResponse.mli | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | null | null | null | src/gapi/gapiAuthResponse.mli | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | null | null | null | src/gapi/gapiAuthResponse.mli | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | null | null | null | (** Stores data from authorization responses.
*)
module ClientLogin :
sig
type auth_token = string
type captcha = {
url : string;
token : string;
}
val url : (captcha, string) GapiLens.t
val token : (captcha, string) GapiLens.t
end
module OAuth1 :
sig
type request_token = {
request_token ... | 25.838384 | 75 | 0.738077 |
8a4fe9dc4742c50cfa3e46817655e6f7925b8205 | 5,450 | ml | OCaml | hphp/hack/src/typing/typing_ops.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_ops.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_ops.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"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 Core_kernel
open Typing_defs
module Reason = Typing_reason
module TUtils = Typing_utils
module Env = Ty... | 33.850932 | 86 | 0.611009 |
8a948af0c851458b2d8370adde3fe183690d3f5b | 4,955 | ml | OCaml | src/parser_utils/output/printers/pretty_printer.ml | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | 20,996 | 2015-01-01T13:51:47.000Z | 2022-03-31T17:44:01.000Z | src/parser_utils/output/printers/pretty_printer.ml | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | 8,315 | 2015-01-01T19:56:43.000Z | 2022-03-31T15:58:10.000Z | src/parser_utils/output/printers/pretty_printer.ml | tbergq/flow | 8c866379d12dc32c6a0e129739148c8cd9169db8 | [
"MIT"
] | 2,338 | 2015-01-05T03:28:26.000Z | 2022-03-26T20:40:56.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 Layout
(* TODO: Make this configurable *)
let max_width = 80
type break_mode =
| Break
| Flat
type writer = {
src: So... | 32.175325 | 100 | 0.551362 |
8ab082290b68256ec596e0c24e2984b5d7aa5650 | 4,467 | ml | OCaml | infer/src/istd/UnionFind.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | infer/src/istd/UnionFind.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | infer/src/istd/UnionFind.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
module type Element = sig
type t [@@deriving compare]
val is_simpler_than : t -> t -> bool
end
... | 31.020833 | 99 | 0.619655 |
441e264c1480ee08f76311fbaed5c24cf22872eb | 193 | mli | OCaml | plugins/x86/x86_backend.mli | aoidos-bin/bap | d3d8537db19f33bb65508e28458c2897f70df9a7 | [
"MIT-CMU",
"MIT"
] | null | null | null | plugins/x86/x86_backend.mli | aoidos-bin/bap | d3d8537db19f33bb65508e28458c2897f70df9a7 | [
"MIT-CMU",
"MIT"
] | null | null | null | plugins/x86/x86_backend.mli | aoidos-bin/bap | d3d8537db19f33bb65508e28458c2897f70df9a7 | [
"MIT-CMU",
"MIT"
] | null | null | null | open Core_kernel
open Bap.Std
type opcode = string
module type S = sig
val register : opcode -> lifter -> unit
module Make (T : Target) : Target
end
module IA32 : S
module AMD64 : S
| 14.846154 | 43 | 0.678756 |
8a748423be35d4cc615f6894f1e8fdea0066c7a6 | 887 | mli | OCaml | vendor/ppx_hash/runtime-lib/siphash/siphash.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/ppx_hash/runtime-lib/siphash/siphash.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/ppx_hash/runtime-lib/siphash/siphash.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | include Base.Hash.S with type seed = string and type hash_value = int
(** [Siphash] uses first 16 chars of the [seed] string to initialize/reset the hash
state, padding it to the right with zero bytes if it's too short. The rest of the
string is discarded. *)
external alloc : unit -> stat... | 59.133333 | 90 | 0.640361 |
8a363accf3cc6275a6b36b28a5dd2c6e3c178d69 | 3,517 | mli | OCaml | src/findlib/fl_metascanner.mli | robertpi/ocamlfind | 76c6e041ff1adf225cff033426b46f7836da755e | [
"MIT"
] | 1 | 2015-12-01T16:23:19.000Z | 2015-12-01T16:23:19.000Z | src/findlib/fl_metascanner.mli | robertpi/ocamlfind | 76c6e041ff1adf225cff033426b46f7836da755e | [
"MIT"
] | null | null | null | src/findlib/fl_metascanner.mli | robertpi/ocamlfind | 76c6e041ff1adf225cff033426b46f7836da755e | [
"MIT"
] | null | null | null | (* $Id$
* ----------------------------------------------------------------------
*
*)
(** Parses META files *)
open Fl_metatoken
type formal_pred =
[ `Pred of string (** Positive occurence of a formal predicate var *)
| `NegPred of string (** Negative occurence of a formal predicate var *)
]
typ... | 34.145631 | 78 | 0.65027 |
8ad8e2ef99af8da25653188199ebc53bb05cf6ca | 3,335 | mli | OCaml | src/lib_shell/node.mli | blockchain-analysis-study/my-tezos | 948eb71a5ee68c0691b011dc17faf523d8c254e9 | [
"MIT"
] | null | null | null | src/lib_shell/node.mli | blockchain-analysis-study/my-tezos | 948eb71a5ee68c0691b011dc17faf523d8c254e9 | [
"MIT"
] | null | null | null | src/lib_shell/node.mli | blockchain-analysis-study/my-tezos | 948eb71a5ee68c0691b011dc17faf523d8c254e9 | [
"MIT"
] | 1 | 2021-06-04T09:31:48.000Z | 2021-06-04T09:31:48.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 42.75641 | 79 | 0.594303 |
8a1f0e28a751c2869f9f12a5bc7aa7b4e526194a | 2,424 | ml | OCaml | upstream/ocaml_409/typing/typedecl_unboxed.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | upstream/ocaml_409/typing/typedecl_unboxed.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | upstream/ocaml_409/typing/typedecl_unboxed.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* Gabriel... | 48.48 | 76 | 0.464934 |
8a4daed89f85a44b3554ef3e83d8a7b7d0f12e82 | 481 | ml | OCaml | src/lib/debounce.ml | n1ru4l/sure-deploy | fe4f0651234d5bd9d55e9fa7b99532bd4c2d0e29 | [
"Apache-2.0"
] | 39 | 2018-02-13T09:12:03.000Z | 2022-03-09T21:34:22.000Z | src/lib/debounce.ml | n1ru4l/sure-deploy | fe4f0651234d5bd9d55e9fa7b99532bd4c2d0e29 | [
"Apache-2.0"
] | 14 | 2018-02-21T15:32:20.000Z | 2020-08-29T07:40:40.000Z | src/lib/debounce.ml | n1ru4l/sure-deploy | fe4f0651234d5bd9d55e9fa7b99532bd4c2d0e29 | [
"Apache-2.0"
] | 2 | 2018-02-28T09:57:10.000Z | 2020-01-31T08:26:43.000Z | (* simple and stupid debounce implementation *)
open Core
type t = {
mutable last_triggered : Time.t;
cooldown : Time.Span.t;
}
let init ?(cooldown_ms = 2000.) () =
{last_triggered = Time.epoch; cooldown = Time.Span.of_ms cooldown_ms}
let trigger v f =
let now = Time.now () in
let since_last_triggered = Ti... | 24.05 | 71 | 0.669439 |
44037da4ce8eb7f90c4e9d18b7e84ccbee3194a4 | 3,108 | ml | OCaml | src/ast/analyzing/langs/fortran/parsing/src/labels/f_type_spec.ml | petr-bauch/cca | 6011c602e1184fff4fc9a9b880cb59a070746929 | [
"Apache-2.0"
] | 4 | 2021-03-26T01:43:06.000Z | 2022-02-22T13:16:26.000Z | src/ast/analyzing/langs/fortran/parsing/src/labels/f_type_spec.ml | petr-bauch/cca | 6011c602e1184fff4fc9a9b880cb59a070746929 | [
"Apache-2.0"
] | 2 | 2020-10-25T07:44:54.000Z | 2021-03-28T08:15:14.000Z | src/ast/analyzing/langs/fortran/parsing/src/labels/f_type_spec.ml | petr-bauch/cca | 6011c602e1184fff4fc9a9b880cb59a070746929 | [
"Apache-2.0"
] | 3 | 2017-02-28T02:57:32.000Z | 2022-02-09T07:01:11.000Z | (*
Copyright 2013-2018 RIKEN
Copyright 2018-2020 Chiba Institude of Technology
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
U... | 28.513761 | 75 | 0.581725 |
8ad0e48755382acc91edd391a26f973f84305957 | 14,616 | ml | OCaml | ocaml/imp/7-imp++/1-imp++-bigstep/parser.ml | kframework/semantic-approaches | 6f64eac09e005fe4eae7141e3c0e0f5711da0647 | [
"MIT"
] | 10 | 2018-12-18T21:13:52.000Z | 2020-09-28T00:15:42.000Z | ocaml/imp/7-imp++/1-imp++-bigstep/parser.ml | kframework/semantic-approaches | 6f64eac09e005fe4eae7141e3c0e0f5711da0647 | [
"MIT"
] | null | null | null | ocaml/imp/7-imp++/1-imp++-bigstep/parser.ml | kframework/semantic-approaches | 6f64eac09e005fe4eae7141e3c0e0f5711da0647 | [
"MIT"
] | 1 | 2018-12-22T01:21:01.000Z | 2018-12-22T01:21:01.000Z | type token =
| INT of (int)
| ID of (string)
| PLUS
| DIV
| LESSTHAN
| NOT
| AND
| EQ
| IF
| ELSE
| WHILE
| TRUE
| FALSE
| READ
| SPAWN
| PRINT
| HALT
| INTDCLR
| LPAREN
| RPAREN
| LCBRCT
| RCBRCT
| SEMICOLON
| COMMA
| EOF
open Parsing;;
let _ = parse_error;;
# 2 "pars... | 34.149533 | 90 | 0.637657 |
8abd9f93b2a65db0d0bdf08ce529500fa74aed7d | 13,684 | ml | OCaml | hphp/hack/src/decl/shallow_decl.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/shallow_decl.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/shallow_decl.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Shallow_decl_defs
open Aast
open Typing_deps
open Typing_defs
module Attrs = Naming_attributes
... | 33.787654 | 95 | 0.660918 |
8a00eafd399bfba2d24885844e1b1678a9992f2b | 169 | ml | OCaml | src/bin/memory_profiler.memtrace.ml | hra687261/dolmen | decc525cca878fd19c7c33f7370aa61840ee54af | [
"BSD-2-Clause"
] | null | null | null | src/bin/memory_profiler.memtrace.ml | hra687261/dolmen | decc525cca878fd19c7c33f7370aa61840ee54af | [
"BSD-2-Clause"
] | null | null | null | src/bin/memory_profiler.memtrace.ml | hra687261/dolmen | decc525cca878fd19c7c33f7370aa61840ee54af | [
"BSD-2-Clause"
] | null | null | null |
let available = true
let start filename sampling_rate =
let _s =
Memtrace.start_tracing
~filename ~sampling_rate
~context:(Some "dolmen")
in
()
| 14.083333 | 34 | 0.656805 |
d2e0f3c2be367dcf402b561e4457c55ce0b51898 | 1,281 | ml | OCaml | ocaml-sources/testsuite/tests/typing-gadts/pr5997.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | ocaml-sources/testsuite/tests/typing-gadts/pr5997.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | ocaml-sources/testsuite/tests/typing-gadts/pr5997.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | null | null | null | (* TEST
* expect
*)
type (_, _) comp =
| Eq : ('a, 'a) comp
| Diff : ('a, 'b) comp
;;
module U = struct type t = T end;;
module M : sig
type t = T
val comp : (U.t, t) comp
end = struct
include U
let comp = Eq
end;;
match M.comp with | Diff -> false;;
[%%expect{|
type (_, _) comp = Eq : ('a, 'a) comp ... | 22.875 | 67 | 0.568306 |
8a0c3d01d997c860df7ec7c7ef684857cf5323be | 1,009 | ml | OCaml | data/derived/comb/progs/unify/prog6066.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/prog1204.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1204.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n = if n < 1 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
if (List.length l1) < (List.length l2)
then (((clone 0 ((List.length l2) - (List.length l1))) @ l1), l2)
else
if (List.length l1) > (List.length l2)
then (l1, ((clone 0 ((List.length l1) - (List.length l2))) @ l2))
... | 32.548387 | 71 | 0.480674 |
8a6c861397aec76b73a1ce82e64a53ce18e44f72 | 131 | ml | OCaml | data/derived/comb/progs/unify/prog3409.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/prog3409.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3409.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec wwhile (f,b) =
match f b with | (a,b) -> if not b then a else wwhile (f, a);;
let fixpoint (f,b) = wwhile (f, (f b));;
| 21.833333 | 64 | 0.549618 |
442fc734398655ddb2769f10c1c41784b61a9166 | 6,106 | ml | OCaml | src/lib/eval.ml | jserot/rfsm | 5f6dcef41b8d1a8aae01520c0c638ba346e0b36c | [
"MIT"
] | 21 | 2018-04-23T10:08:40.000Z | 2021-03-24T16:04:53.000Z | src/lib/eval.ml | jserot/rfsm | 5f6dcef41b8d1a8aae01520c0c638ba346e0b36c | [
"MIT"
] | 3 | 2018-06-06T07:13:18.000Z | 2020-03-25T11:12:03.000Z | src/lib/eval.ml | jserot/rfsm | 5f6dcef41b8d1a8aae01520c0c638ba346e0b36c | [
"MIT"
] | null | null | null | (**********************************************************************)
(* *)
(* This file is part of the RFSM package *)
(* *)
(* Copyright (c) 2018-prese... | 40.979866 | 114 | 0.554537 |
443079a53a7259883805cf002be9781e5ba577f1 | 34,499 | ml | OCaml | infer/src/nullsafe/modelTables.ml | krArrow/infer | ae3f1d79c9cec09242239360e459c077bc54a8aa | [
"MIT"
] | null | null | null | infer/src/nullsafe/modelTables.ml | krArrow/infer | ae3f1d79c9cec09242239360e459c077bc54a8aa | [
"MIT"
] | null | null | null | infer/src/nullsafe/modelTables.ml | krArrow/infer | ae3f1d79c9cec09242239360e459c077bc54a8aa | [
"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! IStd
module Hashtbl = Caml.Hashtbl
(*
* This file is a big bunch of tables; they read better with really long lines.
* @no... | 47.065484 | 295 | 0.702223 |
8a9eab156e9e4a52b48e4cb15d25f0425f93dd74 | 1,037 | ml | OCaml | src/base/compute/owl_computation_engine.ml | jzstark/owl | eead31f1920e63b876421e6a30e61c947f29827f | [
"MIT"
] | null | null | null | src/base/compute/owl_computation_engine.ml | jzstark/owl | eead31f1920e63b876421e6a30e61c947f29827f | [
"MIT"
] | null | null | null | src/base/compute/owl_computation_engine.ml | jzstark/owl | eead31f1920e63b876421e6a30e61c947f29827f | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific Computing
* Copyright (c) 2016-2022 Liang Wang <liang@ocaml.xyz>
*)
(**
This functor takes a device as its input, then it generates the computation
graph module without flattening the module hierarchy.
*)
module Make_Graph (Device : Owl_types_computation_device.Sig) = struct
incl... | 27.289474 | 83 | 0.741562 |
8aabd62b1f269bbf40791b19a09e83227c410233 | 424 | ml | OCaml | examples/closure/partial.ml | Kakadu/ocaml-memgraph | 74be31dfce32583db0fa5272f933f7f2670da51e | [
"MIT"
] | null | null | null | examples/closure/partial.ml | Kakadu/ocaml-memgraph | 74be31dfce32583db0fa5272f933f7f2670da51e | [
"MIT"
] | null | null | null | examples/closure/partial.ml | Kakadu/ocaml-memgraph | 74be31dfce32583db0fa5272f933f7f2670da51e | [
"MIT"
] | null | null | null |
let test () =
let f x y z = x + y + z in
f
let test2 () =
let f x y z = x + y + z in
let g = f 11 in
f, g
let () =
let _f1 = test () in
let f2, _g2 = test2 () in
Memgraph.Repr.(context (fun ctx ->
Memgraph.Dot.print_list Format.std_formatter [
(* "f1", ctx.mk f1; *)
(* "f1 18", ctx.mk... | 19.272727 | 50 | 0.46934 |
44073a48e1c4ae6c9c20ca190c3a932d42855f57 | 3,283 | ml | OCaml | src/ivyutil.ml | spl/ivy | b1b516484fba637eb24e83d27555d273495e622b | [
"BSD-3-Clause"
] | null | null | null | src/ivyutil.ml | spl/ivy | b1b516484fba637eb24e83d27555d273495e622b | [
"BSD-3-Clause"
] | 3 | 2016-01-29T21:16:41.000Z | 2016-01-31T09:16:57.000Z | src/ivyutil.ml | spl/ivy | b1b516484fba637eb24e83d27555d273495e622b | [
"BSD-3-Clause"
] | 1 | 2020-08-16T06:03:00.000Z | 2020-08-16T06:03:00.000Z | (* Misc. useful things. *)
open Cil
open Pretty
module E = Errormsg
let printFile ~(extraPrinting:(out_channel->unit) option)
~(globinit:fundec option)
?(printer : cilPrinter = defaultCilPrinter)
(f: file) (name: string) : unit
=
if name <> "" then begin
try
let... | 30.682243 | 76 | 0.631739 |
440fbab0482bc202010ed1ad6d7b4b7551c3c3da | 28 | mli | OCaml | vendor/virtual_dom/ui_event/ui_event.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/virtual_dom/ui_event/ui_event.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/virtual_dom/ui_event/ui_event.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | include Ui_event_intf.Event
| 14 | 27 | 0.892857 |
afbdabac5836fd574efeb5d320b6505bd339e395 | 2,844 | ml | OCaml | test/passing/align_cases.ml | ulrikstrid/ocamlformat | 1d82ab5fe9ffc9e04d6a7f70f2ff4324c764b3f0 | [
"MIT"
] | 6 | 2018-06-26T10:08:18.000Z | 2021-12-17T03:01:06.000Z | test/passing/align_cases.ml | ulrikstrid/ocamlformat | 1d82ab5fe9ffc9e04d6a7f70f2ff4324c764b3f0 | [
"MIT"
] | 1 | 2022-02-08T19:16:58.000Z | 2022-02-09T10:55:37.000Z | test/passing/align_cases.ml | ulrikstrid/ocamlformat | 1d82ab5fe9ffc9e04d6a7f70f2ff4324c764b3f0 | [
"MIT"
] | 4 | 2018-04-11T11:35:14.000Z | 2021-12-17T03:02:13.000Z | type x =
| Fooooooooooo
| Fooooooooooooo
| Fooooooooooooooo
| Foooooooooooooooooo
| Foo of padding * int array
| Foooooooo of padding * int array
| Fooooooooo of padding * int array
| Fooooooooooo of padding * int array * int array
(* fooooooooooooooooo *)
|... | 28.44 | 75 | 0.62834 |
8abf4c108060f2a54a8e9c6aa33b58a9e411b86b | 247 | mli | OCaml | libraries/ec2/lib/replaceNetworkAclAssociation.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/replaceNetworkAclAssociation.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/ec2/lib/replaceNetworkAclAssociation.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = ReplaceNetworkAclAssociationRequest.t
type output = ReplaceNetworkAclAssociationResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 35.285714 | 74 | 0.777328 |
4417eb376a923b11955b302878a38fc6fd52ce9f | 13,043 | ml | OCaml | hphp/hack/src/server/hackProgram.ml | craigcarnell/hhvm | 8f5e53a707c6158d2c81222ee73e09bce945c215 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/hackProgram.ml | craigcarnell/hhvm | 8f5e53a707c6158d2c81222ee73e09bce945c215 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/hackProgram.ml | craigcarnell/hhvm | 8f5e53a707c6158d2c81222ee73e09bce945c215 | [
"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 Utils
op... | 37.805797 | 108 | 0.647014 |
441a6d38ab515fcd36a4534e3d780b71e4059ae1 | 5,686 | ml | OCaml | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/asmcomp/reg.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/asmcomp/reg.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/asmcomp/reg.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 28.288557 | 79 | 0.53834 |
d2f7fd10e67cf0e8d2fcd942f63626bd0b373861 | 134,485 | ml | OCaml | hphp/hack/src/hhbc/emit_expression.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/emit_expression.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/emit_expression.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Hhbc_ast
open Instruction_sequence
open Ast_class_expr
open Emit_pos
module A = Ast
module H ... | 34.124588 | 99 | 0.652036 |
4401f5b5a62e05a3cff7c90a5f761eeb727f2d6a | 38,487 | ml | OCaml | src/reason-parser/reason_toolchain.cppo.ml | romanschejbal/reason | aea245a43eb44034d2fccac7028b640a437af239 | [
"MIT"
] | 1 | 2021-12-21T12:51:55.000Z | 2021-12-21T12:51:55.000Z | src/reason-parser/reason_toolchain.cppo.ml | romanschejbal/reason | aea245a43eb44034d2fccac7028b640a437af239 | [
"MIT"
] | null | null | null | src/reason-parser/reason_toolchain.cppo.ml | romanschejbal/reason | aea245a43eb44034d2fccac7028b640a437af239 | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* Reason *)
(* *)
(***********************... | 39.152594 | 134 | 0.658586 |
442f2dd645732fd035c3a426c942b0bc0a4c41be | 10,384 | ml | OCaml | vendor/cmdliner/src/cmdliner_base.ml | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | 1 | 2022-03-18T02:24:50.000Z | 2022-03-18T02:24:50.000Z | vendor/cmdliner/src/cmdliner_base.ml | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | null | null | null | vendor/cmdliner/src/cmdliner_base.ml | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | 1 | 2021-05-07T18:08:53.000Z | 2021-05-07T18:08:53.000Z | (*---------------------------------------------------------------------------
Copyright (c) 2011 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
cmdliner v1.0.4-27-gb4f5656
---------------------------------------------------------------------------*... | 33.934641 | 79 | 0.608629 |
8adc727e8ef51ea070ffce8d6e436263e7c7e4cb | 13,822 | ml | OCaml | hphp/hack/src/decl/shallow_decl.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/shallow_decl.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/shallow_decl.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Decl_defs
open Decl_fun_utils
open Shallow_decl_defs
open Aast
open Typing_deps
open Typing_de... | 32.370023 | 80 | 0.677615 |
4432cdcfc483641645870d701f0a22e6a69b71e0 | 889 | mli | OCaml | hphp/hack/src/providers/provider_config.mli | modyharshit23/hhvm | dc14931d80a49c60fac2365b92f3648e12d9b0f4 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/providers/provider_config.mli | modyharshit23/hhvm | dc14931d80a49c60fac2365b92f3648e12d9b0f4 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/providers/provider_config.mli | modyharshit23/hhvm | dc14931d80a49c60fac2365b92f3648e12d9b0f4 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2019, 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 decl_cache_key =
| Fun_decl of string
| Class_decl of string
| Record_decl of string
| Typedef_decl of ... | 24.694444 | 68 | 0.735658 |
8a862c4cedf14d109fb103c311cbd45c8329ec4c | 4,791 | ml | OCaml | code/src/netshm/netshm_hashtbl.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/src/netshm/netshm_hashtbl.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/src/netshm/netshm_hashtbl.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | (* $Id$ *)
open Netshm
open Netshm_data
type ('a, 'b) t =
{ table : shm_table;
key_only_manager : 'a data_manager;
key_val_manager : ('a * 'b) data_manager;
key_hash_fn : 'a -> int32;
}
let manage ?pagesize ?init key_manager val_manager lm sd =
let t = Netshm.manage ?pagesize ?init lm sd ... | 21.977064 | 71 | 0.555416 |
8a9bf82accc354e769e62de2ec48eea4ec897276 | 9,701 | ml | OCaml | hphp/hack/src/typing/typing_arrays.ml | swtaarrs/hhvm | dfb8867363623d7d02d03a64691610f1289ef5ad | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-02-04T22:07:59.000Z | 2021-02-04T22:07:59.000Z | hphp/hack/src/typing/typing_arrays.ml | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_arrays.ml | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_core
open Typing_defs
open Type_mapper
module Env = Typing_env
module TUtils = Typing_utils
module Reason ... | 36.063197 | 80 | 0.678384 |
8a4b8eecf888f47654b88e14e75049f1c7960cbe | 6,088 | ml | OCaml | vendors/tezos-modded/src/proto_alpha/lib_delegate/client_baking_lib.ml | web-vertalo/ligo | 153bf691992580f4d163f4e8129292f7759efd5b | [
"MIT"
] | null | null | null | vendors/tezos-modded/src/proto_alpha/lib_delegate/client_baking_lib.ml | web-vertalo/ligo | 153bf691992580f4d163f4e8129292f7759efd5b | [
"MIT"
] | null | null | null | vendors/tezos-modded/src/proto_alpha/lib_delegate/client_baking_lib.ml | web-vertalo/ligo | 153bf691992580f4d163f4e8129292f7759efd5b | [
"MIT"
] | 1 | 2021-08-18T16:15:52.000Z | 2021-08-18T16:15:52.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 40.052632 | 80 | 0.595762 |
440915386bed809bf84ca3d6bfd3389e5c1c32e2 | 330 | ml | OCaml | etc/example/cls-reg-bug.ml | prg-titech/BacCaml | 0f572719af0af16d3ba837c31df9dda4f11f583d | [
"Apache-2.0"
] | 24 | 2018-01-29T12:51:24.000Z | 2022-03-24T09:06:50.000Z | etc/example/cls-reg-bug.ml | prg-titech/BacCaml | 0f572719af0af16d3ba837c31df9dda4f11f583d | [
"Apache-2.0"
] | 8 | 2017-12-26T11:01:51.000Z | 2018-10-11T14:04:57.000Z | etc/example/cls-reg-bug.ml | prg-titech/BacCaml | 0f572719af0af16d3ba837c31df9dda4f11f583d | [
"Apache-2.0"
] | 2 | 2019-02-19T20:40:37.000Z | 2020-04-09T23:20:58.000Z | (* thanks to autotaker: https://github.com/esumii/min-caml/pull/2 *)
;;
let rec h p =
let v1, v2, v3, v4, v5, v6, v7, v8, v9, v10 = p in
let rec g z =
let r = v1 + v2 + v3 + v4 + v5 + v6 + v7 + v8 + v9 + v10 in
if z > 0 then r else g (-z)
in
g 1
in
print_int (h (1, 2, 3, 4, 5, 6, 7, 8, 9, 10));
print_n... | 23.571429 | 68 | 0.527273 |
af93aea6d707b816d38c2d2e7c074fb90fefda78 | 1,425 | mll | OCaml | csisat/lib/io/csisatDimacsLex.mll | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 32 | 2019-10-30T10:09:56.000Z | 2022-03-28T07:15:04.000Z | csisat/lib/io/csisatDimacsLex.mll | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 1 | 2021-04-14T19:19:15.000Z | 2021-04-15T02:03:56.000Z | csisat/lib/io/csisatDimacsLex.mll | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 5 | 2019-11-08T07:49:00.000Z | 2022-03-01T18:09:57.000Z | (*
* CSIsat is an interpolating decision procedure for LA + EUF.
* This file is part of CSIsat.
*
* Copyright (C) 2007-2008 Dirk Beyer and Damien Zufferey.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the... | 34.756098 | 86 | 0.566316 |
8a4efa5174eaf3d88fe7c3535662fbfcc4d2549a | 1,516 | ml | OCaml | benchmarks/priority_queue/priority_queue/submissions/sub1.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 10 | 2018-11-06T00:08:12.000Z | 2019-12-05T11:05:16.000Z | benchmarks/priority_queue/priority_queue/submissions/sub1.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | null | null | null | benchmarks/priority_queue/priority_queue/submissions/sub1.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 2 | 2020-02-06T14:59:50.000Z | 2022-03-16T19:25:43.000Z |
type heap = EMPTY | NODE of rank * value * heap * heap
and rank = int
and value = int
exception EmptyHeap
let rank h =
match h with
EMPTY -> -1
| NODE (r, _, _, _) -> r
let shake (x, lh, rh) =
if (rank lh) >= (rank rh)
then NODE (rank rh+1, x, lh, rh)
else NODE (rank lh+1, x, rh, ... | 23.6875 | 91 | 0.454485 |
440058ee490a5dd5f9d862a7eb294d665b72e295 | 635 | ml | OCaml | data/derived/comb/progs/unify/prog8093.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/prog3300.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3300.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 buildAverage (e1,e2) = Average (e1, e2);;
let buildThresh (a,b,a_less,b_less) = Thresh (a, b, a_less, b_less);;
let buildTimes (e1,e2) = Times (e1, e2);;
le... | 22.678571 | 69 | 0.555906 |
4438860b65365238ff125404222c4470449942ed | 1,768 | ml | OCaml | tests_native/skip_directives.ml | baransu/graphql_ppx_re | eb8648d1552fbc11989b9197ef41a7a958b2545f | [
"MIT"
] | 60 | 2019-08-11T07:11:16.000Z | 2020-01-15T13:24:06.000Z | tests_native/skip_directives.ml | reasonml-community/graphql_ppx | eb8648d1552fbc11989b9197ef41a7a958b2545f | [
"MIT"
] | 90 | 2020-01-23T18:15:26.000Z | 2020-06-18T01:05:42.000Z | tests_native/skip_directives.ml | teamwalnut/graphql-ppx | 4a1fbfebf99a3b291bf647a49e069eba1f471f52 | [
"MIT"
] | 13 | 2019-10-07T04:47:32.000Z | 2020-01-04T20:00:33.000Z | open Test_shared
module MyQuery =
[%graphql
{|
query ($var: Boolean!) {
v1: variousScalars {
nullableString @skip(if: $var)
string @skip(if: $var)
}
v2: variousScalars {
nullableString @include(if: $var)
string @include(if: $var)
}
}
|}]
type qt = MyQuery.t
let pp formatte... | 27.2 | 105 | 0.622172 |
8a717cfd6209d5fa640534bbaee76c5bcfa2bbb2 | 7,759 | mli | OCaml | doc/stdlib-cmi/printf.mli | BuckleTypes/bs-containers | dfd1360dc74ede57c09e9f9d837ce59285af6fd2 | [
"BSD-2-Clause"
] | 17 | 2017-03-21T21:10:57.000Z | 2017-06-25T19:42:29.000Z | doc/stdlib-cmi/printf.mli | BuckleTypes/bs-containers | dfd1360dc74ede57c09e9f9d837ce59285af6fd2 | [
"BSD-2-Clause"
] | 30 | 2017-03-21T20:30:00.000Z | 2017-06-11T18:14:17.000Z | doc/stdlib-cmi/printf.mli | reasonml-community/bs-containers | dfd1360dc74ede57c09e9f9d837ce59285af6fd2 | [
"BSD-2-Clause"
] | 5 | 2017-03-21T20:05:40.000Z | 2017-04-28T20:43:58.000Z | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Leroy and Pie... | 47.601227 | 77 | 0.628431 |
8aaeb509e496bb70ccde77eefc1d595b9063e9c6 | 2,114 | mli | OCaml | src/bin_node/node_snapshot_command.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | src/bin_node/node_snapshot_command.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | src/bin_node/node_snapshot_command.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 66.0625 | 79 | 0.484863 |
8a8dc7058cccf2b2d9f19093fa435123810c9b6e | 7,051 | mli | OCaml | src/lib_test/qcheck_helpers.mli | zshipko/tezos | c097112b0c0f19d93a8de4cc379cf33de9e07355 | [
"MIT"
] | null | null | null | src/lib_test/qcheck_helpers.mli | zshipko/tezos | c097112b0c0f19d93a8de4cc379cf33de9e07355 | [
"MIT"
] | null | null | null | src/lib_test/qcheck_helpers.mli | zshipko/tezos | c097112b0c0f19d93a8de4cc379cf33de9e07355 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 Nomadic Labs <contact@nomadic-labs.com> *)
... | 43.524691 | 87 | 0.618636 |
8a23a64222f2f65f3d96ed21ae34d8bbb4ab2dc2 | 1,001 | ml | OCaml | src/dag/dag_intf.ml | argent-smith/dune | 16751820e66f3c5d00e8feb64a3008f108dee88f | [
"MIT"
] | null | null | null | src/dag/dag_intf.ml | argent-smith/dune | 16751820e66f3c5d00e8feb64a3008f108dee88f | [
"MIT"
] | null | null | null | src/dag/dag_intf.ml | argent-smith/dune | 16751820e66f3c5d00e8feb64a3008f108dee88f | [
"MIT"
] | null | null | null | (** Detection of cycles in dynamic dags *)
open! Stdune
module type Value = sig
type t
end
module type S = sig
(** A DAG (Directed Acyclic Graph). *)
type t
(** Info about a node in the DAG. *)
type node_info
(** Type of values attached to nodes. *)
type value
type node =
{ data : value
; ... | 23.27907 | 79 | 0.643357 |
4432120ab53201c9d3ba938b13c9daac51f2062f | 4,811 | mly | OCaml | core/Parser.mly | sloboegen98/mtt-lang | 9909fc4ea65706984bab898729a870b80e1a35af | [
"MIT"
] | 16 | 2021-04-03T10:50:01.000Z | 2022-03-22T20:40:03.000Z | core/Parser.mly | sloboegen98/mtt-lang | 9909fc4ea65706984bab898729a870b80e1a35af | [
"MIT"
] | 42 | 2020-09-09T16:22:03.000Z | 2021-02-05T12:49:26.000Z | core/Parser.mly | sloboegen98/mtt-lang | 9909fc4ea65706984bab898729a870b80e1a35af | [
"MIT"
] | 5 | 2020-09-29T15:19:21.000Z | 2020-12-20T23:57:18.000Z | %token EOF
(* Identifiers *)
%token <string> IDR
%token <string> IDM
%token <string> IDT
(* Arithmetic *)
%token <Nat.t> UINTZ
(* Arithmetic *)
%token ZERO SUCC (* for pattern-matching *)
%token PLUS
%token MINUS
(* multiplication is `CROSS` token *)
%token SLASH
(* Parentheses *)
%token LPAREN RPAREN
%token LANGLE... | 24.545918 | 120 | 0.620245 |
8a19644f76fc458a9a6c05b67bd0f4c534a64347 | 10,699 | ml | OCaml | code/src/netmulticore/netmcore_buffer.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/src/netmulticore/netmcore_buffer.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/src/netmulticore/netmcore_buffer.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | (* $Id$ *)
open Netmcore_heap
open Printf
type 'h t =
{ bsize : int;
mutable blocks : Bytes.t array;
(* Allocated strings have length [bsize]. Unused strings are just "" *)
mutable null_index : int;
(* The index of the first byte in the first block *)
mutable start_index : int;
... | 25.780723 | 87 | 0.601645 |
8abcc17b884289741bae4aa9572e8ab27dc5259d | 3,273 | mll | OCaml | lexer.mll | TheLokin/Interprete-de-Lambda-Calculo | 600f934faca70a998e41675aa0fae1b767a75f29 | [
"MIT"
] | 5 | 2021-11-06T15:32:25.000Z | 2022-01-18T15:40:04.000Z | lexer.mll | TheLokin/Lambda-Calculus-Interpreter | 600f934faca70a998e41675aa0fae1b767a75f29 | [
"MIT"
] | null | null | null | lexer.mll | TheLokin/Lambda-Calculus-Interpreter | 600f934faca70a998e41675aa0fae1b767a75f29 | [
"MIT"
] | null | null | null | (* The lexical analyzer: lexer.ml is generated automatically from lexer.mll *)
{
open Lexing;;
open Parser;;
open Bytes;;
exception Lexical_error of string;;
(* Support functions for comments *)
let comments = ref 0;;
let open_comment () =
comments := !comments+1
;;
let close_comment () =
... | 18.082873 | 79 | 0.459212 |
8ab113dee5fb37c87220b19e0f13779bbfadc8be | 4,981 | ml | OCaml | hphp/hack/test/unit/utils/cli_args/cli_args_test.ml | jeffomatic/hhvm | afd1a0c089aff36a31b8990490366606694a2842 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-07-21T09:08:35.000Z | 2019-07-21T09:08:35.000Z | hphp/hack/test/unit/utils/cli_args/cli_args_test.ml | jeffomatic/hhvm | afd1a0c089aff36a31b8990490366606694a2842 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/unit/utils/cli_args/cli_args_test.ml | jeffomatic/hhvm | afd1a0c089aff36a31b8990490366606694a2842 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-07-30T11:52:42.000Z | 2019-07-30T11:52:42.000Z | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Asserter
open Cli_args
let spec_input = {|
{
"files_to_check": [
"/some/path/prefix1",
{
"from_prefix_i... | 27.672222 | 98 | 0.67356 |
8a5d4b4f1f99deda5c5c41f163f60adfa78c6657 | 456 | ml | OCaml | dist/gcc-compatible/lib_gen/EverCrypt_Ed25519_gen.ml | BlackHorseSolutions/hacl-star | e7d8effb0c14f049cf016c09882c18681849c2a3 | [
"Apache-2.0"
] | 1,332 | 2018-06-25T18:44:25.000Z | 2022-03-24T11:54:21.000Z | dist/gcc-compatible/lib_gen/EverCrypt_Ed25519_gen.ml | sthagen/hacl-star | 647facec8c2a283a4686941e5c36ccea59a1bcb7 | [
"Apache-2.0"
] | 311 | 2018-06-23T20:30:19.000Z | 2022-03-31T16:52:05.000Z | dist/gcc-compatible/lib_gen/EverCrypt_Ed25519_gen.ml | sthagen/hacl-star | 647facec8c2a283a4686941e5c36ccea59a1bcb7 | [
"Apache-2.0"
] | 143 | 2018-08-23T11:43:58.000Z | 2022-03-09T11:07:13.000Z | let _ =
(((Format.set_formatter_out_channel
(open_out_bin "lib/EverCrypt_Ed25519_stubs.ml");
Cstubs.write_ml Format.std_formatter ~prefix:""
(module EverCrypt_Ed25519_bindings.Bindings));
Format.set_formatter_out_channel
(open_out_bin "lib/EverCrypt_Ed25519_c_stubs.c"));
Format.printf ... | 45.6 | 56 | 0.75 |
440c30165fe10afd395ea0bfda9f65baa19cef33 | 358 | ml | OCaml | hphp/hack/src/server/serverRageTypes.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/src/server/serverRageTypes.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/src/server/serverRageTypes.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"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.
*
*)
(** To make the rage output more useful, it's broken into rageItems. *)
type rageItem = {
title: string;
data: s... | 21.058824 | 71 | 0.684358 |
af9c065835bf110301a3179ed9d2fd84c053dcd5 | 118 | ml | OCaml | II rok/I semestr/PF/Zajecia 04/Wyklad/plik2.ml | antonitomaszewski/Studia | ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b | [
"MIT"
] | null | null | null | II rok/I semestr/PF/Zajecia 04/Wyklad/plik2.ml | antonitomaszewski/Studia | ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b | [
"MIT"
] | null | null | null | II rok/I semestr/PF/Zajecia 04/Wyklad/plik2.ml | antonitomaszewski/Studia | ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b | [
"MIT"
] | null | null | null | (* let gcd a b =
match (a,b) with
| (2*k, e) -> e *)
let f x = x
let g x = 2 * (f x)
let _ = print_int (g 1);;
| 14.75 | 25 | 0.440678 |
8a16d511145f6d4e9f44ce5ae81f38dd26cb51db | 641 | ml | OCaml | src/lib/blockchain_snark/blockchain.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | src/lib/blockchain_snark/blockchain.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | src/lib/blockchain_snark/blockchain.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Coda_base
open Coda_state
open Module_version
module Stable = struct
module V1 = struct
module T = struct
type t =
{state: Protocol_state.Value.Stable.V1.t; proof: Proof.Stable.V1.t}
[@@deriving bin_io, fields, version, sexp]
end
include T
include Registrati... | 19.424242 | 75 | 0.703588 |
8ab3c290267fc413bff025693ff4c16444863562 | 356 | ml | OCaml | sol/sol_105.ml | bcc32/projecteuler-ocaml | 647a1db1caaf919a1c506c213a2e7948ac3ea63c | [
"MIT"
] | 10 | 2018-10-15T02:11:39.000Z | 2022-01-26T08:57:12.000Z | sol/sol_105.ml | bcc32/projecteuler-ocaml | 647a1db1caaf919a1c506c213a2e7948ac3ea63c | [
"MIT"
] | null | null | null | sol/sol_105.ml | bcc32/projecteuler-ocaml | 647a1db1caaf919a1c506c213a2e7948ac3ea63c | [
"MIT"
] | 1 | 2020-04-18T13:03:50.000Z | 2020-04-18T13:03:50.000Z | open! Core
open! Import
let main () =
Problem_105.data
|> String.split_lines
|> List.map ~f:(String.split ~on:',' >> List.map ~f:Int.of_string)
|> List.filter ~f:Sol_103.is_special
|> List.sum (module Int) ~f:(List.sum (module Int) ~f:Fn.id)
|> printf "%d\n"
;;
(* 73702
5.02189s *)
include (val Solutio... | 22.25 | 68 | 0.634831 |
8a831c24b4a28b7bf4039db976ef289eed4f2afc | 15,831 | ml | OCaml | src/dune_rules/gen_rules.ml | MisterDA/dune | 36e4f4deced4bd06b3b5fbe6d5b0a216036401fa | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | src/dune_rules/gen_rules.ml | MisterDA/dune | 36e4f4deced4bd06b3b5fbe6d5b0a216036401fa | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | src/dune_rules/gen_rules.ml | MisterDA/dune | 36e4f4deced4bd06b3b5fbe6d5b0a216036401fa | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | open! Dune_engine
open! Stdune
open Import
module Menhir_rules = Menhir
module Toplevel_rules = Toplevel.Stanza
open Dune_file
open! No_io
open Memo.Build.O
module For_stanza : sig
type ('merlin, 'cctx, 'js, 'source_dirs) t =
{ merlin : 'merlin
; cctx : 'cctx
; js : 'js
; source_dirs : 'source_dirs
... | 36.226545 | 80 | 0.604194 |
8acda52a2bbc7d7d0c3e1ad8d9cfb4e33fe823b9 | 587 | ml | OCaml | src/lib/unsigned_extended/intf.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | 929 | 2020-10-02T07:23:16.000Z | 2022-03-31T15:02:09.000Z | src/lib/unsigned_extended/intf.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 3,154 | 2020-09-29T15:47:44.000Z | 2022-03-31T16:22:28.000Z | src/lib/unsigned_extended/intf.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 216 | 2020-09-29T19:47:41.000Z | 2022-03-27T08:44:29.000Z | open Core_kernel
type uint64 = Unsigned.uint64
type uint32 = Unsigned.uint32
module type S = sig
type t [@@deriving sexp, hash, compare, yojson]
val length_in_bits : int
include Hashable.S with type t := t
include Unsigned.S with type t := t
val ( < ) : t -> t -> bool
val ( > ) : t -> t -> bool
v... | 16.305556 | 49 | 0.567291 |
8aced0d0c4881402e5aed84dcd039f60ca59d55b | 871 | ml | OCaml | tmp/transformers.ml | rizo/fold-pratt | 84029a7b3d59200ef7fdfb87385752ea4e9eef94 | [
"Apache-2.0"
] | 1 | 2017-07-21T13:08:10.000Z | 2017-07-21T13:08:10.000Z | tmp/transformers.ml | rizo/fold-pratt | 84029a7b3d59200ef7fdfb87385752ea4e9eef94 | [
"Apache-2.0"
] | null | null | null | tmp/transformers.ml | rizo/fold-pratt | 84029a7b3d59200ef7fdfb87385752ea4e9eef94 | [
"Apache-2.0"
] | null | null | null |
module type Monad = sig
type 'a t
val return : 'a -> 'a t
val bind : 'a t -> ('a -> 'b t) -> 'b t
end
module type Monad_state = functor (M : Monad) -> sig
(* Return the state from the internals of the monad. *)
val get : 's M.t
(* Replace the state inside the monad. *)
val put : 's -> unit M.t
end
(* Con... | 18.934783 | 70 | 0.571757 |
44148ddb03236f03ba6d7dd03dffee677106f8f8 | 2,763 | ml | OCaml | infer/src/istd/IContainer.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | infer/src/istd/IContainer.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | infer/src/istd/IContainer.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
type 'a singleton_or_more = Empty | Singleton of 'a | More
let singleton_or_more ~fold t =
With_re... | 29.393617 | 99 | 0.619978 |
8a580d80f211a9281ddda51b67e47b6891cfe795 | 142 | ml | OCaml | benchmarks/max/max/submissions/sub68.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/max/max/submissions/sub68.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/max/max/submissions/sub68.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | let rec max : int list -> int
=fun l -> match l with
[] -> 0
| h::t -> if h>= max t then h
else if (max t)=0&&(t=[]) then h
else max t
| 20.285714 | 33 | 0.514085 |
443a4be29759d5a6a235e29619e70b1747a9ecc6 | 753 | ml | OCaml | data/derived/fa15/progs/cnstr/prog0009.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/cnstr/prog0009.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/cnstr/prog0009.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 a -> sin (pi *. (eval (a, x, y)))
| Cosine a -> cos (p... | 26.892857 | 78 | 0.458167 |
441140e6ea2a407ef73d4df9e51129a4748f6cdc | 31 | ml | OCaml | lib/byte_units.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | lib/byte_units.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | lib/byte_units.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | include Core_kernel.Byte_units
| 15.5 | 30 | 0.903226 |
8afa361bc83c5a3d978d2b8ca9362f7db05585a0 | 524 | ml | OCaml | tests/benchmarks_call/DOrder/list/zip.ml | LinerSu/DART_IT | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 7 | 2020-06-12T09:32:16.000Z | 2020-10-05T09:04:07.000Z | tests/benchmarks_call/DOrder/list/zip.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | null | null | null | tests/benchmarks_call/DOrder/list/zip.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 2 | 2021-04-05T12:25:11.000Z | 2021-05-14T09:31:24.000Z | let rec zip (xs:int list) (ys:int list) =
match xs with
[] -> (
match ys with
[] -> []
| y::ys' -> assert(false) ; []
)
| x::xs' ->
(match ys with
[] -> assert(false) ; []
| y::ys' -> (x, y)::(zip xs' ys'))
let rec make_list n =
if n <... | 20.96 | 44 | 0.444656 |
8ac56720a0e7491e5395f74e0ab8121a5b3adfdc | 20,798 | ml | OCaml | src/domains/setDomain.ml | jerhard/Goblint | 4ba3f7809756d1dd1b46f9ced279c73affc4a510 | [
"BSD-3-Clause",
"MIT"
] | 1 | 2020-11-13T21:01:31.000Z | 2020-11-13T21:01:31.000Z | src/domains/setDomain.ml | jerhard/Goblint | 4ba3f7809756d1dd1b46f9ced279c73affc4a510 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | src/domains/setDomain.ml | jerhard/Goblint | 4ba3f7809756d1dd1b46f9ced279c73affc4a510 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | (** Abstract domains representing sets. *)
open Pretty
module GU = Goblintutil
(* Exception raised when the set domain can not support the requested operation.
* This will be raised, when trying to iterate a set that has been set to Top *)
exception Unsupported of string
(** A set domain must support all the standa... | 33.117834 | 125 | 0.60001 |
8aebe0666d4766bbc950814a2a397f19f6bd0f3a | 42,980 | ml | OCaml | src/rtl.ml | ollef/hardcaml | dac002a7d2cf8c90be314e2458a49eb2b43f3cd6 | [
"MIT"
] | null | null | null | src/rtl.ml | ollef/hardcaml | dac002a7d2cf8c90be314e2458a49eb2b43f3cd6 | [
"MIT"
] | null | null | null | src/rtl.ml | ollef/hardcaml | dac002a7d2cf8c90be314e2458a49eb2b43f3cd6 | [
"MIT"
] | null | null | null | (* generic rtl writing for vhdl/verilog *)
open Base
open Signal
include Rtl_intf
module Out_channel = Stdio.Out_channel
module Filename = Caml.Filename
let sprintf = Printf.sprintf
(* utils *)
type io = string -> unit
type name = Signal.t -> string
type type_decl =
| Input
| Output
| Wire
| Reg
| Consta... | 31.122375 | 90 | 0.55014 |
8a109d02c7cda44fec365db5165e225787e1b2dd | 3,532 | mli | OCaml | sync.mli | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | 3 | 2021-03-15T17:57:46.000Z | 2021-09-29T13:11:36.000Z | sync.mli | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | null | null | null | sync.mli | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | null | null | null | (**************************************************************************)
(* Copyright (c) 2009, Romain BARDOU *)
(* All rights reserved. *)
(* *)
(* Redistrib... | 53.515152 | 79 | 0.58607 |
8a591756bcb6086b2ede41e316e5e50991e5291b | 4,315 | mli | OCaml | hphp/hack/src/dfind/dfindEnv.mli | radford/hhvm | a7cd6754d14742b40528c847b607a1608cfcfe98 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2015-11-06T08:44:15.000Z | 2015-11-06T08:44:15.000Z | hphp/hack/src/dfind/dfindEnv.mli | radford/hhvm | a7cd6754d14742b40528c847b607a1608cfcfe98 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/dfind/dfindEnv.mli | radford/hhvm | a7cd6754d14742b40528c847b607a1608cfcfe98 | [
"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.
*
*)
(************... | 33.976378 | 80 | 0.5073 |
8af884521116c452d067ee70b0a9514aed42d768 | 592 | mll | OCaml | src/lexer/lexer.mll | paulpatault/AutoDemo | 68e131bd1575f9d7a6662175bb9055a0dd61dd7f | [
"MIT"
] | 1 | 2021-02-09T09:40:21.000Z | 2021-02-09T09:40:21.000Z | src/lexer/lexer.mll | paulpatault/AutoDemo | 68e131bd1575f9d7a6662175bb9055a0dd61dd7f | [
"MIT"
] | null | null | null | src/lexer/lexer.mll | paulpatault/AutoDemo | 68e131bd1575f9d7a6662175bb9055a0dd61dd7f | [
"MIT"
] | null | null | null | {
open Lexing
open Parser
open Printf
exception Eof
}
let alpha = ['a'-'z' 'A'-'Z']
let digit = ['0'-'9']
let ident = (alpha | digit) (alpha | digit | '_')*
let land = "&&" | "/\\"
let lor = "||" | "\\/"
rule scan_token = parse
| [' ' '\t' '\r']+ { scan_token lexbuf }
| '\n' { EOF }
| ident as id {... | 18.5 | 69 | 0.432432 |
aff3746149cfc31ce2ffaf26de221e1ccc886b1a | 236 | ml | OCaml | data/derived/comb/progs/unify/prog6494.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/prog1654.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1654.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let helper x r =
let m = x r in match m with | r -> (r, false) | _ -> (r, true);;
let rec wwhile (f,b) =
let (x,y) = f b in match y with | false -> x | true -> wwhile (f, x);;
let fixpoint (f,b) = wwhile ((helper (f, b)), b);;
| 26.222222 | 74 | 0.512712 |
8a0b7e89577264aca863aa0e49384fb7f2bd9384 | 7,834 | ml | OCaml | hphp/hack/src/typing/typing_mutability.ml | azjezz/hhvm | bb38fc533db545c1e9be9b5c373c759cd28b0f33 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_mutability.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_mutability.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) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Typing_mutability_env
open Typing_defs
module Env = Typing_env
module T = Tast
module LMap =... | 33.622318 | 97 | 0.651264 |
af30d47d13f6081e3787bbe133e53a3334e6b21e | 16 | ml | OCaml | tests/rec/sol_solution.ml | Eemency/learn-ocaml-autogen | 27f2069da0a74cf11de2a2f7514b6cb8666ea718 | [
"MIT"
] | 4 | 2018-09-07T01:10:59.000Z | 2021-02-17T07:33:47.000Z | tests/rec/sol_solution.ml | Eemency/learn-ocaml-autogen | 27f2069da0a74cf11de2a2f7514b6cb8666ea718 | [
"MIT"
] | 9 | 2018-07-02T13:38:09.000Z | 2018-08-17T08:17:39.000Z | tests/rec/sol_solution.ml | Eemency/learn-ocaml-autogen | 27f2069da0a74cf11de2a2f7514b6cb8666ea718 | [
"MIT"
] | 1 | 2020-10-14T20:26:28.000Z | 2020-10-14T20:26:28.000Z | let rec f x = 3
| 8 | 15 | 0.5625 |
8aaedb6e231bcce24375e1981a7068ff15f7438c | 620 | ml | OCaml | libs/ffi/FFICallbacks.ml | ambiso/mitls-fstar | bf6b225f997869a1ccd97b355ff1ae6a1e0c4ebd | [
"Apache-2.0"
] | 89 | 2018-08-09T16:28:37.000Z | 2022-02-20T17:45:27.000Z | libs/ffi/FFICallbacks.ml | ambiso/mitls-fstar | bf6b225f997869a1ccd97b355ff1ae6a1e0c4ebd | [
"Apache-2.0"
] | 24 | 2018-08-14T15:09:56.000Z | 2021-12-17T10:41:09.000Z | libs/ffi/FFICallbacks.ml | ambiso/mitls-fstar | bf6b225f997869a1ccd97b355ff1ae6a1e0c4ebd | [
"Apache-2.0"
] | 5 | 2018-08-09T08:01:49.000Z | 2021-03-21T15:00:37.000Z | type callbacks = int64
external ocaml_ticket_cb: callbacks -> callbacks -> string -> string -> string -> unit = "ocaml_ticket_cb"
external ocaml_cert_select_cb: callbacks -> callbacks -> int -> string * string -> string -> (callbacks * int) option = "ocaml_cert_select_cb"
external ocaml_cert_format_cb: callbacks -> c... | 68.888889 | 142 | 0.75 |
afdfc971f10d6d3d8e1c271ce999a7a78a7c3dd0 | 506 | ml | OCaml | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/typing-objects/pr6907_bad.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-objects/pr6907_bad.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/typing-objects/pr6907_bad.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | (* TEST
* expect
*)
class type ['e] t = object('s)
method update : 'e -> 's
end;;
[%%expect{|
class type ['e] t = object ('a) method update : 'e -> 'a end
|}];;
module type S = sig
class base : 'e -> ['e] t
end;;
[%%expect{|
Line _, characters 2-27:
class base : 'e -> ['e] t
^^^^^^^^^^^^^^^^^^^^^^^^^
E... | 21.083333 | 74 | 0.5 |
8acb9da32382a5c730cae8502b55129db9b14453 | 1,682 | ml | OCaml | lib/Range.ml | ahrefs/ocamlformat | a72544cce8d193287c54e732aa3523c0e34348fb | [
"MIT"
] | null | null | null | lib/Range.ml | ahrefs/ocamlformat | a72544cce8d193287c54e732aa3523c0e34348fb | [
"MIT"
] | null | null | null | lib/Range.ml | ahrefs/ocamlformat | a72544cce8d193287c54e732aa3523c0e34348fb | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCamlFormat *)
(* *)
(* ... | 42.05 | 76 | 0.429251 |
f3f35bd9ea9c48f987a8c574a19124e7392f94a6 | 1,010 | ml | OCaml | benchmarks/C/formula/sol318.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/formula/sol319.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/formula/sol319.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type formula =
True
| False
| Not of formula
| AndAlso of formula * formula
| OrElse of formula * formula
| Imply of formula * formula
| Equal of exp * exp
and exp =
Num of int
| Plus of exp * exp
| Minus of exp * exp;;
let rec val_of_exp = function
| Num v -> v
| Plus... | 25.897436 | 50 | 0.461386 |
4418808f229c86668bc161e2ba7677b382e595d1 | 85,151 | ml | OCaml | hphp/hack/src/hh_single_type_check.ml | the-storm/hhvm | 8c173160bb6b8e56277a04d00efe4c1a234b605c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hh_single_type_check.ml | the-storm/hhvm | 8c173160bb6b8e56277a04d00efe4c1a234b605c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hh_single_type_check.ml | the-storm/hhvm | 8c173160bb6b8e56277a04d00efe4c1a234b605c | [
"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 String_utils
open Sys_utils
open Typing_env_types
module Inf = Typing_inference_env
module Cls ... | 37.544533 | 118 | 0.634661 |
4432f80c224635ad9e5fe906eb44f480915c689f | 3,811 | ml | OCaml | lib/arm/arm_mov.ml | thestr4ng3r/bap | 79dc0479a190ba56ad04525b78fb0fd7ebad24ce | [
"MIT"
] | null | null | null | lib/arm/arm_mov.ml | thestr4ng3r/bap | 79dc0479a190ba56ad04525b78fb0fd7ebad24ce | [
"MIT"
] | null | null | null | lib/arm/arm_mov.ml | thestr4ng3r/bap | 79dc0479a190ba56ad04525b78fb0fd7ebad24ce | [
"MIT"
] | null | null | null | open Core_kernel
open Bap_core_theory
open Regular.Std
open Bap.Std
open Arm_types
open Arm_utils
open Arm_flags
module Env = Arm_env
module Shift = Arm_shift
let width = 32
(** Modified Immediate Constants *)
module MIC : sig
val decode : Theory.language -> exp -> exp
end = struct
let ror value bits =
le... | 32.57265 | 68 | 0.588297 |
8a126e9922a26f460f55bc107683cf17cf769b70 | 881 | mli | OCaml | vendor/dune/otherlibs/build-info/src/build_info.mli | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/dune/otherlibs/build-info/src/build_info.mli | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/dune/otherlibs/build-info/src/build_info.mli | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | (** Provide build information *)
module V1 : sig
module Version : sig
type t
val to_string : t -> string
end
(** The version at which the current executable was built. The
version is [None] during development, it is only [Some _] once
the executable is installed or promoted to the source t... | 25.171429 | 71 | 0.682179 |
441fccb680a102502c78ea2998979c0d57afe4d5 | 6,668 | mll | OCaml | gospel/src/ulexer.mll | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | null | null | null | gospel/src/ulexer.mll | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | null | null | null | gospel/src/ulexer.mll | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* GOSPEL -- A Specification Language for OCaml *)
(* *)
(* Copyrigh... | 24.605166 | 79 | 0.44901 |
8a7d386ffe40271621b54ea2a9edafedb6c4334a | 3,113 | ml | OCaml | bench/bench_fields.ml | ayc9/ppx_fields_conv | c9615abcf9946d9ed6fde3a10a40c262d543d7e8 | [
"MIT"
] | 44 | 2016-01-13T19:23:06.000Z | 2022-02-20T11:48:19.000Z | bench/bench_fields.ml | ayc9/ppx_fields_conv | c9615abcf9946d9ed6fde3a10a40c262d543d7e8 | [
"MIT"
] | 8 | 2016-02-01T20:22:23.000Z | 2020-09-15T16:00:12.000Z | bench/bench_fields.ml | ayc9/ppx_fields_conv | c9615abcf9946d9ed6fde3a10a40c262d543d7e8 | [
"MIT"
] | 10 | 2017-03-16T22:48:41.000Z | 2021-12-18T05:18:05.000Z | (* Current results:
┌───────────────────────────────────────────────────────────────────────────────────────┬──────────┬────────────┐
│ Name │ Time/Run │ Percentage │
├──────────────────────────────────────────────────────────────... | 31.13 | 116 | 0.442981 |
8accc2bdddbbf933868c8519b3a6c76edddd579a | 3,412 | ml | OCaml | test/base/test.ml | ceastlund/ppx | e9367353e0ac7f6e1b408be21b01645475eea623 | [
"MIT"
] | 57 | 2019-05-15T14:23:37.000Z | 2021-05-24T19:23:19.000Z | test/base/test.ml | ceastlund/ppx | e9367353e0ac7f6e1b408be21b01645475eea623 | [
"MIT"
] | 53 | 2019-06-06T16:27:15.000Z | 2020-05-14T18:05:50.000Z | test/base/test.ml | ceastlund/ppx | e9367353e0ac7f6e1b408be21b01645475eea623 | [
"MIT"
] | 7 | 2019-06-03T15:07:32.000Z | 2020-04-06T14:06:22.000Z | #require "base";;
#require "stdio";;
#require "ppx.ast";;
let () = Printexc.record_backtrace false
open Base
open Stdio
open Ppx
module N = Ppx_private.Name
[%%expect{|
module N = Ppx.Ppx_private.Name
|}]
let dot_suffixes name =
Caml.Printf.sprintf "%s"
(Base.Sexp.to_string_hum
(List.sexp_of_t String.... | 21.732484 | 82 | 0.644197 |
f3c82d57787aa5a3657a94d3cc3282dd62b31f8f | 23,063 | ml | OCaml | src/parser_utils/dep_mapper.ml | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"MIT"
] | 1 | 2021-03-12T10:46:28.000Z | 2021-03-12T10:46:28.000Z | src/parser_utils/dep_mapper.ml | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"MIT"
] | null | null | null | src/parser_utils/dep_mapper.ml | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"MIT"
] | 2 | 2021-02-02T14:51:26.000Z | 2021-02-02T14:52:05.000Z | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(*
Implements a basic dependence tracker for both values and types (tvars).
It collects, for all the variable declarations, the assignme... | 36.666137 | 92 | 0.576551 |
8a31e294ec2d6fca161e2b5e0073730309eb4ed4 | 5,026 | ml | OCaml | day16/adventStdLib.ml | spencerwi/AdventOfCode2017 | f9732ef967a5fb25c29118abcd20f52cbc405a87 | [
"MIT"
] | null | null | null | day16/adventStdLib.ml | spencerwi/AdventOfCode2017 | f9732ef967a5fb25c29118abcd20f52cbc405a87 | [
"MIT"
] | null | null | null | day16/adventStdLib.ml | spencerwi/AdventOfCode2017 | f9732ef967a5fb25c29118abcd20f52cbc405a87 | [
"MIT"
] | null | null | null | let read_lines_from_file (filename: string) : string list =
let lines = ref [] in
let chan = open_in filename in
try
while true; do
lines := (input_line chan) :: !lines
done;
!lines
with End_of_file ->
close_in chan;
List.rev !lines
module Strings = ... | 27.315217 | 96 | 0.516713 |
8a0f891f087d37527aab89efeed4c7298a014577 | 3,840 | ml | OCaml | lib/Non_overlapping_interval_tree.ml | d4hines/ocamlformat | 7022aee8b073cbb6645d40b9b8432653093ef835 | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | lib/Non_overlapping_interval_tree.ml | d4hines/ocamlformat | 7022aee8b073cbb6645d40b9b8432653093ef835 | [
"MIT"
] | 1,392 | 2017-10-19T18:03:58.000Z | 2022-03-30T15:53:42.000Z | lib/Non_overlapping_interval_tree.ml | d4hines/ocamlformat | 7022aee8b073cbb6645d40b9b8432653093ef835 | [
"MIT"
] | 118 | 2017-10-19T18:46:20.000Z | 2022-03-30T11:22:50.000Z | (**************************************************************************)
(* *)
(* OCamlFormat *)
(* *)
(* ... | 34.285714 | 76 | 0.526042 |
8a29985b8a116bb3cead539d2d949c1753809530 | 21,984 | mli | OCaml | src/lib_event_logging/internal_event.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_event_logging/internal_event.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_event_logging/internal_event.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 35.287319 | 92 | 0.625045 |
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.