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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1766fe7b888e7b821e910bd6e1cb81aa7ca0735d | 15,262 | ml | OCaml | infer/src/pulse/PulseModelsObjC.ml | sujin0529/infer | f08a09d6896ac2a22081ead4830eb86c64af8813 | [
"MIT"
] | 1 | 2022-01-24T12:58:26.000Z | 2022-01-24T12:58:26.000Z | infer/src/pulse/PulseModelsObjC.ml | zhoudongxu/infer | e75ed04713d98a68e906b30ea60dd954ccdecb80 | [
"MIT"
] | null | null | null | infer/src/pulse/PulseModelsObjC.ml | zhoudongxu/infer | e75ed04713d98a68e906b30ea60dd954ccdecb80 | [
"MIT"
] | 2 | 2020-06-23T00:43:10.000Z | 2022-03-24T06:24:50.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 IRAttributes = Attributes
open PulseBasicInterface
open PulseOperations.Import
open PulseModelsImport
module Cor... | 47.84326 | 100 | 0.732866 |
aa9089110f885fa6c4aec33d2bfd842b01f6d12c | 138 | ml | OCaml | data/derived/comb/progs/unify/prog6910.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/prog2094.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2094.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let explode s =
let rec go i =
if i >= (String.length s) then [] else (s.[i]) :: (go (i + 1)) in
go 0;;
let _ = explode [123];;
| 17.25 | 69 | 0.5 |
aa9a586d93e3c34b1be02bbf1eaa0bfabb967d95 | 2,591 | ml | OCaml | src/proto_009_PsFLorBA/lib_client_commands/alpha_commands_registration.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/proto_009_PsFLorBA/lib_client_commands/alpha_commands_registration.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/proto_009_PsFLorBA/lib_client_commands/alpha_commands_registration.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 64.775 | 79 | 0.534929 |
aacb399e777116e29c974d532919258e78a6964a | 781 | mli | OCaml | lib/smyth/eval.mli | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 15 | 2020-08-27T10:51:14.000Z | 2021-12-24T08:17:28.000Z | lib/smyth/eval.mli | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 18 | 2020-06-28T18:13:20.000Z | 2021-03-12T16:18:05.000Z | lib/smyth/eval.mli | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 5 | 2021-02-23T16:22:25.000Z | 2022-01-24T18:36:45.000Z | (** Live evaluation and resumption, as defined in {b Figure 4} of the ICFP 2020
paper.
{b Figure 7} also defines "program evaluation"; that concept is simply
included in the definition of live evaluation here. *)
open Lang
type eval_result =
(res * resumption_assertions, string) result
(** The return t... | 35.5 | 79 | 0.704225 |
bc252de0e6b62fb3d6df2c7efe79f58662981ceb | 395 | ml | OCaml | src_test/test_deriving_iter.ml | vogler/ppx_deriving | 3eeacdfdd4c5de6cf162def9a55fabce496c394b | [
"MIT"
] | 1 | 2021-03-26T03:32:10.000Z | 2021-03-26T03:32:10.000Z | src_test/test_deriving_iter.ml | vogler/ppx_deriving | 3eeacdfdd4c5de6cf162def9a55fabce496c394b | [
"MIT"
] | null | null | null | src_test/test_deriving_iter.ml | vogler/ppx_deriving | 3eeacdfdd4c5de6cf162def9a55fabce496c394b | [
"MIT"
] | null | null | null | open OUnit2
type 'a btree = Node of 'a btree * 'a * 'a btree | Leaf
[@@deriving iter]
let test_btree ctxt =
let lst = ref [] in
iter_btree (fun x -> lst := x :: !lst)
(Node (Node (Leaf, 0, Leaf), 1, Node (Leaf, 2, Leaf)));
assert_equal [2;1;0] !lst
type 'a ty = 'a * int list
[@@deriving iter]
let... | 21.944444 | 68 | 0.567089 |
17766f1e9aa22f345657bd0c8044b5e11fb2bc8f | 346,800 | ml | OCaml | src/typing/statement.ml | amiralies/flow | 4391b355307f6f09b2c7d5c7dd3f7ebfcbbc0477 | [
"MIT"
] | null | null | null | src/typing/statement.ml | amiralies/flow | 4391b355307f6f09b2c7d5c7dd3f7ebfcbbc0477 | [
"MIT"
] | null | null | null | src/typing/statement.ml | amiralies/flow | 4391b355307f6f09b2c7d5c7dd3f7ebfcbbc0477 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast = Flow_ast
module Tast_utils = Typed_ast_utils
(* This module contains the traversal functions which set up subtyping
... | 40.857681 | 110 | 0.589262 |
bcd069413e05d771e8d341ca9375351c9f9b0d69 | 828 | ml | OCaml | hphp/hack/src/typing/coverage_level_defs.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-11-01T13:46:07.000Z | 2019-11-01T13:46:07.000Z | hphp/hack/src/typing/coverage_level_defs.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/coverage_level_defs.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"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 Reordered_argument_collections
module CLKey = struct
type t = Ide_api_types.coverage_level
let compare x y = Pervasi... | 18.818182 | 68 | 0.713768 |
aae6d2d9829fceef3e44b73d76713d8ffb8d0645 | 34,670 | ml | OCaml | src/Iter.ml | c-cube/sequence | a3b342636553460bfc74066a5efb694561cee947 | [
"BSD-2-Clause"
] | 43 | 2015-01-09T20:52:49.000Z | 2019-02-09T15:14:21.000Z | src/Iter.ml | c-cube/sequence | a3b342636553460bfc74066a5efb694561cee947 | [
"BSD-2-Clause"
] | 15 | 2015-01-04T20:45:23.000Z | 2019-03-07T16:05:13.000Z | src/Iter.ml | c-cube/sequence | a3b342636553460bfc74066a5efb694561cee947 | [
"BSD-2-Clause"
] | 6 | 2015-01-03T18:15:38.000Z | 2019-01-02T07:07:21.000Z |
(* This file is free software, part of iter. See file "license" for more details. *)
(** {1 Simple and Efficient Iterators} *)
open Iter_shims_
(** Iter abstract iterator type *)
type 'a t = ('a -> unit) -> unit
type 'a iter = 'a t
(*$inject
let pp_ilist = Q.Print.(list int)
*)
type 'a equal = 'a -> 'a -> bool... | 23.649386 | 104 | 0.560831 |
174bf27404ce3f2d0bba494c0bf27e8363be7e07 | 113,660 | ml | OCaml | infer/src/base/Config.ml | abhinavsinha001/infer | 2547a75b8b4089d315c9103a20108468808e3095 | [
"MIT"
] | null | null | null | infer/src/base/Config.ml | abhinavsinha001/infer | 2547a75b8b4089d315c9103a20108468808e3095 | [
"MIT"
] | null | null | null | infer/src/base/Config.ml | abhinavsinha001/infer | 2547a75b8b4089d315c9103a20108468808e3095 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* 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
(** Configuration values: either constant, determined at compile time, or se... | 34.726551 | 172 | 0.723183 |
aafb369004efc5ee288f57693268cd4e11a96bb9 | 7,884 | ml | OCaml | data/derived/comb/progs/unify/prog8209.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/prog3419.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3419.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 25.680782 | 148 | 0.64726 |
1765b8d11cc4683ebb25ee7b46d8769672b725b5 | 2,808 | mli | OCaml | bench/all/resultats/list_length/ml/platform.mli | lsylvestre/dsml | 0f55c8acdc2b959d866610e51bc45db306898231 | [
"CECILL-B"
] | null | null | null | bench/all/resultats/list_length/ml/platform.mli | lsylvestre/dsml | 0f55c8acdc2b959d866610e51bc45db306898231 | [
"CECILL-B"
] | null | null | null | bench/all/resultats/list_length/ml/platform.mli | lsylvestre/dsml | 0f55c8acdc2b959d866610e51bc45db306898231 | [
"CECILL-B"
] | null | null | null | val delay : int -> unit
val millis : unit -> int
module Serial : (* JTAG-UART *)
sig
external write_char : char -> unit = "caml_nios_serial_write_char" [@@noalloc]
val write_int : int -> unit
val write_string : string -> unit
(* external write_string : string -> unit = "caml_nios_serial_write_string"... | 36.947368 | 94 | 0.674145 |
aa85c0781696533517e0af09888fb52e5b366bb0 | 6,299 | ml | OCaml | src/lib_shell/chain.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_shell/chain.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_shell/chain.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 43.743056 | 93 | 0.627401 |
176b2e38a936ba8900cac4090fb43593a29b461f | 462 | ml | OCaml | lib/rets_lang.ml | RemuLang/remu-type-system | 5cd5ef8e51116056121ac59ef3b918ed81d3ffd2 | [
"Apache-2.0"
] | 12 | 2019-11-08T06:05:13.000Z | 2020-05-11T19:45:24.000Z | lib/rets_lang.ml | RemuLang/remu-type-system | 5cd5ef8e51116056121ac59ef3b918ed81d3ffd2 | [
"Apache-2.0"
] | null | null | null | lib/rets_lang.ml | RemuLang/remu-type-system | 5cd5ef8e51116056121ac59ef3b918ed81d3ffd2 | [
"Apache-2.0"
] | null | null | null | open Rets_parser
open Printf
open Lexing
let print_position outx lexbuf =
let pos = lexbuf.lex_curr_p in
fprintf outx "%s:%d:%d" pos.pos_fname
pos.pos_lnum (pos.pos_cnum - pos.pos_bol + 1)
let run_parser lexbuf =
try
prog Rets_lexer.read lexbuf
with
| Rets_lexer.SyntaxError msg ->
fprintf stderr... | 24.315789 | 62 | 0.690476 |
173cdc184eece38a1b77e72928147c1752828b2a | 1,125 | ml | OCaml | data/sp14/1609.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/1609.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/1609.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec wwhile (f,b) =
match f b with | (x,true ) -> wwhile (f, x) | (x,false ) -> x;;
let fixpoint (f,b) =
wwhile ((let (x,y) = f b in (x, ((x > b) || (x < b)))), b);;
(* fix
let rec wwhile (f,b) =
match f b with | (x,true ) -> wwhile (f, x) | (x,false ) -> x;;
let fixpoint (f,b) =
wwhile ((let a x = let... | 14.423077 | 65 | 0.438222 |
aaaa1078300329b08da487149c9acb97729715ad | 219 | mli | OCaml | core/src/ofday_float.mli | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 834 | 2015-01-02T03:14:35.000Z | 2022-03-28T05:17:24.000Z | core/src/ofday_float.mli | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 99 | 2015-01-03T09:30:25.000Z | 2022-02-23T02:40:57.000Z | core/src/ofday_float.mli | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 100 | 2015-02-01T10:54:19.000Z | 2022-03-15T18:23:22.000Z | open! Import
include Ofday_intf.S with type underlying = float and module Span := Span_float
module Stable : sig
module V1 : sig
type nonrec t = t [@@deriving bin_io, compare, hash, sexp, sexp_grammar]
end
end
| 24.333333 | 79 | 0.726027 |
175c18536739bd4fa1fc1de4fd808dbc801fd58f | 9,849 | ml | OCaml | src/ppx/polyvariants.ml | mattdamon108/ppx_spice | 82ef119e08372d78d5f1ad35f08abd54de37d03d | [
"MIT"
] | 3 | 2021-11-15T01:08:21.000Z | 2021-12-06T00:32:54.000Z | src/ppx/polyvariants.ml | mattdamon108/ppx_spice | 82ef119e08372d78d5f1ad35f08abd54de37d03d | [
"MIT"
] | null | null | null | src/ppx/polyvariants.ml | mattdamon108/ppx_spice | 82ef119e08372d78d5f1ad35f08abd54de37d03d | [
"MIT"
] | null | null | null | open Parsetree
open Ast_helper
open Utils
(* Polyvariants arguments are wrapped inside a Tuple, meaning that if there's only
one arg it's the coreType, but if there's more than one arg it's a tuple of one tuple with those args.
This function abstract this particuliarity from polyvariants (It's different from Var... | 33.729452 | 105 | 0.574678 |
171e865e5c8bbd1353265a01a9b3f932d2fc00f4 | 14,515 | ml | OCaml | src/lib/import.ml | oxheadalpha/tezos-contract-metadata | d57a103ba6b25be3a13a5417207b906a27fac055 | [
"MIT"
] | null | null | null | src/lib/import.ml | oxheadalpha/tezos-contract-metadata | d57a103ba6b25be3a13a5417207b906a27fac055 | [
"MIT"
] | 2 | 2021-11-03T21:48:39.000Z | 2022-02-04T17:25:46.000Z | src/lib/import.ml | oxheadalpha/tezos-contract-metadata | d57a103ba6b25be3a13a5417207b906a27fac055 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 TQ Tezos <contact@tqtezos.com> *)
... | 40.544693 | 80 | 0.510162 |
aa61bd07ce51b8710fc004aea8c0dc534218a09d | 30,239 | ml | OCaml | src/dune/install_rules.ml | anmonteiro/dune | 15c29c5772c469d9d4fa35abffd264bd5996bb31 | [
"MIT"
] | null | null | null | src/dune/install_rules.ml | anmonteiro/dune | 15c29c5772c469d9d4fa35abffd264bd5996bb31 | [
"MIT"
] | null | null | null | src/dune/install_rules.ml | anmonteiro/dune | 15c29c5772c469d9d4fa35abffd264bd5996bb31 | [
"MIT"
] | null | null | null | open! Stdune
open Import
open Build.O
open! No_io
module Library = Dune_file.Library
module Package_paths = struct
let opam_file (ctx : Context.t) pkg =
Path.Build.append_source ctx.build_dir (Package.opam_file pkg)
let meta_file (ctx : Context.t) pkg =
Path.Build.append_source ctx.build_dir (Package.meta... | 37.79875 | 81 | 0.59043 |
aa96fd1f254e4e85f88c8b2fc0c9579277c35db3 | 948 | ml | OCaml | src/sphere.ml | CianLR/ocaml-raytracer | 015e4b5cdb39273fbcf5948c9877f287437deb5d | [
"MIT"
] | 1 | 2020-12-10T01:57:47.000Z | 2020-12-10T01:57:47.000Z | src/sphere.ml | CianLR/ocaml-raytracer | 015e4b5cdb39273fbcf5948c9877f287437deb5d | [
"MIT"
] | null | null | null | src/sphere.ml | CianLR/ocaml-raytracer | 015e4b5cdb39273fbcf5948c9877f287437deb5d | [
"MIT"
] | null | null | null | open Vector
open Ray
class sphere' center radius = object (self)
val cen = center
val rad = radius
method private get_record r t =
let intersect = at r t in
let normal = (intersect -: cen) /: rad in
Hit_record.make r t intersect normal
method hit r t_min t_max =
let oc = (origin r) -: cen in
... | 26.333333 | 55 | 0.622363 |
aaa89658081d2a12171622b3aaf9bf9cf4c20c70 | 1,217 | ml | OCaml | src/jhupllib/jhupllib_nondeterminism.ml | JHU-PL-Lab/jhu-pl-lib | 571dd53f30b204224c87c66732306928e7382621 | [
"Apache-2.0"
] | 3 | 2020-08-24T16:29:40.000Z | 2020-08-24T18:18:58.000Z | src/jhupllib/jhupllib_nondeterminism.ml | JHU-PL-Lab/jhu-pl-lib | 571dd53f30b204224c87c66732306928e7382621 | [
"Apache-2.0"
] | null | null | null | src/jhupllib/jhupllib_nondeterminism.ml | JHU-PL-Lab/jhu-pl-lib | 571dd53f30b204224c87c66732306928e7382621 | [
"Apache-2.0"
] | null | null | null | (**
This module contains a non-determinism monad.
*)
module Enum = Batteries.Enum;;
module type Nondeterminism_monad_sig = sig
type 'a m
include Monad.LazyPlus with type 'a m := 'a m
include Jhupllib_monad_utils.Utils with type 'a m := 'a m
val pick_enum : 'a Enum.t -> 'a m
val enum : 'a m -> 'a Enum.t
... | 27.044444 | 73 | 0.668036 |
aac513bcddf6052fbb3987ba7081ec92f579af97 | 31 | ml | OCaml | tests/resolve/modules/basic.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | 1 | 2021-11-23T13:07:37.000Z | 2021-11-23T13:07:37.000Z | tests/resolve/modules/basic.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | tests/resolve/modules/basic.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | let x = ()
let private y = ()
| 7.75 | 18 | 0.483871 |
aa85cda21d3447e5d00f87e119e5ee4fb69803ef | 8,647 | ml | OCaml | infer/src/nullsafe/NullsafeMode.ml | octomarat/infer | aa6fe7963cdb6b842adcf7241f5383c30cb1a835 | [
"MIT"
] | null | null | null | infer/src/nullsafe/NullsafeMode.ml | octomarat/infer | aa6fe7963cdb6b842adcf7241f5383c30cb1a835 | [
"MIT"
] | 8 | 2021-05-12T00:06:23.000Z | 2022-02-27T11:21:00.000Z | infer/src/nullsafe/NullsafeMode.ml | octomarat/infer | aa6fe7963cdb6b842adcf7241f5383c30cb1a835 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
module Trust = struct
type trust_list = JavaClassName.Set.t [@@deriving compare, equal]
type t =... | 34.043307 | 127 | 0.676188 |
bcf699fac4a2f55edad0362ac7f5747b2e4c59fe | 1,321 | mli | OCaml | eval/sherrloc/easyocaml++/parsing/printast.mli | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/sherrloc/easyocaml++/parsing/printast.mli | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/sherrloc/easyocaml++/parsing/printast.mli | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Damien Do... | 50.807692 | 73 | 0.422407 |
1738c712c0fa7557540d828aee915f780a945db7 | 63 | mli | OCaml | lib/docker.mli | MisterDA/obuilder | ea78b3544c11d8830f7d236b360728c9be8c2fa8 | [
"Apache-2.0"
] | 25 | 2020-09-16T01:38:02.000Z | 2022-03-18T10:08:33.000Z | lib/docker.mli | MisterDA/obuilder | ea78b3544c11d8830f7d236b360728c9be8c2fa8 | [
"Apache-2.0"
] | 36 | 2020-10-05T09:52:45.000Z | 2022-02-08T10:19:11.000Z | lib/docker.mli | MisterDA/obuilder | ea78b3544c11d8830f7d236b360728c9be8c2fa8 | [
"Apache-2.0"
] | 9 | 2020-09-16T09:47:58.000Z | 2021-12-21T09:30:11.000Z | (** Fetching of base images using Docker *)
include S.FETCHER
| 15.75 | 43 | 0.730159 |
1760d41663db65e387110edfabd4d92bb7d9c55f | 1,537 | ml | OCaml | src/coq_module.ml | sinancepel/dune | 4c659dce13f982736a24952bd29172b4c21440c4 | [
"MIT"
] | null | null | null | src/coq_module.ml | sinancepel/dune | 4c659dce13f982736a24952bd29172b4c21440c4 | [
"MIT"
] | null | null | null | src/coq_module.ml | sinancepel/dune | 4c659dce13f982736a24952bd29172b4c21440c4 | [
"MIT"
] | null | null | null | (* This file is licensed under The MIT License *)
(* (c) MINES ParisTech 2018-2019 *)
(* Written by: Emilio Jesús Gallego Arias *)
open! Stdune
module Name = struct
type t = string
let make x = x
let compare = String.compare
let pp = Fmt.text
end
(* We keep prefix and name separated as ... | 24.790323 | 78 | 0.65257 |
aa99eccee1374d4f6e23f83b75c11682458cd4ac | 7,716 | ml | OCaml | data/derived/comb/progs/unify/prog3870.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/prog3870.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3870.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
;;
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let _ = sumList [1; 2; 3; 4]
let _ = sumList [1; -2; 3; 5]
let _ = sumList [1; 3; 5; 7; 9; 11]
(*X... | 24.417722 | 94 | 0.630508 |
17657eb7782a5d7c9f76f5ee977cf736a261cdfd | 959 | ml | OCaml | libraries/autoscaling/lib/setInstanceHealth.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/autoscaling/lib/setInstanceHealth.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/autoscaling/lib/setInstanceHealth.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | open Types_internal
open Aws
type input = SetInstanceHealthQuery.t
type output = unit
type error = Errors_internal.t
let service = "autoscaling"
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)))
(List.app... | 31.966667 | 79 | 0.639208 |
aaaa345e65ab40092d481fbffa1b62c6174d734a | 1,369 | mli | OCaml | lib/atom.mli | amirmc/ocamlatom | 97c335ff9d0526e53faf0fa3ca55692cb30fe24d | [
"0BSD"
] | 1 | 2015-11-10T00:02:13.000Z | 2015-11-10T00:02:13.000Z | lib/atom.mli | amirmc/ocamlatom | 97c335ff9d0526e53faf0fa3ca55692cb30fe24d | [
"0BSD"
] | null | null | null | lib/atom.mli | amirmc/ocamlatom | 97c335ff9d0526e53faf0fa3ca55692cb30fe24d | [
"0BSD"
] | null | null | null | (********************************************************************
Copyright (c) 2014, Amir Chaudhry
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted, provided
that the above copyright notice and this permission notice appear
... | 31.837209 | 69 | 0.623813 |
1770891b4661354449f7819ba899dfb0c70f5b81 | 1,023 | ml | OCaml | src/typing/obj_type.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | 1 | 2019-03-11T16:27:05.000Z | 2019-03-11T16:27:05.000Z | src/typing/obj_type.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | null | null | null | src/typing/obj_type.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"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
let mk_with_proto cx reason
?(sealed=false) ?(exact=true) ?(frozen=false) ?dict ?call ?(props=SMap.empty) proto =
l... | 34.1 | 87 | 0.726295 |
170d26e2db515a036a54ad12e58e029d17825ac5 | 27 | ml | OCaml | src/bmtune.ml | MagnusS/bmtune | 3b5239a6aaca04fa1f2473ff114761ab161d7d5f | [
"0BSD"
] | 4 | 2020-05-05T10:45:54.000Z | 2020-05-05T18:22:53.000Z | src/bmtune.ml | MagnusS/bmtune | 3b5239a6aaca04fa1f2473ff114761ab161d7d5f | [
"0BSD"
] | null | null | null | src/bmtune.ml | MagnusS/bmtune | 3b5239a6aaca04fa1f2473ff114761ab161d7d5f | [
"0BSD"
] | null | null | null | let () = Main.configure ()
| 13.5 | 26 | 0.592593 |
1750b39513ca747ceea0c369f8671d586789ce49 | 253 | ml | OCaml | data/derived/comb/progs/unify/prog0143.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/prog0143.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0143.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 = a ^ (sep ^ x) in
let base = h in let l = t in List.fold_left f base l;;
let stringOfList f l = sepConcat (f l);;
let _ = stringOfList (fun x -> x) ["foo"];;
| 21.083333 | 60 | 0.529644 |
aa93dd8f3f800de64d94ec24ddfead3f43e944c4 | 27,377 | ml | OCaml | src/core/lwt_stream.ml | Armael/lwt | 17c8d5e2071f3690850a99c3ce0f2e6a79a8ac7f | [
"MIT"
] | 1 | 2021-06-14T11:28:37.000Z | 2021-06-14T11:28:37.000Z | src/core/lwt_stream.ml | Armael/lwt | 17c8d5e2071f3690850a99c3ce0f2e6a79a8ac7f | [
"MIT"
] | null | null | null | src/core/lwt_stream.ml | Armael/lwt | 17c8d5e2071f3690850a99c3ce0f2e6a79a8ac7f | [
"MIT"
] | null | null | null | (* This file is part of Lwt, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. *)
open Lwt.Infix
exception Closed
exception Full
exception Empty
(* A node in a queue of pending data. *)
type 'a node = {
mutable next : 'a node;
(* Next... | 24.775566 | 101 | 0.58929 |
aacf2b979facc23cde6a310a35410f9dd68be0ec | 1,033 | mli | OCaml | src/ast_editor_state.mli | yannl35133/vscode-ocaml-platform | 7950499683599b821f1a3d5b801e910d7f692a00 | [
"ISC"
] | 1 | 2021-10-13T10:04:15.000Z | 2021-10-13T10:04:15.000Z | src/ast_editor_state.mli | yannl35133/vscode-ocaml-platform | 7950499683599b821f1a3d5b801e910d7f692a00 | [
"ISC"
] | null | null | null | src/ast_editor_state.mli | yannl35133/vscode-ocaml-platform | 7950499683599b821f1a3d5b801e910d7f692a00 | [
"ISC"
] | null | null | null | open Import
(** This module's interface is private to [Ast_editor.t]. It is in a separate
module to avoid circular dependencies with [Extension_instance.t] *)
type t
type ast_mode =
| Original_ast
| Preprocessed_ast
val make : unit -> t
val find_original_doc_by_pp_uri : t -> Uri.t -> string option
val fin... | 25.195122 | 79 | 0.70668 |
aaf178221d5b99603b77e3a88991e922125df09c | 1,029 | mli | OCaml | src/findlib/fl_topo.mli | AltGr/ocamlfind | d905d242d1b52037416e106db998ef38c7e6f06f | [
"MIT"
] | 18 | 2019-10-02T13:19:18.000Z | 2022-03-17T11:20:10.000Z | src/findlib/fl_topo.mli | AltGr/ocamlfind | d905d242d1b52037416e106db998ef38c7e6f06f | [
"MIT"
] | 27 | 2019-10-21T16:13:08.000Z | 2022-03-23T23:36:56.000Z | src/findlib/fl_topo.mli | AltGr/ocamlfind | d905d242d1b52037416e106db998ef38c7e6f06f | [
"MIT"
] | 17 | 2019-10-03T20:57:42.000Z | 2022-02-12T05:51:51.000Z | (* $Id$
* ----------------------------------------------------------------------
*
*)
(* The type topo.t is a partially ordered relation. You can add an element
* by giving all descendents ...
*)
module type IdentifiedType =
sig
type t
type id_t
val id : t -> id_t
end
exception Inconsistent_ord... | 23.930233 | 74 | 0.516035 |
1739a19561bc083e002501f892b2500377d1bebd | 1,741 | ml | OCaml | hphp/hack/src/client/clientColorFile.ml | 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/client/clientColorFile.ml | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientColorFile.ml | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Hh_core
... | 34.137255 | 80 | 0.580126 |
aa7c46cda8743e3266998ec2888ee8d44a13e6aa | 179 | mli | OCaml | lib/js_backend/transpile.mli | alabulei1/lichenscript | 767104fcfc7be865980df03ea4e524ded277a877 | [
"Apache-2.0"
] | null | null | null | lib/js_backend/transpile.mli | alabulei1/lichenscript | 767104fcfc7be865980df03ea4e524ded277a877 | [
"Apache-2.0"
] | null | null | null | lib/js_backend/transpile.mli | alabulei1/lichenscript | 767104fcfc7be865980df03ea4e524ded277a877 | [
"Apache-2.0"
] | null | null | null | open Lichenscript_typing
type t
val transpile_program: ctx:Type_context.t -> preclude:string -> Lichenscript_typing.Typedtree.Declaration.t list -> t
val contents: t -> string
| 22.375 | 117 | 0.787709 |
171e28cd6184ff968b631bd1804e15483e349a64 | 2,074 | mll | OCaml | Evaluation/vlexer.mll | slasser/verillon | 0b60114b27f4f92272129f381ec01e593273e6f2 | [
"BSD-3-Clause"
] | 43 | 2018-02-28T15:56:13.000Z | 2021-12-12T14:16:20.000Z | Evaluation/vlexer.mll | slasser/verillon | 0b60114b27f4f92272129f381ec01e593273e6f2 | [
"BSD-3-Clause"
] | null | null | null | Evaluation/vlexer.mll | slasser/verillon | 0b60114b27f4f92272129f381ec01e593273e6f2 | [
"BSD-3-Clause"
] | 2 | 2018-02-15T13:50:36.000Z | 2021-11-27T12:29:51.000Z | {
open Lexing
open JsonTokenizer
(*open Token *)
(*open Core*)
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
}
}
(* part 1 *)
let int = '-'? ['0'-'9'] ['0'-'9'... | 30.5 | 83 | 0.542912 |
aa4f5e639643f93824c2e366d0afa6013af31ee1 | 2,050 | ml | OCaml | plugins/git/commit_id.ml | timbertson/ocurrent | cb4e55f491038b9bfd9cae4392b2ec74f259c65a | [
"Apache-2.0"
] | null | null | null | plugins/git/commit_id.ml | timbertson/ocurrent | cb4e55f491038b9bfd9cae4392b2ec74f259c65a | [
"Apache-2.0"
] | null | null | null | plugins/git/commit_id.ml | timbertson/ocurrent | cb4e55f491038b9bfd9cae4392b2ec74f259c65a | [
"Apache-2.0"
] | null | null | null | [@@@ocaml.warning "-3"]
type t = {
repo : string; (* Remote repository from which to pull. *)
gref : string; (* Ref to pull, e.g. "master" or "pull/12/head". *)
hash : string; (* Hash that [gref] is expected to have. *)
} [@@deriving yojson]
[@@@ocaml.warning "+3"]
let ensure_no_spaces x =
if String.conta... | 31.538462 | 94 | 0.634146 |
aaf56aa2e47e6a308aac456e664fbb5d3ed7a174 | 10,306 | ml | OCaml | caramel/compiler/ocaml_to_erlang/typespecs.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | caramel/compiler/ocaml_to_erlang/typespecs.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | caramel/compiler/ocaml_to_erlang/typespecs.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | open Erlang.Ast_helper
open Typedtree
open Types
module Type_var_names = struct
let last_char : char ref = ref 'a'
let table : (Types.type_expr, char) Hashtbl.t = Hashtbl.create 1024
let reset () = last_char := 'a'
let find t =
match Hashtbl.find_opt table t with
| None ->
Hashtbl.add table ... | 37.889706 | 81 | 0.616534 |
aab9e800dcc1d386a5f3143e5988321fb54cfafc | 612 | mli | OCaml | src/eval/match.mli | lukaszcz/hcpl | 622fcec8e9275410e916ca28a8982a74f55770a4 | [
"MIT"
] | null | null | null | src/eval/match.mli | lukaszcz/hcpl | 622fcec8e9275410e916ca28a8982a74f55770a4 | [
"MIT"
] | null | null | null | src/eval/match.mli | lukaszcz/hcpl | 622fcec8e9275410e916ca28a8982a74f55770a4 | [
"MIT"
] | null | null | null | (* match.mli: Matching interface.
Copyright (C) 2013 by Łukasz Czajka
*)
exception Unknown
(* xmatch raises Exit if 'node' does not match 'pattern', and returns the
list of values matched to placeholders if the match is successful *)
val xmatch : Node.t (* node *) -> Node.t (* pattern *) -> Node.t list (* accumu... | 34 | 102 | 0.699346 |
1778dfdf8981d294498be1748eb9ceac4df0384a | 878 | ml | OCaml | result/fixml/diff/sub145/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/diff/sub145/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/diff/sub145/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type aexp =
| Const of int
| Var of string
| Power of (string * int)
| Times of aexp list
| Sum of aexp list
let rec diff : aexp * string -> aexp =
fun (e, x) ->
match e with
| Const c -> Const 0
| Var v -> if v = x then Const 1 else Var v
| Power (str, po) -> (
match str with x -> Times [ Con... | 29.266667 | 81 | 0.482916 |
175927d50f0ed68048227235957e1786f8b7a97f | 4,635 | ml | OCaml | tools/mdiag.ml | maranget/herdtools7 | c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0 | [
"CECILL-B"
] | 103 | 2016-11-28T10:00:41.000Z | 2022-03-08T05:06:00.000Z | tools/mdiag.ml | maranget/herdtools7 | c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0 | [
"CECILL-B"
] | 193 | 2017-02-28T19:04:04.000Z | 2022-03-25T14:33:24.000Z | tools/mdiag.ml | maranget/herdtools7 | c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0 | [
"CECILL-B"
] | 39 | 2016-12-14T23:10:34.000Z | 2022-03-22T21:35:17.000Z | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 35.653846 | 81 | 0.47767 |
17400e19c3b5f646c51ab3a1b890dae6f91d5d97 | 606 | ml | OCaml | benchmarks/C/lambda/sol178.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/lambda/sol178.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/lambda/sol178.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | (*
* 컴퓨터공학부 2009-11690 김찬민
* Homework 2 Exercise 1 *)
type lambda = V of var
| P of var * lambda
| C of lambda * lambda
and var = string
let check (wholeMap : lambda) : bool =
let rec checkSubMetro curMap areaStack =
match curMap with
| V(stationName) ->
List.e... | 28.857143 | 75 | 0.59736 |
171c2e0fa26c221b92c33e68117ed91674926380 | 2,266 | mli | OCaml | tester/blockchainTestParser.mli | pirapira/eth-isabelle | d0bb02b3e64a2046a7c9670545d21f10bccd7b27 | [
"Apache-2.0"
] | 252 | 2016-10-09T22:47:05.000Z | 2022-03-26T16:48:10.000Z | tester/blockchainTestParser.mli | pirapira/eth-isabelle | d0bb02b3e64a2046a7c9670545d21f10bccd7b27 | [
"Apache-2.0"
] | 352 | 2016-10-11T10:28:54.000Z | 2018-07-18T01:24:08.000Z | tester/blockchainTestParser.mli | pirapira/eth-isabelle | d0bb02b3e64a2046a7c9670545d21f10bccd7b27 | [
"Apache-2.0"
] | 42 | 2017-01-06T23:56:33.000Z | 2021-04-02T08:47:05.000Z | open Yojson.Basic
type blockHeader =
(* XXX: If the hashes are just 256-bit values, they can also be encoded as big_int *)
{ bhBloom : string
; bhCoinbase : Big_int.big_int
; bhDifficulty : Big_int.big_int
; bhExtraData : string
; bhGasLimit : Big_int.big_int
; bhGasUsed : Big_int.big_int
; bhHash : st... | 28.683544 | 110 | 0.742277 |
17564592ef8d705aec66038115f8b983ef389e6b | 16,176 | ml | OCaml | lib/cpu/cpu.ml | smorimoto/CAMLBOY | 0bb0beff0337e17a6450c3b9c8b3f1be7416c0b2 | [
"MIT"
] | 358 | 2021-11-23T23:21:24.000Z | 2022-03-31T02:54:28.000Z | lib/cpu/cpu.ml | smorimoto/CAMLBOY | 0bb0beff0337e17a6450c3b9c8b3f1be7416c0b2 | [
"MIT"
] | 1 | 2021-12-11T16:57:45.000Z | 2021-12-11T17:04:57.000Z | lib/cpu/cpu.ml | smorimoto/CAMLBOY | 0bb0beff0337e17a6450c3b9c8b3f1be7416c0b2 | [
"MIT"
] | 17 | 2021-11-24T00:35:03.000Z | 2022-03-31T03:07:35.000Z | open Uints
module Make (Bus : Word_addressable_intf.S) = struct
module Fetch_and_decode = Fetch_and_decode.Make(Bus)
type t = {
registers : Registers.t;
bus : Bus.t;
ic : Interrupt_controller.t;
mutable ... | 33.7 | 98 | 0.510818 |
17729b928b0bb8a671afcc8e020e3be2afca831d | 158,468 | ml | OCaml | src/typing/statement.ml | leebyron/flow | f35d3a96ad1fb4a985bf522ddc63ac1f66360904 | [
"BSD-3-Clause"
] | 3 | 2019-04-03T16:09:03.000Z | 2021-07-31T01:16:29.000Z | src/typing/statement.ml | leebyron/flow | f35d3a96ad1fb4a985bf522ddc63ac1f66360904 | [
"BSD-3-Clause"
] | 1 | 2022-03-27T05:20:01.000Z | 2022-03-27T05:20:01.000Z | src/typing/statement.ml | leebyron/flow | f35d3a96ad1fb4a985bf522ddc63ac1f66360904 | [
"BSD-3-Clause"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(* Th... | 35.982743 | 86 | 0.609902 |
173ffa65a9e18d8c5c78d0d9554fa0872e4a574d | 13,151 | ml | OCaml | src/parseFml.ml | ksuenaga/HybridPDR | da242835b86b5747110f2eb84693305348172ff2 | [
"CECILL-B"
] | 1 | 2019-11-07T16:24:47.000Z | 2019-11-07T16:24:47.000Z | src/parseFml.ml | ksuenaga/HybridPDR | da242835b86b5747110f2eb84693305348172ff2 | [
"CECILL-B"
] | null | null | null | src/parseFml.ml | ksuenaga/HybridPDR | da242835b86b5747110f2eb84693305348172ff2 | [
"CECILL-B"
] | null | null | null | open Core_kernel
open Format
open MParser
module Regex = MakeRegexp(MParser_RE.Regexp)
open Regex
open Tokens
module E = Error
type unop = Neg
[@@deriving show]
type binop = Mul | Div | Add | Sub | Gt | Ge | Lt | Le | Eq | And | Or
[@@deriving show] ... | 29.68623 | 105 | 0.538058 |
176e2c0791944ca3c2ad8699018c3f088c310dda | 1,509 | mli | OCaml | bootstrap/src/basis/deq.mli | jasone/Hemlock | 39f3f981b2cb37246cdbb9b0e6c1f58f2ecbdaf9 | [
"MIT"
] | null | null | null | bootstrap/src/basis/deq.mli | jasone/Hemlock | 39f3f981b2cb37246cdbb9b0e6c1f58f2ecbdaf9 | [
"MIT"
] | null | null | null | bootstrap/src/basis/deq.mli | jasone/Hemlock | 39f3f981b2cb37246cdbb9b0e6c1f58f2ecbdaf9 | [
"MIT"
] | null | null | null | (** Lazy-evaluated immutable double-ended queue.
The deq is an immutable double-ended queue container. All operations on deq
are amortized via lazy execution and are O(1).
*)
open Rudiments
(** {1 Type and derivations} *)
type 'a t
include Formattable_intf.S_poly with type 'a t := 'a t
(** {1 Creation} *)... | 25.15 | 80 | 0.644798 |
176e09a74d9c73a8208a218dd963e5973cef78fd | 709 | ml | OCaml | data/fa15_min/2778.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15_min/2778.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/2778.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec clone x n = if n > 0 then [x] @ (clone x (n - 1)) else [];;
let padZero l1 l2 =
let len1 = List.length l1 in
let len2 = List.length l2 in
if len1 > len2
then (l1, (clone 0 (len1 - len2))) @ l2
else (((clone 0 (len2 - len1)) @ l1), l2);;
(* fix
let rec clone x n = if n > 0 then [x] @ (clone x (n -... | 18.657895 | 67 | 0.538787 |
aa9e896eed9bcbf341330a5e80e8ecf6756c8d72 | 502 | ml | OCaml | benchmarks/C/lambda/sol561.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/lambda/sol561.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/lambda/sol561.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | (**********************)
(* Problem 2 *)
(**********************)
type lambda = V of var
| P of var * lambda
| C of lambda * lambda
and var = string
let rec check : lambda -> bool
= fun lam -> let rec rm v lst = match lst with
|hd::tl -> if hd = v then rm v tl else hd:: rm v tl
|[] ->... | 27.888889 | 89 | 0.496016 |
aa662e1321323b815cb932c3e83755c05cf4a125 | 7,044 | ml | OCaml | src/json_predicate.ml | mwweissmann/ocaml-json-predicate | af02cf1e03e7d9f522c334eb0eadb7955ec81fd2 | [
"MIT"
] | 6 | 2015-11-12T18:12:34.000Z | 2016-02-23T16:40:09.000Z | src/json_predicate.ml | mwweissmann/ocaml-json-predicate | af02cf1e03e7d9f522c334eb0eadb7955ec81fd2 | [
"MIT"
] | null | null | null | src/json_predicate.ml | mwweissmann/ocaml-json-predicate | af02cf1e03e7d9f522c334eb0eadb7955ec81fd2 | [
"MIT"
] | null | null | null | type case =
| Case_sensitive
| Case_insensitive
let json_to_string = function
| `String v -> v
| x -> Yojson.Safe.to_string x
let regexp = function
| Case_insensitive -> Str.regexp_case_fold
| Case_sensitive -> Str.regexp
let matches character_matching needle =
let re = regexp character_matching needl... | 31.168142 | 124 | 0.615275 |
174a75f6cb2b4d9e329431860a9866341dd4bf9f | 5,543 | ml | OCaml | src/parser/ml/FStar_Parser_ParseIt.ml | mateuszbujalski/FStar | ac6a1962c4c109f9d4b50b171b7b31b09adff7bb | [
"Apache-2.0"
] | 1 | 2021-09-22T02:54:05.000Z | 2021-09-22T02:54:05.000Z | src/parser/ml/FStar_Parser_ParseIt.ml | mateuszbujalski/FStar | ac6a1962c4c109f9d4b50b171b7b31b09adff7bb | [
"Apache-2.0"
] | null | null | null | src/parser/ml/FStar_Parser_ParseIt.ml | mateuszbujalski/FStar | ac6a1962c4c109f9d4b50b171b7b31b09adff7bb | [
"Apache-2.0"
] | null | null | null | module U = FStar_Util
open FStar_Errors
open FStar_Syntax_Syntax
open Lexing
open FStar_Sedlexing
type filename = string
type input_frag = {
frag_fname:filename;
frag_text:string;
frag_line:Prims.int;
frag_col:Prims.int
}
let resetLexbufPos filename lexbuf =
lexbuf.cur_p <- {
pos_fname= filenam... | 32.994048 | 120 | 0.689518 |
17495d2f53cfed47492c01e5b5eed82044aa74cc | 2,801 | ml | OCaml | tezt/lib/base.ml | Piotr170687/tezos | c7e84dfae2837096a4188e835fb780ad514ec2d3 | [
"MIT"
] | 1 | 2021-11-03T08:21:08.000Z | 2021-11-03T08:21:08.000Z | tezt/lib/base.ml | Piotr170687/tezos | c7e84dfae2837096a4188e835fb780ad514ec2d3 | [
"MIT"
] | null | null | null | tezt/lib/base.ml | Piotr170687/tezos | c7e84dfae2837096a4188e835fb780ad514ec2d3 | [
"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.376623 | 79 | 0.50482 |
175cabc1547f0299579bf7081f0363ec8c43ae6b | 113,464 | ml | OCaml | hphp/hack/src/naming/naming.ml | swalk-cavium/hhvm | 9aa9b0876f15a6078daf550b1237cd339e6fed58 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/naming/naming.ml | swalk-cavium/hhvm | 9aa9b0876f15a6078daf550b1237cd339e6fed58 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-12-16T15:39:15.000Z | 2018-12-16T15:39:16.000Z | hphp/hack/src/naming/naming.ml | smrproject/hhvm | af9f284a02345198a3b42660377c7f5f2734f279 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-01-04T09:54:09.000Z | 2019-01-04T09:54:09.000Z | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(** Module "naming" a program.
*
* The naming phase consists in several things
* 1- get all the global names
* ... | 37.459227 | 98 | 0.600005 |
1734ca2946c5efb3176a65c9f3a43e93d6d412df | 1,014 | ml | OCaml | example/ounit/QCheck_test.ml | vrotaru/qcheck | edd4e68be12323fe768b8558305719883af65924 | [
"BSD-2-Clause"
] | 260 | 2015-02-17T22:25:32.000Z | 2022-03-29T05:03:31.000Z | example/ounit/QCheck_test.ml | vrotaru/qcheck | edd4e68be12323fe768b8558305719883af65924 | [
"BSD-2-Clause"
] | 204 | 2016-03-16T20:37:48.000Z | 2022-03-18T10:46:05.000Z | example/ounit/QCheck_test.ml | vrotaru/qcheck | edd4e68be12323fe768b8558305719883af65924 | [
"BSD-2-Clause"
] | 34 | 2016-12-19T17:13:12.000Z | 2022-01-28T08:50:23.000Z | let (|>) x f = f x
module Q = QCheck
let passing =
Q.Test.make ~count:1000 ~long_factor:2
~name:"list_rev_is_involutive"
Q.(list small_int)
(fun l -> List.rev (List.rev l) = l);;
let failing =
Q.Test.make ~count:10
~name:"should_fail_sort_id"
Q.(small_list small_int)
(fun l -> l = List.so... | 20.28 | 55 | 0.615385 |
17405b5327a0665a71b78c7bf4119ae3e69fe0bc | 97 | mli | OCaml | src/lib/prover/concatRule.mli | letonchanh/Coeus | 21d417a56a80d6c9014cbb6ed86b329d522fd9a3 | [
"Apache-2.0"
] | 3 | 2019-10-06T12:05:37.000Z | 2020-04-16T11:40:50.000Z | src/lib/prover/concatRule.mli | letonchanh/Coeus | 21d417a56a80d6c9014cbb6ed86b329d522fd9a3 | [
"Apache-2.0"
] | null | null | null | src/lib/prover/concatRule.mli | letonchanh/Coeus | 21d417a56a80d6c9014cbb6ed86b329d522fd9a3 | [
"Apache-2.0"
] | 2 | 2020-06-12T00:18:56.000Z | 2020-10-09T23:35:38.000Z | val create : string -> Ast.Ecoeus.Side.t -> Rule.t
val concat_l : Rule.t
val concat_r : Rule.t
| 16.166667 | 50 | 0.680412 |
17101d21fe657a7653d4937db762f241c1a168ed | 9,641 | ml | OCaml | explicitly_typed/universal_types/lib/term.ml | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | 1 | 2020-05-13T13:51:57.000Z | 2020-05-13T13:51:57.000Z | explicitly_typed/universal_types/lib/term.ml | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | null | null | null | explicitly_typed/universal_types/lib/term.ml | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | null | null | null | module Id = Identifier
module Loc = Location
module Misc = Miscellaneous
module Opt = Option
module Type_env = Type.Environment
type desc =
| Variable of Id.t
| Term_abs of Id.t * Type.t * t
| Term_app of t * t
| Type_abs of Id.t * t
| Type_app of t * Type.t
and t =
{ desc : desc;
loc : Loc.t }
modul... | 33.017123 | 80 | 0.602323 |
17630fa896d7218e743445d2890b62556e8aa066 | 837 | mli | OCaml | hphp/hack/src/server/diagnostic_subscription.mli | simonwelsh/hhvm | d4f2f960f29fc66e0ed615b8fa7746a42aafb173 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/diagnostic_subscription.mli | simonwelsh/hhvm | d4f2f960f29fc66e0ed615b8fa7746a42aafb173 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/diagnostic_subscription.mli | 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.
*
*)
open Reordere... | 22.621622 | 80 | 0.704898 |
1739947f99d805cb36ea4fa0a9aa7e9be3845c00 | 943 | ml | OCaml | src/parser_utils/output/printers/compact_printer.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/parser_utils/output/printers/compact_printer.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/parser_utils/output/printers/compact_printer.ml | 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.
*)
open Layout
let print ~source_maps node =
let rec print_node src = function
| SourceLocation (loc, node) ->
let src ... | 30.419355 | 66 | 0.664899 |
aa95eddfc7a00759737f0e8a7b4ba9c2ab7fc836 | 954 | ml | OCaml | src/PythonEbnf_Messages.ml | jacquev6/DrawGrammar | ee056a086ca0d8b18889fa06883287fda84807c3 | [
"MIT"
] | 29 | 2017-07-18T18:18:37.000Z | 2021-07-20T07:37:51.000Z | src/PythonEbnf_Messages.ml | jacquev6/DrawGrammar | ee056a086ca0d8b18889fa06883287fda84807c3 | [
"MIT"
] | 7 | 2017-07-21T00:45:04.000Z | 2018-11-01T10:14:46.000Z | src/PythonEbnf_Messages.ml | jacquev6/DrawGrammar | ee056a086ca0d8b18889fa06883287fda84807c3 | [
"MIT"
] | 3 | 2017-08-19T10:23:37.000Z | 2021-03-03T11:58:58.000Z |
(* This file was auto-generated based on "src/PythonEbnf_Messages.messages". *)
(* Please note that the function [message] can raise [Not_found]. *)
let message =
fun s ->
match s with
| 0 ->
"We are working on better error messages. (python-ebnf 9)\n"
| 13 ->
"We are working on better ... | 32.896552 | 79 | 0.595388 |
aab00a56d8756542bfd1fb6aa0f3d6028facc8f8 | 1,249 | mli | OCaml | interfaces/3.11/map.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 23 | 2017-11-16T10:01:56.000Z | 2021-06-23T08:44:44.000Z | interfaces/3.11/map.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 15 | 2018-04-21T13:49:52.000Z | 2022-02-16T11:19:38.000Z | interfaces/3.11/map.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 8 | 2018-04-23T18:10:00.000Z | 2021-12-14T14:31:22.000Z | module type OrderedType = sig type t val compare : t -> t -> int end
module type S =
sig
type key
type +'a t
val empty : 'a t
val is_empty : 'a t -> bool
val add : key -> 'a -> 'a t -> 'a t
val find : key -> 'a t -> 'a
val remove : key -> 'a t -> 'a t
val mem : key -> 'a t -> bool
... | 33.756757 | 69 | 0.417134 |
aa19d1589143c9d6741e0b705cc565f9669b622d | 1,213 | ml | OCaml | tests/functional/arrays/__arrays.ml | ravichugh/djs | c4a13e06adb3e0945f39966523a4d944448c1941 | [
"Apache-2.0",
"BSD-3-Clause"
] | 49 | 2015-01-03T00:23:05.000Z | 2021-12-22T22:08:55.000Z | tests/functional/arrays/__arrays.ml | ravichugh/djs | c4a13e06adb3e0945f39966523a4d944448c1941 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2017-10-30T03:55:27.000Z | 2020-06-12T12:24:01.000Z | tests/functional/arrays/__arrays.ml | ravichugh/djs | c4a13e06adb3e0945f39966523a4d944448c1941 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
(***** "functional arrays" ****************************************************)
(* TODO add finite-foralls for seti, push, and pop *)
val length :: [A] a:Arr(A) -> {Int | (implies (packed a) (= v (len a)))}
val geti :: [A] a:Arr(A) -> i:Int ->
{(ite (and (packed a) (>= i 0))
(ite (< i (len a)) (and (v::A... | 32.783784 | 80 | 0.375103 |
aa4497b00d9fa7c7bc9d5dce3ff1b69cebe298b6 | 10,911 | ml | OCaml | src/server/cloud_datastore.ml | gfxmonk/passe | 276cea0cdb3b647ae9a1077845d98bb37ee21d95 | [
"MIT"
] | 4 | 2015-12-28T13:48:05.000Z | 2019-06-05T11:54:44.000Z | src/server/cloud_datastore.ml | gfxmonk/passe | 276cea0cdb3b647ae9a1077845d98bb37ee21d95 | [
"MIT"
] | null | null | null | src/server/cloud_datastore.ml | gfxmonk/passe | 276cea0cdb3b647ae9a1077845d98bb37ee21d95 | [
"MIT"
] | null | null | null | open Cohttp
open Cohttp_lwt
module Response = Cohttp.Response
open Passe
open Common
module J = Json_ext
module Log = (val Passe.Logging.log_module "cloud_datastore")
type Dynamic_store.connector += Cloud_datastore of string
type request_error = [
| Error.t
| `Response of Response.t * Body.t
]
(* split OK / Error ... | 32.963746 | 132 | 0.641738 |
aa801f8061210eb2dc253c4c304b9b4c684d60f0 | 247 | mli | OCaml | libraries/sts/lib/decodeAuthorizationMessage.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/sts/lib/decodeAuthorizationMessage.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/sts/lib/decodeAuthorizationMessage.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = DecodeAuthorizationMessageRequest.t
type output = DecodeAuthorizationMessageResponse.t
type error = Errors_internal.t
include
(Aws.Call with type input := input and type output := output and type
error := error) | 35.285714 | 75 | 0.769231 |
bccfdb2167e2531545c58a46c5b23fd8408811ec | 2,303 | mli | OCaml | interfaces/4.12/stringLabels.mli | Gbury/stdcompat | 0a8428f8c09ad73525bf86d9e0ed142d625a6e0b | [
"BSD-2-Clause"
] | 23 | 2017-11-16T10:01:56.000Z | 2021-06-23T08:44:44.000Z | interfaces/4.12/stringLabels.mli | Gbury/stdcompat | 0a8428f8c09ad73525bf86d9e0ed142d625a6e0b | [
"BSD-2-Clause"
] | 15 | 2018-04-21T13:49:52.000Z | 2022-02-16T11:19:38.000Z | interfaces/4.12/stringLabels.mli | Gbury/stdcompat | 0a8428f8c09ad73525bf86d9e0ed142d625a6e0b | [
"BSD-2-Clause"
] | 8 | 2018-04-23T18:10:00.000Z | 2021-12-14T14:31:22.000Z | type t = string
val make : int -> char -> string
val init : int -> f:(int -> char) -> string
external length : string -> int = "%string_length"
external get : string -> int -> char = "%string_safe_get"
val concat : sep:string -> string list -> string
val equal : t -> t -> bool
val compare : t -> t -> int
val contains_f... | 43.45283 | 76 | 0.641337 |
17302765b9fbf7202ff3319ea34c0b5cb696d2bf | 36,254 | ml | OCaml | hphp/hack/src/server/hhMonitorInformant.ml | swalk-cavium/hhvm | 9aa9b0876f15a6078daf550b1237cd339e6fed58 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2019-09-01T19:40:10.000Z | 2019-10-18T13:30:30.000Z | hphp/hack/src/server/hhMonitorInformant.ml | symisc/phvm | 2eca3b36b66794ef2fa9fc57ab713c4cca225694 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-12-16T15:39:15.000Z | 2018-12-16T15:39:16.000Z | hphp/hack/src/server/hhMonitorInformant.ml | symisc/phvm | 2eca3b36b66794ef2fa9fc57ab713c4cca225694 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-01-04T09:54:09.000Z | 2019-01-04T09:54:09.000Z | (**
* 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 Core_kernel
include HhMonitorInformant_sig.Types
let exit_on_parent_exit () = Parent.exit_on_parent_exit 10 6... | 38.899142 | 100 | 0.667788 |
aa5a61ff1b6de111b837c1c540a491084eb00ac1 | 3,598 | ml | OCaml | infer/src/backend/OndemandCapture.ml | ievans/infer | c483fe101a3bdb3e86c4444a7b8d6197eada67c0 | [
"BSD-3-Clause"
] | null | null | null | infer/src/backend/OndemandCapture.ml | ievans/infer | c483fe101a3bdb3e86c4444a7b8d6197eada67c0 | [
"BSD-3-Clause"
] | 2 | 2020-11-13T19:42:27.000Z | 2020-11-13T19:49:19.000Z | infer/src/backend/OndemandCapture.ml | ievans/infer | c483fe101a3bdb3e86c4444a7b8d6197eada67c0 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2016 - 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 file in the same directory.
*)
open! IStd
... | 54.515152 | 98 | 0.710117 |
174c8437d720689bd79df3599008f1e520f896f1 | 3,874 | ml | OCaml | hphp/hack/test/procs/test_cancel_env.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/procs/test_cancel_env.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/procs/test_cancel_env.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | open Procs_test_utils
(* create workers and synchronize this global reference from master *)
let pipe_path = ref ""
let entry =
WorkerController.register_entry_point ~restore:(fun s ~(worker_id : int) ->
pipe_path := s;
Hh_logger.set_id (Printf.sprintf "test_cancel_env %d" worker_id))
let make_workers ... | 29.348485 | 79 | 0.669334 |
177eef598041ca7b629b0551565b4df5b98f1473 | 89 | ml | OCaml | hollight/valid/mathd-numbertheory-92.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 102 | 2021-05-04T09:50:13.000Z | 2022-03-27T12:00:05.000Z | hollight/valid/mathd-numbertheory-92.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 49 | 2021-05-06T09:36:49.000Z | 2022-03-31T18:58:23.000Z | hollight/valid/mathd-numbertheory-92.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 17 | 2021-05-06T09:04:02.000Z | 2022-03-29T11:25:46.000Z | let mathd-numbertheory-92 = `!n:num.
((5 * n) MOD 17 = 8)
==>
(n MOD 17 = 5)
`;;
| 14.833333 | 36 | 0.460674 |
aad79878e8757b97c79458ea36c9e033035d9363 | 13,598 | mli | OCaml | hphp/hack/src/typing/typing_utils.mli | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_utils.mli | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_utils.mli | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"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.
*
*)
type expand_typedef =
Typing_defs.expand_env ->
Typing_env_types.env ->
Typing_reason.t ->
string ->
Typing_defs.loc... | 27.638211 | 86 | 0.753052 |
175413c4a304a5577b7afc78ea33a02d109ef69c | 5,019 | ml | OCaml | src/typing/func_params.ml | gaearon/flow | 1ffb5bb13b8207c0de6d5b90627f7d2e0a8f52e7 | [
"BSD-3-Clause"
] | 10 | 2016-07-28T20:02:37.000Z | 2021-01-28T05:48:11.000Z | src/typing/func_params.ml | gaearon/flow | 1ffb5bb13b8207c0de6d5b90627f7d2e0a8f52e7 | [
"BSD-3-Clause"
] | null | null | null | src/typing/func_params.ml | gaearon/flow | 1ffb5bb13b8207c0de6d5b90627f7d2e0a8f52e7 | [
"BSD-3-Clause"
] | 5 | 2017-02-06T11:42:23.000Z | 2021-01-11T12:10:08.000Z | module Ast = Spider_monkey_ast
module Anno = Type_annotation
module Flow = Flow_js
module Utils = Utils_js
open Reason
open Type
open Destructuring
type binding = string * Type.t * Loc.t
type param =
| Simple of Type.t * binding
| Complex of Type.t * binding list
| Rest of Type.t * binding
type t = {
list: pa... | 33.238411 | 81 | 0.62363 |
176f69a312ed6017958f4077aee55f2fdc75c660 | 7,109 | ml | OCaml | src/core/Monads.ml | clayrat/cooltt | b3e6246169e2118aade43d582f0c5ecb1ea9625d | [
"Apache-2.0"
] | 143 | 2020-05-11T19:40:53.000Z | 2022-03-31T14:55:17.000Z | src/core/Monads.ml | clayrat/cooltt | b3e6246169e2118aade43d582f0c5ecb1ea9625d | [
"Apache-2.0"
] | 200 | 2020-05-09T14:32:57.000Z | 2022-03-30T20:03:18.000Z | src/core/Monads.ml | clayrat/cooltt | b3e6246169e2118aade43d582f0c5ecb1ea9625d | [
"Apache-2.0"
] | 11 | 2020-05-12T12:27:57.000Z | 2022-03-17T07:50:52.000Z | open Basis
open Cubical
open Bwd
open CodeUnit
module D = Domain
module S = Syntax
module St = RefineState
exception CCHM
exception CJHM
exception CFHM
module CmpL =
struct
type local =
{state : St.t;
cof_thy : CofThy.Disj.t}
end
module EvL =
struct
type local =
{state : St.t;
cof_thy : CofTh... | 21.348348 | 96 | 0.590519 |
aa8b3fd9e94178f22e6bba9537a6f2f758731a29 | 2,088 | ml | OCaml | hphp/hack/src/common/common.ml | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-02-04T22:07:59.000Z | 2021-02-04T22:07:59.000Z | hphp/hack/src/common/common.ml | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/common/common.ml | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | module List = struct
include Core_kernel.List
let rec fold_left_env env l ~init ~f = match l with
| [] -> env, init
| x :: xs ->
let env, init = f env init x in
fold_left_env env xs ~init ~f
let rev_map_env env xs ~f =
let f2 env init x =
let env, x = f env x in
env, x :: ini... | 27.116883 | 59 | 0.471264 |
176daed18adfcae7a17c8572e8ed79bc6b7c0b61 | 12,525 | ml | OCaml | src/lib/transformations/Transformers.ml | NetworkVerification/nv | 0a9d69e08142cd894a1594674edb5fbca7a4f8b8 | [
"MIT"
] | 23 | 2020-03-05T23:45:04.000Z | 2022-01-20T10:28:44.000Z | src/lib/transformations/Transformers.ml | princedpw/nv | a82b2b4530d41ece98bd39c5d7ecb18c1dfaf9b6 | [
"MIT"
] | 43 | 2018-10-01T13:12:36.000Z | 2020-01-14T17:55:54.000Z | src/lib/transformations/Transformers.ml | NetworkVerification/nv | 0a9d69e08142cd894a1594674edb5fbca7a4f8b8 | [
"MIT"
] | 2 | 2018-07-12T18:33:19.000Z | 2019-11-30T02:15:07.000Z | open Batteries
open Nv_lang
open Syntax
open Collections
open Nv_datastructures.AdjGraph
open Nv_utils.OCamlUtils
open Nv_solution
type recursors =
{ recurse_ty : ty -> ty
; recurse_pattern : pattern -> ty -> pattern
; recurse_value : value -> value
; recurse_exp : exp -> exp
}
type 'a transformer = recurso... | 35.888252 | 90 | 0.65477 |
44c04e9709c50aab4ac0fa6edba78857d0773308 | 10,944 | ml | OCaml | src/witness/witnessConstraints.ml | TimOrtel/analyzer | f29b1604963a72dca80d27ad2c06bcd17088dc54 | [
"MIT"
] | 1 | 2022-03-28T16:25:31.000Z | 2022-03-28T16:25:31.000Z | src/witness/witnessConstraints.ml | mengjianwei12345/analyzer | 38b8ef2fa14bacd19c73ee823c1ede5571e525bb | [
"MIT"
] | null | null | null | src/witness/witnessConstraints.ml | mengjianwei12345/analyzer | 38b8ef2fa14bacd19c73ee823c1ede5571e525bb | [
"MIT"
] | null | null | null | (** An analysis specification for witnesses. *)
open Prelude.Ana
open Analyses
module Node: Printable.S with type t = MyCFG.node =
struct
include Var
let to_yojson = Node.to_yojson
(* let short n x = Pretty.sprint n (pretty () x) *)
(* let short _ x = var_id x *)
let show = Node.show_cfg
let pretty = Nod... | 33.365854 | 121 | 0.58845 |
aa5285eaa45fce1a495e79b60b35cba6350bfbbd | 398 | ml | OCaml | libraries/rds/lib_test/test_async.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/rds/lib_test/test_async.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/rds/lib_test/test_async.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Aws_rds_test
module T = TestSuite(struct
type 'a m = 'a Async.Deferred.t
let access_key = Unix.getenv "AWS_ACCESS_KEY"
let secret_key = Unix.getenv "AWS_SECRET_KEY"
let region = Unix.getenv "AWS_DEFAULT_REGION"
let run_request x = Aws_async.Runtime.run_request ~region ~access_key ~secret_key... | 30.615385 | 87 | 0.723618 |
1758df2744c1fe49a7f4f1002a7f8b9e6b1207d2 | 3,859 | mli | OCaml | lib/fir/src/prim_statement.mli | MattWindsor91/c4f | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 7 | 2018-11-27T23:53:58.000Z | 2020-11-22T11:56:16.000Z | lib/fir/src/prim_statement.mli | MattWindsor91/act | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 235 | 2018-10-03T16:37:36.000Z | 2020-11-22T16:26:51.000Z | lib/fir/src/prim_statement.mli | MattWindsor91/c4f | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 1 | 2018-11-13T16:43:19.000Z | 2018-11-13T16:43:19.000Z | (* This file is part of c4f.
Copyright (c) 2018-2022 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... | 33.267241 | 77 | 0.683856 |
17659b0b2c36288cbfb3cfc546d87f9e8be5942c | 348 | ml | OCaml | data/fa15_min/1681.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/1681.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/1681.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec digitsOfInt n =
if n < 0 then [] else (let x = n mod 10 in (digitsOfInt n) @ x);;
(* fix
let rec digitsOfInt n =
if n < 0 then [] else (let x = n mod 10 in (digitsOfInt n) @ [x]);;
*)
(* changed spans
(3,64)-(3,65)
[x]
ListG [VarG]
*)
(* type error slice
(3,25)-(3,66)
(3,34)-(3,42)
(3,46)-(3,65)
(3,... | 12.888889 | 69 | 0.531609 |
170bedfdb697121c9f51bc91a3c7e25a173cccce | 13,554 | ml | OCaml | src/proto_alpha/lib_delegate/baking_nonces.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_delegate/baking_nonces.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_delegate/baking_nonces.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 Nomadic Labs <contact@nomadic-labs.com> *)
... | 40.459701 | 81 | 0.60816 |
17672290c17116ca9026c68f6f5aa43ae3c5673b | 3,109 | mli | OCaml | src/ast.mli | AshOlogn/ashpp-language-compiler | 4cdb9e492147e913a340cb961dbc2b4088b81b40 | [
"MIT"
] | 1 | 2018-12-23T05:03:39.000Z | 2018-12-23T05:03:39.000Z | src/ast.mli | AshOlogn/ashpp-language-compiler | 4cdb9e492147e913a340cb961dbc2b4088b81b40 | [
"MIT"
] | null | null | null | src/ast.mli | AshOlogn/ashpp-language-compiler | 4cdb9e492147e913a340cb961dbc2b4088b81b40 | [
"MIT"
] | null | null | null |
(** Primitive type representation *)
type t_prim = TInt | TChar | TFloat | TString | TBool | TVoid
[@@deriving show, eq]
(** Recursive data type representation *)
type tp =
| TPrim of t_prim
| TList of tp
| TNtuple of tp list (* logically (type1, type2, ..., type_n) *)
| TFun of tp list (* logically: typ... | 26.347458 | 91 | 0.669025 |
aa585e934ef06fb28f63e3def75641ecff69ce48 | 2,423 | ml | OCaml | src/globalise.ml | avsm/ocamlclean | 1088f9fded5926b9ba64952a4014dabb5dfc1e2e | [
"CECILL-B"
] | 6 | 2015-11-24T00:18:53.000Z | 2016-05-19T05:26:38.000Z | src/globalise.ml | avsm/ocamlclean | 1088f9fded5926b9ba64952a4014dabb5dfc1e2e | [
"CECILL-B"
] | null | null | null | src/globalise.ml | avsm/ocamlclean | 1088f9fded5926b9ba64952a4014dabb5dfc1e2e | [
"CECILL-B"
] | null | null | null | (*************************************************************************)
(* *)
(* OCamlClean *)
(* *)
(* Be... | 41.775862 | 80 | 0.503921 |
aadba913f8028e2fa0b4dd89a7aac3c44819c466 | 273 | ml | OCaml | hollight/test/mathd-numbertheory-552.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 102 | 2021-05-04T09:50:13.000Z | 2022-03-27T12:00:05.000Z | hollight/test/mathd-numbertheory-552.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 49 | 2021-05-06T09:36:49.000Z | 2022-03-31T18:58:23.000Z | hollight/test/mathd-numbertheory-552.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 17 | 2021-05-06T09:04:02.000Z | 2022-03-29T11:25:46.000Z | let mathd-numbertheory-552 = `!f:num->num g:num->num h:num->num.
(!x. (x > 0) ==> (f x = 12 * x + 7)) /\
(!x. (x > 0) ==> (g x = 5 * x + 2)) /\
(!x. (x > 0) ==> (h x = gcd (f x, g x))) /\
(FINITE {h x | x | x > 0})
==>
(nsum {h x | x | x > 0} (\k. k) = 12)
`;;
| 30.333333 | 64 | 0.355311 |
1745353f6966b97b553dcd4364e969ce4ad8ba09 | 1,337 | mll | OCaml | examples/knapsack.mll | retran/my-little-lispy | 197d697c169cb19ff4de807279a085a0642ac0f8 | [
"MIT"
] | 1 | 2019-04-04T10:18:33.000Z | 2019-04-04T10:18:33.000Z | examples/knapsack.mll | retran/my-little-lispy-experimental | 197d697c169cb19ff4de807279a085a0642ac0f8 | [
"MIT"
] | null | null | null | examples/knapsack.mll | retran/my-little-lispy-experimental | 197d697c169cb19ff4de807279a085a0642ac0f8 | [
"MIT"
] | null | null | null | (define (best a b est)
(if (> (est a) (est b)) a b))
(define (item weight cost)
(list weight cost #f))
(define (weight item)
(car item))
(define (cost item)
(car (cdr item)))
(define (sack size . items)
(cons size (cons 0 items)))
(define (sack-size sack)
(car sack))
(define (sack-cost sack)
(car (... | 22.661017 | 94 | 0.580404 |
aa97da33a092c6e256cc40c250a5c751b2ebd014 | 31,024 | ml | OCaml | src/typing/class_sig.ml | moroine/flow | c9ea44db14e30cb5ba7d25818e14c79c8070f507 | [
"MIT"
] | 1 | 2020-07-11T17:49:59.000Z | 2020-07-11T17:49:59.000Z | src/typing/class_sig.ml | moroine/flow | c9ea44db14e30cb5ba7d25818e14c79c8070f507 | [
"MIT"
] | null | null | null | src/typing/class_sig.ml | moroine/flow | c9ea44db14e30cb5ba7d25818e14c79c8070f507 | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast = Flow_ast
module Flow = Flow_js
open Reason
open Utils_js
include Class_sig_intf
module Make (F : Func_sig.S) = struc... | 35.415525 | 100 | 0.583065 |
1769b3a23238d5e6b25fa49ff3a95970b637b1ed | 1,683 | ml | OCaml | test/pomdump.ml | m4c0/pompom | 2f2749811623bd863ffcd1627cfa71fd276dbe69 | [
"MIT"
] | null | null | null | test/pomdump.ml | m4c0/pompom | 2f2749811623bd863ffcd1627cfa71fd276dbe69 | [
"MIT"
] | null | null | null | test/pomdump.ml | m4c0/pompom | 2f2749811623bd863ffcd1627cfa71fd276dbe69 | [
"MIT"
] | null | null | null | let () =
let java = ref "" in
let pom = ref "" in
let mvn_str = ref "" in
let test_scope = ref false in
let speclist =
[
( "-j",
Arg.Set_string java,
"Path to a Java source. POM will be infered from that." );
("-p", Arg.Set_string pom, "Path to POM.");
( "-m",
Arg... | 31.166667 | 77 | 0.601307 |
177e90ae1fa55279d7831e014f21fcbb3d99fd9a | 3,890 | ml | OCaml | src/main.ml | zayac/cal | 57344179f10950db7274b526caac27ad2d433e90 | [
"MIT"
] | null | null | null | src/main.ml | zayac/cal | 57344179f10950db7274b526caac27ad2d433e90 | [
"MIT"
] | null | null | null | src/main.ml | zayac/cal | 57344179f10950db7274b526caac27ad2d433e90 | [
"MIT"
] | null | null | null | open Core.Std
open Network
(* module for creating dot-files *)
module Dot = Graph.Graphviz.Dot(struct
include G (* use the graph module from above *)
let edge_attributes (_, e, _) =
[`Label (Constr.to_string e); `Color 4711]
let default_edge_attributes _ = []
let get_subgraph _ = None
let vertex_attribut... | 35.688073 | 79 | 0.684062 |
aa3da2c73b77a4c6890191cba13010af3fb53a6c | 41 | mli | OCaml | src/main.mli | janestreet/opamcheck | 6af68a21805ed6f0b5427788a51f9cb6ba4c79c2 | [
"Apache-2.0"
] | 9 | 2015-05-19T16:44:55.000Z | 2021-12-17T03:00:57.000Z | src/main.mli | planar/opamcheck | 6af68a21805ed6f0b5427788a51f9cb6ba4c79c2 | [
"Apache-2.0"
] | null | null | null | src/main.mli | planar/opamcheck | 6af68a21805ed6f0b5427788a51f9cb6ba4c79c2 | [
"Apache-2.0"
] | 2 | 2018-02-08T10:30:00.000Z | 2021-12-17T03:02:06.000Z | (* This file left blank intentionally *)
| 20.5 | 40 | 0.731707 |
17637213d75bbeb8e4bedf61b5a3b016e4cf4454 | 3,223 | mli | OCaml | src/proto_alpha/lib_protocol/lazy_storage_diff.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_alpha/lib_protocol/lazy_storage_diff.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_alpha/lib_protocol/lazy_storage_diff.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs <contact@nomadic-labs.com> *)
... | 44.763889 | 80 | 0.549488 |
aa8feb929897cbfc1afe242a0a09f515935aba89 | 397 | ml | OCaml | src/lib/pickles/type.ml | olton/mina | 35a0be706602a3187a21ba757c89d197ff914d7e | [
"Apache-2.0"
] | 929 | 2020-10-02T07:23:16.000Z | 2022-03-31T15:02:09.000Z | src/lib/pickles/type.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 3,154 | 2020-09-29T15:47:44.000Z | 2022-03-31T16:22:28.000Z | src/lib/pickles/type.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 216 | 2020-09-29T19:47:41.000Z | 2022-03-27T08:44:29.000Z | open Pickles_types.Dlog_plonk_types.Poly_comm
type (_, _) t =
| PC : ('g1, < g1 : 'g1 ; .. >) t
| Scalar : ('s, < scalar : 's ; .. >) t
| Without_degree_bound : ('g1 Without_degree_bound.t, < g1 : 'g1 ; .. >) t
| With_degree_bound
: ('g1_opt With_degree_bound.t, < g1_opt : 'g1_opt ; .. >) t
| ( :: ) : ... | 33.083333 | 76 | 0.526448 |
aa93febbdbd873743419ac0804a91d599f0ebb56 | 1,083 | ml | OCaml | lists/10/test/test.ml | Vinatorul/99-problems | f37e88dbc91a9935df0bb41d41ccdde4d5108d5c | [
"MIT"
] | 2 | 2020-11-22T20:27:24.000Z | 2020-12-13T18:13:15.000Z | lists/10/test/test.ml | Vinatorul/99-problems | f37e88dbc91a9935df0bb41d41ccdde4d5108d5c | [
"MIT"
] | null | null | null | lists/10/test/test.ml | Vinatorul/99-problems | f37e88dbc91a9935df0bb41d41ccdde4d5108d5c | [
"MIT"
] | null | null | null | open OUnit2
let test_empty_list _ =
assert_equal [] (Lib.encode [])
let test_non_empty_int_list _ =
assert_equal [(1, 4)] (Lib.encode [4]);
assert_equal [(2, 4)] (Lib.encode [4; 4]);
assert_equal [(2, 3); (3, 4); (2, 5)] (Lib.encode [3; 3; 4; 4; 4; 5; 5]);
assert_equal [(1, 3); (3, 4); (2, 5)] (Li... | 37.344828 | 97 | 0.530009 |
174165da019f2e4841360430377553b95a2b952f | 2,140 | ml | OCaml | test/test.ml | jozanza/binaryen.ml | 61cf08f84218fd3c4275d091934085e7c2b920fc | [
"Apache-2.0"
] | null | null | null | test/test.ml | jozanza/binaryen.ml | 61cf08f84218fd3c4275d091934085e7c2b920fc | [
"Apache-2.0"
] | null | null | null | test/test.ml | jozanza/binaryen.ml | 61cf08f84218fd3c4275d091934085e7c2b920fc | [
"Apache-2.0"
] | null | null | null | open Binaryen
let wasm_mod = Module.create ()
(* Create function type for i32 (i32, i32) *)
let params () = Type.create [| Type.int32; Type.int32 |]
let results = Type.int32
let x () = Expression.local_get wasm_mod 0 Type.int32
let y () = Expression.local_get wasm_mod 1 Type.int32
let load = Expression.load wasm_... | 25.47619 | 79 | 0.714486 |
1768ac3b004a14a69e310dc00fc5f54c259a7a17 | 363 | ml | OCaml | Programmation Fonctionnelle/corrections-partie-1/exercice-5.ml | remib18/Tutorat | 91617e5a269c71e6902a1730e5880061443a0ca9 | [
"MIT"
] | null | null | null | Programmation Fonctionnelle/corrections-partie-1/exercice-5.ml | remib18/Tutorat | 91617e5a269c71e6902a1730e5880061443a0ca9 | [
"MIT"
] | null | null | null | Programmation Fonctionnelle/corrections-partie-1/exercice-5.ml | remib18/Tutorat | 91617e5a269c71e6902a1730e5880061443a0ca9 | [
"MIT"
] | null | null | null | (**************************************)
(* Sujet : Division euclidienne *)
(**************************************)
(** Version simple *)
let rec f_simple a b =
if a < b then 0
else 1 + f_simple (a - b) b
;;
(** Version récursive terminale *)
let f_term a b =
let rec aux res a b =
if a < b then res
els... | 19.105263 | 40 | 0.443526 |
1741194e185e44d664d164c70a512f055cc89d5c | 6,691 | ml | OCaml | infer/src/istd/IList.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | infer/src/istd/IList.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | infer/src/istd/IList.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
(* [take_append ~max list ~tail] takes the first max elements of [list] and appends [tail] to the result.
Does not c... | 27.534979 | 105 | 0.579734 |
aa55802b3ea3d5a2e4730d4a80c47895728abd44 | 7,028 | ml | OCaml | hack/utils/pos_embedded.ml | tjmehta/flow | 24cfe90731274817f1f5f1cad1549674db287a4f | [
"MIT"
] | null | null | null | hack/utils/pos_embedded.ml | tjmehta/flow | 24cfe90731274817f1f5f1cad1549674db287a4f | [
"MIT"
] | null | null | null | hack/utils/pos_embedded.ml | tjmehta/flow | 24cfe90731274817f1f5f1cad1549674db287a4f | [
"MIT"
] | null | null | null | (** Positions embedded with full position info inside its
* data structure. See "type 'a pos"
*
* Note: This module can only be used with the Lexbuf Pos_source
* module, as it will not compile with other Pos_source modules. So,
* when choosing a different Pos module, you must also choose its
* compatible Pos_sour... | 32.537037 | 80 | 0.715566 |
17726001e0e24328caf6f90541398b3ecf50d70a | 482 | ml | OCaml | hphp/hack/src/typing/typing_heap.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_heap.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_heap.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"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 type ReadOnly = sig
type key
type t
val get: key -> t option
val mem: key -> bool
val find_unsafe:... | 20.083333 | 66 | 0.713693 |
bcce91d028b7921b640d4415808422dcf892cace | 1,552 | ml | OCaml | lwt/examples/test_client.ml | torinnd/ocaml-tls | 1b15ef5083d9b89785bdc929a2eecdc5b45b887d | [
"BSD-2-Clause"
] | 214 | 2015-01-06T12:04:34.000Z | 2022-01-19T05:37:38.000Z | lwt/examples/test_client.ml | torinnd/ocaml-tls | 1b15ef5083d9b89785bdc929a2eecdc5b45b887d | [
"BSD-2-Clause"
] | 137 | 2015-01-05T10:17:44.000Z | 2022-03-29T19:59:52.000Z | lwt/examples/test_client.ml | torinnd/ocaml-tls | 1b15ef5083d9b89785bdc929a2eecdc5b45b887d | [
"BSD-2-Clause"
] | 55 | 2015-01-05T21:04:25.000Z | 2022-03-29T18:49:31.000Z | open Lwt
open Ex_common
let mypsk = ref None
let ticket_cache = {
Tls.Config.lookup = (fun _ -> None) ;
ticket_granted = (fun psk epoch ->
Logs.info (fun m -> m "ticket granted %a %a"
Sexplib.Sexp.pp_hum (Tls.Core.sexp_of_psk13 psk)
Sexplib.Sexp.pp_hum (Tls.Core.sexp_... | 30.431373 | 169 | 0.604381 |
aad3206a3ebcf9e6fe5a340ec81385b9fb7ce458 | 197 | mli | OCaml | libraries/cloudformation/lib/cancelUpdateStack.mli | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/cloudformation/lib/cancelUpdateStack.mli | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/cloudformation/lib/cancelUpdateStack.mli | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
type input = CancelUpdateStackInput.t
type output = unit
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| 17.909091 | 85 | 0.751269 |
173d28151934c21e38a656b0ada41f1b6c5b44b2 | 45,870 | ml | OCaml | src/proto_alpha/lib_client/michelson_v1_macros.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_client/michelson_v1_macros.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_client/michelson_v1_macros.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 38.905852 | 94 | 0.429671 |
bcd729fbd0f6cfdac35c21333e9dd5a76cdcef9e | 3,534 | ml | OCaml | mirage/conduit_xenstore.ml | arenadotio/ocaml-conduit | 05ddf131ca9f58375590af439878844d799e294d | [
"ISC"
] | 1 | 2017-07-19T04:58:55.000Z | 2017-07-19T04:58:55.000Z | mirage/conduit_xenstore.ml | arenadotio/ocaml-conduit | 05ddf131ca9f58375590af439878844d799e294d | [
"ISC"
] | 1 | 2016-11-04T20:43:58.000Z | 2016-11-04T20:47:40.000Z | mirage/conduit_xenstore.ml | arenadotio/ocaml-conduit | 05ddf131ca9f58375590af439878844d799e294d | [
"ISC"
] | null | null | null | (*
* Copyright (c) 2014-2015 Anil Madhavapeddy <anil@recoil.org>
* Copyright (c) 2015 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permis... | 35.34 | 75 | 0.643463 |
1732c614aae6c89986f7d19ea97ffd18a214a20b | 568 | ml | OCaml | infer/src/backend/joinState.ml | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | 1 | 2016-12-19T07:33:16.000Z | 2016-12-19T07:33:16.000Z | infer/src/backend/joinState.ml | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | null | null | null | infer/src/backend/joinState.ml | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2016 - 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 file in the same directory.
*)
open! IStd... | 23.666667 | 78 | 0.713028 |
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.