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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aabed410ca06a7471e0b11e806fa19930ba86da7 | 14,911 | ml | OCaml | src/catala/catala_surface/lexer_fr.ml | xbonnetain/catala | 04604ad9d01f99fe19ffca354e2cd70ef8ab34d3 | [
"Apache-2.0"
] | null | null | null | src/catala/catala_surface/lexer_fr.ml | xbonnetain/catala | 04604ad9d01f99fe19ffca354e2cd70ef8ab34d3 | [
"Apache-2.0"
] | null | null | null | src/catala/catala_surface/lexer_fr.ml | xbonnetain/catala | 04604ad9d01f99fe19ffca354e2cd70ef8ab34d3 | [
"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... | 26.205624 | 110 | 0.557575 |
bc9c7bdbe0491c82301208abed966baa311ad6f5 | 3,597 | ml | OCaml | src/unix/lwt_main.ml | SumitPadhiyar/confuzz | 7d6b2af51d7135025f9ed1e013a9ae0940f3663e | [
"MIT"
] | 24 | 2021-03-13T22:22:18.000Z | 2021-12-16T21:51:26.000Z | src/unix/lwt_main.ml | SumitPadhiyar/confuzz | 7d6b2af51d7135025f9ed1e013a9ae0940f3663e | [
"MIT"
] | null | null | null | src/unix/lwt_main.ml | SumitPadhiyar/confuzz | 7d6b2af51d7135025f9ed1e013a9ae0940f3663e | [
"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. *)
(* [Lwt_sequence] is deprecated – we don't want users outside Lwt using it.
However, it is still used internally by Lwt. So, briefly disable warning 3
(... | 27.045113 | 79 | 0.679733 |
aac1e15004251502b0c0cd4110d20864e0a03d2d | 10,196 | mli | OCaml | interfaces/4.06/stdLabels.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 23 | 2017-11-16T10:01:56.000Z | 2021-06-23T08:44:44.000Z | interfaces/4.06/stdLabels.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 15 | 2018-04-21T13:49:52.000Z | 2022-02-16T11:19:38.000Z | interfaces/4.06/stdLabels.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 8 | 2018-04-23T18:10:00.000Z | 2021-12-14T14:31:22.000Z | module Array :
sig
external length : 'a array -> int = "%array_length"
external get : 'a array -> int -> 'a = "%array_safe_get"
external set : 'a array -> int -> 'a -> unit = "%array_safe_set"
external make : int -> 'a -> 'a array = "caml_make_vect"
external create : int -> 'a -> 'a array = "caml_make_vect"
... | 45.721973 | 78 | 0.567477 |
aa8e6771b8e301d36a6c3d80f764b7b6baec9f6e | 20,030 | ml | OCaml | hphp/hack/src/typing/typing_env.ml | commonlisp/hhvm | 324e5d53bb01a1da96fb20c9b26fce8142d96818 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_env.ml | commonlisp/hhvm | 324e5d53bb01a1da96fb20c9b26fce8142d96818 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_env.ml | commonlisp/hhvm | 324e5d53bb01a1da96fb20c9b26fce8142d96818 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Utils
o... | 26.958277 | 80 | 0.62641 |
aa5570fa69b837aa252b48019d549b3970d04899 | 1,129 | ml | OCaml | src/dune_rules/profile.ml | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | src/dune_rules/profile.ml | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | src/dune_rules/profile.ml | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | open Import
type t =
| Dev
| Release
| User_defined of string
include (
Stringlike.Make (struct
type nonrec t = t
let description = "profile"
let module_ = "Profile"
let of_string_opt p =
(* TODO actually validate *)
Some
(match p with
| "dev" -> Dev
| "r... | 18.209677 | 56 | 0.589017 |
aa4a1098c66a7f7028d8ae35f1fefb58abcbd45f | 3,498 | ml | OCaml | src/hash.ml | talex5/ocaml-nocrypto | 4717ae85ee4a9dae295d8214e3f800633fab119a | [
"BSD-2-Clause"
] | null | null | null | src/hash.ml | talex5/ocaml-nocrypto | 4717ae85ee4a9dae295d8214e3f800633fab119a | [
"BSD-2-Clause"
] | null | null | null | src/hash.ml | talex5/ocaml-nocrypto | 4717ae85ee4a9dae295d8214e3f800633fab119a | [
"BSD-2-Clause"
] | null | null | null | open Uncommon
module type T = sig
type t
val digest_size : int
val init : unit -> t
val feed : t -> Cstruct.t -> unit
val get : t -> Cstruct.t
val digest : Cstruct.t -> Cstruct.t
val digestv : Cstruct.t list -> Cstruct.t
val hmac : key:Cstruct.t -> Cstruct.t -> Cstruct.t
end
module... | 22.714286 | 78 | 0.634077 |
aa9388a6350222cadbe0f96fe6aa1b11a8df94b1 | 1,094 | ml | OCaml | hack/utils/config_file.ml | ptmt/flow | 47e762ba3f1249a0bd09de72ab1774cc442bceb5 | [
"BSD-3-Clause"
] | 1 | 2016-11-07T22:24:41.000Z | 2016-11-07T22:24:41.000Z | hack/utils/config_file.ml | WFBosnia/flow | 7dc35b0aff2ac751d801f21285de2f5519fa81a3 | [
"BSD-3-Clause"
] | null | null | null | hack/utils/config_file.ml | WFBosnia/flow | 7dc35b0aff2ac751d801f21285de2f5519fa81a3 | [
"BSD-3-Clause"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Utils
(... | 31.257143 | 80 | 0.642596 |
aad99ec171dbcd0c5a4b16c209840fb83fac02dd | 181 | ml | OCaml | programming, markup & markdown languages/OCaml/HelloWorld.ml | rubenandrebarreiro/hello-world-in-many-programming-languages | 75b61a33426c2e2e58d2a918d655a3efe7b28c4e | [
"MIT"
] | 2 | 2020-10-27T17:31:57.000Z | 2020-12-20T13:44:06.000Z | programming, markup & markdown languages/OCaml/HelloWorld.ml | rubenandrebarreiro/hello-world-in-many-programming-languages | 75b61a33426c2e2e58d2a918d655a3efe7b28c4e | [
"MIT"
] | null | null | null | programming, markup & markdown languages/OCaml/HelloWorld.ml | rubenandrebarreiro/hello-world-in-many-programming-languages | 75b61a33426c2e2e58d2a918d655a3efe7b28c4e | [
"MIT"
] | null | null | null | (* Hello World in Many Programming Languages!!! *)
(* Authors: *)
(* - Ruben Andre Barreiro *)
(* Prints 'Hello World!!!' to the terminal window *)
print_string "Hello World!!!\n"
| 25.857143 | 52 | 0.657459 |
aaef33a78acabf6d8071b5b2014e71178b44c041 | 10,379 | ml | OCaml | lib/symbValue.ml | jmadiot/herdtools7 | b58a26946e2012a40ad280c3a11f2d251824a3ae | [
"CECILL-B"
] | null | null | null | lib/symbValue.ml | jmadiot/herdtools7 | b58a26946e2012a40ad280c3a11f2d251824a3ae | [
"CECILL-B"
] | null | null | null | lib/symbValue.ml | jmadiot/herdtools7 | b58a26946e2012a40ad280c3a11f2d251824a3ae | [
"CECILL-B"
] | null | null | null | (****************************************************************************)(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* Lu... | 29.99711 | 156 | 0.576356 |
aabeed9581a64cdab248ed8fb5155baea327987a | 9,060 | ml | OCaml | src/lib/solution/Solution.ml | NetworkVerification/nv | 0a9d69e08142cd894a1594674edb5fbca7a4f8b8 | [
"MIT"
] | 23 | 2020-03-05T23:45:04.000Z | 2022-01-20T10:28:44.000Z | src/lib/solution/Solution.ml | NetworkVerification/nv | 0a9d69e08142cd894a1594674edb5fbca7a4f8b8 | [
"MIT"
] | 31 | 2020-02-27T18:46:35.000Z | 2022-01-22T06:21:40.000Z | src/lib/solution/Solution.ml | NetworkVerification/nv | 0a9d69e08142cd894a1594674edb5fbca7a4f8b8 | [
"MIT"
] | null | null | null | open ANSITerminal
open Nv_datastructures
open Nv_lang
open Collections
open AdjGraph (* For VertexMap *)
open Syntax
open Nv_utils
open OCamlUtils
(* The mask field is used for AttributeSlicing -- it is a syntax.value with the
same structure as the attribute (e.g. both tuples of the same size), but
with a boole... | 34.448669 | 90 | 0.61777 |
aa8c96b3a0321b174564ab81153d48296c4e85a1 | 747 | ml | OCaml | src/ocaml-output/FStar_Thunk.ml | pnmadelaine/FStar | cd926286b895228447ca15e03e00e7f7509815bb | [
"Apache-2.0"
] | 2,231 | 2015-01-05T02:19:24.000Z | 2022-03-30T05:54:05.000Z | src/ocaml-output/FStar_Thunk.ml | pnmadelaine/FStar | cd926286b895228447ca15e03e00e7f7509815bb | [
"Apache-2.0"
] | 2,151 | 2015-01-06T05:01:08.000Z | 2022-03-31T23:16:08.000Z | src/ocaml-output/FStar_Thunk.ml | pnmadelaine/FStar | cd926286b895228447ca15e03e00e7f7509815bb | [
"Apache-2.0"
] | 281 | 2015-02-13T00:14:17.000Z | 2022-03-13T12:51:04.000Z | open Prims
type 'a thunk =
(unit -> 'a, 'a) FStar_Pervasives.either FStar_Compiler_Effect.ref
type 'a t = 'a thunk
let mk : 'a . (unit -> 'a) -> 'a thunk =
fun f -> FStar_Compiler_Effect.alloc (FStar_Pervasives.Inl f)
let mkv : 'a . 'a -> 'a thunk =
fun v -> FStar_Compiler_Effect.alloc (FStar_Pervasives.Inr v)
le... | 39.315789 | 76 | 0.625167 |
aa645bc06948386d8f4236d2a93ac21cfd6cd891 | 561 | ml | OCaml | infer/src/pulse/PulseBasicInterface.ml | abs12seth/infer | 90d0aa992ca57cc9ad51cd7dda732157ab21b9a8 | [
"MIT"
] | null | null | null | infer/src/pulse/PulseBasicInterface.ml | abs12seth/infer | 90d0aa992ca57cc9ad51cd7dda732157ab21b9a8 | [
"MIT"
] | null | null | null | infer/src/pulse/PulseBasicInterface.ml | abs12seth/infer | 90d0aa992ca57cc9ad51cd7dda732157ab21b9a8 | [
"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
(** Basic Pulse modules that are safe to use in any module *)
module AbstractValue = PulseAbstractValue
module Attribut... | 29.526316 | 66 | 0.789661 |
aaa426a8ab45fdd79dcd3cfc58cc00477a3d47df | 9,023 | mli | OCaml | ocaml_typing/406/btype.mli | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | ocaml_typing/406/btype.mli | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 439 | 2018-05-25T21:16:18.000Z | 2021-12-03T11:28:10.000Z | ocaml_typing/406/btype.mli | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 107 | 2018-05-30T23:53:50.000Z | 2022-01-10T10:50:53.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 40.644144 | 80 | 0.63449 |
aaf90693878cde1a3382f096ab0f9f073fe17fea | 18,585 | ml | OCaml | lib/cCtl/cSyntax.ml | fahadnayyar/coar | 231ff92d5ce493922c66ec6beaa50c47bedc7295 | [
"Apache-2.0"
] | 5 | 2021-05-01T05:32:32.000Z | 2021-12-18T08:57:13.000Z | lib/cCtl/cSyntax.ml | fahadnayyar/coar | 231ff92d5ce493922c66ec6beaa50c47bedc7295 | [
"Apache-2.0"
] | null | null | null | lib/cCtl/cSyntax.ml | fahadnayyar/coar | 231ff92d5ce493922c66ec6beaa50c47bedc7295 | [
"Apache-2.0"
] | 1 | 2021-08-04T22:48:55.000Z | 2021-08-04T22:48:55.000Z | open Ast
open Ast.LogicOld
exception SyntaxError of string
exception SemanticError of string
module Define = struct
type t = DEF of (string * int)
let mk_def key value = DEF (key, value)
let let_def = function DEF (key, value) -> key, value
let rec subst_of_defines = function
| [] -> Core.Map.Poly.empty
... | 29.879421 | 115 | 0.617003 |
44ce8db7fca1f3a98818394b72238337fedc0dfb | 3,593 | mli | OCaml | src/ocamlgraph-1.8.1/src/coloring.mli | labichn/LambdaS5 | 42905076f10de2a692f8d8de574d4387f88492e5 | [
"BSD-3-Clause"
] | 21 | 2016-08-20T16:44:01.000Z | 2019-10-08T12:16:55.000Z | ocamlgraph-1.8.6/src/coloring.mli | wies/vermeer | b719ad8efd2eef4f21439f0bd9ae283124a86357 | [
"BSD-3-Clause"
] | 1 | 2020-06-16T03:45:51.000Z | 2020-06-16T03:45:51.000Z | ocamlgraph-1.8.6/src/coloring.mli | wies/vermeer | b719ad8efd2eef4f21439f0bd9ae283124a86357 | [
"BSD-3-Clause"
] | 6 | 2016-11-27T04:07:40.000Z | 2018-04-22T01:54:15.000Z | (**************************************************************************)
(* *)
(* Ocamlgraph: a generic graph library for OCaml *)
(* Copyright (C) 2004-2010 *)
(* Sylvain ... | 39.054348 | 78 | 0.516003 |
aa36bcac8dfc2b205eeee31c26862ae9d7232e75 | 17,447 | ml | OCaml | src/lib/merkle_ledger_tests/test_database.ml | mrmr1993/coda | f351bbdcdbef733a0ff517a44c626165f39e5680 | [
"Apache-2.0"
] | 1 | 2022-03-21T15:43:42.000Z | 2022-03-21T15:43:42.000Z | src/lib/merkle_ledger_tests/test_database.ml | mrmr1993/coda | f351bbdcdbef733a0ff517a44c626165f39e5680 | [
"Apache-2.0"
] | null | null | null | src/lib/merkle_ledger_tests/test_database.ml | mrmr1993/coda | f351bbdcdbef733a0ff517a44c626165f39e5680 | [
"Apache-2.0"
] | null | null | null | open Core
open Test_stubs
let%test_module "test functor on in memory databases" =
( module struct
module Intf = Merkle_ledger.Intf
module Database = Merkle_ledger.Database
module type DB =
Merkle_ledger.Database_intf.S
with type key := Key.t
and type account := Account.t
and ty... | 42.762255 | 111 | 0.583596 |
aa7aba53340184baf931c6f3d52b79035b6320c8 | 10,520 | ml | OCaml | lib/up4.ml | pdimens/petr4 | f0355c02dc48cbc56dbb0ffbb408cc21bae16f3f | [
"Apache-2.0"
] | 49 | 2019-03-26T21:46:05.000Z | 2021-06-02T16:45:36.000Z | lib/up4.ml | pdimens/petr4 | f0355c02dc48cbc56dbb0ffbb408cc21bae16f3f | [
"Apache-2.0"
] | 223 | 2019-05-12T03:12:30.000Z | 2021-08-11T14:20:35.000Z | lib/up4.ml | pdimens/petr4 | f0355c02dc48cbc56dbb0ffbb408cc21bae16f3f | [
"Apache-2.0"
] | 16 | 2019-06-17T20:09:09.000Z | 2021-06-07T17:23:02.000Z | module I = Info
open Target
open Prog
open Env
open Value
open Core_kernel
open Typed
module Info = I
let (=) = Stdlib.(=)
let (<>) = Stdlib.(<>)
module PreUp4Filter : Target = struct
(* Copied from v1model *)
let drop_spec = Bigint.of_int 511
let im_t_location = "__IM_T__"
type obj =
| Im_t of {out_... | 44.388186 | 106 | 0.639734 |
aaffc78d92ca45a2b999a6fbcb915f688d10c927 | 5,204 | ml | OCaml | src/lib_benchmark/scikit.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/lib_benchmark/scikit.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/lib_benchmark/scikit.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 44.101695 | 80 | 0.575519 |
bc64cc49f2a81692d37e488c8990aadc621c22f1 | 2,956 | ml | OCaml | src/breadcrumbs_widget.ml | toastal/soupault | a685a899c99ec636da4ceee0808f34705e278ed7 | [
"MIT"
] | null | null | null | src/breadcrumbs_widget.ml | toastal/soupault | a685a899c99ec636da4ceee0808f34705e278ed7 | [
"MIT"
] | null | null | null | src/breadcrumbs_widget.ml | toastal/soupault | a685a899c99ec636da4ceee0808f34705e278ed7 | [
"MIT"
] | null | null | null | (* Breadcrumbs *)
open Defaults
let make_breadcrumbs nav_path bc_tmpl prepend append between =
let rec aux xs bc_soup acc_href =
let box_string s = Template.jingoo_of_json (`String s) in
match xs with
| [] -> ()
| x :: xs ->
(* href for each next level accumulates, e.g. section, section/subsec... | 48.459016 | 136 | 0.685386 |
bcb450400c220b8ae286757d9df3665375cb9eea | 1,259 | ml | OCaml | src/util/make_h.ml | Techbot/vult | b40a0d352787f7e221cda41199db27f710d5933c | [
"MIT"
] | null | null | null | src/util/make_h.ml | Techbot/vult | b40a0d352787f7e221cda41199db27f710d5933c | [
"MIT"
] | null | null | null | src/util/make_h.ml | Techbot/vult | b40a0d352787f7e221cda41199db27f710d5933c | [
"MIT"
] | null | null | null | let main () =
let input_file = Sys.argv.(1) in
let output_file = Sys.argv.(2) in
match FileIO.read input_file with
| None ->
print_endline "Cannot open input file" ;
exit (-1)
| Some text ->
let text = String.escaped text in
let buffer = Buffer.create (String.length text + 100) in... | 29.97619 | 69 | 0.528197 |
bc3b61b17c76694d9409efa9c2f6572759052363 | 69,983 | ml | OCaml | src/gppl_backend/Pyro_lib.ml | deepppl/stanc3 | 92dd65f6f7e13c95ef15fa8f5040d26265cc9817 | [
"BSD-3-Clause"
] | 17 | 2020-11-26T00:53:58.000Z | 2021-08-20T18:56:39.000Z | src/gppl_backend/Pyro_lib.ml | deepppl/stanc3 | 92dd65f6f7e13c95ef15fa8f5040d26265cc9817 | [
"BSD-3-Clause"
] | null | null | null | src/gppl_backend/Pyro_lib.ml | deepppl/stanc3 | 92dd65f6f7e13c95ef15fa8f5040d26265cc9817 | [
"BSD-3-Clause"
] | 3 | 2020-12-09T20:16:16.000Z | 2021-05-28T04:30:28.000Z | open Core_kernel
open Frontend
open Ast
open Middle
type clone_type = Tclone | Tnoclone
let pyro_dppllib =
[ "sample"; "param"; "observe"; "factor"; "array"; "zeros"; "ones"; "empty";
"matmul"; "true_divide"; "floor_divide"; "transpose";
"dtype_long"; "dtype_float";
"vmap"; "get_element" ]
let numpyro_d... | 40.197013 | 94 | 0.73032 |
bce768cb5836e26379ecc87b523fede9c2ca6588 | 31,383 | ml | OCaml | src/vmm_asn.ml | hannesm/albatross | 26b5a59ea7eaf257d8327855db812be7b87060dd | [
"ISC"
] | 58 | 2017-12-25T11:36:27.000Z | 2020-11-20T02:30:24.000Z | src/vmm_asn.ml | hannesm/albatross | 26b5a59ea7eaf257d8327855db812be7b87060dd | [
"ISC"
] | 31 | 2018-01-04T15:09:53.000Z | 2020-11-26T11:07:18.000Z | src/vmm_asn.ml | hannesm/albatross | 26b5a59ea7eaf257d8327855db812be7b87060dd | [
"ISC"
] | 8 | 2018-01-03T22:48:34.000Z | 2020-11-09T12:55:11.000Z | (* (c) 2017, 2018 Hannes Mehnert, all rights reserved *)
(* please read this before changing this module:
Data encoded by this module is persisted in (a) dump file and
(b) certificates (and subCA). It is important to be aware of backward and
forward compatibility when modifying this module. There are various... | 38.840347 | 301 | 0.584743 |
44e9b9f4a3bbfe0e893c1302ef63c680c2a44fad | 1,106 | ml | OCaml | benchmarks/crazy2add/crazy2add/submissions/sub36.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/crazy2add/crazy2add/submissions/sub36.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/crazy2add/crazy2add/submissions/sub36.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | exception TODO
type crazy2 =
| NIL
| ZERO of crazy2
| ONE of crazy2
| MONE of crazy2
let rec crazy2add ((a: crazy2) , (b: crazy2)): crazy2 =
let rec integerize (c: crazy2): int list =
match c with
| NIL -> []
| ZERO c2 -> 0::(integerize c2)
| ONE c2 -> 1::(integerize c2)
| MONE c2 -> -1::(integeri... | 20.109091 | 71 | 0.507233 |
aaa9a7228d881350a46b032a12fd07d14df68411 | 2,088 | ml | OCaml | src/lib_rpc_http/RPC_server.ml | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | src/lib_rpc_http/RPC_server.ml | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | src/lib_rpc_http/RPC_server.ml | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | 1 | 2021-06-04T09:31:48.000Z | 2021-06-04T09:31:48.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 65.25 | 79 | 0.490421 |
aad506453fffc8602f49693f1e8e5e161eb87cd2 | 10,948 | ml | OCaml | src/common/utils/utils_js.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2020-06-21T01:14:46.000Z | 2020-06-21T01:14:46.000Z | src/common/utils/utils_js.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 17 | 2020-10-12T16:16:07.000Z | 2021-08-07T04:38:39.000Z | src/common/utils/utils_js.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2021-01-06T10:57:53.000Z | 2021-01-06T10:57:53.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
exception Key_not_found of (* message *) string * (* key *) string
let spf = Printf.sprintf
let print_endlinef fmt = Printf.kspri... | 28.216495 | 100 | 0.616368 |
aa5967c9a0f32c8b2cf9ebb8ccf0fe1ffdbf30ff | 13,432 | ml | OCaml | src/backends/multicore/multicoreCompile.ml | BrechtSerckx/eff | ce4b271047cd187cd5c33bd8d1c8b044f2c02ce4 | [
"BSD-2-Clause"
] | null | null | null | src/backends/multicore/multicoreCompile.ml | BrechtSerckx/eff | ce4b271047cd187cd5c33bd8d1c8b044f2c02ce4 | [
"BSD-2-Clause"
] | null | null | null | src/backends/multicore/multicoreCompile.ml | BrechtSerckx/eff | ce4b271047cd187cd5c33bd8d1c8b044f2c02ce4 | [
"BSD-2-Clause"
] | null | null | null | (* Evaluation of the intermediate language, big step. *)
open CoreUtils
module Core = UntypedSyntax
module Multicore = MulticoreSyntax
module type BackendParameters = sig
val output_file : string
end
module Backend (P : BackendParameters) : BackendSignature.T = struct
(* ------------------------------------------... | 38.487106 | 80 | 0.598943 |
bc24460349829129db4749697c59712bbaa15953 | 421 | mli | OCaml | code/ffi/ncurses.inferred.mli | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 328 | 2015-01-08T13:55:08.000Z | 2022-03-11T12:56:04.000Z | code/ffi/ncurses.inferred.mli | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 17 | 2015-01-04T00:26:01.000Z | 2018-05-31T08:16:44.000Z | code/ffi/ncurses.inferred.mli | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 83 | 2015-01-21T15:07:56.000Z | 2022-03-11T12:56:08.000Z | type window = unit Ctypes.ptr
val window : window Ctypes.typ
val initscr : unit -> window
val endwin : unit -> unit
val refresh : unit -> unit
val wrefresh : window -> unit
val newwin : int -> int -> int -> int -> window
val mvwaddch : window -> int -> int -> char -> unit
val addstr : string -> unit
val mvwaddstr : win... | 32.384615 | 54 | 0.648456 |
bcb4a53d0adf3cad94ebe2b3ff15322e0958232f | 557 | ml | OCaml | zenon/globals.ml | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | 31 | 2016-08-16T14:58:40.000Z | 2022-02-19T18:38:07.000Z | zenon/globals.ml | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | 49 | 2020-03-04T18:13:13.000Z | 2022-02-07T17:43:24.000Z | zenon/globals.ml | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | 12 | 2020-02-26T19:58:37.000Z | 2021-11-12T22:18:25.000Z | (* Copyright 1997 INRIA *)
let debug_flag = ref false;;
let stats_flag = ref false;;
let quiet_flag = ref false;;
let size_limit = ref 1000_000_000.;;
let step_limit = ref 10_000.;;
let time_limit = ref 300.;;
let short_flag = ref false;;
let ctx_flag = ref false;;
let random_flag = ref false;;
let random_seed = re... | 24.217391 | 36 | 0.709156 |
aab62f25dac4afcc98c394e7b9f1a6fbfd731be6 | 1,177 | ml | OCaml | hphp/hack/src/server/serverDebug.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-05-15T22:07:47.000Z | 2021-05-15T22:07:47.000Z | hphp/hack/src/server/serverDebug.ml | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2020-10-11T22:54:12.000Z | 2021-07-20T22:12:10.000Z | hphp/hack/src/server/serverDebug.ml | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-01-29T08:44:22.000Z | 2021-01-29T08:44:22.000Z | (*
* Copyright (c) 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
[@@@warning "-52"]
(* we have no alternative but to depend on Sys_error strings *)
let log genv m... | 29.425 | 75 | 0.651657 |
17026d92ea45566687665627a76b8a03bb319ffd | 14,239 | ml | OCaml | dhcp/dhcpv4_option.ml | agrski/mirage-tcpip-eidolon-linux | 82422a7c317e5efccb5c78d9b4b3093ccda0a5db | [
"0BSD"
] | 4 | 2016-07-18T20:24:43.000Z | 2016-10-11T09:03:08.000Z | dhcp/dhcpv4_option.ml | agrski/mirage-tcpip-eidolon-linux | 82422a7c317e5efccb5c78d9b4b3093ccda0a5db | [
"0BSD"
] | null | null | null | dhcp/dhcpv4_option.ml | agrski/mirage-tcpip-eidolon-linux | 82422a7c317e5efccb5c78d9b4b3093ccda0a5db | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2006-2010 Anil Madhavapeddy <anil@recoil.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 PROVIDED "AS ... | 33.424883 | 106 | 0.598216 |
bc6c007465c61c900290c9283874399b67b0d390 | 1,000 | ml | OCaml | bootstrap/test/basis/n/test_add_sub.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | 1 | 2021-08-13T04:54:39.000Z | 2021-08-13T04:54:39.000Z | bootstrap/test/basis/n/test_add_sub.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | 1 | 2020-02-14T19:21:40.000Z | 2020-02-14T19:21:40.000Z | bootstrap/test/basis/n/test_add_sub.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | null | null | null | open! Basis.Rudiments
open! Basis
open N
open Format
let test () =
printf "@[<h>";
let rec test_pairs = function
| [] -> ()
| (x, y) :: pairs' -> begin
printf "%a +,- %a -> %a, %a\n" pp_x x pp_x y pp_x (x + y) pp_x
(x - y);
test_pairs pairs'
end
in
let pairs = [
(of_... | 26.315789 | 93 | 0.644 |
aa79d033ab6f7dfe7e15643eceba7fb73ef6cdf9 | 14,010 | ml | OCaml | src/inuit_region.ml | let-def/inuit | fdea894112fa804e32d4ae230b172d17997db49d | [
"0BSD"
] | 16 | 2016-05-20T13:43:03.000Z | 2021-06-25T06:20:27.000Z | src/inuit_region.ml | def-lkb/inuit | fdea894112fa804e32d4ae230b172d17997db49d | [
"0BSD"
] | 4 | 2016-06-16T16:17:36.000Z | 2020-01-20T07:45:50.000Z | src/inuit_region.ml | def-lkb/inuit | fdea894112fa804e32d4ae230b172d17997db49d | [
"0BSD"
] | 3 | 2016-11-08T17:41:07.000Z | 2019-12-04T21:53:05.000Z | open Inuit_base
type side = [ `Local | `Remote ]
let cons_some x xs = match x with
| None -> xs
| Some x -> x :: xs
module Concrete =
struct
type status =
| Ready
| Locked
type 'flags t = {
buffer : 'flags buffer;
left : Trope.cursor;
right : Trope.cursor;
parent : 'flags t;
... | 30.791209 | 90 | 0.608423 |
aacc4a327956e0279ed83e0bfd94463a0bf597b6 | 3,008 | ml | OCaml | hphp/hack/src/typing/typing_attributes.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_attributes.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_attributes.ml | 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.
*
*)
open Core_kernel
open Typing_reason
module SN = Naming_special_names
module MakeType = Typing_make_type
module Cls =... | 29.782178 | 83 | 0.624668 |
aaf4d2018c2aa929ec65af261aaa9935a24f89ea | 2,645 | ml | OCaml | 02-exercises/20-reading_sigs/problem.ml | alexbielen/learn-ocaml-workshop | 232a8d1618ed08e34475a34628dc086076eadaf3 | [
"Apache-2.0"
] | null | null | null | 02-exercises/20-reading_sigs/problem.ml | alexbielen/learn-ocaml-workshop | 232a8d1618ed08e34475a34628dc086076eadaf3 | [
"Apache-2.0"
] | null | null | null | 02-exercises/20-reading_sigs/problem.ml | alexbielen/learn-ocaml-workshop | 232a8d1618ed08e34475a34628dc086076eadaf3 | [
"Apache-2.0"
] | null | null | null | open! Base
open! Prelude
(* Ocaml, like many other languages, provides a way to interact with code via
interfaces. This allows implementation details to be hidden away, and for
grouped units of code to restrict how they are used.
Here's an example of a module signature coupled with an implementation. The
... | 24.95283 | 87 | 0.705104 |
aafef265e0508511844583a91a64ab2d949bd6ff | 4,556 | ml | OCaml | src/guards.ml | ucsd-progsys/csolve-bak | 89cfeb5403e617f45ece4bae9f88f8e6cd7ca934 | [
"BSD-3-Clause"
] | null | null | null | src/guards.ml | ucsd-progsys/csolve-bak | 89cfeb5403e617f45ece4bae9f88f8e6cd7ca934 | [
"BSD-3-Clause"
] | 1 | 2018-04-24T10:43:07.000Z | 2018-04-24T10:43:07.000Z | src/guards.ml | ucsd-progsys/csolve-bak | 89cfeb5403e617f45ece4bae9f88f8e6cd7ca934 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright © 1990-2009 The Regents of the University of California. All rights reserved.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any purpose, provided that the
* above ... | 34.778626 | 92 | 0.569359 |
aadc38e51fb8bc6f9eca5431c9f9465d33d6b623 | 6,435 | ml | OCaml | libraries/ec2/lib/describeMovingAddresses.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/ec2/lib/describeMovingAddresses.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/describeMovingAddresses.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | open Types[@@ocaml.warning "-33"]
open Aws.BaseTypes[@@ocaml.warning "-33"]
open Aws
module DescribeMovingAddressesRequest =
struct
type t =
{
filters: FilterList.t
[@ocaml.doc
"<p>One or more filters.</p> <ul> <li> <p> <code>moving-status</code> - The status of the Elastic IP addres... | 41.785714 | 415 | 0.573271 |
aa637b33f18940e7b7b2c5d56c9d01f7c9be65bc | 3,701 | ml | OCaml | lib/pool.ml | CGenie/ocaml-imap | 504feda44d16c1ad09eee06f1502df230a081df0 | [
"MIT"
] | null | null | null | lib/pool.ml | CGenie/ocaml-imap | 504feda44d16c1ad09eee06f1502df230a081df0 | [
"MIT"
] | null | null | null | lib/pool.ml | CGenie/ocaml-imap | 504feda44d16c1ad09eee06f1502df230a081df0 | [
"MIT"
] | null | null | null | (* The MIT License (MIT)
Copyright (c) 2015-2018 Nicolas Ojeda Bar <n.oje.bar@gmail.com>
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 limitat... | 31.905172 | 95 | 0.627398 |
aaab38b51c73fe8b49c45151b373721b0facbe5a | 2,468 | ml | OCaml | server/encrypt.ml | idkjs/plantpro-cloud | da76f3c3a0fdcd86c6e7e802400fd0931acecadd | [
"MIT"
] | null | null | null | server/encrypt.ml | idkjs/plantpro-cloud | da76f3c3a0fdcd86c6e7e802400fd0931acecadd | [
"MIT"
] | null | null | null | server/encrypt.ml | idkjs/plantpro-cloud | da76f3c3a0fdcd86c6e7e802400fd0931acecadd | [
"MIT"
] | null | null | null | open Cryptokit
let rng = Random.device_rng "/dev/urandom";;
(*string -> string*)
let hex_encode = transform_string (Hexa.encode ());;
(*string -> string*)
let hex_decode = transform_string (Hexa.decode ());;
(*string -> string*)
let base64_encode = transform_string (Base64.encode_compact ());;
(*string -> string*)... | 25.443299 | 74 | 0.682334 |
aaed4a26d0bc8d0f93b02d3524919b642dfbc199 | 8,877 | ml | OCaml | src/proto_alpha/lib_client/michelson_v1_emacs.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | 3 | 2021-12-16T20:28:56.000Z | 2022-01-21T01:37:49.000Z | src/proto_alpha/lib_client/michelson_v1_emacs.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | 5 | 2022-01-20T21:30:24.000Z | 2022-03-11T14:43:56.000Z | src/proto_alpha/lib_client/michelson_v1_emacs.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | 1 | 2021-07-19T07:00:37.000Z | 2021-07-19T07:00:37.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 37.774468 | 79 | 0.523826 |
8a6c19b40e7235d906f778cff83188b3464d0b06 | 3,303 | ml | OCaml | interprocedural_analyses/taint/test/callGraphBuilderTest.ml | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 1 | 2020-08-08T16:01:55.000Z | 2020-08-08T16:01:55.000Z | interprocedural_analyses/taint/test/callGraphBuilderTest.ml | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 4 | 2022-02-15T02:42:33.000Z | 2022-02-28T01:30:07.000Z | interprocedural_analyses/taint/test/callGraphBuilderTest.ml | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 1 | 2020-11-22T12:08:51.000Z | 2020-11-22T12:08:51.000Z | (* Copyright (c) 2018-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. *)
open Core
open OUnit2
open Test
let function_caller name =
Ast.Reference.create name |> fun reference -> Analysis.Callgraph.FunctionCaller... | 29.491071 | 95 | 0.622464 |
44f2b59f1ea3e94b7a11b45c1e9d851abd4372a9 | 423 | ml | OCaml | data/sp14_min/3574.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/3574.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/3574.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let pipe fs =
let f a x = a x in let base x y = x y in List.fold_left f base fs;;
(* fix
let pipe fs =
let f a x y = a (x y) in let base x = x in List.fold_left f base fs;;
*)
(* changed spans
(3,15)-(3,18)
fun y -> a (x y)
LamG VarPatG (AppG [EmptyG])
(3,33)-(3,40)
x
VarG
*)
(* type error slice
(3,3)-(3,6... | 12.441176 | 71 | 0.529551 |
aa17f4c01469d2612ee57f8e6177a1c61cb586e4 | 510 | ml | OCaml | runtime/types.ml | ygrek/extprot | 3235a6a3a80efc05888c9514b7c9d807dcb39046 | [
"MIT"
] | 110 | 2015-01-25T05:22:36.000Z | 2021-11-15T12:44:26.000Z | runtime/types.ml | tonyg/extprot | f089d6160833d4d0d6c7dbcc1cae43d8963d291f | [
"MIT"
] | 24 | 2015-04-29T05:13:40.000Z | 2020-04-21T18:57:39.000Z | runtime/types.ml | tonyg/extprot | f089d6160833d4d0d6c7dbcc1cae43d8963d291f | [
"MIT"
] | 5 | 2015-06-04T19:05:32.000Z | 2019-12-24T19:12:06.000Z |
type low_level_type =
Vint
| Bits8
| Bits32
| Bits64_long
| Bits64_float
| Enum
| Tuple
| Bytes
| Htuple
| Assoc
| Invalid_ll_type
let string_of_low_level_type = function
Vint -> "Vint"
| Bits8 -> "Bits8"
| Bits32 -> "Bits32"
| Bits64_long -> "Bits64_long"
| Bits64_float -> "Bits64... | 18.214286 | 75 | 0.62549 |
aaad3e51e645e11c53194be5336be5247b8bbd2d | 3,548 | mli | OCaml | hphp/hack/src/hh_fanout/incremental.mli | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hh_fanout/incremental.mli | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hh_fanout/incremental.mli | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"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.
*
*)
(** An identifier representing one of the users of `hh_fanout`. Clients with
different options will have different IDs. *)
typ... | 34.446602 | 79 | 0.723224 |
aaac4d42d234e4e35c444594e63de148b44bcb73 | 11,694 | ml | OCaml | bin/smtBench.ml | jberdine/ICS | 62b67db7e213bf1f4ac183eedec2c3e5072f3278 | [
"MIT"
] | 3 | 2020-07-23T15:11:49.000Z | 2020-08-25T11:56:33.000Z | bin/smtBench.ml | jberdine/ICS | 62b67db7e213bf1f4ac183eedec2c3e5072f3278 | [
"MIT"
] | null | null | null | bin/smtBench.ml | jberdine/ICS | 62b67db7e213bf1f4ac183eedec2c3e5072f3278 | [
"MIT"
] | 4 | 2020-05-14T22:47:12.000Z | 2020-12-16T09:54:31.000Z | (*
* The MIT License (MIT)
*
* Copyright (c) 2020 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
* t... | 32.214876 | 81 | 0.579357 |
aaace2717e29086ca739e9a0f822c8a5decc5bf6 | 840 | ml | OCaml | tests/html/makehtml.ml | c-cube/simplehttpserver | c8d89e24be18240c3eee27737713a5e70a68b7f5 | [
"MIT"
] | 6 | 2019-11-14T08:50:35.000Z | 2019-11-15T14:21:54.000Z | tests/html/makehtml.ml | c-cube/simplehttpserver | c8d89e24be18240c3eee27737713a5e70a68b7f5 | [
"MIT"
] | 3 | 2019-11-14T05:56:23.000Z | 2019-11-17T18:12:25.000Z | tests/html/makehtml.ml | c-cube/simplehttpserver | c8d89e24be18240c3eee27737713a5e70a68b7f5 | [
"MIT"
] | null | null | null | open Tiny_httpd_html
let spf = Printf.sprintf
let list_init n f =
let rec loop i =
if i=n then []
else f i :: loop (i+1)
in loop 0
let t1() =
html [] [
head [] [];
body [] [
ul [A.style "list-style: circle"] (
li[][pre [] [txt "a"; pre[][txt "c"; txt"d"]; txt "b"]] ::
list_... | 20 | 80 | 0.461905 |
aaed8ad2aa8e55ca9bb7e443ce9c2ea38065b04b | 683 | ml | OCaml | data/sp14/2291.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/2291.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/2291.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let removeDuplicates l =
let rec helper (seen,rest) =
match rest with
| [] -> seen
| h::t ->
let seen' = if List.mem h t then [h] in
let rest' = t in helper (seen', rest') in
List.rev (helper ([], l));;
(* fix
let removeDuplicates l =
let rec helper (seen,rest) =
match rest wit... | 15.177778 | 66 | 0.528551 |
1707c8bdc76488f093b79839e34cc1db5f4205e3 | 1,856 | ml | OCaml | data/sp14_min/1135.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/1135.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/1135.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.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
| SquareRoot of expr
| DivideByOne of expr* expr* expr;;
let pi = 4.0 *. (atan 1.0);;
let rec eval (e,x,y) =
match e with
| VarX -> x
| VarY -> y
| Si... | 23.2 | 70 | 0.463362 |
1704dcf72dc6f49f83bfd978e9652c826e574e9c | 10,829 | ml | OCaml | hphp/hack/src/server/serverCommand.ml | jthemphill/hhvm | 29b7fafaeecd83b817e31bbe11a591aa78a6c879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverCommand.ml | jthemphill/hhvm | 29b7fafaeecd83b817e31bbe11a591aa78a6c879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverCommand.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 Utils
open ServerCommandTypes
exception Nonfatal_rpc_exception of exn * string * ServerEnv.env... | 34.932258 | 80 | 0.696186 |
bce608d47be741f369589092262e41799ae2d143 | 1,028 | ml | OCaml | result/cafe2/diff/sub141/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/prog/diff/sub141/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/prog/diff/sub141/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 ((e : aexp), (x : string)) : aexp =
match e with
| Const n -> Const 0
| Var a -> if a = x then Const 1 else Const 0
| Power (a, n) ->
if a = x && n = 2 then Times [ Const 2;... | 31.151515 | 81 | 0.469844 |
aad0611020b8555f0fdd8c316106f4a9337b7c73 | 17,614 | ml | OCaml | src/uwt_base.ml | djs55/uwt | c43349bf3689181756feb341e3896d4a0a695523 | [
"MIT"
] | 61 | 2015-02-21T20:02:34.000Z | 2022-01-29T09:06:32.000Z | src/uwt_base.ml | djs55/uwt | c43349bf3689181756feb341e3896d4a0a695523 | [
"MIT"
] | 5 | 2015-07-06T20:05:20.000Z | 2021-04-19T17:09:47.000Z | src/uwt_base.ml | djs55/uwt | c43349bf3689181756feb341e3896d4a0a695523 | [
"MIT"
] | 7 | 2016-03-09T16:02:09.000Z | 2019-07-26T22:54:34.000Z | (* This file is part of uwt, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/fdopen/uwt/blob/master/LICENSE.md. *)
#include "error.ml"
#include "config.inc"
type 'a uv_result = ('a , error) result
type ('a , 'b) o_result = ('a, 'b) result =
| Ok of 'a
| Error of 'b
typ... | 25.751462 | 94 | 0.63177 |
aad4198d91a48f9df3955667d1736922ddf82fe3 | 25,744 | ml | OCaml | src/proof/logic.ml | Gbury/archsat | 322fbefa4a58023ddafb3fa1a51f8199c25cde3d | [
"MIT"
] | 19 | 2018-08-19T14:41:41.000Z | 2021-09-14T14:07:03.000Z | src/proof/logic.ml | Gbury/archsat | 322fbefa4a58023ddafb3fa1a51f8199c25cde3d | [
"MIT"
] | 2 | 2019-04-10T02:05:47.000Z | 2022-03-07T15:41:36.000Z | src/proof/logic.ml | Gbury/archsat | 322fbefa4a58023ddafb3fa1a51f8199c25cde3d | [
"MIT"
] | 2 | 2019-02-12T14:25:50.000Z | 2021-05-14T11:12:52.000Z | (* This file is free software, part of Archsat. See file "LICENSE" for more details. *)
let section = Section.make ~parent:Proof.section "logic"
let tag ?dk ?coq id =
CCOpt.iter (fun s -> Expr.Id.tag id Dedukti.Print.name @@ Pretty.Exact s) dk;
CCOpt.iter (fun s -> Expr.Id.tag id Coq.Print.name @@ Pretty.Exact s)... | 32.301129 | 105 | 0.605151 |
aa8bf2c68914baebeb8aa5f535bca937622c0cd5 | 1,242 | ml | OCaml | third_party/flow/src/typing/autocomplete_js.ml | bowlofstew/kythe | 23a3524de3924901ffaba4b8bcab8abe96de6f3a | [
"Apache-2.0"
] | 1 | 2021-04-24T08:18:15.000Z | 2021-04-24T08:18:15.000Z | third_party/flow/src/typing/autocomplete_js.ml | bowlofstew/kythe | 23a3524de3924901ffaba4b8bcab8abe96de6f3a | [
"Apache-2.0"
] | 3 | 2020-12-31T09:08:34.000Z | 2021-09-28T05:42:02.000Z | third_party/flow/src/typing/autocomplete_js.ml | moul/kythe | 2e198cc818981fc6cffa14d8263fda3a33da6429 | [
"Apache-2.0"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Constrai... | 25.875 | 80 | 0.735105 |
aa47ae3b2b0a792541c1a9df2af9bcfc98b910ec | 209 | mli | OCaml | libraries/cloudtrail/lib/listTags.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudtrail/lib/listTags.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/cloudtrail/lib/listTags.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = ListTagsRequest.t
type output = ListTagsResponse.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 29.857143 | 74 | 0.736842 |
bce95336faa2d7d9e014c029b79e2635ccedc5fd | 1,692 | mli | OCaml | src/typing/merge_js.mli | davidroeca/flow | 606ad046bdd8d4c6c0abe041983bcf07ddbc635f | [
"MIT"
] | 1 | 2019-07-30T15:59:45.000Z | 2019-07-30T15:59:45.000Z | src/typing/merge_js.mli | davidroeca/flow | 606ad046bdd8d4c6c0abe041983bcf07ddbc635f | [
"MIT"
] | null | null | null | src/typing/merge_js.mli | davidroeca/flow | 606ad046bdd8d4c6c0abe041983bcf07ddbc635f | [
"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 get_ast_return = Loc.t Flow_ast.Comment.t list * (ALoc.t, ALoc.t) Flow_ast.program
module Reqs : sig
type t
val empty :... | 32.538462 | 98 | 0.6974 |
aa57e3e1b2e9c73eadfb668f081d9625ff56ee24 | 304 | ml | OCaml | bootstrap/test/basis/list/test_fmt.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 25 | 2020-02-03T20:31:04.000Z | 2022-03-30T17:22:35.000Z | bootstrap/test/basis/list/test_fmt.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 152 | 2020-02-03T23:16:05.000Z | 2022-02-24T22:14:04.000Z | bootstrap/test/basis/list/test_fmt.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 4 | 2020-02-03T07:36:22.000Z | 2020-10-31T03:44:52.000Z | open! Basis.Rudiments
open! Basis
open List
let test () =
let l = [
[0L; 1L];
[2L; 3L];
] in
List.fold [false; true] ~init:File.Fmt.stdout ~f:(fun formatter alt ->
formatter
|> Fmt.fmt "l = "
|> fmt ~alt (fmt ~alt ~width:4L Uns.fmt) l
|> Fmt.fmt "\n"
)
let _ = test ()
| 16 | 72 | 0.536184 |
aae18b0a3cd881d0d1957addc48472f0145c13d0 | 204 | ml | OCaml | test/fib.ml | prg-titech/pmincaml | 80810fc97df7f5d10340113eedb8be70a09de2f0 | [
"Apache-2.0"
] | 1 | 2022-01-25T01:46:13.000Z | 2022-01-25T01:46:13.000Z | test/fib.ml | prg-titech/pmincaml | 80810fc97df7f5d10340113eedb8be70a09de2f0 | [
"Apache-2.0"
] | null | null | null | test/fib.ml | prg-titech/pmincaml | 80810fc97df7f5d10340113eedb8be70a09de2f0 | [
"Apache-2.0"
] | null | null | null | (* let rec fib n = *)
(* if 1 < n then *)
(* fib (n-1) + fib(n-2) *)
(* else 1 in *)
(* print_int (fib 25) *)
let rec fib n =
if n <= 1 then 1
else fib(n-1) + fib(n-2)
in print_int (fib 25)
| 20.4 | 32 | 0.480392 |
445145b0899c3c4f69de2cb17c6177cccb75cc5c | 13,359 | ml | OCaml | hphp/hack/src/options/globalOptions.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/options/globalOptions.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/options/globalOptions.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) 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 t = {
tco_assume_php : bool;
tco_safe_array : bool;
tco_safe_vector_array : bool;
tco_user_attrs : SSe... | 36.903315 | 89 | 0.762931 |
aaa900f6772c59b265e6b33638425152482d998a | 8,664 | ml | OCaml | src/nativeint.ml | sangwoo-joh/base | 25e68e4a33c8339d95cb7e89485410d9be7f8771 | [
"MIT"
] | 4 | 2021-02-14T20:13:50.000Z | 2021-03-13T03:24:44.000Z | src/nativeint.ml | sangwoo-joh/base | 25e68e4a33c8339d95cb7e89485410d9be7f8771 | [
"MIT"
] | null | null | null | src/nativeint.ml | sangwoo-joh/base | 25e68e4a33c8339d95cb7e89485410d9be7f8771 | [
"MIT"
] | null | null | null | open! Import
open! Caml.Nativeint
include Nativeint_replace_polymorphic_compare
module T = struct
type t = nativeint [@@deriving_inline hash, sexp, sexp_grammar]
let (hash_fold_t : Ppx_hash_lib.Std.Hash.state -> t -> Ppx_hash_lib.Std.Hash.state) =
hash_fold_nativeint
and (hash : t -> Ppx_hash_lib.Std.Hash.... | 27.417722 | 95 | 0.676131 |
bcbaf5d446e46935a86a3e9f701d6fe322d761c2 | 1,642 | mli | OCaml | ast_printer/print_xquery.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | ast_printer/print_xquery.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | ast_printer/print_xquery.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 35.695652 | 80 | 0.409257 |
aaf68156e168cbac69163ad19724bc0e95009320 | 6,218 | ml | OCaml | src/RealComponents.ml | millstein/LoopInvGen | 60e8ba586bc8c10a6992940a4365e594990a3b74 | [
"MIT"
] | null | null | null | src/RealComponents.ml | millstein/LoopInvGen | 60e8ba586bc8c10a6992940a4365e594990a3b74 | [
"MIT"
] | 1 | 2020-09-01T02:05:18.000Z | 2020-09-01T02:05:18.000Z | src/RealComponents.ml | millstein/LoopInvGen | 60e8ba586bc8c10a6992940a4365e594990a3b74 | [
"MIT"
] | null | null | null | open Base
open Expr
open Utils
let translation = [
{
name = "real-add";
codomain = Type.REAL;
domain = Type.[REAL; REAL];
is_argument_valid = Value.(function
| [x ; FCall (comp, [_ ; y])]
when String.equal comp.name "real-sub"
... | 41.453333 | 118 | 0.394017 |
bcb23412e795fc752acb2adb8f92948c72caf2e3 | 3,109 | ml | OCaml | base/simm.ml | prg-titech/BacCaml | 0f572719af0af16d3ba837c31df9dda4f11f583d | [
"Apache-2.0"
] | 24 | 2018-01-29T12:51:24.000Z | 2022-03-24T09:06:50.000Z | base/simm.ml | prg-titech/BacCaml | 0f572719af0af16d3ba837c31df9dda4f11f583d | [
"Apache-2.0"
] | 8 | 2017-12-26T11:01:51.000Z | 2018-10-11T14:04:57.000Z | base/simm.ml | prg-titech/BacCaml | 0f572719af0af16d3ba837c31df9dda4f11f583d | [
"Apache-2.0"
] | 2 | 2019-02-19T20:40:37.000Z | 2020-04-09T23:20:58.000Z | open Asm
let rec g env = function
(* 命令列の即値最適化 (caml2html: simm13_g) *)
| Ans exp -> Ans (g' env exp)
| Let ((x, t), Set i, e) ->
(* Format.eprintf "found simm %s = %d@." x i; *)
let e' = g (M.add x i env) e in
if List.mem x (fv e')
then Let ((x, t), Set i, e')
else (* Format.eprintf "erased ... | 43.180556 | 76 | 0.512062 |
aa36571f54f0825f7ba3a8987297256a8d23ebab | 1,196 | ml | OCaml | src/lib/lib_test.ml | estensen/bamboo | e17575938239b60c3335badc2d366b4ba6dd1503 | [
"Apache-2.0"
] | 334 | 2016-09-14T15:37:25.000Z | 2022-03-26T18:55:54.000Z | src/lib/lib_test.ml | estensen/bamboo | e17575938239b60c3335badc2d366b4ba6dd1503 | [
"Apache-2.0"
] | 141 | 2016-11-14T11:12:45.000Z | 2020-07-13T12:17:25.000Z | src/lib/lib_test.ml | estensen/bamboo | e17575938239b60c3335badc2d366b4ba6dd1503 | [
"Apache-2.0"
] | 50 | 2016-10-07T13:09:39.000Z | 2022-03-18T14:03:35.000Z | let case0 = ("pay(address)", "0c11dedd")
let case1_case : Syntax.usual_case_header =
Syntax.(
{ case_return_typ = []
; case_name = "pay"
; case_arguments = [{arg_typ = AddressType; arg_ident = "addr"; arg_location = None}]
})
let case2_case : Syntax.usual_case_header =
Syntax.(
{ case_return_typ = [Ui... | 41.241379 | 95 | 0.689799 |
bc9a352b1d7b2c7c6fc0940a939bcac37b6cdb50 | 6,828 | ml | OCaml | hphp/hack/src/typing/tast_check/switch_check.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/switch_check.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/switch_check.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"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 Aast
open Typing_defs
open Utils
module Env = Tast_env
module Cls = Decl_provider.Class
module ... | 33.970149 | 81 | 0.657001 |
aa8f08262a69ab17529a6c4aa2ff7c727b6f06d2 | 19,645 | ml | OCaml | analysis/test/inferenceTest.ml | SKalt/pyre-check | cc8557f91a23c8819ef781bc978efff6465d9184 | [
"MIT"
] | null | null | null | analysis/test/inferenceTest.ml | SKalt/pyre-check | cc8557f91a23c8819ef781bc978efff6465d9184 | [
"MIT"
] | 1 | 2021-05-11T20:40:20.000Z | 2021-05-11T20:40:20.000Z | analysis/test/inferenceTest.ml | skeptycal/pyre-check | d2176f243247537993f133a0d8ebcde47e28d57e | [
"MIT"
] | null | null | null | (** Copyright (c) 2016-present, Facebook, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree. *)
open Core
open OUnit2
open Ast
open Analysis
open Statement
open Inference
open Test
let configuration = Configuration.Analysis.create ~... | 26.910959 | 100 | 0.559684 |
aae76765b60dbaada3bde6f7e92bdac5b3ec2a07 | 522 | mli | OCaml | src/config.mli | docaml/docaml | a828f1a0a4e0e474cdc8b86ab3a9b00c781600aa | [
"MIT"
] | 2 | 2019-02-22T07:47:21.000Z | 2019-02-23T02:35:49.000Z | src/config.mli | docaml/docaml | a828f1a0a4e0e474cdc8b86ab3a9b00c781600aa | [
"MIT"
] | null | null | null | src/config.mli | docaml/docaml | a828f1a0a4e0e474cdc8b86ab3a9b00c781600aa | [
"MIT"
] | null | null | null | (** Configuration *)
(** Type of user configuration *)
type t
(** Problem with parsing *)
exception Error of string
(** Get the configuration from a file *)
val from_file : string -> t
(** Project name *)
val name : t -> string
(** List of paths to modules *)
val modules : t -> string list
(** Optional list of cu... | 20.076923 | 46 | 0.670498 |
aa17e5040af7a997a1bd7ad0f9a22fbc2b59d995 | 924 | ml | OCaml | lib/p11_info.ml | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | lib/p11_info.ml | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | lib/p11_info.ml | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | let flags_to_string = P11_flags.(to_pretty_string Info_domain)
type flags = P11_flags.t
[@@deriving eq,ord,show,of_yojson]
let flags_to_yojson flags =
P11_flags.to_json ~pretty:flags_to_string flags
type t =
{ cryptokiVersion : P11_version.t
; manufacturerID : string
; flags : flags
; libraryDescription : ... | 29.806452 | 78 | 0.767316 |
aa62aeac28046d4aab6cd90663f199a7eb09c8a6 | 323 | ml | OCaml | benchmarks/C/uniq/sol47.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/uniq/sol47.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/uniq/sol47.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | let rec uniq : 'a list -> 'a list
= fun lst -> let rec remove : 'a -> 'a list -> 'a list
= fun el lst -> match lst with
| [] -> []
| hd :: tl -> if hd = el then remove el tl else hd :: remove el tl
in match lst with
| [] -> []
| hd :: tl -> hd :: uniq (remove hd tl);... | 35.888889 | 73 | 0.442724 |
aa989ebd351953ef682da542eb3b02ab5b149359 | 2,168 | mli | OCaml | src/lib_signer_backends/https.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_signer_backends/https.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_signer_backends/https.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 65.69697 | 96 | 0.495849 |
aae16d7050cba8c00fcd24c4846673f2f60a6b9f | 681 | ml | OCaml | ocamllib/libbase/charMap.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 643 | 2015-01-02T23:57:37.000Z | 2022-03-18T18:50:24.000Z | ocamllib/libbase/charMap.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 52 | 2015-01-17T07:26:16.000Z | 2021-03-08T14:16:08.000Z | ocamllib/libbase/charMap.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 58 | 2015-01-02T23:57:42.000Z | 2022-03-02T12:44:42.000Z | (*
Copyright © 2011 MLstate
This file is part of Opa.
Opa is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License, version 3, as published by
the Free Software Foundation.
Opa is distributed in the hope that it will be useful, but WI... | 35.842105 | 78 | 0.732746 |
bca5bb0a9570b2180a40b8f06c6be211eead8e2b | 251 | mli | OCaml | src/frontend/pltl.mli | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | 31 | 2016-08-16T14:58:40.000Z | 2022-02-19T18:38:07.000Z | src/frontend/pltl.mli | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | 49 | 2020-03-04T18:13:13.000Z | 2022-02-07T17:43:24.000Z | src/frontend/pltl.mli | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | 12 | 2020-02-26T19:58:37.000Z | 2021-11-12T22:18:25.000Z | (*
* The action frontend is responsible on transforming obligations containing
* actions to purely first-order obligations
* Copyright (C) 2013 INRIA and Microsoft Corporation
*)
val process_obligation : Proof.T.obligation -> Proof.T.obligation
| 31.375 | 76 | 0.780876 |
aad7035eead7d1eca1390d496ccc69e9027ec6ce | 606 | ml | OCaml | data/sp14_min/0050.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/0050.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/0050.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let pipe fs =
let f a x a x n = x a in let base = 0 in List.fold_left f base fs;;
(* fix
let pipe fs =
let f a x g b y n = match n with | [] -> n | _ -> y b in
let base = f 0 [] in List.fold_left f base fs;;
*)
(* changed spans
(3,13)-(3,24)
fun g ->
fun b ->
fun y ->
fun n ->
match n wi... | 14.093023 | 69 | 0.481848 |
aac72db05496255948a573c2451838885dfaca19 | 2,002 | mli | OCaml | eval/sherrloc/easyocaml++/camlp4/Camlp4/Struct/FreeVars.mli | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | src/ocaml-3.12.0/camlp4/Camlp4/Struct/FreeVars.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/camlp4/Camlp4/Struct/FreeVars.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (* camlp4r *)
(****************************************************************************)
(* *)
(* Objective Caml *)
(* ... | 40.857143 | 92 | 0.418082 |
aa8379c8b1b298c740c96182688df606e1a3c9aa | 3,299 | ml | OCaml | infer/src/eradicate/AnnotatedSignature.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/eradicate/AnnotatedSignature.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/eradicate/AnnotatedSignature.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2017-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 L = Logging
type t = {ret: Annot.Item.t * Typ.t; params: (Mangled.t * Annot.Item.t * Typ.t) list}
[@@... | 28.938596 | 96 | 0.619582 |
aaad0d428197a5962079b564663ea5af96300a43 | 43,533 | ml | OCaml | src/parser_utils/ssa_builder.ml | oonsamyi/flow | 9739400610f400ed50b6b921a79642563642b7fe | [
"MIT"
] | 1 | 2019-03-11T16:27:05.000Z | 2019-03-11T16:27:05.000Z | src/parser_utils/ssa_builder.ml | vicapow/flow | 0e6e80ae7f3d29a0fbdba8f619730bb76ec74331 | [
"MIT"
] | null | null | null | src/parser_utils/ssa_builder.ml | vicapow/flow | 0e6e80ae7f3d29a0fbdba8f619730bb76ec74331 | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast = Flow_ast
open Hoister
module Make
(L: Loc_sig.S)
(Ssa_api: Ssa_api.S with module L = L)
(Scope_builder:... | 41.858654 | 114 | 0.537339 |
aa1a589ae8c67913404356ff31c52fd07b891251 | 4,375 | mli | OCaml | src/lib_error_monad/error_monad.mli | Piotr170687/tezos | c7e84dfae2837096a4188e835fb780ad514ec2d3 | [
"MIT"
] | 1 | 2021-11-03T08:21:08.000Z | 2021-11-03T08:21:08.000Z | src/lib_error_monad/error_monad.mli | Piotr170687/tezos | c7e84dfae2837096a4188e835fb780ad514ec2d3 | [
"MIT"
] | null | null | null | src/lib_error_monad/error_monad.mli | Piotr170687/tezos | c7e84dfae2837096a4188e835fb780ad514ec2d3 | [
"MIT"
] | 4 | 2021-04-27T15:00:34.000Z | 2021-09-26T21:50:01.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 40.137615 | 79 | 0.581943 |
aa0c9186887a5ce2310150500fade530c9b49ffc | 1,774 | ml | OCaml | hack_parallel/hack_parallel/procs/hack_bucket.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | 35 | 2019-03-01T19:12:21.000Z | 2020-03-14T14:42:34.000Z | hack_parallel/hack_parallel/procs/hack_bucket.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | 11 | 2019-03-11T02:17:18.000Z | 2020-04-28T22:37:03.000Z | hack_parallel/hack_parallel/procs/hack_bucket.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | 4 | 2020-07-09T10:34:00.000Z | 2022-03-22T20:58:09.000Z | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(*************... | 28.15873 | 80 | 0.60823 |
8a8027aa96373f0f5fc8a4b7af2860e7cf902aa7 | 4,318 | mly | OCaml | src/gasparser.mly | scverif/scverif | 307a17b61a2286fb7009d434825f9245caebfddc | [
"BSD-3-Clause"
] | 6 | 2020-05-25T13:18:53.000Z | 2021-12-06T16:26:02.000Z | src/gasparser.mly | scverif/scverif | 307a17b61a2286fb7009d434825f9245caebfddc | [
"BSD-3-Clause"
] | null | null | null | src/gasparser.mly | scverif/scverif | 307a17b61a2286fb7009d434825f9245caebfddc | [
"BSD-3-Clause"
] | null | null | null | (* Copyright 2020 - NXP *)
(* SPDX-License-Identifier: BSD-3-Clause-Clear WITH modifications *)
%{
open Location
open Utils
open Ilast
%}
%token EOF COMMA COLON SHARP EXCLAMATION PLUS
%token DALIGN DDATA DBSS DCPU DGLOBAL DSYNTAX DTEXT DTHUMB DTHUMBFUNC DTYPE
%token LBRACKET RBRACKET LCURLY RCURLY
%token <string... | 35.983333 | 105 | 0.550255 |
aa578828cce15ef3ac40300e50c443628d0bbaf8 | 4,352 | ml | OCaml | hphp/hack/src/utils/cgroup/cGroup.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/cgroup/cGroup.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/cgroup/cGroup.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"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 Core_kernel
module Unix = Caml_unix
open Result.Monad_infix
let spf = Printf.sprintf
(* Little helper module to help me... | 32.969697 | 99 | 0.649357 |
aa552e9aa69a18f34076c0872de448430cc0c6d0 | 230 | ml | OCaml | ppx/test/test.ml | mathiasbourgoin/SPOC | 901b5dbbd2a8117e0eca51b83b6387ff24fcd0a8 | [
"CECILL-B"
] | 92 | 2015-01-11T13:07:20.000Z | 2021-12-23T11:22:14.000Z | ppx/test/test.ml | mathiasbourgoin/SPOC | 901b5dbbd2a8117e0eca51b83b6387ff24fcd0a8 | [
"CECILL-B"
] | 17 | 2016-06-15T15:17:50.000Z | 2022-03-05T09:50:00.000Z | ppx/test/test.ml | mathiasbourgoin/SPOC | 901b5dbbd2a8117e0eca51b83b6387ff24fcd0a8 | [
"CECILL-B"
] | 9 | 2016-03-29T06:39:27.000Z | 2019-10-03T06:02:28.000Z | open Spoc
external%kernel mandelbrot : Spoc.Vector.vint32 -> int -> int -> int -> unit = "kernels/Mandelbrot" "mandelbrot"
(*external%kernel test: int -> int -> int vector = "test_file" "test_fun"*)
let _ = Printf.printf "ok"
| 25.555556 | 112 | 0.678261 |
1704c8289a1bf3e04ef28f56135fc4d3a2acc803 | 1,358 | mli | OCaml | libraries/ssm/lib/listCommandInvocations.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/ssm/lib/listCommandInvocations.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ssm/lib/listCommandInvocations.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<p>An invocation is copy of a command sent to a specific instance. A command can apply to one or more instances. A command invocation applies to one instance. For example, if a user runs SendCommand against three instances, then a command invocation is created for each requested instance ID. ListCommandInvocations... | 43.806452 | 368 | 0.716495 |
aaa85a56268689b6e8e120939f770dd7f59cba9e | 5,814 | ml | OCaml | hphp/hack/src/deps/typing_deps.ml | lavagetto/hhvm | f9ed7ff466944c533733f3d49dcf6405c22ce57d | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2015-07-05T07:32:31.000Z | 2015-07-13T02:31:10.000Z | hphp/hack/src/deps/typing_deps.ml | h4ck3rm1k3/hhvm | 79e045f3ad1cbe079ff15c163131eb184db025f9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/deps/typing_deps.ml | h4ck3rm1k3/hhvm | 79e045f3ad1cbe079ff15c163131eb184db025f9 | [
"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 Core
ope... | 31.427027 | 82 | 0.576195 |
aaaf2411375455c4e338bd1dbe026effc1c8e28b | 1,980 | ml | OCaml | traverse.ml | ashinkarov/heh | 42866803b2ffacdc42b8f06203bf4e5bd18e03b0 | [
"0BSD"
] | 37 | 2017-07-07T19:09:58.000Z | 2022-03-30T21:07:59.000Z | traverse.ml | ashinkarov/heh | 42866803b2ffacdc42b8f06203bf4e5bd18e03b0 | [
"0BSD"
] | 3 | 2017-09-06T19:07:45.000Z | 2018-05-21T08:57:06.000Z | traverse.ml | ashinkarov/heh | 42866803b2ffacdc42b8f06203bf4e5bd18e03b0 | [
"0BSD"
] | 1 | 2018-04-02T17:19:06.000Z | 2018-04-02T17:19:06.000Z | (*
* Copyright (c) 2017-2018, Artem Shinkarov <artyom.shinkaroff@gmail.com>
*
* 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 in all copies.
*
* THE SOFTWARE IS... | 38.823529 | 80 | 0.65 |
aaf18ae8d8a7f8625e273fbb69584c3872fefb8a | 11,517 | ml | OCaml | src/lib/transition_router/transition_router.ml | vitaliel/coda | 2e59cbb5b5fbadfdf98d6b1c03e7711ccd47a144 | [
"Apache-2.0"
] | null | null | null | src/lib/transition_router/transition_router.ml | vitaliel/coda | 2e59cbb5b5fbadfdf98d6b1c03e7711ccd47a144 | [
"Apache-2.0"
] | null | null | null | src/lib/transition_router/transition_router.ml | vitaliel/coda | 2e59cbb5b5fbadfdf98d6b1c03e7711ccd47a144 | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Async_kernel
open Coda_state
open Pipe_lib
open Coda_transition
module type Inputs_intf = sig
include Transition_frontier.Inputs_intf
module Network : sig
type t
val high_connectivity : t -> unit Ivar.t
val peers : t -> Network_peer.Peer.t list
end
module Transition_fronti... | 44.988281 | 84 | 0.71668 |
bc37a3282c5f43922d1e94e1be2055a23407da7a | 4,563 | ml | OCaml | src/lib_base/operation.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_base/operation.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_base/operation.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 41.862385 | 80 | 0.612316 |
aaf99916449f31b6238f8823c10d4c82a3ab83d5 | 503 | ml | OCaml | data/sp14/1284.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/1284.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/1284.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec digitsOfInt n =
if n <= 0 then [] else (match n with | n -> [] @ (n mod 10));;
(* fix
let rec digitsOfInt n =
if n <= 0 then [] else (match n with | n -> [] @ [n mod 10]);;
*)
(* changed spans
(3,51)-(3,61)
*)
(* type error slice
(3,46)-(3,61)
(3,49)-(3,50)
(3,51)-(3,61)
*)
(* all spans
(2,20)-(3,62... | 12.897436 | 64 | 0.467197 |
aa5b0e03ad91d3c9bfb92d7d212e0dfdf12bf538 | 4,177 | ml | OCaml | src/ch3/ch3.2.ml | zxygentoo/eopl-3rd-ocaml | c82e54219abdffac4a4beb6a7743af6b797c744c | [
"BSD-2-Clause"
] | null | null | null | src/ch3/ch3.2.ml | zxygentoo/eopl-3rd-ocaml | c82e54219abdffac4a4beb6a7743af6b797c744c | [
"BSD-2-Clause"
] | null | null | null | src/ch3/ch3.2.ml | zxygentoo/eopl-3rd-ocaml | c82e54219abdffac4a4beb6a7743af6b797c744c | [
"BSD-2-Clause"
] | null | null | null | (* e3.6 3.7 3.8 *)
module Env : sig
type 't env = (string * 't) list
val empty_env : 't env
val extend_env : string -> 't -> 't env -> 't env
val apply_env : string -> 't env -> 't
end = struct
type 't env = (string * 't) list
let empty_env =
[]
let is_empty_env env =
env = []
let extend_en... | 20.885 | 73 | 0.553028 |
aaf4aba7d166420bca1608d417cf135128106710 | 509 | ml | OCaml | benchmarks/lambda/lambda2/submissions/sub53.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/lambda/lambda2/submissions/sub53.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/lambda/lambda2/submissions/sub53.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type exp = V of var
| P of var * exp
| C of exp * exp
and var = string
let rec vpc_eval exp1 ar_env =
match exp1 with
V a ->
let rec ck l1 st =
match l1 with
[] -> false |
h::t -> if h=st then true else (ck t st) in
if (ck ar_env a) then true else false |
P (v, e1) -> if ... | 25.45 | 84 | 0.565815 |
aa43ebb852f28df31dd64bcc66fa5b5649c1272c | 3,212 | ml | OCaml | data/sp14/2633.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/2633.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/2633.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 pi = 4.0 *. (atan 1.0);;
let rec eval (e,x,y) =
match e with
| VarX -> x
| VarY -> y
| Sine e' -> sin (pi *. (eval (e' x y)))
| Cosine e' -> cos (... | 17.456522 | 70 | 0.49533 |
aaf6f2ff85ddbd5c99aea1f859e837c3dcdef096 | 8,467 | ml | OCaml | vendors/Red-Black_Trees/RedBlack.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | 2 | 2021-03-06T12:11:41.000Z | 2021-11-21T13:54:18.000Z | vendors/Red-Black_Trees/RedBlack.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | 4 | 2021-11-10T15:04:00.000Z | 2022-01-14T07:49:14.000Z | vendors/Red-Black_Trees/RedBlack.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | 1 | 2022-03-30T09:12:37.000Z | 2022-03-30T09:12:37.000Z | (* Red-black trees according to the following classic paper:
Chris Okasaki, Red-Black Trees in a Functional
Setting. J. Funct. Program. 9(4): 471-477 (1999)
*)
type colour = Red | Black
type 'a t =
L
| T of colour * 'a t * 'a * 'a t
let empty = L
let is_empty m = (m = empty)
let blacken = function
L -... | 31.243542 | 111 | 0.561592 |
aad7815fdfbe87854bf0e14b14073ddae86432e0 | 1,621 | ml | OCaml | tests/benchmarks_call/DRIFT/negative/binomial00.ml | LinerSu/DART_IT | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 7 | 2020-06-12T09:32:16.000Z | 2020-10-05T09:04:07.000Z | tests/benchmarks_call/DRIFT/negative/binomial00.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | null | null | null | tests/benchmarks_call/DRIFT/negative/binomial00.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 2 | 2021-04-05T12:25:11.000Z | 2021-05-14T09:31:24.000Z | (*
Implementation error
*)
let rec bin_without_checking_1089 x_DO_NOT_CARE_1095 x_DO_NOT_CARE_1096 x_DO_NOT_CARE_1097 n_10319 set_flag_bin_10776 s_bin_n_1072 s_bin_k_1073 k_10329 =
let set_flag_bin_1077_r = true in
let s_bin_k_1073_r = k_10329 in
let s_bin_n_1072_r = n_10319 in
if n_10319 = 5 then
1
else... | 32.42 | 153 | 0.745219 |
170f700c2d0f945309749ac0562c92b29b82e60f | 1,952 | ml | OCaml | hack_parallel/scripts/gen_build_id.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | 35 | 2019-03-01T19:12:21.000Z | 2020-03-14T14:42:34.000Z | hack_parallel/scripts/gen_build_id.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | 11 | 2019-03-11T02:17:18.000Z | 2020-04-28T22:37:03.000Z | hack_parallel/scripts/gen_build_id.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | 4 | 2019-03-12T01:30:31.000Z | 2020-02-16T02:28:04.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.
*)
#use "script_utils.ml"
(**
* Computes some build identifiers based on the current commit. These IDs are
* used to ensure that clients... | 34.245614 | 114 | 0.633709 |
aaae611c0e1cf10a286e6780596613ecce0e7b24 | 3,152 | ml | OCaml | Analyser/tp/6/TP/auxiliary.ml | kolibs/School_projects | d6c45814bf21c1ae788eb2e070f9745414e07553 | [
"MIT"
] | 1 | 2022-02-16T08:38:10.000Z | 2022-02-16T08:38:10.000Z | Analyser/tp/6/TP/auxiliary.ml | kolibs/School_projects | d6c45814bf21c1ae788eb2e070f9745414e07553 | [
"MIT"
] | null | null | null | Analyser/tp/6/TP/auxiliary.ml | kolibs/School_projects | d6c45814bf21c1ae788eb2e070f9745414e07553 | [
"MIT"
] | 2 | 2020-01-11T19:07:41.000Z | 2020-10-08T14:12:54.000Z | open Whilennh
open Set
(**** Further auxiliary functions for the classic data-flow analysis ****)
(**** See [NNH, pag. 36, pag. 84] ****)
(* Computes the inital labels of statements *)
let rec init_stm = function
| Skip l -> l
| Ass (_, _, l) -> l
| While (_, l, _) -> l
| If (_, l, _, _) -> l
| Seq (s1, _... | 27.172414 | 74 | 0.577411 |
aacccb99970b71526004c97360dac31b88cbfc45 | 42,458 | ml | OCaml | sledge/src/ses/term.ml | abhinavsinha001/infer | 2547a75b8b4089d315c9103a20108468808e3095 | [
"MIT"
] | 1 | 2020-08-28T14:00:56.000Z | 2020-08-28T14:00:56.000Z | sledge/src/ses/term.ml | asadrockk1234/infer | 06489dced05bd0e7d19015c0375721885d6f2c1c | [
"MIT"
] | null | null | null | sledge/src/ses/term.ml | asadrockk1234/infer | 06489dced05bd0e7d19015c0375721885d6f2c1c | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** Terms *)
[@@@warning "+9"]
type op1 =
| Signed of {bits: int}
| Unsigned of {bits: int}
| Convert of {src: Llair.Typ.t;... | 32.213961 | 79 | 0.549508 |
aab773b28a72a5740ce064bc9cea779c5b20ad3e | 916 | ml | OCaml | lib_runtime/mirage_info.ml | patricoferris/mirage | d134fead1a4f95ab665eb310364bcb9598a5b419 | [
"ISC"
] | 1 | 2020-08-15T06:10:54.000Z | 2020-08-15T06:10:54.000Z | lib_runtime/mirage_info.ml | patricoferris/mirage | d134fead1a4f95ab665eb310364bcb9598a5b419 | [
"ISC"
] | null | null | null | lib_runtime/mirage_info.ml | patricoferris/mirage | d134fead1a4f95ab665eb310364bcb9598a5b419 | [
"ISC"
] | 1 | 2020-01-18T15:50:34.000Z | 2020-01-18T15:50:34.000Z | (*
* 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 permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS... | 41.636364 | 75 | 0.754367 |
1700895b6b20a6a4a6364569f34baf92cd455238 | 8,655 | mli | OCaml | lablgtk/gobject.mli | CRogers/obc | 49064db244e0c9d2ec2a83420c8d0ee917b54196 | [
"Unlicense"
] | 6 | 2015-07-25T12:18:17.000Z | 2019-08-02T11:24:33.000Z | lablgtk/gobject.mli | CRogers/obc | 49064db244e0c9d2ec2a83420c8d0ee917b54196 | [
"Unlicense"
] | null | null | null | lablgtk/gobject.mli | CRogers/obc | 49064db244e0c9d2ec2a83420c8d0ee917b54196 | [
"Unlicense"
] | 1 | 2021-02-26T17:08:39.000Z | 2021-02-26T17:08:39.000Z | (**************************************************************************)
(* Lablgtk *)
(* *)
(* This program is free software; you can redistribute it *)
(* and/or... | 37.306034 | 79 | 0.58082 |
aaf6899b14dab2b0a146bf8fe1de68ebc36aa01d | 466 | ml | OCaml | muddy-ocaml/examples/test.ml | kfl/muddy | 9a105f2f3ba4044cd3f3473de70670f3c3acfbe7 | [
"MIT"
] | 1 | 2016-10-09T02:51:13.000Z | 2016-10-09T02:51:13.000Z | muddy-ocaml/examples/test.ml | kfl/muddy | 9a105f2f3ba4044cd3f3473de70670f3c3acfbe7 | [
"MIT"
] | null | null | null | muddy-ocaml/examples/test.ml | kfl/muddy | 9a105f2f3ba4044cd3f3473de70670f3c3acfbe7 | [
"MIT"
] | null | null | null | (* Copyright (C) 1997-2001 by Ken Friis Larsen and Jakob Lichtenberg. *)
let _ = Bdd.init 10000 10000
let l = Fdd.extDomain [256,256,256,256,256,256,256,256,256,256]
let [V0,V1,V2,V3,V4,V5,V6,V7,V8,V9] = map varfdd l
let [C0,C1,C2,C3,C4,C5,C6,C7,C8,C9] = map (con 8) [0,1,2,3,4,5,6,7,8,9]
let r1 = mulfixed (C8, 1)
le... | 24.526316 | 72 | 0.652361 |
aa8bd3be157768f5887cca36700c7b10a111be91 | 1,608 | ml | OCaml | infer/src/checkers/addressTaken.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | null | null | null | infer/src/checkers/addressTaken.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | null | null | null | infer/src/checkers/addressTaken.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 1 | 2019-04-26T02:27:43.000Z | 2019-04-26T02:27:43.000Z | (*
* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module Domain = AbstractDomain.FiniteSet (struct
include Pvar
let pp = pp Pp.text
end)
module TransferFunctions (CFG : ... | 28.210526 | 87 | 0.6449 |
aa9ecfb0831f84a03cc62381aab481ab95da66f9 | 3,111 | mll | OCaml | src/lexer.mll | sylvarant/moduleml-witness-algorithm | 7a5307c293524ad3fae14dc123b7b48d61553e47 | [
"Artistic-2.0"
] | 3 | 2015-09-02T22:37:05.000Z | 2015-10-24T11:14:25.000Z | src/lexer.mll | sylvarant/moduleml-witness-algorithm | 7a5307c293524ad3fae14dc123b7b48d61553e47 | [
"Artistic-2.0"
] | null | null | null | src/lexer.mll | sylvarant/moduleml-witness-algorithm | 7a5307c293524ad3fae14dc123b7b48d61553e47 | [
"Artistic-2.0"
] | null | null | null | (*
* =====================================================================================
*
* Filename: lexer.mll
*
* Description: MiniML ML lexer based on the one by Leroy for miniML
*
* Author: AJHL,
* Company: Uppsala
*
* =======================================================... | 22.06383 | 88 | 0.407265 |
bcce5beef71b971c137e6a6569bc5db588a4afef | 560 | mli | OCaml | hphp/hack/src/decl/direct_decl_parser.mli | Mu-L/hhvm | 972dcfd068c41f18ba5eadd1b833750917817225 | [
"PHP-3.01",
"Zend-2.0"
] | 7 | 2021-09-20T18:47:18.000Z | 2021-09-20T23:02:22.000Z | hphp/hack/src/decl/direct_decl_parser.mli | cs-joy/hhvm | fcdbf247527cc38186691653dac9b675fb69a5a8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/direct_decl_parser.mli | cs-joy/hhvm | fcdbf247527cc38186691653dac9b675fb69a5a8 | [
"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 decls = (string * Shallow_decl_defs.decl) list [@@deriving show]
val parse_decls_ffi : DeclParserOptions.t -> Relative_p... | 25.454545 | 79 | 0.705357 |
17044b3a1e45a8af92a410430bcfc6fb345a90c7 | 8,808 | ml | OCaml | src/ephe/ubdag.ml | vladg14/DAGaml | 47e68f74ff515ae2766ed9266b370b3ef753bb13 | [
"MIT"
] | 1 | 2018-04-25T19:41:46.000Z | 2018-04-25T19:41:46.000Z | src/ephe/ubdag.ml | vladg14/DAGaml | 47e68f74ff515ae2766ed9266b370b3ef753bb13 | [
"MIT"
] | null | null | null | src/ephe/ubdag.ml | vladg14/DAGaml | 47e68f74ff515ae2766ed9266b370b3ef753bb13 | [
"MIT"
] | null | null | null | module M0T(ODeco:Map.OrderedType) =
struct
module MemoD = Map.Make(ODeco)
type deco = ODeco.t
type 'a manager = {
assoc : 'a MemoD.t ref;
hitCnt : int ref;
clcCnt : int ref;
}
let makeman hsize = {
assoc = ref MemoD.empty;
hitCnt = ref 0;
clcCnt = ref 0;
}
let dump_stats man = Tree.Leaf ("Hit: "... | 21.430657 | 116 | 0.608878 |
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.