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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aa0d2c84465a701c3fedd2dfd46f792c1b0fbb81 | 3,180 | mli | OCaml | infer/src/absint/AbstractInterpreter.mli | HybridDeveloper/infer | d01ada643d70202d9afd5e5c2d6ece715335a426 | [
"MIT"
] | null | null | null | infer/src/absint/AbstractInterpreter.mli | HybridDeveloper/infer | d01ada643d70202d9afd5e5c2d6ece715335a426 | [
"MIT"
] | null | null | null | infer/src/absint/AbstractInterpreter.mli | HybridDeveloper/infer | d01ada643d70202d9afd5e5c2d6ece715335a426 | [
"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 VisitCount : sig
type t
end
module State : sig
type 'a t = {pre: 'a; post: 'a; visit_count: VisitCount.t}
e... | 37.411765 | 100 | 0.735535 |
aa8fd1ac91a94b2a7ffbeeb3179256cff9c6c432 | 13,192 | ml | OCaml | src/parser_utils/scope_builder.ml | mochja/flow | f5351e5ece186468278f5a94a5c59f00315243c1 | [
"MIT"
] | 1 | 2020-11-02T02:15:55.000Z | 2020-11-02T02:15:55.000Z | src/parser_utils/scope_builder.ml | mochja/flow | f5351e5ece186468278f5a94a5c59f00315243c1 | [
"MIT"
] | null | null | null | src/parser_utils/scope_builder.ml | mochja/flow | f5351e5ece186468278f5a94a5c59f00315243c1 | [
"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.
*)
module Ast = Flow_ast
open Flow_ast_visitor
open Hoister
module Make (L : Loc_sig.S) (Api : Scope_api_sig.S with module L = L) :
... | 33.313131 | 100 | 0.570042 |
aab6e1cdb7713c51ecd87a6941f9f6e9b9d08058 | 623 | ml | OCaml | lwt-unix/mongo_lwt_unix.ml | anmonteiro/ocaml-mongodb | 535ae1b003b9c8a3844b92a78d2123881f2d404b | [
"BSD-3-Clause"
] | 12 | 2021-01-03T05:45:02.000Z | 2021-09-14T13:42:00.000Z | lwt-unix/mongo_lwt_unix.ml | anmonteiro/ocaml-mongodb | 535ae1b003b9c8a3844b92a78d2123881f2d404b | [
"BSD-3-Clause"
] | null | null | null | lwt-unix/mongo_lwt_unix.ml | anmonteiro/ocaml-mongodb | 535ae1b003b9c8a3844b92a78d2123881f2d404b | [
"BSD-3-Clause"
] | null | null | null | open Lwt.Infix
module Client = struct
include Mongo_lwt.Client (Gluten_lwt_unix.Client)
module TLS = struct
include Mongo_lwt.Client (Gluten_lwt_unix.Client.TLS)
let create_connection_with_default ~config socket =
Gluten_lwt_unix.Client.TLS.create_default socket >>= fun tls_client ->
create_c... | 28.318182 | 76 | 0.760835 |
442945a6af8fd27a77d24f36eea73e9d7501f7a8 | 1,102 | mli | OCaml | src/lib/Domain.mli | darinmorrison/cool-tt | 2fcffdd90ec0a6088ff7df608c7284e07d49009c | [
"MIT"
] | 5 | 2020-01-03T15:47:48.000Z | 2020-03-08T13:51:59.000Z | src/lib/Domain.mli | silvanshade/cool-tt | 2fcffdd90ec0a6088ff7df608c7284e07d49009c | [
"MIT"
] | null | null | null | src/lib/Domain.mli | silvanshade/cool-tt | 2fcffdd90ec0a6088ff7df608c7284e07d49009c | [
"MIT"
] | null | null | null | module S := Syntax
type env = {locals : t list}
and ('a, 'b) clo = Clos of {term : 'a; env : env} | ConstClos of 'b
and 'a clo2 = Clos2 of {term : 'a; env : env}
and 'a clo3 = Clos3 of {term : 'a; env : env}
and t =
| Lam of (S.t, t) clo
| Neutral of {tp : tp; term : ne}
| Zero
| Suc of t
| Pair of t * t... | 22.489796 | 76 | 0.552632 |
aa1c3301bcd27194f722ab65f7221caab77e137d | 26 | ml | OCaml | data/sp14/clusters/0115.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14_min/clusters/0115.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14/clusters/0115.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z | BopG LitG LitG
0.0 -. 1.0
| 8.666667 | 14 | 0.615385 |
aa4ee7affa3f7330062011689be5bf083cc45466 | 12,422 | mli | OCaml | src/lib_shell_services/block_services.mli | blockchain-analysis-study/my-tezos | 948eb71a5ee68c0691b011dc17faf523d8c254e9 | [
"MIT"
] | null | null | null | src/lib_shell_services/block_services.mli | blockchain-analysis-study/my-tezos | 948eb71a5ee68c0691b011dc17faf523d8c254e9 | [
"MIT"
] | null | null | null | src/lib_shell_services/block_services.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> *)
... | 27.482301 | 89 | 0.598293 |
4409cbb41bdb85c8e05d4b61361e1ccab8e48b36 | 788 | mli | OCaml | sledge/src/trace/trace.mli | JamesBrace/infer | bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15 | [
"MIT"
] | null | null | null | sledge/src/trace/trace.mli | JamesBrace/infer | bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15 | [
"MIT"
] | null | null | null | sledge/src/trace/trace.mli | JamesBrace/infer | bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15 | [
"MIT"
] | 1 | 2019-10-24T14:47:52.000Z | 2019-10-24T14:47:52.000Z | (*
* Copyright (c) 2018-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.
*)
(** Debug trace logging *)
val init : trace_all:bool -> unit
(** Initialize the configuration of debug tracing. *)
type 'a printf = ('a... | 30.307692 | 68 | 0.658629 |
aa7042937f9e2a8c482b2b64b91006fcc834b90e | 1,979 | ml | OCaml | data/fa15/1942.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15_min/1942.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/1942.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 =
if (List.length l1) > (List.length l2)
then (l1, ((clone 0 ((List.length l1) - (List.length l2))) @ l2))
else
if (List.length l1) < (List.length l2)
then (((clone 0 ((List.length l2) - (List.length l1))) @ l1), l2)
... | 25.701299 | 78 | 0.538656 |
aa7d56969edcfc157b77ca095e04fd7bf3090272 | 3,022 | ml | OCaml | lib/smyth/fill.ml | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 15 | 2020-08-27T10:51:14.000Z | 2021-12-24T08:17:28.000Z | lib/smyth/fill.ml | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 18 | 2020-06-28T18:13:20.000Z | 2021-03-12T16:18:05.000Z | lib/smyth/fill.ml | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 5 | 2021-02-23T16:22:25.000Z | 2022-01-24T18:36:45.000Z | open Lang
open Nondet.Syntax
let refine_or_branch
params delta sigma hf (hole_name, synthesis_goal) =
let* (additional_depth, ((exp, subgoals), choice_constraints)) =
(* Note: Try to branch FIRST! This results in more idiomatic solutions. *)
Nondet.union
[ if params.max_match_depth > 0 then
... | 25.82906 | 78 | 0.618465 |
aa4ec72e7dafdfeb148781d1357bc56e49b7869d | 2,187 | mli | OCaml | hphp/hack/src/typing/deferred_decl.mli | fyunaz/hhvm | fc52cae6762431395818de9edbb0b918167c4b65 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-05-15T22:07:47.000Z | 2021-05-15T22:07:47.000Z | hphp/hack/src/typing/deferred_decl.mli | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-04-19T09:53:42.000Z | 2021-04-19T09:53:42.000Z | hphp/hack/src/typing/deferred_decl.mli | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-01-29T08:44:22.000Z | 2021-01-29T08:44:22.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 Hh_prelude
open Reordered_argument_collections
(** A [deferment] is a file which contains a decl that we need to fetch b... | 35.274194 | 101 | 0.714678 |
aaa9a90445644a3e97bfbdcbeb309689708fec6a | 8,684 | ml | OCaml | src/parser_utils/output/__tests__/js_layout_generator/program_test.ml | sevenEng/flow | 4215b5cfb27254f0e927b557291d13ec2b53d6af | [
"MIT"
] | 1 | 2020-07-08T17:40:26.000Z | 2020-07-08T17:40:26.000Z | src/parser_utils/output/__tests__/js_layout_generator/program_test.ml | sevenEng/flow | 4215b5cfb27254f0e927b557291d13ec2b53d6af | [
"MIT"
] | 2 | 2021-09-02T16:30:33.000Z | 2021-09-02T16:30:34.000Z | src/parser_utils/output/__tests__/js_layout_generator/program_test.ml | Nicky7787/flow | 58511ab989590253364d06da48318805677c4ead | [
"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 OUnit2
open Layout_test_utils
open Layout_generator_test_utils
module S = Ast_builder.Statements
module E = Ast_builder.Expres... | 40.390698 | 100 | 0.328075 |
8ac94a0d0dbe029171ea1ef655a31a54d6d5f240 | 3,418 | mli | OCaml | src/lib_mockup/persistence.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | src/lib_mockup/persistence.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | src/lib_mockup/persistence.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 46.821918 | 79 | 0.599473 |
aa991318773743342908be9c0335f2742542b3fc | 2,075 | mli | OCaml | vendors/flextesa-lib/tezos_executable.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | vendors/flextesa-lib/tezos_executable.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | vendors/flextesa-lib/tezos_executable.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | (** This module wraps the type ['kind t] around the notion of
tezos-excutable: a path to a binary with tezos-specific properties. *)
(** Helper functions to construct exec-style command lines for
["tezos-*"] applications. *)
module Make_cli : sig
val flag : string -> string list
val opt : string -> string ... | 30.514706 | 74 | 0.668916 |
aa2d1d8a3142ac1a89e1906940cd13f8f558f28d | 12,868 | ml | OCaml | src/lib/cache_lib/impl.ml | olton/mina | 35a0be706602a3187a21ba757c89d197ff914d7e | [
"Apache-2.0"
] | 929 | 2020-10-02T07:23:16.000Z | 2022-03-31T15:02:09.000Z | src/lib/cache_lib/impl.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 3,154 | 2020-09-29T15:47:44.000Z | 2022-03-31T16:22:28.000Z | src/lib/cache_lib/impl.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 216 | 2020-09-29T19:47:41.000Z | 2022-03-27T08:44:29.000Z | open Async_kernel
open Core_kernel
module type Inputs_intf = sig
val handle_unconsumed_cache_item :
logger:Logger.t -> cache_name:string -> unit
end
module Make (Inputs : Inputs_intf) : Intf.Main.S = struct
module rec Cache : sig
include
Intf.Cache.S with type ('t, 'cache_t) cached := ('t, 'cache_t)... | 33.510417 | 83 | 0.568154 |
bc619f2abe9d4afbcfdafa581397ea71c66d48eb | 6,925 | ml | OCaml | src/lib/auxiliary_database/transaction_database.ml | phreelyfe/mina | 34328cd4e9b6ac699c3330003e40976a1059ed90 | [
"Apache-2.0"
] | null | null | null | src/lib/auxiliary_database/transaction_database.ml | phreelyfe/mina | 34328cd4e9b6ac699c3330003e40976a1059ed90 | [
"Apache-2.0"
] | null | null | null | src/lib/auxiliary_database/transaction_database.ml | phreelyfe/mina | 34328cd4e9b6ac699c3330003e40976a1059ed90 | [
"Apache-2.0"
] | null | null | null | open Core
open Async
open Signature_lib
open Coda_base
(* TODO: Remove Transaction functor when we need to query transactions other
than user_commands *)
module Make (Transaction : sig
type t [@@deriving bin_io, compare, sexp, hash, to_yojson]
include Comparable.S with type t := t
include Hashable.S with ty... | 34.798995 | 81 | 0.684765 |
bcbf67c7434971802acc0fd9eebaff85d1dfe235 | 894 | mli | OCaml | chameneos-redux/sched.mli | kayceesrk/ocaml15-eff | 4c71005c5b1f27c8f6c83a8d28977875e05580e8 | [
"0BSD"
] | 16 | 2016-01-30T00:12:13.000Z | 2021-03-19T10:06:45.000Z | chameneos-redux/sched.mli | kayceesrk/ocaml15-eff | 4c71005c5b1f27c8f6c83a8d28977875e05580e8 | [
"0BSD"
] | 1 | 2019-06-13T14:57:12.000Z | 2019-06-13T14:57:12.000Z | chameneos-redux/sched.mli | kayceesrk/ocaml15-eff | 4c71005c5b1f27c8f6c83a8d28977875e05580e8 | [
"0BSD"
] | 1 | 2016-01-28T14:12:46.000Z | 2016-01-28T14:12:46.000Z | type 'a cont
(** Represents a blocked computation that waits for a value of type 'a. *)
type _ eff += Suspend : ('a cont -> unit) -> 'a eff
(** [Perform @@ Suspend f] applies [f] to the current continuation, and suspends the
execution of the current thread, and switches to the next thread in the
scheduler's qu... | 40.636364 | 94 | 0.663311 |
bc7ce30139ef90c2b180014d135d073ee6308e90 | 113 | mli | OCaml | fpat/ordinal.mli | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 32 | 2019-10-30T10:09:56.000Z | 2022-03-28T07:15:04.000Z | fpat/ordinal.mli | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 1 | 2021-04-14T19:19:15.000Z | 2021-04-15T02:03:56.000Z | fpat/ordinal.mli | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 5 | 2019-11-08T07:49:00.000Z | 2022-03-01T18:09:57.000Z | (** Ordinals *)
type t
val make : int -> t
val pr : Format.formatter -> t -> unit
val string_of : t -> string
| 12.555556 | 38 | 0.60177 |
bcaaa979abd808a6e6472ffaf38c0652109a4e65 | 8,456 | ml | OCaml | infer/src/cost/hoisting.ml | hakjoooh/infer | 27150cb7d3d0dc3b37b631e023fb3e4ac5e6c14d | [
"MIT"
] | 2 | 2020-12-01T19:17:41.000Z | 2021-11-16T11:16:32.000Z | infer/src/cost/hoisting.ml | hakjoooh/infer | 27150cb7d3d0dc3b37b631e023fb3e4ac5e6c14d | [
"MIT"
] | 6 | 2021-06-28T20:43:36.000Z | 2022-02-27T11:27:43.000Z | infer/src/cost/hoisting.ml | hakjoooh/infer | 27150cb7d3d0dc3b37b631e023fb3e4ac5e6c14d | [
"MIT"
] | 1 | 2021-01-29T07:48:02.000Z | 2021-01-29T07:48:02.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! IStd
module F = Format
module InstrCFG = ProcCfg.NormalOneInstrPerNode
module BasicCost = CostDomain.BasicCost
module Call = ... | 42.492462 | 100 | 0.72895 |
aa4038926a6b752091013cbe07a716550b913545 | 25,202 | ml | OCaml | src/ocaml/typing/409/btype.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 1 | 2021-06-14T11:08:56.000Z | 2021-06-14T11:08:56.000Z | src/ocaml/typing/409/btype.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 4 | 2019-01-19T10:08:04.000Z | 2019-02-27T21:41:30.000Z | src/ocaml/typing/409/btype.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 1 | 2021-06-14T11:07:29.000Z | 2021-06-14T11:07:29.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier L... | 30.960688 | 80 | 0.596778 |
aaaf760ac783249d455c6ee07c288e814da25a62 | 4,030 | ml | OCaml | hphp/hack/src/server/ideMain.ml | wjywbs/hhvm | 9d44d30ec32618e30a82274923b5842b62a9c0f9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/ideMain.ml | wjywbs/hhvm | 9d44d30ec32618e30a82274923b5842b62a9c0f9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/ideMain.ml | wjywbs/hhvm | 9d44d30ec32618e30a82274923b5842b62a9c0f9 | [
"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.
*
*)
type env = {
... | 33.032787 | 80 | 0.703474 |
aa4232e8ea2a6f682910e5ff6edb326c149b9253 | 665 | ml | OCaml | src/coq_ocaml/BinPos.ml | emacsmirror/ligo-mode | e3e3d6b30b291b1a83af88e4b96b6006011a4fb6 | [
"MIT"
] | 2 | 2021-03-06T12:11:41.000Z | 2021-11-21T13:54:18.000Z | src/coq_ocaml/BinPos.ml | emacsmirror/ligo-mode | e3e3d6b30b291b1a83af88e4b96b6006011a4fb6 | [
"MIT"
] | null | null | null | src/coq_ocaml/BinPos.ml | emacsmirror/ligo-mode | e3e3d6b30b291b1a83af88e4b96b6006011a4fb6 | [
"MIT"
] | null | null | null | open Datatypes
module Pos =
struct
(** val succ : Zarith.t -> Zarith.t **)
let rec succ x =
(fun b1 b2 b3 x -> Zarith.(if x = one then b3 () else let (q, r) = ediv_rem x (of_int 2) in if r = zero then b2 q else b1 q))
(fun p -> (fun x -> Zarith.mul (Zarith.add Zarith.one Zarith.one) x)
(succ p))
... | 28.913043 | 129 | 0.578947 |
aa4831fcebea8d13d84b9e719263f03a3ee6497b | 577 | ml | OCaml | src/.termination.ml | ghasshee/pen | 82f41845ee99a6c3a1b221fab10f6b690c0ef8cc | [
"Apache-2.0"
] | null | null | null | src/.termination.ml | ghasshee/pen | 82f41845ee99a6c3a1b221fab10f6b690c0ef8cc | [
"Apache-2.0"
] | null | null | null | src/.termination.ml | ghasshee/pen | 82f41845ee99a6c3a1b221fab10f6b690c0ef8cc | [
"Apache-2.0"
] | null | null | null |
(* Termination *)
type termination =
| OnTheWay
| ReturnBySize of int
| JustStop
(* and codegen_if_then le ce ly cond stmts =
let label = fresh_label () in
let ce = cond ... | 33.941176 | 68 | 0.369151 |
aac39ad4f284241f9de4377d56499fe9edcbac08 | 8,092 | ml | OCaml | hphp/hack/src/server/serverFindRefs.ml | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverFindRefs.ml | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverFindRefs.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 Option.Monad_infix
open ServerEnv
open Reordered_argument_collections
open ServerCommandTypes.F... | 36.125 | 92 | 0.721206 |
bcf8e344bbf91e8dbda50cbf528a796c8fc8e10a | 1,103 | ml | OCaml | Compiler/test/for_in_scoping.ml | adrian-rt/fuzzilli | be1b5f88c4c46cca045e824960e08f117af82d10 | [
"Apache-2.0"
] | null | null | null | Compiler/test/for_in_scoping.ml | adrian-rt/fuzzilli | be1b5f88c4c46cca045e824960e08f117af82d10 | [
"Apache-2.0"
] | null | null | null | Compiler/test/for_in_scoping.ml | adrian-rt/fuzzilli | be1b5f88c4c46cca045e824960e08f117af82d10 | [
"Apache-2.0"
] | null | null | null | open Program_types
let input =
"i = \"ABC\"
for (i in [0, 0]) {
}
b = i + \"D\";"
let correct = [
{
inouts = [0l];
operation = Load_string {value = "ABC"};
};
{
inouts = [0l; 1l];
operation = Dup;
};
{
inouts = [2l];
operation = Load_integer {value ... | 19.696429 | 76 | 0.483228 |
aaacb1870ec11b1ef44570154543136e93ed0494 | 1,911 | ml | OCaml | libraries/rds/lib/applyPendingMaintenanceAction.ml | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/rds/lib/applyPendingMaintenanceAction.ml | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/rds/lib/applyPendingMaintenanceAction.ml | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
open Aws
type input = ApplyPendingMaintenanceActionMessage.t
type output = ApplyPendingMaintenanceActionResult.t
type error = Errors_internal.t
let service = "rds"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_... | 27.695652 | 87 | 0.629513 |
aac24d159162698cb19546cffc3335dcf4d8c897 | 2,371 | ml | OCaml | node-test/bindings/expected/promise.ml | cannorin/gen_js_api | c5c4de90f76c21040a4c6e591c57ec6ae820ff05 | [
"MIT"
] | null | null | null | node-test/bindings/expected/promise.ml | cannorin/gen_js_api | c5c4de90f76c21040a4c6e591c57ec6ae820ff05 | [
"MIT"
] | null | null | null | node-test/bindings/expected/promise.ml | cannorin/gen_js_api | c5c4de90f76c21040a4c6e591c57ec6ae820ff05 | [
"MIT"
] | null | null | null | [@@@js.dummy "!! This code has been generated by gen_js_api !!"]
[@@@ocaml.warning "-7-32-39"]
module UntypedPromise =
struct
type t = Ojs.t
let rec (t_of_js : Ojs.t -> t) = fun x2 -> x2
and (t_to_js : t -> Ojs.t) = fun x1 -> x1
let (resolve : Ojs.t -> Ojs.t) =
fun x3 ->
Ojs.call (Ojs.ge... | 35.924242 | 77 | 0.568958 |
aa282c9e0a7979ce33f2f892daecb469f776d552 | 226 | mli | OCaml | libraries/sdb/lib/getAttributes.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/sdb/lib/getAttributes.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/sdb/lib/getAttributes.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | open Types_internal
type input = GetAttributesRequest.t
type output = GetAttributesResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 32.285714 | 74 | 0.756637 |
aa8333013bb8650c7bfd4b4be0733d171baeac84 | 1,513 | ml | OCaml | unix/packed_flow.ml | richardclegg/ocaml-pcap | a060225aee9e7912ab2ea14210c6392bec88ed5c | [
"0BSD"
] | 1 | 2021-04-25T11:14:15.000Z | 2021-04-25T11:14:15.000Z | unix/packed_flow.ml | richardclegg/ocaml-pcap | a060225aee9e7912ab2ea14210c6392bec88ed5c | [
"0BSD"
] | null | null | null | unix/packed_flow.ml | richardclegg/ocaml-pcap | a060225aee9e7912ab2ea14210c6392bec88ed5c | [
"0BSD"
] | null | null | null | (* * Copyright (c) 2013 Richard Mortier <mort@cantab.net> * and Richard G. *)
(* Clegg <richard@richardclegg.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 *)
(* permi... | 43.228571 | 116 | 0.643754 |
aa703882d808ef28636eb65741324955b3ffdec4 | 1,630 | ml | OCaml | lib/protocol/messages/message.ml | giltho/ocaml-lsplib | 64ad0532bba22c0baacba04e83d5e760f9466934 | [
"MIT"
] | null | null | null | lib/protocol/messages/message.ml | giltho/ocaml-lsplib | 64ad0532bba22c0baacba04e83d5e760f9466934 | [
"MIT"
] | 2 | 2018-11-19T18:03:17.000Z | 2019-04-01T16:41:18.000Z | lib/protocol/messages/message.ml | giltho/ocaml-lsp-implementation | 64ad0532bba22c0baacba04e83d5e760f9466934 | [
"MIT"
] | null | null | null | (** This module describes received messages and how to parse them *)
open Json
open Result
(** Type of received messages, it can be either a request, a notification or a
response to a prevously sent request *)
type t =
| MRequest of RequestMessage.t
| MNotification of NotificationMessage.t
| MResponse of Re... | 37.045455 | 78 | 0.652761 |
aacae47f5d6e4845f83f0fd17fcc3cd6bb4f6582 | 6,722 | ml | OCaml | infer/src/integration/CaptureCompilationDatabase.ml | avery-laird/term-project | 00bcd0a3dca5ef7247c6758747d04e5c51d51f64 | [
"MIT"
] | 1 | 2019-11-23T14:35:34.000Z | 2019-11-23T14:35:34.000Z | infer/src/integration/CaptureCompilationDatabase.ml | avery-laird/term-project | 00bcd0a3dca5ef7247c6758747d04e5c51d51f64 | [
"MIT"
] | null | null | null | infer/src/integration/CaptureCompilationDatabase.ml | avery-laird/term-project | 00bcd0a3dca5ef7247c6758747d04e5c51d51f64 | [
"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 L = Logging
let create_cmd (source_file, (compilation_data : CompilationDatabase.compilation_d... | 41.493827 | 101 | 0.687444 |
aac3e6e5bbd7c9cbad7492a93bdd22b529071844 | 1,466 | mli | OCaml | coq-serapi/serlib/ser_notation_term.mli | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq-serapi/serlib/ser_notation_term.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq-serapi/serlib/ser_notation_term.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... | 58.64 | 91 | 0.45498 |
aa9bb2572ca64b88358bd0cd8be4a4155c4e71e9 | 11,974 | mll | OCaml | lib/AArch64Lexer.mll | jmadiot/herdtools7 | b58a26946e2012a40ad280c3a11f2d251824a3ae | [
"CECILL-B"
] | null | null | null | lib/AArch64Lexer.mll | jmadiot/herdtools7 | b58a26946e2012a40ad280c3a11f2d251824a3ae | [
"CECILL-B"
] | null | null | null | lib/AArch64Lexer.mll | jmadiot/herdtools7 | b58a26946e2012a40ad280c3a11f2d251824a3ae | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 31.677249 | 79 | 0.560214 |
8a8c299747f32a73976a4bed021149957d67b17c | 2,504 | mli | OCaml | hphp/hack/src/third-party/core/result.mli | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | 7 | 2015-08-28T06:20:50.000Z | 2021-11-08T09:48:24.000Z | hack/third-party/core/result.mli | leebyron/flow | f35d3a96ad1fb4a985bf522ddc63ac1f66360904 | [
"BSD-3-Clause"
] | 2 | 2021-07-07T23:32:21.000Z | 2022-03-23T16:49:04.000Z | hack/third-party/core/result.mli | leebyron/flow | f35d3a96ad1fb4a985bf522ddc63ac1f66360904 | [
"BSD-3-Clause"
] | 3 | 2018-01-23T20:44:59.000Z | 2021-05-06T12:45:31.000Z | (** [Result] is often used to handle error messages. *)
(** ['a] is a function's expected return type, and ['b] is often an error message string.
{[let ric_of_ticker = function
| "IBM" -> Ok "IBM.N"
| "MSFT" -> Ok "MSFT.OQ"
| "AA" -> Ok "AA.N"
| "CSCO" -> Ok "CSCO.OQ"
| _ as ticker -> Error (sp... | 30.168675 | 89 | 0.550719 |
bc81f98086ec91a56c8a7a4a23061846172d5d06 | 1,312 | mli | OCaml | client/build_order.mli | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | client/build_order.mli | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | client/build_order.mli | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | open! Core
open! Async
open! Import
(** [sort repo_root xs path_in_repo] sorts [xs] in dependency order of their
[path_in_repo] as determined by build artifacts in [repo_root]. The result is always
a permutation of [xs]. The determination of dependency order may fail, and if so,
[sort] does not raise, bu... | 37.485714 | 89 | 0.697409 |
bccc0fa6ca16cea651cbeb6fc8bddbc762a182b4 | 743 | ml | OCaml | benchmarks/C/formula/sol396.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/formula/sol396.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/formula/sol396.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type formula =
| True
| False
| Not of formula
| AndAlso of formula * formula
| OrElse of formula * formula
| Imply of formula * formula
| Equal of exp * exp
and exp =
| Num of int
| Plus of exp * exp
| Minus of exp * exp
let rec eval : formula -> bool
= fun f -> match f with
| True -> true
| Fal... | 25.62069 | 63 | 0.553163 |
aa27e6c9133b59d57d6e88f4626310ed355c89d4 | 651 | ml | OCaml | lib/mail_io.ml | lyrm/spamtacus | 0d5dd772f7e4821df5417fa670f68ea738563ed2 | [
"MIT"
] | 11 | 2022-01-05T14:28:48.000Z | 2022-01-07T13:04:17.000Z | lib/mail_io.ml | lyrm/spaml | 0d5dd772f7e4821df5417fa670f68ea738563ed2 | [
"MIT"
] | null | null | null | lib/mail_io.ml | lyrm/spaml | 0d5dd772f7e4821df5417fa670f68ea738563ed2 | [
"MIT"
] | 1 | 2022-01-18T19:39:16.000Z | 2022-01-18T19:39:16.000Z | let read fpath =
let filename = Fpath.to_string fpath in
let ic = open_in filename in
(* drop first line *)
let first_line = input_line ic in
let acc =
if String.sub first_line 0 5 = "From " then [] else [ first_line ]
in
let rec go acc =
match input_line ic with
| line -> go ((line ^ "\r\n") ... | 26.04 | 73 | 0.665131 |
bce17bff407ad116947271d84a46ea117337b067 | 39,087 | ml | OCaml | bootstrap/src/basis/array.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 25 | 2020-02-03T20:31:04.000Z | 2022-03-30T17:22:35.000Z | bootstrap/src/basis/array.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 152 | 2020-02-03T23:16:05.000Z | 2022-02-24T22:14:04.000Z | bootstrap/src/basis/array.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 4 | 2020-02-03T07:36:22.000Z | 2020-10-31T03:44:52.000Z | open Rudiments0
module List = List0
module T = struct
type 'a t = 'a array
type 'a elm = 'a
let get i t =
Stdlib.Array.get t Uns.(trunc_to_int i)
let length t =
Uns.extend_of_int (Stdlib.Array.length t)
let range t =
0L =:< (length t)
module Cursor = struct
module T = struct
type... | 28.803979 | 100 | 0.516105 |
aa7328017389a940d6fbfc72e1b38849b6552a4d | 25,143 | ml | OCaml | src/encoding.ml | idkjs/data-encoding | 8aafa6c39c9636687b26a5f02630844b42e9a3ca | [
"MIT"
] | 3 | 2020-12-27T15:33:25.000Z | 2020-12-31T08:03:06.000Z | src/encoding.ml | idkjs/data-encoding | 8aafa6c39c9636687b26a5f02630844b42e9a3ca | [
"MIT"
] | null | null | null | src/encoding.ml | idkjs/data-encoding | 8aafa6c39c9636687b26a5f02630844b42e9a3ca | [
"MIT"
] | 1 | 2021-07-18T23:03:49.000Z | 2021-07-18T23:03:49.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 26.550158 | 80 | 0.549218 |
aaa397806cf4048fc9207711e531d0a1b47cb3dc | 3,361 | ml | OCaml | infer/src/unit/stacktraceTests.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 4 | 2021-11-19T02:07:46.000Z | 2022-03-24T06:03:50.000Z | infer/src/unit/stacktraceTests.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 1 | 2021-04-05T15:19:58.000Z | 2021-12-16T04:22:26.000Z | infer/src/unit/stacktraceTests.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 1 | 2019-10-24T14:47:52.000Z | 2019-10-24T14:47:52.000Z | (*
* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
let tests =
let open OUnit2 in
let empty_string_test =
let empty_string_test_ _ =
assert_raises (Logging.InferU... | 40.987805 | 100 | 0.725974 |
aab73588f8d3d41fb390f8a3cce1064776da22ae | 901 | ml | OCaml | ag_json.ml | ashima/atdgen | 572ec2ff7f807183361c9ca65afaee373191450e | [
"BSD-3-Clause"
] | 1 | 2021-07-27T12:28:56.000Z | 2021-07-27T12:28:56.000Z | ag_json.ml | ashima/atdgen | 572ec2ff7f807183361c9ca65afaee373191450e | [
"BSD-3-Clause"
] | null | null | null | ag_json.ml | ashima/atdgen | 572ec2ff7f807183361c9ca65afaee373191450e | [
"BSD-3-Clause"
] | null | null | null |
(*
Mapping from ATD to JSON
*)
type json_list = [ `Array | `Object ]
type json_variant = { json_cons : string }
type json_field = {
json_fname : string;
json_unwrapped : bool
}
type json_repr =
[
| `Unit
| `Bool
| `Int
| `Float
| `String
| `Sum
| `Record
| `Tuple
| `... | 17.326923 | 67 | 0.603774 |
aa7caf3f4c6bb2631d78555b06c6b5801cb42640 | 163,300 | ml | OCaml | source/analysis/analysisError.ml | PulkitMishra/pyre-check | 44a9707d4a43ec98ea1833ce42e36998e41bca68 | [
"MIT"
] | null | null | null | source/analysis/analysisError.ml | PulkitMishra/pyre-check | 44a9707d4a43ec98ea1833ce42e36998e41bca68 | [
"MIT"
] | 2 | 2021-08-21T07:50:23.000Z | 2022-02-27T21:33:33.000Z | source/analysis/analysisError.ml | PulkitMishra/pyre-check | 44a9707d4a43ec98ea1833ce42e36998e41bca68 | [
"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 Core
open Ast
open Pyre
open Statement
module Type = struct
include Type
let compare = Type.namespace_insensitive_compar... | 40.865866 | 114 | 0.64229 |
aa4da441eba71262fa01177381981cc8460302a4 | 9,386 | ml | OCaml | src/phl/ecPhlFel.ml | oskgo/easycrypt | 38c4947433b1a42896540edfa534f76502fc8f92 | [
"MIT"
] | null | null | null | src/phl/ecPhlFel.ml | oskgo/easycrypt | 38c4947433b1a42896540edfa534f76502fc8f92 | [
"MIT"
] | null | null | null | src/phl/ecPhlFel.ml | oskgo/easycrypt | 38c4947433b1a42896540edfa534f76502fc8f92 | [
"MIT"
] | null | null | null | (* -------------------------------------------------------------------- *)
open EcUtils
open EcParsetree
open EcPath
open EcTypes
open EcModules
open EcFol
open EcEnv
open EcPV
open EcCoreGoal
module TTC = EcProofTyping
(* -------------------------------------------------------------------- *)
module IFEL : sig
va... | 33.521429 | 93 | 0.614639 |
aa63c8ac20c1271ee5ec0b493ea9449772376e85 | 761 | mli | OCaml | VM/Private/Primitives.mli | 5HT/ant | 6acf51f4c4ebcc06c52c595776e0293cfa2f1da4 | [
"0BSD"
] | 10 | 2021-09-24T12:15:42.000Z | 2021-11-02T13:50:22.000Z | VM/Private/Primitives.mli | 5HT/ant | 6acf51f4c4ebcc06c52c595776e0293cfa2f1da4 | [
"0BSD"
] | null | null | null | VM/Private/Primitives.mli | 5HT/ant | 6acf51f4c4ebcc06c52c595776e0293cfa2f1da4 | [
"0BSD"
] | 1 | 2021-10-24T02:48:48.000Z | 2021-10-24T02:48:48.000Z |
open Unicode.Types;
open Types;
value uc_string_to_char_list : uc_string -> partial_value;
value uc_list_to_char_list : uc_list -> partial_value;
value ascii_to_char_list : string -> partial_value;
value evaluate_char_list : string -> unknown -> uc_list;
value initial_scope : unit -> Scope.scope;
value b... | 40.052632 | 77 | 0.721419 |
aa880fd92a55046a8aff0ec2cacf94bb6f5f1c5f | 115 | mli | OCaml | presentation/world-cup/world-cup-lib/src/main/ocaml/soccer/simulator/random_winner.mli | struktured/ocamljava-maven-plugin | 1caa69af37377de7a88a80afc56d8a1476103da3 | [
"Apache-2.0"
] | 4 | 2015-01-04T05:31:03.000Z | 2016-06-04T13:43:18.000Z | presentation/world-cup/world-cup-lib/src/main/ocaml/soccer/simulator/random_winner.mli | struktured/ocamljava-maven-plugin | 1caa69af37377de7a88a80afc56d8a1476103da3 | [
"Apache-2.0"
] | 1 | 2015-04-22T22:02:47.000Z | 2015-04-22T22:32:57.000Z | presentation/world-cup/world-cup-lib/src/main/ocaml/soccer/simulator/random_winner.mli | struktured/ocamljava-maven-plugin | 1caa69af37377de7a88a80afc56d8a1476103da3 | [
"Apache-2.0"
] | null | null | null | open World_cup
val pick_winner: team -> team -> (team*team)
val iter: int -> int -> team -> team -> (team*team)
| 16.428571 | 51 | 0.626087 |
aa784bd37050a3450538cfaa50be6d8c9a9bb317 | 965 | mli | OCaml | interfaces/3.10/parsing.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 23 | 2017-11-16T10:01:56.000Z | 2021-06-23T08:44:44.000Z | interfaces/3.10/parsing.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 15 | 2018-04-21T13:49:52.000Z | 2022-02-16T11:19:38.000Z | interfaces/3.10/parsing.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 8 | 2018-04-23T18:10:00.000Z | 2021-12-14T14:31:22.000Z | val symbol_start : unit -> int
val symbol_end : unit -> int
val rhs_start : int -> int
val rhs_end : int -> int
val symbol_start_pos : unit -> Lexing.position
val symbol_end_pos : unit -> Lexing.position
val rhs_start_pos : int -> Lexing.position
val rhs_end_pos : int -> Lexing.position
val clear_parser : unit -> unit
... | 26.805556 | 69 | 0.693264 |
aa9e498b9e569811949cbc95f1586f75157442d4 | 17,312 | ml | OCaml | src/time_stamp_counter.ml | edwintorok/core | 2fb1fc69a879006ffaa9ba692cee329291df9ccb | [
"MIT"
] | null | null | null | src/time_stamp_counter.ml | edwintorok/core | 2fb1fc69a879006ffaa9ba692cee329291df9ccb | [
"MIT"
] | null | null | null | src/time_stamp_counter.ml | edwintorok/core | 2fb1fc69a879006ffaa9ba692cee329291df9ccb | [
"MIT"
] | null | null | null | (* Time stamp counter
==================
This module tries to estimate time based on the CPU time stamp counter (TSC). The time
estimates reported by this module are monotonically increasing. It uses [Time.now ()]
as its measure of "real time" to do this.
Historically, the rate of increment of the TS... | 37.964912 | 103 | 0.661853 |
bca76638ee8eb5f45f8a77bf205ae3c5634d32b3 | 352 | mli | OCaml | src/CBOR.mli | joelburget/ocaml-cbor | 4a42a29f329c670cb24a9f08b41d39c64d9227f6 | [
"MIT"
] | null | null | null | src/CBOR.mli | joelburget/ocaml-cbor | 4a42a29f329c670cb24a9f08b41d39c64d9227f6 | [
"MIT"
] | null | null | null | src/CBOR.mli | joelburget/ocaml-cbor | 4a42a29f329c670cb24a9f08b41d39c64d9227f6 | [
"MIT"
] | null | null | null | (** CBOR encoder/decoder, RFC 7049 *)
exception Error of string
module Simple : sig
type t =
[ `Null
| `Undefined
| `Simple of int
| `Bool of bool
| `Int of int
| `Float of float
| `Bytes of string
| `Text of string
| `Array of t list
| `Map of (t * t) list
]
val encode : t -> string
val decode : string -> t
val t... | 13.538462 | 37 | 0.644886 |
44d056bbb850f7ec6e5d8b4f40762d61649ac263 | 9,003 | ml | OCaml | src/server/persistent_connection/persistent_connection.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2020-06-21T01:14:46.000Z | 2020-06-21T01:14:46.000Z | src/server/persistent_connection/persistent_connection.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 2 | 2021-05-11T22:39:32.000Z | 2021-09-02T16:14:18.000Z | src/server/persistent_connection/persistent_connection.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2021-01-06T10:57:53.000Z | 2021-01-06T10:57:53.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.
*)
module Prot = LspProt
type type_contents_artifacts =
Context.t
* Docblock.t
* File_sig.With_Loc.t
* (ALoc.t, ALoc.t * Type... | 36.897541 | 98 | 0.739864 |
aa8dbcc58ce8eee045df2aed63d8236c0df31606 | 8,714 | ml | OCaml | hphp/hack/src/providers/fixme_provider.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/providers/fixme_provider.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2020-10-11T22:54:12.000Z | 2021-07-20T22:12:10.000Z | hphp/hack/src/providers/fixme_provider.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"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
module Fixme_store = Provider_backend.Fixme_store
open Provider_backend.Fixmes
(*******************... | 33.906615 | 79 | 0.702548 |
bc9de6f22bd368a5fb07593ad76a5dc740bfb369 | 42,247 | ml | OCaml | src/typecheck/tff.ml | quicquid/dolmen | 86bc56a194660a2d6a4cc513c1341f0d934e2d9d | [
"BSD-2-Clause"
] | null | null | null | src/typecheck/tff.ml | quicquid/dolmen | 86bc56a194660a2d6a4cc513c1341f0d934e2d9d | [
"BSD-2-Clause"
] | null | null | null | src/typecheck/tff.ml | quicquid/dolmen | 86bc56a194660a2d6a4cc513c1341f0d934e2d9d | [
"BSD-2-Clause"
] | null | null | null |
(* This file is free software, part of dolmen. See file "LICENSE" for more information *)
open Dolmen
module type S = Tff_intf.S
(* Common types *)
(* ************************************************************************ *)
(* The type of reasons for constant typing *)
type reason =
| Inferred of ParseLocation... | 32.078208 | 96 | 0.55772 |
bcda920395d26feb0c18fde8205c48c593f99b68 | 2,212 | ml | OCaml | src/jwt_c.ml | issuu/ocaml-libjwt | 5d183b0cdc5ed68009756c8d2af0bab6c703bad5 | [
"Apache-2.0"
] | 3 | 2019-02-14T11:10:14.000Z | 2020-06-11T12:47:09.000Z | src/jwt_c.ml | issuu/ocaml-libjwt | 5d183b0cdc5ed68009756c8d2af0bab6c703bad5 | [
"Apache-2.0"
] | 2 | 2018-10-29T12:11:15.000Z | 2020-08-14T09:53:05.000Z | src/jwt_c.ml | issuu/ocaml-libjwt | 5d183b0cdc5ed68009756c8d2af0bab6c703bad5 | [
"Apache-2.0"
] | null | null | null | type t
type error = [ `Jwt_error of string * int ]
exception Jwt_error of string * int
let () = Callback.register_exception "jwt exception" (Jwt_error ("<function name>", -1))
type algorithm =
| NONE
| HS256
| HS384
| HS512
| RS256
| RS384
| RS512
| ES256
| ES384
| ES512
| TERM
extern... | 35.111111 | 91 | 0.729204 |
bc92acae20b188c4d6566f64e9a5cf9dbd22822b | 1,831 | mly | OCaml | examples/src/smtRetparser.mly | swordJJ/MultiParaverifier | 08551144715157e1c5652679a7b1071963996371 | [
"MIT"
] | null | null | null | examples/src/smtRetparser.mly | swordJJ/MultiParaverifier | 08551144715157e1c5652679a7b1071963996371 | [
"MIT"
] | null | null | null | examples/src/smtRetparser.mly | swordJJ/MultiParaverifier | 08551144715157e1c5652679a7b1071963996371 | [
"MIT"
] | null | null | null | %token <string> INTEGER
%token <string> ID
%token LEFT_MIDBRACE
%token RIGHT_MIDBRACE
%token EQ
%token COMMA
%token SENDTO
%token LEFT_BRACE
%token RIGHT_BRACE
%token ELSE
%token EOF
%start <(string * string) list> smtModel
%%
(* part 1
ruleset i:client; j: client do
invariant "coherence"
i != j -> (n[i] = C -... | 25.082192 | 114 | 0.613326 |
aaa0f7514f34325579513846fe13104336104444 | 1,447 | mli | OCaml | src/lib/mina_base/sparse_ledger.mli | junjiequ123/mina | 0d0e15cc3276f5d9f66ef9024ecad929fc93ddac | [
"Apache-2.0"
] | 929 | 2020-10-02T07:23:16.000Z | 2022-03-31T15:02:09.000Z | src/lib/mina_base/sparse_ledger.mli | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 3,154 | 2020-09-29T15:47:44.000Z | 2022-03-31T16:22:28.000Z | src/lib/mina_base/sparse_ledger.mli | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 216 | 2020-09-29T19:47:41.000Z | 2022-03-27T08:44:29.000Z | open Core
open Snark_params.Tick
[%%versioned:
module Stable : sig
module V1 : sig
type t =
( Ledger_hash.Stable.V1.t
, Account_id.Stable.V1.t
, Account.Stable.V1.t
, Token_id.Stable.V1.t )
Sparse_ledger_lib.Sparse_ledger.T.Stable.V1.t
[@@deriving sexp, to_yojson]
end
end]
va... | 24.948276 | 80 | 0.70698 |
44b59563359eb401e399efb2d2dd788c1b922e37 | 2,446 | ml | OCaml | day19/part1.ml | fsouza/aoc-2020 | 9067f07e62b2fb0857fbdba4a440d8742e3399c3 | [
"0BSD"
] | 4 | 2020-12-03T04:40:54.000Z | 2020-12-09T12:42:19.000Z | day19/part1.ml | fsouza/aoc-2020 | 9067f07e62b2fb0857fbdba4a440d8742e3399c3 | [
"0BSD"
] | 2 | 2020-12-15T04:12:03.000Z | 2021-01-13T04:04:18.000Z | day19/part1.ml | fsouza/aoc-2020 | 9067f07e62b2fb0857fbdba4a440d8742e3399c3 | [
"0BSD"
] | null | null | null | open StdLabels
open MoreLabels
type rule =
| Char of char
| Seq of string list
| AltSeq of string list * string list
let parse_rule r =
let parse_seq refs = refs |> String.trim |> String.split_on_char ~sep:' ' in
match r with
| "\"a\"" -> Char 'a'
| "\"b\"" -> Char 'b'
| r -> (
match String.spli... | 30.962025 | 79 | 0.57686 |
bc90a20643f1efa3457cb838e16041172e94935d | 2,012 | ml | OCaml | fpat/NNF.ml | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 32 | 2019-10-30T10:09:56.000Z | 2022-03-28T07:15:04.000Z | fpat/NNF.ml | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 1 | 2021-04-14T19:19:15.000Z | 2021-04-15T02:03:56.000Z | fpat/NNF.ml | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 5 | 2019-11-08T07:49:00.000Z | 2022-03-01T18:09:57.000Z | open Util
open Combinator
include Formula
(** {6 Auxiliary destructors} *)
let formula_of = id
(** {6 Auxiliary constructors} *)
let of_formula =
fold
(object
method fatom atm = fun b ->
if b then of_atom atm else atm |> of_atom |> bnot
method ftrue () = fun b ->
if b then mk_true... | 30.484848 | 71 | 0.569583 |
afd5c85293c6be21ef3e6dcc291cab1f48013045 | 994 | ml | OCaml | data/derived/comb/progs/unify/prog6794.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/prog1974.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1974.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 buildCosine e = Cosine e;;
let buildSine e = Sine e;;
let buildThresh (a,b,a_less,b_less) = Thresh (a, b, a_le... | 24.85 | 77 | 0.55332 |
aa7944fb11acf573faaeb7d538983fa53b69277e | 382 | ml | OCaml | hphp/hack/src/utils/cpu_cycles.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/src/utils/cpu_cycles.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/src/utils/cpu_cycles.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | 2,126 | 2015-01-01T11:13:29.000Z | 2022-03-28T19:58:15.000Z | (* This API deliberately does not expose a way to reset the counter, so
* as not to disturb programs that expect to be able to use it themselves.
*
* There are a bunch of caveats about what happens if your
* process is interrupted or if you get scheduled onto a different
* processor.
* *)
external cpu_cycles : un... | 38.2 | 74 | 0.740838 |
bcdf4a873ebf0094f833a7091b33a2d382b623de | 432 | ml | OCaml | example/server.ml | aantron/dream-cli | 53df1e510603bd53e30b99461f480eedc0982e83 | [
"0BSD"
] | 15 | 2021-05-06T14:27:44.000Z | 2021-07-05T12:43:21.000Z | example/server.ml | aantron/dream-cli | 53df1e510603bd53e30b99461f480eedc0982e83 | [
"0BSD"
] | 4 | 2021-07-05T06:24:21.000Z | 2021-07-28T05:24:24.000Z | example/server.ml | aantron/dream-cli | 53df1e510603bd53e30b99461f480eedc0982e83 | [
"0BSD"
] | 2 | 2021-07-05T06:19:01.000Z | 2021-07-23T18:39:20.000Z | module Custom_command = struct
open Cmdliner
let run () =
print_endline "Hello World!";
0
let info = Term.info "greet" ~doc:"Say hello!" ~exits:Term.default_exits
let term = Term.(const run $ const ())
let cmd = term, info
end
let () =
Dream_cli.run ~debug:true ~commands:[ Custom_command.cmd ]
... | 21.6 | 74 | 0.643519 |
aa3e0e0d3fb24af7b0d3a4514aafc94f1d7bbb97 | 690 | mli | OCaml | lib/sendmail_handler.mli | fsalvini/letters | 4e417e6be5d3e4a7c9bd7006cbd431d601f5db35 | [
"MIT"
] | null | null | null | lib/sendmail_handler.mli | fsalvini/letters | 4e417e6be5d3e4a7c9bd7006cbd431d601f5db35 | [
"MIT"
] | null | null | null | lib/sendmail_handler.mli | fsalvini/letters | 4e417e6be5d3e4a7c9bd7006cbd431d601f5db35 | [
"MIT"
] | null | null | null | val run_with_starttls
: hostname:'a Domain_name.t
-> ?port:int
-> domain:Colombe.Domain.t
-> authentication:Sendmail.authentication
-> tls_authenticator:X509.Authenticator.t
-> from:Colombe.Reverse_path.t
-> recipients:Colombe.Forward_path.t list
-> mail:Mrmime.Mt.buffer Mrmime.Mt.stream
-> (unit, Se... | 31.363636 | 49 | 0.737681 |
bcc622db9b7cc5cea679b4d014a7c3c3a5605454 | 12,686 | ml | OCaml | interpreter/lib/builtins.ml | jacobrec/phoenix-lang | 506e957ab2319b7740027f00231e6bad4c73c856 | [
"CC0-1.0"
] | 1 | 2021-07-30T23:11:54.000Z | 2021-07-30T23:11:54.000Z | interpreter/lib/builtins.ml | jacobrec/phoenix-lang | 506e957ab2319b7740027f00231e6bad4c73c856 | [
"CC0-1.0"
] | null | null | null | interpreter/lib/builtins.ml | jacobrec/phoenix-lang | 506e957ab2319b7740027f00231e6bad4c73c856 | [
"CC0-1.0"
] | null | null | null | open Types
exception TypeErr of string
(* For the == operator *)
let rec equal v1 v2 =
Bool (match (v1, v2) with
| (Int48 v1, Int48 v2) -> Int64.equal v1 v2
| (Float v1, Float v2) -> Float.equal v1 v2
| (String v1, String v2) -> String.equal v1 v2
| (Bool v1, Bool v2) -> Bool.equal v... | 32.865285 | 94 | 0.568816 |
aa6937f7b14538809e437693a9016cf35b2a2a97 | 2,220 | ml | OCaml | test/test.ml | zapashcanon/lwt-binio | 30488545733d838c6ffaf9b08967505759cd559d | [
"MIT"
] | null | null | null | test/test.ml | zapashcanon/lwt-binio | 30488545733d838c6ffaf9b08967505759cd559d | [
"MIT"
] | null | null | null | test/test.ml | zapashcanon/lwt-binio | 30488545733d838c6ffaf9b08967505759cd559d | [
"MIT"
] | null | null | null | let ( >>= ) = Lwt.( >>= )
let () =
let max_value = 1_000 in
(* Create some test values *)
let file = "test.data" in
Lwt_main.run (
Lwt_io.with_file
~flags:[Unix.O_CREAT; Unix.O_TRUNC; Unix.O_WRONLY]
~mode:Lwt_io.output
file
(
fun out ->
let rec loop i =
... | 28.101266 | 79 | 0.485135 |
8afd25cc02d4ff4d91d7dae32a19fffa4f7c8775 | 4,214 | ml | OCaml | src/stages/3-ast_sugar/to_yojson.ml | tezos-checker/ligo | a7fa6d848e09ca546331df827caa48b2d7925dff | [
"MIT"
] | null | null | null | src/stages/3-ast_sugar/to_yojson.ml | tezos-checker/ligo | a7fa6d848e09ca546331df827caa48b2d7925dff | [
"MIT"
] | null | null | null | src/stages/3-ast_sugar/to_yojson.ml | tezos-checker/ligo | a7fa6d848e09ca546331df827caa48b2d7925dff | [
"MIT"
] | null | null | null | open Types
open Stage_common.To_yojson
let rec type_expression {type_content=tc;location} =
`Assoc [
("type_content", type_content tc);
("location", Location.to_yojson location);
]
and type_content = function
| T_variable t -> `List [ `String "t_variable"; type_variable_to_yojson t]
| T_sum ... | 52.024691 | 111 | 0.61177 |
aa1ae8a1c48923012a6789d21be2bfee663a8da2 | 17,830 | ml | OCaml | template-coq/src/constr_denoter.ml | MetaCoq/template-coq | 3d2dea1e4e940b0643cb470ce12895fc2364af7c | [
"MIT"
] | 26 | 2017-10-20T15:05:34.000Z | 2018-11-23T20:37:01.000Z | template-coq/src/constr_denoter.ml | Template-Coq/template-coq | 42dba8651f40c30be9ce211e22a68c493b10dba1 | [
"MIT"
] | 54 | 2017-12-09T05:05:04.000Z | 2018-11-15T11:17:08.000Z | template-coq/src/constr_denoter.ml | MetaCoq/template-coq | 3d2dea1e4e940b0643cb470ce12895fc2364af7c | [
"MIT"
] | 7 | 2017-10-20T14:06:28.000Z | 2018-10-26T09:02:35.000Z | open Pp
open Names
open Tm_util
open Denoter
module ConstrBaseDenoter =
struct
open Constr_reification
include ConstrReification
let unquote_sigt trm =
let (h,args) = app_full trm [] in
if constr_equall h texistT then
match args with
_ :: _ :: x :: y :: [] -> (x, y)
| _ -> bad_term_... | 37.068607 | 134 | 0.618172 |
aabe52a9ffbef5000399a9f80013a57d158588ef | 768 | ml | OCaml | data/fa15/repaired/rite/0104.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/repaired/rite/0104.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15/repaired/rite/0104.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z | let rec digitsOfInt =
fun n ->
(let return = [] in
if n < 0
then return
else (n - 1) :: return)
(* -------------------------------------- *)
let rec digitsOfInt =
fun n ->
(let return = [] in
if n < 0
then return
else (1 - n) :: return)
(* ---------------------------------... | 14.490566 | 64 | 0.446615 |
aaba85b33560582e0574c5f417bc184f2c02e5f0 | 13,956 | ml | OCaml | src/cow_html.ml | mor1/ocaml-cow | a4d67ac483bcec6182ec84530fb4c1027ebe1f12 | [
"0BSD"
] | null | null | null | src/cow_html.ml | mor1/ocaml-cow | a4d67ac483bcec6182ec84530fb4c1027ebe1f12 | [
"0BSD"
] | null | null | null | src/cow_html.ml | mor1/ocaml-cow | a4d67ac483bcec6182ec84530fb4c1027ebe1f12 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2010 Thomas Gazagnaire <thomas@gazagnaire.org>
* Copyright (c) 2013 Anil Madhavapeddy <anil@recoil.org>
* Copyright (c) 2015 David Sheets <sheets@alum.mit.edu>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided tha... | 27.257813 | 88 | 0.576311 |
aac9086c12b68e88ec12c70564ce841230ae351b | 929 | mli | OCaml | src/uwt_throttle.mli | djs55/uwt | c43349bf3689181756feb341e3896d4a0a695523 | [
"MIT"
] | 61 | 2015-02-21T20:02:34.000Z | 2022-01-29T09:06:32.000Z | src/uwt_throttle.mli | djs55/uwt | c43349bf3689181756feb341e3896d4a0a695523 | [
"MIT"
] | 5 | 2015-07-06T20:05:20.000Z | 2021-04-19T17:09:47.000Z | src/uwt_throttle.mli | djs55/uwt | c43349bf3689181756feb341e3896d4a0a695523 | [
"MIT"
] | 7 | 2016-03-09T16:02:09.000Z | 2019-07-26T22:54:34.000Z | (* This file is part of uwt, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/fdopen/uwt/blob/master/LICENSE.md. *)
(** Rate limiters *)
(** This module defines rate limiters. A rate limiter is parametrized
by its limit and a maximum waiting time. The [wait] function will... | 33.178571 | 79 | 0.674919 |
aac32d0c708e62198758535ae5eb1f86433567ab | 440 | mli | OCaml | src/alias.mli | bobot/jbuilder | c437069fffa6fd55eaeff4e8628d06cf36d5e39d | [
"Apache-2.0"
] | 1 | 2021-06-14T11:27:06.000Z | 2021-06-14T11:27:06.000Z | src/alias.mli | stedolan/dune | 37b1125f0334133c21ae446645163d1f290f86cd | [
"Apache-2.0"
] | null | null | null | src/alias.mli | stedolan/dune | 37b1125f0334133c21ae446645163d1f290f86cd | [
"Apache-2.0"
] | null | null | null | type t
val make : string -> dir:Path.t -> t
val default : dir:Path.t -> t
val runtest : dir:Path.t -> t
val install : dir:Path.t -> t
val dep : t -> ('a, 'a) Build.t
val file : t -> Path.t
module Store : sig
type t
val create : unit -> t
end
val add_deps : Store.t -> t -> Path.t list -> unit
type tree = Node ... | 16.923077 | 50 | 0.611364 |
bcbde83cd9c22d51dea48890e216de7e6c12a870 | 366 | mli | OCaml | ocaml/valuation.mli | herry13/sfp-lang | 200604e7b7a7818f385136622fb045f56488f13b | [
"Apache-2.0"
] | null | null | null | ocaml/valuation.mli | herry13/sfp-lang | 200604e7b7a7818f385136622fb045f56488f13b | [
"Apache-2.0"
] | null | null | null | ocaml/valuation.mli | herry13/sfp-lang | 200604e7b7a7818f385136622fb045f56488f13b | [
"Apache-2.0"
] | null | null | null | (* Author: Herry (herry13@gmail.com) *)
open Syntax
val sfpSpecificationFirstPass : sfp -> Domain.store
val sfpSpecificationSecondPass : ?main:string list -> sfp -> Domain.store
val sfpSpecificationThirdPass : ?main:string list -> sfp -> Domain.store
(** default valuation function (3 passes) **)
val sfpSpecificati... | 28.153846 | 73 | 0.734973 |
aad35181809369da0eab3671d28a71a80c85d784 | 17,048 | ml | OCaml | src/03-typechecker/simpleInfer.ml | jO-Osko/eff | d1a0405ed6c1ffe4ceb872d05994ac817300d9fd | [
"BSD-2-Clause"
] | 659 | 2015-01-09T21:04:44.000Z | 2022-03-30T05:54:03.000Z | src/03-typechecker/simpleInfer.ml | jO-Osko/eff | d1a0405ed6c1ffe4ceb872d05994ac817300d9fd | [
"BSD-2-Clause"
] | 44 | 2015-03-27T03:37:05.000Z | 2022-03-04T12:27:21.000Z | src/03-typechecker/simpleInfer.ml | jO-Osko/eff | d1a0405ed6c1ffe4ceb872d05994ac817300d9fd | [
"BSD-2-Clause"
] | 38 | 2015-03-27T23:28:30.000Z | 2022-03-29T00:21:25.000Z | open Utils
open Language
module T = Type
module Untyped = UntypedSyntax
module Unify = SimpleUnify
module EffectMap = Map.Make (CoreTypes.Effect)
module VariableMap = Map.Make (CoreTypes.Variable)
type state = {
context : Type.ty_scheme VariableMap.t;
effects : (Type.ty * Type.ty) EffectMap.t;
constraints : (T.t... | 37.222707 | 108 | 0.590744 |
aa9f64385891fef5600cc18308969d7cd8d574ad | 2,131 | ml | OCaml | azure/hol-light-nat/system.ml | fbrausse/flyspeck | 66f4ef0f9252c382333586fc07787e64d8a4bbfb | [
"MIT"
] | 125 | 2016-03-22T22:29:23.000Z | 2022-02-15T05:43:43.000Z | azure/hol-light-nat/system.ml | fbrausse/flyspeck | 66f4ef0f9252c382333586fc07787e64d8a4bbfb | [
"MIT"
] | 4 | 2015-10-13T17:38:34.000Z | 2020-11-26T19:54:19.000Z | azure/hol-light-nat/system.ml | fbrausse/flyspeck | 66f4ef0f9252c382333586fc07787e64d8a4bbfb | [
"MIT"
] | 9 | 2017-06-21T08:48:56.000Z | 2021-05-13T02:07:27.000Z | (* ========================================================================= *)
(* Some miscellaneous OCaml system hacking before we get started. *)
(* *)
(* (c) Copyright, John Harrison 1998-2007 *)
... | 38.053571 | 79 | 0.352417 |
bc529e0476d64c652f09df4a31bf958edde2a8e8 | 6,682 | ml | OCaml | src/typing/repos_cache.ml | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | 20,996 | 2015-01-01T13:51:47.000Z | 2022-03-31T17:44:01.000Z | src/typing/repos_cache.ml | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | 8,315 | 2015-01-01T19:56:43.000Z | 2022-03-31T15:58:10.000Z | src/typing/repos_cache.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.
*)
(** Reposition cache to prevent repositioning loops
Repositioning improves error messages by changing reasons to positions clo... | 34.266667 | 82 | 0.634092 |
aa566f17933cbd03975c244deac7b266d4eacc7d | 2,766 | ml | OCaml | src/async_sys.ml | mt-caret/async_unix | 5083d4b28b789af96faa983aa53968e2b9561a7b | [
"MIT"
] | null | null | null | src/async_sys.ml | mt-caret/async_unix | 5083d4b28b789af96faa983aa53968e2b9561a7b | [
"MIT"
] | null | null | null | src/async_sys.ml | mt-caret/async_unix | 5083d4b28b789af96faa983aa53968e2b9561a7b | [
"MIT"
] | null | null | null | open Core
open Import
module Unix = Unix_syscalls
let argv = (Sys.argv [@warning "-3"])
let get_argv = Sys.get_argv
let executable_name = Sys.executable_name
let wrap1 f x1 = In_thread.run (fun () -> f x1)
let wrap2 f x1 x2 = In_thread.run (fun () -> f x1 x2)
let when_file_changes
?(time_source = Time_source.wa... | 30.065217 | 89 | 0.682574 |
bc9298945895af1cc5cacffba1deaa7a585e9eb1 | 699 | mli | OCaml | infer/src/biabduction/BiabductionReporting.mli | HybridDeveloper/infer | d01ada643d70202d9afd5e5c2d6ece715335a426 | [
"MIT"
] | null | null | null | infer/src/biabduction/BiabductionReporting.mli | HybridDeveloper/infer | d01ada643d70202d9afd5e5c2d6ece715335a426 | [
"MIT"
] | null | null | null | infer/src/biabduction/BiabductionReporting.mli | HybridDeveloper/infer | d01ada643d70202d9afd5e5c2d6ece715335a426 | [
"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
val log_error_using_state : Procdesc.t -> Errlog.t -> exn -> unit
(** Add an error to the given summary using biabducti... | 29.125 | 100 | 0.718169 |
bcf17e98a89365d873af35355e329a3db537f469 | 1,829 | ml | OCaml | src/dune/sandbox_mode.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | src/dune/sandbox_mode.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | src/dune/sandbox_mode.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | open! Stdune
type some =
| Symlink
| Copy
let compare_some a b =
match (a, b) with
| Symlink, Symlink -> Eq
| Symlink, _ -> Lt
| _, Symlink -> Gt
| Copy, Copy -> Eq
type t = some option
let compare = Option.compare compare_some
let equal a b =
match compare a b with
| Eq -> true
| Lt
| Gt ->
... | 18.108911 | 72 | 0.565883 |
bca9485b95dd4131e0ede0c6b1f4396232541874 | 2,014 | ml | OCaml | src/base/db/db.ml | idkjs/Cumulus | 5c2aa4a01186a06ec3ac1b0b9fe7056a0e93eeb0 | [
"MIT"
] | 24 | 2015-06-25T11:32:09.000Z | 2021-04-05T01:56:04.000Z | src/base/db/db.ml | idkjs/Cumulus | 5c2aa4a01186a06ec3ac1b0b9fe7056a0e93eeb0 | [
"MIT"
] | 1 | 2019-11-15T13:53:52.000Z | 2019-11-15T13:53:52.000Z | src/base/db/db.ml | idkjs/Cumulus | 5c2aa4a01186a06ec3ac1b0b9fe7056a0e93eeb0 | [
"MIT"
] | 3 | 2019-04-11T04:45:13.000Z | 2021-07-18T08:15:34.000Z | (*
Copyright (c) 2012 Enguerrand Decorne
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribu... | 35.333333 | 80 | 0.761172 |
aa8e0223aacdcf27afe130bf2d9fb6f9fdbff290 | 312 | ml | OCaml | examples/gen_ml_and_mli/bin/hello.ml | mooreryan/pyml_bindgen | b326af274fca2de959c9b1ec1c61030de4633304 | [
"Apache-2.0",
"MIT"
] | 24 | 2021-11-10T06:36:17.000Z | 2022-02-08T15:16:10.000Z | examples/gen_ml_and_mli/bin/hello.ml | mooreryan/pyml_bindgen | b326af274fca2de959c9b1ec1c61030de4633304 | [
"Apache-2.0",
"MIT"
] | 9 | 2022-01-28T05:57:08.000Z | 2022-03-23T05:59:21.000Z | examples/gen_ml_and_mli/bin/hello.ml | mooreryan/pyml_bindgen | b326af274fca2de959c9b1ec1c61030de4633304 | [
"Apache-2.0",
"MIT"
] | 1 | 2022-01-28T05:25:19.000Z | 2022-01-28T05:25:19.000Z | open! Base
open Gen_ml_and_mli_lib
let () = Py.initialize ()
let thing = Or_error.ok_exn @@ Thing.create ~name:"Ryan" ()
let () = assert (String.("Ryan" = Thing.name thing))
let orange = Or_error.ok_exn @@ Orange.create ~flavor:"Sooo good!" ()
let () = assert (String.("Sooo good!" = Orange.flavor orange))
| 24 | 69 | 0.669872 |
aab73f53a74f715119b68f056bfe58b99a53346c | 698 | mli | OCaml | source/hack_parallel/hack_parallel/procs/multiWorker.mli | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 5,975 | 2018-05-11T15:54:32.000Z | 2022-03-31T14:38:00.000Z | source/hack_parallel/hack_parallel/procs/multiWorker.mli | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 524 | 2018-05-11T16:47:20.000Z | 2022-03-22T17:43:06.000Z | source/hack_parallel/hack_parallel/procs/multiWorker.mli | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"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.
*)
(* The protocol for a next function is to return a list of elements.
* It will be called repeatedly until it returns an empty list... | 23.266667 | 68 | 0.648997 |
aa434820dce08aadb6857f8f30191d020ce15829 | 3,294 | ml | OCaml | src/blst/pairing.ml | ManasJayanth/ocaml-bls12-381 | 44078fbb9961b4e6711876fca72624d183d04933 | [
"MIT"
] | null | null | null | src/blst/pairing.ml | ManasJayanth/ocaml-bls12-381 | 44078fbb9961b4e6711876fca72624d183d04933 | [
"MIT"
] | null | null | null | src/blst/pairing.ml | ManasJayanth/ocaml-bls12-381 | 44078fbb9961b4e6711876fca72624d183d04933 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Copyright (c) 2020-2021 Danny Willems <be.danny.willems@gmail.com> *)
(* *)
... | 43.92 | 79 | 0.585307 |
aa538d6bd3feec9dbc3d545a444d48b04ed94b14 | 2,493 | ml | OCaml | src/ppx_deriving_main.cppo.ml | ELLIOTTCABLE/bs-deriving | bb1b0c7ec55137ddb0ac8a6439248825a9ec94e0 | [
"MIT"
] | 44 | 2019-05-18T17:01:55.000Z | 2021-08-20T17:29:02.000Z | src/ppx_deriving_main.cppo.ml | ELLIOTTCABLE/bs-deriving | bb1b0c7ec55137ddb0ac8a6439248825a9ec94e0 | [
"MIT"
] | 8 | 2019-09-10T06:39:52.000Z | 2021-01-15T12:41:13.000Z | src/ppx_deriving_main.cppo.ml | ELLIOTTCABLE/bs-deriving | bb1b0c7ec55137ddb0ac8a6439248825a9ec94e0 | [
"MIT"
] | 4 | 2019-12-15T14:47:08.000Z | 2020-06-22T20:11:04.000Z | #if OCAML_VERSION < (4, 03, 0)
#define Pconst_string Const_string
#endif
open Asttypes
open Parsetree
open Ast_helper
let raise_errorf = Ppx_deriving.raise_errorf
let dynlink ?(loc=Location.none) filename =
let filename = Dynlink.adapt_filename filename in
try
Dynlink.loadfile filename
with Dynlink.Error e... | 31.556962 | 89 | 0.690333 |
bcf9b6eff7a4fa36549b244f8eeafea6d1e151a4 | 112 | mli | OCaml | basics/unit.mli | haohangxu/why-ocaml-talk | 402a5d13355ac4458db6fd8c3260d9e2c8222bb5 | [
"MIT"
] | null | null | null | basics/unit.mli | haohangxu/why-ocaml-talk | 402a5d13355ac4458db6fd8c3260d9e2c8222bb5 | [
"MIT"
] | null | null | null | basics/unit.mli | haohangxu/why-ocaml-talk | 402a5d13355ac4458db6fd8c3260d9e2c8222bb5 | [
"MIT"
] | null | null | null | val print_hello : string -> unit
val print_hello_twice : string -> unit
val print_hello_thrice : string -> unit
| 28 | 39 | 0.758929 |
aaaa0f69fce4ceab491d2036451c116f5b17d4a2 | 1,447 | ml | OCaml | src/owl/sparse/owl_sparse_matrix_z.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | 508 | 2018-03-24T12:15:49.000Z | 2022-03-30T11:37:33.000Z | src/owl/sparse/owl_sparse_matrix_z.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | 344 | 2018-03-23T14:01:27.000Z | 2022-03-31T16:14:14.000Z | src/owl/sparse/owl_sparse_matrix_z.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | 68 | 2018-03-28T21:34:12.000Z | 2022-01-23T12:15:33.000Z | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
(** [ Complex sparse matrix ]
The default format is compressed row storage (CRS).
*)
open Bigarray
module M = Owl_sparse_matrix_generic
include M
type elt = Complex.t
type mat = (Complex.t, ... | 22.968254 | 74 | 0.658604 |
aa347aacaa3e23043a799c588f1d2f3459dbf6a0 | 267 | mli | OCaml | libraries/ec2/lib/associateTransitGatewayMulticastDomain.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/associateTransitGatewayMulticastDomain.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/ec2/lib/associateTransitGatewayMulticastDomain.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = AssociateTransitGatewayMulticastDomainRequest.t
type output = AssociateTransitGatewayMulticastDomainResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 38.142857 | 74 | 0.794007 |
aad518142db1c7db3d5f9a2d11aabdc6274bf244 | 15,316 | ml | OCaml | test/tests/autotest/dual.ml | rems-project/netsem | 0b02450eee334fc42f74ad3da09d3ce1a0698a48 | [
"BSD-2-Clause-FreeBSD"
] | 34 | 2018-02-26T20:37:44.000Z | 2022-02-24T01:49:55.000Z | test/tests/autotest/dual.ml | PeterSewell/netsem | 0b02450eee334fc42f74ad3da09d3ce1a0698a48 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | test/tests/autotest/dual.ml | PeterSewell/netsem | 0b02450eee334fc42f74ad3da09d3ce1a0698a48 | [
"BSD-2-Clause-FreeBSD"
] | 5 | 2015-04-24T15:26:34.000Z | 2017-12-12T23:39:13.000Z | (* ---------------------------------------------------------------------- *)
(* Netsem Tthee Automated Dual Tests Helper Code *)
(* Steve Bishop - Created 20030504 *)
(* $Id: dual.ml,v 1.25 2006/08/17 10:28:25 tjr22 Exp $ *)
(* -----------... | 36.553699 | 109 | 0.643249 |
aa267353668a112f5cf7d18abf9c96dfb0bc5f08 | 4,183 | mli | OCaml | hphp/hack/src/options/globalOptions.mli | ActindoForks/hhvm | 670822e2b396f2d411f4e841b4ec9ae8627ba965 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/options/globalOptions.mli | ActindoForks/hhvm | 670822e2b396f2d411f4e841b4ec9ae8627ba965 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/options/globalOptions.mli | ActindoForks/hhvm | 670822e2b396f2d411f4e841b4ec9ae8627ba965 | [
"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.
*
*)
type t = {
(... | 37.017699 | 80 | 0.746354 |
bcfa6c3c332de30cad6beffb308799466a4a6c5f | 1,883 | ml | OCaml | src/stdune/exn.ml | mlasson/dune | 599b7873be67c9798f9fe87979e7fec3b3a6d78b | [
"MIT"
] | null | null | null | src/stdune/exn.ml | mlasson/dune | 599b7873be67c9798f9fe87979e7fec3b3a6d78b | [
"MIT"
] | 2 | 2018-01-12T08:41:59.000Z | 2020-12-30T21:57:31.000Z | src/stdune/exn.ml | mlasson/dune | 599b7873be67c9798f9fe87979e7fec3b3a6d78b | [
"MIT"
] | null | null | null | module List = Dune_caml.ListLabels
module String = Dune_caml.StringLabels
type t = exn
exception Code_error of Sexp.t
exception Fatal_error of string
exception Loc_error of Loc0.t * string
external raise : exn -> _ = "%raise"
external raise_notrace : exn -> _ = "%raise_notrace"
external reraise : exn ... | 25.445946 | 74 | 0.640998 |
aad6cc1c79878d39f9670716ce08f0a8d7b713de | 206 | mli | OCaml | libraries/route53/lib/deleteHealthCheck.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/route53/lib/deleteHealthCheck.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/route53/lib/deleteHealthCheck.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = DeleteHealthCheckRequest.t
type output = unit
type error = Errors_internal.t
include
(Aws.Call with type input := input and type output := output and type
error := error) | 29.428571 | 75 | 0.728155 |
44f50b05ee039a949f0c7028a7c1272a9e88f2be | 19,657 | ml | OCaml | src/services/get_def/getDefUtils.ml | mourner/flow | 8bb9d4ef01786d18b9033f16fb0c6eec21f4b0eb | [
"MIT"
] | 1 | 2019-05-17T11:06:58.000Z | 2019-05-17T11:06:58.000Z | src/services/get_def/getDefUtils.ml | vicapow/flow | 0e6e80ae7f3d29a0fbdba8f619730bb76ec74331 | [
"MIT"
] | null | null | null | src/services/get_def/getDefUtils.ml | vicapow/flow | 0e6e80ae7f3d29a0fbdba8f619730bb76ec74331 | [
"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
open ServerEnv
module Result = Core_result
let (>>=) = Result.(>>=)
let (>>|) = Result.(>>|)
open FindRefsUtils
(... | 40.198364 | 122 | 0.67757 |
aa2870f4356a905ba97ecbf08bfc0faa344c4e67 | 8,792 | ml | OCaml | src/lib/integration_test_lib/test_error.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | 2 | 2021-07-11T21:51:34.000Z | 2021-07-29T14:33:45.000Z | src/lib/integration_test_lib/test_error.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | null | null | null | src/lib/integration_test_lib/test_error.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | null | null | null | open Core
type remote_error = {node_id: string; error_message: Logger.Message.t}
(* NB: equality on internal errors ignores timestamp *)
type internal_error =
{ occurrence_time: Time.t sexp_opaque
[@equal fun _ _ -> true] [@compare fun _ _ -> 0]
; error: Error.t
[@equal
fun a b ->
... | 36.032787 | 108 | 0.680732 |
bce6a81c243350ebfc878c7987c7b876f7618cad | 65,241 | ml | OCaml | src/main.ml | thomasuster/haxe | c690f149564e8f29f295e38b699da261bb4f6e1b | [
"MIT"
] | null | null | null | src/main.ml | thomasuster/haxe | c690f149564e8f29f295e38b699da261bb4f6e1b | [
"MIT"
] | null | null | null | src/main.ml | thomasuster/haxe | c690f149564e8f29f295e38b699da261bb4f6e1b | [
"MIT"
] | null | null | null | (*
The Haxe Compiler
Copyright (C) 2005-2016 Haxe Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This prog... | 36.508674 | 188 | 0.631382 |
bcee87e998caf9407853e560f9a237bcd7f91793 | 1,764 | ml | OCaml | examples/ocaml/skeletons/arkode_ark_skel.ml | Octachron/sundialsml | e941ad5265d6d5b152210c8d5df6b2b871af07dc | [
"BSD-3-Clause"
] | null | null | null | examples/ocaml/skeletons/arkode_ark_skel.ml | Octachron/sundialsml | e941ad5265d6d5b152210c8d5df6b2b871af07dc | [
"BSD-3-Clause"
] | null | null | null | examples/ocaml/skeletons/arkode_ark_skel.ml | Octachron/sundialsml | e941ad5265d6d5b152210c8d5df6b2b871af07dc | [
"BSD-3-Clause"
] | null | null | null | open Sundials
(* 1. Define right-hand-side functions. *)
let fe t y yd = yd.{0} <- y.{1}
let fi t y yd = yd.{1} <- -9.81
(* 2. Optionally define a root function. *)
let g t y gout = gout.{0} <- 1.0 -. y.{0}
(* 3. Set vector of initial values.
The length of this vector determines the problem size. *)
let yd = R... | 31.5 | 79 | 0.636621 |
aad34721d2e24ed2dba6cf75eb05f8e6f8aad358 | 5,612 | mli | OCaml | hphp/hack/src/errors/naming_error.mli | facebook/hhvm | 9125552f952e581f9484172ba08dde6a1c18face | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/src/errors/naming_error.mli | facebook/hhvm | 9125552f952e581f9484172ba08dde6a1c18face | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/src/errors/naming_error.mli | facebook/hhvm | 9125552f952e581f9484172ba08dde6a1c18face | [
"PHP-3.01",
"Zend-2.0"
] | 2,126 | 2015-01-01T11:13:29.000Z | 2022-03-28T19:58:15.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.
*
*)
type t =
| Unsupported_trait_use_as of Pos.t
| Unsupported_instead_of of Pos.t
| Invalid_trait_use_as_visibility of Pos.t... | 24.085837 | 75 | 0.626871 |
aac08cf283bfb5cc013b002463dfa722a47e3314 | 76 | ml | OCaml | src/tokTest.ml | ConnorBelman/GBCC | a076acab1513d023257d8dcc37ce2791a8cb1627 | [
"MIT"
] | null | null | null | src/tokTest.ml | ConnorBelman/GBCC | a076acab1513d023257d8dcc37ce2791a8cb1627 | [
"MIT"
] | null | null | null | src/tokTest.ml | ConnorBelman/GBCC | a076acab1513d023257d8dcc37ce2791a8cb1627 | [
"MIT"
] | null | null | null | open CTypes
open TokenTypes
let test_tokenize toks = List.rev @@ EOF::toks
| 15.2 | 46 | 0.763158 |
bc8f6c5280529e1a2d912703e8e3e6131da38351 | 463,187 | ml | OCaml | src/tables.ml | fccm/ocaml-intMath | 8baa5333f25bd29d98a808d427cb2da3490dfa30 | [
"Zlib"
] | 1 | 2016-08-16T13:35:46.000Z | 2016-08-16T13:35:46.000Z | src/tables.ml | fccm/ocaml-intMath | 8baa5333f25bd29d98a808d427cb2da3490dfa30 | [
"Zlib"
] | null | null | null | src/tables.ml | fccm/ocaml-intMath | 8baa5333f25bd29d98a808d427cb2da3490dfa30 | [
"Zlib"
] | null | null | null | let sin_tbl = [|
0;2;3;5;7;9;10;12;14;16;
17;19;21;23;24;26;28;30;31;33;
35;37;38;40;42;44;45;47;49;51;
52;54;56;58;59;61;63;65;66;68;
70;71;73;75;77;78;80;82;84;85;
87;89;91;92;94;96;98;99;101;103;
105;106;108;110;111;113;115;117;118;120;
122;124;125;127;129;131;132;134;136;137;
139;141;143;144;146;148;150;151;153;155... | 40.623312 | 70 | 0.71792 |
bcf59b092783360d1f0c06dc697c32ad8025b71e | 13,084 | ml | OCaml | src/lib/integration_test_lib/malleable_error.ml | arjundashrath/mina | 629c6d767fbf2fdb7ce1ebd04337960c6f5baf55 | [
"Apache-2.0"
] | null | null | null | src/lib/integration_test_lib/malleable_error.ml | arjundashrath/mina | 629c6d767fbf2fdb7ce1ebd04337960c6f5baf55 | [
"Apache-2.0"
] | null | null | null | src/lib/integration_test_lib/malleable_error.ml | arjundashrath/mina | 629c6d767fbf2fdb7ce1ebd04337960c6f5baf55 | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Async_kernel
(** The is a monad which is conceptually similar to `Deferred.Or_error.t`,
* except that there are 2 types of errors which can be returned at each bind
* point in a computation: soft errors, and hard errors. Soft errors do not
* effect the control flow of the monad, and are ins... | 32.306173 | 127 | 0.608071 |
aad5fc1d187bb864eee31dc97a55d1d6abd1c034 | 8,360 | ml | OCaml | data/derived/comb/progs/unify/prog2151.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/prog2151.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2151.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 25.105105 | 148 | 0.617225 |
bc7c8b76d0b66c302e559329c9ddf3d4d178d12c | 1,025 | ml | OCaml | src/display_config.ml | yallop/core_bench | 43e6550fe0015c6737f23c307c354a95ed95b7ff | [
"MIT"
] | null | null | null | src/display_config.ml | yallop/core_bench | 43e6550fe0015c6737f23c307c354a95ed95b7ff | [
"MIT"
] | null | null | null | src/display_config.ml | yallop/core_bench | 43e6550fe0015c6737f23c307c354a95ed95b7ff | [
"MIT"
] | null | null | null | (** A module internal to [Core_bench]. Please look at {!Bench}. *)
type t =
{ don't_display_table : bool
; limit_width_to : int
; display : Ascii_table.Display.t
; ascii_table : bool
; show_output_as_sexp : bool
; show_absolute_ci : bool
; show_percentage : bool
; show_speedup : bool
; show_samples :... | 22.777778 | 66 | 0.654634 |
aac306b6fe0d31c7f5a3eedcc1c53c564bbb71eb | 35 | mli | OCaml | examples/src/transCsvWithX.mli | swordJJ/paraverif_dafny | 083d86afb46a847783cb9319d975b3c2ad0afe93 | [
"MIT"
] | 3 | 2017-12-10T13:55:34.000Z | 2019-02-13T11:49:26.000Z | examples/src/transCsvWithX.mli | swordJJ/paraverif_dafny | 083d86afb46a847783cb9319d975b3c2ad0afe93 | [
"MIT"
] | null | null | null | examples/src/transCsvWithX.mli | swordJJ/paraverif_dafny | 083d86afb46a847783cb9319d975b3c2ad0afe93 | [
"MIT"
] | 1 | 2020-03-23T10:21:34.000Z | 2020-03-23T10:21:34.000Z | val transCsvWithX: string ->unit
| 17.5 | 34 | 0.742857 |
aa8d81365bca5ff09a7e9d5ece92fee67c226fb5 | 14,223 | ml | OCaml | infer/src/absint/ConcurrencyModels.ml | dayanruben/infer | 2c93de142ebe731c0e4ffc03d0ac52f6ecd4ea7e | [
"MIT"
] | null | null | null | infer/src/absint/ConcurrencyModels.ml | dayanruben/infer | 2c93de142ebe731c0e4ffc03d0ac52f6ecd4ea7e | [
"MIT"
] | null | null | null | infer/src/absint/ConcurrencyModels.ml | dayanruben/infer | 2c93de142ebe731c0e4ffc03d0ac52f6ecd4ea7e | [
"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 L = Logging
type lock_effect =
| Lock of HilExp.t list
| Unlock of HilExp.t list
| LockedIfTrue of HilExp.... | 35.916667 | 101 | 0.69029 |
aac30622226a3c5420268ce5a22308477229842e | 10,658 | ml | OCaml | bigint.ml | kortescode/Big-Integer-Calculator | 09d4944d324a446caf730b2256a0f6e31a44afe0 | [
"Apache-2.0"
] | null | null | null | bigint.ml | kortescode/Big-Integer-Calculator | 09d4944d324a446caf730b2256a0f6e31a44afe0 | [
"Apache-2.0"
] | null | null | null | bigint.ml | kortescode/Big-Integer-Calculator | 09d4944d324a446caf730b2256a0f6e31a44afe0 | [
"Apache-2.0"
] | null | null | null | (***********************************)
(* *)
(* Module Bigint *)
(* *)
(***********************************)
module type BIGINT =
sig
exception OpByZero of string
type bigint
type base
val binary : base
val octal : base
val... | 50.037559 | 203 | 0.589229 |
aaae795cc25f568fd7e88203fef804bb88430bb2 | 127 | ml | OCaml | test/prelude.ml | Drup/zarith-ppx | f4b3b6ac818afc4c14f0100d8490beaf3402aee6 | [
"0BSD"
] | 10 | 2019-03-17T19:37:11.000Z | 2020-08-04T03:42:32.000Z | test/prelude.ml | Drup/zarith-ppx | f4b3b6ac818afc4c14f0100d8490beaf3402aee6 | [
"0BSD"
] | null | null | null | test/prelude.ml | Drup/zarith-ppx | f4b3b6ac818afc4c14f0100d8490beaf3402aee6 | [
"0BSD"
] | null | null | null | (* prelude for the code in the README *)
#require "zarith-ppx";;
#install_printer Z.pp_print ;;
#install_printer Q.pp_print ;;
| 25.4 | 40 | 0.724409 |
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.