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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1709ca35812780255f4d7e7cf0b9ce8d30665af5 | 3,117 | ml | OCaml | src/proto_005_PsBabyM1/lib_protocol/time_repr.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_005_PsBabyM1/lib_protocol/time_repr.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_005_PsBabyM1/lib_protocol/time_repr.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"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> *)
... | 45.173913 | 82 | 0.546038 |
17338682c0ab99e500bb721a66d99ce5982f70ac | 6,831 | ml | OCaml | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/ocamltest/environments.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 1 | 2020-09-24T05:03:32.000Z | 2020-09-24T05:03:32.000Z | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/ocamltest/environments.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/ocamltest/environments.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 36.529412 | 78 | 0.65071 |
173cdbf8ad98318e544c62d322e4b57823abddf5 | 218 | mli | OCaml | libraries/ec2/lib/cancelImportTask.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/ec2/lib/cancelImportTask.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/ec2/lib/cancelImportTask.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
type input = CancelImportTaskRequest.t
type output = CancelImportTaskResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| 19.818182 | 85 | 0.770642 |
44812bfd4c1d7a8835ea2923747da5a64381b7aa | 19,091 | ml | OCaml | src/proto_011_PtHangz2/lib_protocol/test/integration/gas/test_gas_levels.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_011_PtHangz2/lib_protocol/test/integration/gas/test_gas_levels.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_011_PtHangz2/lib_protocol/test/integration/gas/test_gas_levels.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 39.444215 | 85 | 0.666335 |
175f62977358873f6317c0e4c2a2214693356721 | 2,783 | ml | OCaml | data/seminal/20060317-21:37:11-096a01551f7cdd335b3d20437b761729.seminal.ml | ucsd-progsys/nanoml | 0de06f2c3a41063b1bf87d5f6dd11ad830be0512 | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/seminal/20060317-21:37:11-096a01551f7cdd335b3d20437b761729.seminal.ml | ucsd-progsys/nanoml | 0de06f2c3a41063b1bf87d5f6dd11ad830be0512 | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/seminal/20060317-21:37:11-096a01551f7cdd335b3d20437b761729.seminal.ml | ucsd-progsys/nanoml | 0de06f2c3a41063b1bf87d5f6dd11ad830be0512 | [
"BSD-3-Clause"
] | 3 | 2016-10-11T21:36:24.000Z | 2021-12-08T21:52:40.000Z | exception Unimplemented
exception AlreadyDone
let pi = 4.0 *. atan 1.0
(*** part a ***)
type move =
Home
| Forward of float
| Turn of float
| For of int * move list
(*** part b ***)
let makePoly sides len =
let angle = pi-.(pi/.sides) in
let rec createMoveList moves =
if moves = si... | 27.554455 | 81 | 0.46784 |
aaa3336e05f12ac3227eb6bd096497b7aa79cbdb | 142 | ml | OCaml | myocamlbuild.ml | dinosaure/Decompress | 31882d05660bf5a23487587c3a5fe66a2d4d74fa | [
"MIT"
] | 16 | 2015-04-28T12:23:13.000Z | 2015-08-19T03:46:02.000Z | myocamlbuild.ml | dinosaure/Decompress | 31882d05660bf5a23487587c3a5fe66a2d4d74fa | [
"MIT"
] | 1 | 2015-08-10T16:03:18.000Z | 2015-08-20T16:52:38.000Z | myocamlbuild.ml | dinosaure/Decompress | 31882d05660bf5a23487587c3a5fe66a2d4d74fa | [
"MIT"
] | null | null | null | open Ocamlbuild_plugin
let () = dispatch @@ function
| After_hygiene ->
pdep [ "link" ] "linkdep" (fun param -> [ param ])
| _ -> ()
| 20.285714 | 54 | 0.577465 |
aabddd56589ca162c70629150d43dbb86bc6abac | 1,035 | ml | OCaml | experiments/extraction/ml/PeanoNat.ml | fvoichick/QVM | f4399237c178d8df81e3ac4e6cdaa5c05bd35134 | [
"MIT"
] | null | null | null | experiments/extraction/ml/PeanoNat.ml | fvoichick/QVM | f4399237c178d8df81e3ac4e6cdaa5c05bd35134 | [
"MIT"
] | 10 | 2021-11-26T02:48:56.000Z | 2022-03-28T14:16:09.000Z | experiments/extraction/ml/PeanoNat.ml | inQWIRE/VQO | 621cb78ba5ba9dbf81576210b37b8d2d91c457b5 | [
"MIT"
] | 1 | 2021-11-17T16:06:08.000Z | 2021-11-17T16:06:08.000Z |
module Nat =
struct
(** val add : int -> int -> int **)
let rec add = (+)
(** val mul : int -> int -> int **)
let rec mul = ( * )
(** val sub : int -> int -> int **)
let rec sub = (-)
(** val ltb : int -> int -> bool **)
let ltb n m =
(<=) (succ n) m
(** val pow : int -> int -> int **)
... | 18.818182 | 62 | 0.426087 |
aa2eac0dd39f1b3973efb0154e5101c69a8a0ed5 | 1,358 | mli | OCaml | src/lib/transition_frontier/full_frontier/full_frontier.mli | jackpaparian/coda | 6da61361bdfda7f0de0ce525230b35bac965cb17 | [
"Apache-2.0"
] | 1 | 2020-05-05T07:31:26.000Z | 2020-05-05T07:31:26.000Z | src/lib/transition_frontier/full_frontier/full_frontier.mli | kunxian-xia/coda | 93295e8b4db5f4f2d192a26f90146bf322808ef8 | [
"Apache-2.0"
] | null | null | null | src/lib/transition_frontier/full_frontier/full_frontier.mli | kunxian-xia/coda | 93295e8b4db5f4f2d192a26f90146bf322808ef8 | [
"Apache-2.0"
] | null | null | null | (** This module is the core implementation of the in memory "full frontier".
* In this context, "full" refers to the fact that this frontier contains
* "fully expanded blockchain states" (i.e. [Breadcrumb]s). By comparison,
* the persistent frontier only contains "light blockchain states" (i.e.
* [External_tran... | 30.177778 | 79 | 0.729013 |
1719ba9207a2e7369ed4cfe66430083878ef7b77 | 8,317 | mli | OCaml | src/core/CCSeq.mli | verbosemode/ocaml-containers | a127e139aeb48b12b16b8a928cefcf54f8bced5c | [
"BSD-2-Clause"
] | null | null | null | src/core/CCSeq.mli | verbosemode/ocaml-containers | a127e139aeb48b12b16b8a928cefcf54f8bced5c | [
"BSD-2-Clause"
] | null | null | null | src/core/CCSeq.mli | verbosemode/ocaml-containers | a127e139aeb48b12b16b8a928cefcf54f8bced5c | [
"BSD-2-Clause"
] | null | null | null |
(* This file is free software, part of containers. See file "license" for more details. *)
(** Helpers for the standard {b Seq} type
See {{: https://github.com/c-cube/oseq/} oseq} for a richer API.
*)
type 'a iter = ('a -> unit) -> unit
type 'a gen = unit -> 'a option
type 'a equal = 'a -> 'a -> bool
type 'a or... | 28.097973 | 90 | 0.544307 |
44638b105d59ca86b0900a742bffb929fbafc1aa | 5,425 | ml | OCaml | infer/src/IR/Tenv.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | null | null | null | infer/src/IR/Tenv.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | null | null | null | infer/src/IR/Tenv.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 Hashtbl = Caml.Hashtbl
module L = Logging
(** Module for Type Environments. *)
(** Hash tables on strings. *)
module T... | 32.100592 | 99 | 0.714286 |
bc5f9c56fecb32c7de5d90698987c207e8f9129c | 11,906 | ml | OCaml | rillc/lib/compiler/handler.ml | yutopp/rill | 375b67c03ab2087d0a2a833bd9e80f3e51e2694f | [
"BSL-1.0"
] | 66 | 2015-01-23T15:18:38.000Z | 2021-02-22T00:21:46.000Z | rillc/lib/compiler/handler.ml | yutopp/rill | 375b67c03ab2087d0a2a833bd9e80f3e51e2694f | [
"BSL-1.0"
] | 27 | 2016-05-16T14:25:03.000Z | 2021-01-13T13:35:01.000Z | rillc/lib/compiler/handler.ml | yutopp/rill | 375b67c03ab2087d0a2a833bd9e80f3e51e2694f | [
"BSL-1.0"
] | 10 | 2015-12-28T23:17:24.000Z | 2019-04-28T15:03:55.000Z | (*
* Copyright yutopp 2021 - .
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*)
open! Base
module Sema_helper = struct
module Mod = Sema.Mod
(* TODO: Find root module for pkg like a lib.rs *)
let ... | 30.764858 | 81 | 0.649504 |
aa976cf1a94772e80270207960ee8af3150d647f | 761 | ml | OCaml | data/derived/comb/progs/cnstr/prog3962.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/cnstr/prog3962.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/cnstr/prog3962.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n =
match n with | 0 -> [] | a -> if a < 0 then [] else (clone x (n - 1)) @ [x];;
let padZero l1 l2 =
if (List.length l1) > (List.length l2)
then (l1, (List.append (clone 0 ((List.length l1) - (List.length l2))) l2))
else ((List.append (clone 0 ((List.length l2) - (List.length l1))) l1), l2);;... | 33.086957 | 79 | 0.537451 |
170ccf427876bc63189cf8ca3d1097522f32c2c4 | 9,847 | ml | OCaml | hphp/hack/src/typing/typing_suggest_service.ml | sunnygkp10/hhvm | 86b27dd81c2ff15e9e9e7e7bd7e1ada9debb5702 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-10-09T15:14:16.000Z | 2020-10-09T15:14:16.000Z | hphp/hack/src/typing/typing_suggest_service.ml | sunnygkp10/hhvm | 86b27dd81c2ff15e9e9e7e7bd7e1ada9debb5702 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_suggest_service.ml | sunnygkp10/hhvm | 86b27dd81c2ff15e9e9e7e7bd7e1ada9debb5702 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-10-09T15:14:18.000Z | 2020-10-09T15:14:18.000Z | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(************... | 36.069597 | 81 | 0.644257 |
aa778e2e488e7a078dd487ee7bf1c190bfabbbfc | 8,228 | ml | OCaml | src/solver/rule.ml | sjmini/justgen | e10a2144647fb07edea5aaac1cbcde4c19575b51 | [
"BSD-2-Clause"
] | 5 | 2021-01-19T11:22:55.000Z | 2022-02-05T11:06:11.000Z | _build/default/src/solver/rule.ml | sjmini/justgen | e10a2144647fb07edea5aaac1cbcde4c19575b51 | [
"BSD-2-Clause"
] | 1 | 2022-02-05T04:17:52.000Z | 2022-02-24T05:48:51.000Z | _build/default/src/solver/rule.ml | sjmini/justgen | e10a2144647fb07edea5aaac1cbcde4c19575b51 | [
"BSD-2-Clause"
] | null | null | null | open SlangAST.Node
type t = SlangAST.Node.t
let is_rule node =
match node with
| Rule _ -> true
| _ -> false
let get_rules program =
match program with
| Program (decls, _) -> List.filter is_rule decls
| _ -> failwith "wrong AST"
let get_fun_name rule =
match rule with
| Rule (_, FunType (_, FunName... | 37.743119 | 104 | 0.665897 |
172be07c3885780545f204f3387017d0343b6f03 | 14,847 | mli | OCaml | infer/src/base/Config.mli | clayne/infer | 291b75d195b4adc2e6624a70aced05f6890f8299 | [
"MIT"
] | 2 | 2021-12-17T13:38:34.000Z | 2021-12-17T14:06:53.000Z | infer/src/base/Config.mli | clayne/infer | 291b75d195b4adc2e6624a70aced05f6890f8299 | [
"MIT"
] | null | null | null | infer/src/base/Config.mli | clayne/infer | 291b75d195b4adc2e6624a70aced05f6890f8299 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
(** Configuration values: either constant, determined at compile time, or se... | 19.535526 | 97 | 0.802519 |
1758c07d6e4457b30fd9fea712b7b5fbaa2be5ad | 12,101 | ml | OCaml | src/storage/storage.ml | dakk/bitfu | 72735bf380812aea32ba0d3d4aa671f741cdaecb | [
"MIT"
] | 10 | 2017-02-04T16:49:24.000Z | 2017-12-20T12:33:03.000Z | src/storage/storage.ml | dakk/caravand-fullnode | 72735bf380812aea32ba0d3d4aa671f741cdaecb | [
"MIT"
] | 78 | 2016-05-19T07:53:18.000Z | 2018-04-01T19:14:30.000Z | src/storage/storage.ml | dakk/bitfu | 72735bf380812aea32ba0d3d4aa671f741cdaecb | [
"MIT"
] | null | null | null | open Store;;
open Utils;;
open Bitcoinml;;
open Stdint;;
open Block;;
open Block.Header;;
open Tx;;
module Chainstate = struct
type t = {
mutable block : Hash.t;
mutable height : uint32;
mutable prune_height : uint32;
mutable header : Hash.t;
mutable header_height : uint32;
... | 33.801676 | 154 | 0.700851 |
17629c4594410a04c9236b8d24f29c01792df03b | 7,348 | ml | OCaml | src/generators/gencommon/unreachableCodeEliminationSynf.ml | nadako/haxe | 2561756669d7e21c4fae1b76fb2db5cceecf6f0d | [
"MIT"
] | 1 | 2021-01-19T07:06:17.000Z | 2021-01-19T07:06:17.000Z | src/generators/gencommon/unreachableCodeEliminationSynf.ml | nadako/haxe | 2561756669d7e21c4fae1b76fb2db5cceecf6f0d | [
"MIT"
] | 2 | 2016-04-15T20:13:51.000Z | 2020-02-27T00:29:35.000Z | src/generators/gencommon/unreachableCodeEliminationSynf.ml | nadako/haxe | 2561756669d7e21c4fae1b76fb2db5cceecf6f0d | [
"MIT"
] | null | null | null | (*
The Haxe Compiler
Copyright (C) 2005-2017 Haxe Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This prog... | 34.336449 | 152 | 0.666032 |
aa6bbde068afddaa4a1ac04835b18d1d1ca83270 | 3,754 | ml | OCaml | src/test/persistance.ml | hammerlab/ketrew | 8940d48fbe174709f076b7130974ecd0ed831d58 | [
"Apache-2.0"
] | 73 | 2015-01-15T21:38:02.000Z | 2022-01-10T17:53:07.000Z | src/test/persistance.ml | DavidAlphaFox/ketrew | 8940d48fbe174709f076b7130974ecd0ed831d58 | [
"Apache-2.0"
] | 396 | 2015-01-13T19:49:37.000Z | 2018-02-05T00:29:31.000Z | src/test/persistance.ml | DavidAlphaFox/ketrew | 8940d48fbe174709f076b7130974ecd0ed831d58 | [
"Apache-2.0"
] | 10 | 2015-01-13T03:12:30.000Z | 2020-09-14T02:52:37.000Z |
open Ketrew_pure
open Ketrew
open Internal_pervasives
open Unix_io
module P = Persistent_data
(*
Cf. https://hub.docker.com/_/postgres/
docker run --name ketrew-postgres -p 5432:5432 -e POSTGRES_PASSWORD=kpass -d postgres
docker kill ketrew-postgres
docker rm ketrew-postgres
docker run -it --rm --l... | 27.40146 | 117 | 0.627331 |
1760d3a8969e6f6232475b3daa73a9d7eb8ab70b | 3,539 | mll | OCaml | liquid/lexer.mll | sgrove/bushi.do | 7eed8414b6497a90ff5e23dc107480cd3a8c12b2 | [
"MIT"
] | 5 | 2016-08-26T23:21:24.000Z | 2018-07-21T21:10:34.000Z | liquid/lexer.mll | sgrove/bushi.do | 7eed8414b6497a90ff5e23dc107480cd3a8c12b2 | [
"MIT"
] | 4 | 2017-03-16T18:38:11.000Z | 2019-08-23T03:32:09.000Z | liquid/lexer.mll | sgrove/riseos | 7eed8414b6497a90ff5e23dc107480cd3a8c12b2 | [
"MIT"
] | null | null | null | {
open Lexing
open Parser
exception SyntaxError of string
let next_line lexbuf =
let pos = lexbuf.lex_curr_p in
lexbuf.lex_curr_p <-
{ pos with pos_bol = lexbuf.lex_curr_pos;
pos_lnum = pos.pos_lnum + 1
}
}
(* part 1 *)
let int = '-'? ['0'-'9'] ['0'-'9']*
(* part 2 *)
let digit = ['0'-'9'... | 38.467391 | 214 | 0.535179 |
bc72c1e2c8736c9392fd4a3da15a3c68bafe62aa | 3,172 | ml | OCaml | src/lib/pickles/limb_vector/constant.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/pickles/limb_vector/constant.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/pickles/limb_vector/constant.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | open Core_kernel
open Pickles_types
type 'n t = (Int64.t, 'n) Vector.t [@@deriving sexp_of]
let to_bits t =
Vector.to_list t
|> List.concat_map ~f:(fun n ->
let test_bit i = Int64.(shift_right n i land one = one) in
List.init 64 ~f:test_bit )
module Hex64 = struct
module T = struct
type t... | 29.37037 | 79 | 0.6343 |
aa621e0ffb6adb4cd71f168fc932420886f6af1a | 39 | ml | OCaml | src/lwt_ext.ml | rgrinberg/opam2nix | 1db52df78c845ef806317e69301d292ea2ce297f | [
"MIT"
] | 82 | 2016-02-05T09:42:05.000Z | 2022-02-25T10:50:26.000Z | src/lwt_ext.ml | rgrinberg/opam2nix | 1db52df78c845ef806317e69301d292ea2ce297f | [
"MIT"
] | 70 | 2016-02-05T09:41:40.000Z | 2022-03-29T06:07:49.000Z | src/lwt_ext.ml | rgrinberg/opam2nix | 1db52df78c845ef806317e69301d292ea2ce297f | [
"MIT"
] | 20 | 2016-07-12T13:29:45.000Z | 2022-01-21T20:23:23.000Z | include Lwt
let bindr fn v = bind v fn
| 13 | 26 | 0.717949 |
aa596c85377cf6baa7f37e8b10e30b9841211a61 | 29,677 | ml | OCaml | upstream/ocaml_411/parsing/location.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 1,031 | 2016-12-16T19:17:17.000Z | 2022-03-24T06:30:52.000Z | upstream/ocaml_411/parsing/location.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 754 | 2016-12-16T14:01:33.000Z | 2022-03-31T13:21:16.000Z | upstream/ocaml_411/parsing/location.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 177 | 2017-01-04T17:35:53.000Z | 2022-02-18T02:54:14.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 31.4375 | 80 | 0.618964 |
aad09887e8a7990c2e9b7d5df5c1c7cee1b609f0 | 17,757 | ml | OCaml | infer/src/bufferoverrun/absLoc.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | infer/src/bufferoverrun/absLoc.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | infer/src/bufferoverrun/absLoc.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2016-present, Programming Research Laboratory (ROPAS)
* Seoul National University, Korea
* 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.
... | 27.192956 | 100 | 0.617109 |
aa55a6cedf95a19e96fa99788da45d14273ea000 | 1,148 | ml | OCaml | hphp/hack/src/typing/typing_requirements.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_requirements.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_requirements.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
module Reason = Typing_reason
module TUtils = Typing_utils
module Cls = Decl_provider.Class
(*... | 31.888889 | 90 | 0.715157 |
aa5f2cbb103f1cdb2bb1b9599cc1cb81b1d75d07 | 2,146 | ml | OCaml | data/sp14_min/3137.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/3137.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/3137.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let l1 = [0; 0; 9; 9];;
let l2 = [1; 0; 0; 2];;
let x = (3, 3) :: (List.rev (List.combine l1 l2));;
let clone x n =
let rec helper x n acc =
if n <= 0 then acc else helper x (n - 1) (x :: acc) in
helper x n [];;
let padZero l1 l2 =
if (List.length l1) < (List.length l2)
then ((List.append (clone 0 ((Li... | 24.953488 | 79 | 0.535881 |
174377eecb4bdcfb479c90d4398dda052d611937 | 11,725 | ml | OCaml | orig/ocaml_402/parsing/location.ml | art-w/merlin | 7d34d0af1749d27deb6a47bdf5b4d0796528905a | [
"MIT"
] | null | null | null | orig/ocaml_402/parsing/location.ml | art-w/merlin | 7d34d0af1749d27deb6a47bdf5b4d0796528905a | [
"MIT"
] | null | null | null | orig/ocaml_402/parsing/location.ml | art-w/merlin | 7d34d0af1749d27deb6a47bdf5b4d0796528905a | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 30.219072 | 80 | 0.613987 |
176f153c4aad6c235d5e5a74464b62343803a174 | 17,654 | ml | OCaml | src/lib/distributed_dsl/distributed_dsl.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | 1 | 2022-03-21T15:43:42.000Z | 2022-03-21T15:43:42.000Z | src/lib/distributed_dsl/distributed_dsl.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | src/lib/distributed_dsl/distributed_dsl.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Async_kernel
open Pipe_lib
module Ident = struct
type t = int ref
let state = ref 0
let next () =
let old = !state in
state := old + 1 ;
old
end
module type Message_delay_intf = sig
type message
val delay : message -> Time.Span.t
end
module Time_queue = struct
type 'a... | 30.917688 | 86 | 0.552056 |
174cc2669d4a66315caf49cc77128de510dcacf1 | 5,046 | ml | OCaml | src/server/server_daemon.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | 1 | 2019-10-03T00:45:08.000Z | 2019-10-03T00:45:08.000Z | src/server/server_daemon.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | 8 | 2020-04-06T11:23:08.000Z | 2022-03-24T12:41:12.000Z | src/server/server_daemon.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Utils_js
module Server_files = Server_files_js
type args = {
shared_mem_config: SharedMem_js.config;
options: Options.t... | 34.326531 | 95 | 0.699564 |
175f4ab522c8df356058a4d9649e17ce191ce2fa | 536 | ml | OCaml | benchmarks/lambda/lambda2/submissions/sub97.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/lambda/lambda2/submissions/sub97.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/lambda/lambda2/submissions/sub97.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 empty_env = []
let rec lookup_env env var =
match env with
| [] -> false
| hd::tl -> if hd = var then true else lookup_env tl var
let extend_env env v = v::env
let check : exp -> bool
= fun exp ->
let ... | 20.615385 | 66 | 0.58209 |
aaa7b3d47bb7b7ec509ad0e7c3c3f255c5875eec | 5,481 | mli | OCaml | src/lib_proxy_server_config/proxy_server_config.mli | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/lib_proxy_server_config/proxy_server_config.mli | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/lib_proxy_server_config/proxy_server_config.mli | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 Nomadic Labs. <contact@nomadic-labs.com> *)
... | 53.213592 | 81 | 0.602627 |
1769c4bacff150d98f115dfe87e465b42a4b9077 | 845 | ml | OCaml | src/basis/ListUtil.ml | mmcqd/cooltt | 88511e10cb9e17286f585882dee334f3d8ace47c | [
"Apache-2.0"
] | 14 | 2019-12-21T05:59:18.000Z | 2020-01-08T09:14:42.000Z | src/basis/ListUtil.ml | mmcqd/cooltt | 88511e10cb9e17286f585882dee334f3d8ace47c | [
"Apache-2.0"
] | 46 | 2020-01-12T19:12:26.000Z | 2020-05-09T03:27:35.000Z | src/basis/ListUtil.ml | jonsterling/fun-tt | 46a0bd0b5b270aa341c9f7d3af7937fabf6c8562 | [
"Apache-2.0"
] | 2 | 2020-05-01T01:24:41.000Z | 2020-05-05T16:00:19.000Z | open Bwd
let rec zip xs ys =
match xs, ys with
| (x :: xs, y :: ys) -> (x, y) :: zip xs ys
| _, _ -> []
let rec unzip =
function
| [] -> ([], [])
| ((x, y) :: xs) ->
let (xs, ys) = unzip xs in
(x :: xs, y :: ys)
let zip_with f xs ys =
let rec go acc xs ys =
match xs, ys with
| x :: xs, ... | 22.236842 | 86 | 0.462722 |
aa85ea6c24bc697e8285b35bbd5f2d7b9089d40f | 1,570 | ml | OCaml | hphp/hack/src/parser/full_fidelity_type_parser_type.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_type_parser_type.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_type_parser_type.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.
*
*)
module WithSyntax (Syntax : Syntax_sig.Syntax_S) = struct
module Context = Full_fidelity_parser_context.WithToken (... | 26.610169 | 79 | 0.64586 |
aad77eb6c0be035d6c6082fde8385078d7bffd32 | 2,042 | mli | OCaml | src/lib_crypto/p256.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/lib_crypto/p256.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/lib_crypto/p256.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"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> *)
... | 65.870968 | 79 | 0.481881 |
175e555f28dcde253f0c6c720004110dfd0387ae | 624 | ml | OCaml | data/sp14/0058.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/0058.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/0058.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let pipe fs =
let f a x = match x with | [] -> a | _ -> x a in
let base = 0 in List.fold_left f base fs;;
(* fix
let pipe fs n = let f a x = x a in let base = n in List.fold_left f base fs;;
*)
(* changed spans
(3,2)-(4,42)
(3,14)-(3,47)
(3,20)-(3,21)
(3,35)-(3,36)
(4,13)-(4,14)
*)
(* type error slice
(3,14)... | 13.276596 | 77 | 0.479167 |
aafe1485e1302d6dd7117e6bbb1675a612b4d5d5 | 2,488 | ml | OCaml | source/server/checksumMap.ml | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | null | null | null | source/server/checksumMap.ml | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | null | null | null | source/server/checksumMap.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 Base
type t = string Hashtbl.M(String).t
exception LoadError of string
let load_from_string text =
let open Yojson.Safe... | 27.644444 | 95 | 0.666801 |
aacc10ae06b2582a745bcc3959778171d978ca83 | 15,678 | ml | OCaml | src/libp2p_ipc/incremental_parsing.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/libp2p_ipc/incremental_parsing.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/libp2p_ipc/incremental_parsing.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | open Async
open Core
open Stdint
module Fragment_view = struct
type t = { fragments : bytes list; start_offset : int; end_offset : int }
type ('result, 'state) decode_f =
buf:bytes
-> start:int
-> end_:int
-> 'state
-> [ `Finished of 'result | `Incomplete of 'state ]
type 'result decoder... | 34.995536 | 80 | 0.599311 |
aac64b5660bfc893b58555ace1f87c8ee262d8ce | 317 | ml | OCaml | dist/gcc-compatible/lib/Hacl_HMAC_Blake2b_256_bindings.ml | BlackHorseSolutions/hacl-star | e7d8effb0c14f049cf016c09882c18681849c2a3 | [
"Apache-2.0"
] | 1,332 | 2018-06-25T18:44:25.000Z | 2022-03-24T11:54:21.000Z | dist/gcc-compatible/lib/Hacl_HMAC_Blake2b_256_bindings.ml | sthagen/hacl-star | 647facec8c2a283a4686941e5c36ccea59a1bcb7 | [
"Apache-2.0"
] | 311 | 2018-06-23T20:30:19.000Z | 2022-03-31T16:52:05.000Z | dist/gcc-compatible/lib/Hacl_HMAC_Blake2b_256_bindings.ml | sthagen/hacl-star | 647facec8c2a283a4686941e5c36ccea59a1bcb7 | [
"Apache-2.0"
] | 143 | 2018-08-23T11:43:58.000Z | 2022-03-09T11:07:13.000Z | open Ctypes
module Bindings(F:Cstubs.FOREIGN) =
struct
open F
let hacl_HMAC_Blake2b_256_compute_blake2b_256 =
foreign "Hacl_HMAC_Blake2b_256_compute_blake2b_256"
(ocaml_bytes @->
(ocaml_bytes @->
(uint32_t @-> (ocaml_bytes @-> (uint32_t @-> (returning void))))))
end | 31.7 | 80 | 0.649842 |
172d6f41ef4f5dc23b346b30014cd4c752a8fa97 | 2,121 | ml | OCaml | src/ocaml-3.12.0/testsuite/tests/tool-lexyacc/scan_aux.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2015-01-27T00:11:26.000Z | 2015-01-27T00:11:26.000Z | src/ocaml-3.12.0/testsuite/tests/tool-lexyacc/scan_aux.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/testsuite/tests/tool-lexyacc/scan_aux.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Xavier Ler... | 34.770492 | 73 | 0.502122 |
172895b5248c0af4f976855c66b0c00592a29edf | 3,166 | ml | OCaml | duniverse/ctypes/src/ctypes/lDouble.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/ctypes/src/ctypes/lDouble.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/ctypes/src/ctypes/lDouble.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2016 Andy Ray.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
[@@@warning "-3"]
external init : unit -> unit = "ldouble_init"
let () = init ()
type t
external to_float : t -> float = "ctypes_ldouble_to_float"
external of_float : float ... | 37.690476 | 70 | 0.696462 |
176f197ec81e4e66b6db3b7195f541f6be435c0c | 604 | mli | OCaml | src/nvgen/Topologies.mli | princedpw/nv | a82b2b4530d41ece98bd39c5d7ecb18c1dfaf9b6 | [
"MIT"
] | 6 | 2019-03-04T19:30:44.000Z | 2020-01-28T20:28:50.000Z | src/nvgen/Topologies.mli | princedpw/nv | a82b2b4530d41ece98bd39c5d7ecb18c1dfaf9b6 | [
"MIT"
] | 43 | 2018-10-01T13:12:36.000Z | 2020-01-14T17:55:54.000Z | src/nvgen/Topologies.mli | princedpw/nv | a82b2b4530d41ece98bd39c5d7ecb18c1dfaf9b6 | [
"MIT"
] | 2 | 2018-07-12T18:33:19.000Z | 2019-11-30T02:15:07.000Z | open Nv_datastructures
open Nv_lang
type topology = private
| Fattree of int
| FullMesh of int
| Ring of int
| Star of int
| Rand of int * float
[@@deriving show]
type fatLevel =
| Core
| Aggregation
| Edge
val star : int -> topology
val ring : int -> topology
val full_mesh : int -> topology
val r... | 18.875 | 70 | 0.695364 |
1748d2f60a951abc954b9b39102cf961ae2d2049 | 13,657 | ml | OCaml | emblemmasta.ml | icefoxen/finished-emblemmasta | 4c792374a3e4e4a73d2ee877642ee2fd5527a6e3 | [
"MIT"
] | null | null | null | emblemmasta.ml | icefoxen/finished-emblemmasta | 4c792374a3e4e4a73d2ee877642ee2fd5527a6e3 | [
"MIT"
] | null | null | null | emblemmasta.ml | icefoxen/finished-emblemmasta | 4c792374a3e4e4a73d2ee877642ee2fd5527a6e3 | [
"MIT"
] | null | null | null | (* emblemmasta.ml
A (relatively) simple program to calculate stats and levels for
Eddie's Fire Emblem tabletop game.
Uses lablGTK2, and the OCaml Num library for ratios.
...you know, instead of figuring out all the growths dynamically, maybe
it would have just been simpler to generate a bunch of tables... | 33.22871 | 78 | 0.613092 |
aa5e0f8e00f17bdb9e30208ab3afbfec24e7ef02 | 9,335 | ml | OCaml | data/derived/comb/progs/unify/prog1959.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/prog1959.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1959.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 25.02681 | 148 | 0.667381 |
aa417941ae97a3953ee5d43a8055138ed39fed43 | 3,397 | mli | OCaml | vendor/base/src/uniform_array.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/base/src/uniform_array.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/base/src/uniform_array.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | (** Same semantics as ['a Array.t], except it's guaranteed that the representation array
is not tagged with [Double_array_tag], the tag for float arrays.
This means it's safer to use in the presence of [Obj.magic], but it's slower than
normal [Array] if you use it with floats.
It can often be faster t... | 36.138298 | 89 | 0.650868 |
aaee86fa86d24b4e4817819f9c6ba720f0b47cd5 | 18,895 | ml | OCaml | data/derived/comb/progs/unify/prog8543.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/prog3758.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3758.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.746967 | 208 | 0.655359 |
aafaa899185127a5f573630b5b4b1580fe56cd14 | 1,053 | ml | OCaml | compiler/analyzer/guard.ml | sano-jin/lmn-alpha | bea1b64752547ce2a0797eb6594564e99213792e | [
"MIT"
] | 2 | 2021-08-11T15:32:19.000Z | 2021-08-11T15:53:01.000Z | compiler/analyzer/guard.ml | sano-jin/lmn-alpha | bea1b64752547ce2a0797eb6594564e99213792e | [
"MIT"
] | null | null | null | compiler/analyzer/guard.ml | sano-jin/lmn-alpha | bea1b64752547ce2a0797eb6594564e99213792e | [
"MIT"
] | null | null | null | (** Analyze guard *)
(*
open Util
open Port
open Corelang
include Sem_graph
(** collect process contexts *)
let process_contexts_of_link = function
| LocalLink _ -> None
| FreeLink _ -> None
| CProcCtx p -> Some p
| CIntData _ -> None
(** initial environment *)
let process_contexts_of_atoms atoms =
List.ma... | 21.9375 | 77 | 0.710351 |
1709242425ca15864b4c9cf78258d13c73648449 | 1,205 | ml | OCaml | infer/src/pulse/PulseDummySledge.ml | octomarat/infer | aa6fe7963cdb6b842adcf7241f5383c30cb1a835 | [
"MIT"
] | 1 | 2020-07-16T19:38:04.000Z | 2020-07-16T19:38:04.000Z | infer/src/pulse/PulseDummySledge.ml | octomarat/infer | aa6fe7963cdb6b842adcf7241f5383c30cb1a835 | [
"MIT"
] | 8 | 2021-03-01T21:21:21.000Z | 2022-02-27T09:02:52.000Z | infer/src/pulse/PulseDummySledge.ml | octomarat/infer | aa6fe7963cdb6b842adcf7241f5383c30cb1a835 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
module Var = struct
type t = unit
let of_absval _ = ()
let to_absval () = assert false
end
m... | 19.435484 | 96 | 0.654772 |
aafafd5f36a9f1914348a6a6c9be88cfe3ffb7fd | 8,073 | ml | OCaml | data/derived/comb/progs/unify/prog6586.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/prog1751.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1751.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 24.993808 | 148 | 0.641026 |
aadb61e9fd3635fcfe63b3e3c7aa53abafe0b9b5 | 4,762 | ml | OCaml | lib/stable_containers.ml | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | lib/stable_containers.ml | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | lib/stable_containers.ml | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | open Std_internal
open Stable_internal
(* avoid getting shadowed by the similarly named modules in this file *)
module Core_map = Map
module Core_set = Set
module Core_hashtbl = Hashtbl
module Core_hash_set = Hash_set
module Hashtbl = struct
module V1 (Elt : Hashtbl.Key_binable) : sig
type 'a t = (Elt.t, 'a) Ha... | 27.367816 | 90 | 0.608148 |
17690757fff1b819e4bff0bffb16b0e0181827e7 | 2,954 | ml | OCaml | src/expression/src/progs/TranslateArgs.ml | TART-MSU/HyperQube | 1cb421020c12004db56d3b61ae17ff5291076dce | [
"MIT"
] | null | null | null | src/expression/src/progs/TranslateArgs.ml | TART-MSU/HyperQube | 1cb421020c12004db56d3b61ae17ff5291076dce | [
"MIT"
] | null | null | null | src/expression/src/progs/TranslateArgs.ml | TART-MSU/HyperQube | 1cb421020c12004db56d3b61ae17ff5291076dce | [
"MIT"
] | null | null | null | (******************************************************************************)
(* @file TranslateArgs.ml *)
(* Command Line Arguments for Translate *)
(****************************************************************************... | 27.867925 | 80 | 0.607989 |
1764f8f795539fbca964e5686510b6755c0bfab9 | 115,543 | ml | OCaml | infer/src/base/Config.ml | KihongHeo/infer | 4a1c513d4e3391aa1abf93eee3b3b70a8119caef | [
"MIT"
] | 1 | 2017-02-15T00:44:54.000Z | 2017-02-15T00:44:54.000Z | infer/src/base/Config.ml | KihongHeo/infer | 4a1c513d4e3391aa1abf93eee3b3b70a8119caef | [
"MIT"
] | null | null | null | infer/src/base/Config.ml | KihongHeo/infer | 4a1c513d4e3391aa1abf93eee3b3b70a8119caef | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
(** Configuration values: either constant, determined at compile time, or se... | 34.8546 | 172 | 0.723471 |
aa9f610533408762b9d8f04d542ef2b92db03dea | 24,621 | ml | OCaml | codegen.ml | wixyFun/COMSW4156_001_2018_3 | d925862688ca61dd0cc5d9ac9c4ce3296186673e | [
"Apache-2.0"
] | null | null | null | codegen.ml | wixyFun/COMSW4156_001_2018_3 | d925862688ca61dd0cc5d9ac9c4ce3296186673e | [
"Apache-2.0"
] | null | null | null | codegen.ml | wixyFun/COMSW4156_001_2018_3 | d925862688ca61dd0cc5d9ac9c4ce3296186673e | [
"Apache-2.0"
] | null | null | null | (* Code generation: translate takes a semantically checked AST and
produces LLVM IR
LLVM tutorial: Make sure to read the OCaml version of the tutorial
http://llvm.org/docs/tutorial/index.html
Detailed documentation on the OCaml LLVM library:
http://llvm.moe/
http://llvm.moe/ocaml/
*)
module L = Llvm
module A = As... | 54.112088 | 220 | 0.484668 |
17054760e2615b4784df28b181be7a1f2fa8d59e | 7,903 | ml | OCaml | src_top/herd_based/lib/symbReg.ml | VarunKoyyalagunta/rmem | 9de95224f6293acb3cd6022471219a0a01b9b260 | [
"BSD-2-Clause"
] | 37 | 2019-01-14T13:08:24.000Z | 2022-02-14T20:57:12.000Z | src_top/herd_based/lib/symbReg.ml | VarunKoyyalagunta/rmem | 9de95224f6293acb3cd6022471219a0a01b9b260 | [
"BSD-2-Clause"
] | 10 | 2019-07-26T09:34:35.000Z | 2021-12-31T20:17:32.000Z | src_top/herd_based/lib/symbReg.ml | VarunKoyyalagunta/rmem | 9de95224f6293acb3cd6022471219a0a01b9b260 | [
"BSD-2-Clause"
] | 12 | 2019-02-13T17:50:41.000Z | 2021-12-31T19:08:00.000Z | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 29.710526 | 78 | 0.594458 |
17413ea386e726c5c1a3cebd2583e495750aaefb | 4,276 | ml | OCaml | js-gen/html.ml | talex5/mirage-trace-viewer | 5f486fb45962f269186d81b6bb916c1c976e51a9 | [
"BSD-2-Clause"
] | 7 | 2015-06-23T18:58:06.000Z | 2021-10-01T14:18:15.000Z | js-gen/html.ml | talex5/mirage-trace-viewer | 5f486fb45962f269186d81b6bb916c1c976e51a9 | [
"BSD-2-Clause"
] | 6 | 2015-05-28T15:48:09.000Z | 2021-04-29T10:41:53.000Z | js-gen/html.ml | talex5/mirage-trace-viewer | 5f486fb45962f269186d81b6bb916c1c976e51a9 | [
"BSD-2-Clause"
] | 2 | 2015-05-28T15:41:13.000Z | 2016-05-11T20:45:51.000Z | (* Copyright (C) 2014, Thomas Leonard *)
open Mirage_trace_viewer
let ( / ) = Filename.concat
let error fmt =
let do_raise msg = `Error (false, msg) in
Printf.ksprintf do_raise fmt
let check_exit_status = function
| Unix.WEXITED 0 -> `Ok ()
| Unix.WEXITED code -> error "Child returned error exit status %d" ... | 30.985507 | 109 | 0.597755 |
44fcd42a47408d316026cc79fe43aa37a91877bf | 19,145 | mly | OCaml | deps/cryptoverif1.12/src/oparser.mly | tari3x/csec-modex | 5ab2aa18ef308b4d18ac479e5ab14476328a6a50 | [
"BSD-3-Clause"
] | 4 | 2015-11-14T13:59:10.000Z | 2020-08-04T23:46:30.000Z | deps/cryptoverif1.12/src/oparser.mly | tari3x/csec-modex | 5ab2aa18ef308b4d18ac479e5ab14476328a6a50 | [
"BSD-3-Clause"
] | null | null | null | deps/cryptoverif1.12/src/oparser.mly | tari3x/csec-modex | 5ab2aa18ef308b4d18ac479e5ab14476328a6a50 | [
"BSD-3-Clause"
] | null | null | null | %{
(*************************************************************
* *
* Cryptographic protocol verifier *
* *
* Bruno Blanchet *
*... | 25.836707 | 137 | 0.580831 |
17711fb3a135b07e361f72ac8c6e332428332033 | 7,016 | ml | OCaml | libs/GL.ml | SylvainBoilard/Peril | c812b0be1d088096249c00c9b4d14afc25b83b73 | [
"Zlib"
] | null | null | null | libs/GL.ml | SylvainBoilard/Peril | c812b0be1d088096249c00c9b4d14afc25b83b73 | [
"Zlib"
] | null | null | null | libs/GL.ml | SylvainBoilard/Peril | c812b0be1d088096249c00c9b4d14afc25b83b73 | [
"Zlib"
] | null | null | null | type capability =
| Blend
| CullFace
| DepthTest
| Dither
| PolygonOffsetFill
| SampleAlphaToCoverage
| SampleCoverage
| ScissorTest
| StencilTest
type blend_function =
| Zero
| One
| SrcColor
| OneMinusSrcColor
| DstColor
| OneMinusDstColor
| SrcAlpha
| OneMinusSrcAlpha
| DstAlpha
... | 31.746606 | 80 | 0.737742 |
1738ec72ff8aa6d041e2ff427465a5323f054c41 | 43 | mli | OCaml | template/day_nn.mli | fsouza/aoc-2019 | 3062959ef9f8b5f0fe8ff4843bbe4e6bc10852c6 | [
"0BSD"
] | 1 | 2020-12-28T06:53:40.000Z | 2020-12-28T06:53:40.000Z | template/day_nn.mli | fsouza/aoc-2019 | 3062959ef9f8b5f0fe8ff4843bbe4e6bc10852c6 | [
"0BSD"
] | null | null | null | template/day_nn.mli | fsouza/aoc-2019 | 3062959ef9f8b5f0fe8ff4843bbe4e6bc10852c6 | [
"0BSD"
] | null | null | null | type input
val read_input : unit -> input
| 10.75 | 30 | 0.72093 |
174b5ec6a236518c8b0c473789aa183fb564cc6a | 1,625 | ml | OCaml | src/rescript-editor-support/vendor/res_outcome_printer/res_minibuffer.ml | amiralies/rescript-editor-support | 33287cf8f74001fb8d767855e49036dc56a1c54b | [
"MIT"
] | 222 | 2020-08-26T08:31:33.000Z | 2022-03-31T11:20:07.000Z | src/rescript-editor-support/vendor/res_outcome_printer/res_minibuffer.ml | amiralies/rescript-editor-support | 33287cf8f74001fb8d767855e49036dc56a1c54b | [
"MIT"
] | 305 | 2020-08-12T07:41:01.000Z | 2022-03-25T06:33:14.000Z | src/rescript-editor-support/vendor/res_outcome_printer/res_minibuffer.ml | amiralies/rescript-editor-support | 33287cf8f74001fb8d767855e49036dc56a1c54b | [
"MIT"
] | 30 | 2020-08-26T15:32:33.000Z | 2022-02-04T23:43:05.000Z | type t = {
mutable buffer : bytes;
mutable position : int;
mutable length : int;
}
let create n =
let n = if n < 1 then 1 else n in
let s = (Bytes.create [@doesNotRaise]) n in
{buffer = s; position = 0; length = n}
let contents b = (Bytes.sub_string [@doesNotRaise]) b.buffer 0 b.position
(* Can't be called ... | 31.862745 | 78 | 0.683077 |
176c9fd220d9815589a438b82e11e499a0335250 | 1,105 | mli | OCaml | hphp/hack/src/utils/daemon.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/utils/daemon.mli | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/daemon.mli | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-10-09T15:14:18.000Z | 2020-10-09T15:14:18.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.
*
*)
(* Type-safe ... | 33.484848 | 80 | 0.693213 |
174f588beb0d2d7fe12918a7026c68b2bb306d72 | 56 | ml | OCaml | src/lib/instance_id.ml | LaurentMazare/open-gym-ocaml | 70a14bd61ff84640b1579db158914a2ca61fe901 | [
"Apache-2.0"
] | 4 | 2016-10-02T21:10:07.000Z | 2016-10-02T22:53:11.000Z | src/lib/instance_id.ml | LaurentMazare/open-gym-ocaml | 70a14bd61ff84640b1579db158914a2ca61fe901 | [
"Apache-2.0"
] | null | null | null | src/lib/instance_id.ml | LaurentMazare/open-gym-ocaml | 70a14bd61ff84640b1579db158914a2ca61fe901 | [
"Apache-2.0"
] | null | null | null | type t = string
let to_string x = x
let of_string x = x
| 14 | 19 | 0.696429 |
aa239b3f6b24c7ab90a3dd86bb369d7000698437 | 3,007 | ml | OCaml | src/bin_node/main.ml | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | src/bin_node/main.ml | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | src/bin_node/main.ml | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 42.352113 | 79 | 0.547722 |
aaf48682c73ad3b41dffd7c2bc6c05145651a700 | 2,381 | ml | OCaml | node_modules/bs-platform/lib/ocaml/belt_Option.ml | Et7f3/esy-glfw | cd10f4754ee3e0a1404e2cca7b3ed711230d5202 | [
"Zlib"
] | null | null | null | node_modules/bs-platform/lib/ocaml/belt_Option.ml | Et7f3/esy-glfw | cd10f4754ee3e0a1404e2cca7b3ed711230d5202 | [
"Zlib"
] | null | null | null | node_modules/bs-platform/lib/ocaml/belt_Option.ml | Et7f3/esy-glfw | cd10f4754ee3e0a1404e2cca7b3ed711230d5202 | [
"Zlib"
] | null | null | null | (* Copyright (C) 2017 Authors of BuckleScript
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* In add... | 31.328947 | 82 | 0.664847 |
172928fcdfedd9e8c701724cd033dbc60ff8a632 | 6,290 | ml | OCaml | src/lexer.ml | sizumita/OCaml-CSS-Validator | 1d1b89f8665a497b72d25e8dbed5106f4d693157 | [
"MIT"
] | null | null | null | src/lexer.ml | sizumita/OCaml-CSS-Validator | 1d1b89f8665a497b72d25e8dbed5106f4d693157 | [
"MIT"
] | null | null | null | src/lexer.ml | sizumita/OCaml-CSS-Validator | 1d1b89f8665a497b72d25e8dbed5106f4d693157 | [
"MIT"
] | null | null | null | open Parser
let digit = [%sedlex.regexp? '0'..'9']
let number = [%sedlex.regexp?
Opt (Chars "+-"),
(Plus digit | (Star digit, '.', Plus digit)),
Opt (Chars "eE", (Opt Chars "+-"), Plus digit)
]
let u_char = [%sedlex.regexp?
'u'
| ('\\', Rep ('0', 0 .. 4), ("55" | "75"), ("\r\n" | Chars "\t\r\n"))
| ('\\... | 32.760417 | 115 | 0.578378 |
176ec90f221dee5f6ab883b6284971c2c7fd187d | 1,178 | ml | OCaml | src/Ecdh.ml | jcfpascoal10/ECC-OCaml | 6e61b53c6fd31537d1e126662882a92a48a05675 | [
"MIT"
] | 11 | 2017-07-24T13:43:27.000Z | 2022-03-23T08:54:31.000Z | src/Ecdh.ml | jcfpascoal10/ECC-OCaml | 6e61b53c6fd31537d1e126662882a92a48a05675 | [
"MIT"
] | 2 | 2015-03-05T18:47:36.000Z | 2017-07-24T16:52:41.000Z | src/Ecdh.ml | jcfpascoal10/ECC-OCaml | 6e61b53c6fd31537d1e126662882a92a48a05675 | [
"MIT"
] | 4 | 2015-03-07T09:24:46.000Z | 2019-01-03T15:30:51.000Z | open EccPrimitives
module Ecdh =
functor (C: Curve) ->
struct
open C
(* Check that the public key is a valid public key*)
let validate_pkey pk =
match pk with
| Infinity -> false
| Point (pk_x, pk_y) ->
let curve_p = get_field in
if (verify_range pk_x Z.zero Z.(cu... | 25.608696 | 78 | 0.582343 |
171a9bec6886308dad3c17347f1e0f027efb84d5 | 78 | ml | OCaml | test/ppx_irmin/deriver/errors/lib_invalid.ml | kit-ty-kate/irmin | 426e2590abeed5f283ee71840e19fd4039a1d060 | [
"ISC"
] | null | null | null | test/ppx_irmin/deriver/errors/lib_invalid.ml | kit-ty-kate/irmin | 426e2590abeed5f283ee71840e19fd4039a1d060 | [
"ISC"
] | null | null | null | test/ppx_irmin/deriver/errors/lib_invalid.ml | kit-ty-kate/irmin | 426e2590abeed5f283ee71840e19fd4039a1d060 | [
"ISC"
] | null | null | null | type t = unit [@@deriving irmin { lib = "foo" }] (* should be [Some "foo"] *)
| 39 | 77 | 0.551282 |
1744d866b42b937eaa46a1cef1cc009a5f925c32 | 2,188 | ml | OCaml | src/export_env.ml | tsh2/core-export-service | 05aad62d994035c6ce1d6d7a998be3cac22655d8 | [
"MIT"
] | null | null | null | src/export_env.ml | tsh2/core-export-service | 05aad62d994035c6ce1d6d7a998be3cac22655d8 | [
"MIT"
] | null | null | null | src/export_env.ml | tsh2/core-export-service | 05aad62d994035c6ce1d6d7a998be3cac22655d8 | [
"MIT"
] | null | null | null | let local_name = ref "export-service"
let local_port = ref "8080"
let arbiter_endpoint = ref "https://arbiter:8080"
let arbiter_key = ref ""
let secrets_dir = Fpath.v "/run/secrets/"
let local_name () =
try Sys.getenv "DATABOX_LOCAL_NAME"
with Not_found -> !local_name
let local_port () =
try Sys.getenv "DAT... | 28.789474 | 79 | 0.673675 |
aaddafb2b8df958d2c1fec47f3ce96e27a3c2493 | 4,205 | ml | OCaml | src/tests/ocaml/wrap_and_decrypt_3.ml | schopin-pro/caml-crush | 7aaf9d4299e416f56417fcc4656f8abbfe8b15db | [
"X11"
] | 11 | 2018-12-20T12:32:10.000Z | 2022-02-01T12:27:03.000Z | src/tests/ocaml/wrap_and_decrypt_3.ml | schopin-pro/caml-crush | 7aaf9d4299e416f56417fcc4656f8abbfe8b15db | [
"X11"
] | 11 | 2018-11-06T15:57:22.000Z | 2022-03-17T08:19:01.000Z | src/tests/ocaml/wrap_and_decrypt_3.ml | schopin-pro/caml-crush | 7aaf9d4299e416f56417fcc4656f8abbfe8b15db | [
"X11"
] | 2 | 2021-02-04T18:37:47.000Z | 2021-08-19T16:53:52.000Z | (************************* MIT License HEADER ************************************
Copyright ANSSI (2013-2015)
Contributors : Ryad BENADJILA [ryadbenadjila@gmail.com],
Thomas CALDERON [calderon.thomas@gmail.com]
Marion DAUBIGNARD [marion.daubignard@ssi.gouv.fr]
This software is a computer program w... | 49.470588 | 83 | 0.577408 |
17309e9e7d96af9a3f28abb308bb7c613cb65826 | 4,508 | ml | OCaml | Day20/solution.ml | moozzyk/AdventOfCode2017 | 74240e1ede55a5e8bf02cbaf533da12548f65dd2 | [
"MIT"
] | null | null | null | Day20/solution.ml | moozzyk/AdventOfCode2017 | 74240e1ede55a5e8bf02cbaf533da12548f65dd2 | [
"MIT"
] | null | null | null | Day20/solution.ml | moozzyk/AdventOfCode2017 | 74240e1ede55a5e8bf02cbaf533da12548f65dd2 | [
"MIT"
] | null | null | null | let read_lines name : string list =
let ic = open_in name in
let try_read () =
try Some (input_line ic) with End_of_file -> None in
let rec loop acc = match try_read () with
| Some s -> loop (s :: acc)
| None -> close_in ic; List.rev acc in
loop []
let split string separator =
Str.split (Str.rege... | 34.412214 | 112 | 0.661713 |
aac1712f5539c9b2fae8e700d1ace8640fc5202d | 1,721 | ml | OCaml | libraries/sts/lib/getSessionToken.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/sts/lib/getSessionToken.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/sts/lib/getSessionToken.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = GetSessionTokenRequest.t
type output = GetSessionTokenResponse.t
type error = Errors_internal.t
let service = "sts"
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.app... | 26.890625 | 89 | 0.613597 |
bcda468bdfbbcd18561a37eff4628b9816b17f69 | 4,029 | ml | OCaml | src/client/async_work.ml | tqtezos/TZComet | ea0f002588a992ed0f96ce4b365f613984f9642e | [
"MIT"
] | 18 | 2020-11-10T15:24:29.000Z | 2021-11-17T09:25:42.000Z | src/client/async_work.ml | tqtezos/TZComet | ea0f002588a992ed0f96ce4b365f613984f9642e | [
"MIT"
] | 41 | 2020-11-02T18:27:54.000Z | 2021-11-29T15:31:32.000Z | src/client/async_work.ml | tqtezos/TZComet | ea0f002588a992ed0f96ce4b365f613984f9642e | [
"MIT"
] | 3 | 2020-10-02T15:31:33.000Z | 2021-11-14T02:15:44.000Z | open! Import
type log_item = Html_types.div_content_fun Meta_html.H5.elt
type status = Empty | Work_in_progress | Done
type 'a content = ('a, log_item) Result.t list
type 'a t =
{ logs: log_item Reactive.Table.t
; status: status Reactive.var
; id: int
; content: 'a content Reactive.var }
let _id = ref 0
let... | 30.293233 | 79 | 0.60139 |
aa17cfd9ddfaaae90c2d6b9bbeccf6a0375ba72e | 2,466 | ml | OCaml | src/stack-unix/tcpv6_socket.ml | mirage/mirage-tcpip | 3e9c163af64b3ba0e6d1dffe5f869311d5d38507 | [
"0BSD"
] | 290 | 2015-01-08T14:39:32.000Z | 2022-03-30T11:42:58.000Z | src/stack-unix/tcpv6_socket.ml | mirage/mirage-tcpip | 3e9c163af64b3ba0e6d1dffe5f869311d5d38507 | [
"0BSD"
] | 288 | 2015-01-01T20:01:51.000Z | 2022-03-22T15:58:47.000Z | src/stack-unix/tcpv6_socket.ml | mirage/mirage-tcpip | 3e9c163af64b3ba0e6d1dffe5f869311d5d38507 | [
"0BSD"
] | 77 | 2015-03-01T13:13:26.000Z | 2022-03-11T20:14:36.000Z | (*
* Copyright (c) 2014 Anil Madhavapeddy <anil@recoil.org>
* Copyright (c) 2014 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 ... | 36.264706 | 85 | 0.695053 |
aaf17d737b4488ef6e304ea9c739aebeb53127cf | 73 | ml | OCaml | article_03/18_simple_let_2.ml | tisnik/ml-examples | 063b3109a3d97a8793483000cbbccb990f615126 | [
"Apache-2.0"
] | null | null | null | article_03/18_simple_let_2.ml | tisnik/ml-examples | 063b3109a3d97a8793483000cbbccb990f615126 | [
"Apache-2.0"
] | null | null | null | article_03/18_simple_let_2.ml | tisnik/ml-examples | 063b3109a3d97a8793483000cbbccb990f615126 | [
"Apache-2.0"
] | null | null | null | (* Příkaz let *)
let
val x = 10
val y = x + 1
in
x * y
end;
| 8.111111 | 17 | 0.424658 |
171fa8322988f58194f90d2df7cbfe1f388bc5bd | 11,908 | ml | OCaml | inter.ml | S12P/Fouine | 83327e8bdae1b1bc55ae972d54f5cd75d62818cf | [
"MIT"
] | 1 | 2019-05-23T02:28:30.000Z | 2019-05-23T02:28:30.000Z | inter.ml | S12P/Fouine | 83327e8bdae1b1bc55ae972d54f5cd75d62818cf | [
"MIT"
] | null | null | null | inter.ml | S12P/Fouine | 83327e8bdae1b1bc55ae972d54f5cd75d62818cf | [
"MIT"
] | null | null | null | open Expr;;
(*
Function d'extraction du type 'value'.
Si le paramètre est un identifier, alors il est inconnue et le programme est faux.
*)
let int_of_value id = function
| None -> failwith (concat_id id ": is unknown")
| Int i -> i
| _ -> failwith "Typage error"
let int_of_value' = function
| In... | 81.561644 | 183 | 0.437941 |
17471aa3cb7bb683e4d37e91bb7a500f0f54df7d | 35 | ml | OCaml | exercises/05_01-entiers/prelude.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | exercises/05_01-entiers/prelude.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | exercises/05_01-entiers/prelude.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | type entiers = Zero | S of entiers
| 17.5 | 34 | 0.714286 |
aad6cd880bc602999d3d5686ba2960a689bd3770 | 32,851 | ml | OCaml | src/irmin/store_intf.ml | TheLortex/irmin | ce58b43e54b1a57d66bbd5ff37f1a2d4edd086bf | [
"0BSD"
] | null | null | null | src/irmin/store_intf.ml | TheLortex/irmin | ce58b43e54b1a57d66bbd5ff37f1a2d4edd086bf | [
"0BSD"
] | 1 | 2020-03-02T22:43:44.000Z | 2020-03-06T15:35:44.000Z | src/irmin/store_intf.ml | TheLortex/irmin | ce58b43e54b1a57d66bbd5ff37f1a2d4edd086bf | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-2017 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 33.58998 | 82 | 0.619433 |
17219af66d5a7b034994d071a543fa4e133fd5ec | 8,959 | ml | OCaml | lib/spin/decoder.ml | timmassingham/spin | 0f1f0ca30911c40ebc27d61cb5aac222cd62c490 | [
"MIT"
] | null | null | null | lib/spin/decoder.ml | timmassingham/spin | 0f1f0ca30911c40ebc27d61cb5aac222cd62c490 | [
"MIT"
] | null | null | null | lib/spin/decoder.ml | timmassingham/spin | 0f1f0ca30911c40ebc27d61cb5aac222cd62c490 | [
"MIT"
] | null | null | null | (* This module is heavily inspired by
https://github.com/mattjbray/ocaml-decoders/ *)
type error =
| Decoder_error of string * Sexp.t option
| Decoder_errors of error list
| Decoder_tag of string * error
type 'a t = Sexp.t -> ('a, error) Result.t
(* Error handling *)
let pp_sexp fmt value = Caml.Format.fpr... | 24.748619 | 79 | 0.591919 |
aaf2a1b9a7978f115e5cf5f99c9a32c9a8d43b91 | 10,398 | ml | OCaml | src/odoc/env.ml | xvw/odoc | cb4f04e29d11bb3c1135e8fc8bf7594c8732f79f | [
"0BSD"
] | null | null | null | src/odoc/env.ml | xvw/odoc | cb4f04e29d11bb3c1135e8fc8bf7594c8732f79f | [
"0BSD"
] | null | null | null | src/odoc/env.ml | xvw/odoc | cb4f04e29d11bb3c1135e8fc8bf7594c8732f79f | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2014 Leo White <leo@lpw25.net>
*
* 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" AND THE AUT... | 38.654275 | 88 | 0.642239 |
173425c0ddd2ebae4b66c68cc7f99e7be2bb6abf | 895 | ml | OCaml | vendor/ppx_compare/expander/ppx_compare_expander_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 20 | 2016-01-13T19:23:18.000Z | 2022-01-05T17:25:22.000Z | vendor/ppx_compare/expander/ppx_compare_expander_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 10 | 2016-09-04T10:54:23.000Z | 2021-05-28T19:09:00.000Z | vendor/ppx_compare/expander/ppx_compare_expander_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open Ppxlib
module type Attrs = sig
val ignore_label_declaration : (label_declaration, unit) Attribute.t
val ignore_core_type : (core_type, unit) Attribute.t
end
module type S = sig
(** [type_ ~hide ty] is [ty -> ty -> result_type] where [result_type] is [int] for
[compare] and [bool] for [equal].
... | 27.121212 | 84 | 0.689385 |
172b67f51ed7e5e2ae0fae60579f2af060ff478f | 2,893 | ml | OCaml | experimental/pages/0x-document-render/main.ml | joelburget/lvca | 2192e31977a9368ea54b376d7887b8fb93ef6e89 | [
"MIT"
] | 22 | 2019-01-22T23:06:29.000Z | 2022-02-10T02:52:56.000Z | experimental/pages/0x-document-render/main.ml | joelburget/lvca | 2192e31977a9368ea54b376d7887b8fb93ef6e89 | [
"MIT"
] | 28 | 2019-01-20T23:10:46.000Z | 2022-02-28T00:59:52.000Z | experimental/pages/0x-document-render/main.ml | joelburget/lvca | 2192e31977a9368ea54b376d7887b8fb93ef6e89 | [
"MIT"
] | null | null | null | open Base
open Js_of_ocaml
open Lvca
module Model = struct
type t =
{ input : string
; result : (Binding.Nominal.term, ParseError.t) Core_kernel.Result.t option
}
let initial_model : t =
let input =
{|document(
header(h2(); "some document"),
paragraph(inline(inlineAtom("attrs... | 26.787037 | 91 | 0.604908 |
bcb39473ea102e8b723827a1859bb1ee220b4d4d | 4,324 | ml | OCaml | src/client-joo/local_cache.ml | hammerlab/ketrew | 8940d48fbe174709f076b7130974ecd0ed831d58 | [
"Apache-2.0"
] | 73 | 2015-01-15T21:38:02.000Z | 2022-01-10T17:53:07.000Z | src/client-joo/local_cache.ml | DavidAlphaFox/ketrew | 8940d48fbe174709f076b7130974ecd0ed831d58 | [
"Apache-2.0"
] | 396 | 2015-01-13T19:49:37.000Z | 2018-02-05T00:29:31.000Z | src/client-joo/local_cache.ml | DavidAlphaFox/ketrew | 8940d48fbe174709f076b7130974ecd0ed831d58 | [
"Apache-2.0"
] | 10 | 2015-01-13T03:12:30.000Z | 2020-09-14T02:52:37.000Z |
open Ketrew_pure
open Internal_pervasives
module Target_cache = struct
type target_knowledge = [
| `None
| `Summary of Target.Summary.t
| `Pointer of Target.id * Target.Summary.t
]
type flat_state = {
retrieved: Time.t option;
value: Target.State.Flat.t;
}
type query_description = [
... | 31.107914 | 91 | 0.692877 |
177087e1cc2d2bb59a958979986c18e8fd4f4d5f | 817 | ml | OCaml | benchmarks/formula/formula1/submissions/sub18.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/formula/formula1/submissions/sub18.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/formula/formula1/submissions/sub18.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 eval form =
let rec calc e =
match e with
NUM i -> i
|... | 22.081081 | 50 | 0.598531 |
aaff583974ef3510ac61fbeb4d1005a20b78f003 | 3,325 | ml | OCaml | src/stdune/path_intf.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | 4 | 2020-02-04T15:33:29.000Z | 2020-02-04T21:37:09.000Z | src/stdune/path_intf.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | src/stdune/path_intf.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | module type S = sig
type t
val hash : t -> int
val to_string : t -> string
val of_string : string -> t
val parse_string_exn : loc:Loc0.t -> string -> t
val pp : Format.formatter -> t -> unit
(** a directory is smaller than its descendants *)
include
Comparator.S with type t := t
include Com... | 23.251748 | 79 | 0.623759 |
aae8720278c4e22ebec9d8af36b0a030324e7e78 | 1,497 | mli | OCaml | src/lib/transition.mli | jserot/fsml | 9e3e04acbbb1cb1700fa9d4a0497f35ad4f70796 | [
"MIT"
] | 29 | 2020-10-20T20:30:12.000Z | 2021-05-06T12:08:25.000Z | src/lib/transition.mli | jserot/fsml | 9e3e04acbbb1cb1700fa9d4a0497f35ad4f70796 | [
"MIT"
] | 1 | 2020-10-21T07:08:02.000Z | 2020-10-21T10:51:14.000Z | src/lib/transition.mli | jserot/fsml | 9e3e04acbbb1cb1700fa9d4a0497f35ad4f70796 | [
"MIT"
] | null | null | null | (**********************************************************************)
(* *)
(* This file is part of the FSML library *)
(* github.com/jserot/fsml *)
(* ... | 48.290323 | 96 | 0.435538 |
1765e93dcd4278b5ff97b9b83f93040e0c598768 | 8,945 | ml | OCaml | presentations/coq-workshop-2014-coq/lib/unicode.ml | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/lib/unicode.ml | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/lib/unicode.ml | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | (***********************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA-Rocquencourt & LRI-CNRS-Orsay *)
(* \VV/ *************************************************************)
(* // * This f... | 36.96281 | 78 | 0.533259 |
aa6c005fb7292b78136274295787c47d3e1988fd | 1,607 | ml | OCaml | libraries/ec2/lib/modifyFleet.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/modifyFleet.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/modifyFleet.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 = ModifyFleetRequest.t
type output = ModifyFleetResult.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 (Endpoints.url_of service... | 26.783333 | 88 | 0.622278 |
aa16b5468782f5b0455710b5fe0aab4a4683ad47 | 66,773 | ml | OCaml | src/parser_utils/output/__tests__/js_layout_generator_test.ml | kevinold/flow | ef3393c014ef3dc1e006fd17e16462e3c3acb563 | [
"MIT"
] | 2 | 2018-02-28T06:36:27.000Z | 2018-02-28T06:36:30.000Z | src/parser_utils/output/__tests__/js_layout_generator_test.ml | kevinold/flow | ef3393c014ef3dc1e006fd17e16462e3c3acb563 | [
"MIT"
] | null | null | null | src/parser_utils/output/__tests__/js_layout_generator_test.ml | kevinold/flow | ef3393c014ef3dc1e006fd17e16462e3c3acb563 | [
"MIT"
] | 1 | 2018-02-28T06:36:11.000Z | 2018-02-28T06:36:11.000Z | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open OUnit2
open Ast_builder
open Layout_test_utils
module S = Ast_builder.Statements
module E = Ast_builder.Expressions
module J = As... | 37.220178 | 112 | 0.584862 |
bc89e343f0b406535426a880b1518add314bf12f | 2,523 | mli | OCaml | src/lib_base/p2p_identity.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_base/p2p_identity.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_base/p2p_identity.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 57.340909 | 79 | 0.529132 |
174aa2774017e9f2ef90954ff2123f832549b616 | 244,919 | ml | OCaml | infer/src/clang/cTrans.ml | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"MIT"
] | 4 | 2020-06-16T14:40:24.000Z | 2021-07-28T18:02:26.000Z | infer/src/clang/cTrans.ml | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"MIT"
] | 25 | 2021-02-08T13:49:24.000Z | 2022-02-28T03:34:19.000Z | infer/src/clang/cTrans.ml | 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! IStd
open PolyVariantEqual
(** Translates instructions: (statements and expressions) from the ast into sil *)
open CTrans_u... | 46.95533 | 114 | 0.690212 |
1769259c2fbec2cdffb3463d9d69aea311261d7a | 6,254 | ml | OCaml | src/lib_stdlib/compare.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/lib_stdlib/compare.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | src/lib_stdlib/compare.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 25.631148 | 89 | 0.51567 |
170c30e4651d907c42b805043274835d1157273f | 19 | mli | OCaml | bin/main.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | bin/main.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | bin/main.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | (** Main module *)
| 9.5 | 18 | 0.526316 |
bc179481647173851ac2b1a95a5f3902ab239fc6 | 2,093 | ml | OCaml | duniverse/core_kernel/src/debug.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_kernel/src/debug.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_kernel/src/debug.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | open! Import
module List = Base.List
module String = Base.String
let eprint message = Printf.eprintf "%s\n%!" message
let eprint_s sexp = eprint (Sexp.to_string_hum sexp)
let eprints message a sexp_of_a = eprint_s ([%sexp_of: string * a] (message, a))
let eprintf format = Printf.ksprintf eprint format
let failwiths = ... | 33.222222 | 90 | 0.676063 |
1740962cf735baac34dbead856e1bb204ba36754 | 172 | ml | OCaml | tests/compiler/functions.t/guards.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | tests/compiler/functions.t/guards.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | tests/compiler/functions.t/guards.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | open Erlang
let f x =
match x with
| y when (is_number y) -> 3
| y when Erlang.is_binary y -> 3
| y when y > 3 -> 3
| y when y <= 3 -> 3
| _ -> 4
| 15.636364 | 36 | 0.47093 |
aaf07e6cf9c9bfe667c91b07e5d917acab1c4655 | 43 | mli | OCaml | 2nd/compiler/emitAssem.mli | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | null | null | null | 2nd/compiler/emitAssem.mli | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | null | null | null | 2nd/compiler/emitAssem.mli | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | 3 | 2020-10-08T04:16:58.000Z | 2021-10-11T13:19:30.000Z | val f : out_channel -> Assem.t list -> unit | 43 | 43 | 0.674419 |
bc6d0c7f55dc5175f86b492d227e0b0d231fab1a | 5,150 | ml | OCaml | lib/electron_api/Process.ml | xvw/ocamlectron | 417f49d997298a3f69e4d31abd6c788f8c7e6df8 | [
"MIT"
] | 13 | 2018-09-20T11:30:09.000Z | 2020-04-28T21:33:10.000Z | lib/electron_api/Process.ml | xvw/ocamlectron | 417f49d997298a3f69e4d31abd6c788f8c7e6df8 | [
"MIT"
] | 5 | 2018-09-21T13:39:47.000Z | 2022-03-25T18:31:42.000Z | lib/electron_api/Process.ml | xvw/ocamlectron | 417f49d997298a3f69e4d31abd6c788f8c7e6df8 | [
"MIT"
] | 1 | 2020-08-23T23:41:49.000Z | 2020-08-23T23:41:49.000Z | open Js_of_ocaml
open Optional
open Electron_plumbing.Builtin
type t = Electron_plumbing.Process.t
type process_kind = [
`Browser
| `Renderer
| `Unknown of string
]
type architecture = [
`Arm
| `Arm64
| `Ia32
| `Mips
| `Mipsel
| `Ppc
| `Ppc64
| `S390
| `S390x
| `X32
| `X64
... | 25.879397 | 76 | 0.667767 |
17085964b52903e216cf9c0479f42e193397a673 | 4,660 | ml | OCaml | src/bin/user.ml | vch9/equinoxe | 9ac5db30aba96830402185e28131109b0ed44fbd | [
"MIT"
] | null | null | null | src/bin/user.ml | vch9/equinoxe | 9ac5db30aba96830402185e28131109b0ed44fbd | [
"MIT"
] | null | null | null | src/bin/user.ml | vch9/equinoxe | 9ac5db30aba96830402185e28131109b0ed44fbd | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* Open Source License *)
(* Copyright (c) 2021-present Étienne Marais <etienne@maiste.fr> *)
(* *)
... | 40.521739 | 80 | 0.574893 |
17194f58fb4b5ca11265970258b556217f2f3f89 | 1,478 | ml | OCaml | hphp/hack/src/utils/collections/immQueue.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-10-03T00:45:08.000Z | 2019-10-03T00:45:08.000Z | hphp/hack/src/utils/collections/immQueue.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | 8 | 2020-04-06T11:23:08.000Z | 2022-03-24T12:41:12.000Z | hphp/hack/src/utils/collections/immQueue.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* 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.
*
*)
type 'a t = {
incoming: 'a list;
outgoing: 'a list;
length: int;
}
exception Empty
let empty = {
incoming ... | 19.194805 | 74 | 0.586604 |
bce9e594466963d9d1ea9c107ac8e49b69aa4eb2 | 55,731 | ml | OCaml | src/irmin/tree.ml | gs0510/irmin | d6701925517d2d9874fe9d77a9a1fad905c72bd3 | [
"0BSD"
] | null | null | null | src/irmin/tree.ml | gs0510/irmin | d6701925517d2d9874fe9d77a9a1fad905c72bd3 | [
"0BSD"
] | null | null | null | src/irmin/tree.ml | gs0510/irmin | d6701925517d2d9874fe9d77a9a1fad905c72bd3 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-2021 Thomas Gazagnaire <thomas@gazagnaire.org>
* Copyright (c) 2017 Grégoire Henry <gregoire.henry@ocamlpro.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this pe... | 34.232801 | 81 | 0.515709 |
aa369ea1108b9aad92a2f9060c4bc2e072a3227c | 7,872 | ml | OCaml | data/derived/comb/progs/unify/prog2543.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/prog2543.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2543.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.327759 | 148 | 0.698171 |
aaaf7ac69890c77752c0a69f5c9d1c4749ac9306 | 9,473 | mli | OCaml | src/icalendar.mli | roburio/icalendar | d07933203645e9bcef1712dbbb1b2329639ffe4c | [
"0BSD"
] | 16 | 2018-04-23T17:08:14.000Z | 2021-04-12T04:27:07.000Z | src/icalendar.mli | roburio/icalendar | d07933203645e9bcef1712dbbb1b2329639ffe4c | [
"0BSD"
] | 2 | 2019-05-13T21:40:02.000Z | 2019-06-26T20:29:28.000Z | src/icalendar.mli | roburio/icalendar | d07933203645e9bcef1712dbbb1b2329639ffe4c | [
"0BSD"
] | null | null | null |
(* TODO: tag these with `Utc | `Local *)
type timestamp_utc = Ptime.t [@@deriving eq, show]
type timestamp_local = Ptime.t [@@deriving eq, show]
type utc_or_timestamp_local = [
| `Utc of timestamp_utc
| `Local of timestamp_local
] [@@deriving eq, show]
type timestamp = [
utc_or_timestamp_local
| `With_tzid o... | 32.665517 | 142 | 0.671804 |
17111bd3b51e050b3a76575a52f85fa46b56d8e1 | 1,499 | ml | OCaml | llvm/test/Bindings/OCaml/bitwriter.ml | mikeash/llvm-project | f7168bcd8d6c0d6869b0beec28a9f2cd43b0c802 | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | llvm/test/Bindings/OCaml/bitwriter.ml | mikeash/llvm-project | f7168bcd8d6c0d6869b0beec28a9f2cd43b0c802 | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | llvm/test/Bindings/OCaml/bitwriter.ml | mikeash/llvm-project | f7168bcd8d6c0d6869b0beec28a9f2cd43b0c802 | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | (* RUN: rm -rf %t && mkdir -p %t && cp %s %t/bitwriter.ml
* RUN: %ocamlc -g -w -3 -w +A -package llvm.bitreader -package llvm.bitwriter -linkpkg %t/bitwriter.ml -o %t/executable
* RUN: %t/executable %t/bitcode.bc
* RUN: %ocamlopt -g -w -3 -w +A -package llvm.bitreader -package llvm.bitwriter -linkpkg %t/bitwriter.ml... | 29.98 | 122 | 0.706471 |
aa2cea386d62afc3c0668d8eb69e3dc213ef0fa5 | 2,395 | ml | OCaml | hphp/hack/src/typing/tast_check/string_cast_check.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/string_cast_check.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2022-02-17T04:00:03.000Z | 2022-03-24T03:45:33.000Z | hphp/hack/src/typing/tast_check/string_cast_check.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-02-19T09:29:50.000Z | 2022-02-19T09:29:50.000Z | (*
* 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
module Env = Tast_env
module SN = Naming_special_names
(** Produce an er... | 29.207317 | 85 | 0.653862 |
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.