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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
448b947ae3121aaaadef067255b967f7a54fea90 | 11,277 | ml | OCaml | src/lib/transition_frontier_controller_tests/test_transition_frontier.ml | vitaliel/coda | 2e59cbb5b5fbadfdf98d6b1c03e7711ccd47a144 | [
"Apache-2.0"
] | null | null | null | src/lib/transition_frontier_controller_tests/test_transition_frontier.ml | vitaliel/coda | 2e59cbb5b5fbadfdf98d6b1c03e7711ccd47a144 | [
"Apache-2.0"
] | null | null | null | src/lib/transition_frontier_controller_tests/test_transition_frontier.ml | vitaliel/coda | 2e59cbb5b5fbadfdf98d6b1c03e7711ccd47a144 | [
"Apache-2.0"
] | null | null | null | open Core
open Async
open Coda_base
let%test_module "Root_history and Transition_frontier" =
( module struct
let max_length = 5
module Stubs = Stubs.Make (struct
let max_length = max_length
end)
open Stubs
let breadcrumbs_path = Transition_frontier.root_history_path_map ~f:Fn.id
let... | 41.007273 | 81 | 0.634123 |
d2ec6fae564d507b88d71f73daf59b6a4127af6d | 7,415 | mli | OCaml | src/dune/lib.mli | thierry-martinez/dune | e80c901f767a4f904dbbba18d2b5934f33b18e32 | [
"MIT"
] | null | null | null | src/dune/lib.mli | thierry-martinez/dune | e80c901f767a4f904dbbba18d2b5934f33b18e32 | [
"MIT"
] | null | null | null | src/dune/lib.mli | thierry-martinez/dune | e80c901f767a4f904dbbba18d2b5934f33b18e32 | [
"MIT"
] | null | null | null | open! Stdune
open Import
(** {1 Generals} *)
(** Representation of a library *)
type t
val to_dyn : t -> Dyn.t
(** For libraries defined in the workspace, this is the [public_name] if present
or the [name] if not. *)
val name : t -> Lib_name.t
val implements : t -> t Or_exn.t option
(** Directory where the ob... | 23.31761 | 81 | 0.644504 |
4447e9a4b45b8af846b39d69fbd9f846780dbaae | 2,542 | mli | OCaml | src/lib/coda_base/block_time.mli | rahulmutt/coda | 7a7dbb04c4dafea860ac03e5f88e58637e8040d3 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/block_time.mli | rahulmutt/coda | 7a7dbb04c4dafea860ac03e5f88e58637e8040d3 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/block_time.mli | rahulmutt/coda | 7a7dbb04c4dafea860ac03e5f88e58637e8040d3 | [
"Apache-2.0"
] | null | null | null | [%%import "../../config.mlh"]
open Core_kernel
open Snark_params
open Snark_bits
open Tuple_lib
open Fold_lib
module Time : sig
type t [@@deriving sexp, eq, yojson]
type t0 = t
module Controller : sig
[%%if time_offsets]
type t
val create : t -> t
val basic : t
[%%else]
type t = u... | 17.652778 | 73 | 0.557042 |
8abe4a5fffc1024dcc35cd78478cc42141b2d524 | 13,044 | ml | OCaml | src/common/ty/ty_serializer.ml | Brianzchen/flow | 1c69290caca15594f0c1ee652581d8ec1bce4b47 | [
"MIT"
] | null | null | null | src/common/ty/ty_serializer.ml | Brianzchen/flow | 1c69290caca15594f0c1ee652581d8ec1bce4b47 | [
"MIT"
] | null | null | null | src/common/ty/ty_serializer.ml | Brianzchen/flow | 1c69290caca15594f0c1ee652581d8ec1bce4b47 | [
"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 Base.Result
open Ty
module T = Flow_ast.Type
module Let_syntax = struct
let bind x ~f = x >>= f
le... | 34.23622 | 99 | 0.607022 |
4485a376a85a4984c438a9c276e280da5039744f | 3,138 | ml | OCaml | duniverse/bos/test/test_os_cmd.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | 11 | 2020-11-25T14:23:49.000Z | 2021-07-22T07:45:09.000Z | test/test_os_cmd.ml | shakthimaan/bos | 61526bf67f218fd730db8ac19149945eb9c97d20 | [
"0BSD"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | test/test_os_cmd.ml | shakthimaan/bos | 61526bf67f218fd730db8ac19149945eb9c97d20 | [
"0BSD"
] | 1 | 2020-11-25T12:01:04.000Z | 2020-11-25T12:01:04.000Z | (*---------------------------------------------------------------------------
Copyright (c) 2015 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)
open... | 40.230769 | 79 | 0.582537 |
4494d4965c72d6e72bdd5fb60efbc225667ffaa3 | 6,957 | ml | OCaml | src/lib/coda_base/sparse_ledger.ml | rahulmutt/coda | 7a7dbb04c4dafea860ac03e5f88e58637e8040d3 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/sparse_ledger.ml | rahulmutt/coda | 7a7dbb04c4dafea860ac03e5f88e58637e8040d3 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/sparse_ledger.ml | rahulmutt/coda | 7a7dbb04c4dafea860ac03e5f88e58637e8040d3 | [
"Apache-2.0"
] | null | null | null | open Core
open Import
open Snark_params.Tick
module V1_make =
Sparse_ledger_lib.Sparse_ledger.Make (struct
include Ledger_hash.Stable.V1
let merge = Ledger_hash.merge
end)
(Public_key.Compressed.Stable.V1)
(struct
include Account.Stable.V1
let data_hash = Fn.compose Ledger_hash.... | 32.816038 | 79 | 0.66796 |
4430c16e60ac09f03c6a59530f1e6f3843eb8668 | 305 | mli | OCaml | interfaces/4.01/lazy.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 23 | 2017-11-16T10:01:56.000Z | 2021-06-23T08:44:44.000Z | interfaces/4.01/lazy.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 15 | 2018-04-21T13:49:52.000Z | 2022-02-16T11:19:38.000Z | interfaces/4.01/lazy.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 8 | 2018-04-23T18:10:00.000Z | 2021-12-14T14:31:22.000Z | type 'a t = 'a lazy_t
exception Undefined
external force : 'a t -> 'a = "%lazy_force"
val force_val : 'a t -> 'a
val from_fun : (unit -> 'a) -> 'a t
val from_val : 'a -> 'a t
val is_val : 'a t -> bool
val lazy_from_fun : (unit -> 'a) -> 'a t
val lazy_from_val : 'a -> 'a t
val lazy_is_val : 'a t -> bool
| 27.727273 | 43 | 0.593443 |
8a5c04ccf484b6520a0b4522d9c201b262d52953 | 244 | ml | OCaml | benchmarks/I/lambda/sub125.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/I/lambda/sub125.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/I/lambda/sub125.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | (**********************)
(* Problem 2 *)
(**********************)
type lambda = V of var
| P of var * lambda
| C of lambda * lambda
and var = string
let rec check : lambda -> bool
= fun lam -> true (* TODO *)
| 20.333333 | 34 | 0.401639 |
8a57633b073fb2acd4b0af0b6bb4abdd2cf9155e | 1,730 | ml | OCaml | libraries/elasticache/lib/describeCacheClusters.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/elasticache/lib/describeCacheClusters.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/elasticache/lib/describeCacheClusters.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DescribeCacheClustersMessage.t
type output = CacheClusterMessage.t
type error = Errors_internal.t
let service = "elasticache"
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region)))
... | 27.460317 | 90 | 0.623121 |
440832eccb20b7701c159ed14fbe285ce488a986 | 5,382 | ml | OCaml | code/src/netmulticore/netmcore_hashtbl.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/src/netmulticore/netmcore_hashtbl.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/src/netmulticore/netmcore_hashtbl.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | (* $Id$ *)
(* Parts of the implementation are taken over from hashtbl.ml of the
O'Caml distribution
*)
module H = Netmcore_heap
type ('a, 'b, 'h) tbl =
{ mutable size: int; (* number of elements *)
mutable data: ('a, 'b) bucketlist array; (* the buckets *)
header : 'h;
}
and ... | 22.425 | 78 | 0.580082 |
8ad7f617fdf944611f6946657816d625ef8365e9 | 1,728 | ml | OCaml | contents/tree_traversal/code/ocaml/tree.ml | christopherm99/algorithm-archive | dd9b7280efe2c75693c40cb8965e39f6eea41420 | [
"MIT"
] | 1,975 | 2018-04-28T13:46:56.000Z | 2022-03-29T13:14:47.000Z | contents/tree_traversal/code/ocaml/tree.ml | christopherm99/algorithm-archive | dd9b7280efe2c75693c40cb8965e39f6eea41420 | [
"MIT"
] | 632 | 2018-04-28T10:27:13.000Z | 2022-03-28T20:38:53.000Z | contents/tree_traversal/code/ocaml/tree.ml | christopherm99/algorithm-archive | dd9b7280efe2c75693c40cb8965e39f6eea41420 | [
"MIT"
] | 433 | 2018-04-27T22:50:22.000Z | 2022-03-22T06:16:03.000Z | (* submitted by Nicole Mazzuca (ubsan) *)
module Tree : sig
type t
val leaf : int -> t
val with_child : t -> t -> t
val dfs_recursive : t -> unit
val dfs_stack : t -> unit
val bfs_queue : t -> unit
end = struct
type t = {children: t list; value: int}
let leaf value = {children= []; value}
let w... | 23.04 | 79 | 0.604167 |
4424f87579732fef0a99b33dfef602e51f3795da | 7,723 | ml | OCaml | synth/gir/gir_utils.ml | j-c-w/DSPAcceleratorSupport | 0d3a686f57361d40ccc5f203e59fd019d861c53e | [
"Apache-2.0"
] | null | null | null | synth/gir/gir_utils.ml | j-c-w/DSPAcceleratorSupport | 0d3a686f57361d40ccc5f203e59fd019d861c53e | [
"Apache-2.0"
] | 3 | 2022-02-15T16:30:06.000Z | 2022-03-05T18:21:30.000Z | synth/gir/gir_utils.ml | j-c-w/DSPAcceleratorSupport | 0d3a686f57361d40ccc5f203e59fd019d861c53e | [
"Apache-2.0"
] | null | null | null | open Core_kernel;;
open Spec_definition;;
open Spec_utils;;
open Gir;;
open Program;;
let gir_name_to_string gname =
match gname with
| Name(n) -> n
let gir_name_to_name_reference gname =
match gname with
| Name(n) -> name_reference_from_string n
let gir_name_list_to_string gnames =
String.concat ~sep:", ... | 33.145923 | 92 | 0.650006 |
8aaccfd4f75d47148aaa514cc1a694596b170ca4 | 784 | ml | OCaml | benchmarks/diff/diff1/submissions/sub69.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/diff/diff1/submissions/sub69.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/diff/diff1/submissions/sub69.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type ae = CONST of int
| VAR of string
| POWER of string * int
| TIMES of ae list
| SUM of ae list
exception InvalidArgument
let rec diff (expr, variable) =
match expr with
CONST(i) -> CONST(0)
| VAR(str) -> (
if (variable = str) then CONST(1)
else CONST(0))
| POWER(str, i) ->(
if (variable = str) t... | 27.034483 | 112 | 0.545918 |
444be88fdb34e465beea485ef98a1bd6162d197b | 2,775 | ml | OCaml | infer/src/checkers/fragmentRetainsViewChecker.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | infer/src/checkers/fragmentRetainsViewChecker.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | infer/src/checkers/fragmentRetainsViewChecker.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2013 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Util... | 42.045455 | 100 | 0.711351 |
444c079561b52188806c45ea1b5a3eeddf874314 | 68,879 | mli | OCaml | src/gapi/gapiBigqueryV2Model.mli | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | 68 | 2015-01-21T09:19:55.000Z | 2022-02-25T03:17:19.000Z | src/gapi/gapiBigqueryV2Model.mli | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | 25 | 2015-05-16T23:44:58.000Z | 2022-01-14T15:13:22.000Z | src/gapi/gapiBigqueryV2Model.mli | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | 17 | 2015-05-17T23:35:17.000Z | 2022-02-28T20:45:03.000Z | (* Warning! This file is generated. Modify at your own risk. *)
(** Data definition for BigQuery API (v2).
For more information about this data model, see the
{{:https://cloud.google.com/bigquery/}API Documentation}.
*)
module UserDefinedFunctionResource :
sig
type t = {
inlineCode : string;
(** \[... | 41.146356 | 712 | 0.69368 |
4495b55e47938dfc13709c807fc2a845d03485bb | 19,750 | ml | OCaml | pyml_tests.ml | CraigFe/pyml | b6608db88f0559f7e59b9be859a649f5bb6812b7 | [
"BSD-2-Clause"
] | null | null | null | pyml_tests.ml | CraigFe/pyml | b6608db88f0559f7e59b9be859a649f5bb6812b7 | [
"BSD-2-Clause"
] | null | null | null | pyml_tests.ml | CraigFe/pyml | b6608db88f0559f7e59b9be859a649f5bb6812b7 | [
"BSD-2-Clause"
] | null | null | null | let () =
Pyml_tests_common.add_test
~title:"version"
(fun () ->
Printf.printf "Python version %s\n%!" (Py.version ());
Pyml_tests_common.Passed
)
let () =
Pyml_tests_common.add_test
~title:"library version"
(fun () ->
Printf.printf "Python library version %s\n%!" (Py.get_versi... | 30.667702 | 83 | 0.6 |
443c810ef02c69c234166cefd0fa2ae2e468ef5e | 12,497 | mll | OCaml | compiler/parser/ocaml/lexer.mll | jrayzero/seq | db6a7b35e0463d87e9a974eb1f4fe6b2e2c7f578 | [
"Apache-2.0"
] | null | null | null | compiler/parser/ocaml/lexer.mll | jrayzero/seq | db6a7b35e0463d87e9a974eb1f4fe6b2e2c7f578 | [
"Apache-2.0"
] | null | null | null | compiler/parser/ocaml/lexer.mll | jrayzero/seq | db6a7b35e0463d87e9a974eb1f4fe6b2e2c7f578 | [
"Apache-2.0"
] | null | null | null | (* *****************************************************************************
* Seq.Lexer: Lexing module
*
* Author: inumanag
* License: see LICENSE
*
* Heavily inspired and borrowed from https://github.com/m2ym/ocaml-pythonlib
* *****************************************************************************)
... | 37.755287 | 125 | 0.497799 |
8a7cce07b3f0383d5e9743f2b2118eb3e54ff849 | 95,277 | ml | OCaml | src/lib/network_pool/transaction_pool.ml | P7-33/mining | aed227c269042efa4066ff0cf944f96897eda44e | [
"Apache-2.0"
] | 1 | 2021-08-22T12:02:53.000Z | 2021-08-22T12:02:53.000Z | src/lib/network_pool/transaction_pool.ml | P7-33/mining | aed227c269042efa4066ff0cf944f96897eda44e | [
"Apache-2.0"
] | null | null | null | src/lib/network_pool/transaction_pool.ml | P7-33/mining | aed227c269042efa4066ff0cf944f96897eda44e | [
"Apache-2.0"
] | null | null | null | (** A pool of transactions that can be included in future blocks. Combined with
the Network_pool module, this handles storing and gossiping the correct
transactions (user commands) and providing them to the block producer code.
*)
open Core
open Async
open Mina_base
open Pipe_lib
open Signature_lib
open Networ... | 42.083481 | 210 | 0.534011 |
8ab713b18231602220c87f3d9541db55189344a2 | 9,710 | mli | OCaml | src/opencl/owl_opencl_base.mli | syther-labs/owl | f43835e643ac31b6ecedeb2a32fcd99bcc003140 | [
"MIT"
] | null | null | null | src/opencl/owl_opencl_base.mli | syther-labs/owl | f43835e643ac31b6ecedeb2a32fcd99bcc003140 | [
"MIT"
] | null | null | null | src/opencl/owl_opencl_base.mli | syther-labs/owl | f43835e643ac31b6ecedeb2a32fcd99bcc003140 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2022 Liang Wang <liang@ocaml.xyz>
*)
open Owl_opencl_generated
(** {5 Platform module} *)
module Platform : sig
type info =
{ profile : string
; version : string
; name : string
; vendor : string
; extensions : string... | 29.603659 | 104 | 0.667353 |
8a6d93cf7c203f8d1fd292ff809b231b9b77edd4 | 5,917 | ml | OCaml | presentations/coq-workshop-2014-coq/tactics/elimschemes.ml | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/tactics/elimschemes.ml | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/tactics/elimschemes.ml | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | (************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2015 *)
(* \VV/ **************************************************************)
(* // * Th... | 44.488722 | 101 | 0.751394 |
8ac55c50384645f356bdf2cc74be68abaaa308de | 3,503 | mli | OCaml | sledge/nonstdlib/list.mli | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"MIT"
] | 7 | 2018-12-16T02:45:32.000Z | 2022-01-05T13:30:24.000Z | sledge/nonstdlib/list.mli | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"MIT"
] | 25 | 2021-02-08T13:49:24.000Z | 2022-02-28T03:34:19.000Z | sledge/nonstdlib/list.mli | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"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! NS0
include module type of ContainersLabels.List
type 'a t = 'a list [@@deriving compare, equal, hash, sexp]
val pp :
... | 30.46087 | 75 | 0.487297 |
44b28ef83359877ccb9b2db6be490c7b7b65f13c | 589 | ml | OCaml | hphp/hack/src/server/fullFidelityParseService.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/fullFidelityParseService.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/fullFidelityParseService.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
module SyntaxTree = Full_fidelity_syntax_tree
.WithSyntax(Full_fidelity_minimal_syntax)
(* Entry Point *)
let go ... | 29.45 | 66 | 0.767402 |
44658a292d94989ddb4ce9dd822e6e03493babbf | 4,861 | ml | OCaml | src/stream.ml | jensbrak/tracer | 4febe18ef9d8448b7e98e685ddf9cfeb91c1ea4b | [
"MIT"
] | null | null | null | src/stream.ml | jensbrak/tracer | 4febe18ef9d8448b7e98e685ddf9cfeb91c1ea4b | [
"MIT"
] | null | null | null | src/stream.ml | jensbrak/tracer | 4febe18ef9d8448b7e98e685ddf9cfeb91c1ea4b | [
"MIT"
] | null | null | null | (*****************************************************************************
* FILE : stream.ml
* CONTENTS : Implementation of module Stream.
* AUTHOR(S) : Jens Olsson <jenso@csd.uu.se>
* EDITED : Time-stamp: <2000-01-06 15:25:09 jenso>
* COMMENTS :
***************************************************... | 36.276119 | 79 | 0.368648 |
8a8d732c29e7fae5e1030d19c44372d9c73851ab | 9,809 | ml | OCaml | sledge/src/symbheap/exec.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 4 | 2021-11-19T02:07:46.000Z | 2022-03-24T06:03:50.000Z | sledge/src/symbheap/exec.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 1 | 2021-04-05T15:19:58.000Z | 2021-12-16T04:22:26.000Z | sledge/src/symbheap/exec.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | null | null | null | (*
* 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.
*)
(** Symbolic Execution *)
(** generic command: ∀xs.{foot}-{post} *)
type spec = {xs: Var.Set.t; foot: Sh.t; post: Sh.t}
type xseg = {us... | 31.641935 | 76 | 0.605464 |
8a54288bf94080fcb07fd0280bb7547ead4c7d38 | 895 | ml | OCaml | data/derived/comb/progs/unify/prog0458.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/prog0458.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0458.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr
| Op1 of expr
| Op2 of 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... | 26.323529 | 70 | 0.448045 |
8ab5a92ab02db8eea33893f8ad04f402b215736b | 645 | ml | OCaml | hphp/hack/src/client/clientOutline.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-17T02:24:38.000Z | 2020-01-17T02:24:38.000Z | hphp/hack/src/client/clientOutline.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientOutline.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"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.
*
*)
let print_json res =
Nuclide_rpc_message_printer.(outline_response_to_json res |> print_json)
let go res output_j... | 24.807692 | 79 | 0.745736 |
8a8182c53a9ef02d74d958a6745d6faea5620f6c | 8,195 | ml | OCaml | src-opam/dockerfile_linux.ml | dra27/ocaml-dockerfile | f6b9862910dfefec7a7a03072caf42087e0ffe9d | [
"0BSD"
] | 51 | 2015-03-25T18:22:09.000Z | 2022-03-24T16:54:44.000Z | src-opam/dockerfile_linux.ml | dra27/ocaml-dockerfile | f6b9862910dfefec7a7a03072caf42087e0ffe9d | [
"0BSD"
] | 48 | 2017-01-16T12:04:28.000Z | 2022-02-03T10:13:47.000Z | src-opam/dockerfile_linux.ml | dra27/ocaml-dockerfile | f6b9862910dfefec7a7a03072caf42087e0ffe9d | [
"0BSD"
] | 15 | 2015-05-31T11:03:08.000Z | 2022-03-24T16:54:47.000Z | (*
* Copyright (c) 2014 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 IS" A... | 38.838863 | 219 | 0.622209 |
8abac2c1c72f620e1d3b33f5e064bedfe257425c | 2,894 | ml | OCaml | src/my_priority_queue.ml | dra27/core-and-more | e0cbc3e26419ec1e209b329b4cc01e8f541138d2 | [
"MIT"
] | 2 | 2022-02-17T02:18:55.000Z | 2022-03-02T22:54:52.000Z | src/my_priority_queue.ml | dra27/core-and-more | e0cbc3e26419ec1e209b329b4cc01e8f541138d2 | [
"MIT"
] | null | null | null | src/my_priority_queue.ml | dra27/core-and-more | e0cbc3e26419ec1e209b329b4cc01e8f541138d2 | [
"MIT"
] | 1 | 2021-12-06T23:14:05.000Z | 2021-12-06T23:14:05.000Z | open Core
open Util
open My_heap
module type DataWithPriority =
sig
type t
module Priority : Data
val show : t shower
val pp : t pper
val compare : t comparer
val hash : t hasher
val hash_fold_t : t hash_folder
val equal : t equality_check
val priority : t -> Priority.t
end
module PriorityQueueOf(D:... | 22.434109 | 66 | 0.557706 |
445936a695f0173271999765c6a54c7be6879316 | 1,953 | ml | OCaml | data/fa15/0361.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/0361.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/0361.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 buildSine e = Sine e;;
let buildX () = VarX;;
let buildY () = VarY;;
let rec build (rand,depth) =
let r = rand 0.4 in
match depth with
| 0 -> if (r mo... | 15.878049 | 55 | 0.52637 |
8aca4b8d9e7bdcf17fd65e6f1fdcf77b2d7e0b74 | 930 | ml | OCaml | code/chan/task_distribution.ml | christinerose/parallel-programming-in-multicore-ocaml | 0605d9f25147c242edc3a01379a9acaadbddf62a | [
"0BSD"
] | 81 | 2020-08-03T16:53:28.000Z | 2022-03-15T12:49:57.000Z | code/chan/task_distribution.ml | christinerose/parallel-programming-in-multicore-ocaml | 0605d9f25147c242edc3a01379a9acaadbddf62a | [
"0BSD"
] | 5 | 2020-08-20T12:46:28.000Z | 2022-01-28T10:40:13.000Z | code/chan/task_distribution.ml | christinerose/parallel-programming-in-multicore-ocaml | 0605d9f25147c242edc3a01379a9acaadbddf62a | [
"0BSD"
] | 1 | 2021-08-11T04:41:43.000Z | 2021-08-11T04:41:43.000Z | module C = Domainslib.Chan
let num_domains = try int_of_string Sys.argv.(1) with _ -> 4
let n = try int_of_string Sys.argv.(2) with _ -> 10
type 'a message = Task of 'a | Quit
let c = C.make_unbounded ()
let create_work tasks =
Array.iter (fun t -> C.send c (Task t)) tasks;
for _ = 1 to num_domains do
C.send... | 24.473684 | 65 | 0.605376 |
8acafa79945c8b551008a5cf33184c1ed058bcf4 | 1,608 | mli | OCaml | lib/bTree.mli | ruhatch/mirage-btrees | 902decc6948f49034c87b5b20270a2d686476aea | [
"MIT"
] | 11 | 2016-02-27T10:45:17.000Z | 2020-11-23T10:02:45.000Z | lib/bTree.mli | ruhatch/mirage-btrees | 902decc6948f49034c87b5b20270a2d686476aea | [
"MIT"
] | null | null | null | lib/bTree.mli | ruhatch/mirage-btrees | 902decc6948f49034c87b5b20270a2d686476aea | [
"MIT"
] | 2 | 2016-07-13T10:51:04.000Z | 2020-11-23T00:01:47.000Z | module type ALLOCATOR = sig
type t
type pointer
val alloc : t -> int -> pointer list
end
module type STORE = sig
type t
type 'a io
type page_aligned_buffer
type error = [
| `Unknown of string
| `Unimplemented
| `Is_read_only
| `Disconnected
]
type pointer
val bind : 'a io ... | 20.1 | 97 | 0.630597 |
44aaa3853f525cf56efcc851b0bdf1dd8bacadb2 | 19,755 | ml | OCaml | src/dune_engine/process.ml | fpottier/dune | a5a2b558ffa548b66e778ee0d8c84e53bac67891 | [
"MIT"
] | null | null | null | src/dune_engine/process.ml | fpottier/dune | a5a2b558ffa548b66e778ee0d8c84e53bac67891 | [
"MIT"
] | null | null | null | src/dune_engine/process.ml | fpottier/dune | a5a2b558ffa548b66e778ee0d8c84e53bac67891 | [
"MIT"
] | null | null | null | open! Stdune
open Import
open Fiber.O
type ('a, 'b) failure_mode =
| Strict : ('a, 'a) failure_mode
| Accept : int Predicate_lang.t -> ('a, ('a, int) result) failure_mode
let accepted_codes : type a b. (a, b) failure_mode -> int -> bool = function
| Strict -> Int.equal 0
| Accept exit_codes ->
fun i ->
... | 31.257911 | 83 | 0.580562 |
44402d56e5384a920756b362bcb76fc4ac741aa7 | 5,381 | ml | OCaml | MP6/gather_exp_ty_substitution.ml | liutiantian233/Introduction_OCaml | 16102e5edec4b886f8829d1ef7e9ba0aefd39c88 | [
"Unlicense"
] | null | null | null | MP6/gather_exp_ty_substitution.ml | liutiantian233/Introduction_OCaml | 16102e5edec4b886f8829d1ef7e9ba0aefd39c88 | [
"Unlicense"
] | null | null | null | MP6/gather_exp_ty_substitution.ml | liutiantian233/Introduction_OCaml | 16102e5edec4b886f8829d1ef7e9ba0aefd39c88 | [
"Unlicense"
] | null | null | null | open Common
let rec gather_exp_ty_substitution gamma exp tau =
let judgment = ExpJudgment(gamma, exp, tau) in
match exp
with ConstExp c ->
let tau' = const_signature c in
(match unify [(tau, freshInstance tau')]
with None -> None
| Some sigma -> Some(Proof([], judgm... | 56.052083 | 124 | 0.565508 |
44896a086244b34686d511c1069a5fd0c557b8fc | 647 | mli | OCaml | test/tests/autotest/sockatmark_udp.mli | rems-project/netsem | 0b02450eee334fc42f74ad3da09d3ce1a0698a48 | [
"BSD-2-Clause-FreeBSD"
] | 34 | 2018-02-26T20:37:44.000Z | 2022-02-24T01:49:55.000Z | test/tests/autotest/sockatmark_udp.mli | PeterSewell/netsem | 0b02450eee334fc42f74ad3da09d3ce1a0698a48 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | test/tests/autotest/sockatmark_udp.mli | PeterSewell/netsem | 0b02450eee334fc42f74ad3da09d3ce1a0698a48 | [
"BSD-2-Clause-FreeBSD"
] | 5 | 2015-04-24T15:26:34.000Z | 2017-12-12T23:39:13.000Z | (* ---------------------------------------------------------------------- *)
(* Netsem Tthee Automated Tests Code: sockatmark() UDP *)
(* Matthew Fairbairn - Created 20040116 *)
(* $Id: sockatmark_udp.mli,v 1.1 2004/02/17 21:47:04 mf266 Exp $ *)
(* ------------------... | 29.409091 | 83 | 0.510046 |
449efcb3da6117f576f720b4691068771e5e040c | 25,528 | ml | OCaml | hphp/hack/test/integration_ml/test_server_hover.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration_ml/test_server_hover.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration_ml/test_server_hover.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*
*)
open Hh_core
open HoverService
module Test = Integration_test_base
let pos_at (line1, column1) (line2, column2) ... | 28.114537 | 348 | 0.548613 |
8afd447072447534bb362080e519d6be10b161b0 | 7,651 | mli | OCaml | src/backend/Integers.mli | Joshua-401/OpenSC | 665a83fb628ac7feeaa9afb0c5d990bd0470c572 | [
"MIT"
] | 1 | 2020-05-11T05:31:46.000Z | 2020-05-11T05:31:46.000Z | src/backend/Integers.mli | Joshua-401/OpenSC | 665a83fb628ac7feeaa9afb0c5d990bd0470c572 | [
"MIT"
] | 4 | 2020-03-29T00:17:22.000Z | 2020-04-21T03:34:16.000Z | src/backend/Integers.mli | Joshua-401/OpenSC | 665a83fb628ac7feeaa9afb0c5d990bd0470c572 | [
"MIT"
] | 1 | 2020-06-02T22:21:02.000Z | 2020-06-02T22:21:02.000Z | open BinInt
open BinNums
open BinPos
open Coqlib
open Datatypes
open List0
open Specif
open Zpower
type comparison =
| Ceq
| Cne
| Clt
| Cle
| Cgt
| Cge
module type WORDSIZE =
sig
val wordsize : nat
end
module Make :
functor (WS:WORDSIZE) ->
sig
val wordsize : nat
val zwordsize : coq_Z
val modulus : co... | 16.889625 | 60 | 0.58659 |
8ae2aba5773827719b6b1db85a75eff2c27b26e0 | 252 | mli | OCaml | reddit_api_kernel/username.mli | nmtake/ocaml-reddit-api | 4cba7b98fe0a0f61f2908a83752936e60f69275e | [
"MIT"
] | 3 | 2020-12-31T06:25:49.000Z | 2022-03-27T11:25:09.000Z | reddit_api_kernel/username.mli | nmtake/ocaml-reddit-api | 4cba7b98fe0a0f61f2908a83752936e60f69275e | [
"MIT"
] | 7 | 2020-09-21T12:38:34.000Z | 2022-03-28T00:28:11.000Z | reddit_api_kernel/username.mli | nmtake/ocaml-reddit-api | 4cba7b98fe0a0f61f2908a83752936e60f69275e | [
"MIT"
] | 2 | 2021-07-03T22:24:38.000Z | 2022-03-27T04:02:00.000Z | (** [Username] is a string identifier module that does some normalization:
- Hashes and comparisons are caseless.
- "u/" and "/u/" prefixes are dropped.
*)
open! Core_kernel
include Identifiable.S
val of_string_or_deleted : string -> t option
| 22.909091 | 74 | 0.72619 |
44645269dba810f9fa4a32c52c8bfede14a0b2f0 | 38,374 | ml | OCaml | src/analyses/mCP.ml | denis631/analyzer | f4444a0c42d7d846f6fa6ebfca27a6275a0dbf94 | [
"MIT"
] | null | null | null | src/analyses/mCP.ml | denis631/analyzer | f4444a0c42d7d846f6fa6ebfca27a6275a0dbf94 | [
"MIT"
] | null | null | null | src/analyses/mCP.ml | denis631/analyzer | f4444a0c42d7d846f6fa6ebfca27a6275a0dbf94 | [
"MIT"
] | null | null | null | (** Master Control Program *)
open Prelude.Ana
open GobConfig
open Analyses
type spec_modules = { spec : (module Spec)
; dom : (module Lattice.S)
; glob : (module Lattice.S)
; cont : (module Printable.S) }
let analyses_list : (int * spec_modules) list ref... | 38.722503 | 171 | 0.550086 |
447183238add46b7f8d3aa370a970ae4c1580046 | 158 | ml | OCaml | src/tut0.ml | zanderso/cil-template | fc2a0548b2644c53c4840df2a09c1c90b2af2aee | [
"BSD-3-Clause"
] | null | null | null | src/tut0.ml | zanderso/cil-template | fc2a0548b2644c53c4840df2a09c1c90b2af2aee | [
"BSD-3-Clause"
] | null | null | null | src/tut0.ml | zanderso/cil-template | fc2a0548b2644c53c4840df2a09c1c90b2af2aee | [
"BSD-3-Clause"
] | null | null | null |
open Cil
module E = Errormsg
let tut0 (f : file) : unit =
E.log "I'n in tut0 and I could change %s if I wanted to!\n" f.fileName;
()
| 11.285714 | 73 | 0.550633 |
4499bf4f82679c4c2737dea9c004acca38ef50b6 | 63,962 | ml | OCaml | source/interprocedural/callGraph.ml | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | null | null | null | source/interprocedural/callGraph.ml | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | null | null | null | source/interprocedural/callGraph.ml | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Core
open Analysis
open Ast
open Statement
open Expression
open Pyre
module CallTarget = struct
type t = {
target: Ta... | 35.833053 | 102 | 0.646853 |
8a29dc6c55903c0e865ab559cd79eca3c2b17937 | 6,776 | ml | OCaml | src/passes/02-parsing/shared/ParserMainGen.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | src/passes/02-parsing/shared/ParserMainGen.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | src/passes/02-parsing/shared/ParserMainGen.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | (* This module is a wrapper for running the LIGO parsers as standalone
pieces of software. *)
(* Vendor dependencies *)
module Region = Simple_utils.Region
module PreprocMainGen = Preprocessor.PreprocMainGen
(* Internal dependencies *)
module type FILE = Preprocessing_shared.File.S
module type COMMENTS ... | 32.7343 | 86 | 0.572019 |
af813d24e891b49ef7beedc2b70ff50bdce193e5 | 18,882 | ml | OCaml | source/analysis/globalResolution.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 1 | 2021-05-17T23:13:52.000Z | 2021-05-17T23:13:52.000Z | source/analysis/globalResolution.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | null | null | null | source/analysis/globalResolution.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 1 | 2021-05-13T13:30:24.000Z | 2021-05-13T13:30:24.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 Core
open Pyre
open Ast
open Statement
type t = {
dependency: SharedMemoryKeys.DependencyKey.registered option;
annotated... | 32.499139 | 100 | 0.736151 |
8ad969621922619f2d25582ab45bb33473c31059 | 1,806 | ml | OCaml | hphp/hack/src/typing/typing_ops.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_ops.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_ops.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
module Reason = Typing_reason
module Env = Typing_env
module MakeType = Typing_make_type
(********... | 31.137931 | 79 | 0.614064 |
4492a856280ccda47ed862f428fa3516a28e08d5 | 2,369 | ml | OCaml | src/server/env/serverEnv.ml | segmentationfaulter/flow | 3dddd0603fef8034949c3a04b24688125d1a2d71 | [
"MIT"
] | 1 | 2022-02-06T01:14:40.000Z | 2022-02-06T01:14:40.000Z | src/server/env/serverEnv.ml | villesau/flow | 81272dd05d96d0c7547eb00859020ebfc6aee4da | [
"MIT"
] | null | null | null | src/server/env/serverEnv.ml | villesau/flow | 81272dd05d96d0c7547eb00859020ebfc6aee4da | [
"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.
*)
(*****************************************************************************)
(* The "static" environment, initialized first and... | 41.561404 | 86 | 0.627269 |
4474be13749ba6f363d584b0b919e95758d6071e | 1,539 | ml | OCaml | main.ml | schmmd/schmitriz-ml | 93bc52835d9fd772467663d57df0e86e2adcaad5 | [
"Apache-2.0"
] | null | null | null | main.ml | schmmd/schmitriz-ml | 93bc52835d9fd772467663d57df0e86e2adcaad5 | [
"Apache-2.0"
] | null | null | null | main.ml | schmmd/schmitriz-ml | 93bc52835d9fd772467663d57df0e86e2adcaad5 | [
"Apache-2.0"
] | null | null | null | open Defs
open Shape
open Game
open Visual
(* seed the random number generator *)
let _ = Random.self_init ()
(* this is the main function that contains the main loop *)
let main f_init f_end f_key f_mouse f_except =
f_init ();
try
while true do
try
let s = Graphics.wait_next_event
... | 24.822581 | 68 | 0.62768 |
447d1fb0c6eff4f59fe8b85e7f9d08d854915729 | 747 | ml | OCaml | data/derived/comb/progs/unify/prog7410.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/prog2600.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2600.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n =
if n < 1 then [] else (match n with | _ -> x :: (clone x (n - 1)));;
let padZero l1 l2 =
let s1 = List.length l1 in
let s2 = List.length l2 in
if s1 = s2
then (l1, l2)
else
if s1 > s2
then (l1, ((clone 0 (s1 - s2)) @ l2))
else (((clone 0 (s2 - s1)) @ l1), l2);;
let rec rem... | 25.758621 | 77 | 0.514056 |
8ab79f44b5ee1ef821091bfc905e7249ba7df7a2 | 15,287 | ml | OCaml | src/parser.ml | ThiBen/cubicatt | 4b9b6781ecaaa58ae04475bbae4e0ca9e7d56685 | [
"MIT"
] | null | null | null | src/parser.ml | ThiBen/cubicatt | 4b9b6781ecaaa58ae04475bbae4e0ca9e7d56685 | [
"MIT"
] | null | null | null | src/parser.ml | ThiBen/cubicatt | 4b9b6781ecaaa58ae04475bbae4e0ca9e7d56685 | [
"MIT"
] | null | null | null | type token =
| COH
| OBJ
| PIPE
| MOR
| PATH
| LPAR
| RPAR
| LBRA
| RBRA
| COL
| IDENT of (string)
| STRING of (string)
| CHECK
| EVAL
| HYP
| ENV
| EQUAL
| LET
| IN
| TEST
| EOF
open Parsing;;
let _ = parse_error;;
# 2 "parser.mly"
open Common
open Command
open Sy... | 36.484487 | 90 | 0.640871 |
44a958712ca7dcd152f6d142404029b997fafabe | 632 | mly | OCaml | src/parser.mly | raphael-proust/odds | c1b53a2140c0047dacf8c3a5a9984e22ee72a61d | [
"0BSD"
] | 3 | 2017-07-05T20:26:57.000Z | 2021-05-21T00:15:14.000Z | src/parser.mly | raphael-proust/odds | c1b53a2140c0047dacf8c3a5a9984e22ee72a61d | [
"0BSD"
] | 8 | 2017-07-06T19:49:06.000Z | 2017-07-14T11:19:12.000Z | src/parser.mly | raphael-proust/odds | c1b53a2140c0047dacf8c3a5a9984e22ee72a61d | [
"0BSD"
] | null | null | null | %{
open Odds.Algebra
%}
%token EOF
%token <int> INTEGER
%token PLUS DASH STAR SLASH D MIN MAX
%token LPAREN RPAREN
%left PLUS DASH
%left STAR SLASH
%nonassoc NEG
%left MAX MIN
%left D
%start<int Odds.t> entry
%%
entry:
| t=formula EOF { t }
formula:
| i=INTEGER { !i }
| LPAREN t = formula RPAREN { t }
| l=f... | 16.631579 | 42 | 0.625 |
8ad145e196f6d5cff88c441f7dad18677849543c | 1,679 | mli | OCaml | hack/utils/core/hh_logger.mli | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | 1 | 2019-07-21T09:08:35.000Z | 2019-07-21T09:08:35.000Z | hack/utils/core/hh_logger.mli | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | null | null | null | hack/utils/core/hh_logger.mli | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | 1 | 2019-07-30T11:52:42.000Z | 2019-07-30T11:52:42.000Z | (**
* Copyright (c) 2019, 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.
*
*)
(* This `.mli` file was generated automatically. It may include extra
definitions that should not actually be expose... | 37.311111 | 76 | 0.676593 |
441c146f19fb2aefed00863ed6a8554b9fa0788f | 2,825 | ml | OCaml | _build/install/default/lib/tcpip/udpv4-socket/udpv4_socket.ml | pit36/tcp-mirage | 552fa3d4bdfeadd335e4a0339c8f2ffcc83376cc | [
"0BSD"
] | null | null | null | _build/install/default/lib/tcpip/udpv4-socket/udpv4_socket.ml | pit36/tcp-mirage | 552fa3d4bdfeadd335e4a0339c8f2ffcc83376cc | [
"0BSD"
] | null | null | null | _build/install/default/lib/tcpip/udpv4-socket/udpv4_socket.ml | pit36/tcp-mirage | 552fa3d4bdfeadd335e4a0339c8f2ffcc83376cc | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2014 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 IS" A... | 33.235294 | 122 | 0.699823 |
8adde08a18b10dcc8168d17206cc535e16632be8 | 10,038 | ml | OCaml | src/lib/merkle_address/merkle_address.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | null | null | null | src/lib/merkle_address/merkle_address.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | null | null | null | src/lib/merkle_address/merkle_address.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Bitstring
let depth = bitstring_length
let add_padding path =
let length = depth path in
if length mod 8 = 0 then path
else concat [ path; zeroes_bitstring (8 - (length mod 8)) ]
let slice = subbitstring
let to_string path : string =
let len = depth path in
let bytes = Bytes.create l... | 29.698225 | 122 | 0.66308 |
4461e185d38007e26a4117e671c997e532eb8f16 | 979 | ml | OCaml | example/free.ml | Nymphium/haikan | b438de8007d342f0dbf099bbcfb9f0de96bc21c4 | [
"MIT"
] | null | null | null | example/free.ml | Nymphium/haikan | b438de8007d342f0dbf099bbcfb9f0de96bc21c4 | [
"MIT"
] | null | null | null | example/free.ml | Nymphium/haikan | b438de8007d342f0dbf099bbcfb9f0de96bc21c4 | [
"MIT"
] | null | null | null | open Higher
open Haikan
open Haikan.Ext
module Ops = struct
type 'r t =
| Double of int * (int -> 'r)
| Write of string * (unit -> 'r)
module M = Newtype1 (struct
type nonrec 'a t = 'a t
end)
let double v k = Double (v, k) |> M.inj
let write s k = Write (s, k) |> M.inj
module Functor : Contr... | 19.979592 | 63 | 0.539326 |
4490f77392e91243ee334f736dbf56d8fdd1f660 | 620 | ml | OCaml | ocaml-sources/testsuite/tests/generalized-open/funct_body.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | ocaml-sources/testsuite/tests/generalized-open/funct_body.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | ocaml-sources/testsuite/tests/generalized-open/funct_body.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | null | null | null | (* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
** check-ocamlc.byte-output
*)
module type T = sig
type t
val x : t
val f : t -> unit
end
module Int = struct
type t = int
let x = 42
let f = print_int
end
module String = struct
type t = string
let x = "Forty Two"
l... | 12.916667 | 31 | 0.593548 |
440016646957b2600880c682d9da4c7bd05eaa8b | 225 | mli | OCaml | test/functoria/e2e/lib/e2e.mli | palainp/mirage | 09d3e17125e782c58aae92c8bb2f849b41fd2037 | [
"ISC"
] | 1,622 | 2015-01-03T13:32:31.000Z | 2022-03-31T23:16:50.000Z | test/functoria/e2e/lib/e2e.mli | palainp/mirage | 09d3e17125e782c58aae92c8bb2f849b41fd2037 | [
"ISC"
] | 739 | 2015-01-08T12:44:35.000Z | 2022-03-30T06:31:27.000Z | test/functoria/e2e/lib/e2e.mli | palainp/mirage | 09d3e17125e782c58aae92c8bb2f849b41fd2037 | [
"ISC"
] | 190 | 2015-01-04T12:20:37.000Z | 2022-03-30T02:57:26.000Z | open Functoria.DSL
val register :
?packages:package list ->
?keys:abstract_key list ->
?init:job impl list ->
?src:[ `Auto | `None | `Some of string ] ->
string ->
job impl list ->
unit
val run : unit -> unit
| 17.307692 | 45 | 0.617778 |
4491f281462d97ac1b3ed478ad51a27ef57551d2 | 2,423 | ml | OCaml | multishot/memo.ml | kayceesrk/effects-examples | 0094c7b759c5af2f26f7b1d0a09e11fe33492c70 | [
"ISC"
] | 164 | 2016-11-16T23:27:11.000Z | 2020-04-02T16:49:10.000Z | multishot/memo.ml | kayceesrk/effects-examples | 0094c7b759c5af2f26f7b1d0a09e11fe33492c70 | [
"ISC"
] | 8 | 2016-11-06T12:07:32.000Z | 2019-02-14T10:07:40.000Z | multishot/memo.ml | kayceesrk/effects-examples | 0094c7b759c5af2f26f7b1d0a09e11fe33492c70 | [
"ISC"
] | 8 | 2016-11-16T14:22:06.000Z | 2019-06-22T17:46:20.000Z | open Effect
open Effect.Deep
(* OCaml 5 removed the ability to clone continuations. See this conversation
https://discuss.ocaml.org/t/multi-shot-continuations-gone-forever/9072.
It is possible this example could be revived using:
https://github.com/dhil/ocaml-multicont
*)
module Memo : sig
val memoize : ... | 29.192771 | 79 | 0.589765 |
449848d22805c106fd70176ff68f4215039ed72e | 1,768 | ml | OCaml | src/pedersen.ml | kalusao/snarky | 262cae8e4271508731479a5821e88e39b5659be3 | [
"MIT"
] | null | null | null | src/pedersen.ml | kalusao/snarky | 262cae8e4271508731479a5821e88e39b5659be3 | [
"MIT"
] | null | null | null | src/pedersen.ml | kalusao/snarky | 262cae8e4271508731479a5821e88e39b5659be3 | [
"MIT"
] | 1 | 2018-07-02T17:41:20.000Z | 2018-07-02T17:41:20.000Z | open Core_kernel
module Make
(Impl : Snark_intf.S)
(Curve : sig
type var = Impl.Cvar.t * Impl.Cvar.t
type value
val typ : (var, value) Impl.Typ.t
val cond_add : value -> to_:var -> if_:Impl.Boolean.var -> (var, _) Impl.Checked.t
end)
: sig
open Impl
module Digest : sig
... | 24.219178 | 113 | 0.58767 |
44b88ac4708ef0b28fd85b867ce173f823825cf3 | 2,035 | mli | OCaml | src/bin_node/genesis_chain.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/bin_node/genesis_chain.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/bin_node/genesis_chain.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 72.678571 | 79 | 0.476658 |
447e317f346883918113dd654b769464821dbcd6 | 4,939 | mli | OCaml | src/lustre/lustreAstNormalizer.mli | kind2-mc/kind2 | 12ee2b8a6fc3033f6bb2d278efc771e612906621 | [
"Apache-2.0"
] | 62 | 2015-02-04T17:49:51.000Z | 2022-03-19T21:52:06.000Z | src/lustre/lustreAstNormalizer.mli | kind2-mc/kind2 | 12ee2b8a6fc3033f6bb2d278efc771e612906621 | [
"Apache-2.0"
] | 110 | 2015-01-20T14:26:17.000Z | 2022-03-22T02:25:49.000Z | src/lustre/lustreAstNormalizer.mli | kind2-mc/kind2 | 12ee2b8a6fc3033f6bb2d278efc771e612906621 | [
"Apache-2.0"
] | 25 | 2017-02-20T21:13:55.000Z | 2021-07-20T19:46:09.000Z | (* This file is part of the Kind 2 model checker.
Copyright (c) 2020 by the Board of Trustees of the University of Iowa
Licensed under the Apache License, Version 2.0 (the "License"); you
may not use this file except in compliance with the License. You
may obtain a copy of the License at
http://www.a... | 35.789855 | 92 | 0.699534 |
4462d3283c998f6d855f2c819de6ee9fb86082c4 | 941 | mli | OCaml | src/dune_rules/artifacts.mli | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | src/dune_rules/artifacts.mli | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | src/dune_rules/artifacts.mli | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | open! Dune_engine
open! Stdune
open! Import
module Bin : sig
type t
(** A named artifact that is looked up in the PATH if not found in the tree If
the name is an absolute path, it is used as it. *)
val binary :
t
-> ?hint:string
-> loc:Loc.t option
-> string
-> Action.Prog.t Memo.Bu... | 22.95122 | 80 | 0.63762 |
8ad2400ce3e4165daeb0f5620cfea6dafa49e69f | 841 | ml | OCaml | hphp/hack/src/hhbc/tast_annotate.ml | jeffomatic/hhvm | afd1a0c089aff36a31b8990490366606694a2842 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-07-21T09:08:35.000Z | 2019-07-21T09:08:35.000Z | hphp/hack/src/hhbc/tast_annotate.ml | jeffomatic/hhvm | afd1a0c089aff36a31b8990490366606694a2842 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/tast_annotate.ml | jeffomatic/hhvm | afd1a0c089aff36a31b8990490366606694a2842 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-07-30T11:52:42.000Z | 2019-07-30T11:52:42.000Z | (**
* Copyright (c) 2017, 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 T = Tast
(* In order to create Tast nodes, sometimes it is necessary to annotate the
* artificially created... | 30.035714 | 92 | 0.737218 |
4418bc7bc05f4128b244b5ec8b24574c9e5adf81 | 2,536 | ml | OCaml | src/stdune/hashtbl.ml | kit-ty-kate/dune | 7b37f89424e39d212f8efca29e38f9895031d5b7 | [
"MIT"
] | null | null | null | src/stdune/hashtbl.ml | kit-ty-kate/dune | 7b37f89424e39d212f8efca29e38f9895031d5b7 | [
"MIT"
] | null | null | null | src/stdune/hashtbl.ml | kit-ty-kate/dune | 7b37f89424e39d212f8efca29e38f9895031d5b7 | [
"MIT"
] | null | null | null | module type S = Hashtbl_intf.S
module Make(H : sig
include Hashable.S
val to_dyn : t -> Dyn.t
end) = struct
module Table = MoreLabels.Hashtbl.Make(H)
include struct
open Table
[@@@warning "-32"]
let find_opt t key =
match find t key with
| x -> Some x
| exception Not_found... | 24.152381 | 72 | 0.549685 |
8ae564be9be60a7b893c6ac35378e3454882795e | 9,715 | ml | OCaml | hphp/hack/src/typing/typing_suggest.ml | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2016-10-08T12:13:09.000Z | 2016-10-08T12:13:09.000Z | hphp/hack/src/typing/typing_suggest.ml | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_suggest.ml | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(** Module u... | 37.655039 | 84 | 0.587339 |
446c82f9dfb5b13bf8e587c436bfb562202ad9d1 | 1,404 | ml | OCaml | hphp/hack/test/unit/utils/perf/stats_test.ml | KIBEBENSON/hhvm | 36ef0d11162898de284bae31d839577cc35571d2 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-11-01T13:46:07.000Z | 2019-11-01T13:46:07.000Z | hphp/hack/test/unit/utils/perf/stats_test.ml | KIBEBENSON/hhvm | 36ef0d11162898de284bae31d839577cc35571d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/unit/utils/perf/stats_test.ml | KIBEBENSON/hhvm | 36ef0d11162898de284bae31d839577cc35571d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | let epsilon = 1.0e-10
let ( =. ) a b = abs_float (a -. b) < epsilon
let compare_quantiles ?(show = true) xs1 xs2 =
let eq =
let rec work xs1 xs2 =
match (xs1, xs2) with
| ([], []) -> true
| (x1 :: xs1, x2 :: xs2) -> x1 =. x2 && work xs1 xs2
| (_, _) -> false
in
work xs1 xs2
in
... | 27 | 73 | 0.602564 |
446255416e68b2ec5884bd2328ff2d45a5b34bf3 | 636 | ml | OCaml | src/templates.ml | mooreryan/git_lab_notebooks | 82285351b7c3aa9ad17da0f510e128618821ff7e | [
"Apache-2.0",
"MIT"
] | 2 | 2022-01-21T19:16:05.000Z | 2022-03-07T14:57:49.000Z | src/templates.ml | mooreryan/git_lab_notebooks | 82285351b7c3aa9ad17da0f510e128618821ff7e | [
"Apache-2.0",
"MIT"
] | null | null | null | src/templates.ml | mooreryan/git_lab_notebooks | 82285351b7c3aa9ad17da0f510e128618821ff7e | [
"Apache-2.0",
"MIT"
] | null | null | null | open! Core
let make_template_data action action_fname =
Printf.sprintf
{whatever|PUT COMMIT MSG HERE.
== Details ==
PUT DETAILS HERE.
== Command(s) ==
%s
== Action file ==
%s
|whatever}
(* Strip because the action generally has extra trailing newline. *)
(String.strip action)
(Fname.name action_fn... | 19.875 | 72 | 0.704403 |
4462dbd73f2e8ff9fdf1b7aa8b67a54ffbd0b8a1 | 1,355 | ml | OCaml | lib/ocaml/src/TThreadedServer.ml | wlmwang/thrift | 22671db01f5c349f2fa54b393581cb4d61bdd895 | [
"Apache-2.0"
] | 8,514 | 2015-01-02T12:00:14.000Z | 2022-03-31T10:34:56.000Z | lib/ocaml/src/TThreadedServer.ml | wlmwang/thrift | 22671db01f5c349f2fa54b393581cb4d61bdd895 | [
"Apache-2.0"
] | 1,290 | 2015-01-03T02:40:20.000Z | 2022-03-30T09:39:26.000Z | lib/ocaml/src/TThreadedServer.ml | wlmwang/thrift | 22671db01f5c349f2fa54b393581cb4d61bdd895 | [
"Apache-2.0"
] | 3,849 | 2015-01-01T02:13:43.000Z | 2022-03-31T06:23:34.000Z | (*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use th... | 29.456522 | 60 | 0.669373 |
4492ad0f9631873f766a53ef35398ff08dc0c68c | 2,808 | ml | OCaml | common-procs/DeleteUnreachableProc.ml | s-falke/kittel-koat | c00d21f6a4485d2b085949b936b2a379e2d30be0 | [
"Apache-2.0"
] | 16 | 2015-02-12T21:46:52.000Z | 2020-11-02T07:47:28.000Z | common-procs/DeleteUnreachableProc.ml | s-falke/kittel-koat | c00d21f6a4485d2b085949b936b2a379e2d30be0 | [
"Apache-2.0"
] | 6 | 2017-01-15T08:38:39.000Z | 2021-08-06T15:42:39.000Z | common-procs/DeleteUnreachableProc.ml | s-falke/kittel-koat | c00d21f6a4485d2b085949b936b2a379e2d30be0 | [
"Apache-2.0"
] | 11 | 2015-01-13T10:35:37.000Z | 2020-05-21T15:38:01.000Z | (*
Unreachable removal
@author Stephan Falke
Copyright 2010-2014 Stephan Falke
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless... | 40.114286 | 176 | 0.708689 |
8ae10704b278ea971e1e945ab6b98dd38f813132 | 5,945 | ml | OCaml | src/lib_protocol_environment/test/test_proxy_context.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_protocol_environment/test/test_proxy_context.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_protocol_environment/test/test_proxy_context.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 41 | 84 | 0.584525 |
4455f344e7bbecbb4b465bbe655bc61a015c40d2 | 89,490 | ml | OCaml | trained/NYSE-MS-day-2014-12-26-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | null | null | null | trained/NYSE-MS-day-2014-12-26-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | null | null | null | trained/NYSE-MS-day-2014-12-26-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | 2 | 2020-05-03T11:14:09.000Z | 2021-11-18T10:26:30.000Z | [BASIC]
[BASIC:PARAMS]
[BASIC:NETWORK]
beginTraining=0
connectionLimit=0
contextTargetOffset=0,0,0
contextTargetSize=0,0,0
endTraining=2
hasContext=f
inputCount=180
layerCounts=4,37,181
layerFeedCounts=4,36,180
layerContextCount=0,0,0
layerIndex=0,4,41
output=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,... | 2,983 | 27,220 | 0.818326 |
8a0e702ab1e9459eb4691ac263e2f78df9d74e66 | 33 | ml | OCaml | archive/o/ocaml/hello-world.ml | vidit624/sample-programs | 514bc7191ff33d1d91b937524aa23291fde3d695 | [
"MIT"
] | 422 | 2018-08-14T11:57:47.000Z | 2022-03-07T23:54:34.000Z | archive/o/ocaml/hello-world.ml | vidit624/sample-programs | 514bc7191ff33d1d91b937524aa23291fde3d695 | [
"MIT"
] | 1,498 | 2018-08-10T19:18:52.000Z | 2021-12-14T03:02:00.000Z | archive/o/ocaml/hello-world.ml | vidit624/sample-programs | 514bc7191ff33d1d91b937524aa23291fde3d695 | [
"MIT"
] | 713 | 2018-08-12T21:37:49.000Z | 2022-03-02T22:57:21.000Z | print_string "Hello, World!\n";;
| 16.5 | 32 | 0.69697 |
4410665888deba427f90b714ed48c194892b3a78 | 18,554 | ml | OCaml | data/derived/comb/progs/unify/prog6959.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/prog2143.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2143.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.955595 | 208 | 0.659265 |
4490cad929d2f35f2cecd169d6cd4c431b355be2 | 7,624 | ml | OCaml | src/dune/simple_rules.ml | progman1/dune | e937feef4fb03d83bd551489420a557a5a6fc1c0 | [
"MIT"
] | null | null | null | src/dune/simple_rules.ml | progman1/dune | e937feef4fb03d83bd551489420a557a5a6fc1c0 | [
"MIT"
] | null | null | null | src/dune/simple_rules.ml | progman1/dune | e937feef4fb03d83bd551489420a557a5a6fc1c0 | [
"MIT"
] | null | null | null | open! Stdune
open Import
open Dune_file
open! No_io
module SC = Super_context
module Alias_rules = struct
let stamp ~deps ~action ~extra_bindings =
( "user-alias"
, Bindings.map ~f:Dep_conf.remove_locs deps
, Option.map ~f:Action_unexpanded.remove_locs action
, Option.map extra_bindings ~f:Pform.Map.... | 36.478469 | 80 | 0.665268 |
447bd1b54d593f789b4a89e32a908d5a2cbf9619 | 92 | ml | OCaml | lib/config_type.ml | pkel/ocaml-notmuch | ea235da091fcff96f3927e42f1c320b20c7de9d7 | [
"MIT"
] | null | null | null | lib/config_type.ml | pkel/ocaml-notmuch | ea235da091fcff96f3927e42f1c320b20c7de9d7 | [
"MIT"
] | null | null | null | lib/config_type.ml | pkel/ocaml-notmuch | ea235da091fcff96f3927e42f1c320b20c7de9d7 | [
"MIT"
] | null | null | null | type item =
string * string
type section =
string * item list
type t =
section list
| 10.222222 | 20 | 0.663043 |
441b6530ca4adabc99d7d23135fd5574e639510e | 2,293 | ml | OCaml | src/irmin/content_addressable_intf.ml | jthelin/irmin | f989de227332918b12c25415c0fa8ed2a1e34ec9 | [
"0BSD"
] | 1,491 | 2015-01-04T05:34:56.000Z | 2022-03-31T09:53:17.000Z | src/irmin/content_addressable_intf.ml | jthelin/irmin | f989de227332918b12c25415c0fa8ed2a1e34ec9 | [
"0BSD"
] | 1,132 | 2015-01-05T17:06:31.000Z | 2022-03-30T19:56:47.000Z | src/irmin/content_addressable_intf.ml | jthelin/irmin | f989de227332918b12c25415c0fa8ed2a1e34ec9 | [
"0BSD"
] | 144 | 2015-01-30T14:00:16.000Z | 2022-03-29T16:30:47.000Z | (*
* Copyright (c) 2013-2021 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... | 31.410959 | 80 | 0.677715 |
448d764ef5fa0a06bbf6502d36985423706f6f08 | 1,190 | ml | OCaml | src/irmin/diff.ml | anmolsahoo25/irmin | 652ad8029483fa912d5bef34edc3aedda8aa3e6f | [
"ISC"
] | null | null | null | src/irmin/diff.ml | anmolsahoo25/irmin | 652ad8029483fa912d5bef34edc3aedda8aa3e6f | [
"ISC"
] | null | null | null | src/irmin/diff.ml | anmolsahoo25/irmin | 652ad8029483fa912d5bef34edc3aedda8aa3e6f | [
"ISC"
] | 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... | 44.074074 | 78 | 0.704202 |
44883da3401cc9b5fa22016ff9993484f9a299a7 | 217 | mli | OCaml | libraries/ec2/lib/copyFpgaImage.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/copyFpgaImage.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/ec2/lib/copyFpgaImage.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = CopyFpgaImageRequest.t
type output = CopyFpgaImageResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 31 | 74 | 0.746544 |
44bb5c3fd9032484af722776231931e201a39673 | 39,114 | ml | OCaml | tg.ml | shmul/tg | fb264d8036d0d0b31948008d3b0c5e0fdc08f7ee | [
"MIT"
] | null | null | null | tg.ml | shmul/tg | fb264d8036d0d0b31948008d3b0c5e0fdc08f7ee | [
"MIT"
] | null | null | null | tg.ml | shmul/tg | fb264d8036d0d0b31948008d3b0c5e0fdc08f7ee | [
"MIT"
] | null | null | null |
open Core.Std
module Regex = Re2.Regex
module SI = Set.Make(Int)
type tag =
| Album
| Artist
| Track
| Disc
| Disctrack
| Title
| Rest
| Year
| Location
| Date
let tag_of_string = function
| "TITLE" -> Title
| "ALBUM" -> Album
| "TRACK" -> Track
| "TRACKNUMBER" -> Track
| "ART... | 35.622951 | 209 | 0.541341 |
446e5419dcf4ee727781cfa9bd9422b0ffb9e1c9 | 2,926 | ml | OCaml | lib/utils/console_logger.ml | bcdarwin/bistro | 8383e10422f1a8f634fd27b5515d5195bbe1f75f | [
"CECILL-B"
] | 44 | 2016-01-21T20:34:10.000Z | 2021-04-30T00:21:34.000Z | lib/utils/console_logger.ml | bcdarwin/bistro | 8383e10422f1a8f634fd27b5515d5195bbe1f75f | [
"CECILL-B"
] | 37 | 2016-01-31T12:00:13.000Z | 2021-11-13T21:58:41.000Z | lib/utils/console_logger.ml | bcdarwin/bistro | 8383e10422f1a8f634fd27b5515d5195bbe1f75f | [
"CECILL-B"
] | 11 | 2016-07-07T14:43:17.000Z | 2022-03-29T00:30:31.000Z | open Core
open Lwt
open Bistro_engine
let zone = Lazy.force Time.Zone.local
let msg t fmt =
let k s =
let t = Time.(to_string (of_tm ~zone (Unix.localtime t))) in
printf "[%s] %s\n%!" t s
in
ksprintf k fmt
let error_short_descr_of_outcome = function
| `Succeeded -> assert false
| `Scheduler_error _... | 28.970297 | 106 | 0.657553 |
44613fb1d05f1a0e9179613dbce23f3a747cfdd2 | 31,722 | ml | OCaml | src/analysis/track_definition.ml | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | src/analysis/track_definition.ml | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | src/analysis/track_definition.ml | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | (* {{{ 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... | 37.540828 | 96 | 0.636751 |
445942045731d692971c2a9cb57899f43cc2c009 | 4,845 | ml | OCaml | compiler/main.ml | CRogers/obc | 49064db244e0c9d2ec2a83420c8d0ee917b54196 | [
"Unlicense"
] | 6 | 2015-07-25T12:18:17.000Z | 2019-08-02T11:24:33.000Z | compiler/main.ml | CRogers/obc | 49064db244e0c9d2ec2a83420c8d0ee917b54196 | [
"Unlicense"
] | null | null | null | compiler/main.ml | CRogers/obc | 49064db244e0c9d2ec2a83420c8d0ee917b54196 | [
"Unlicense"
] | 1 | 2021-02-26T17:08:39.000Z | 2021-02-26T17:08:39.000Z | (*
* main.ml
*
* This file is part of the Oxford Oberon-2 compiler
* Copyright (c) 2006 J. M. Spivey
* 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. Redistributions of source code... | 38.452381 | 79 | 0.692054 |
44b3d72cad257299c3b92f9e571045000c73965f | 7,763 | ml | OCaml | data/derived/comb/progs/unify/prog2771.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/prog2772.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2772.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.138047 | 148 | 0.68878 |
8aff724743cbf04085c5af9f1e4bc4ee3e5d126d | 19,050 | ml | OCaml | kindEngine/infer.ml | brick-lang/kekka | 7ede659ffb49959b140e6ab0a72d38ff6c63311b | [
"Apache-2.0"
] | 14 | 2015-09-14T11:13:35.000Z | 2019-11-14T16:08:02.000Z | kindEngine/infer.ml | brick-lang/kekka | 7ede659ffb49959b140e6ab0a72d38ff6c63311b | [
"Apache-2.0"
] | null | null | null | kindEngine/infer.ml | brick-lang/kekka | 7ede659ffb49959b140e6ab0a72d38ff6c63311b | [
"Apache-2.0"
] | null | null | null | open Core
open Common
open Common.ConcreteSyntax
open Heart
open InferKind
(* Responsibilities of the kind checker:
* - Kindcheck all types in the program
* - Translate user types to internal types
* - Collect lists of data types, synonyms and constructors
* - Expand all synonyms (i.e., replace `id(int)` by `id(in... | 48.721228 | 239 | 0.642362 |
44baca415b506c9c6dd76aaaccc1a58c19e2d1cd | 6,714 | ml | OCaml | data/derived/comb/progs/unify/prog6807.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/prog1988.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1988.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let rec sumList xs = match xs with
| [] -> 0
| h::t -> h + (sumList t);;
let _ = sumList [1; 2; 3; 4]
let _ = sumList [1; -2; 3; 5]
let _ = sumList [1; 3; 5; 7; 9; 11]
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... | 24.593407 | 94 | 0.633155 |
4469648009bc8cd5152c1f9ce38e8b147c01f522 | 514 | mli | OCaml | vendor/async_kernel/src/job_queue.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/async_kernel/src/job_queue.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/async_kernel/src/job_queue.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | (** Internal to Async -- a queue of jobs to run. *)
open! Core_kernel
open! Import
module Scheduler = Scheduler0
type t = Types.Job_queue.t [@@deriving sexp_of]
include Invariant.S with type t := t
val create : unit -> t
val enqueue : t -> Execution_context.t -> ('a -> unit) -> 'a -> unit
val clear : t -> unit
val ... | 27.052632 | 69 | 0.669261 |
44a8e62c15849e95b9719614439d2c166cd4d2a5 | 1,312 | ml | OCaml | src/owl/sparse/owl_sparse_matrix_d.ml | syther-labs/owl | f43835e643ac31b6ecedeb2a32fcd99bcc003140 | [
"MIT"
] | null | null | null | src/owl/sparse/owl_sparse_matrix_d.ml | syther-labs/owl | f43835e643ac31b6ecedeb2a32fcd99bcc003140 | [
"MIT"
] | null | null | null | src/owl/sparse/owl_sparse_matrix_d.ml | syther-labs/owl | f43835e643ac31b6ecedeb2a32fcd99bcc003140 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2022 Liang Wang <liang@ocaml.xyz>
*)
(** [ Sparse matrix ] *)
open Bigarray
module M = Owl_sparse_matrix_generic
include M
type elt = float
type mat = (float, Bigarray.float64_elt) Owl_sparse_matrix_generic.t
(* overload functions in Owl... | 23.017544 | 80 | 0.66997 |
44b94ed6d60d827885f17aed6cb787f852b7bddd | 1,104 | ml | OCaml | 2018/10/points.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | 2 | 2022-01-04T23:09:54.000Z | 2022-01-26T08:57:20.000Z | 2018/10/points.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | null | null | null | 2018/10/points.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | null | null | null | open! Core
open! Async
open! Import
type t = Point.t list
let step = List.map ~f:Point.step
let span_exn (t : t) =
match t with
| [] -> invalid_arg "span_exn"
| hd :: tl ->
List.fold
tl
~init:((hd.x, hd.y), (hd.x, hd.y))
~f:(fun ((min_x, min_y), (max_x, max_y)) { x; y; _ } ->
(Int... | 26.285714 | 88 | 0.576993 |
af5ba4a93b45ad26f0c59ec8dffdc9130bec619c | 21,731 | ml | OCaml | data/derived/comb/progs/unify/prog1772.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/prog1772.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1772.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | 0(*XXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... | 33.639319 | 208 | 0.633749 |
44a4d907be3fd627d5d1d498a772109963064a8b | 2,491 | ml | OCaml | src/redis_intf.ml | lukepalmer/redis-async | b4a8db0d2ce5f5c22983e65181688a127854a910 | [
"MIT"
] | null | null | null | src/redis_intf.ml | lukepalmer/redis-async | b4a8db0d2ce5f5c22983e65181688a127854a910 | [
"MIT"
] | null | null | null | src/redis_intf.ml | lukepalmer/redis-async | b4a8db0d2ce5f5c22983e65181688a127854a910 | [
"MIT"
] | null | null | null | (** A Redis client that provides a typeful API around commands.
Note that if you prefer a vanilla Redis client you can specify Bulk_io.String for
[Key] and [Value].
*)
open! Core
open Async
module type S = sig
module Key : sig
type t
end
module Value : sig
type t
end
type t
val create... | 33.213333 | 94 | 0.639101 |
8a5413de085364d16e0667d44bee95b891fbe7a3 | 423 | ml | OCaml | tests/types/class/recursive03.ml | Lignum/amulet | ed7d271c8a775964ca66a8e87c6347ccc662835a | [
"BSD-3-Clause"
] | null | null | null | tests/types/class/recursive03.ml | Lignum/amulet | ed7d271c8a775964ca66a8e87c6347ccc662835a | [
"BSD-3-Clause"
] | null | null | null | tests/types/class/recursive03.ml | Lignum/amulet | ed7d271c8a775964ca66a8e87c6347ccc662835a | [
"BSD-3-Clause"
] | null | null | null | external val prim_show : 'a -> string = "tostring"
external val print : string -> unit = "print"
class show 'a begin
val show : 'a -> string
end
instance show 'a => show (list 'a) begin
let show = function
| Nil -> "[]"
| Cons (x, xs) -> show x ^ " :: " ^ show xs
end
instance show int begin
let show = ... | 16.92 | 50 | 0.583924 |
8af67fff36ae25573e5b487213e2cffa2588f287 | 34,178 | ml | OCaml | src/typing/type_visitor.ml | ostera/flow | 5006818684fe3210edb57c07fbb978287fdd225f | [
"MIT"
] | 1 | 2019-07-15T20:48:46.000Z | 2019-07-15T20:48:46.000Z | src/typing/type_visitor.ml | wgao19/flow | 8e6b768fd787c5a1b5f7025fbf8b3b00111671de | [
"MIT"
] | 8 | 2020-04-06T11:23:08.000Z | 2022-03-24T12:41:12.000Z | src/typing/type_visitor.ml | wgao19/flow | 8e6b768fd787c5a1b5f7025fbf8b3b00111671de | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Type
module P = Polarity
let pole_TODO = Polarity.Neutral
(* We walk types in a lot of places for all kinds of things, but ... | 32.768936 | 100 | 0.641612 |
448a197ad7b92d105e044607b1aec5a69a841be6 | 245 | ml | OCaml | src/attribute.ml | zapashcanon/stationary | e31cc858f292339775e629cca14f6c9bd0053744 | [
"MIT"
] | null | null | null | src/attribute.ml | zapashcanon/stationary | e31cc858f292339775e629cca14f6c9bd0053744 | [
"MIT"
] | null | null | null | src/attribute.ml | zapashcanon/stationary | e31cc858f292339775e629cca14f6c9bd0053744 | [
"MIT"
] | null | null | null | open Core
type t = string * string
[@@deriving sexp]
let to_string (k, v) = sprintf "%s=\"%s\"" k (String.escaped v)
let create k v = (k, v)
let class_ c = create "class" c
let href url = create "href" url
let src url = create "src" url
| 16.333333 | 63 | 0.628571 |
44b9dc3f2c61642ebedf3c2c1ebc2739ac2755eb | 28,286 | ml | OCaml | src/generate.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | src/generate.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | src/generate.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | (*----------------------------------------------------------------------------
Copyright (c) 2016 Inhabited Type LLC.
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. Redistri... | 36.451031 | 92 | 0.432334 |
446b5fe274179a372604660f85b52ebe3d7c9520 | 10,344 | ml | OCaml | hack/utils/sys_utils.ml | ASSETLID/Aych.flow | ad9ff08d0bdcca0b6c51c63af902d798ca38c839 | [
"BSD-3-Clause"
] | 1 | 2021-06-26T03:44:58.000Z | 2021-06-26T03:44:58.000Z | hack/utils/sys_utils.ml | ASSETLID/Aych.flow | ad9ff08d0bdcca0b6c51c63af902d798ca38c839 | [
"BSD-3-Clause"
] | null | null | null | hack/utils/sys_utils.ml | ASSETLID/Aych.flow | ad9ff08d0bdcca0b6c51c63af902d798ca38c839 | [
"BSD-3-Clause"
] | 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
ex... | 30.245614 | 87 | 0.671887 |
441bb4894cfdd8add1fadcbd2cdae4d598a2b0d6 | 219 | ml | OCaml | src/vendor/link-gyp.ml | idkjs/luv | c73630f0db209f70a84d61da03841831fb118be0 | [
"MIT"
] | null | null | null | src/vendor/link-gyp.ml | idkjs/luv | c73630f0db209f70a84d61da03841831fb118be0 | [
"MIT"
] | null | null | null | src/vendor/link-gyp.ml | idkjs/luv | c73630f0db209f70a84d61da03841831fb118be0 | [
"MIT"
] | null | null | null | #load "unix.cma"
let () =
if Sys.file_exists "libuv/build/gyp" then
exit 0;
(try Unix.mkdir "libuv/build" 0o755
with Unix.Unix_error (Unix.EEXIST, _, _) -> ());
Unix.symlink "../../gyp" "libuv/build/gyp"
| 19.909091 | 50 | 0.621005 |
44bd96ddf7bf83c3df5886c8abb6726aa7c7aaca | 67,784 | ml | OCaml | hphp/hack/src/hh_single_type_check.ml | gaurav1086/hhvm | 44b0edc7a9186a4ccc04ecbba0f5cf52619d37e0 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-17T02:24:38.000Z | 2020-01-17T02:24:38.000Z | hphp/hack/src/hh_single_type_check.ml | gaurav1086/hhvm | 44b0edc7a9186a4ccc04ecbba0f5cf52619d37e0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hh_single_type_check.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 Core_kernel
open File_content
open String_utils
open Sys_utils
open Typing_env_types
module Inf = Typing_infere... | 36.132196 | 118 | 0.634338 |
8af75b99998c2d126979732ade2b710ff7101787 | 839 | ml | OCaml | benchmarks/formula/formula1/submissions/sub206.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/formula/formula1/submissions/sub206.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/formula/formula1/submissions/sub206.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type formula = TRUE
| FALSE
| NOT of formula
| ANDALSO of formula * formula
| ORELSE of formula * formula
| IMPLY of formula * formula
| LESS of expr * expr
and expr = NUM of int
| PLUS of expr * expr
| MINUS of expr * expr
let rec calc a =
match... | 28.931034 | 72 | 0.544696 |
44b7e487e9be0963c269235d808c831ccb186f6b | 594 | mli | OCaml | hphp/hack/src/server/serverConfig.mli | 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/serverConfig.mli | 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/serverConfig.mli | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2015-06-16T05:47:12.000Z | 2015-06-16T05:47:12.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.
*
*)
type t
val l... | 27 | 80 | 0.700337 |
44ba4f89f65c6b8fc4732c6252667f057ecd5bd5 | 17,821 | ml | OCaml | ppx/ppx_cstruct.ml | rgrinberg/ocaml-cstruct | 5a4907812dc4053ea2f73d87f9110483f8643b3e | [
"0BSD"
] | null | null | null | ppx/ppx_cstruct.ml | rgrinberg/ocaml-cstruct | 5a4907812dc4053ea2f73d87f9110483f8643b3e | [
"0BSD"
] | null | null | null | ppx/ppx_cstruct.ml | rgrinberg/ocaml-cstruct | 5a4907812dc4053ea2f73d87f9110483f8643b3e | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2015 Nicolas Ojeda Bar <n.oje.bar@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS I... | 35.149901 | 101 | 0.599125 |
8a7b7ee784f6a55d4146d597dd4282825da2dc8d | 56 | ml | OCaml | sihl/session/sihl_session.ml | kit-ty-kate/sihl | c5fa996573a7098391495c1fb809ce90ed97caf9 | [
"MIT"
] | null | null | null | sihl/session/sihl_session.ml | kit-ty-kate/sihl | c5fa996573a7098391495c1fb809ce90ed97caf9 | [
"MIT"
] | null | null | null | sihl/session/sihl_session.ml | kit-ty-kate/sihl | c5fa996573a7098391495c1fb809ce90ed97caf9 | [
"MIT"
] | null | null | null | include Model
module Service = Service
module Sig = Sig
| 14 | 24 | 0.785714 |
44a4fe547ebae03c6009733c9d91980b4f53cd2f | 1,738 | ml | OCaml | libraries/ec2/lib/createNetworkInterface.ml | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/ec2/lib/createNetworkInterface.ml | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/ec2/lib/createNetworkInterface.ml | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
open Aws
type input = CreateNetworkInterfaceRequest.t
type output = CreateNetworkInterfaceResult.t
type error = Errors_internal.t
let service = "ec2"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (En... | 27.587302 | 89 | 0.626007 |
443769db34ca37c959297ba08591b26fb535c333 | 3,858 | ml | OCaml | src/lib/unsigned_extended/unsigned_extended.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | null | null | null | src/lib/unsigned_extended/unsigned_extended.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | null | null | null | src/lib/unsigned_extended/unsigned_extended.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | null | null | null | (* unsigned_extended.ml *)
open Core_kernel
include Intf
open Snark_params
open Tick
module type Unsigned_intf = Unsigned.S
module Extend
(Unsigned : Unsigned.S) (M : sig
val length : int
end) : S with type t = Unsigned.t = struct
assert (M.length < Field.size_in_bits - 3)
let length_in_bits = M.l... | 21.920455 | 99 | 0.629082 |
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.