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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3234abaad7153e8095eb52a3fcd920f3cc2dcf5 | 45,532 | ml | OCaml | src/typing/errors/flow_error.ml | brett-puddick/flow | 0970415dd8f880cbd736c86a37205aff8e5c84ab | [
"MIT"
] | null | null | null | src/typing/errors/flow_error.ml | brett-puddick/flow | 0970415dd8f880cbd736c86a37205aff8e5c84ab | [
"MIT"
] | 2 | 2021-05-09T02:43:12.000Z | 2021-09-02T14:09:40.000Z | src/typing/errors/flow_error.ml | brett-puddick/flow | 0970415dd8f880cbd736c86a37205aff8e5c84ab | [
"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 Type
open Utils_js
open Reason
open Error_message
exception ImproperlyFormattedError of Loc.t Error_message.t'
type 'loc t =... | 43.696737 | 104 | 0.582491 |
f30a722d61f656cd858f0beee3572381db442f7c | 5,080 | ml | OCaml | hack/utils/utils.ml | Connormiha/flow | 5a9f63fab7b4c1453c1e0950a56df6fac1a9d612 | [
"MIT"
] | 2 | 2018-02-28T06:36:27.000Z | 2018-02-28T06:36:30.000Z | hack/utils/utils.ml | Connormiha/flow | 5a9f63fab7b4c1453c1e0950a56df6fac1a9d612 | [
"MIT"
] | null | null | null | hack/utils/utils.ml | Connormiha/flow | 5a9f63fab7b4c1453c1e0950a56df6fac1a9d612 | [
"MIT"
] | 1 | 2018-01-18T10:09:27.000Z | 2018-01-18T10:09:27.000Z | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Hh_core
... | 23.627907 | 80 | 0.609843 |
f3d98126182e50f0794dd9599fd0ef6ce8c4d0f3 | 2,838 | ml | OCaml | src/day_04b.ml | ghostrider77/adventOfCode-2018 | 12585cd473330184f248a51a764c635d4932e9bd | [
"MIT"
] | null | null | null | src/day_04b.ml | ghostrider77/adventOfCode-2018 | 12585cd473330184f248a51a764c635d4932e9bd | [
"MIT"
] | null | null | null | src/day_04b.ml | ghostrider77/adventOfCode-2018 | 12585cd473330184f248a51a764c635d4932e9bd | [
"MIT"
] | null | null | null | module IntMap = Map.Make(Int)
type record = { guard: int; asleep: int; wake_up: int }
let read_lines (filename: string): string list =
let channel = open_in filename in
let rec loop (acc: string list): string list =
try
let line = input_line channel in
loop (line :: acc)
... | 36.857143 | 119 | 0.555321 |
f34dd449cd3a7f6826325531334dcf3bde036e26 | 45 | ml | OCaml | tests/type_synonyms.ml | lthms/coq-of-ocaml | 594a3ddedfaa731e75cc85ced93fd3e9060b55ae | [
"MIT"
] | 146 | 2015-01-02T10:32:42.000Z | 2021-09-16T14:13:40.000Z | tests/type_synonyms.ml | lthms/coq-of-ocaml | 594a3ddedfaa731e75cc85ced93fd3e9060b55ae | [
"MIT"
] | 44 | 2015-04-28T19:26:48.000Z | 2021-09-20T22:40:37.000Z | tests/type_synonyms.ml | lthms/coq-of-ocaml | 594a3ddedfaa731e75cc85ced93fd3e9060b55ae | [
"MIT"
] | 10 | 2015-05-08T23:28:54.000Z | 2021-03-08T15:29:32.000Z | type t1 = string
type ('a, 'b) t2 = 'a * 'b
| 11.25 | 26 | 0.488889 |
f3869d6f69026d496675b67a2d1ee1b90c3cfada | 482 | ml | OCaml | try-cubicle/gc.ml | kayceesrk/cubicle | c2fba597da83b9ddc1195f1c8710d5330db24735 | [
"Apache-2.0"
] | 10 | 2017-08-01T16:13:02.000Z | 2022-02-18T10:12:45.000Z | try-cubicle/gc.ml | kayceesrk/cubicle | c2fba597da83b9ddc1195f1c8710d5330db24735 | [
"Apache-2.0"
] | 4 | 2018-06-07T05:27:42.000Z | 2022-02-28T09:31:46.000Z | try-cubicle/gc.ml | kayceesrk/cubicle | c2fba597da83b9ddc1195f1c8710d5330db24735 | [
"Apache-2.0"
] | 6 | 2018-07-11T15:42:26.000Z | 2022-02-15T17:21:03.000Z |
type control = {
mutable minor_heap_size : int;
mutable major_heap_increment : int;
mutable space_overhead : int;
mutable verbose : int;
mutable max_overhead : int;
mutable stack_limit : int;
}
let gc = {
minor_heap_size = 0;
major_heap_increment = 0;
space_overhead = 0;
verbose = 0;
max_overhea... | 17.851852 | 37 | 0.645228 |
f3aa0502ff2d87227558364229d6f4aba41ffb99 | 999 | ml | OCaml | data/sp14_min/1930.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/1930.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/1930.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let wwhile (f,b) =
let rec helper (f,b) (x,y) =
match y with | true -> helper (f, x) (f b) | false -> x in
helper (f, b) (b, true);;
let fixpoint (f,b) = if b != (f b) then wwhile (f, (f b)) else b;;
(* fix
let wwhile (f,b) =
let rec helper (f,b) (x,y) =
match y with | true -> helper (f, x) (f b) ... | 16.377049 | 77 | 0.495495 |
f3e23db5074717f6907cef25877f1520bc4dd32c | 25,035 | mli | OCaml | src/unix_syscalls.mli | npm-opam/async_unix | bf384d5a8c5f66b6c4b78410a2907bc4e8a1afdc | [
"Apache-2.0"
] | null | null | null | src/unix_syscalls.mli | npm-opam/async_unix | bf384d5a8c5f66b6c4b78410a2907bc4e8a1afdc | [
"Apache-2.0"
] | null | null | null | src/unix_syscalls.mli | npm-opam/async_unix | bf384d5a8c5f66b6c4b78410a2907bc4e8a1afdc | [
"Apache-2.0"
] | null | null | null | (** [Unix_syscalls] provides an interface to many of the functions in OCaml's standard
Unix module. It uses a deferred in the return type of functions that would block.
The idea is that in an Async program one does not use the standard Unix module, since
in doing so one could accidentally block the whole p... | 32.854331 | 91 | 0.636229 |
f3d6b86aedcc58d593888be571dd997d1712100a | 3,853 | ml | OCaml | hphp/hack/src/client/clientEnv.ml | simonwelsh/hhvm | d4f2f960f29fc66e0ed615b8fa7746a42aafb173 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientEnv.ml | simonwelsh/hhvm | d4f2f960f29fc66e0ed615b8fa7746a42aafb173 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientEnv.ml | simonwelsh/hhvm | d4f2f960f29fc66e0ed615b8fa7746a42aafb173 | [
"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 client_... | 34.401786 | 80 | 0.770049 |
f35dadb6fe4bef2a188191b448a407547f1b1ada | 1,415 | ml | OCaml | bin/sbash.ml | RCmerci/2bash | 408d7ecddf780d873237bf9d4f652df17d0232f9 | [
"MIT"
] | 6 | 2018-02-02T04:04:45.000Z | 2018-02-07T10:09:46.000Z | bin/sbash.ml | RCmerci/2bash | 408d7ecddf780d873237bf9d4f652df17d0232f9 | [
"MIT"
] | null | null | null | bin/sbash.ml | RCmerci/2bash | 408d7ecddf780d873237bf9d4f652df17d0232f9 | [
"MIT"
] | null | null | null | open Core
open Sbash_lib
let compile =
let spec =
let open Command.Spec in
empty +> anon ("file" %: file)
+> flag "-o" (optional_with_default "2bash.sh" file) ~doc:"output filename"
in
Command.basic ~summary:"compile 2bash file" spec (fun src dst () ->
let src' = In_channel.create src in
... | 31.444444 | 79 | 0.614841 |
f3c594e745a8ddefa6ca7321fa922a7e16db5bc0 | 944 | mli | OCaml | satml/heap.mli | OCamlPro-Coquera/minisatml | d4300989b59e539eb529aad72960fad6dbfec30a | [
"Apache-2.0"
] | null | null | null | satml/heap.mli | OCamlPro-Coquera/minisatml | d4300989b59e539eb529aad72960fad6dbfec30a | [
"Apache-2.0"
] | null | null | null | satml/heap.mli | OCamlPro-Coquera/minisatml | d4300989b59e539eb529aad72960fad6dbfec30a | [
"Apache-2.0"
] | 1 | 2021-12-07T09:51:55.000Z | 2021-12-07T09:51:55.000Z | open Vec
module Heap : sig
type 'a t = {
heap : 'a Vec.t;
indice : int Vec.t;
}
val init : 'a -> 'a t
val reinit : 'a t -> int -> 'a -> unit
val left : int -> int
val right : int -> int
val parent : int -> int
(* val get : 'a t -> int -> 'a *)
(* val set : 'a t -> int -> 'a -> unit *)
va... | 26.971429 | 66 | 0.504237 |
f3e474edba3c40b1f4bee3cefd0676dba4c57348 | 59,576 | ml | OCaml | src/build_system.ml | avsm/dune | 9f6daf146d92e02da73c50b4c6b6ebb32a077f6f | [
"MIT"
] | null | null | null | src/build_system.ml | avsm/dune | 9f6daf146d92e02da73c50b4c6b6ebb32a077f6f | [
"MIT"
] | null | null | null | src/build_system.ml | avsm/dune | 9f6daf146d92e02da73c50b4c6b6ebb32a077f6f | [
"MIT"
] | null | null | null | open! Stdune
open Import
open Fiber.O
module Vspec = Build.Vspec
(* Where we store stamp files for aliases *)
let alias_dir = Path.(relative build_dir) ".aliases"
let () = Hooks.End_of_build.always Memo.reset
module Promoted_to_delete : sig
val add : Path.t -> unit
val load : unit -> Path.Set.t
end = struct
m... | 31.405377 | 98 | 0.615953 |
d2f5574ce5d9eaa738487cd1df8a4ceadce79ee0 | 1,795 | ml | OCaml | libraries/ec2/lib/disableVpcClassicLinkDnsSupport.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/disableVpcClassicLinkDnsSupport.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/disableVpcClassicLinkDnsSupport.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DisableVpcClassicLinkDnsSupportRequest.t
type output = DisableVpcClassicLinkDnsSupportResult.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 ser... | 28.492063 | 89 | 0.630084 |
f3c3931643bc36c3e30a0d22bd87b105ab21cc80 | 20,497 | ml | OCaml | infer/src/base/ProcessPool.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | infer/src/base/ProcessPool.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | infer/src/base/ProcessPool.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 2,225 | 2015-06-11T16:36:10.000Z | 2022-03-31T05:16:59.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 L = Logging
module TaskGenerator = struct
type ('a, 'b) t =
{ remaining_tasks: unit -> i... | 43.151579 | 104 | 0.658048 |
d2fe95c1a14d8ad61f6821de3ce87c8f60ace9bd | 87 | ml | OCaml | tests/types/pass_skolem_escape.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | 1 | 2021-11-23T13:07:37.000Z | 2021-11-23T13:07:37.000Z | tests/types/pass_skolem_escape.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | tests/types/pass_skolem_escape.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | let escapes (f : forall 'a. 'a -> 'b) = f "foo"
let escape_pass = escapes (fun x -> 0)
| 29 | 47 | 0.574713 |
f3c5afa6ce9ba7ffe6419504409c686e52c52d6a | 3,401 | ml | OCaml | coqprime/src/Coqprime/num/extraction/testlucas.ml | anonymous-code-submission-01/sp2019-54-code | 8867f5bed0821415ec99f593b1d61f715ed4f789 | [
"MIT"
] | null | null | null | coqprime/src/Coqprime/num/extraction/testlucas.ml | anonymous-code-submission-01/sp2019-54-code | 8867f5bed0821415ec99f593b1d61f715ed4f789 | [
"MIT"
] | null | null | null | coqprime/src/Coqprime/num/extraction/testlucas.ml | anonymous-code-submission-01/sp2019-54-code | 8867f5bed0821415ec99f593b1d61f715ed4f789 | [
"MIT"
] | null | null | null | open Datatypes
open BinPos
open BinNat
open BinInt
open Zpower
open Zmisc
open Basic_type
open ZnZ
open Zn2Z
open Mod_op
open W31C
open W64C
let znz_of_Z op = function
| Z0 -> op.znz_0
| Zpos p -> snd (op.znz_of_pos p)
| Zneg p -> op.znz_0
(** val lucastest : 'a1 znz_op -> positive -> coq_Z **)
let lucastest o... | 29.068376 | 79 | 0.696854 |
d2e969c56c579cb6d49fb7746df71c5931a8bfd1 | 8,224 | ml | OCaml | src/typing/coverage.ml | ostera/flow | 5006818684fe3210edb57c07fbb978287fdd225f | [
"MIT"
] | 1 | 2019-07-15T20:48:46.000Z | 2019-07-15T20:48:46.000Z | src/typing/coverage.ml | wgao19/flow | 8e6b768fd787c5a1b5f7025fbf8b3b00111671de | [
"MIT"
] | 8 | 2020-04-06T11:23:08.000Z | 2022-03-24T12:41:12.000Z | src/typing/coverage.ml | wgao19/flow | 8e6b768fd787c5a1b5f7025fbf8b3b00111671de | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(**
* This module computes whether a type is considered covered. It does so by
* visiting the type until a "concrete" constructo... | 27.322259 | 87 | 0.611989 |
f355a8fe5bb81eb286fa0105278bbfd581df4d8f | 695 | ml | OCaml | ocaml/coins-the-art-of-programming/mini-pro/1-b.ml | ryosan-470/practice | 9600bd379f66d69d62f1de5dfb7a55ea90977236 | [
"Unlicense"
] | 1 | 2017-04-20T06:51:26.000Z | 2017-04-20T06:51:26.000Z | ocaml/coins-the-art-of-programming/mini-pro/1-b.ml | ryosan-470/practice | 9600bd379f66d69d62f1de5dfb7a55ea90977236 | [
"Unlicense"
] | null | null | null | ocaml/coins-the-art-of-programming/mini-pro/1-b.ml | ryosan-470/practice | 9600bd379f66d69d62f1de5dfb7a55ea90977236 | [
"Unlicense"
] | 1 | 2018-05-17T03:10:38.000Z | 2018-05-17T03:10:38.000Z | (* 変数, 整数, 加算, 乗算から構成された式を定義 *)
type exp =
Var of string (* 変数 *)
| Int of int (* 整数 *)
| Add of exp * exp (* 加算 *)
| Mul of exp * exp (* 乗算 *)
;;
(* 単純化した加算の式を返す *)
let add (x, y) =
match (x, y) with
(x, Int 0) -> x
| (Int 0, y) -> y
| (x, y) -> Add (x, y);;
(* 単純化した乗算の式を返す *)
let m... | 21.060606 | 70 | 0.447482 |
f37951c0f44148c730ae71368b15e5ca3ed291a7 | 4,170 | ml | OCaml | vendor/core_kernel/src/hexdump_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 834 | 2015-01-02T03:14:35.000Z | 2022-03-28T05:17:24.000Z | vendor/core_kernel/src/hexdump_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 99 | 2015-01-03T09:30:25.000Z | 2022-02-23T02:40:57.000Z | vendor/core_kernel/src/hexdump_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 100 | 2015-02-01T10:54:19.000Z | 2022-03-15T18:23:22.000Z | (** A functor for displaying a type as a sequence of ASCII characters printed in
hexadecimal.
[sexp_of_t] and [to_string_hum] print [t] in a similar format to 'hexdump' on Unix
systems. For example, the string "Back off, man, I'm a scientist." renders as:
{v
00000000 42 61 63 6b 20 6f 66 66 2c 20 6... | 30.888889 | 90 | 0.63765 |
f307eeff9bc24d873a6e11d6575c8c9fb23c4e3e | 9,647 | mli | OCaml | analysis/type.mli | aspin/pyre-check | fe78b41789ba3ef091b0b021d9a1c6267905a7f8 | [
"MIT"
] | null | null | null | analysis/type.mli | aspin/pyre-check | fe78b41789ba3ef091b0b021d9a1c6267905a7f8 | [
"MIT"
] | null | null | null | analysis/type.mli | aspin/pyre-check | fe78b41789ba3ef091b0b021d9a1c6267905a7f8 | [
"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 Ast
open Expression
module Record : sig
module Variable : sig
module RecordNamespace : sig
type t
[@@der... | 26.002695 | 96 | 0.686431 |
f3059dfad3897bf10111d497b1623c26a83c557f | 2,882 | ml | OCaml | src/lib/builtins.ml | jserot/fsml | 9e3e04acbbb1cb1700fa9d4a0497f35ad4f70796 | [
"MIT"
] | 29 | 2020-10-20T20:30:12.000Z | 2021-05-06T12:08:25.000Z | src/lib/builtins.ml | jserot/fsml | 9e3e04acbbb1cb1700fa9d4a0497f35ad4f70796 | [
"MIT"
] | 1 | 2020-10-21T07:08:02.000Z | 2020-10-21T10:51:14.000Z | src/lib/builtins.ml | jserot/fsml | 9e3e04acbbb1cb1700fa9d4a0497f35ad4f70796 | [
"MIT"
] | null | null | null | (**********************************************************************)
(* *)
(* This file is part of the FSML library *)
(* github.com/jserot/fsml *)
(* ... | 36.025 | 82 | 0.47814 |
f3a09a0f22f1a5539def729799d89ff44526fa7b | 326 | ml | OCaml | tests/for/for_test.ml | kit-ty-kate/metaquot | 9e2510ebbbd6e71ee6dfab94c8649e2225b21d81 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | tests/for/for_test.ml | kit-ty-kate/metaquot | 9e2510ebbbd6e71ee6dfab94c8649e2225b21d81 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | tests/for/for_test.ml | kit-ty-kate/metaquot | 9e2510ebbbd6e71ee6dfab94c8649e2225b21d81 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | let () =
match
[%stri type t [@@subst let t : string = name]
[@@for name := ["t1"; "t2"; "t3"]]]
with
| { pstr_desc = Pstr_type (Recursive, [
{ ptype_name = { txt = "t1"; _ }; _};
{ ptype_name = { txt = "t2"; _ }; _};
{ ptype_name = { txt = "t3"; _ }; _}])} -> ()
| _ -> assert ... | 29.636364 | 53 | 0.43865 |
f341fe20a9c61a7bde465aedc1d236b75e603bbd | 2,092 | ml | OCaml | tests/ex25.ml | mrmr1993/coq-of-ocaml | d875d71b0186a6ec46382f398dc2fb5c555ab48e | [
"MIT"
] | 1 | 2022-03-21T15:44:04.000Z | 2022-03-21T15:44:04.000Z | tests/ex25.ml | mrmr1993/coq-of-ocaml | d875d71b0186a6ec46382f398dc2fb5c555ab48e | [
"MIT"
] | 2 | 2018-04-02T14:32:30.000Z | 2018-05-10T08:16:24.000Z | tests/ex25.ml | mrmr1993/coq-of-ocaml | d875d71b0186a6ec46382f398dc2fb5c555ab48e | [
"MIT"
] | null | null | null | (** Module List *)
let l1 : int list = []
let l2 = [1; 2; 3; 4]
let l3 = [1, "one"; 2, "two"]
let s1 = List.length l1
let s2 = List.length l2
let h _ = List.hd l2
let t _ = List.tl l2
let x _ = List.nth l2 1
let rl = List.rev l2
let ll = List.append l2 l2
let rll = List.rev_append l2 l2
let lc = List.concat [l1; l2; ... | 32.184615 | 90 | 0.596558 |
f3a15f1a2aa5afaa6afed755f5f2ec73ec034daf | 807 | mli | OCaml | src/catala/surface/parse_utils.mli | svenski/catala | faedeaf3ce7e7bad5a931e81eb72d4d18e168da4 | [
"Apache-2.0"
] | 792 | 2020-04-17T16:13:37.000Z | 2022-03-31T06:19:48.000Z | src/catala/surface/parse_utils.mli | wozniakpl/catala | fa05ac4882edc5ba3467cc5982d21f82eccbca5c | [
"Apache-2.0"
] | 177 | 2020-05-13T11:28:20.000Z | 2022-03-31T09:03:16.000Z | src/catala/surface/parse_utils.mli | wozniakpl/catala | fa05ac4882edc5ba3467cc5982d21f82eccbca5c | [
"Apache-2.0"
] | 37 | 2020-04-20T08:35:06.000Z | 2022-03-29T07:05:36.000Z | (* This file is part of the Catala compiler, a specification language for tax and social benefits
computation rules. Copyright (C) 2020 Inria, contributor: Denis Merigoux
<denis.merigoux@inria.fr>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
in compliance... | 44.833333 | 100 | 0.760843 |
f3d55b8a87eaff6c0177f6cb9069e927b3198e45 | 4,586 | ml | OCaml | tezt/lib/temp.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | 1 | 2021-11-03T08:21:08.000Z | 2021-11-03T08:21:08.000Z | tezt/lib/temp.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | tezt/lib/temp.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | 4 | 2021-04-27T15:00:34.000Z | 2021-09-26T21:50:01.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs <contact@nomadic-labs.com> *)
... | 36.688 | 90 | 0.566289 |
d2e0dd0a5cc17384107e2b20948bc96d10271c81 | 67,071 | ml | OCaml | src/services/inference/types_js.ml | dominicfraser/flow | ebbc1ca4f148973329affd6d7ed179964aa8bd3f | [
"MIT"
] | 1 | 2019-05-10T18:08:46.000Z | 2019-05-10T18:08:46.000Z | src/services/inference/types_js.ml | cakoose/flow | f02e6f5d39765eda0f81176f538b01b3d82ecb64 | [
"MIT"
] | null | null | null | src/services/inference/types_js.ml | cakoose/flow | f02e6f5d39765eda0f81176f538b01b3d82ecb64 | [
"MIT"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(* This module drives the type checker *)
open Utils_js
(****************** typecheck job helpers *********************)
let clear_er... | 42.209566 | 124 | 0.713214 |
f3c8e197a2c482fb914738243d93690a9a2a0512 | 6,860 | ml | OCaml | data/derived/comb/progs/unify/prog3334.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/prog3334.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3334.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let rec sumList xs = match xs with
| [] -> 0
| (h::t) -> h + sumList t
;;
let _ = sumList [1; 2; 3; 4];;
let _ = sumList [1; -2; 3; 5];;
let _ = sumList [1; 3; 5; 7; 9; 11]
let rec listReverse l =
let rec listReverseHelper de... | 23.655172 | 94 | 0.609767 |
f3eefa14aa421f492b3b1fef1f74f9ce5ea9f608 | 20,409 | ml | OCaml | src/uniform_array.ml | CraigFe/compact | daa1b516c917585b80e2fbace74690766a9ac907 | [
"MIT"
] | 37 | 2021-12-27T19:33:37.000Z | 2022-01-31T07:10:12.000Z | src/uniform_array.ml | CraigFe/compact | daa1b516c917585b80e2fbace74690766a9ac907 | [
"MIT"
] | null | null | null | src/uniform_array.ml | CraigFe/compact | daa1b516c917585b80e2fbace74690766a9ac907 | [
"MIT"
] | null | null | null | (*————————————————————————————————————————————————————————————————————————————
Copyright (c) 2016–2020 Jane Street Group, LLC <opensource@janestreet.com>
Copyright (c) 2020–2021 Craig Ferguson <me@craigfe.io>
Distributed under the MIT license. See terms at the end of this file.
——————————————————————————————... | 33.239414 | 88 | 0.600715 |
f37a5d488e712184736f21e6af28f5c31b9462f6 | 17,166 | ml | OCaml | src/bin_node/node_run_command.ml | blockchain-analysis-study/my-tezos | 948eb71a5ee68c0691b011dc17faf523d8c254e9 | [
"MIT"
] | null | null | null | src/bin_node/node_run_command.ml | blockchain-analysis-study/my-tezos | 948eb71a5ee68c0691b011dc17faf523d8c254e9 | [
"MIT"
] | null | null | null | src/bin_node/node_run_command.ml | 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> *)
... | 38.575281 | 91 | 0.597926 |
f3dc578d86122b7dfcd4d079cc44fbf126db5a85 | 941 | ml | OCaml | bootstrap/test/basis/map/test_of_alist_remove.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 25 | 2020-02-03T20:31:04.000Z | 2022-03-30T17:22:35.000Z | bootstrap/test/basis/map/test_of_alist_remove.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 152 | 2020-02-03T23:16:05.000Z | 2022-02-24T22:14:04.000Z | bootstrap/test/basis/map/test_of_alist_remove.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 4 | 2020-02-03T07:36:22.000Z | 2020-10-31T03:44:52.000Z | open! Basis.Rudiments
open! Basis
open MapTest
open Map
let test () =
let test k map descr = begin
validate map;
File.Fmt.stdout
|> Fmt.fmt "--- "
|> Fmt.fmt descr
|> Fmt.fmt " ---\n"
|> ignore;
let map' = remove k map in
validate map';
File.Fmt.stdout
|> Fmt.fmt "remove "
... | 24.763158 | 70 | 0.478215 |
f3bc710bafbdedbce30584c0f2d4cfa332c550d2 | 1,007 | ml | OCaml | Compiler/test/store_property_sugared.ml | Zon8Research/fuzzilli | 5e216671fc172af60489b59c836c638cded74c9b | [
"Apache-2.0"
] | 1,490 | 2019-03-20T15:49:38.000Z | 2022-03-27T08:31:26.000Z | Compiler/test/store_property_sugared.ml | Zon8Research/fuzzilli | 5e216671fc172af60489b59c836c638cded74c9b | [
"Apache-2.0"
] | 259 | 2019-03-21T02:24:15.000Z | 2022-03-31T20:42:11.000Z | Compiler/test/store_property_sugared.ml | Zon8Research/fuzzilli | 5e216671fc172af60489b59c836c638cded74c9b | [
"Apache-2.0"
] | 319 | 2019-03-20T15:59:02.000Z | 2022-03-14T00:00:19.000Z | open Program_types
open Compiler.ProgramBuilder
let input =
"const v0 = {};
const v1 = 13.37;
v0.a = 10;
v0.a += v1;"
let correct =
let builder = init_builder false false false in
let obj, create_obj = build_create_object [] [] builder in
let float, load_float = build_load_float 13.37 builder in
let... | 40.28 | 97 | 0.738828 |
f3f31c9874300f965695f7645de368395a4bf925 | 5,578 | ml | OCaml | ppx-test/expected/binding_automatic.ml | kit-ty-kate/gen_js_api | a2654de40f2ee2cf5609df7b4e75eb48f841dce1 | [
"MIT"
] | 151 | 2015-10-23T17:35:57.000Z | 2022-03-19T05:30:20.000Z | ppx-test/expected/binding_automatic.ml | kit-ty-kate/gen_js_api | a2654de40f2ee2cf5609df7b4e75eb48f841dce1 | [
"MIT"
] | 106 | 2016-04-08T21:08:28.000Z | 2022-02-11T11:08:43.000Z | ppx-test/expected/binding_automatic.ml | kit-ty-kate/gen_js_api | a2654de40f2ee2cf5609df7b4e75eb48f841dce1 | [
"MIT"
] | 29 | 2016-07-01T15:42:23.000Z | 2022-02-04T03:12:37.000Z | [@@@js.dummy "!! This code has been generated by gen_js_api !!"]
[@@@ocaml.warning "-7-32-39"]
[@@@warning "-22"]
module M =
struct
type t = Ojs.t
let rec t_of_js : Ojs.t -> t = fun (x2 : Ojs.t) -> x2
and t_to_js : t -> Ojs.t = fun (x1 : Ojs.t) -> x1
let (prop_get_arg : t -> int) =
((fun (x3 : t... | 46.099174 | 100 | 0.569021 |
f3e998fd59de9068b38698bf323a2b1b0cb7b630 | 11,095 | ml | OCaml | interpreters/src/bool2.ml | pdarragh/ocaml-learning-interpreters | 54b821e424e20ec80de950cbe4812b8b41135ef2 | [
"MIT"
] | 1 | 2022-02-11T18:35:51.000Z | 2022-02-11T18:35:51.000Z | interpreters/src/bool2.ml | pdarragh/ocaml-learning-interpreters | 54b821e424e20ec80de950cbe4812b8b41135ef2 | [
"MIT"
] | 1 | 2022-02-20T19:35:56.000Z | 2022-02-20T19:38:36.000Z | interpreters/src/bool2.ml | pdarragh/ocaml-learning-interpreters | 54b821e424e20ec80de950cbe4812b8b41135ef2 | [
"MIT"
] | 2 | 2022-02-11T17:37:04.000Z | 2022-02-21T18:30:36.000Z | (** This module defines and explains an interpreter for an extended Boolean
algebra consisting of primitive Boolean values, conjunctions, and
disjunctions. **)
open Camlrack
open Camlrack.ListConvenienceFunctions
(* Let's take the same Boolean algebra language from [bool.ml] and add one new
functionality: ... | 37.738095 | 81 | 0.618206 |
f323f738d7da1abdc75337f517376e7b860d208e | 48,556 | ml | OCaml | test/test_fr.ml | dannywillems/ocaml-bls12-381 | 3d3c06199038c1e6509b99141289a4cd5814d23c | [
"MIT"
] | null | null | null | test/test_fr.ml | dannywillems/ocaml-bls12-381 | 3d3c06199038c1e6509b99141289a4cd5814d23c | [
"MIT"
] | 6 | 2021-06-25T19:38:26.000Z | 2022-03-14T16:40:21.000Z | test/test_fr.ml | dannywillems/ocaml-bls12-381 | 3d3c06199038c1e6509b99141289a4cd5814d23c | [
"MIT"
] | 2 | 2021-12-02T07:42:23.000Z | 2022-02-28T09:20:31.000Z | (*****************************************************************************)
(* *)
(* Copyright (c) 2020-2021 Danny Willems <be.danny.willems@gmail.com> *)
(* *)
... | 46.376313 | 93 | 0.700634 |
f34c3105a20940898fc9bd34f3c284a4a16afe95 | 3,646 | mli | OCaml | src/dune_engine/action_builder0.mli | tmcgilchrist/jbuilder | 75ecfe34216dd07b339d2b9027f7b6a507151418 | [
"MIT"
] | 1 | 2021-10-05T16:59:09.000Z | 2021-10-05T16:59:09.000Z | src/dune_engine/action_builder0.mli | tmcgilchrist/jbuilder | 75ecfe34216dd07b339d2b9027f7b6a507151418 | [
"MIT"
] | null | null | null | src/dune_engine/action_builder0.mli | tmcgilchrist/jbuilder | 75ecfe34216dd07b339d2b9027f7b6a507151418 | [
"MIT"
] | null | null | null | open! Stdune
open! Import
type 'a t
module O : sig
val ( >>> ) : unit t -> 'a t -> 'a t
val ( >>= ) : 'a t -> ('a -> 'b t) -> 'b t
val ( >>| ) : 'a t -> ('a -> 'b) -> 'b t
val ( let* ) : 'a t -> ('a -> 'b t) -> 'b t
val ( and* ) : 'a t -> 'b t -> ('a * 'b) t
val ( let+ ) : 'a t -> ('a -> 'b) -> 'b t
... | 29.168 | 81 | 0.595996 |
f32349d63511ad75f195d5ad9a973f040e39117a | 959 | ml | OCaml | libraries/ec2/lib/deleteCustomerGateway.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/deleteCustomerGateway.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/ec2/lib/deleteCustomerGateway.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DeleteCustomerGatewayRequest.t
type output = unit
type error = Errors_internal.t
let service = "ec2"
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 (Endpoints.url_of service r... | 30.935484 | 79 | 0.633994 |
f309b8d0cac3bd93ffc27805a59140feea87f262 | 1,830 | ml | OCaml | libraries/sdb/lib/getAttributes.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/sdb/lib/getAttributes.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/sdb/lib/getAttributes.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
open Aws
type input = GetAttributesRequest.t
type output = GetAttributesResult.t
type error = Errors_internal.t
let service = "sdb"
let signature_version = Request.V2
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of ser... | 26.142857 | 90 | 0.630055 |
f3b945c3b357e5aef4186d9e3417f9d974f75137 | 7,635 | ml | OCaml | src/usuba/src/tightprove/tightprove_to_usuba.ml | pedagand/Tornado | d44d20e1a1d1dc76eb3849d70960afff1de213a9 | [
"MIT"
] | 41 | 2018-06-22T18:19:20.000Z | 2021-11-14T16:24:15.000Z | src/usuba/src/tightprove/tightprove_to_usuba.ml | pedagand/Tornado | d44d20e1a1d1dc76eb3849d70960afff1de213a9 | [
"MIT"
] | 4 | 2020-05-17T15:07:08.000Z | 2021-03-14T11:14:04.000Z | src/usuba/src/tightprove/tightprove_to_usuba.ml | pedagand/Tornado | d44d20e1a1d1dc76eb3849d70960afff1de213a9 | [
"MIT"
] | 6 | 2020-05-20T05:36:00.000Z | 2021-03-14T10:55:47.000Z | open Basic_utils
open Usuba_AST
open Tp_AST
open Printf
(* More like "update envs" than "gen_var": given a TP variable (ie, a
string), generates a Usuba variable, and updates |new_vars| and
|vars_corres| accordingly. *)
let gen_var (new_vars:(Usuba_AST.var,Usuba_AST.var) Hashtbl.t)
(vars_corres: (str... | 45.718563 | 96 | 0.64021 |
f3940100ac82473c2324487ee59ecea9215c5204 | 5,293 | ml | OCaml | ws/ws.ml | roddyyaga/txtshooter | 00fa8cc97f521a85a67f71905f41f67a1f748604 | [
"MIT"
] | null | null | null | ws/ws.ml | roddyyaga/txtshooter | 00fa8cc97f521a85a67f71905f41f67a1f748604 | [
"MIT"
] | null | null | null | ws/ws.ml | roddyyaga/txtshooter | 00fa8cc97f521a85a67f71905f41f67a1f748604 | [
"MIT"
] | null | null | null | open Base
module Client = struct
module Id = struct
type t = int
let to_int x = x
let hash = Int.hash
let sexp_of_t = Int.sexp_of_t
let compare = Int.compare
let ( = ) = Int.( = )
end
type t = { id: Id.t; client: Websocket_lwt_unix.Connected_client.t }
let id { id; _ } = id
le... | 32.875776 | 79 | 0.532968 |
d2e639ed19fb26aeee7b4e8c20bb8d120a471f1e | 415 | ml | OCaml | exercises/04_04-insertion/solution.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | exercises/04_04-insertion/solution.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | exercises/04_04-insertion/solution.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | (* let tab = [|12;0;-1;10;12;1;0|];; *)
(*
let echange tab i j =
let valeur = tab.(i) in
tab.(i) <- tab.(j);
tab.(j) <- valeur;;
*)
let tri_partiel tab i =
let j = ref i in
while !j > 0 && tab.(!j) < tab.(!j-1) do
echange tab (!j-1) !j;
j := !j - 1;
done;;
let tri_insertion tab =
for i = 1 to (A... | 18.043478 | 42 | 0.508434 |
f306da724a7b42f0ddf247c3893f3794a2c9f6e4 | 225 | mli | OCaml | libraries/rds/lib/describeSourceRegions.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/rds/lib/describeSourceRegions.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/rds/lib/describeSourceRegions.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = DescribeSourceRegionsMessage.t
type output = SourceRegionMessage.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 32.142857 | 74 | 0.755556 |
f37db3f39e6162d1c325cb23ba7ac06a7911fb79 | 1,061 | ml | OCaml | src/unit_tests/cfa_analysis/exit_points_test.ml | TDacik/Deadlock | 59c1f101bc40dd96fbc7fe96c47a09bfdc29c10b | [
"MIT"
] | 11 | 2020-12-08T02:30:30.000Z | 2022-01-13T17:26:32.000Z | src/unit_tests/cfa_analysis/exit_points_test.ml | TDacik/Deadlock | 59c1f101bc40dd96fbc7fe96c47a09bfdc29c10b | [
"MIT"
] | 1 | 2022-01-12T11:59:03.000Z | 2022-03-04T16:11:23.000Z | src/unit_tests/cfa_analysis/exit_points_test.ml | TDacik/Deadlock | 59c1f101bc40dd96fbc7fe96c47a09bfdc29c10b | [
"MIT"
] | null | null | null | open Unit_tests_top
open Exit_points
let stmt1 _ = find_stmt_by_label "f" "stmt1"
let stmt2 _ = find_stmt_by_label "f" "stmt2"
let stmt3 _ = find_stmt_by_label "f" "stmt3"
let stmt4 _ = find_stmt_by_label "f" "stmt4"
let stmt5 _ = find_stmt_by_label "f" "stmt5"
let stmt6 _ = find_stmt_by_label "f" "stmt6"
let stmt7 _... | 37.892857 | 74 | 0.66541 |
f3ee5a7659782d9f35dd61375ed3533c65f18e96 | 16,457 | ml | OCaml | src/irmin/tree_intf.ml | maiste-forks/irmin | b1c2518017be7faa0205a9238fd4085149643755 | [
"0BSD"
] | null | null | null | src/irmin/tree_intf.ml | maiste-forks/irmin | b1c2518017be7faa0205a9238fd4085149643755 | [
"0BSD"
] | null | null | null | src/irmin/tree_intf.ml | maiste-forks/irmin | b1c2518017be7faa0205a9238fd4085149643755 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-2021 Thomas Gazagnaire <thomas@gazagnaire.org>
* Copyright (c) 2017 Grégoire Henry <gregoire.henry@ocamlpro.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this pe... | 34.792812 | 82 | 0.625934 |
f352d370658cda8d48ecc93b451019cacae71b61 | 640 | mli | OCaml | src/lib/transition_frontier/persistent_frontier/sync.mli | phreelyfe/mina | 34328cd4e9b6ac699c3330003e40976a1059ed90 | [
"Apache-2.0"
] | 2 | 2020-11-14T20:16:02.000Z | 2021-08-19T12:44:52.000Z | src/lib/transition_frontier/persistent_frontier/sync.mli | phreelyfe/mina | 34328cd4e9b6ac699c3330003e40976a1059ed90 | [
"Apache-2.0"
] | 11 | 2021-09-02T10:10:36.000Z | 2022-02-27T08:56:41.000Z | src/lib/transition_frontier/persistent_frontier/sync.mli | phreelyfe/mina | 34328cd4e9b6ac699c3330003e40976a1059ed90 | [
"Apache-2.0"
] | null | null | null | (** This module provides the implementation for actively "syncing" the
* persistent frontier database. A [Sync] job can be created, and can
* then be sent diffs to accumulate and apply to the databse in chunks
* (using the [Diff_buffer]).
*)
open Async_kernel
open Frontier_base
type t
val create :
constr... | 23.703704 | 71 | 0.725 |
f31464c46c26c27b80e8d653f53ada872963e12e | 68,656 | ml | OCaml | src/app/archive/archive_lib/processor.ml | mobileink/coda | 0612b142738c68155e9a9bba16cd3787bba4feed | [
"Apache-2.0"
] | 1 | 2021-03-11T14:29:46.000Z | 2021-03-11T14:29:46.000Z | src/app/archive/archive_lib/processor.ml | 0xMaverick/mina | 2103918740257c9db230666265f38ce833755796 | [
"Apache-2.0"
] | 1 | 2021-03-06T14:52:32.000Z | 2021-03-06T14:52:32.000Z | src/app/archive/archive_lib/processor.ml | obazl/mina | 0612b142738c68155e9a9bba16cd3787bba4feed | [
"Apache-2.0"
] | null | null | null | (* processor.ml -- database processing for archive node *)
module Archive_rpc = Rpc
open Async
open Core
open Caqti_async
open Mina_base
open Mina_state
open Mina_transition
open Pipe_lib
open Signature_lib
open Pickles_types
module Caqti_type_spec = struct
type (_, _) t =
| [] : (unit, unit) t
| ( :: ) : '... | 36.79314 | 101 | 0.587727 |
f36927fbf6ee060679b563582ae13a9e1fed61b6 | 18,696 | ml | OCaml | test/expect-tests/fiber/fiber_tests.ml | ddickstein/dune | 08d27d547f09d86cf5d7230f8a5cbe027708f979 | [
"MIT"
] | null | null | null | test/expect-tests/fiber/fiber_tests.ml | ddickstein/dune | 08d27d547f09d86cf5d7230f8a5cbe027708f979 | [
"MIT"
] | null | null | null | test/expect-tests/fiber/fiber_tests.ml | ddickstein/dune | 08d27d547f09d86cf5d7230f8a5cbe027708f979 | [
"MIT"
] | null | null | null | open Stdune
open Fiber.O
open Dyn.Encoder
open Dune_tests_common
let printf = Printf.printf
let () = init ()
module Scheduler : sig
exception Never
val yield : unit -> unit Fiber.t
val run : 'a Fiber.t -> 'a
end = struct
let suspended = Queue.create ()
let yield () =
let ivar = Fiber.Ivar.create () ... | 28.413374 | 82 | 0.593015 |
f341387cde7741de5a6713c9e8ffce54ddd581af | 49,251 | ml | OCaml | src/oraft.ml | Cjen1/oraft | 590d658722102952d11f940c5661fb59103691a7 | [
"MIT"
] | 23 | 2015-01-25T05:23:16.000Z | 2022-03-24T09:29:13.000Z | src/oraft.ml | Cjen1/oraft | 590d658722102952d11f940c5661fb59103691a7 | [
"MIT"
] | 4 | 2018-10-08T13:04:35.000Z | 2018-11-13T00:37:24.000Z | src/oraft.ml | Cjen1/oraft | 590d658722102952d11f940c5661fb59103691a7 | [
"MIT"
] | 4 | 2015-03-20T06:31:05.000Z | 2020-05-02T14:51:44.000Z | module Map = BatMap
module List = BatList
module Option = BatOption
module Array = BatArray
module Kernel =
struct
type status = Leader | Follower | Candidate
type term = Int64.t
type index = Int64.t
type rep_id = string
type client_id = string
type req_id = client_id * Int64.t
ty... | 40.008936 | 88 | 0.53802 |
f375528211bc2cc188fb65185afcf02606108993 | 7,124 | ml | OCaml | debugger/4.10.0/breakpoints.ml | progman1/genprint-lib | acc1e5cc46b9ce6191d0306f51337581c93ffe94 | [
"MIT"
] | 20 | 2019-07-19T15:10:09.000Z | 2021-12-11T22:10:23.000Z | debugger/4.10.0/breakpoints.ml | progman1/genprint-lib | acc1e5cc46b9ce6191d0306f51337581c93ffe94 | [
"MIT"
] | null | null | null | debugger/4.10.0/breakpoints.ml | progman1/genprint-lib | acc1e5cc46b9ce6191d0306f51337581c93ffe94 | [
"MIT"
] | 2 | 2019-07-19T11:47:44.000Z | 2021-09-30T16:15:24.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 32.981481 | 77 | 0.576923 |
f34ac9209373487211cd8fd99669f6fe590cce4d | 8,007 | ml | OCaml | data/derived/comb/progs/unify/prog8273.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/prog3483.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3483.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.338816 | 148 | 0.621456 |
f340131fa9d26f29b6464c2a50227824a8de0c20 | 19,200 | ml | OCaml | data/derived/comb/progs/unify/prog0799.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/prog0799.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0799.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 33.103448 | 208 | 0.648698 |
f3e21276f82e321a665e4f13e1913edd11a5b9cf | 180 | ml | OCaml | data/derived/comb/progs/unify/prog1860.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/prog1860.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1860.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = h ^ (sep ^ a) in
let base = "" in let l = sepConcat sep t in List.fold_left f base l;;
| 22.5 | 75 | 0.516667 |
f3b2bebe1d6b138749c8103f01a72a4b2356e13d | 36,476 | ml | OCaml | src/ocaml_402/typing/typetexp.ml | haselwarter/merlin | 9d05bd20ff4d4ca3070e3c7a48f0755edc63f65f | [
"MIT"
] | 1 | 2021-03-12T10:45:56.000Z | 2021-03-12T10:45:56.000Z | src/ocaml_402/typing/typetexp.ml | haselwarter/merlin | 9d05bd20ff4d4ca3070e3c7a48f0755edc63f65f | [
"MIT"
] | null | null | null | src/ocaml_402/typing/typetexp.ml | haselwarter/merlin | 9d05bd20ff4d4ca3070e3c7a48f0755edc63f65f | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 35.831041 | 80 | 0.595076 |
d2e5c889a1288f2fd0ec2d497396e3e55e6a6ff5 | 1,248 | mli | OCaml | promela.mli | conchon/flax | abaa3e984bc8cb280f344031d834837c4bedbc21 | [
"Apache-2.0"
] | null | null | null | promela.mli | conchon/flax | abaa3e984bc8cb280f344031d834837c4bedbc21 | [
"Apache-2.0"
] | null | null | null | promela.mli | conchon/flax | abaa3e984bc8cb280f344031d834837c4bedbc21 | [
"Apache-2.0"
] | null | null | null | (**************************************************************************)
(* *)
(* FLAX *)
(* *)
(* ... | 56.727273 | 76 | 0.145032 |
f3aab30ff7f502695e177b47fb612d28770d4d67 | 268 | ml | OCaml | test/nominal_variant/nominal_variant_user_fns.ml | dialohq/stork | dd25d1361a1c6c1a862fe43619b23a33f0ee8370 | [
"MIT"
] | 2 | 2021-07-13T09:33:40.000Z | 2021-07-15T17:44:00.000Z | test/nominal_variant/nominal_variant_user_fns.ml | dialohq/stork | dd25d1361a1c6c1a862fe43619b23a33f0ee8370 | [
"MIT"
] | 18 | 2021-06-22T09:10:44.000Z | 2021-09-01T16:43:42.000Z | test/nominal_variant/nominal_variant_user_fns.ml | dialohq/stork | dd25d1361a1c6c1a862fe43619b23a33f0ee8370 | [
"MIT"
] | 1 | 2021-07-16T09:56:48.000Z | 2021-07-16T09:56:48.000Z | module From_1_to_2 = struct
include Nominal_variant_upgrader_t.From_1_to_2
let convert_json converter (old : OldVersion.json) =
{ NewVersion.version = 123
; variant = converter.convert_variant converter old old.variant
; field2 = old.field1
}
end
| 26.8 | 67 | 0.742537 |
f34b098cc68d70c7103be73c5e0f3a39fc3cf74c | 12,491 | ml | OCaml | duniverse/patience_diff/src/plain_diff.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/patience_diff/src/plain_diff.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/patience_diff/src/plain_diff.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (* This files comes from camlp5 (ocaml_src/lib/diff.ml). *)
(*
* Copyright (c) 2007-2013, INRIA (Institut National de Recherches en
* Informatique et Automatique). All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following cond... | 34.988796 | 90 | 0.567288 |
f33d0b6cd015f47d62715bd961b17d4ec154eba7 | 1,414 | ml | OCaml | src/base/stats/owl_base_stats_dist_gamma.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | 508 | 2018-03-24T12:15:49.000Z | 2022-03-30T11:37:33.000Z | src/base/stats/owl_base_stats_dist_gamma.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | 344 | 2018-03-23T14:01:27.000Z | 2022-03-31T16:14:14.000Z | src/base/stats/owl_base_stats_dist_gamma.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>
*)
open Owl_base_stats_dist_exponential
open Owl_base_stats_dist_gaussian
let std_gamma_rvs ~shape =
let x = ref infinity in
if shape = 1.
then x := std_exponential_rvs ()
else if shape < 1.... | 26.185185 | 63 | 0.488685 |
d2e50ec9c55b458a6d3fc014f4156b85c69f3c59 | 7,768 | ml | OCaml | data/derived/comb/progs/unify/prog2827.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/prog2827.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2827.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 24.817891 | 148 | 0.634398 |
f3bce1aed3ed55d23d8c3711419c0a230484c456 | 4,171 | ml | OCaml | infer/src/base/SqliteUtils.ml | asadrockk1234/infer | 06489dced05bd0e7d19015c0375721885d6f2c1c | [
"MIT"
] | 1 | 2020-08-28T14:00:56.000Z | 2020-08-28T14:00:56.000Z | infer/src/base/SqliteUtils.ml | asadrockk1234/infer | 06489dced05bd0e7d19015c0375721885d6f2c1c | [
"MIT"
] | null | null | null | infer/src/base/SqliteUtils.ml | 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
module L = Logging
exception Error of string
let error fmt = Format.kasprintf (fun err -> raise (Error err)) fmt
let c... | 29.373239 | 140 | 0.669384 |
f3ec288af20ab8ca290001c286fd53151782745b | 2,804 | ml | OCaml | duniverse/base/test/test_uchar.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/base/test/test_uchar.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/base/test/test_uchar.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | open! Import
let min_int = Int.min_value
let max_int = Int.max_value
let raises f v = Exn.does_raise (fun () -> f v)
let%test_module "test_constants" =
(module struct
let%test _ = Uchar.(to_scalar min_value) = 0x0000
let%test _ = Uchar.(to_scalar max_value) = 0x10FFFF
end)
let%test_module "test_succ_exn... | 34.195122 | 77 | 0.703638 |
f33633ea963e520bb69db902c053f0edad493689 | 1,517 | ml | OCaml | 2020/lattice/dir_intf.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | 2 | 2022-01-04T23:09:54.000Z | 2022-01-26T08:57:20.000Z | 2020/lattice/dir_intf.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | null | null | null | 2020/lattice/dir_intf.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | null | null | null | open! Core
open! Import
type nesw =
[ `N
| `E
| `S
| `W
]
[@@deriving sexp_of]
type diag =
[ `NE
| `SE
| `SW
| `NW
]
[@@deriving sexp_of]
module type S = sig
(** Represents a compass direction. *)
type _ t [@@deriving sexp_of]
(** Represents a single grid square movement. Might be diagona... | 19.701299 | 79 | 0.588003 |
f399aa53cfa9c7e2307ba48ba75aea28f9978bc0 | 4,150 | ml | OCaml | src/common/utils/__tests__/unionFind_test.ml | kof/flow | 39cb6bd32f0ce1d1258f0a582dc3b9844135713f | [
"MIT"
] | null | null | null | src/common/utils/__tests__/unionFind_test.ml | kof/flow | 39cb6bd32f0ce1d1258f0a582dc3b9844135713f | [
"MIT"
] | null | null | null | src/common/utils/__tests__/unionFind_test.ml | kof/flow | 39cb6bd32f0ce1d1258f0a582dc3b9844135713f | [
"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
let assert_same_elements ~ctxt lst1 lst2 =
let sort = List.fast_sort (fun x y -> x - y) in
assert_equal ~ctxt (so... | 35.775862 | 87 | 0.566024 |
f3e33849305fca2071d6da405a1b54e4af5b17a8 | 2,162 | ml | OCaml | hphp/hack/test/utils/telemetry/telemetry_test_utils.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-05-15T22:07:24.000Z | 2021-05-15T22:07:24.000Z | hphp/hack/test/utils/telemetry/telemetry_test_utils.ml | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2020-10-11T22:54:12.000Z | 2021-07-20T22:12:10.000Z | hphp/hack/test/utils/telemetry/telemetry_test_utils.ml | 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.
*
*)
let telemetry_to_multiline (telemetry : Telemetry.t) : string =
telemetry |> Telemetry.to_json |> Hh_json.json_to_multiline
... | 34.870968 | 80 | 0.629972 |
f333cefb6af22762f9596384fe8953928d9c76dc | 1,125 | ml | OCaml | data/derived/comb/progs/unify/prog6615.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/prog1783.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1783.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n =
match n with | n when n <= 0 -> [] | _ -> x :: (clone x (n - 1));;
let padZero l1 l2 =
let x = List.length l1 in
let y = List.length l2 in
if x > y
then let z = x - y in (l1, ((clone 0 z) @ l2))
else (let z = y - x in (((clone 0 z) @ l1), l2));;
let rec removeZero l =
match l with
... | 29.605263 | 78 | 0.512889 |
f393bd27dacccd5f1065250705df7583d4041e28 | 1,583 | mll | OCaml | src/AutLexer.mll | IdaTucker/BMC | 6ec1abb17bd047bb4af67d6ce2c7112ad3cf6e1c | [
"0BSD"
] | 3 | 2016-02-04T10:09:14.000Z | 2019-07-16T14:39:40.000Z | src/AutLexer.mll | IdaTucker/BMC | 6ec1abb17bd047bb4af67d6ce2c7112ad3cf6e1c | [
"0BSD"
] | null | null | null | src/AutLexer.mll | IdaTucker/BMC | 6ec1abb17bd047bb4af67d6ce2c7112ad3cf6e1c | [
"0BSD"
] | null | null | null | (* $Id: AutLexer.mll 3251 2015-10-29 15:56:15Z sutre $ *)
{
open AutParser
exception Error
}
let digit = ['0'-'9']
let alphanum = ['a'-'z' 'A'-'Z' '0'-'9' '\'' '_']
rule token = parse
(* Ignore spaces, tabs and carriage returns. *)
| [' ' '\t' '\r'] { token lexbuf }
(* Ignore comments. *)
| '#' ([^'\... | 28.781818 | 65 | 0.353759 |
f305e97572dfcd44eb540135680d650a109edf1f | 198,895 | ml | OCaml | hphp/hack/src/client/clientLsp.ml | Wilfred/hhvm | 87cea12a34ec7edb94111be6bfb9458aac7b1997 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-02-10T10:48:39.000Z | 2022-02-10T10:48:39.000Z | hphp/hack/src/client/clientLsp.ml | Wilfred/hhvm | 87cea12a34ec7edb94111be6bfb9458aac7b1997 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientLsp.ml | Wilfred/hhvm | 87cea12a34ec7edb94111be6bfb9458aac7b1997 | [
"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 Lsp
open Lsp_fmt
open Hh_json_helpers
(* All hack-specific code relating to LSP goes in here. ... | 38.285852 | 116 | 0.673129 |
f313e70e129b6717fbdd09e76138729c0bbd29c1 | 23,678 | ml | OCaml | hphp/hack/src/typing/typing_utils.ml | leikahing/hhvm | 26617c88ca35c5e078c3aef12c061d7996925375 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_utils.ml | leikahing/hhvm | 26617c88ca35c5e078c3aef12c061d7996925375 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_utils.ml | leikahing/hhvm | 26617c88ca35c5e078c3aef12c061d7996925375 | [
"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
open Typing_env_types
module SN = Naming_special_names
module Reason = ... | 30.048223 | 88 | 0.646127 |
f365663be8ec20dd4d98f75e0ca770c55d8b4ac4 | 8,760 | ml | OCaml | src/lib/trust_system/trust_system.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | 2 | 2021-07-11T21:51:34.000Z | 2021-07-29T14:33:45.000Z | src/lib/trust_system/trust_system.ml | yusuftrl/mina | 42bbe89e0e84366fd1673672750eb6041462e449 | [
"Apache-2.0"
] | 1 | 2021-03-06T14:52:32.000Z | 2021-03-06T14:52:32.000Z | src/lib/trust_system/trust_system.ml | obazl/mina | 0612b142738c68155e9a9bba16cd3787bba4feed | [
"Apache-2.0"
] | 3 | 2021-03-14T18:19:04.000Z | 2021-03-25T16:37:07.000Z | (** The trust system, instantiated with Coda-specific stuff. *)
open Core
open Async
module Actions = struct
type action =
| Incoming_connection_error
(** Connection error while peer connected to node. *)
| Outgoing_connection_error
(** Encountered connection error while connecting to a peer... | 43.8 | 163 | 0.666781 |
d2f1250d78b7cfa1abe3792091518a90e1697849 | 225 | ml | OCaml | data/derived/comb/progs/unify/prog4113.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/prog4113.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog4113.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec wwhile (f,b) =
match f b with | (num,b00l) -> if not b00l then num else wwhile (f, num);;
let fixpoint (f,b) = wwhile (f, b);;
let _ =
let g x = truncate (1e6 *. (cos (1e-6 *. (float x)))) in fixpoint (g, 0);;
| 25 | 76 | 0.564444 |
f399afc58f95d7a239e2dd14206939e0525cb141 | 5,478 | ml | OCaml | src/ocamldep.ml | janestreet/ocaml_plugin | addc0b5d63ea7e3470507cb739db8ee366025e57 | [
"MIT"
] | 47 | 2015-02-14T19:39:20.000Z | 2022-01-19T08:33:26.000Z | src/ocamldep.ml | janestreet/ocaml_plugin | addc0b5d63ea7e3470507cb739db8ee366025e57 | [
"MIT"
] | 4 | 2016-03-11T12:37:52.000Z | 2018-04-18T16:39:37.000Z | src/ocamldep.ml | janestreet/ocaml_plugin | addc0b5d63ea7e3470507cb739db8ee366025e57 | [
"MIT"
] | 5 | 2016-05-19T16:36:54.000Z | 2021-12-17T02:50:56.000Z | open! Core
open! Async
let fold_result ~f ~init:acc =
let rec aux acc = function
| [] -> Or_error.return acc
| hd :: tl -> Or_error.bind (f acc hd) ~f:(fun acc -> aux acc tl)
in
aux acc
;;
(* extract all dependencies from ocamldep output for one compilation unit *)
let post_process ~target lines : Strin... | 30.949153 | 91 | 0.585433 |
f3f53faeb1f638c6f6b7001890501cc6f1572282 | 793 | mli | OCaml | bin/tc.mli | mariojppereira/gospel | da93ff37b69fb0b0759c4a096b691e583fea0144 | [
"MIT"
] | null | null | null | bin/tc.mli | mariojppereira/gospel | da93ff37b69fb0b0759c4a096b691e583fea0144 | [
"MIT"
] | 17 | 2021-10-14T12:07:31.000Z | 2022-03-28T22:14:31.000Z | bin/tc.mli | mariojppereira/gospel | da93ff37b69fb0b0759c4a096b691e583fea0144 | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* GOSPEL -- A Specification Language for OCaml *)
(* *)
(* Copyrigh... | 56.642857 | 76 | 0.274905 |
f359a2445662727a706ddac3af422468dfe1164d | 1,182 | mli | OCaml | src/ocaml-3.12.0/ocamldoc/odoc_text.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2015-01-27T00:11:26.000Z | 2015-01-27T00:11:26.000Z | src/ocaml-3.12.0/ocamldoc/odoc_text.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/ocamldoc/odoc_text.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | (***********************************************************************)
(* OCamldoc *)
(* *)
(* Maxence Guesdon, projet Cristal, INRIA Rocquencourt *)
(* ... | 47.28 | 85 | 0.422166 |
f3f2578aae14fed074c9c25ec74cdce6b815a17c | 411 | ml | OCaml | benchmarks/C/nat/sol195.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/nat/sol195.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/nat/sol195.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | (* problem 2 *)
type nat = ZERO | SUCC of nat
let rec natadd : nat -> nat -> nat = fun n1 n2 ->
match n1 with
| ZERO -> n2
| SUCC n -> SUCC (natadd n n2)
let rec natmul : nat -> nat -> nat = fun n1 n2 ->
match n1 with
| ZERO -> ZERO
| SUCC n -> natadd n2 (natmul n n2)
let rec natexp : nat -> nat -> nat ... | 22.833333 | 49 | 0.56691 |
f36244aae71e8b1807371b1f95cfa911c43247ed | 287 | ml | OCaml | day07/int16.ml | fsouza/aoc-2015 | 095bc118e898d3ca7ebc1161ae1ef97279c6baf5 | [
"0BSD"
] | null | null | null | day07/int16.ml | fsouza/aoc-2015 | 095bc118e898d3ca7ebc1161ae1ef97279c6baf5 | [
"0BSD"
] | 1 | 2021-12-02T17:47:04.000Z | 2021-12-10T01:57:50.000Z | day07/int16.ml | fsouza/aoc-2015 | 095bc118e898d3ca7ebc1161ae1ef97279c6baf5 | [
"0BSD"
] | null | null | null | type t = int
let of_int v = v land 0xffff
let of_string v = v |> int_of_string |> of_int
let to_string = string_of_int
let b_and x y = x land y |> of_int
let b_or x y = x lor y |> of_int
let lshift x y = x lsl y |> of_int
let rshift x y = x lsr y |> of_int
let not x = lnot x |> of_int
| 26.090909 | 46 | 0.665505 |
f3e3af634889c4d56a5d65fc524a1a511fa9892f | 1,819 | mli | OCaml | CodeHawk/CHB/bchanalyze/bCHInterrupt.mli | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 17 | 2020-08-17T15:35:57.000Z | 2022-03-23T14:40:19.000Z | CodeHawk/CHB/bchanalyze/bCHInterrupt.mli | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 6 | 2020-07-17T05:43:51.000Z | 2021-01-06T03:41:46.000Z | CodeHawk/CHB/bchanalyze/bCHInterrupt.mli | sipma/codehawk | e4eeb41fdea6a8467d1892b9467ec54ef04953b0 | [
"MIT"
] | 3 | 2020-08-13T23:18:39.000Z | 2021-12-11T11:10:06.000Z | (* =============================================================================
CodeHawk Binary Analyzer
Author: Henny Sipma
------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2005-2019 Kestrel Technology LLC
Permission is hereby gra... | 38.702128 | 83 | 0.66575 |
f392fe002b66ac07c46679cda220b41ff6a6efae | 2,280 | mli | OCaml | ocaml-sources/ocamltest/ocaml_actions.mli | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | ocaml-sources/ocamltest/ocaml_actions.mli | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | ocaml-sources/ocamltest/ocaml_actions.mli | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 39.310345 | 76 | 0.548246 |
f341d4c520fe8b85456ab6857828a43caf01ce06 | 2,872 | mli | OCaml | lib_sexp/yaml_sexp.mli | jonahbeckford/ocaml-yaml | 342aa9c83d787df6574188bb6812bcb903c6e7b1 | [
"ISC"
] | 74 | 2017-08-07T14:48:46.000Z | 2022-03-24T16:56:57.000Z | lib_sexp/yaml_sexp.mli | jonahbeckford/ocaml-yaml | 342aa9c83d787df6574188bb6812bcb903c6e7b1 | [
"ISC"
] | 42 | 2017-11-17T18:10:14.000Z | 2022-03-27T10:54:35.000Z | lib_sexp/yaml_sexp.mli | jonahbeckford/ocaml-yaml | 342aa9c83d787df6574188bb6812bcb903c6e7b1 | [
"ISC"
] | 32 | 2017-11-17T17:28:33.000Z | 2022-03-12T01:55:42.000Z | (* Copyright (c) 2017 Anil Madhavapeddy <anil@recoil.org>
* Copyright (c) 2021 Alan J Hu <alanh@ccs.neu.edu>
*
* 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... | 26.348624 | 95 | 0.65007 |
f3d1864e2ef6369028e33bc7d527b468ea60bc7e | 2,516 | ml | OCaml | src/lib/transition_frontier_persistence/transition_database_schema.ml | johnwu93/coda | 7423f8d943faed91c4372012be3af57b2a7fafb3 | [
"Apache-2.0"
] | null | null | null | src/lib/transition_frontier_persistence/transition_database_schema.ml | johnwu93/coda | 7423f8d943faed91c4372012be3af57b2a7fafb3 | [
"Apache-2.0"
] | null | null | null | src/lib/transition_frontier_persistence/transition_database_schema.ml | johnwu93/coda | 7423f8d943faed91c4372012be3af57b2a7fafb3 | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Coda_base
module Make (Inputs : Transition_frontier.Inputs_intf) :
Intf.Transition_database_schema
with type external_transition := Inputs.External_transition.t
and type scan_state := Inputs.Staged_ledger.Scan_state.t
and type state_hash := State_hash.t
and type pending_coinbases := ... | 33.546667 | 82 | 0.63275 |
f3db80bd10b9d1d088583d9a687f4b9883fd3af0 | 11,144 | ml | OCaml | infer/src/backend/propgraph.ml | ryoon/infer | 7b8dc59386529801f9a7fb67ead94053dbf53b42 | [
"BSD-3-Clause"
] | null | null | null | infer/src/backend/propgraph.ml | ryoon/infer | 7b8dc59386529801f9a7fb67ead94053dbf53b42 | [
"BSD-3-Clause"
] | null | null | null | infer/src/backend/propgraph.ml | ryoon/infer | 7b8dc59386529801f9a7fb67ead94053dbf53b42 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2009 - 2013 Monoidics ltd.
* Copyright (c) 2013 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS... | 43.874016 | 134 | 0.659368 |
f3de8e4f451a74a97f62b02d79cda47053ca83bc | 52,177 | ml | OCaml | analysis/test/unannotatedGlobalEnvironmentTest.ml | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"MIT"
] | null | null | null | analysis/test/unannotatedGlobalEnvironmentTest.ml | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"MIT"
] | null | null | null | analysis/test/unannotatedGlobalEnvironmentTest.ml | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"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 Pyre
open Test
let location (start_line, start_column) (stop_line, stop_column) =
{
... | 29.764404 | 101 | 0.46762 |
f3fd085e80323933309fcb4a251c21e024d1c6d0 | 5,634 | mli | OCaml | src/core/Precedence.mli | dillonhuff/zipperposition | 698ab26a214d1acd059934269424e264ced183bf | [
"BSD-2-Clause"
] | null | null | null | src/core/Precedence.mli | dillonhuff/zipperposition | 698ab26a214d1acd059934269424e264ced183bf | [
"BSD-2-Clause"
] | null | null | null | src/core/Precedence.mli | dillonhuff/zipperposition | 698ab26a214d1acd059934269424e264ced183bf | [
"BSD-2-Clause"
] | null | null | null |
(* This file is free software, part of Zipperposition. See file "license" for more details. *)
(** {1 Precedence (total ordering) on symbols} *)
type symbol_status =
| Multiset
| Lexicographic
| LengthLexicographic
(** {2 Weight of Symbols} *)
module Weight : sig
type t
val int : int -> t
val zero : t
... | 31.830508 | 125 | 0.658679 |
d2f73f53d4e77ffe5d8e4b2a6c4c01399d8d54bf | 4,820 | mll | OCaml | wisl/lib/ParserAndCompiler/WLexer.mll | raduml97/Gillian | 10b9d80b0edecdd9d52f7711993dc208084f13e1 | [
"MIT"
] | 1 | 2020-05-30T11:39:31.000Z | 2020-05-30T11:39:31.000Z | wisl/lib/ParserAndCompiler/WLexer.mll | alexismarinoiu/Gillian | cf14a9b992d75194db38b90ef41222e6c7253c89 | [
"MIT"
] | null | null | null | wisl/lib/ParserAndCompiler/WLexer.mll | alexismarinoiu/Gillian | cf14a9b992d75194db38b90ef41222e6c7253c89 | [
"MIT"
] | null | null | null | {
open Lexing
open CodeLoc
open WParser
exception SyntaxError of string
let l_start_string = ref CodeLoc.dummy
}
let digit = ['0'-'9']
let letter = ['a'-'z''A'-'Z']
let gvars = "gvar_" digit+ (* generated variables during compilation *)
let identifier = letter(letter|digit|'_')*
let lvar = '#' (letter|digi... | 33.943662 | 127 | 0.515145 |
f3fb8aca38e42483cf602c660dbbf3ca8e17304b | 1,937 | mli | OCaml | hphp/hack/src/parser/full_fidelity_ast.mli | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2016-10-08T12:13:09.000Z | 2016-10-08T12:13:09.000Z | hphp/hack/src/parser/full_fidelity_ast.mli | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_ast.mli | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
module Source... | 26.534247 | 96 | 0.699019 |
f3d1b1e6f5c80f6cce75867f28f1f5b95ac601e5 | 10,387 | ml | OCaml | src/lib_shell_benchmarks/io_helpers.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | src/lib_shell_benchmarks/io_helpers.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | src/lib_shell_benchmarks/io_helpers.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020-2021 Nomadic Labs. <contact@nomadic-labs.com> *)
... | 31.475758 | 93 | 0.596515 |
d2f50913699a4653ff9ef36a75ea63ba02f0a772 | 34,247 | mli | OCaml | hphp/hack/src/errors/errors.mli | HybridDeveloper/hhvm | 24075cab40d2d51a50093d8656d81b9157868851 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/errors/errors.mli | HybridDeveloper/hhvm | 24075cab40d2d51a50093d8656d81b9157868851 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/errors/errors.mli | HybridDeveloper/hhvm | 24075cab40d2d51a50093d8656d81b9157868851 | [
"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 'a error_
type error = Pos.t error_ [@@deriving eq]
type applied_fixme = Pos.t * int
module type Error_categ... | 26.063166 | 81 | 0.70812 |
f38aaa02d6f738d3741c97ceada4f4436399b835 | 9,241 | ml | OCaml | src/ttypes.ml | mariojppereira/gospel | da93ff37b69fb0b0759c4a096b691e583fea0144 | [
"MIT"
] | null | null | null | src/ttypes.ml | mariojppereira/gospel | da93ff37b69fb0b0759c4a096b691e583fea0144 | [
"MIT"
] | 17 | 2021-10-14T12:07:31.000Z | 2022-03-28T22:14:31.000Z | src/ttypes.ml | mariojppereira/gospel | da93ff37b69fb0b0759c4a096b691e583fea0144 | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* GOSPEL -- A Specification Language for OCaml *)
(* *)
(* Copyrigh... | 30.599338 | 79 | 0.62082 |
f36fb22902062b3c9af412ef883074cd9c5bb825 | 2,860 | ml | OCaml | test/passing/types.ml | yawaramin/ocamlformat | 18af809db00558c995d528c65d60efd3fee83f42 | [
"MIT"
] | null | null | null | test/passing/types.ml | yawaramin/ocamlformat | 18af809db00558c995d528c65d60efd3fee83f42 | [
"MIT"
] | null | null | null | test/passing/types.ml | yawaramin/ocamlformat | 18af809db00558c995d528c65d60efd3fee83f42 | [
"MIT"
] | null | null | null | type uu = A of int | B of (< leq: 'a > as 'a)
type uu = A of int | B of (< leq: 'a > as 'a) * 'a
type uu = A of (int as 'a) | B of 'a * (< leq: 'a > as 'a)
type uu += A of (int as 'a)
type uu += B of 'a * (< leq: 'a > as 'a)
let _ = ignore Async_unix.Fd.(([stdin (); stdout (); stderr ()] : t list))
type t = {a: i... | 24.655172 | 76 | 0.622028 |
d2eee4949843a21639d2c9ba2d792470986fd43b | 2,466 | ml | OCaml | hphp/hack/src/dfind/dfindServer.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/dfind/dfindServer.ml | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/dfind/dfindServer.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.
*
*)
(***********... | 32.88 | 80 | 0.590835 |
f33c617c2d63bce32e460ef2f24da5c25e24a474 | 2,597 | ml | OCaml | server/cqrsLib/setView.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | 5 | 2015-01-30T06:16:32.000Z | 2020-04-14T09:08:49.000Z | server/cqrsLib/setView.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | server/cqrsLib/setView.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | (* © 2014 RunOrg *)
open Std
open Common
type 'key t = {
pack : 'key Pack.packer ;
upack : 'key Pack.unpacker ;
name : string ;
wait : (ctx,unit) Run.t ;
dbname : (ctx,string) Run.t
}
(* Creating a new set
================== *)
let make (type k) projection name version key =
let module Key = (... | 27.052083 | 98 | 0.533693 |
f30d4e823415990464c6025cc352dd6a6e56b785 | 60,336 | ml | OCaml | src/typing/type_mapper.ml | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"MIT"
] | 1 | 2021-03-12T10:46:28.000Z | 2021-03-12T10:46:28.000Z | src/typing/type_mapper.ml | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"MIT"
] | null | null | null | src/typing/type_mapper.ml | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"MIT"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Type
let maybe_known f x =
let open React.CreateClass in
begin match x with
| Known x' ->
let x'' = f x' in
... | 39.878387 | 106 | 0.581112 |
f32d51158c5ae14ff827868201910728a42cda6b | 2,415 | ml | OCaml | src/day_3.ml | MancaStrah/Advent_of_code | c7f16f25b2146016f0a07f8a011715a6ba8c8cb1 | [
"MIT"
] | null | null | null | src/day_3.ml | MancaStrah/Advent_of_code | c7f16f25b2146016f0a07f8a011715a6ba8c8cb1 | [
"MIT"
] | null | null | null | src/day_3.ml | MancaStrah/Advent_of_code | c7f16f25b2146016f0a07f8a011715a6ba8c8cb1 | [
"MIT"
] | null | null | null | let dan = "3"
let data_to_list vsebina_datoteke =
let lines = String.split_on_char '\n' vsebina_datoteke in
lines
let check_line char line i len =
let index = i mod len in
line.[index] = char
let naloga1 vsebina_datoteke =
let lines = data_to_list vsebina_datoteke in
let rec aux count char lines i =
... | 28.75 | 77 | 0.65176 |
f344d7ca1228db66383c5a7cd43e8e550a6ed90a | 2,950 | ml | OCaml | hphp/hack/src/decl/decl_service.ml | MaxSem/hhvm | 8e8544c324e0157404374cf313a237bfa70b35d4 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/decl_service.ml | MaxSem/hhvm | 8e8544c324e0157404374cf313a237bfa70b35d4 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/decl_service.ml | MaxSem/hhvm | 8e8544c324e0157404374cf313a237bfa70b35d4 | [
"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.
*
*)
(***********... | 34.302326 | 80 | 0.475254 |
f3b59eb75adc9afe30ee603751fd312aff40b1ae | 10,451 | ml | OCaml | src/server/server.ml | disnet/flow | f916c6d4300220fda951d123b85b8f05a75a3427 | [
"MIT"
] | null | null | null | src/server/server.ml | disnet/flow | f916c6d4300220fda951d123b85b8f05a75a3427 | [
"MIT"
] | null | null | null | src/server/server.ml | disnet/flow | f916c6d4300220fda951d123b85b8f05a75a3427 | [
"MIT"
] | 2 | 2021-02-02T14:51:26.000Z | 2021-02-02T14:52:05.000Z | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open ServerEnv
let sample_init_memory profiling =
let open SharedMem_js in
let dep_stats = dep_stats () in
let hash_stats = hash_... | 37.060284 | 106 | 0.718783 |
f3b288d55c65a0b287c2c7179d25d0696300c4b9 | 5,045 | ml | OCaml | vendor/sexplib/test/test_bigarray_grammars.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/sexplib/test/test_bigarray_grammars.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/sexplib/test/test_bigarray_grammars.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open! Base
open! Expect_test_helpers_core
open Sexplib
module Generator = Base_quickcheck.Generator
let test m =
Sexp_grammar_validation.validate_grammar m
|> Base.Result.iter_error ~f:(fun error ->
print_cr [%here] [%message (error : Error.t)])
;;
module Test = struct
include Sexplib0.Sexp_conv
type mat... | 32.973856 | 81 | 0.767294 |
f3e9ebfcf6c04002365f2331d3f01f4d9a2e1ed2 | 1,870 | ml | OCaml | src/ocaml/BasisImpl.ml | k4rtik/ynot | 4d646436b3d2ac3413ae4e3c3d9227e8a8bb8ad1 | [
"BSD-3-Clause"
] | 19 | 2015-01-27T04:54:43.000Z | 2021-10-09T05:05:40.000Z | src/ocaml/BasisImpl.ml | k4rtik/ynot | 4d646436b3d2ac3413ae4e3c3d9227e8a8bb8ad1 | [
"BSD-3-Clause"
] | null | null | null | src/ocaml/BasisImpl.ml | k4rtik/ynot | 4d646436b3d2ac3413ae4e3c3d9227e8a8bb8ad1 | [
"BSD-3-Clause"
] | 1 | 2020-03-02T13:31:30.000Z | 2020-03-02T13:31:30.000Z | (* Copyright (c) 2009, Harvard University
* All rights reserved.
*
* Authors: Gregory Malecha, Ryan Wisnesky
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the a... | 50.540541 | 82 | 0.763636 |
d2f296aead650f550811ae92bec40fde779b7c63 | 215 | mli | OCaml | libraries/ec2/lib/deleteFleets.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/deleteFleets.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/ec2/lib/deleteFleets.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = DeleteFleetsRequest.t
type output = DeleteFleetsResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 30.714286 | 74 | 0.744186 |
f35535cf0887b58d01fd7982156bdfa6a8f0b5a1 | 658 | ml | OCaml | examples/cursor.ml | ytomino/terminal-ocaml | e04d48851ed93a970dd4db5ce244dea82ec44a02 | [
"FSFAP"
] | 6 | 2015-03-23T08:17:34.000Z | 2021-07-26T01:19:47.000Z | examples/cursor.ml | ytomino/terminal-ocaml | e04d48851ed93a970dd4db5ce244dea82ec44a02 | [
"FSFAP"
] | null | null | null | examples/cursor.ml | ytomino/terminal-ocaml | e04d48851ed93a970dd4db5ce244dea82ec44a02 | [
"FSFAP"
] | null | null | null | (* Terminal.clear_screen stdout ();; *)
print_string "1234567890";;
Terminal.move_to_bol stdout ();;
Terminal.move stdout 5 0;;
Terminal.clear_eol stdout ();;
print_newline ();;
for i = 1 to 5 do
print_newline ()
done;;
Terminal.move stdout 0 (-5);;
print_string "A";;
Terminal.move stdout 3 0;;
print_string "B";;
Te... | 19.939394 | 52 | 0.670213 |
d2f7da08c9ee10eed9f265c101af283a320a3d50 | 2,984 | ml | OCaml | src/proto_alpha/bin_sc_rollup_client/main_sc_rollup_client_alpha.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_alpha/bin_sc_rollup_client/main_sc_rollup_client_alpha.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_alpha/bin_sc_rollup_client/main_sc_rollup_client_alpha.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2022 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 51.448276 | 79 | 0.533177 |
f30e627e223657be2ea99cf56245973a8fc78c94 | 23,228 | ml | OCaml | src/catala/parsing/parser_errors.ml | risseraka/catala | 0f4655be5d6c51b4534ca3bd37f8a8381410aa97 | [
"Apache-2.0"
] | null | null | null | src/catala/parsing/parser_errors.ml | risseraka/catala | 0f4655be5d6c51b4534ca3bd37f8a8381410aa97 | [
"Apache-2.0"
] | null | null | null | src/catala/parsing/parser_errors.ml | risseraka/catala | 0f4655be5d6c51b4534ca3bd37f8a8381410aa97 | [
"Apache-2.0"
] | null | null | null | (* This file was auto-generated based on "parser.messages". *)
(* Please note that the function [message] can raise [Not_found]. *)
let message s =
match s with
| 0 ->
"Unexpected token\n\
To get a better error messsage, file an issue at \
https://github.com/CatalaLang/catala/issues with this ... | 47.598361 | 100 | 0.663854 |
f3f802f189ac42de0619b91ec144060524f60c72 | 72 | ml | OCaml | src_test/ppx_types.ml | tomjridge/ppx_include | 33ae77199457cf7320bfe17e3c19cf73256b82c7 | [
"MIT"
] | null | null | null | src_test/ppx_types.ml | tomjridge/ppx_include | 33ae77199457cf7320bfe17e3c19cf73256b82c7 | [
"MIT"
] | null | null | null | src_test/ppx_types.ml | tomjridge/ppx_include | 33ae77199457cf7320bfe17e3c19cf73256b82c7 | [
"MIT"
] | 1 | 2019-04-30T08:14:22.000Z | 2019-04-30T08:14:22.000Z |
[%%include "ppx_types.inc"]
let dummy_loc = ("", (-1, -1), (-1, -1))
| 12 | 40 | 0.486111 |
f3edc72f9bef3d7a76a1d12a4f3bdc2546ea33d9 | 1,769 | mli | OCaml | libraries/ec2/lib/registerTransitGatewayMulticastGroupSources.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/ec2/lib/registerTransitGatewayMulticastGroupSources.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/registerTransitGatewayMulticastGroupSources.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<p>Registers sources (network interfaces) with the specified transit gateway multicast group.</p> <p>A multicast source is a network interface attached to a supported instance that sends multicast traffic. For information about supported instances, see <a href=\"https://docs.aws.amazon.com/vpc/latest/tgw/transit-g... | 58.966667 | 682 | 0.764839 |
f3e6866fce159ea87b3323fa49cdd50bda9b55b3 | 2,882 | mli | OCaml | lib/preface_stdlib/validate.mli | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 109 | 2021-04-08T18:41:14.000Z | 2022-03-26T10:28:45.000Z | lib/preface_stdlib/validate.mli | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 35 | 2021-04-10T06:28:02.000Z | 2022-01-31T10:43:36.000Z | lib/preface_stdlib/validate.mli | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 3 | 2021-05-07T21:53:35.000Z | 2021-08-28T12:28:12.000Z | (** Implementation for [Try.t]. *)
(** [Validate.t] is a biased version of [Validation] with the errors fixed as an
[Nonempty_list] of [exception]. *)
(** {1 Type} *)
type 'a t = ('a, exn Nonempty_list.t) Validation.t
(** {2 About Validate}
Validate is a specialisation of [Validation], so the module does n... | 30.336842 | 80 | 0.657529 |
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.