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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bcf117d47cf86559b9aad18d4552ca297e23908a | 15,403 | ml | OCaml | src/stages/5-ast_typed/PP.ml | ligolang/ligo-mirror | 8b491cbb5830071a8ef691f80148382eac1b2937 | [
"MIT"
] | null | null | null | src/stages/5-ast_typed/PP.ml | ligolang/ligo-mirror | 8b491cbb5830071a8ef691f80148382eac1b2937 | [
"MIT"
] | null | null | null | src/stages/5-ast_typed/PP.ml | ligolang/ligo-mirror | 8b491cbb5830071a8ef691f80148382eac1b2937 | [
"MIT"
] | null | null | null | [@@@coverage exclude_file]
module Location = Simple_utils.Location
module Var = Simple_utils.Var
module List = Simple_utils.List
module Ligo_string = Simple_utils.Ligo_string
module Int64 = Caml.Int64
open Types
open Format
open Simple_utils.PP_helpers
include Stage_common.PP
type 'a pretty_pri... | 46.255255 | 189 | 0.664416 |
aa39bed3414135860abcae8ffd89ed49285fbc87 | 1,186 | ml | OCaml | data/derived/comb/progs/unify/prog2670.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/prog2670.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2670.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 rec padZero l1 l2 =
if (List.length l1) > (List.length l2)
then (l1, ((clone 0 ((List.length l1) - (List.length l2))) @ l2))
else (((clone 0 ((List.length l2) - (List.length l1))) @ l1), l2);;
let rec removeZero l =
... | 33.885714 | 78 | 0.507589 |
aabdf9a4bbd27f51d2b0252bf9a18b80f3dab4e9 | 2,084 | ml | OCaml | tests/test.ml | kit-ty-kate/camllzma | 39b1d49cd26494654efc753be2728a9d86a2c6b4 | [
"MIT"
] | 9 | 2021-02-19T20:52:07.000Z | 2021-12-01T02:03:29.000Z | tests/test.ml | kit-ty-kate/camllzma | 39b1d49cd26494654efc753be2728a9d86a2c6b4 | [
"MIT"
] | null | null | null | tests/test.ml | kit-ty-kate/camllzma | 39b1d49cd26494654efc753be2728a9d86a2c6b4 | [
"MIT"
] | null | null | null | module Lzma2 = Camllzma.Lzma2
let fmt = Printf.sprintf
let list_of_bin s =
let len = String.length s in
let rec aux acc i =
if i < len then
aux (int_of_char s.[i] :: acc) (succ i)
else
acc
in
List.rev (aux [] 0)
let printable_bin content =
let content = list_of_bin content in
let cont... | 32.061538 | 79 | 0.630038 |
44df3c69f6fd9f23fc67b374a9042537ab4e2158 | 1,542 | ml | OCaml | rillc/bin/tool/compile/subcommand_ar.ml | yutopp/rill | 375b67c03ab2087d0a2a833bd9e80f3e51e2694f | [
"BSL-1.0"
] | 66 | 2015-01-23T15:18:38.000Z | 2021-02-22T00:21:46.000Z | rillc/bin/tool/compile/subcommand_ar.ml | yutopp/rill | 375b67c03ab2087d0a2a833bd9e80f3e51e2694f | [
"BSL-1.0"
] | 27 | 2016-05-16T14:25:03.000Z | 2021-01-13T13:35:01.000Z | rillc/bin/tool/compile/subcommand_ar.ml | yutopp/rill | 375b67c03ab2087d0a2a833bd9e80f3e51e2694f | [
"BSL-1.0"
] | 10 | 2015-12-28T23:17:24.000Z | 2019-04-28T15:03:55.000Z | (*
* Copyright yutopp 2021 - .
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*)
open! Base
module Flags = struct
open Cmdliner
let cmd : unit Term.t * Term.info =
let docs = Manpage.s_common_opt... | 26.586207 | 78 | 0.57847 |
aab66d79ae975128ff624bccbde160f46c831b25 | 22,353 | ml | OCaml | src/solvers/generic.ml | ozeidan/analyzer | d3e682b7f24e60a6f9c4e44099cdd1d9c0592db6 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | src/solvers/generic.ml | ozeidan/analyzer | d3e682b7f24e60a6f9c4e44099cdd1d9c0592db6 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | src/solvers/generic.ml | ozeidan/analyzer | d3e682b7f24e60a6f9c4e44099cdd1d9c0592db6 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | open Prelude
open GobConfig
open Analyses
(** Convert a an [IneqConstrSys] into an equation system by joining all right-hand sides. *)
module SimpleSysConverter (S:IneqConstrSys)
: sig include EqConstrSys val conv : S.v -> S.v end
with type v = S.v
and type d = S.d
and module Var = S.Var
and module Dom = ... | 32.727672 | 145 | 0.588959 |
8a6c1849b8aa26c154a396971b6965d6ad445717 | 5,617 | ml | OCaml | gen/CArch_gen.ml | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | null | null | null | gen/CArch_gen.ml | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | 4 | 2021-06-29T09:31:26.000Z | 2021-07-02T15:26:56.000Z | gen/CArch_gen.ml | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 24.964444 | 78 | 0.602279 |
aacf86ffe01cfee3da0b7a25e32a6940970dfa97 | 6,862 | ml | OCaml | data/derived/comb/progs/unify/prog7765.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/prog2967.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2967.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
let rec sumListHelper total xs = match xs with
| [] -> total
| hd :: tail -> sumListHelper (total + hd) tail
(*XXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let rec sumList xs= sumListHelper 0 xs
let _ = sumList [1; 2; 3; 4]
let _ = sumList [1; -2; 3; 5]
let _ = sumList [1;... | 24.24735 | 94 | 0.634509 |
aa4f69c0eae28615a574f73fa407b1a0790dc634 | 1,898 | ml | OCaml | src/common/lints/lints.ml | tjmehta/flow | 24cfe90731274817f1f5f1cad1549674db287a4f | [
"MIT"
] | null | null | null | src/common/lints/lints.ml | tjmehta/flow | 24cfe90731274817f1f5f1cad1549674db287a4f | [
"MIT"
] | null | null | null | src/common/lints/lints.ml | tjmehta/flow | 24cfe90731274817f1f5f1cad1549674db287a4f | [
"MIT"
] | 1 | 2018-01-18T10:09:27.000Z | 2018-01-18T10:09:27.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.
*)
type sketchy_null_kind =
| SketchyBool
| SketchyString
| SketchyNumber
| SketchyMixed
type lint_kind =
| SketchyNull of sketc... | 29.65625 | 66 | 0.716017 |
aad370bb75866ccabf34a4fd72c1a0e58568b415 | 136 | mli | OCaml | lib/electron_plumbing/Rectangle.mli | joprice/ocamlectron | 1f8e4d10e5fc6ead5bfa8d9dfdc083c09c5e1c76 | [
"MIT"
] | null | null | null | lib/electron_plumbing/Rectangle.mli | joprice/ocamlectron | 1f8e4d10e5fc6ead5bfa8d9dfdc083c09c5e1c76 | [
"MIT"
] | null | null | null | lib/electron_plumbing/Rectangle.mli | joprice/ocamlectron | 1f8e4d10e5fc6ead5bfa8d9dfdc083c09c5e1c76 | [
"MIT"
] | null | null | null | (** Describe a Rectangle *)
class type rectangle = object
inherit Size.size
inherit Position.position
end
type t = rectangle Js.t | 17 | 30 | 0.735294 |
44a41fd686b1e901dc1ca932e65206ed9f53a734 | 839 | mli | OCaml | hphp/hack/src/typing/type_parameter_env_ops.mli | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/type_parameter_env_ops.mli | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/type_parameter_env_ops.mli | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"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 Env = Typing_env
open Typing_defs
open Typing_env_types
val simplify_tpenv :
env ->
(('a tparam * string... | 27.966667 | 75 | 0.72944 |
bcf0c07f664685b49dcbc9beba61092ed3f10a65 | 5,703 | ml | OCaml | libraries/s3/lib/errors_internal.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/errors_internal.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/errors_internal.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | type t =
| AuthFailure
| Blocked
| BucketAlreadyExists
| DryRunOperation
| IdempotentParameterMismatch
| IncompleteSignature
| InternalFailure
| InvalidAction
| InvalidClientTokenId
| InvalidParameter
| InvalidParameterCombination
| InvalidParameterValue
| InvalidQueryParameter
| MalformedQu... | 32.965318 | 75 | 0.750658 |
bc76eb46099edf2b67d739ad866e69825deb7a26 | 1,149 | ml | OCaml | hphp/hack/src/server/findLocalsService.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/server/findLocalsService.ml | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2020-12-31T09:08:34.000Z | 2021-09-28T05:42:02.000Z | hphp/hack/src/server/findLocalsService.ml | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-10-09T15:14:18.000Z | 2020-10-09T15:14:18.000Z | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Utils
m... | 28.725 | 80 | 0.708442 |
bce9f64f7259f073c122ad254e1aa577bae46e2a | 2,387 | mli | OCaml | src/coq/logicutils/hofs/reducers.mli | uwplse/coq-plugin-lib | 346f674bc54974ba431ac964806211f3d25d22a9 | [
"MIT"
] | 7 | 2019-08-20T15:33:15.000Z | 2021-09-22T17:09:41.000Z | src/coq/logicutils/hofs/reducers.mli | uwplse/coq-plugin-lib | 346f674bc54974ba431ac964806211f3d25d22a9 | [
"MIT"
] | 28 | 2019-07-23T17:28:08.000Z | 2021-03-01T17:51:49.000Z | src/coq/logicutils/hofs/reducers.mli | uwplse/coq-plugin-lib | 346f674bc54974ba431ac964806211f3d25d22a9 | [
"MIT"
] | 1 | 2020-10-09T18:47:12.000Z | 2020-10-09T18:47:12.000Z | (* Strategies for reducing terms *)
open Environ
open Evd
open Constr
type reducer = env -> evar_map -> types -> evar_map * types
type stateless_reducer = env -> evar_map -> types -> types
(* --- Top-level --- *)
(*
* Default reducer (currently betaiotazeta) at term and type level
*)
val reduce_term : reducer
val... | 22.733333 | 77 | 0.703812 |
8afb6e41485d33c92b634f749019a2f21f2a83c6 | 4,167 | ml | OCaml | src/log.ml | rleer/diamondback-ruby | 5df2ff2eac022d5c6a82250810e1169851546dee | [
"BSD-3-Clause"
] | 77 | 2017-07-26T18:25:05.000Z | 2019-05-24T13:44:27.000Z | src/log.ml | rleer/diamondback-ruby | 5df2ff2eac022d5c6a82250810e1169851546dee | [
"BSD-3-Clause"
] | 3 | 2017-10-23T08:28:14.000Z | 2017-10-23T18:53:49.000Z | src/log.ml | rleer/diamondback-ruby | 5df2ff2eac022d5c6a82250810e1169851546dee | [
"BSD-3-Clause"
] | 4 | 2017-10-23T05:18:29.000Z | 2020-01-28T12:26:36.000Z |
open Config
open Format
type pos = Lexing.position
type ctx =
| Ctx_Empty
| Ctx_Pos of pos * ctx
| Ctx_Msg of string * ctx
| Ctx_Merge of ctx * ctx
let empty = Ctx_Empty
let loc pos ctx = Ctx_Pos(pos,ctx)
let of_loc pos = loc pos Ctx_Empty
let msg str ctx = Ctx_Msg(str,ctx)
let of_msg str = msg str Ctx_Emp... | 28.346939 | 77 | 0.641229 |
aac8d061cf5d17598954ec517d6527e4caaea77b | 25,496 | ml | OCaml | src/th-data/Sidekick_th_data.ml | c-cube/cdcl | 4cdbaf17bfa60e166f6404a071f520ed15e97ebe | [
"Apache-2.0"
] | null | null | null | src/th-data/Sidekick_th_data.ml | c-cube/cdcl | 4cdbaf17bfa60e166f6404a071f520ed15e97ebe | [
"Apache-2.0"
] | null | null | null | src/th-data/Sidekick_th_data.ml | c-cube/cdcl | 4cdbaf17bfa60e166f6404a071f520ed15e97ebe | [
"Apache-2.0"
] | null | null | null |
(** Theory for datatypes. *)
include Th_intf
let name = "th-data"
(** An abtract representation of a datatype *)
module type DATA_TY = sig
type t
type cstor
val equal : t -> t -> bool
val finite : t -> bool
val set_finite : t -> bool -> unit
val view : t -> (cstor, t) data_ty_view
val cstor_args ... | 35.166897 | 113 | 0.559421 |
aaae67b4a016f6aa296a126aa5eac7d3bca57b2d | 1,211 | ml | OCaml | src/holyhammer/hh/write.ml | talsewell/HOL | cf6117411499c814fa92f2756179a146b35de043 | [
"BSD-3-Clause"
] | null | null | null | src/holyhammer/hh/write.ml | talsewell/HOL | cf6117411499c814fa92f2756179a146b35de043 | [
"BSD-3-Clause"
] | null | null | null | src/holyhammer/hh/write.ml | talsewell/HOL | cf6117411499c814fa92f2756179a146b35de043 | [
"BSD-3-Clause"
] | null | null | null | (*--------------------------------------------------------------------------- *)
(* Write problems to fof from the axioms' name and the conjecture name *)
(* The hash term_hash used by term_of needs to be initialized beforehand by *)
(* Thf1hh1.parse or init_dep_env or init_acc_env ... | 46.576923 | 88 | 0.590421 |
aabbeaec6fa9ab487982dbe846443967b080be80 | 651 | ml | OCaml | benchmarks/C/formula/sol73.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/formula/sol73.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/formula/sol73.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type formula = True
| False
| Not of formula
| AndAlso of formula * formula
| OrElse of formula * formula
| Imply of formula * formula
| Equal of exp * exp
and exp = Num of int
| Plus of exp * exp
| Minus of exp * exp
let rec expeval (a:exp) =
match a with
Num x -> x
| Plus (x, y) -> expeval(x) + expeval(y)
| Minus (... | 21.7 | 46 | 0.560676 |
aa9a7343b91e9c83501297c4cc01b5fc654b2e38 | 5,854 | ml | OCaml | hphp/hack/src/typing/tast_check/ppl_check.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-17T02:24:38.000Z | 2020-01-17T02:24:38.000Z | hphp/hack/src/typing/tast_check/ppl_check.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/ppl_check.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(* Typing code concerned the <<__PPL>> attribute. *)
open Hh_prelude
open Typing_defs
open Aast
module Cls = Decl_pr... | 32.703911 | 85 | 0.644517 |
aa0c3c15e4b24f92cf565c1c82a6a157fb427d1f | 6,374 | ml | OCaml | LablGlut/examples/glut3.7/test/test17.ml | kit-ty-kate/lablgl | d76e4ac834b6d803e7a6c07c3b71bff0e534614f | [
"BSD-3-Clause"
] | 14 | 2017-10-31T07:51:18.000Z | 2022-01-14T14:19:30.000Z | LablGlut/examples/glut3.7/test/test17.ml | kit-ty-kate/lablgl | d76e4ac834b6d803e7a6c07c3b71bff0e534614f | [
"BSD-3-Clause"
] | 2 | 2019-08-03T10:48:42.000Z | 2022-02-16T18:05:24.000Z | LablGlut/examples/glut3.7/test/test17.ml | kit-ty-kate/lablgl | d76e4ac834b6d803e7a6c07c3b71bff0e534614f | [
"BSD-3-Clause"
] | 2 | 2019-10-09T12:22:54.000Z | 2022-01-13T16:40:46.000Z | #!/usr/bin/env lablglut
(* Ported to lablglut by Issac Trotts on Sun Aug 11 14:55:37 MDT 2002. *)
open Printf
(* Copyright (c) Mark J. Kilgard 1996. *)
(* This program is freely distributable without licensing fees
and is provided without guarantee or warrantee expressed or
implied. This program is -not- i... | 28.58296 | 76 | 0.674929 |
aabbee4ff0af200c7618ab35358671ee24654767 | 7,529 | ml | OCaml | src/polynomial.ml | lrand-nl/smol | bee8068325238148c0191d96e7d6a492cb453d5b | [
"MIT"
] | null | null | null | src/polynomial.ml | lrand-nl/smol | bee8068325238148c0191d96e7d6a492cb453d5b | [
"MIT"
] | null | null | null | src/polynomial.ml | lrand-nl/smol | bee8068325238148c0191d96e7d6a492cb453d5b | [
"MIT"
] | null | null | null | exception Polynomial_is_not_scalar
module Make (Literal : Literal.S) = struct
module Monomial = Monomial.Make (Literal)
module MonomialMap = Map.Make (Monomial)
module LiteralMap = Map.Make (Literal)
type 'a p = 'a MonomialMap.t
module Make_Semiring (K : Algebra.Semiring_S) = struct
type t = K.t p
... | 27.082734 | 86 | 0.565414 |
aaba8fea92bedad69a70e5db15964e42ad4e0888 | 678 | mli | OCaml | src/lib/utils/RecordUtils.mli | NetworkVerification/nv | 0a9d69e08142cd894a1594674edb5fbca7a4f8b8 | [
"MIT"
] | 23 | 2020-03-05T23:45:04.000Z | 2022-01-20T10:28:44.000Z | src/lib/utils/RecordUtils.mli | princedpw/nv | a82b2b4530d41ece98bd39c5d7ecb18c1dfaf9b6 | [
"MIT"
] | 43 | 2018-10-01T13:12:36.000Z | 2020-01-14T17:55:54.000Z | src/lib/utils/RecordUtils.mli | NetworkVerification/nv | 0a9d69e08142cd894a1594674edb5fbca7a4f8b8 | [
"MIT"
] | 2 | 2018-07-12T18:33:19.000Z | 2019-11-30T02:15:07.000Z | open Batteries
open PrimitiveCollections
val print_record : sep:string -> ('a -> string) -> 'a StringMap.t -> string
(* Returns record entries/labels in their canonical order *)
val get_record_labels : 'a StringMap.t -> string list
val get_record_entries : 'a StringMap.t -> 'a list
(* Test if the two maps have the s... | 32.285714 | 75 | 0.70649 |
bc49910d34f270f4e799ed3587c389d7c0911022 | 3,892 | mli | OCaml | src/lib/currency/currency.mli | P7-33/mining | aed227c269042efa4066ff0cf944f96897eda44e | [
"Apache-2.0"
] | 1 | 2022-01-21T01:52:20.000Z | 2022-01-21T01:52:20.000Z | src/lib/currency/currency.mli | P7-33/mining | aed227c269042efa4066ff0cf944f96897eda44e | [
"Apache-2.0"
] | null | null | null | src/lib/currency/currency.mli | P7-33/mining | aed227c269042efa4066ff0cf944f96897eda44e | [
"Apache-2.0"
] | null | null | null | [%%import "/src/config.mlh"]
open Core_kernel
open Intf
[%%ifdef consensus_mechanism]
open Snark_params.Tick
[%%endif]
type uint64 = Unsigned.uint64
module Signed_poly = Signed_poly
module Fee : sig
[%%versioned:
module Stable : sig
module V1 : sig
type t [@@deriving sexp, compare, hash, yojson, eq... | 21.26776 | 75 | 0.615108 |
448fca0e35975caefbb2b5837635cc33e4bc5229 | 15,557 | ml | OCaml | src/state/heaps/parsing/parsing_heaps.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | null | null | null | src/state/heaps/parsing/parsing_heaps.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | null | null | null | src/state/heaps/parsing/parsing_heaps.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Utils_js
module File_sig = File_sig.With_Loc
(* shared heap for parsed ASTs by filename *)
module ASTHeap = SharedMem_js.Wi... | 35.038288 | 99 | 0.735489 |
aad84435af8d52a3108120cf43bcc1d0a0961be8 | 20,295 | ml | OCaml | compiler/scalc/to_python.ml | pnmadelaine/catala | d301e0f434e744fe0557fcd612b841c448eeeaf6 | [
"Apache-2.0"
] | null | null | null | compiler/scalc/to_python.ml | pnmadelaine/catala | d301e0f434e744fe0557fcd612b841c448eeeaf6 | [
"Apache-2.0"
] | null | null | null | compiler/scalc/to_python.ml | pnmadelaine/catala | d301e0f434e744fe0557fcd612b841c448eeeaf6 | [
"Apache-2.0"
] | null | null | null | (* 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... | 46.979167 | 100 | 0.636906 |
aa513c8dec497b866d792f71f76e7a783fd7f933 | 37,337 | ml | OCaml | src/xref2/subst.ml | gpetiot/odoc | da5986d73a66388adae1cc0f77336885d12d4ee8 | [
"0BSD"
] | null | null | null | src/xref2/subst.ml | gpetiot/odoc | da5986d73a66388adae1cc0f77336885d12d4ee8 | [
"0BSD"
] | null | null | null | src/xref2/subst.ml | gpetiot/odoc | da5986d73a66388adae1cc0f77336885d12d4ee8 | [
"0BSD"
] | null | null | null | open Component
exception Invalidated
exception MTOInvalidated
type ('a, 'b) or_replaced = Not_replaced of 'a | Replaced of 'b
type 'a type_or_replaced = ('a, TypeExpr.t * TypeDecl.Equation.t) or_replaced
type 'a module_type_or_replaced = ('a, ModuleType.expr) or_replaced
let map_replaced f = function
| Not_repl... | 34.004554 | 96 | 0.635911 |
4466a32d6d7fe3fef93c92bdfeea1f54e202596f | 15,819 | ml | OCaml | src/asn_ber_der.ml | bogdan2412/ocaml-asn1-combinators | f10fc1d869be293a16a31b272fc71794849007a2 | [
"ISC"
] | 23 | 2015-01-12T22:34:17.000Z | 2021-09-08T11:18:31.000Z | src/asn_ber_der.ml | bogdan2412/ocaml-asn1-combinators | f10fc1d869be293a16a31b272fc71794849007a2 | [
"ISC"
] | 20 | 2015-03-31T14:45:43.000Z | 2020-12-11T07:16:32.000Z | src/asn_ber_der.ml | bogdan2412/ocaml-asn1-combinators | f10fc1d869be293a16a31b272fc71794849007a2 | [
"ISC"
] | 17 | 2015-03-31T14:12:36.000Z | 2022-03-04T11:43:50.000Z | (* Copyright (c) 2014-2017 David Kaloper Meršinjak. All rights reserved.
See LICENSE.md. *)
open Asn_core
module Prim = Asn_prim
module Writer = Asn_writer
module Int64 = Prim.Int64
let (@?) oa a = match oa with Some x -> x | None -> a
module Seq = struct
type 'r f = { f : 'a. 'a -> 'a asn -> 'r -> 'r }
... | 34.24026 | 87 | 0.53284 |
bc682ea2716e8a2093b455adfd9e3a555610e1ac | 30,253 | ml | OCaml | src/proto_012_Psithaca/lib_protocol/test/integration/operations/test_transfer.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_012_Psithaca/lib_protocol/test/integration/operations/test_transfer.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_012_Psithaca/lib_protocol/test/integration/operations/test_transfer.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 40.882432 | 90 | 0.661455 |
aa436cffdda5003d51f779915cf3d38d80fd2bce | 9,438 | ml | OCaml | CPU/ver2/compiler/2nd-mc/lra2.ml | yoshi-ki/BACHELOR | 65d01c62ab2ea4a6d2616a6b6c535bd4f1645630 | [
"MIT"
] | null | null | null | CPU/ver2/compiler/2nd-mc/lra2.ml | yoshi-ki/BACHELOR | 65d01c62ab2ea4a6d2616a6b6c535bd4f1645630 | [
"MIT"
] | null | null | null | CPU/ver2/compiler/2nd-mc/lra2.ml | yoshi-ki/BACHELOR | 65d01c62ab2ea4a6d2616a6b6c535bd4f1645630 | [
"MIT"
] | null | null | null | (* lra.mlのデバッグ用関数+プリント関数群 *)
open Lra
open Enums
open Cfg
open Igraph
open Collect_lr
(* デバッグ用の関数たち *)
let print_lr_info { name = lr; size = n; set = s } =
Printf.printf "name of LR : %s\n" lr;
Printf.printf "size : %d\n" n;
print_string "members : ";
List.iter
(fun x -> Printf.printf "%s, " x) (S.eleme... | 41.213974 | 90 | 0.549587 |
aa958e1661e3347c708e25a86714809abc0c72e4 | 21,967 | ml | OCaml | src/dir_contents.ml | sadiqj/dune | 5e77cdd6c22bb6eb0d519111b6c7ec97c94d9774 | [
"MIT"
] | null | null | null | src/dir_contents.ml | sadiqj/dune | 5e77cdd6c22bb6eb0d519111b6c7ec97c94d9774 | [
"MIT"
] | null | null | null | src/dir_contents.ml | sadiqj/dune | 5e77cdd6c22bb6eb0d519111b6c7ec97c94d9774 | [
"MIT"
] | null | null | null | open! Stdune
open Import
module Menhir_rules = Menhir
open Dune_file
open! No_io
module Executables_modules = struct
type t = Module.Name_map.t
end
module Modules = struct
type t =
{ libraries : Lib_modules.t Lib_name.Map.t
; executables : Executables_modules.t String.Map.t
; (* Map from modules to th... | 35.091054 | 113 | 0.577047 |
aa5038f3648803024eb89ba5ce630d482b47da50 | 40,950 | ml | OCaml | astlib/migrate_406_405.ml | sim642/ppxlib | 770080baac7184326203974599d48cc2035b525e | [
"MIT"
] | null | null | null | astlib/migrate_406_405.ml | sim642/ppxlib | 770080baac7184326203974599d48cc2035b525e | [
"MIT"
] | null | null | null | astlib/migrate_406_405.ml | sim642/ppxlib | 770080baac7184326203974599d48cc2035b525e | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml Migrate Parsetree *)
(* *)
(* ... | 39.912281 | 81 | 0.695214 |
aaa98e40ae36c2729d8b52e825e199636d07f414 | 21,823 | mli | OCaml | CodeHawk/CH/chlib/cHLanguage.mli | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 17 | 2020-08-17T15:35:57.000Z | 2022-03-23T14:40:19.000Z | CodeHawk/CH/chlib/cHLanguage.mli | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 6 | 2020-07-17T05:43:51.000Z | 2021-01-06T03:41:46.000Z | CodeHawk/CH/chlib/cHLanguage.mli | sipma/codehawk | e4eeb41fdea6a8467d1892b9467ec54ef04953b0 | [
"MIT"
] | 3 | 2020-08-13T23:18:39.000Z | 2021-12-11T11:10:06.000Z | (* =============================================================================
CodeHawk Abstract Interpretation Engine
Author: Arnaud Venet
------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2005-2019 Kestrel Technology LLC
Permissio... | 33.781734 | 83 | 0.643816 |
aa9b9d91c55126c72c6442a82036b1d6e308693c | 1,049 | mli | OCaml | libraries/route-53/lib/getQueryLoggingConfig.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/route-53/lib/getQueryLoggingConfig.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/route-53/lib/getQueryLoggingConfig.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<p>Gets information about a specified configuration for DNS query logging.</p> <p>For more information about DNS query logs, see <a href=\"https://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateQueryLoggingConfig.html\">CreateQueryLoggingConfig</a> and <a href=\"https://docs.aws.amazon.com/Route53/lates... | 49.952381 | 387 | 0.736892 |
aad2499d5dadd866454eab369f802f2f340401e4 | 175 | ml | OCaml | tests/types/class/quantified-eq-loopy.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | 1 | 2021-11-23T13:07:37.000Z | 2021-11-23T13:07:37.000Z | tests/types/class/quantified-eq-loopy.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | tests/types/class/quantified-eq-loopy.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | let unsafe_coerce : forall 'a 'b. 'a -> 'b =
let foo : forall 'a 'b. ('a ~ 'b => 'a ~ 'b) => 'a -> 'b =
fun x -> x
fun x -> foo x
let foo : string = unsafe_coerce 10
| 25 | 60 | 0.491429 |
aa8eed04f23de971612424906e110044110dfc53 | 152 | ml | OCaml | tests/__tests__/refmterr/__fixtures__/type_FunctionWrongLabel/type_FunctionWrongLabel_4.ml | prometheansacrifice/reason-native | a33f1528a6dd86c67f365e226c81312733181c87 | [
"MIT"
] | 439 | 2018-11-30T01:07:26.000Z | 2021-01-04T16:18:22.000Z | tests/__tests__/refmterr/__fixtures__/type_FunctionWrongLabel/type_FunctionWrongLabel_4.ml | SNU-Programming-Tools/reason-native | 0ed854f986256e52e59aeecfa90e9af60f105b15 | [
"MIT"
] | 190 | 2018-11-30T00:40:08.000Z | 2020-12-05T01:01:07.000Z | tests/__tests__/refmterr/__fixtures__/type_FunctionWrongLabel/type_FunctionWrongLabel_4.ml | SNU-Programming-Tools/reason-native | 0ed854f986256e52e59aeecfa90e9af60f105b15 | [
"MIT"
] | 35 | 2018-12-04T01:35:16.000Z | 2020-11-13T03:29:43.000Z | let thisFunction ~f args = f ?a:(Some(["hello"])) ~b:(0, 2, 3, 4, 5) ~c:["anotherString"] ()
let result = thisFunction ~f:(fun ~a ~b ~c u -> a + b +c)
| 38 | 92 | 0.546053 |
aaad87f0e6fa9b00c3c8555572dbcafd4699c50a | 88,624 | ml | OCaml | src/typing/type_annotation.ml | TheJKFever/flow | 0891647c93062c25665323c259a8083374ac1348 | [
"MIT"
] | null | null | null | src/typing/type_annotation.ml | TheJKFever/flow | 0891647c93062c25665323c259a8083374ac1348 | [
"MIT"
] | null | null | null | src/typing/type_annotation.ml | TheJKFever/flow | 0891647c93062c25665323c259a8083374ac1348 | [
"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
module Generic_ID = Generic
open Utils_js
open Reason
open Type
open Type... | 41.725047 | 102 | 0.562229 |
aaa7dbc05950188d5e57eaf90ffe5dc861c952fc | 1,928 | ml | OCaml | libraries/cloudformation/lib/deleteStackInstances.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudformation/lib/deleteStackInstances.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/cloudformation/lib/deleteStackInstances.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DeleteStackInstancesInput.t
type output = DeleteStackInstancesOutput.t
type error = Errors_internal.t
let service = "cloudformation"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string
(Aws.Util.of_option... | 31.606557 | 100 | 0.585581 |
aa6f89fa0d5cc3c46bf17e697b11c455a64c5547 | 2,652 | ml | OCaml | trunk/hunpos/trainer.ml | aufziehvogel/hunpos-archive | 5ad702ea12c79dab457af5e070ffec7a5e04d654 | [
"BSD-3-Clause"
] | null | null | null | trunk/hunpos/trainer.ml | aufziehvogel/hunpos-archive | 5ad702ea12c79dab457af5e070ffec7a5e04d654 | [
"BSD-3-Clause"
] | null | null | null | trunk/hunpos/trainer.ml | aufziehvogel/hunpos-archive | 5ad702ea12c79dab457af5e070ffec7a5e04d654 | [
"BSD-3-Clause"
] | null | null | null |
open Getopt
open Printf
let proc_err s =
prerr_string s;
exit 1
;;
let help () =
printf "hunpos-train: train hunpos tagger from corpus\n\n";
printf "Usage: hunpos-train [options] model-file\n\n";
printf "Reads the training set from the stdin and writes the\n";
printf "parameters of the tagger to the mod... | 27.625 | 114 | 0.669683 |
bceb845b2c60dd1547b486c4326229484d390bfc | 3,238 | ml | OCaml | src/utils/file_cache.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 1,031 | 2016-12-16T19:17:17.000Z | 2022-03-24T06:30:52.000Z | src/utils/file_cache.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 754 | 2016-12-16T14:01:33.000Z | 2022-03-31T13:21:16.000Z | src/utils/file_cache.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 177 | 2017-01-04T17:35:53.000Z | 2022-02-18T02:54:14.000Z | (* {{{ COPYING *(
This file is part of Merlin, an helper for ocaml editors
Copyright (C) 2013 - 2015 Frédéric Bour <frederic.bour(_)lakaban.net>
Thomas Refis <refis.thomas(_)gmail.com>
Simon Castellan <simon.castellan(_)iuwt.fr>
Permission is hereby... | 34.446809 | 79 | 0.668005 |
aacfa82203768ee318d0651f99ea463294608e20 | 148 | ml | OCaml | data/derived/comb/progs/unify/prog5563.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/prog0677.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0677.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec wwhile (f,b) =
match f b with | (a,b) -> if not b then a else wwhile (f, a);;
let fixpoint (f,b) = wwhile ((f, (not ((f x) = b))), b);;
| 24.666667 | 64 | 0.52027 |
4482401ad8fb988ffbbea2115b152cd195b7ceb7 | 13,395 | ml | OCaml | src/llvm.ml | ziqiaozhou/llvm2smt | bf0b2fec59a0abb8c1b5541b056a728e53f9d0fa | [
"MIT"
] | 47 | 2015-12-03T08:56:42.000Z | 2021-11-11T15:26:24.000Z | src/llvm.ml | ziqiaozhou/llvm2smt | bf0b2fec59a0abb8c1b5541b056a728e53f9d0fa | [
"MIT"
] | 1 | 2018-04-20T21:53:49.000Z | 2018-04-20T21:53:49.000Z | src/llvm.ml | ziqiaozhou/llvm2smt | bf0b2fec59a0abb8c1b5541b056a728e53f9d0fa | [
"MIT"
] | 15 | 2015-12-29T07:28:25.000Z | 2022-02-11T06:56:44.000Z | (* Copyright (c) 2015, SRI International
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
pu... | 41.215385 | 199 | 0.548712 |
aac5f3d0f825fd8035e589195005f0deaaf2456b | 3,260 | ml | OCaml | data/fa15/2376.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/2376.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/2376.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let getHead h = match h with | [] -> [] | h::t -> h;;
let getTail t = match t with | [] -> [] | h::t -> t;;
let explode s =
let rec go i =
if i >= (String.length s) then [] else (s.[i]) :: (go (i + 1)) in
go 0;;
let rec listReverse l =
match l with | [] -> [] | h::t -> (listReverse t) @ [h];;
let rec mat... | 16.548223 | 77 | 0.48589 |
bc6219c7c6b7fec9d229fd7244988f3444087fa1 | 8,855 | ml | OCaml | infer/src/unit/procCfgTests.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/unit/procCfgTests.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/unit/procCfgTests.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"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! IStd
module F = Format
module BackwardCfg = ProcCfg.Backward (ProcCfg.Normal)
module InstrCfg = ProcCfg.OneInstrPerNode (ProcCfg.No... | 55.34375 | 100 | 0.719255 |
aae5422d759e1b2c8a7e96dbbdfad279ba75f69b | 119 | mli | OCaml | src/lib/authors.mli | jpVinnie/RNAfoldml | ff8e6662b01aab4c2e6e553b6817a1f1084ff055 | [
"MIT"
] | 2 | 2022-03-06T06:42:03.000Z | 2022-03-15T05:47:35.000Z | src/lib/authors.mli | jpVinnie/RNAfoldml | ff8e6662b01aab4c2e6e553b6817a1f1084ff055 | [
"MIT"
] | null | null | null | src/lib/authors.mli | jpVinnie/RNAfoldml | ff8e6662b01aab4c2e6e553b6817a1f1084ff055 | [
"MIT"
] | null | null | null | val names : string list
(** Names of authors. *)
val hours_worked : int
(** Total combined number of hours worked. *)
| 19.833333 | 45 | 0.689076 |
aae1028006542dad8334fc4a0604a3290fcbe44d | 69,350 | ml | OCaml | analysis/preprocessing.ml | rvantonder/pyre-check-1 | 600ec9656ece5fff21598f4248c55089714bf590 | [
"MIT"
] | null | null | null | analysis/preprocessing.ml | rvantonder/pyre-check-1 | 600ec9656ece5fff21598f4248c55089714bf590 | [
"MIT"
] | null | null | null | analysis/preprocessing.ml | rvantonder/pyre-check-1 | 600ec9656ece5fff21598f4248c55089714bf590 | [
"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
open Pyre
open PyreParser
open Statement
let expand_relative_imports ({ Source.qualifier; _ } as source) ... | 39.381034 | 100 | 0.519596 |
aa928eac23bd404d3e9f97e1cfd0ba536affe028 | 3,187 | ml | OCaml | compiler/src/varalloc.ml | basavesh/jasmin | 8f6a1c147b1d4d411862b8ef4d55e827a4eeebf9 | [
"CECILL-B"
] | 88 | 2017-02-22T11:18:11.000Z | 2022-03-25T19:58:06.000Z | compiler/src/varalloc.ml | basavesh/jasmin | 8f6a1c147b1d4d411862b8ef4d55e827a4eeebf9 | [
"CECILL-B"
] | 72 | 2018-10-05T10:56:34.000Z | 2022-03-29T06:54:18.000Z | compiler/src/varalloc.ml | basavesh/jasmin | 8f6a1c147b1d4d411862b8ef4d55e827a4eeebf9 | [
"CECILL-B"
] | 22 | 2017-09-18T14:44:09.000Z | 2022-03-25T11:32:38.000Z | open Utils
open Prog
open Subst
open Liveness
(* ---------------------------------------------------------------------- *)
(* remove dependency of a stack array variable
before its first initialisation *)
let init_lval init x =
match x with
| Lnone _ -> init
| Lvar x -> Sv.add (L.unloc x) ini... | 32.520408 | 78 | 0.588014 |
aacb19416615d73140ec4c22234d16a6a5691ff8 | 5,165 | ml | OCaml | src/tool/sysm.ml | dbuenzli/webglue | 439831870aebc96a120763ad642d1aa6db58a857 | [
"0BSD"
] | 2 | 2015-02-27T17:38:01.000Z | 2020-10-22T01:28:55.000Z | src/tool/sysm.ml | dbuenzli/webglue | 439831870aebc96a120763ad642d1aa6db58a857 | [
"0BSD"
] | null | null | null | src/tool/sysm.ml | dbuenzli/webglue | 439831870aebc96a120763ad642d1aa6db58a857 | [
"0BSD"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2011 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)
open... | 37.977941 | 79 | 0.619748 |
aae01e8d210addb0a8328bc9fb597362a7295d8e | 2,467 | ml | OCaml | src/lib/coda_base/receipt.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | 1 | 2022-03-21T15:43:42.000Z | 2022-03-21T15:43:42.000Z | src/lib/coda_base/receipt.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/receipt.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | open Core
open Snark_params.Tick
open Fold_lib
module Chain_hash = struct
include Data_hash.Make_full_size ()
let to_string t = Binable.to_string (module Stable.V1) t |> B64.encode
let of_string s = B64.decode s |> Binable.of_string (module Stable.V1)
include Codable.Make_of_string (struct
type nonrec t... | 29.369048 | 80 | 0.642075 |
aaa906754fd86bcb06f8a8eb623d7e0870bbd0bb | 164 | ml | OCaml | hollight/valid/mathd-algebra-159.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 102 | 2021-05-04T09:50:13.000Z | 2022-03-27T12:00:05.000Z | hollight/valid/mathd-algebra-159.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 49 | 2021-05-06T09:36:49.000Z | 2022-03-31T18:58:23.000Z | hollight/valid/mathd-algebra-159.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 17 | 2021-05-06T09:04:02.000Z | 2022-03-29T11:25:46.000Z | let mathd-algebra-159 = `!b:real f:real->real.
(!x. f x = &3 * x pow 4 - &7 * x pow 3 + &2 * x pow 2 - b * x + &1) /\
(f (&1) = &1)
==>
(b = -- &2)
`;;
| 23.428571 | 74 | 0.371951 |
bc48b7b2c8de7c11ddd4a66c43c52428b04b45ec | 3,364 | ml | OCaml | src/core/ledger.ml | marigold-dev/deku | 13de26e5017646c3d86b937ca4b11c0baed84f39 | [
"MIT"
] | 30 | 2021-10-05T02:08:06.000Z | 2022-03-30T10:48:01.000Z | src/core/ledger.ml | marigold-dev/deku | 13de26e5017646c3d86b937ca4b11c0baed84f39 | [
"MIT"
] | 191 | 2021-09-21T05:54:54.000Z | 2022-03-31T13:31:45.000Z | src/core/ledger.ml | marigold-dev/deku | 13de26e5017646c3d86b937ca4b11c0baed84f39 | [
"MIT"
] | 12 | 2021-09-30T22:01:30.000Z | 2022-03-26T02:21:53.000Z | open Helpers
open Crypto
module Address_and_ticket_map = struct
type key = {
address : Key_hash.t;
ticket : Ticket_id.t;
}
[@@deriving ord, yojson]
module Map = Map.Make_with_yojson (struct
type t = key [@@deriving ord, yojson]
end)
type t = Amount.t Map.t [@@deriving yojson]
let empty = Map.e... | 31.148148 | 80 | 0.708383 |
bcf607bdc337dc95a6409d9c4bf83ce19049794a | 499 | ml | OCaml | compiler/table.ml | a-vorontsov/6ccs3prj | 366ae0e6332b6811bbe415bd5cf60d4dcfc4a70a | [
"MIT"
] | 3 | 2020-12-17T20:56:57.000Z | 2021-02-19T16:31:08.000Z | compiler/table.ml | a-vorontsov/6ccs3prj | 366ae0e6332b6811bbe415bd5cf60d4dcfc4a70a | [
"MIT"
] | null | null | null | compiler/table.ml | a-vorontsov/6ccs3prj | 366ae0e6332b6811bbe415bd5cf60d4dcfc4a70a | [
"MIT"
] | 1 | 2021-04-19T17:00:56.000Z | 2021-04-19T17:00:56.000Z | class table =
object (self)
val mutable counter = 0
val tbl = Hashtbl.create 32
method inc = counter <- counter + 1
method insert (name : string) : int =
match Hashtbl.find_opt tbl name with
| Some _ -> exit (-1)
| None ->
let var' = counter in
Hashtbl.add tbl ... | 22.681818 | 63 | 0.569138 |
aacb3acf340b4d629b4ca63fb2ccc257d1e08e56 | 11,433 | ml | OCaml | hphp/hack/src/decl/shallow_decl.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/shallow_decl.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/shallow_decl.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Decl_defs
open Decl_fun_utils
open Shallow_decl_defs
open Aast
open Typing_deps
open Typing_def... | 31.758333 | 80 | 0.67034 |
aa74adb4e30ca5c58e3cd84fb4597be6a7a24e9f | 18,393 | ml | OCaml | examples/cvodes/serial/cvsHessian_ASA_FSA.ml | jun0/sundialsml | cd261d74ff9cd9bf2db95ef1fe6abc5b2aed985d | [
"BSD-3-Clause"
] | null | null | null | examples/cvodes/serial/cvsHessian_ASA_FSA.ml | jun0/sundialsml | cd261d74ff9cd9bf2db95ef1fe6abc5b2aed985d | [
"BSD-3-Clause"
] | null | null | null | examples/cvodes/serial/cvsHessian_ASA_FSA.ml | jun0/sundialsml | cd261d74ff9cd9bf2db95ef1fe6abc5b2aed985d | [
"BSD-3-Clause"
] | null | null | null | (*
* -----------------------------------------------------------------
* $Revision: 1.2 $
* $Date: 2010/12/01 22:57:59 $
* -----------------------------------------------------------------
* Programmer(s): Radu Serban @ LLNL
* -----------------------------------------------------------------
* OCaml port: Timot... | 31.387372 | 84 | 0.497581 |
aadd77994b3b625f7a6c283c6ea0549e1a2c0e43 | 68,191 | ml | OCaml | src/dune/build_system.ml | progman1/dune | e937feef4fb03d83bd551489420a557a5a6fc1c0 | [
"MIT"
] | null | null | null | src/dune/build_system.ml | progman1/dune | e937feef4fb03d83bd551489420a557a5a6fc1c0 | [
"MIT"
] | null | null | null | src/dune/build_system.ml | progman1/dune | e937feef4fb03d83bd551489420a557a5a6fc1c0 | [
"MIT"
] | null | null | null | open! Stdune
open Import
open Fiber.O
let () = Hooks.End_of_build.always Memo.reset
module Fs : sig
val mkdir_p : Path.Build.t -> unit
(** Creates directory if inside build path, otherwise asserts that directory
exists. *)
val mkdir_p_or_check_exists : loc:Loc.t -> Path.t -> unit
val assert_exists : l... | 34.509615 | 83 | 0.602646 |
bcc67b64f3cbad77d81eb661d74cebd1526d2d2b | 777 | mli | OCaml | compiler/src/safety/safetyPreanalysis.mli | basavesh/jasmin | 8f6a1c147b1d4d411862b8ef4d55e827a4eeebf9 | [
"CECILL-B"
] | 88 | 2017-02-22T11:18:11.000Z | 2022-03-25T19:58:06.000Z | compiler/src/safety/safetyPreanalysis.mli | basavesh/jasmin | 8f6a1c147b1d4d411862b8ef4d55e827a4eeebf9 | [
"CECILL-B"
] | 72 | 2018-10-05T10:56:34.000Z | 2022-03-29T06:54:18.000Z | compiler/src/safety/safetyPreanalysis.mli | basavesh/jasmin | 8f6a1c147b1d4d411862b8ef4d55e827a4eeebf9 | [
"CECILL-B"
] | 22 | 2017-09-18T14:44:09.000Z | 2022-03-25T11:32:38.000Z | open Prog
type minfo = { i_instr_number : int; }
module MkUniq : sig
val mk_uniq :
unit func -> unit prog -> minfo func * minfo prog
end
module Pa : sig
type dp = Sv.t Mv.t
type cfg = Sf.t Mf.t
type pa_res = {
pa_dp : dp;
pa_cfg : cfg;
while_vars : Sv.t;
if_conds : ty gexpr list;
}
va... | 23.545455 | 67 | 0.559846 |
bc16f07084aa0693b90b4cd1f9d4f2d8030ea4a5 | 4,660 | ml | OCaml | src/dune_rules/test_rules.ml | hyphenrf/dune | 0ecdf454ea4db89453b26a6b73cf96506697b4ac | [
"MIT"
] | 245 | 2016-12-02T14:13:32.000Z | 2018-01-14T20:00:40.000Z | src/dune_rules/test_rules.ml | hyphenrf/dune | 0ecdf454ea4db89453b26a6b73cf96506697b4ac | [
"MIT"
] | 380 | 2017-01-28T18:46:52.000Z | 2018-01-17T13:34:51.000Z | src/dune_rules/test_rules.ml | hyphenrf/dune | 0ecdf454ea4db89453b26a6b73cf96506697b4ac | [
"MIT"
] | 59 | 2016-12-02T13:58:19.000Z | 2018-01-06T18:23:02.000Z | open! Dune_engine
open Import
open! No_io
let rules (t : Dune_file.Tests.t) ~sctx ~dir ~scope ~expander ~dir_contents =
let test_kind (loc, name) =
let files = Dir_contents.text_files dir_contents in
let expected_basename = name ^ ".expected" in
if String.Set.mem files expected_basename then
`Expec... | 38.196721 | 81 | 0.488197 |
aac0bfca255405fbe695069d321ac7ce527449e6 | 2,041 | ml | OCaml | src/day_10b.ml | ghostrider77/adventOfCode-2018 | 12585cd473330184f248a51a764c635d4932e9bd | [
"MIT"
] | null | null | null | src/day_10b.ml | ghostrider77/adventOfCode-2018 | 12585cd473330184f248a51a764c635d4932e9bd | [
"MIT"
] | null | null | null | src/day_10b.ml | ghostrider77/adventOfCode-2018 | 12585cd473330184f248a51a764c635d4932e9bd | [
"MIT"
] | null | null | null | type coordinate = {x: int; y: int}
type point = {position: coordinate; v_x: int; v_y: int}
type bounding_box = {x_min: int; x_max: int; y_min: int; y_max: int}
let read_lines (filename: string): string list =
let channel = open_in filename in
let rec loop (acc: string list): string list =
try
... | 39.25 | 119 | 0.659481 |
aa2ef59c1935c731d98ea3d9e87cfd9e38486662 | 2,963 | mly | OCaml | tools/rfsmlint/parsers.mly | jserot/rfsm-light | 891885c4986a2ab604145cac8ea303cda0229ffa | [
"MIT"
] | null | null | null | tools/rfsmlint/parsers.mly | jserot/rfsm-light | 891885c4986a2ab604145cac8ea303cda0229ffa | [
"MIT"
] | 8 | 2019-07-09T12:01:35.000Z | 2021-09-22T14:41:07.000Z | tools/rfsmlint/parsers.mly | jserot/rfsm-light | 891885c4986a2ab604145cac8ea303cda0229ffa | [
"MIT"
] | null | null | null | %token <int> INT
%token <bool> BOOL
%token <string> LID
%token <string> UID
%token PERIODIC
%token SPORADIC
%token VALUECHANGES
%token DOT
(* %token COMMA *)
%token COLON
%token COLONCOLON
%token EQUAL
%token NOTEQUAL
%token LPAREN
%token RPAREN
%token LT
%token GT
%token LTE
%token GTE
%token PLUS MINUS TIMES DIV
%tok... | 20.72028 | 73 | 0.553493 |
aa8383efb2d53e866651c3b62ecf92a9a3d628aa | 2,737 | mli | OCaml | hphp/hack/src/client/clientConnect.mli | fyunaz/hhvm | fc52cae6762431395818de9edbb0b918167c4b65 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-05-15T22:07:47.000Z | 2021-05-15T22:07:47.000Z | hphp/hack/src/client/clientConnect.mli | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-08-21T07:48:37.000Z | 2021-08-21T07:48:37.000Z | hphp/hack/src/client/clientConnect.mli | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"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.
*
*)
(** If the server dies through a controlled exit, it leaves behind a "finale file" <pid>.fin
with json-formatted data describi... | 35.545455 | 96 | 0.74863 |
aab38a0cb514ada99a65e27c0ce407634f3e9993 | 2,754 | ml | OCaml | hphp/hack/src/typing/typing_lazy_heap.ml | gaurav1086/hhvm | 44b0edc7a9186a4ccc04ecbba0f5cf52619d37e0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_lazy_heap.ml | gaurav1086/hhvm | 44b0edc7a9186a4ccc04ecbba0f5cf52619d37e0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_lazy_heap.ml | gaurav1086/hhvm | 44b0edc7a9186a4ccc04ecbba0f5cf52619d37e0 | [
"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
let check_cache_consistency x expected_kind expected_result =
if
Relative_path.equal expected... | 29.297872 | 78 | 0.668845 |
aae57c45f057c0faf0f910039ffcaf4e9dc905e8 | 15,001 | ml | OCaml | src/core/Literals.ml | dillonhuff/zipperposition | 698ab26a214d1acd059934269424e264ced183bf | [
"BSD-2-Clause"
] | null | null | null | src/core/Literals.ml | dillonhuff/zipperposition | 698ab26a214d1acd059934269424e264ced183bf | [
"BSD-2-Clause"
] | null | null | null | src/core/Literals.ml | dillonhuff/zipperposition | 698ab26a214d1acd059934269424e264ced183bf | [
"BSD-2-Clause"
] | null | null | null |
(* This file is free software, part of Zipperposition. See file "license" for more details. *)
(** {1 Array of literals} *)
module BV = CCBV
module T = Term
module S = Subst
module Lit = Literal
type term = Term.t
type t = Literal.t array
let prof_maxlits = ZProf.make "lits.maxlits"
let equal lits1 lits2 =
let... | 29.529528 | 98 | 0.617959 |
44deeeb3e2e6e296b6bde306c83fdd8aa29fe967 | 2,789 | ml | OCaml | src/common/lwt/__tests__/lwtTimeout_test.ml | zhangmaijun/flow | f60e2a745b06f6f0739a4e4518eb5e2481f9e011 | [
"MIT"
] | 20,996 | 2015-01-01T13:51:47.000Z | 2022-03-31T17:44:01.000Z | src/common/lwt/__tests__/lwtTimeout_test.ml | zhangmaijun/flow | f60e2a745b06f6f0739a4e4518eb5e2481f9e011 | [
"MIT"
] | 8,315 | 2015-01-01T19:56:43.000Z | 2022-03-31T15:58:10.000Z | src/common/lwt/__tests__/lwtTimeout_test.ml | zhangmaijun/flow | f60e2a745b06f6f0739a4e4518eb5e2481f9e011 | [
"MIT"
] | 2,338 | 2015-01-05T03:28:26.000Z | 2022-03-26T20:40:56.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open OUnit2
open Lwt_test_utils
let tests =
"LwtTimeout.with_timeout"
>::: [
( "no_timeout" %>:: fun ctxt ->
... | 35.303797 | 92 | 0.549301 |
aad965b533d0b1fb0c16502386928cc9f9d0096e | 18,129 | ml | OCaml | src/model/semantics.ml | gpetiot/odoc | da5986d73a66388adae1cc0f77336885d12d4ee8 | [
"0BSD"
] | null | null | null | src/model/semantics.ml | gpetiot/odoc | da5986d73a66388adae1cc0f77336885d12d4ee8 | [
"0BSD"
] | null | null | null | src/model/semantics.ml | gpetiot/odoc | da5986d73a66388adae1cc0f77336885d12d4ee8 | [
"0BSD"
] | null | null | null | module Location = Location_
module Ast = Odoc_parser.Ast
type internal_tags_removed =
[ `Tag of Ast.ocamldoc_tag
| `Heading of Ast.heading
| Ast.nestable_block_element ]
(** {!Ast.block_element} without internal tags. *)
type _ handle_internal_tags =
| Expect_status
: [ `Default | `Inline | `Open | `Clo... | 36.258 | 82 | 0.641679 |
aae841c3d353a155898ed4ac65b65ce9ec4a365e | 5,111 | ml | OCaml | herd/opts.ml | ambroise-arm/herdtools7 | 9df11f822b2957f427e1324680dc9cd3f680762f | [
"CECILL-B"
] | null | null | null | herd/opts.ml | ambroise-arm/herdtools7 | 9df11f822b2957f427e1324680dc9cd3f680762f | [
"CECILL-B"
] | null | null | null | herd/opts.ml | ambroise-arm/herdtools7 | 9df11f822b2957f427e1324680dc9cd3f680762f | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 29.888889 | 78 | 0.620231 |
bc942b1f32e083d40e05b63f83244464cf8ecd9b | 2,896 | mli | OCaml | src/parser_utils/output/js_layout_generator.mli | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | 1 | 2021-09-08T08:06:58.000Z | 2021-09-08T08:06:58.000Z | src/parser_utils/output/js_layout_generator.mli | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | null | null | null | src/parser_utils/output/js_layout_generator.mli | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"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.
*)
type expression_context = {
left: expression_context_left;
group: expression_context_group;
}
and expression_context_left =
... | 30.808511 | 99 | 0.75587 |
aa2fe6844bc8873576dbf96eb3ec7ebf18618f97 | 1,538 | ml | OCaml | src/GlobalNames.ml | master-q/kremlin | a0e7eebb5db41388c304a5b63899973e839bb976 | [
"Apache-2.0"
] | null | null | null | src/GlobalNames.ml | master-q/kremlin | a0e7eebb5db41388c304a5b63899973e839bb976 | [
"Apache-2.0"
] | null | null | null | src/GlobalNames.ml | master-q/kremlin | a0e7eebb5db41388c304a5b63899973e839bb976 | [
"Apache-2.0"
] | null | null | null | (** All global names must be valid C identifiers and globally-unique... *)
open Warnings
open Idents
let c_of_original = Hashtbl.create 41
let used_c_names: (string, unit) Hashtbl.t = Hashtbl.create 41
let record original_name desired_name =
match Hashtbl.find c_of_original original_name with
| exception Not_fou... | 19.974026 | 77 | 0.605332 |
aa6f0ed8897bc29bef339ac3e415febdc4e197fa | 208 | ml | OCaml | ch09_higher_order_function/lib/core.ml | mingyuchoo/ocaml-study-series | 2aca2d56d2bc12e90abf270069b6ac601df6a450 | [
"MIT"
] | null | null | null | ch09_higher_order_function/lib/core.ml | mingyuchoo/ocaml-study-series | 2aca2d56d2bc12e90abf270069b6ac601df6a450 | [
"MIT"
] | null | null | null | ch09_higher_order_function/lib/core.ml | mingyuchoo/ocaml-study-series | 2aca2d56d2bc12e90abf270069b6ac601df6a450 | [
"MIT"
] | null | null | null | open List
let add1 x y = x + y
let add2 = fun x -> fun y -> x + y
let rec mapl1 f l =
match l with
[] -> []
| h::t -> map f h :: mapl1 f t
let mapl2 f l = map (map f) l
let mapl3 f = map (map f)
| 13.866667 | 34 | 0.514423 |
aa9ea732a3d235fa4cba0456319b3d2a6f0b0d33 | 855 | ml | OCaml | src/lib/coda_base/proof.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | 1 | 2022-03-21T15:43:42.000Z | 2022-03-21T15:43:42.000Z | src/lib/coda_base/proof.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/proof.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | open Core
open Snark_params
module Stable = struct
module V1 = struct
(* TODO: This should be stable. *)
module T = struct
type t = Tock.Proof.t
let to_string = Tock_backend.Proof.to_string
let of_string = Tock_backend.Proof.of_string
end
include T
include Sexpable.Of_stringa... | 24.428571 | 80 | 0.688889 |
aae2b6375a408d5acef33fa578c5eb4cd4013449 | 403 | mli | OCaml | hphp/hack/src/server/serverHighlightRefs.mli | MaxSem/hhvm | 8e8544c324e0157404374cf313a237bfa70b35d4 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverHighlightRefs.mli | MaxSem/hhvm | 8e8544c324e0157404374cf313a237bfa70b35d4 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverHighlightRefs.mli | 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.
*
*)
type result =... | 28.785714 | 80 | 0.709677 |
bcec7ff8e98fb3dbf0bf078daa816d67aaca80bc | 776 | mli | OCaml | src/typing/type_inference_js.mli | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | 1 | 2020-07-08T17:40:26.000Z | 2020-07-08T17:40:26.000Z | src/typing/type_inference_js.mli | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | 2 | 2021-09-02T16:30:33.000Z | 2021-09-02T16:30:34.000Z | src/typing/type_inference_js.mli | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"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.
*)
(* Lint suppressions are handled iff lint_severities is Some. *)
val infer_ast :
lint_severities:Severity.severity LintSettings.t... | 29.846154 | 66 | 0.717784 |
aa3ddd38ee2eaad5d8ace2cec9c6e294bfcaef87 | 2,657 | ml | OCaml | src/util.ml | icefoxen/games-starmaze | 3180a967e7b15f00cea644c179a1f0d9957953a1 | [
"MIT"
] | null | null | null | src/util.ml | icefoxen/games-starmaze | 3180a967e7b15f00cea644c179a1f0d9957953a1 | [
"MIT"
] | null | null | null | src/util.ml | icefoxen/games-starmaze | 3180a967e7b15f00cea644c179a1f0d9957953a1 | [
"MIT"
] | null | null | null | (* util.ml
Basic utility junk and global vars.
Simon Heath
*)
open Sdlvideo;;
let screenx = ref 800;;
let screeny = ref 600;;
let logscreenx = ref 0.;;
let logscreeny = ref 0.;;
let logscreenw = ref 0.;;
let logscreenh = ref 0.;;
let timecompress = ref 1;;
let gravity = ref (-0.10);;
let gravlimit = ref ... | 17.480263 | 74 | 0.56003 |
bc9e34f1dfad37b8717384ff54766c5c45b37969 | 1,409 | mli | OCaml | lib/txtLoc.mli | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | 103 | 2016-11-28T10:00:41.000Z | 2022-03-08T05:06:00.000Z | lib/txtLoc.mli | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | 193 | 2017-02-28T19:04:04.000Z | 2022-03-25T14:33:24.000Z | lib/txtLoc.mli | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"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... | 48.586207 | 78 | 0.430092 |
aac3226c8b58e814c7c64b41eed67a5c7fc489f6 | 2,035 | ml | OCaml | src/day8.ml | matej23/Advent_of_code_2021 | b0f7d82b28aaa9d8250ef762c10ddb3ab7bfac5b | [
"MIT"
] | null | null | null | src/day8.ml | matej23/Advent_of_code_2021 | b0f7d82b28aaa9d8250ef762c10ddb3ab7bfac5b | [
"MIT"
] | null | null | null | src/day8.ml | matej23/Advent_of_code_2021 | b0f7d82b28aaa9d8250ef762c10ddb3ab7bfac5b | [
"MIT"
] | null | null | null | let rec split_on str_lst_full = match str_lst_full with
|[] -> []
|x :: xs -> List.map String.trim (String.split_on_char '|' x) :: split_on xs
let rec get_substrings lst_of_lst_str new_list = match lst_of_lst_str with
|x :: xs ->
get_substrings xs((String.split_on_char ' ' (List.nth x 1)) @ new_list)
|_ ->... | 42.395833 | 170 | 0.685504 |
44aa15693d0d5a90f44e50419283035324aa82df | 4,765 | ml | OCaml | frameworks/OCaml/httpaf/httpaf_unix.ml | huanshankeji/FrameworkBenchmarks | b77811ced4e67acda0a39fd339b1e318d31f14c0 | [
"BSD-3-Clause"
] | 5,300 | 2015-01-02T08:04:20.000Z | 2022-03-31T10:08:33.000Z | frameworks/OCaml/httpaf/httpaf_unix.ml | huanshankeji/FrameworkBenchmarks | b77811ced4e67acda0a39fd339b1e318d31f14c0 | [
"BSD-3-Clause"
] | 3,075 | 2015-01-01T05:11:45.000Z | 2022-03-31T23:56:33.000Z | frameworks/OCaml/httpaf/httpaf_unix.ml | huanshankeji/FrameworkBenchmarks | b77811ced4e67acda0a39fd339b1e318d31f14c0 | [
"BSD-3-Clause"
] | 2,151 | 2015-01-02T14:16:09.000Z | 2022-03-30T00:15:26.000Z | open Lwt.Infix
open Httpaf
open Httpaf_lwt_unix
(* Dates *)
let get_date () = Unix.(gettimeofday () |> gmtime)
let dow = function
| 0 -> "Sun"
| 1 -> "Mon"
| 2 -> "Tue"
| 3 -> "Wed"
| 4 -> "Thu"
| 5 -> "Fri"
| _ -> "Sat"
let month = function
| 0 -> "Jan"
| 1 -> "Feb"
| 2 -> "Mar"
| 3 -> "Apr"
... | 26.325967 | 79 | 0.578594 |
4408de74ac1e57fac8858f626ee85ba30801a015 | 2,206 | ml | OCaml | tools/mshowhashes.ml | csgordon/herdtools7 | 0b068a7e84eff5edcf3ed495c640d525cd65c545 | [
"CECILL-B"
] | null | null | null | tools/mshowhashes.ml | csgordon/herdtools7 | 0b068a7e84eff5edcf3ed495c640d525cd65c545 | [
"CECILL-B"
] | null | null | null | tools/mshowhashes.ml | csgordon/herdtools7 | 0b068a7e84eff5edcf3ed495c640d525cd65c545 | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 32.441176 | 78 | 0.459655 |
aa48cafb9ec0bbdfe8cae324cc29cb77ec2aaa59 | 843 | mli | OCaml | code/Flags.mli | ycechungAI/rxxr2 | 154a62e284d7bc4b96c149b3d4fcf75be0288b9e | [
"Unlicense"
] | 86 | 2019-10-23T08:28:38.000Z | 2022-03-25T07:35:12.000Z | code/Flags.mli | ycechungAI/rxxr2 | 154a62e284d7bc4b96c149b3d4fcf75be0288b9e | [
"Unlicense"
] | 11 | 2020-01-07T18:40:57.000Z | 2022-02-26T21:14:32.000Z | code/Flags.mli | ycechungAI/rxxr2 | 154a62e284d7bc4b96c149b3d4fcf75be0288b9e | [
"Unlicense"
] | 13 | 2019-10-28T04:03:18.000Z | 2022-03-25T16:03:58.000Z | (* © Copyright University of Birmingham, UK *)
(* internal representation of flags *)
type t;;
(* various flags used during the analysis phase *)
val empty : t;;
val interrupted : t;; (* analysis interrupted due to unsupported constructs *)
val accepting : t;; (* accpeting state found *)
val klnhit : t;; (* kleene fo... | 27.193548 | 78 | 0.644128 |
aa7e9223e43745835de3304eab946c8de74f844c | 25,915 | ml | OCaml | src/proto_alpha/lib_delegate/baking_state.ml | Sudha247/tezos | 63361867c3b3c18c530f5636254a0c5541dc041e | [
"MIT"
] | null | null | null | src/proto_alpha/lib_delegate/baking_state.ml | Sudha247/tezos | 63361867c3b3c18c530f5636254a0c5541dc041e | [
"MIT"
] | null | null | null | src/proto_alpha/lib_delegate/baking_state.ml | Sudha247/tezos | 63361867c3b3c18c530f5636254a0c5541dc041e | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 Nomadic Labs <contact@nomadic-labs.com> *)
... | 31.374092 | 82 | 0.643913 |
aabcabbfd1647cd5ac437adbf5f8549074f37ed6 | 3,630 | ml | OCaml | compiler/parser/ocaml/ast.ml | jrayzero/seq | db6a7b35e0463d87e9a974eb1f4fe6b2e2c7f578 | [
"Apache-2.0"
] | null | null | null | compiler/parser/ocaml/ast.ml | jrayzero/seq | db6a7b35e0463d87e9a974eb1f4fe6b2e2c7f578 | [
"Apache-2.0"
] | null | null | null | compiler/parser/ocaml/ast.ml | jrayzero/seq | db6a7b35e0463d87e9a974eb1f4fe6b2e2c7f578 | [
"Apache-2.0"
] | null | null | null | (* *****************************************************************************
* Seqaml.Ast_pos: AST annotations
*
* Author: inumanag
* License: see LICENSE
* *****************************************************************************)
(** Annotated type specification. *)
type 'a ann = (Lexing.position * Lexi... | 27.5 | 92 | 0.622865 |
bcea19fe129930ec9bff372128d4974cbcef07b7 | 32,758 | ml | OCaml | src/lib.ml | lpw25/dune-effects | fd31f381b43e02a3bf9bfd3e0d29f0d377f4a10f | [
"Apache-2.0"
] | 3 | 2020-09-06T21:32:35.000Z | 2020-09-08T14:27:27.000Z | src/lib.ml | lpw25/dune-effects | fd31f381b43e02a3bf9bfd3e0d29f0d377f4a10f | [
"Apache-2.0"
] | null | null | null | src/lib.ml | lpw25/dune-effects | fd31f381b43e02a3bf9bfd3e0d29f0d377f4a10f | [
"Apache-2.0"
] | null | null | null | open Import
open Result.O
(* +-----------------------------------------------------------------+
| Raw library information |
+-----------------------------------------------------------------+ *)
module Status = struct
type t =
| Installed
| Public
| Private... | 30.219557 | 80 | 0.545607 |
44067beb11115afa91dbba99c2adec1a35239c92 | 23,249 | ml | OCaml | compiler/dcalc/typing.ml | isovector/catala | 5663c616fdb124ac469f72cd5429fe92cdde1ed0 | [
"Apache-2.0"
] | null | null | null | compiler/dcalc/typing.ml | isovector/catala | 5663c616fdb124ac469f72cd5429fe92cdde1ed0 | [
"Apache-2.0"
] | null | null | null | compiler/dcalc/typing.ml | isovector/catala | 5663c616fdb124ac469f72cd5429fe92cdde1ed0 | [
"Apache-2.0"
] | null | null | null | (* 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... | 40.153713 | 82 | 0.588412 |
aa0a2febea278b4a86f11e27f7683eda4dfb1179 | 2,619 | ml | OCaml | data/sp14/3482.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/3482.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/3482.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr;;
let rec eval (e,x,y) =
match e with
| VarX -> x
| VarY -> y
| Sine expr0 -> sin (eval (expr0, x, y))
| Cosine expr0 -> cos (eval (expr0, x, y))
| Ave... | 18.841727 | 71 | 0.508591 |
aadee744602163c90fa71b04d0a6b0944e44e3b9 | 13,978 | ml | OCaml | gen/MIPSCompile_gen.ml | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | null | null | null | gen/MIPSCompile_gen.ml | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | 4 | 2021-06-29T09:31:26.000Z | 2021-07-02T15:26:56.000Z | gen/MIPSCompile_gen.ml | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 31.913242 | 87 | 0.553012 |
aa58229a57d8646d19c8f0764d6d0ee93cf098f6 | 29,367 | mli | OCaml | vendors/irmin/irmin.mli | Shikanime/Tezos | 3f4be780d80337454518b7fed424520c1a0a5c3c | [
"MIT"
] | null | null | null | vendors/irmin/irmin.mli | Shikanime/Tezos | 3f4be780d80337454518b7fed424520c1a0a5c3c | [
"MIT"
] | null | null | null | vendors/irmin/irmin.mli | Shikanime/Tezos | 3f4be780d80337454518b7fed424520c1a0a5c3c | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2013-2017 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 33.794016 | 83 | 0.631048 |
aaea9daf1b25ed490d5d46351221b9810f592b94 | 8,803 | ml | OCaml | data/derived/comb/progs/unify/prog7565.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/prog2760.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2760.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.675758 | 148 | 0.655004 |
bcdd65ef71b0955bec50f896026a84e2342a9da7 | 2,349 | ml | OCaml | analysis/test/resolutionTest.ml | ucdstudent95618/pyre-check | 032c67c5b75d573e0f645545b01c0f0f30475ed7 | [
"MIT"
] | null | null | null | analysis/test/resolutionTest.ml | ucdstudent95618/pyre-check | 032c67c5b75d573e0f645545b01c0f0f30475ed7 | [
"MIT"
] | null | null | null | analysis/test/resolutionTest.ml | ucdstudent95618/pyre-check | 032c67c5b75d573e0f645545b01c0f0f30475ed7 | [
"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 Analysis
open Ast
open Pyre
open Statement
open Test
let test_set_local _ =
let assert_local ~resolution ~ac... | 28.646341 | 99 | 0.693912 |
aa5c147169efc2ae5ec9c7f2d008e5e7b0ce1ce2 | 4,958 | ml | OCaml | hphp/hack/src/server/serverCoverageMetric.ml | jthemphill/hhvm | 29b7fafaeecd83b817e31bbe11a591aa78a6c879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverCoverageMetric.ml | jthemphill/hhvm | 29b7fafaeecd83b817e31bbe11a591aa78a6c879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverCoverageMetric.ml | jthemphill/hhvm | 29b7fafaeecd83b817e31bbe11a591aa78a6c879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Coverage_level
open Coverage_level_defs
open Option.Monad_infix
open Reordered_argument_collect... | 30.9875 | 80 | 0.674466 |
aa8e0051ca8045ec6dbf644669d2bad78faa392d | 7,351 | mli | OCaml | server/protocol.mli | s-pace/pyre-check | 2b71dcf22e4672567cfe0dfef356f11646d66244 | [
"MIT"
] | 5 | 2019-02-14T19:46:47.000Z | 2020-01-16T05:48:45.000Z | server/protocol.mli | s-pace/pyre-check | 2b71dcf22e4672567cfe0dfef356f11646d66244 | [
"MIT"
] | null | null | null | server/protocol.mli | s-pace/pyre-check | 2b71dcf22e4672567cfe0dfef356f11646d66244 | [
"MIT"
] | 2 | 2019-02-14T19:46:23.000Z | 2020-07-13T03:53:04.000Z | (* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. *)
open Core
open Ast
open Analysis
open Pyre
module CompletionRequest : sig
type t = {
id: LanguageServer.Types.RequestId.t;
path: P... | 25.61324 | 71 | 0.682628 |
aade67ccf20e667b68813e12a7e306d152c42472 | 1,196 | mli | OCaml | src/Util.mli | dwoos/verdi-runtime | cb3c31fdbf59a8961304c24453f1ee5747be6a17 | [
"BSD-2-Clause"
] | null | null | null | src/Util.mli | dwoos/verdi-runtime | cb3c31fdbf59a8961304c24453f1ee5747be6a17 | [
"BSD-2-Clause"
] | null | null | null | src/Util.mli | dwoos/verdi-runtime | cb3c31fdbf59a8961304c24453f1ee5747be6a17 | [
"BSD-2-Clause"
] | null | null | null | val raw_bytes_of_int : int -> bytes
val int_of_raw_bytes : bytes -> int
val char_list_of_string : string -> char list
val bytes_of_char_list : char list -> bytes
val string_of_char_list : char list -> string
val select_unintr :
Unix.file_descr list ->
Unix.file_descr list ->
Unix.file_descr list ->
float -... | 23 | 96 | 0.709866 |
aad02ccc722815faf9d197e2a321491d938ff523 | 167 | mli | OCaml | sudoku/solve.mli | cacilhas/sudoku | 147675ad19c48986c9a2aa265f9343ca351d3b3a | [
"BSD-3-Clause"
] | 1 | 2021-02-27T08:56:25.000Z | 2021-02-27T08:56:25.000Z | sudoku/solve.mli | cacilhas/sudoku | 147675ad19c48986c9a2aa265f9343ca351d3b3a | [
"BSD-3-Clause"
] | null | null | null | sudoku/solve.mli | cacilhas/sudoku | 147675ad19c48986c9a2aa265f9343ca351d3b3a | [
"BSD-3-Clause"
] | 1 | 2021-02-27T08:56:28.000Z | 2021-02-27T08:56:28.000Z | type t = [`SetCell of (int * int) | `Normal | `Hungry]
module type FULL_HOUSE = sig
val solve : Board.board -> t -> Board.board
end
module Full_house : FULL_HOUSE
| 20.875 | 54 | 0.676647 |
aa358f502810f9f8bb2d60352b4d2af9bfecc8c7 | 12,943 | ml | OCaml | src/cmdliner_arg.ml | ocaml-dune/cmdliner | b5d61616851bfb0f0c2ed64302dd5cccd39413c8 | [
"0BSD"
] | null | null | null | src/cmdliner_arg.ml | ocaml-dune/cmdliner | b5d61616851bfb0f0c2ed64302dd5cccd39413c8 | [
"0BSD"
] | null | null | null | src/cmdliner_arg.ml | ocaml-dune/cmdliner | b5d61616851bfb0f0c2ed64302dd5cccd39413c8 | [
"0BSD"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2011 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)
let ... | 32.850254 | 80 | 0.653635 |
aaae609705fa3e58a1e5ed36981a8fcb8ac1cd9c | 52 | mli | OCaml | lib/expenses.mli | Isaac-DeFrain/expenses | ffc170ad29f032764df007e101c32074879a00a8 | [
"Apache-2.0"
] | 2 | 2021-04-30T23:44:32.000Z | 2021-05-01T08:28:00.000Z | lib/expenses.mli | Isaac-DeFrain/expenses | ffc170ad29f032764df007e101c32074879a00a8 | [
"Apache-2.0"
] | null | null | null | lib/expenses.mli | Isaac-DeFrain/expenses | ffc170ad29f032764df007e101c32074879a00a8 | [
"Apache-2.0"
] | null | null | null | include module type of Expense_types
module Io = Io
| 17.333333 | 36 | 0.807692 |
aab393ab69ed82c2aa66c93bae1ceac9da1267bb | 21,078 | mli | OCaml | lib/piaf.mli | ManasJayanth/piaf | b132812dc784f897d405f9f45573ff4ce463b077 | [
"BSD-3-Clause"
] | 120 | 2019-12-17T08:58:11.000Z | 2022-03-21T22:49:58.000Z | lib/piaf.mli | ManasJayanth/piaf | b132812dc784f897d405f9f45573ff4ce463b077 | [
"BSD-3-Clause"
] | 23 | 2020-01-02T19:00:07.000Z | 2022-03-25T19:16:02.000Z | lib/piaf.mli | ManasJayanth/piaf | b132812dc784f897d405f9f45573ff4ce463b077 | [
"BSD-3-Clause"
] | 12 | 2019-12-17T09:03:47.000Z | 2021-09-17T22:02:57.000Z | (*----------------------------------------------------------------------------
* Copyright (c) 2019-2020, António Nuno Monteiro
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redist... | 26.3475 | 81 | 0.604944 |
aaa0e6f0cebcd5d8dcdac8b8b6917fe984abee64 | 18,151 | ml | OCaml | src/typing/type_inference_js.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | null | null | null | src/typing/type_inference_js.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | null | null | null | src/typing/type_inference_js.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast = Flow_ast
(* infer phase services *)
module FlowError = Flow_error
module ImpExp = Import_export
module Utils = Util... | 36.013889 | 98 | 0.66079 |
aa913afd5d999a794977ff9de3517a8082974b50 | 8,326 | ml | OCaml | data/derived/comb/progs/unify/prog1728.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/prog1728.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1728.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.600639 | 148 | 0.638602 |
aa98792aa82f551950da0d7fcbc155c79e37f935 | 2,219 | ml | OCaml | lib/archOp.ml | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"CECILL-B"
] | 103 | 2016-11-28T10:00:41.000Z | 2022-03-08T05:06:00.000Z | lib/archOp.ml | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"CECILL-B"
] | 193 | 2017-02-28T19:04:04.000Z | 2022-03-25T14:33:24.000Z | lib/archOp.ml | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"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... | 37.610169 | 78 | 0.490762 |
aaef66d0032e6484dc50a475a1f785989f584703 | 9,405 | ml | OCaml | source/interprocedural_analyses/taint/test/domainTest.ml | ekmixon/pyre-check | bd2475cc0cf4bef941f0aea6df10d674e6c907ab | [
"MIT"
] | 5,975 | 2018-05-11T15:54:32.000Z | 2022-03-31T14:38:00.000Z | source/interprocedural_analyses/taint/test/domainTest.ml | yuhan1212/pyre-check | 37a3fcb4dec517c37f381743bac8f8a269218f8c | [
"MIT"
] | 524 | 2018-05-11T16:47:20.000Z | 2022-03-22T17:43:06.000Z | source/interprocedural_analyses/taint/test/domainTest.ml | yuhan1212/pyre-check | 37a3fcb4dec517c37f381743bac8f8a269218f8c | [
"MIT"
] | 501 | 2018-05-11T16:46:29.000Z | 2022-03-19T04:41:57.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open OUnit2
open Ast
open Taint
open Domains
open Core
let test_partition_call_map _ =
let taint = ForwardTaint.singleton (Sourc... | 34.704797 | 97 | 0.664221 |
aaca9e94cbbed89c532019c6eb3a90a5ef309c1e | 7,423 | ml | OCaml | src/prover/lib/vlangUtil.ml | kupl/MicSE | f23575accb2704cb2bc6f71b91bfed657dd7b9a6 | [
"MIT"
] | 17 | 2021-06-16T11:43:15.000Z | 2022-03-04T16:47:31.000Z | src/prover/lib/vlangUtil.ml | kupl/MicSE | f23575accb2704cb2bc6f71b91bfed657dd7b9a6 | [
"MIT"
] | 26 | 2020-09-09T05:23:28.000Z | 2021-12-10T10:08:54.000Z | src/prover/lib/vlangUtil.ml | kupl/MicSE | f23575accb2704cb2bc6f71b91bfed657dd7b9a6 | [
"MIT"
] | null | null | null | (* Naive Formula Optimizations *)
module NaiveOpt = struct
open Vlang.Formula
(* "and_flatten" removes nested-AND form. It will iterate every subformula. *)
let rec and_flatten : Vlang.t -> Vlang.t
=(function
| VF_and t -> VF_and (List.fold_left (fun acc f -> acc @ (and_flatten_i f)) [] t)
| VF_or t ->... | 39.068421 | 132 | 0.422067 |
bce6ff212f15fb35f0988e4fbcd6eab34899e44b | 8,786 | ml | OCaml | ocaml_typing/406/datarepr.ml | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | ocaml_typing/406/datarepr.ml | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 439 | 2018-05-25T21:16:18.000Z | 2021-12-03T11:28:10.000Z | ocaml_typing/406/datarepr.ml | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 107 | 2018-05-30T23:53:50.000Z | 2022-01-10T10:50:53.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 35.003984 | 78 | 0.569656 |
bc45dcb2044a16873e0c97d0ec754075c5df3835 | 526 | mli | OCaml | hphp/hack/src/client/clientStart.mli | swtaarrs/hhvm | dfb8867363623d7d02d03a64691610f1289ef5ad | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-02-04T22:07:59.000Z | 2021-02-04T22:07:59.000Z | hphp/hack/src/client/clientStart.mli | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientStart.mli | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
type env = {
root: Path.t;
no_load: bool;
watchman_debug_logging : bool;
profile_log : bool;
silent: bool... | 21.04 | 66 | 0.695817 |
aaec5e46ac2f3ce704a65e66687ba347b1aaa8e1 | 524 | ml | OCaml | perf/bchar_perf.ml | BuckleTypes/bs-containers | dfd1360dc74ede57c09e9f9d837ce59285af6fd2 | [
"BSD-2-Clause"
] | 17 | 2017-03-21T21:10:57.000Z | 2017-06-25T19:42:29.000Z | perf/bchar_perf.ml | BuckleTypes/bs-containers | dfd1360dc74ede57c09e9f9d837ce59285af6fd2 | [
"BSD-2-Clause"
] | 30 | 2017-03-21T20:30:00.000Z | 2017-06-11T18:14:17.000Z | perf/bchar_perf.ml | reasonml-community/bs-containers | dfd1360dc74ede57c09e9f9d837ce59285af6fd2 | [
"BSD-2-Clause"
] | 5 | 2017-03-21T20:05:40.000Z | 2017-04-28T20:43:58.000Z | open Perf
let _ =
runPerfTest "getDigit" (fun _ ->
let c = Bchar.getDigit '1' in
match c with
| Some _ -> ()
| None -> ()
);
runPerfTest "getDigitOrRaise" (fun _ ->
let _ = (try
Bchar.getDigitOrRaise '1'
with
| Failure _ -> 1) in (... | 22.782609 | 46 | 0.427481 |
aa9296688ac05033d6a68b24b40d293fe76cad6a | 1,319 | ml | OCaml | src/lib/cli_lib/password.ml | Mixa84/komodo-coda-ac | 66ec5271da188b6ad4e203ee0669b653af294d2b | [
"Apache-2.0"
] | null | null | null | src/lib/cli_lib/password.ml | Mixa84/komodo-coda-ac | 66ec5271da188b6ad4e203ee0669b653af294d2b | [
"Apache-2.0"
] | null | null | null | src/lib/cli_lib/password.ml | Mixa84/komodo-coda-ac | 66ec5271da188b6ad4e203ee0669b653af294d2b | [
"Apache-2.0"
] | null | null | null | open Core
let read_hidden_line prompt : Bytes.t Async.Deferred.t =
let open Unix in
let open Async_unix in
let open Async.Deferred.Let_syntax in
let isatty = isatty stdin in
let old_termios =
if isatty then Some (Terminal_io.tcgetattr stdin) else None
in
let () =
if isatty then
Terminal_io.... | 32.975 | 75 | 0.723275 |
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.