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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
447eecbb5c2f89edb46a303a5b9cdf3cb4aa6e66 | 4,808 | mli | OCaml | coq/library/libnames.mli | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq/library/libnames.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq/library/libnames.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 2 | 2021-01-19T17:56:28.000Z | 2022-03-28T04:39:41.000Z | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *)
(* <O___,, * (see CREDITS file for the list of authors) *)
(* \VV/ *********... | 33.622378 | 76 | 0.652246 |
8a787e77b1cbf66a1c80d6044fca11e48095bc82 | 37,803 | ml | OCaml | analysis/test/annotatedSignatureTest.ml | HsuanTingLu/pyre-check | 1cf85df830c6e20ec6abe27f5afed4bc16dcc70b | [
"MIT"
] | null | null | null | analysis/test/annotatedSignatureTest.ml | HsuanTingLu/pyre-check | 1cf85df830c6e20ec6abe27f5afed4bc16dcc70b | [
"MIT"
] | null | null | null | analysis/test/annotatedSignatureTest.ml | HsuanTingLu/pyre-check | 1cf85df830c6e20ec6abe27f5afed4bc16dcc70b | [
"MIT"
] | null | null | null | (* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. *)
open Core
open OUnit2
open Ast
open Analysis
open Expression
open Pyre
open Test
module Resolution = Analysis.Resolution
let make_normal_and... | 38.456765 | 101 | 0.583657 |
440605607e548864908ae86899959ec2e2a75d54 | 35,255 | ml | OCaml | genas3.ml | mcheshkov/haxe | d9ac9c2e1429e37790054c4f3dc12d728bb173fc | [
"MIT"
] | null | null | null | genas3.ml | mcheshkov/haxe | d9ac9c2e1429e37790054c4f3dc12d728bb173fc | [
"MIT"
] | null | null | null | genas3.ml | mcheshkov/haxe | d9ac9c2e1429e37790054c4f3dc12d728bb173fc | [
"MIT"
] | null | null | null | (*
* Copyright (C)2005-2013 Haxe Foundation
*
* 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,... | 28.592863 | 208 | 0.600596 |
8af22bf6db30026f42411aad15877699867e609f | 3,561 | mli | OCaml | src/protocol/oBus_error.mli | NathanReb/obus | 8aaf3d4e5538e42a62ae206dcfc01d2b898e54dc | [
"BSD-3-Clause"
] | 14 | 2015-02-25T10:37:07.000Z | 2019-06-04T11:58:53.000Z | src/protocol/oBus_error.mli | NathanReb/obus | 8aaf3d4e5538e42a62ae206dcfc01d2b898e54dc | [
"BSD-3-Clause"
] | 10 | 2019-07-11T08:43:53.000Z | 2021-07-17T09:54:49.000Z | src/protocol/oBus_error.mli | NathanReb/obus | 8aaf3d4e5538e42a62ae206dcfc01d2b898e54dc | [
"BSD-3-Clause"
] | 7 | 2017-10-15T13:14:48.000Z | 2018-12-12T05:17:28.000Z | (*
* oBus_error.mli
* --------------
* Copyright : (c) 2008, Jeremie Dimino <jeremie@dimino.org>
* Licence : BSD3
*
* This file is a part of obus, an ocaml implementation of D-Bus.
*)
(** D-Bus errors management *)
(** This module integrates D-Bus errors into OCaml exceptions, and
OCaml exceptions into D... | 29.429752 | 69 | 0.661612 |
4453c5e988db1af2e5b6e0f313001a7aaf25b064 | 8,340 | ml | OCaml | src/lib_signer_backends/unix/remote.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | src/lib_signer_backends/unix/remote.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | src/lib_signer_backends/unix/remote.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 39.15493 | 80 | 0.599161 |
8ac892a3ae46a2061eb4709d0abb5fdd3a10d2f6 | 508 | mli | OCaml | hphp/hack/src/server/serverIdle.mli | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2015-07-05T07:32:31.000Z | 2015-07-13T02:31:10.000Z | hphp/hack/src/server/serverIdle.mli | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverIdle.mli | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"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.
*
*)
(* Called whe... | 25.4 | 80 | 0.69685 |
f3e9204e76acee34e0a5171ef8520247c9d63ccc | 1,165 | ml | OCaml | exercises/part-1/chapter-2.ml | amacmillanparks/category-theory-for-programmers | 6bbefc9686c1f388008a7c0e51e8a432bc7c5273 | [
"MIT"
] | null | null | null | exercises/part-1/chapter-2.ml | amacmillanparks/category-theory-for-programmers | 6bbefc9686c1f388008a7c0e51e8a432bc7c5273 | [
"MIT"
] | null | null | null | exercises/part-1/chapter-2.ml | amacmillanparks/category-theory-for-programmers | 6bbefc9686c1f388008a7c0e51e8a432bc7c5273 | [
"MIT"
] | null | null | null | #load "unix.cma"
let memoize f =
let ht = Hashtbl.create 1 in
fun a ->
match Hashtbl.find_opt ht a with
| Some b -> b
| None ->
let b = f a in
Hashtbl.add ht a b;
b
let slow_add2 n =
Unix.sleep 10;
n + 2
let slow_add2_memo = memoize slow_add2
let random_from_seed n =
Ra... | 24.270833 | 71 | 0.658369 |
44c38415a3fda055723b63979c147bae5e0ee6e7 | 1,221 | ml | OCaml | scanner/parent.ml | talex5/ocaml-wayland | fba7b1aa964b4d20952dbbacf92b79ed654b72a5 | [
"Apache-2.0"
] | 53 | 2021-02-18T12:07:47.000Z | 2022-03-21T23:38:37.000Z | scanner/parent.ml | talex5/ocaml-wayland | fba7b1aa964b4d20952dbbacf92b79ed654b72a5 | [
"Apache-2.0"
] | null | null | null | scanner/parent.ml | talex5/ocaml-wayland | fba7b1aa964b4d20952dbbacf92b79ed654b72a5 | [
"Apache-2.0"
] | 1 | 2021-11-18T18:36:06.000Z | 2021-11-18T18:36:06.000Z | open Schema
module Interface_map = Map.Make(String)
type t = {
mutable parent : Interface.t Interface_map.t;
(** Says which interface creates this object, and whether its done by a request or an event. *)
}
let index_ops t (parent : Interface.t) (msg : Message.t) =
msg.args |> List.iter (fun (arg : Arg.t) ->
... | 34.885714 | 101 | 0.628993 |
af0a71ea2c96a0b28bca492cc3b2b0df0df9f9a8 | 4,710 | ml | OCaml | hphp/hack/src/typing/typing_subst.ml | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-10-09T15:14:16.000Z | 2020-10-09T15:14:16.000Z | hphp/hack/src/typing/typing_subst.ml | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_subst.ml | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-10-09T15:14:18.000Z | 2020-10-09T15:14:18.000Z | (**
* 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 Core
ope... | 37.983871 | 80 | 0.571338 |
afb663ec37e5d1816eaaac52b97bf955fa20c194 | 2,948 | ml | OCaml | src/either_intf.ml | acatton/fork--janestreet--base | 41ec9567646519714dcfbceffaccb4f53425c6ab | [
"MIT"
] | null | null | null | src/either_intf.ml | acatton/fork--janestreet--base | 41ec9567646519714dcfbceffaccb4f53425c6ab | [
"MIT"
] | null | null | null | src/either_intf.ml | acatton/fork--janestreet--base | 41ec9567646519714dcfbceffaccb4f53425c6ab | [
"MIT"
] | null | null | null | (** A type that represents values with two possibilities.
[Either] can be seen as a generic sum type, the dual of [Tuple]. [First] is neither
more important nor less important than [Second].
Many functions in [Either] focus on just one constructor. The [Focused] signature
abstracts over which constr... | 30.391753 | 90 | 0.514586 |
44aaed85ecddb140523b6e8685693dba37d0e0e4 | 2,347 | mli | OCaml | src/compiler/Token.mli | wtetzner/wombat | 73d0b43f970df3757c9a78894c02de43f9d08b5b | [
"Apache-2.0"
] | 2 | 2018-07-16T18:19:35.000Z | 2020-08-27T16:54:24.000Z | src/compiler/Token.mli | wtetzner/wombat | 73d0b43f970df3757c9a78894c02de43f9d08b5b | [
"Apache-2.0"
] | null | null | null | src/compiler/Token.mli | wtetzner/wombat | 73d0b43f970df3757c9a78894c02de43f9d08b5b | [
"Apache-2.0"
] | 1 | 2022-01-02T08:03:39.000Z | 2022-01-02T08:03:39.000Z |
type comment_type = Line | Multiline
type raw_string_prefix_count = int
type token_type =
| Whitespace
| Left_brace
| Right_brace
| Left_paren
| Right_paren
| Left_bracket
| Right_bracket
| Less_than
| Less_equal
| Greater_than
| Greater_equal
| Arrow
| Back_arrow
| Colon
| Double_colon
... | 20.408696 | 56 | 0.605454 |
4470cd5f1b7143d4b9cc48a3d3872d3614766bd4 | 1,928 | mli | OCaml | src/hack_forked/procs/workerController.mli | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | 20,996 | 2015-01-01T13:51:47.000Z | 2022-03-31T17:44:01.000Z | src/hack_forked/procs/workerController.mli | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | 8,315 | 2015-01-01T19:56:43.000Z | 2022-03-31T15:58:10.000Z | src/hack_forked/procs/workerController.mli | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"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.
*)
(*****************************************************************************)
(* Module building workers.
* A worker is a subpro... | 30.125 | 79 | 0.66027 |
8acef706e1cca371c01dd8354e6902016a453c57 | 13,132 | ml | OCaml | src/lib/snarky_curves/snarky_curves.ml | Vrrinderjit/mina | 1d9ef9cc8c14f6965e7b9c835c8127acbbd2a045 | [
"Apache-2.0"
] | null | null | null | src/lib/snarky_curves/snarky_curves.ml | Vrrinderjit/mina | 1d9ef9cc8c14f6965e7b9c835c8127acbbd2a045 | [
"Apache-2.0"
] | null | null | null | src/lib/snarky_curves/snarky_curves.ml | Vrrinderjit/mina | 1d9ef9cc8c14f6965e7b9c835c8127acbbd2a045 | [
"Apache-2.0"
] | null | null | null | module Bignum_bigint = Bigint
open Core_kernel
module type Params_intf = sig
type field
val a : field
val b : field
end
module type Scalar_intf = sig
type (_, _) typ
type (_, _) checked
type boolean_var
type var
type t [@@deriving equal, sexp]
val typ : (var, t) typ
val length_in_bits : in... | 27.132231 | 94 | 0.567773 |
8acef7639b4cb7a5a42f07d72c8ad0983c18050d | 48,712 | ml | OCaml | src/Arnold.ml | cristianoc/reanalyze | 389dd682223201b42c33e5c444e5c79e0805adad | [
"MIT"
] | 100 | 2020-04-13T07:50:41.000Z | 2020-05-21T13:12:55.000Z | src/Arnold.ml | cristianoc/reanalyze | 389dd682223201b42c33e5c444e5c79e0805adad | [
"MIT"
] | 50 | 2020-04-14T10:14:32.000Z | 2020-05-28T06:21:53.000Z | src/Arnold.ml | cristianoc/reanalyze | 389dd682223201b42c33e5c444e5c79e0805adad | [
"MIT"
] | 4 | 2020-04-16T21:42:11.000Z | 2020-05-07T03:14:56.000Z | let printPos ppf (pos : Lexing.position) =
let file = pos.Lexing.pos_fname in
let line = pos.Lexing.pos_lnum in
Format.fprintf ppf "@{<filename>%s@} @{<dim>%i@}"
(file |> Filename.basename)
line
module StringSet = Set.Make (String)
(** Type Definitions *)
module FunctionName = struct
type t = string
e... | 36.32513 | 107 | 0.592688 |
446a9210d4945d0ba2c1ad5ee8747454a69e5de7 | 705 | mli | OCaml | infer/src/pulse/PulseExecutionDomain.mli | octomarat/infer | aa6fe7963cdb6b842adcf7241f5383c30cb1a835 | [
"MIT"
] | 1 | 2020-08-28T14:00:56.000Z | 2020-08-28T14:00:56.000Z | infer/src/pulse/PulseExecutionDomain.mli | asadrockk1234/infer | 06489dced05bd0e7d19015c0375721885d6f2c1c | [
"MIT"
] | 8 | 2021-05-12T00:06:23.000Z | 2022-02-27T11:21:00.000Z | infer/src/pulse/PulseExecutionDomain.mli | asadrockk1234/infer | 06489dced05bd0e7d19015c0375721885d6f2c1c | [
"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
type t =
| AbortProgram of PulseAbductiveDomain.t
(** represents the state at the program point that caused an e... | 30.652174 | 95 | 0.721986 |
44858597a4f93aa171bb020e0c859be583f41106 | 11,642 | ml | OCaml | src-ocaml/brzo_b0_js_of_ocaml.ml | b0-system/brzo | 87a02530707f551a60f9949f82b8603dfa5158b3 | [
"0BSD"
] | 5 | 2019-10-02T20:04:19.000Z | 2021-11-04T10:04:53.000Z | src-ocaml/brzo_b0_js_of_ocaml.ml | b0-system/brzo | 87a02530707f551a60f9949f82b8603dfa5158b3 | [
"0BSD"
] | null | null | null | src-ocaml/brzo_b0_js_of_ocaml.ml | b0-system/brzo | 87a02530707f551a60f9949f82b8603dfa5158b3 | [
"0BSD"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2019 The b0 programmers. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
---------------------------------------------------------------------------*)
open B00_std
open B00
mod... | 37.921824 | 80 | 0.570864 |
8a67a866e75bd804ac560231b5ff5145d710f570 | 2,830 | mli | OCaml | src/lib_stdlib/compare.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_stdlib/compare.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_stdlib/compare.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"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> *)
... | 47.166667 | 79 | 0.503887 |
443b21e53225017c95822d0da04aec1ac3c38d3c | 3,415 | ml | OCaml | vendor/core_kernel/binary_packing/test-bin/test_binary_packing.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/core_kernel/binary_packing/test-bin/test_binary_packing.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/core_kernel/binary_packing/test-bin/test_binary_packing.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open Core
open Poly
open OUnit
module B = Binary_packing
let test byte_order =
let inverses inc inc_inc pack unpack min max to_string () =
let try_it i =
let buf = Bytes.create 100 in
pack ~byte_order ~buf ~pos:0 i;
let i' = unpack ~byte_order ~buf ~pos:0 in
if i' <> i
then
... | 25.485075 | 89 | 0.51918 |
8af6476b1b448d3e5ef8b361dd42348a38efb08e | 291 | ml | OCaml | sample/mochi/pending/iter.ml | autotaker/dmochi | f17101421d0dc89fa199c466491827f9eeb88bab | [
"MIT"
] | null | null | null | sample/mochi/pending/iter.ml | autotaker/dmochi | f17101421d0dc89fa199c466491827f9eeb88bab | [
"MIT"
] | null | null | null | sample/mochi/pending/iter.ml | autotaker/dmochi | f17101421d0dc89fa199c466491827f9eeb88bab | [
"MIT"
] | null | null | null | (*
USED: PEPM2013 as iter.ml
*)
let rec iter (f:int -> unit) xs =
match xs with
[] -> ()
| x::xs' -> f x; iter f xs'
let rec make_list n =
if n < 0
then []
else n :: make_list (n-1)
let check x = assert (x >= 0)
let main n =
let xs = make_list n in
iter check xs
| 14.55 | 33 | 0.536082 |
44b9b93c8f70fe081c8288a6a4650311e21bea23 | 3,958 | mli | OCaml | src/dune/context.mli | progman1/dune | e937feef4fb03d83bd551489420a557a5a6fc1c0 | [
"MIT"
] | null | null | null | src/dune/context.mli | progman1/dune | e937feef4fb03d83bd551489420a557a5a6fc1c0 | [
"MIT"
] | null | null | null | src/dune/context.mli | progman1/dune | e937feef4fb03d83bd551489420a557a5a6fc1c0 | [
"MIT"
] | null | null | null | (** Compilation contexts *)
(** Dune supports two different kind of contexts:
- the default context, which correspond to the environment Dune is run, i.e.
it takes [ocamlc] and other tools from the [PATH] and the ocamlfind
configuration where it can find it
- opam switch contexts, where one opam swit... | 30.446154 | 81 | 0.666246 |
44398eb19592e40f83ad4f197ade56997a5d6f8a | 236 | ml | OCaml | benchmarks/C/mem/sol13.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/mem/sol13.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/mem/sol13.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type btree =
| Empty
| Node of int * btree * btree
let rec mem : int -> btree -> bool
= fun n tree ->
match tree with
| Empty -> false
| Node (num, tree1, tree2) ->
if num = n then true
else mem n tree1 || mem n tree2;;
| 19.666667 | 36 | 0.584746 |
44609beba4660da4b22ef666f4795ec0c53aa456 | 1,134 | ml | OCaml | src/lib/transition_frontier/extensions/transition_registry.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/transition_frontier/extensions/transition_registry.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/transition_frontier/extensions/transition_registry.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | open Async_kernel
open Core_kernel
open Mina_base
open Frontier_base
module T = struct
type t = unit Ivar.t list State_hash.Table.t
type view = unit
let create ~logger:_ _frontier = (State_hash.Table.create (), ())
let notify t state_hash =
State_hash.Table.change t state_hash ~f:(function
| Some ... | 26.372093 | 75 | 0.599647 |
443bfb83f7f038ce69a09f8c4a0d79d505288a65 | 4,388 | ml | OCaml | lib/flat_array_unit_tests.ml | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | lib/flat_array_unit_tests.ml | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | lib/flat_array_unit_tests.ml | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | open Std_internal
open Int.Replace_polymorphic_compare let () = _squelch_unused_module_warning_
(* module Flat_array = Flat_array_debug.Debug (Flat_array) *)
open Flat_array
module Slots = Slots
module Slot = Slot
let does_raise = Exn.does_raise
type nonrec 'slots t = 'slots t with sexp_of
let invariant = invaria... | 34.015504 | 78 | 0.548997 |
440dbd761aa9fe3223691918dd78bb58ad3c7f32 | 20,939 | ml | OCaml | src/lib_requester/requester.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/lib_requester/requester.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | src/lib_requester/requester.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 30.929099 | 86 | 0.570705 |
446da29bb5a760ea9ba15db404942e65e3664ca1 | 1,360 | ml | OCaml | data/derived/comb/progs/unify/prog8027.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/prog3234.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3234.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
let numZeros = (List.length l1) - (List.length l2) in
let absNumZeros = abs numZeros in
if numZeros = 0
then (l1, l2)
else
(let listZeros = clone 0 absNumZeros in
if numZeros > 0 then (l1, (listZeros @ l2)) else... | 33.170732 | 79 | 0.613235 |
44886a92e6c5de6e1d5458714178090caec330f5 | 8,525 | mli | OCaml | src/otr.mli | hannesm/ocaml-otr | eacf55e0a89918a0b8fa9a53a114b94bbd2de9b3 | [
"BSD-2-Clause"
] | 29 | 2015-01-02T23:25:46.000Z | 2021-11-24T16:19:13.000Z | src/otr.mli | hannesm/ocaml-otr | eacf55e0a89918a0b8fa9a53a114b94bbd2de9b3 | [
"BSD-2-Clause"
] | 7 | 2015-01-12T22:31:51.000Z | 2017-06-16T08:52:07.000Z | src/otr.mli | hannesm/ocaml-otr | eacf55e0a89918a0b8fa9a53a114b94bbd2de9b3 | [
"BSD-2-Clause"
] | 2 | 2015-03-13T21:08:26.000Z | 2015-06-25T20:52:47.000Z | (** Off-the-Record, in pure OCaml
Off-the-Record (OTR) ({{:https://otr.cypherpunks.ca/otr-wpes.pdf}
developed by Goldberg et al.}) is a cryptographic protocol used in
instant messaging. It provides both authentication (using
long-term 1024 bit DSA keys), and encryption (using AES 128 in
counter mo... | 40.023474 | 111 | 0.688446 |
44929ab58dc420988e87e3b6d99018288f033c94 | 4,512 | ml | OCaml | src/lib_storage/test/test_raw_store.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/lib_storage/test/test_raw_store.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | src/lib_storage/test/test_raw_store.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 39.929204 | 81 | 0.525488 |
446af2ac43a81cfc3fe00b22636822cc2510cdfb | 13,175 | ml | OCaml | hphp/hack/src/providers/decl_provider.ml | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/providers/decl_provider.ml | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/providers/decl_provider.ml | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
module Class = Typing_classes_heap.Api
type fun_key = string
type type_key = string
type gconst_key = strin... | 37.9683 | 93 | 0.66907 |
8a551c701a2b61f89482ceaf0b8fa16301fb924a | 295 | ml | OCaml | imandra_model/src-messages/shape_msgs.ml | AestheticIntegration/imandra-ros | e1380c267ee319dd4f86c4b54e0b270bc0738796 | [
"Apache-2.0"
] | 17 | 2018-08-06T22:30:35.000Z | 2022-02-25T10:05:35.000Z | imandra_model/src-messages/shape_msgs.ml | AestheticIntegration/imandra-ros | e1380c267ee319dd4f86c4b54e0b270bc0738796 | [
"Apache-2.0"
] | null | null | null | imandra_model/src-messages/shape_msgs.ml | AestheticIntegration/imandra-ros | e1380c267ee319dd4f86c4b54e0b270bc0738796 | [
"Apache-2.0"
] | null | null | null | open Basic_types;;
type solidPrimitive = {
ros_type : uint8 ;
dimensions : float64 list ;
}
type meshTriangle = {
vertex_indices : uint32 list ;
}
type plane = {
coef : float64 list ;
}
type mesh = {
triangles : meshTriangle list ;
vertices : Geometry_msgs.point list ;
}
| 14.047619 | 40 | 0.657627 |
4427d74b8e10bdeafb7747767b597b8fd3dfce65 | 97 | mli | OCaml | src/codegen.mli | kkysen/cstar | c853e2dc37120a7b80baaf68cd8cb8ec2dcc5faf | [
"MIT"
] | 1 | 2021-10-20T04:43:41.000Z | 2021-10-20T04:43:41.000Z | src/codegen.mli | kkysen/cstar | c853e2dc37120a7b80baaf68cd8cb8ec2dcc5faf | [
"MIT"
] | null | null | null | src/codegen.mli | kkysen/cstar | c853e2dc37120a7b80baaf68cd8cb8ec2dcc5faf | [
"MIT"
] | null | null | null | module LL = Llvm
open Lir
val compile : lir:lir -> ctx:LL.llcontext -> mod_:LL.llmodule -> unit
| 19.4 | 69 | 0.690722 |
444bee7603b12ddb9ed78305c47836126cdb8044 | 21,701 | ml | OCaml | normalize.ml | kupl/SimplPublic | 881268fd36f05b7c609f9e8addf9db272da15fe7 | [
"MIT"
] | 10 | 2017-06-29T00:41:48.000Z | 2021-12-16T23:06:09.000Z | normalize.ml | kupl/SimplPublic | 881268fd36f05b7c609f9e8addf9db272da15fe7 | [
"MIT"
] | null | null | null | normalize.ml | kupl/SimplPublic | 881268fd36f05b7c609f9e8addf9db272da15fe7 | [
"MIT"
] | null | null | null | open Imp
open Itv
open Vocab
open Abs
(***********************
***********************
EXPRESSION SIMPLIFICATION
**********************
**********************)
let rec simple_aexp : aexp -> aexp
= fun aexp ->
match aexp with
| BinOpLv (Minus,lv1,lv2) when lv1 = lv2 -> Int 0
(* Note : Both 2 below does not ... | 33.802181 | 131 | 0.59624 |
8acf3d5231b04086168e070ddd3776e505d27ca4 | 332 | ml | OCaml | src/lib/pickles/tag.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | 929 | 2020-10-02T07:23:16.000Z | 2022-03-31T15:02:09.000Z | src/lib/pickles/tag.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 3,154 | 2020-09-29T15:47:44.000Z | 2022-03-31T16:22:28.000Z | src/lib/pickles/tag.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 216 | 2020-09-29T19:47:41.000Z | 2022-03-27T08:44:29.000Z | open Core_kernel
type ('var, 'value, 'n1, 'n2) tag = ('var * 'value * 'n1 * 'n2) Type_equal.Id.t
type kind = Side_loaded | Compiled
type ('var, 'value, 'n1, 'n2) t =
{ kind : kind; id : ('var, 'value, 'n1, 'n2) tag }
[@@deriving fields]
let create ~name =
{ kind = Compiled; id = Type_equal.Id.create ~name sexp_... | 25.538462 | 79 | 0.61747 |
444cd2079d8b879bb2d4e847f4c79aba9945c680 | 2,727 | ml | OCaml | src/odoc/odoc_file.ml | giltho/odoc | 816710ac528b910d18f6bf661fe998ce0856508c | [
"ISC"
] | 234 | 2018-03-21T20:12:53.000Z | 2022-03-24T22:49:21.000Z | src/odoc/odoc_file.ml | giltho/odoc | 816710ac528b910d18f6bf661fe998ce0856508c | [
"ISC"
] | 685 | 2018-03-23T11:09:19.000Z | 2022-03-29T09:19:23.000Z | src/odoc/odoc_file.ml | giltho/odoc | 816710ac528b910d18f6bf661fe998ce0856508c | [
"ISC"
] | 62 | 2018-04-16T18:03:20.000Z | 2022-03-30T11:29:33.000Z | (*
* Copyright (c) 2014 Leo White <leo@lpw25.net>
*
* 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 PROVIDED "AS IS" AND THE AUT... | 34.0875 | 78 | 0.693436 |
8a3bb8ebbff0f58dce6dc21b787fdb942cc7fc7e | 30,610 | ml | OCaml | src/proto_alpha/lib_client_commands/client_proto_stresstest_commands.ml | selbor28/tezos | 57cfc7f42e1312d05b0d7f6742f517edc421aef4 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_client_commands/client_proto_stresstest_commands.ml | selbor28/tezos | 57cfc7f42e1312d05b0d7f6742f517edc421aef4 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_client_commands/client_proto_stresstest_commands.ml | selbor28/tezos | 57cfc7f42e1312d05b0d7f6742f517edc421aef4 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 Nomadic Labs <contact@nomadic-labs.com> *)
... | 36.096698 | 95 | 0.619601 |
afeacbd57b43ba0e700efb66b3c0c067c7c826bd | 2,234 | ml | OCaml | rillc/lib/syntax/entry.ml | yutopp/rill | 375b67c03ab2087d0a2a833bd9e80f3e51e2694f | [
"BSL-1.0"
] | 66 | 2015-01-23T15:18:38.000Z | 2021-02-22T00:21:46.000Z | rillc/lib/syntax/entry.ml | yutopp/rill | 375b67c03ab2087d0a2a833bd9e80f3e51e2694f | [
"BSL-1.0"
] | 27 | 2016-05-16T14:25:03.000Z | 2021-01-13T13:35:01.000Z | rillc/lib/syntax/entry.ml | yutopp/rill | 375b67c03ab2087d0a2a833bd9e80f3e51e2694f | [
"BSL-1.0"
] | 10 | 2015-12-28T23:17:24.000Z | 2019-04-28T15:03:55.000Z | (*
* Copyright yutopp 2019 - .
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*)
open! Base
module Span = Common.Span
module I = Parser.MenhirInterpreter
module Ast = Ast
type t = { ds : Diagnostics.t; is... | 33.848485 | 74 | 0.663384 |
8a952fc2f59f54b06961215c072aa786dd5cb806 | 7,612 | ml | OCaml | src/backtrace_codec.ml | hannesm/memtrace-mirage | e873c35d63ea2ec283009edf3c4a118209c8c4f9 | [
"MIT"
] | 9 | 2020-10-29T11:03:54.000Z | 2020-11-23T16:35:08.000Z | src/backtrace_codec.ml | hannesm/memtrace-mirage | e873c35d63ea2ec283009edf3c4a118209c8c4f9 | [
"MIT"
] | null | null | null | src/backtrace_codec.ml | hannesm/memtrace-mirage | e873c35d63ea2ec283009edf3c4a118209c8c4f9 | [
"MIT"
] | null | null | null | let cache_size = 1 lsl 14
type cache_bucket = int (* 0 to cache_size - 1 *)
module Writer = struct
open Buf.Write
(* The writer cache carries slightly more state than the reader cache,
since the writer must make decisions about which slot to use.
(The reader just follows the choices made by the writer)... | 34.917431 | 90 | 0.606148 |
4420c6a4d7ba7cf27791fa1ead1684b6b24ced20 | 2,095 | ml | OCaml | xen-4.6.0/tools/ocaml/xenstored/symbol.ml | StanPlatinum/ROP-detection-outside-VMs | c06987a0dfbe08022b1b1e1581b399cb4c25e4ac | [
"MIT"
] | 3 | 2019-08-31T19:58:24.000Z | 2020-10-02T06:50:22.000Z | xen-4.6.0/tools/ocaml/xenstored/symbol.ml | StanPlatinum/ROP-detection-outside-VMs | c06987a0dfbe08022b1b1e1581b399cb4c25e4ac | [
"MIT"
] | 1 | 2020-10-16T19:13:49.000Z | 2020-10-16T19:13:49.000Z | xen-4.6.0/tools/ocaml/xenstored/symbol.ml | StanPlatinum/ROP-detection-outside-VMs | c06987a0dfbe08022b1b1e1581b399cb4c25e4ac | [
"MIT"
] | 1 | 2018-10-04T18:29:18.000Z | 2018-10-04T18:29:18.000Z | (*
* Copyright (C) 2006-2007 XenSource Ltd.
* Copyright (C) 2008 Citrix Ltd.
* Author Thomas Gazagnaire <thomas.gazagnaire@eu.citrix.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software... | 27.207792 | 75 | 0.735084 |
44206e28b8417348244be634cee3c1bfc738a15e | 2,337 | mli | OCaml | src/solvers/Valid.mli | imdea-software/leap | 5f946163c0f80ff9162db605a75b7ce2e27926ef | [
"Apache-2.0"
] | 7 | 2016-08-31T19:50:12.000Z | 2019-01-21T04:51:07.000Z | src/solvers/Valid.mli | imdea-software/leap | 5f946163c0f80ff9162db605a75b7ce2e27926ef | [
"Apache-2.0"
] | null | null | null | src/solvers/Valid.mli | imdea-software/leap | 5f946163c0f80ff9162db605a75b7ce2e27926ef | [
"Apache-2.0"
] | null | null | null |
(***********************************************************************)
(* *)
(* LEAP *)
(* *)
(* Alejan... | 46.74 | 74 | 0.398802 |
8ac478d242068c4a774f22063ca929d44ed81d53 | 833 | ml | OCaml | src/resp-client/resp_client_intf.ml | zshipko/resp | 4a31461621238d86775b3485adc4a1f0f7202ace | [
"0BSD"
] | 13 | 2018-09-26T09:09:20.000Z | 2022-01-14T11:47:45.000Z | src/resp-client/resp_client_intf.ml | zshipko/resp | 4a31461621238d86775b3485adc4a1f0f7202ace | [
"0BSD"
] | null | null | null | src/resp-client/resp_client_intf.ml | zshipko/resp | 4a31461621238d86775b3485adc4a1f0f7202ace | [
"0BSD"
] | null | null | null | module type S = sig
include Resp.S
type t
type params
val connect : params -> t Lwt.t
val read : t -> Resp.t Lwt.t
val write : t -> Resp.t -> unit Lwt.t
val run : t -> Resp.t list -> Resp.t Lwt.t
val run_s : t -> string list -> Resp.t Lwt.t
val decode : t -> Resp.lexeme -> Resp.t Lwt.t
val ... | 17.723404 | 83 | 0.611044 |
8afeaa1e930ede88f6fb38abded14f9939f2696d | 740 | ml | OCaml | hphp/hack/src/hhbc/hhas_pos.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/hhas_pos.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/hhas_pos.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2017, 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.
*
*)
(* Source loca... | 30.833333 | 80 | 0.727027 |
afb5c19aeab6834f328c9e09654d8a8561d06946 | 9,128 | ml | OCaml | src/always.ml | janestreet/hardcaml | 4176633d734e3fb79d6e95bc85c2a19984ff9594 | [
"MIT"
] | 372 | 2018-05-25T10:51:24.000Z | 2022-03-25T14:38:34.000Z | src/always.ml | janestreet/hardcaml | 4176633d734e3fb79d6e95bc85c2a19984ff9594 | [
"MIT"
] | 9 | 2018-07-15T02:52:39.000Z | 2022-01-05T15:11:16.000Z | src/always.ml | janestreet/hardcaml | 4176633d734e3fb79d6e95bc85c2a19984ff9594 | [
"MIT"
] | 18 | 2018-08-12T06:08:50.000Z | 2022-02-22T11:42:17.000Z | open Base
let ( ==: ) = Signal.( ==: )
module Variable = struct
module Internal = struct
type t =
{ assigns_to_wire : Signal.t
; default : Signal.t
}
end
type internal = Internal.t
type t =
{ value : Signal.t
; internal : Internal.t
}
[@@deriving fields]
let sexp_of_t ... | 32.140845 | 109 | 0.594106 |
449e4035e83538a32536479fe0a357822c3611f5 | 815 | ml | OCaml | data/derived/comb/progs/unify/prog7579.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/prog2774.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2774.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n = if n > 0 then List.append [x] (clone x (n - 1)) else [];;
let padZero l1 l2 =
((List.append (clone 0 ((List.length l2) - (List.length l1))) l1),
(List.append (clone 0 ((List.length l1) - (List.length l2))) l2));;
let rec removeZero l =
match l with
| [] -> []
| _ -> let h::t = l in (m... | 31.346154 | 77 | 0.521472 |
8a7fce6b7ebe6e08bdf28c22c45548ad84ed29de | 1,601 | ml | OCaml | src/lib/signature_lib/test/signature_lib_tests.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | null | null | null | src/lib/signature_lib/test/signature_lib_tests.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | null | null | null | src/lib/signature_lib/test/signature_lib_tests.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | null | null | null | open Signature_lib
let%test_module "Signatures are unchanged test" =
( module struct
let privkey =
Private_key.of_base58_check_exn
"EKE2M5q5afTtdzZTzyKu89Pzc7274BD6fm2fsDLgLt5zy34TAN5N"
let signature_expected =
( Snark_params.Tick.Field.of_string
"223925891209315430147850737870... | 38.119048 | 91 | 0.718926 |
44451f3bce34a0f93a31d3bdc83da990761d18cf | 1,047 | mli | OCaml | src/dune_rules/install_rules.mli | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | null | null | null | src/dune_rules/install_rules.mli | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | null | null | null | src/dune_rules/install_rules.mli | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | null | null | null | open! Dune_engine
open Stdune
val gen_rules :
Super_context.t -> dir:Path.Build.t -> Build_system.Subdir_set.t Memo.Build.t
(** Generate rules for [.dune-package] and [META.<package-name>] files in a
given super context and directory. Surprisingly, the current implementation
generates rules for {b all} dire... | 43.625 | 80 | 0.753582 |
4417c36adb8a69b2469a4b4324071967f36af103 | 4,530 | ml | OCaml | tests/lib-set/testset.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | 1 | 2016-05-17T14:29:13.000Z | 2016-05-17T14:29:13.000Z | tests/lib-set/testset.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | tests/lib-set/testset.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | module S = Set.Make(struct type t = int let compare (x:t) y = compare x y end)
let testvals = [0;1;2;3;4;5;6;7;8;9]
let check msg cond =
if not (List.for_all cond testvals) then
Printf.printf "Test %s FAILED\n%!" msg
let checkbool msg b =
if not b then
Printf.printf "Test %s FAILED\n%!" msg
let normaliz... | 26.647059 | 78 | 0.571302 |
8a920e802b38b2de967b5b43efbc050bc8c40994 | 1,907 | ml | OCaml | libraries/route53/lib/createQueryLoggingConfig.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/route53/lib/createQueryLoggingConfig.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/route53/lib/createQueryLoggingConfig.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = CreateQueryLoggingConfigRequest.t
type output = CreateQueryLoggingConfigResponse.t
type error = Errors_internal.t
let service = "route53"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string
(Aws.Util.of_o... | 31.262295 | 106 | 0.585212 |
44696f39f5e05834aeaa3b4c9b817d1862b7b66a | 146 | mli | OCaml | altera/src/pll.mli | jrrk/hardcaml-riscv | 3240751afc76ab13f5a4b4646fcdfcb791725db9 | [
"MIT"
] | 14 | 2015-08-23T02:45:51.000Z | 2022-01-04T20:44:13.000Z | altera/src/pll.mli | jrrk/hardcaml-riscv | 3240751afc76ab13f5a4b4646fcdfcb791725db9 | [
"MIT"
] | 2 | 2015-08-20T16:27:51.000Z | 2017-09-21T21:47:44.000Z | altera/src/pll.mli | jrrk/hardcaml-riscv | 3240751afc76ab13f5a4b4646fcdfcb791725db9 | [
"MIT"
] | 4 | 2015-08-23T02:45:53.000Z | 2019-02-09T08:35:03.000Z | module I : interface inclk0 end
module O : interface c0 c1 locked end
val pll50_inst : HardCaml.Signal.Comb.t I.t -> HardCaml.Signal.Comb.t O.t
| 24.333333 | 73 | 0.746575 |
8ada0eb455811beb65dd6a9df5a000725e147183 | 6,666 | mli | OCaml | hphp/hack/src/errors/errors.mli | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/errors/errors.mli | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/errors/errors.mli | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
type error = (Pos.t, Pos_or_decl.t) User_error.t [@@deriving eq, show]
type finalized_error = (Pos.absolute, Pos.ab... | 26.141176 | 92 | 0.669367 |
8a858ad94dfedc0226913ceb303c222ee52965d6 | 13,495 | ml | OCaml | src/lib/integration_test_cloud_engine/kubernetes_network.ml | honeywest/mina | 657ab36431e5970dbb25f60250b4bd535613146d | [
"Apache-2.0"
] | 1 | 2021-02-18T14:39:12.000Z | 2021-02-18T14:39:12.000Z | src/lib/integration_test_cloud_engine/kubernetes_network.ml | riokresnawan/mina | 8619d5398496f223e23bbd88a5bcd873cfb9d7c6 | [
"Apache-2.0"
] | null | null | null | src/lib/integration_test_cloud_engine/kubernetes_network.ml | riokresnawan/mina | 8619d5398496f223e23bbd88a5bcd873cfb9d7c6 | [
"Apache-2.0"
] | null | null | null | open Core
open Async
open Integration_test_lib
(* exclude from bisect_ppx to avoid type error on GraphQL modules *)
[@@@coverage exclude_file]
module Node = struct
type t =
{cluster: string; namespace: string; pod_id: string; node_graphql_port: int}
let id {pod_id; _} = pod_id
let base_kube_args t = ["--c... | 35.327225 | 114 | 0.631567 |
af1189d23e385fd148ab485f54ec07c3bab06e60 | 231 | mli | OCaml | libraries/ec2/lib/createCarrierGateway.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/createCarrierGateway.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/ec2/lib/createCarrierGateway.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = CreateCarrierGatewayRequest.t
type output = CreateCarrierGatewayResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 33 | 74 | 0.761905 |
44bdf71ea478ae8ed461b67d0b03df99f38dacf8 | 3,156 | ml | OCaml | tests/cptest.ml | CraigFe/ocaml-uring | 7311ece705d6d7b0ef1758345c82efd348faaf08 | [
"0BSD"
] | null | null | null | tests/cptest.ml | CraigFe/ocaml-uring | 7311ece705d6d7b0ef1758345c82efd348faaf08 | [
"0BSD"
] | null | null | null | tests/cptest.ml | CraigFe/ocaml-uring | 7311ece705d6d7b0ef1758345c82efd348faaf08 | [
"0BSD"
] | null | null | null | open Bos
open Rresult
open R.Infix
let _reset_buffer_cache () =
let shc = Cmd.(v "sh" % "-c" % "echo 1 > /proc/sys/vm/drop_caches") in
OS.Cmd.run shc
let fill_file_with_random ~count dst =
let ofile = Fmt.strf "of=%s" dst in
let count = Fmt.strf "count=%d" count in
Cmd.(v "dd" % "if=/dev/urandom" % ofi... | 35.460674 | 133 | 0.690114 |
44b32045844b0e2f9db79bcaa9244a350778457d | 7,276 | ml | OCaml | b00t.ml | dysinger/b0 | 59c24086f5bbee1484dea4e4ec9592bfdc6691fb | [
"ISC"
] | null | null | null | b00t.ml | dysinger/b0 | 59c24086f5bbee1484dea4e4ec9592bfdc6691fb | [
"ISC"
] | null | null | null | b00t.ml | dysinger/b0 | 59c24086f5bbee1484dea4e4ec9592bfdc6691fb | [
"ISC"
] | null | null | null | #!/usr/bin/env ocaml
(* Usage: ocaml b00t.ml [reset|cold|b0|full]
See DEVEL.md *)
let dir_sep = Filename.dir_sep
let dir_sep_char = dir_sep.[0]
let root_dir = Sys.getcwd ()
let absolute p = String.concat "" [root_dir; dir_sep; p]
let fpath ?(ext = "") ~dir f = String.concat "" [dir; dir_sep; f; ext]
let boot_dir... | 33.223744 | 79 | 0.652556 |
4436dc3d7680677a2d8c0865b4a36b43b07225ba | 6,309 | ml | OCaml | duniverse/topkg.1.0.1+dune/src-care/topkg_care_archive.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | 55 | 2015-03-04T16:12:22.000Z | 2020-07-30T13:07:03.000Z | duniverse/topkg.1.0.1+dune/src-care/topkg_care_archive.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | 135 | 2015-02-06T08:58:08.000Z | 2022-03-21T23:30:14.000Z | duniverse/topkg.1.0.1+dune/src-care/topkg_care_archive.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | 25 | 2015-04-08T15:24:02.000Z | 2020-09-18T15:54:34.000Z | (*---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)
open... | 37.111765 | 79 | 0.611032 |
d2eec556d6cbe2ae331a793455e1028854385455 | 227 | mli | OCaml | libraries/route53/lib/updateHealthCheck.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/route53/lib/updateHealthCheck.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/route53/lib/updateHealthCheck.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = UpdateHealthCheckRequest.t
type output = UpdateHealthCheckResponse.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 32.428571 | 74 | 0.757709 |
44c850d5c79cf0ec8c70daaed99ca5229a95d917 | 1,199 | mli | OCaml | eval/ocaml/debugger/parameters.mli | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/ocaml/debugger/parameters.mli | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/ocaml/debugger/parameters.mli | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Jerome Vouil... | 42.821429 | 73 | 0.384487 |
44720057598738ce4175a019dc4296f3494ddda5 | 1,035 | mli | OCaml | libraries/route-53/lib/listReusableDelegationSets.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/route-53/lib/listReusableDelegationSets.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/route-53/lib/listReusableDelegationSets.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<p>Retrieves a list of the reusable delegation sets that are associated with the current AWS account.</p>" *)
open Types[@@ocaml.warning "-33"]
open Aws.BaseTypes[@@ocaml.warning "-33"]
module ListReusableDelegationSetsRequest :
sig
type t = {
marker: String.t option ;
max_items: String.t option }[@@ocam... | 43.125 | 149 | 0.707246 |
8ab6fbfc17fd54829aa575c8e90a2e9944f58283 | 17,003 | ml | OCaml | hphp/hack/src/typing/typing_taccess.ml | jthemphill/hhvm | 29b7fafaeecd83b817e31bbe11a591aa78a6c879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_taccess.ml | jthemphill/hhvm | 29b7fafaeecd83b817e31bbe11a591aa78a6c879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_taccess.ml | jthemphill/hhvm | 29b7fafaeecd83b817e31bbe11a591aa78a6c879 | [
"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 Common
open Typing_defs
module Reason = Typing_reason
module Env = Typing_env
module Log = Typi... | 36.099788 | 97 | 0.625007 |
8a2a435e2c24519d657c111bb2881c932c949324 | 101,376 | ml | OCaml | src/ocaml/typer_405/parser_recover.ml | alfa07/merlin | 95d1fad48bcdcd3032feb4ff5d2fa3a4834aca46 | [
"MIT"
] | null | null | null | src/ocaml/typer_405/parser_recover.ml | alfa07/merlin | 95d1fad48bcdcd3032feb4ff5d2fa3a4834aca46 | [
"MIT"
] | null | null | null | src/ocaml/typer_405/parser_recover.ml | alfa07/merlin | 95d1fad48bcdcd3032feb4ff5d2fa3a4834aca46 | [
"MIT"
] | 1 | 2017-11-06T17:46:59.000Z | 2017-11-06T17:46:59.000Z | open Parser_raw
module Default = struct
open Asttypes
open Parsetree
open Ast_helper
let default_loc = ref Location.none
let default_expr () =
let id = Location.mkloc "merlin.hole" !default_loc in
Exp.mk ~loc:!default_loc (Pexp_extension (id, PStr []))
let default_pattern () = Pat.any ~loc:!defaul... | 33.512727 | 3,118 | 0.575984 |
4495d16a03613909f66712cb67acfeb9e0892f4b | 230 | ml | OCaml | src/lib/integration_test_cloud_engine/integration_test_cloud_engine.ml | paul-schaaf/coda | 2292aed8e1b3c495e1e9ec2a956e07f6d4ab57ba | [
"Apache-2.0"
] | null | null | null | src/lib/integration_test_cloud_engine/integration_test_cloud_engine.ml | paul-schaaf/coda | 2292aed8e1b3c495e1e9ec2a956e07f6d4ab57ba | [
"Apache-2.0"
] | null | null | null | src/lib/integration_test_cloud_engine/integration_test_cloud_engine.ml | paul-schaaf/coda | 2292aed8e1b3c495e1e9ec2a956e07f6d4ab57ba | [
"Apache-2.0"
] | null | null | null | module Node = Kubernetes_network.Node
module Network = Kubernetes_network
module Network_config = Coda_automation.Network_config
module Network_manager = Coda_automation.Network_manager
module Log_engine = Stack_driver_log_engine
| 38.333333 | 56 | 0.878261 |
44a46417cd71efcc16883ac5e9b58aa2ae914545 | 685 | mli | OCaml | resolver/dns_resolver_root.mli | olleolleolle/ocaml-dns | 0015c44354834000bdada637ca5911466ead7a97 | [
"BSD-2-Clause"
] | 54 | 2018-01-10T19:41:01.000Z | 2019-05-20T11:52:04.000Z | resolver/dns_resolver_root.mli | olleolleolle/ocaml-dns | 0015c44354834000bdada637ca5911466ead7a97 | [
"BSD-2-Clause"
] | 19 | 2018-02-20T17:35:04.000Z | 2019-06-27T20:47:08.000Z | resolver/dns_resolver_root.mli | olleolleolle/ocaml-dns | 0015c44354834000bdada637ca5911466ead7a97 | [
"BSD-2-Clause"
] | 6 | 2018-02-25T23:51:16.000Z | 2019-04-11T11:57:29.000Z | (* (c) 2018 Hannes Mehnert, all rights reserved *)
open Dns
val root_servers : ([ `raw ] Domain_name.t * Ipaddr.V4.t) list
(** [root_servers] are the root servers. *)
val ns_records : Rr_map.b
(** [ns_records] is the root nameserver binding. *)
val a_records : ([ `raw ] Domain_name.t * Rr_map.b) list
(** [a_records... | 32.619048 | 73 | 0.69635 |
44b521ea0335a6c06a222a382207c2d16f613286 | 332 | mli | OCaml | hphp/hack/src/typing/typing_subtype_method.mli | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/src/typing/typing_subtype_method.mli | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/src/typing/typing_subtype_method.mli | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | 2,126 | 2015-01-01T11:13:29.000Z | 2022-03-28T19:58:15.000Z | open Typing_defs
open Typing_env_types
(** Check that the method with signature ft_sub can be used to override
(is a subtype of) method with signature ft_super. *)
val subtype_method_decl :
check_return:bool ->
env ->
Reason.t ->
decl_fun_type ->
Reason.t ->
decl_fun_type ->
Typing_error.Reasons_callback... | 22.133333 | 71 | 0.731928 |
4421eb1fe3a83379663aee8b5b8880e3cf53826e | 423 | ml | OCaml | data/derived/comb/progs/unify/prog2302.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/prog2302.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2302.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 buildCosine e = Cosine e;;
let buildSine e = Sine e;;
let buildX () = VarX;;
let rec build (rand,depth) =
match depth with
| 0 -> buildX ()
| 1 -> if ... | 19.227273 | 63 | 0.593381 |
442f58622c521529e60f5ea0a0c081eedd09c510 | 19,416 | ml | OCaml | data/derived/comb/progs/unify/prog3024.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/prog3024.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3024.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.964346 | 208 | 0.654306 |
44ac95a2069241f4728b787e110763873e49d40f | 113,553 | ml | OCaml | duniverse/ocaml-migrate-parsetree/src/ast_405.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/ocaml-migrate-parsetree/src/ast_405.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/ocaml-migrate-parsetree/src/ast_405.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml Migrate Parsetree *)
(* *)
(* ... | 37.328402 | 89 | 0.590949 |
44c22d2151e5bac2a2a289b186d3df52283be214 | 38,109 | ml | OCaml | src/reason-parser/reason_toolchain.ml | dylanirlbeck/reason | d7af89377c3f654538875c79ebd29bafdd8be267 | [
"MIT"
] | null | null | null | src/reason-parser/reason_toolchain.ml | dylanirlbeck/reason | d7af89377c3f654538875c79ebd29bafdd8be267 | [
"MIT"
] | null | null | null | src/reason-parser/reason_toolchain.ml | dylanirlbeck/reason | d7af89377c3f654538875c79ebd29bafdd8be267 | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* Reason *)
(* *)
(***********************... | 39.247168 | 134 | 0.658978 |
448d3001dbfe06d9befa8ce75493ea2f784bc030 | 1,071 | ml | OCaml | hphp/hack/src/utils/fork.ml | bd808/hhvm | 5a9a5ac8b6b53c0e96a61339d8821195231ac233 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/fork.ml | bd808/hhvm | 5a9a5ac8b6b53c0e96a61339d8821195231ac233 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/fork.ml | bd808/hhvm | 5a9a5ac8b6b53c0e96a61339d8821195231ac233 | [
"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 Core
(*... | 28.184211 | 80 | 0.676937 |
4461c75fbc96a7eab6ecbadee6598bc253fc0cea | 7,374 | ml | OCaml | src/forwarder/frame.ml | Mattlk13/vpnkit | b48a26306b767b033e189ffe362d126a673fa140 | [
"Apache-2.0"
] | 671 | 2017-04-18T16:03:25.000Z | 2022-03-23T08:52:21.000Z | src/forwarder/frame.ml | rneugeba/vpnkit | 2ffc1dd8a84ea7359dd09b1f4b51bb728d4f46a0 | [
"Apache-2.0"
] | 195 | 2017-04-20T14:06:21.000Z | 2022-03-24T16:54:32.000Z | src/forwarder/frame.ml | rneugeba/vpnkit | 2ffc1dd8a84ea7359dd09b1f4b51bb728d4f46a0 | [
"Apache-2.0"
] | 126 | 2017-04-19T17:33:16.000Z | 2022-03-15T04:50:29.000Z |
module Destination = struct
type port = int
type path = string
type t = [
| `Tcp of Ipaddr.t * port
| `Udp of Ipaddr.t * port
| `Unix of path
]
let to_string = function
| `Tcp (ip, port) ->
Printf.sprintf "TCP %s:%d" (Ipaddr.to_string ip) port
| `Udp (ip, port) ->
Printf.spri... | 30.725 | 136 | 0.625983 |
44ba908366dade81a619e18854803db1e39a0609 | 4,506 | ml | OCaml | 2020/day_14/main.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | 2 | 2022-01-04T23:09:54.000Z | 2022-01-26T08:57:20.000Z | 2020/day_14/main.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | null | null | null | 2020/day_14/main.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | null | null | null | open! Core
open! Async
open! Import
let bit_length = 36
module Mask = struct
module Digit = struct
type t =
| Floating
| Zero
| One
[@@deriving sexp_of]
end
type t = Digit.t array [@@deriving sexp_of]
let invariant t =
Invariant.invariant [%here] t [%sexp_of: t] (fun () ->
... | 24.225806 | 88 | 0.588549 |
44a42abc3b126b3f595e96543e945baeb9a84825 | 8,359 | ml | OCaml | data/derived/comb/progs/unify/prog6050.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | 4 | 2017-07-04T22:30:05.000Z | 2021-03-29T14:44:52.000Z | data/derived/fa15/progs/unify/prog1188.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1188.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... | 26.203762 | 148 | 0.661802 |
445b34e0f28fac192ee97f19f7649f50b82d7380 | 1,857 | ml | OCaml | libraries/cloudformation/lib/describeStacks.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudformation/lib/describeStacks.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/cloudformation/lib/describeStacks.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DescribeStacksInput.t
type output = DescribeStacksOutput.t
type error = Errors_internal.t
let service = "cloudformation"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string
(Aws.Util.of_option_exn (Endpoi... | 30.95 | 94 | 0.578891 |
44019741619b7d4241166eecc6f8c5ab402c5647 | 1,761 | ml | OCaml | benchmarks/C/formula/sol441.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/formula/sol441.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/formula/sol441.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 plusminus x = match x with
|Plus (a,b) -> (plusminus a) + (plusminus b)
|Minus (a... | 28.868852 | 76 | 0.562181 |
44272dbd6ee98c30ff0dc759d28dc8770070b85a | 3,814 | ml | OCaml | src/node/mem_store.ml | Incubaid/arakoon | 43a8d0b26e4876ef91d9657149f105c7e57e0cb0 | [
"Apache-2.0"
] | 41 | 2015-02-11T03:23:36.000Z | 2020-12-27T12:13:52.000Z | src/node/mem_store.ml | Incubaid/arakoon | 43a8d0b26e4876ef91d9657149f105c7e57e0cb0 | [
"Apache-2.0"
] | 36 | 2015-01-04T16:58:51.000Z | 2020-11-12T12:05:37.000Z | src/node/mem_store.ml | Incubaid/arakoon | 43a8d0b26e4876ef91d9657149f105c7e57e0cb0 | [
"Apache-2.0"
] | 7 | 2015-07-10T08:04:01.000Z | 2021-09-28T08:09:23.000Z | (*
Copyright (2010-2014) INCUBAID BVBA
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
Unless required by applicable law or agreed to in writing, sof... | 23.256098 | 90 | 0.633718 |
448c9c9ee5e4e7030d3e0d1d526da9062dfbf849 | 472,269 | ml | OCaml | bootstrap/4.04.0/pa_ocaml.ml | rlepigre/ocaml-earley-ocaml | 60cf1e63f30b670d0bc4bc22cdff36b453c502e3 | [
"CECILL-B"
] | 2 | 2018-02-12T20:06:48.000Z | 2018-04-09T14:08:38.000Z | bootstrap/4.04.2/pa_ocaml.ml | rlepigre/ocaml-earley-ocaml | 60cf1e63f30b670d0bc4bc22cdff36b453c502e3 | [
"CECILL-B"
] | 12 | 2017-08-30T10:44:32.000Z | 2019-08-02T11:33:33.000Z | bootstrap/4.04.1/pa_ocaml.ml | rlepigre/ocaml-earley-ocaml | 60cf1e63f30b670d0bc4bc22cdff36b453c502e3 | [
"CECILL-B"
] | 1 | 2020-04-25T05:58:29.000Z | 2020-04-25T05:58:29.000Z | open Input
open Earley
open Charset
open Ast_helper
open Asttypes
open Parsetree
open Longident
open Pa_ast
open Pa_lexing
open Helper
include Pa_ocaml_prelude
module Make(Initial:Extension) =
struct
include Initial
let ouident = uident
let uident = Earley.declare_grammar "uident"
let _ =
Earl... | 55.120098 | 103 | 0.287055 |
4450ee3d1701566c2098ac637e23519ff11c27f3 | 204 | ml | OCaml | test/interface/golden/__tests__/sum-servant/SingleSum_spec.ml | LumiGuide/ocaml-export | 7f803eb961851ceb4853fae0e741378d86237d2b | [
"BSD-3-Clause"
] | 13 | 2018-02-16T08:30:21.000Z | 2021-06-15T21:38:32.000Z | test/interface/golden/__tests__/sum-servant/SingleSum_spec.ml | plow-technologies/reason-export | 752167f5df37d43534d27d9f63bb512eec1e750d | [
"BSD-3-Clause"
] | 10 | 2018-01-17T02:10:28.000Z | 2019-04-23T21:56:43.000Z | test/interface/golden/__tests__/sum-servant/SingleSum_spec.ml | plow-technologies/reason-export | 752167f5df37d43534d27d9f63bb512eec1e750d | [
"BSD-3-Clause"
] | 1 | 2021-07-03T20:02:22.000Z | 2021-07-03T20:02:22.000Z | let () =
AesonSpec.sampleGoldenAndServerSpec
SingleSum.decodeSingleSum
SingleSum.encodeSingleSum
"nameOrIdNumber"
"http://localhost:8082/SingleSum/SingleSum"
"golden/sum/SingleSum";
| 25.5 | 47 | 0.745098 |
44c8b467df08e283c46c21a4a10a6cea64056fb2 | 17,740 | ml | OCaml | hphp/hack/src/naming/naming_global.ml | jie-pan/hhvm | 41853383c5b53a69ac2c67f9d3cce5e38c6eafa5 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/naming/naming_global.ml | jie-pan/hhvm | 41853383c5b53a69ac2c67f9d3cce5e38c6eafa5 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-08-21T07:48:37.000Z | 2021-08-21T07:48:37.000Z | hphp/hack/src/naming/naming_global.ml | LaudateCorpus1/hhvm | 15914f0afb9dc408fe56949d5871a46ffa103b44 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(** Module "naming" a program.
*
* The naming phase consists in several things
* 1- get all the global names
* 2... | 35.910931 | 107 | 0.650958 |
4431ac55db85d720e743cc23edaa7c00ee47f0ce | 1,803 | ml | OCaml | libraries/ec2/lib/createSecurityGroup.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/createSecurityGroup.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/createSecurityGroup.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = CreateSecurityGroupRequest.t
type output = CreateSecurityGroupResult.t
type error = Errors_internal.t
let service = "ec2"
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
... | 31.086207 | 99 | 0.574043 |
440529dea9cd3cde5514415d08d8c9f3da4dce41 | 2,020 | ml | OCaml | src/base/algodiff/owl_algodiff_reverse.ml | gbaydin/owl | 2cd67547543cd7fdd54bbbfbf5a094e0c92ef399 | [
"MIT"
] | null | null | null | src/base/algodiff/owl_algodiff_reverse.ml | gbaydin/owl | 2cd67547543cd7fdd54bbbfbf5a094e0c92ef399 | [
"MIT"
] | null | null | null | src/base/algodiff/owl_algodiff_reverse.ml | gbaydin/owl | 2cd67547543cd7fdd54bbbfbf5a094e0c92ef399 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
module Make (C : sig
include Owl_algodiff_core_sig.Sig
val reverse_add : t -> t -> t
end) =
struct
open C
(* core of reverse mode functions *)
let reverse_reset x =
let rec reset ... | 27.297297 | 89 | 0.521782 |
afa85f418386446e200acf20d2129ad7df65de9f | 1,413 | mli | OCaml | src/ocaml/typing/printtyped.mli | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 1,031 | 2016-12-16T19:17:17.000Z | 2022-03-24T06:30:52.000Z | src/ocaml/typing/printtyped.mli | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 754 | 2016-12-16T14:01:33.000Z | 2022-03-31T13:21:16.000Z | src/ocaml/typing/printtyped.mli | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 177 | 2017-01-04T17:35:53.000Z | 2022-02-18T02:54:14.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 52.333333 | 76 | 0.356688 |
443766154f84b635e6c1f9c01da3e1c10b9bbbd5 | 2,147 | ml | OCaml | fpat/typConst.ml | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 32 | 2019-10-30T10:09:56.000Z | 2022-03-28T07:15:04.000Z | fpat/typConst.ml | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 1 | 2021-04-14T19:19:15.000Z | 2021-04-15T02:03:56.000Z | fpat/typConst.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
(** Type constants *)
(** {6 Constructors} *)
type t =
(* base types *)
| Unit
| Bool
| Int
| Real
| String
| Ext of string (* external types *)
| Bot
| Top
| Unknown
(* composed types *)
| Arrow
| List
(* intersection and union types *)
| Inter of int
| Unio... | 17.455285 | 57 | 0.510014 |
8a27c3c154cf5ec86ed5bf6b28a94d5a2a245825 | 372 | mli | OCaml | ocaml-compiler/src/assm/riscvAssm.mli | kcvlex/toy-scheme | c271d600a2cc264d46718219ec9caea5d48c8be7 | [
"MIT"
] | null | null | null | ocaml-compiler/src/assm/riscvAssm.mli | kcvlex/toy-scheme | c271d600a2cc264d46718219ec9caea5d48c8be7 | [
"MIT"
] | 1 | 2021-03-16T17:50:19.000Z | 2021-03-16T17:50:19.000Z | ocaml-compiler/src/assm/riscvAssm.mli | kcvlex/toy-scheme | c271d600a2cc264d46718219ec9caea5d48c8be7 | [
"MIT"
] | null | null | null | type assm_instr_type =
| Pseudo of PseudoInstr.t
| Actual of ActualInstr.t
type line_type =
| Instr of assm_instr_type
| Ops of Riscv.ops_type
| Label of string
type t = line_type list
type context_type = {
mutable arch : Riscv.arch_type;
mutable build : Riscv.build_type;
mutable wsize : int;
mutab... | 19.578947 | 35 | 0.717742 |
449561997bcb3328e0d79f6b30c33860096cb1c7 | 523 | ml | OCaml | installer/ml-generator/code/private_common.ml | diskuv/dkml-install-api | d3d0c85971d55ab8bceddf30d19c07b0475c9275 | [
"Apache-2.0"
] | null | null | null | installer/ml-generator/code/private_common.ml | diskuv/dkml-install-api | d3d0c85971d55ab8bceddf30d19c07b0475c9275 | [
"Apache-2.0"
] | null | null | null | installer/ml-generator/code/private_common.ml | diskuv/dkml-install-api | d3d0c85971d55ab8bceddf30d19c07b0475c9275 | [
"Apache-2.0"
] | null | null | null | let organization =
{
Dkml_package_console_common.legal_name = "Example LLC";
common_name_full = "Example Org";
common_name_camel_case_nospaces = "ExampleOrg";
common_name_kebab_lower_case = "example-org";
}
let program_name =
{
Dkml_package_console_common.name_full = "Example Program";
na... | 30.764706 | 62 | 0.75717 |
4414351ce08fc976dd5eba2bfba39b90698a87df | 376 | mli | OCaml | src/typing/polarity/polarity.mli | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/typing/polarity/polarity.mli | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/typing/polarity/polarity.mli | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
type t =
| Negative
| Neutral
| Positive
[@@deriving show]
val compat : t * t -> bool
val inv : t -> t
val mult : t * t ... | 16.347826 | 66 | 0.638298 |
8aba4b45e631c33e484f8e5e5ebfdbe1fd30053b | 443 | ml | OCaml | examples/broker/sb_brok.ml | Smarthab/HAB | dc8b58e73e9e78e264c228522b0a3a4e4104fa44 | [
"MIT"
] | null | null | null | examples/broker/sb_brok.ml | Smarthab/HAB | dc8b58e73e9e78e264c228522b0a3a4e4104fa44 | [
"MIT"
] | null | null | null | examples/broker/sb_brok.ml | Smarthab/HAB | dc8b58e73e9e78e264c228522b0a3a4e4104fa44 | [
"MIT"
] | null | null | null | open Huxiang
module NetworkNode = Huxiang.Node.Make(Processes.SB_Brok)
let _ =
let () = Lwt_log.add_rule "*" Lwt_log.Info in
Lwt_log.default := (Lwt_log.channel
~template:"[$(level)] $(message)"
~channel:Lwt_io.stderr
~close_mode:`Keep
... | 24.611111 | 57 | 0.568849 |
af0ad5808ae32c074c9354e7e41f42f725a9ee1a | 1,313 | mli | OCaml | lib/fuzz_actions/src/mem.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 2 | 2021-06-09T22:28:00.000Z | 2021-06-30T18:08:22.000Z | lib/fuzz_actions/src/mem.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 13 | 2021-02-10T08:57:29.000Z | 2021-02-16T16:17:25.000Z | lib/fuzz_actions/src/mem.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 1 | 2021-06-09T22:28:01.000Z | 2021-06-09T22:28:01.000Z | (* This file is part of c4f.
Copyright (c) 2018-2021 C4 Project
c4t itself is licensed under the MIT License. See the LICENSE file in the
project root for more information.
Parts of c4t are based on code from the Herdtools7 project
(https://github.com/herd/herdtools7) : see the LICENSE.herd file in th... | 27.93617 | 76 | 0.689261 |
4430b8da585c7e5bb2c3a1e3734473c5bd41fb87 | 2,538 | ml | OCaml | source/hack_parallel/scripts/script_utils.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 5,975 | 2018-05-11T15:54:32.000Z | 2022-03-31T14:38:00.000Z | source/hack_parallel/scripts/script_utils.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 524 | 2018-05-11T16:47:20.000Z | 2022-03-22T17:43:06.000Z | source/hack_parallel/scripts/script_utils.ml | 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.
*)
let with_pipe f =
let fd_r, fd_w = Unix.pipe () in
try
let res = f (fd_r, fd_w) in
Unix.close fd_r;
Unix.close fd_w... | 32.126582 | 78 | 0.671789 |
4467d42b75d3f0509808b5ccab0538a23901c5a5 | 535 | mli | OCaml | infer/src/backend/dotty.mli | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 4 | 2021-11-19T02:07:46.000Z | 2022-03-24T06:03:50.000Z | infer/src/backend/dotty.mli | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 1 | 2021-04-05T15:19:58.000Z | 2021-12-16T04:22:26.000Z | infer/src/backend/dotty.mli | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 1 | 2019-04-26T02:27:43.000Z | 2019-04-26T02:27:43.000Z | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
(** Pretty printing functions in dot format. *)
(** {2 Contol-Flow Graph} *)
val... | 24.318182 | 92 | 0.68785 |
448559717637604bc5f11672ddb98f8ded05f8f4 | 248 | ml | OCaml | src/name.ml | janestreet/ppx_accessor | d0ce99bc66a0fb77d317691b592a8125de24e63f | [
"MIT"
] | 6 | 2020-02-17T14:38:12.000Z | 2021-12-17T02:55:23.000Z | src/name.ml | janestreet/ppx_accessor | d0ce99bc66a0fb77d317691b592a8125de24e63f | [
"MIT"
] | 3 | 2020-09-02T09:48:33.000Z | 2021-09-07T09:03:34.000Z | src/name.ml | janestreet/ppx_accessor | d0ce99bc66a0fb77d317691b592a8125de24e63f | [
"MIT"
] | 4 | 2020-07-06T13:47:52.000Z | 2021-12-17T02:56:00.000Z | open! Base
open! Import
type t = string
let of_string = Fn.id
let to_constructor_string = Fn.id
let to_lowercase_string t =
let string = String.lowercase t in
if Stdlib.Hashtbl.mem Lexer.keyword_table string then string ^ "_" else string
;;
| 19.076923 | 80 | 0.75 |
447e069c9054e59e8a94c25f05f823694399ab8e | 7,527 | ml | OCaml | hphp/hack/test/integration_ml/test_getfundeps.ml | alexsn/hhvm | 6061999778c513d2433c3282902ab1befc4f60b2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration_ml/test_getfundeps.ml | alexsn/hhvm | 6061999778c513d2433c3282902ab1befc4f60b2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration_ml/test_getfundeps.ml | alexsn/hhvm | 6061999778c513d2433c3282902ab1befc4f60b2 | [
"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.
*
*
*)
open Hh_prelude
module Test = Integration_test_base
let f1 =
( "f1.php",
{|<?hh
function test(F2A $a, F3B ... | 29.402344 | 886 | 0.565697 |
448d72f7fcc6f1ffa950d7509546dbc6f99230c7 | 6,542 | ml | OCaml | duniverse/core_kernel/src/std_kernel.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_kernel/src/std_kernel.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_kernel/src/std_kernel.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (** [Core_kernel] greatly expands the functionality available in Base while still
remaining platform-agnostic. Core_kernel changes more frequently (i.e., is less
stable) than Base.
Some modules are mere extensions of their counterparts in Base, usually adding generic
functionality by including functor... | 30.427907 | 90 | 0.79517 |
448bcb683201d28712f0297cfcc2bb8950633891 | 572 | ml | OCaml | test/passing/module_attributes.ml | Wilfred/ocamlformat | 3b41b2597ea98c5abba3744a280b286a7edbd99d | [
"MIT"
] | null | null | null | test/passing/module_attributes.ml | Wilfred/ocamlformat | 3b41b2597ea98c5abba3744a280b286a7edbd99d | [
"MIT"
] | null | null | null | test/passing/module_attributes.ml | Wilfred/ocamlformat | 3b41b2597ea98c5abba3744a280b286a7edbd99d | [
"MIT"
] | 1 | 2019-01-16T07:35:51.000Z | 2019-01-16T07:35:51.000Z | include (functor [@warning "item"] (M : S) -> N) [@@warning "structure"]
include struct
type t
end [@warning "item"] [@@warning "structure"]
include M [@warning "item"] [@@warning "structure"]
include (M : S) [@warning "item"] [@@warning "structure"]
include M (N) [@warning "item"] [@@warning "structure"]
includ... | 30.105263 | 75 | 0.655594 |
8ad303496990b99f568310981d4f04be32fa3b15 | 361 | ml | OCaml | benchmarks/C/lambda/sol28.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/lambda/sol28.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/lambda/sol28.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null |
type lambda = V of var
| P of var * lambda
| C of lambda * lambda
and var = string
let check met =
let rec sub_check (checklist, metr) =
match metr with
(V a) ->
(List.mem a checklist)
|(P (a,b)) ->
(sub_check ((a::checklist), b))
|(C (a,b)) ->
((sub_check (checklist,a))
&& (sub_check (ch... | 19 | 38 | 0.565097 |
444bfb70b9e1d14fa27480d28f4b171068f20e04 | 34,147 | ml | OCaml | src/ocaml/typing/untypeast.ml | Gopiandcode/merlin | 3e242c17151599088bd86e193b62015fcbb183c8 | [
"MIT"
] | null | null | null | src/ocaml/typing/untypeast.ml | Gopiandcode/merlin | 3e242c17151599088bd86e193b62015fcbb183c8 | [
"MIT"
] | null | null | null | src/ocaml/typing/untypeast.ml | Gopiandcode/merlin | 3e242c17151599088bd86e193b62015fcbb183c8 | [
"MIT"
] | 1 | 2019-10-23T21:29:19.000Z | 2019-10-23T21:29:19.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* Thomas... | 37.983315 | 80 | 0.639295 |
440998b7a5a1ffbae6bde16a4244e5ab10a4bff8 | 28,301 | ml | OCaml | duet/translateCil.ml | nclskoh/duet | bb2e84f8184683cac59b914d5d8f2c959fdf6b0c | [
"MIT"
] | 25 | 2016-10-10T13:52:45.000Z | 2021-12-15T07:49:04.000Z | duet/translateCil.ml | nclskoh/duet | bb2e84f8184683cac59b914d5d8f2c959fdf6b0c | [
"MIT"
] | 3 | 2016-02-10T14:03:46.000Z | 2019-08-18T13:59:53.000Z | duet/translateCil.ml | nclskoh/duet | bb2e84f8184683cac59b914d5d8f2c959fdf6b0c | [
"MIT"
] | 20 | 2016-02-10T13:46:19.000Z | 2022-02-18T16:02:16.000Z | (** Utilities for translating from Cil's IR to ours *)
open Core
open Aexpr
open Srk
include Log.Make(struct let name = "translateCil" end)
(* ========================================================================== *)
(* CIL->CIL simplification pass. The interesting function here is just
"simplify". *)
(* Un... | 36.006361 | 97 | 0.587824 |
444a4adb9b1d7b6445f0a916c2bf9e656f0d026b | 2,232 | ml | OCaml | infer/src/IR/IssueLog.ml | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"MIT"
] | 1 | 2019-09-11T13:16:25.000Z | 2019-09-11T13:16:25.000Z | infer/src/IR/IssueLog.ml | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"MIT"
] | null | null | null | infer/src/IR/IssueLog.ml | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"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 to store a set of issues per procedure *)
open! IStd
type t = Errlog.t Typ.Procname.Map.t
let empty = Typ.Procname.Ma... | 31 | 90 | 0.658154 |
44d48053f023742738f2bf60db988c1a1d2cb031 | 774 | mli | OCaml | lib/assocList.mli | uds-psl/autosubst-ocaml | f820bde3c51299b5f54ef21af39ac4654854d124 | [
"MIT"
] | 8 | 2022-01-02T12:01:15.000Z | 2022-01-16T13:50:59.000Z | lib/assocList.mli | uds-psl/autosubst-ocaml | f820bde3c51299b5f54ef21af39ac4654854d124 | [
"MIT"
] | null | null | null | lib/assocList.mli | uds-psl/autosubst-ocaml | f820bde3c51299b5f54ef21af39ac4654854d124 | [
"MIT"
] | null | null | null | (** This module implements a map from 'a to 'b by an association list of pairs. *)
type ('a, 'b) t [@@deriving show]
(* The type of association lists. *)
val empty : ('a, 'b) t
val assoc_exn : 'a -> ('a, 'b) t -> 'b
val assoc : 'a -> ('a, 'b) t -> 'b option
val assoc_default : 'a -> ('a, 'b) t -> default:'b -> 'b
... | 28.666667 | 82 | 0.47416 |
44b15d9d41696fa5b3baf51a1f89c42248bc029a | 1,350 | ml | OCaml | test/unit_test/test_lcd_stat.ml | smorimoto/CAMLBOY | 0bb0beff0337e17a6450c3b9c8b3f1be7416c0b2 | [
"MIT"
] | 358 | 2021-11-23T23:21:24.000Z | 2022-03-31T02:54:28.000Z | test/unit_test/test_lcd_stat.ml | smorimoto/CAMLBOY | 0bb0beff0337e17a6450c3b9c8b3f1be7416c0b2 | [
"MIT"
] | 1 | 2021-12-11T16:57:45.000Z | 2021-12-11T17:04:57.000Z | test/unit_test/test_lcd_stat.ml | smorimoto/CAMLBOY | 0bb0beff0337e17a6450c3b9c8b3f1be7416c0b2 | [
"MIT"
] | 17 | 2021-11-24T00:35:03.000Z | 2022-03-31T03:07:35.000Z | include Camlboy_lib
open Uints
let addr = (Uint16.of_int 0xFF41)
let%expect_test "test read value" =
let t = Lcd_stat.create ~addr in
Lcd_stat.read_byte t addr
|> Uint8.show
|> print_endline;
[%expect {| $82 |}]
let%expect_test "test byte value for each mode" =
let t = Lcd_stat.create ~addr in
Gpu_m... | 22.131148 | 63 | 0.66963 |
444685dfb8686b7c0fdc02da57c4441887dc7d0c | 892 | ml | OCaml | data/derived/comb/progs/unify/prog6051.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/prog1189.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1189.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))
... | 30.758621 | 71 | 0.503363 |
8a98373c9ad5a805d4b4d37af0885a9ed9a156cf | 4,848 | ml | OCaml | lib/parser.ml | stevebleazard/jsonxt | 0b84beb77fc0924c4bd707708882b175230182e5 | [
"MIT"
] | 6 | 2018-05-16T04:17:40.000Z | 2021-07-03T03:47:53.000Z | lib/parser.ml | stevebleazard/jsonxt | 0b84beb77fc0924c4bd707708882b175230182e5 | [
"MIT"
] | null | null | null | lib/parser.ml | stevebleazard/jsonxt | 0b84beb77fc0924c4bd707708882b175230182e5 | [
"MIT"
] | 1 | 2021-08-14T13:47:30.000Z | 2021-08-14T13:47:30.000Z | module type Parser = sig
module Compliance : Compliance.S
val decode
: reader : (unit -> Tokens.token)
-> (Compliance.json option, string) result
end
module Make (Compliance : Compliance.S) : Parser
with module Compliance = Compliance
= struct
module Compliance = Compliance
exception Parse_error ... | 32.536913 | 87 | 0.589521 |
8afbab3216e94cc343e621e9d66fdefd05d82e7c | 148,587 | ml | OCaml | solvers/_build/default/geomLib/geomLexer.ml | evelinehong/nscoder | 62e7248e6c0563eaf285d05791d3bc51b7495f1a | [
"Unlicense"
] | 4 | 2020-10-27T08:02:41.000Z | 2021-01-17T02:06:55.000Z | solvers/_build/default/geomLib/geomLexer.ml | evelinehong/nscoder | 62e7248e6c0563eaf285d05791d3bc51b7495f1a | [
"Unlicense"
] | null | null | null | solvers/_build/default/geomLib/geomLexer.ml | evelinehong/nscoder | 62e7248e6c0563eaf285d05791d3bc51b7495f1a | [
"Unlicense"
] | null | null | null | # 1 "geomLib/geomLexer.mll"
open Lexing
open GeomParser
exception SyntaxError of string
let next_line lexbuf =
let pos = lexbuf.lex_curr_p in
lexbuf.lex_curr_p <-
{ pos with pos_bol = lexbuf.lex_curr_pos;
pos_lnum = pos.pos_lnum + 1
}
# 16 "geomLib/geomLexer.ml"
let __ocaml_lex_tables = ... | 65.0841 | 84 | 0.682752 |
44b69d49423efc221e2d688c80f2de3e4bf0a636 | 188 | mli | OCaml | lib_lwt/hxd_lwt.mli | MisterDA/hxd | d9f7eb438874d6449b3d046a8736d3b62044fcfd | [
"MIT"
] | 23 | 2019-04-09T17:14:07.000Z | 2021-05-09T09:50:56.000Z | lib_lwt/hxd_lwt.mli | MisterDA/hxd | d9f7eb438874d6449b3d046a8736d3b62044fcfd | [
"MIT"
] | 4 | 2020-07-29T14:33:04.000Z | 2022-02-11T13:40:08.000Z | lib_lwt/hxd_lwt.mli | MisterDA/hxd | d9f7eb438874d6449b3d046a8736d3b62044fcfd | [
"MIT"
] | 2 | 2021-03-06T12:33:08.000Z | 2022-02-09T14:57:45.000Z | type input = unit -> (string * int * int) option Lwt.t
type output = (string * int * int) option -> unit Lwt.t
val generate : Hxd.cfg -> input -> output -> Format.formatter -> unit Lwt.t
| 37.6 | 75 | 0.648936 |
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.