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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bcb473844ac39d4890e9f9cb7b9e8bf3330849f8 | 140,382 | ml | OCaml | analysis/attributeResolution.ml | s-pace/pyre-check | 2b71dcf22e4672567cfe0dfef356f11646d66244 | [
"MIT"
] | null | null | null | analysis/attributeResolution.ml | s-pace/pyre-check | 2b71dcf22e4672567cfe0dfef356f11646d66244 | [
"MIT"
] | null | null | null | analysis/attributeResolution.ml | s-pace/pyre-check | 2b71dcf22e4672567cfe0dfef356f11646d66244 | [
"MIT"
] | null | null | null | (* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. *)
open Core
open Pyre
open Ast
open Statement
open Assumptions
module UninstantiatedAnnotation = struct
type kind =
| Method of {
... | 39.790816 | 102 | 0.571754 |
bc91a1571d1a508d0672b5467b066701646b0f27 | 137 | ml | OCaml | vendors/ocaml-lmdb/config/discover.ml | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | vendors/ocaml-lmdb/config/discover.ml | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | vendors/ocaml-lmdb/config/discover.ml | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | let () =
let oc = open_out "c_flags.sexp" in
output_string oc (if Sys.word_size = 32 then "(-DMDB_VL32)" else "()") ;
close_out oc
| 27.4 | 74 | 0.642336 |
8a8f24f98039243ac221d1950ac92d6c20831ae4 | 1,288 | ml | OCaml | src/bin_sandbox/command_prevalidation.ml | osiz-blockchainapp/mica-hCoinSandbox | f877e01bbef8e748a52490bf0af599c654754148 | [
"MIT"
] | null | null | null | src/bin_sandbox/command_prevalidation.ml | osiz-blockchainapp/mica-hCoinSandbox | f877e01bbef8e748a52490bf0af599c654754148 | [
"MIT"
] | null | null | null | src/bin_sandbox/command_prevalidation.ml | osiz-blockchainapp/mica-hCoinSandbox | f877e01bbef8e748a52490bf0af599c654754148 | [
"MIT"
] | null | null | null | open Flextesa
open Internal_pervasives
open Console
let run state node_exec client_exec () =
Test_scenario.network_with_protocol ~size:2 state ~node_exec ~client_exec
>>= fun (nodes, protocol) ->
match nodes with
| [] | [_] | _ :: _ :: _ :: _ ->
assert false
| [n1; n2] ->
let c1 = Tezos_client.of... | 33.025641 | 75 | 0.658385 |
bc685329a1994ff6703b7543a5540f553f7703e7 | 273 | ml | OCaml | src/deque.ml | art-w/deque | 20d3cfafa93b73c9f7ee20c230dc3e1b3f86956e | [
"MIT"
] | 12 | 2021-03-04T20:02:05.000Z | 2022-03-07T08:51:33.000Z | src/deque.ml | art-w/deque | 20d3cfafa93b73c9f7ee20c230dc3e1b3f86956e | [
"MIT"
] | null | null | null | src/deque.ml | art-w/deque | 20d3cfafa93b73c9f7ee20c230dc3e1b3f86956e | [
"MIT"
] | 2 | 2021-06-11T16:16:14.000Z | 2021-06-24T10:42:31.000Z | module Dequeue = Dequeue
module Steque = struct
include List_like.Make (Steque)
include Steque
end
module Deck = struct
include List_like.Make (Deck)
include Deck
end
module Deckrev = struct
include List_like.Make (Deckrev)
include Deckrev
end
include Deck
| 14.368421 | 34 | 0.761905 |
bca8e6ad0994040268dc5d41ce2f7cad882d67bf | 11,039 | ml | OCaml | src/irmin-unix/fs.ml | gowthamk/irmin | 6fbb2c30afbf92280d1b47a84b5029f230d8f5ff | [
"ISC"
] | null | null | null | src/irmin-unix/fs.ml | gowthamk/irmin | 6fbb2c30afbf92280d1b47a84b5029f230d8f5ff | [
"ISC"
] | null | null | null | src/irmin-unix/fs.ml | gowthamk/irmin | 6fbb2c30afbf92280d1b47a84b5029f230d8f5ff | [
"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... | 34.389408 | 81 | 0.576411 |
bcc4d3494363682cdbd67aeffd345081891ac3ca | 3,255 | ml | OCaml | upstream/ocaml_413/typing/typedecl_immediacy.ml | dra27/merlin | ebd07f4a039a62dcf673d02d20b294bb63fb48b6 | [
"MIT"
] | 16 | 2021-07-15T00:45:49.000Z | 2021-12-17T18:30:17.000Z | upstream/ocaml_413/typing/typedecl_immediacy.ml | dra27/merlin | ebd07f4a039a62dcf673d02d20b294bb63fb48b6 | [
"MIT"
] | 4 | 2021-07-16T13:28:22.000Z | 2021-09-10T23:51:53.000Z | upstream/ocaml_413/typing/typedecl_immediacy.ml | dra27/merlin | ebd07f4a039a62dcf673d02d20b294bb63fb48b6 | [
"MIT"
] | 1 | 2021-07-16T18:23:50.000Z | 2021-07-16T18:23:50.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* Gabriel... | 45.208333 | 80 | 0.542857 |
bca109bbdfad95f24f493f896a03de8f52fcc668 | 2,540 | ml | OCaml | test/passing/tests/label_option_default_args.ml | d4hines/ocamlformat | 7022aee8b073cbb6645d40b9b8432653093ef835 | [
"MIT"
] | 499 | 2017-10-09T10:51:58.000Z | 2022-03-30T19:11:27.000Z | test/passing/tests/label_option_default_args.ml | d4hines/ocamlformat | 7022aee8b073cbb6645d40b9b8432653093ef835 | [
"MIT"
] | 1,392 | 2017-10-19T18:03:58.000Z | 2022-03-30T15:53:42.000Z | test/passing/tests/label_option_default_args.ml | d4hines/ocamlformat | 7022aee8b073cbb6645d40b9b8432653093ef835 | [
"MIT"
] | 118 | 2017-10-19T18:46:20.000Z | 2022-03-30T11:22:50.000Z | let f x = e
let (* 0 *) f (* 1 *) x (* 2 *) = (* 3 *) e
let f ~x = e
let (* 0 *) f (* 1 *) ~x (* 2 *) = (* 3 *) e
let f ~(x : t) = e
let (* 0 *) f (* 1 *) ~((* 2 *) x (* 3 *) : (* 4 *) t (* 5 *)) (* 6 *) = (* 7 *) e
let f ~l:x = e
let (* 0 *) f (* 1 *) ~l: (* 2 *) x (* 3 *) = (* 4 *) e
let f ~l:{f; g} = e
let ... | 21.709402 | 113 | 0.361024 |
8afe02f1ec70175571e79e6cb106136c72fcac84 | 946 | ml | OCaml | src/common.ml | ThiBen/cubicatt | 4b9b6781ecaaa58ae04475bbae4e0ca9e7d56685 | [
"MIT"
] | null | null | null | src/common.ml | ThiBen/cubicatt | 4b9b6781ecaaa58ae04475bbae4e0ca9e7d56685 | [
"MIT"
] | null | null | null | src/common.ml | ThiBen/cubicatt | 4b9b6781ecaaa58ae04475bbae4e0ca9e7d56685 | [
"MIT"
] | null | null | null | exception NotValid
exception EmptySub
exception BadUnderSub
exception NotAlgebraic
exception UnknownId of string
exception UnknownCoh of string
exception IsNotType of string
exception HasNoType of string
exception NotEqual of string*string
exception DoubledVar of string
exception DoubleDef of string
exception UnableUni... | 31.533333 | 99 | 0.730444 |
bcac02ff1673c132205a6f7ae1a06d8dd9026207 | 23,637 | ml | OCaml | src/core/display/completionItem.ml | Mu-L/haxe | c73f8b7077d84dfbd43a76f6986ead3321676d34 | [
"MIT"
] | null | null | null | src/core/display/completionItem.ml | Mu-L/haxe | c73f8b7077d84dfbd43a76f6986ead3321676d34 | [
"MIT"
] | null | null | null | src/core/display/completionItem.ml | Mu-L/haxe | c73f8b7077d84dfbd43a76f6986ead3321676d34 | [
"MIT"
] | null | null | null | open Globals
open Ast
open Type
open Genjson
type toplevel_kind =
| TKExpr of pos
| TKType
| TKPattern of pos
| TKOverride
| TKField of pos
module CompletionModuleKind = struct
type t =
| Class
| Interface
| Enum
| Abstract
| EnumAbstract
| TypeAlias
| Struct
| TypeParameter
| Static
let to_... | 28.444043 | 149 | 0.665144 |
bcbc0b4b45cbe5cd980942eac5598815b5617bcc | 7,835 | ml | OCaml | src/uv_fs_sync.ml | djs55/uwt | c43349bf3689181756feb341e3896d4a0a695523 | [
"MIT"
] | 61 | 2015-02-21T20:02:34.000Z | 2022-01-29T09:06:32.000Z | src/uv_fs_sync.ml | djs55/uwt | c43349bf3689181756feb341e3896d4a0a695523 | [
"MIT"
] | 5 | 2015-07-06T20:05:20.000Z | 2021-04-19T17:09:47.000Z | src/uv_fs_sync.ml | djs55/uwt | c43349bf3689181756feb341e3896d4a0a695523 | [
"MIT"
] | 7 | 2016-03-09T16:02:09.000Z | 2019-07-26T22:54:34.000Z | (* This file is part of uwt, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/fdopen/uwt/blob/master/LICENSE.md. *)
(*
type loop_mode =
| Sync
| Lwt
| Cb
*)
#include "config.inc"
open Uwt_base
include Fs_types
#if HAVE_WINDOWS <> 0
external init_uwt : unit -> unit = "uw... | 30.968379 | 80 | 0.682068 |
bcaabb37e054dc96dba61a09d9cab6ed55223d6d | 3,027 | mli | OCaml | src/fnn/fnn.mli | paralax/tensorflow-ocaml | 38536a16e785b1b0d5afa521311f11d797925546 | [
"Apache-2.0"
] | null | null | null | src/fnn/fnn.mli | paralax/tensorflow-ocaml | 38536a16e785b1b0d5afa521311f11d797925546 | [
"Apache-2.0"
] | 1 | 2019-04-08T08:37:44.000Z | 2019-04-08T08:37:44.000Z | src/fnn/fnn.mli | issuu/tensorflow-ocaml | 908ad63f39597f265db93c2978a9aa256c24d606 | [
"Apache-2.0"
] | null | null | null | open Base
open Tensorflow_core
open! Tensorflow
type _1d
type _2d
type _3d
module Shape : sig
type 'a t =
| D1 : int -> _1d t
| D2 : int * int -> _2d t
| D3 : int * int * int -> _3d t
end
module Id : sig
type t
end
module Input_id : sig
type t
end
type 'a t
type init = [ `const of float | `normal... | 17.701754 | 95 | 0.532871 |
bc94f3eb18d5b7a2ff6597150fbd4d57f8a961dc | 978 | ml | OCaml | test/test_find.ml | dosaylazy/ocaml-textmate-highlight | d400bc79d8086c92046dad701f826fa5698505f1 | [
"MIT"
] | 4 | 2021-12-06T10:48:31.000Z | 2021-12-06T16:11:52.000Z | test/test_find.ml | dosaylazy/ocaml-textmate-language | d400bc79d8086c92046dad701f826fa5698505f1 | [
"MIT"
] | null | null | null | test/test_find.ml | dosaylazy/ocaml-textmate-language | d400bc79d8086c92046dad701f826fa5698505f1 | [
"MIT"
] | 1 | 2021-12-06T10:36:24.000Z | 2021-12-06T10:36:24.000Z | open Util
let check_find grammar scope_name filetypes () =
let open TmLanguage in
let t = create () in
let check p =
Alcotest.check
Alcotest.bool scope_name true
(p (TmLanguage.find_by_scope_name t scope_name));
List.iter (fun filetype ->
Alcotest.check
Alcotest.bool filetyp... | 25.736842 | 77 | 0.649284 |
bc32b307881ca118c8d441763c6a6ac757e60599 | 235 | ml | OCaml | result/cafe2/mirror/sub6/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/prog/mirror/sub6/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/prog/mirror/sub6/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type btree = Empty | Node of (int * btree * btree)
let rec mirror (t : btree) : btree =
match t with
| Empty -> Empty
| Node (i, Empty, Empty) -> Node (i, Empty, Empty)
| Node (i, bt1, bt2) -> Node (i, mirror bt2, mirror bt1)
| 29.375 | 58 | 0.595745 |
bc344771d20c3227be92a3df45fbfc3ca3efab79 | 81,944 | ml | OCaml | hphp/hack/src/parser/full_fidelity_syntax_type.ml | billf/hhvm | e0767481dae5363be903b758941d8dbf0abea3da | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_syntax_type.ml | billf/hhvm | e0767481dae5363be903b758941d8dbf0abea3da | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_syntax_type.ml | billf/hhvm | e0767481dae5363be903b758941d8dbf0abea3da | [
"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. An additional
* directory.
*
**
*
* THIS FILE IS @generated; DO NOT EDIT IT
* To regenerate this file, run
*
* buc... | 32.059468 | 80 | 0.717893 |
bc716edcf3519cbb84c18bb8f7734122bf82ddea | 457 | mli | OCaml | src/typing/class_sig.mli | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | 1 | 2021-09-20T07:39:05.000Z | 2021-09-20T07:39:05.000Z | src/typing/class_sig.mli | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | null | null | null | src/typing/class_sig.mli | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"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.
*)
(** Intermediate representation for classes and interfaces *)
include module type of Class_sig_intf
module Make (Env : Env_sig.S)... | 32.642857 | 89 | 0.730853 |
bcc8ce345bba290e474a34c2694e99c1473d5680 | 336 | ml | OCaml | test/global_names.ml | coord-e/mlml | ec34b1fe8766901fab6842b790267f32b77a2861 | [
"MIT"
] | 51 | 2019-04-06T14:22:22.000Z | 2021-11-24T09:53:15.000Z | test/global_names.ml | coord-e/mlml | ec34b1fe8766901fab6842b790267f32b77a2861 | [
"MIT"
] | null | null | null | test/global_names.ml | coord-e/mlml | ec34b1fe8766901fab6842b790267f32b77a2861 | [
"MIT"
] | 4 | 2019-12-30T01:08:42.000Z | 2022-02-11T06:36:55.000Z | let () =
(* starting with underscore to suppress warning *)
Tester.expr {|
let _f x = x + 3 in
let _f x = 10 * x + 3 in
_f 4
|};
Tester.expr
{|
let f x = (
if x = 0
then x + 3
else x * 3
) in
let g x = (
if x = 9
then x + 3
else x * 3
) in
... | 14.608696 | 52 | 0.404762 |
bc9bbd3272481eafb710ec04c18c6d813b43980e | 158 | ml | OCaml | src/Channel.ml | GItEstl/Internship_TCD | e21c2455afdc8b338a13531f804d3acd7a8518e9 | [
"BSD-3-Clause"
] | 1 | 2020-03-10T22:11:47.000Z | 2020-03-10T22:11:47.000Z | src/Channel.ml | GItEstl/Internship_TCD | e21c2455afdc8b338a13531f804d3acd7a8518e9 | [
"BSD-3-Clause"
] | null | null | null | src/Channel.ml | GItEstl/Internship_TCD | e21c2455afdc8b338a13531f804d3acd7a8518e9 | [
"BSD-3-Clause"
] | null | null | null | type channel = int
let counter = ref (3)
let create_chan_id () =
let id = !counter in
counter := (!counter) + 1;
id
let equal ch1 ch2 = (ch1 == ch2)
| 14.363636 | 32 | 0.607595 |
bc4fab51204fd4a5ac539ad50654eb7b11d5be96 | 1,721 | ml | OCaml | lib/discrete_pd.ml | biocaml/phylogenetics | ebf87b3aef63babe9b41b9d44c303f61f7921205 | [
"CECILL-B"
] | 11 | 2017-12-05T16:13:46.000Z | 2021-11-16T17:02:32.000Z | lib/discrete_pd.ml | biocaml/phylogenetics | ebf87b3aef63babe9b41b9d44c303f61f7921205 | [
"CECILL-B"
] | 8 | 2020-01-05T18:49:57.000Z | 2022-03-16T19:47:45.000Z | lib/discrete_pd.ml | biocaml/phylogenetics | ebf87b3aef63babe9b41b9d44c303f61f7921205 | [
"CECILL-B"
] | 2 | 2021-03-29T13:21:25.000Z | 2022-03-29T19:08:37.000Z | open Core_kernel
type t = {
n : int ;
shift : int ;
weights : float array ;
}
let is_leaf dpd i = i >= dpd.shift
let init n ~f =
let shift = Float.(to_int (2. ** round_up (log (float n) /. log 2.))) - 1 in
let m = shift + n in
let weights = Array.create ~len:m 0. in
for i = 0 to n - 1 do
weights.(s... | 28.683333 | 89 | 0.548518 |
44c61ddc76ea1b068ec259318bff53a3abb27565 | 2,106 | mli | OCaml | src/lib/misc.mli | jserot/rfsm | 5f6dcef41b8d1a8aae01520c0c638ba346e0b36c | [
"MIT"
] | 21 | 2018-04-23T10:08:40.000Z | 2021-03-24T16:04:53.000Z | src/lib/misc.mli | jserot/rfsm | 5f6dcef41b8d1a8aae01520c0c638ba346e0b36c | [
"MIT"
] | 3 | 2018-06-06T07:13:18.000Z | 2020-03-25T11:12:03.000Z | src/lib/misc.mli | jserot/rfsm | 5f6dcef41b8d1a8aae01520c0c638ba346e0b36c | [
"MIT"
] | null | null | null | (**********************************************************************)
(* *)
(* This file is part of the RFSM package *)
(* *)
(* Copyright (c) 2018-prese... | 51.365854 | 122 | 0.475783 |
8a13ef807c38919c2e48de71f68478961b444578 | 1,668 | ml | OCaml | src/lib/web_client_pipe/web_client_pipe.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/web_client_pipe/web_client_pipe.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/web_client_pipe/web_client_pipe.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | open Core_kernel
open Async_kernel
open Pipe_lib
module type S = sig
type t
type data
val create : filename:string -> logger:Logger.t -> t Deferred.t
val store : t -> data -> unit Deferred.t
end
module type Storage_intf = sig
type data
type location
val store : location -> data -> unit Deferred.t
e... | 26.47619 | 78 | 0.601918 |
bcb8b09f26191c1e425111f071bcb0f4b29c3dfb | 81 | ml | OCaml | data/derived/comb/progs/unify/prog3857.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/prog3857.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3857.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec sumList xs = match sumList with | head::tail -> head + (sumList tail);;
| 27 | 79 | 0.666667 |
446d59dafb36c1179a38726a42a0d5bae296c506 | 5,321 | ml | OCaml | 2020/07/day_7.ml | timkalan/advent-of-code | e499fd9425eef8dfb5faba9c0daedb5dd109c8b4 | [
"MIT"
] | null | null | null | 2020/07/day_7.ml | timkalan/advent-of-code | e499fd9425eef8dfb5faba9c0daedb5dd109c8b4 | [
"MIT"
] | null | null | null | 2020/07/day_7.ml | timkalan/advent-of-code | e499fd9425eef8dfb5faba9c0daedb5dd109c8b4 | [
"MIT"
] | null | null | null | let vhod_v_seznam vsebina_datoteke =
String.split_on_char '\n' vsebina_datoteke
let podtorbe vrstica =
let sez_besed str = String.split_on_char ' ' str in
let dolzina_seza = List.length (sez_besed vrstica) in
let nadtorba = String.concat " " [List.nth (sez_besed vrstica) 0; List.nth (sez_besed vrst... | 38.007143 | 112 | 0.563428 |
bc9227855780194b125dd2b895a3a2bfb37fab23 | 483 | ml | OCaml | play/menhir/morse-code-simpl/driver.ml | vyorkin/tiger | 54dd179c1cd291df42f7894abce3ee9064e18def | [
"MIT"
] | 14 | 2019-12-31T19:44:45.000Z | 2021-12-09T13:43:18.000Z | play/menhir/morse-code-simpl/driver.ml | vyorkin/tiger | 54dd179c1cd291df42f7894abce3ee9064e18def | [
"MIT"
] | 4 | 2019-08-16T16:17:41.000Z | 2020-02-23T15:31:42.000Z | play/menhir/morse-code-simpl/driver.ml | vyorkin/tiger | 54dd179c1cd291df42f7894abce3ee9064e18def | [
"MIT"
] | 2 | 2020-10-17T04:56:37.000Z | 2021-08-22T13:00:56.000Z | open Core
open Syntax
let rec tokens buf =
match Lexer.read buf with
| EOF -> [EOF]
| tok -> tok::tokens buf
let lex_print ch =
ch
|> Lexing.from_channel
|> tokens
|> List.iter ~f:(fun e -> Format.printf "%s\n" (show_exp e))
let run filename () =
In_channel.with_file filename ~f:lex_print
let () =
... | 21 | 72 | 0.654244 |
4449b3c58e4bcb36be14e55b268bfea0ef2e7356 | 44,777 | ml | OCaml | hack/utils/lsp_fmt.ml | disnet/flow | f916c6d4300220fda951d123b85b8f05a75a3427 | [
"MIT"
] | null | null | null | hack/utils/lsp_fmt.ml | disnet/flow | f916c6d4300220fda951d123b85b8f05a75a3427 | [
"MIT"
] | null | null | null | hack/utils/lsp_fmt.ml | disnet/flow | f916c6d4300220fda951d123b85b8f05a75a3427 | [
"MIT"
] | 2 | 2021-02-02T14:51:26.000Z | 2021-02-02T14:52:05.000Z | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_core
open Lsp
open Hh_json
open Hh_json_helpers
(*********************************************************... | 38.238258 | 100 | 0.614467 |
bc786c1309303981840c03b215969067ee092824 | 141 | mli | OCaml | lib/log.mli | johan-bolmsjo/aoc2020 | 8a7b7951344927ff33c229c6530bcc85c45cc829 | [
"MIT"
] | 1 | 2020-12-17T21:57:43.000Z | 2020-12-17T21:57:43.000Z | lib/log.mli | johan-bolmsjo/aoc2020 | 8a7b7951344927ff33c229c6530bcc85c45cc829 | [
"MIT"
] | null | null | null | lib/log.mli | johan-bolmsjo/aoc2020 | 8a7b7951344927ff33c229c6530bcc85c45cc829 | [
"MIT"
] | null | null | null | (* Log exception backtrace to stderr *)
val backtrace: unit -> unit
(* Log message and exit with status code 1 *)
val fatalln: string -> 'a
| 23.5 | 45 | 0.695035 |
8aa7e592bd56860b32aa12c1d22e947d11a10480 | 8,148 | ml | OCaml | pa_main.ml | rlepigre/ocaml-earley-ocaml | 60cf1e63f30b670d0bc4bc22cdff36b453c502e3 | [
"CECILL-B"
] | 2 | 2018-02-12T20:06:48.000Z | 2018-04-09T14:08:38.000Z | pa_main.ml | rlepigre/ocaml-earley-ocaml | 60cf1e63f30b670d0bc4bc22cdff36b453c502e3 | [
"CECILL-B"
] | 12 | 2017-08-30T10:44:32.000Z | 2019-08-02T11:33:33.000Z | pa_main.ml | rlepigre/ocaml-earley-ocaml | 60cf1e63f30b670d0bc4bc22cdff36b453c502e3 | [
"CECILL-B"
] | 1 | 2020-04-25T05:58:29.000Z | 2020-04-25T05:58:29.000Z | (*
======================================================================
Copyright Christophe Raffalli & Rodolphe Lepigre
LAMA, UMR 5127 - Université Savoie Mont Blanc
christophe.raffalli@univ-savoie.fr
rodolphe.lepigre@univ-savoie.fr
This software contains implements a parser combinator library together... | 36.375 | 95 | 0.62322 |
44eab344832b9cea06b4294d604dfba197155af2 | 690 | ml | OCaml | src/core/CCRef.ml | glean-dev/ocaml-containers | 3f08d899c98ee44509d6f6404488b1b0f26a7943 | [
"BSD-2-Clause"
] | 1 | 2019-01-22T15:09:19.000Z | 2019-01-22T15:09:19.000Z | src/core/CCRef.ml | glean-dev/ocaml-containers | 3f08d899c98ee44509d6f6404488b1b0f26a7943 | [
"BSD-2-Clause"
] | null | null | null | src/core/CCRef.ml | glean-dev/ocaml-containers | 3f08d899c98ee44509d6f6404488b1b0f26a7943 | [
"BSD-2-Clause"
] | null | null | null |
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 References}
@since 0.9 *)
type 'a printer = Format.formatter -> 'a -> unit
type 'a ord = 'a -> 'a -> int
type 'a eq = 'a -> 'a -> bool
type 'a sequence = ('a -> unit) -> unit
type 'a t = 'a ref
let create x = ref... | 15.681818 | 90 | 0.566667 |
bc19d149bd926d3c4b10e0baa99cf71384c0b126 | 2,629 | ml | OCaml | lib/channel_mode.ml | reynir/cri | e720587814f5c01dafa0322c873dd33fe8dccbb7 | [
"MIT"
] | 23 | 2021-05-25T09:45:46.000Z | 2021-08-24T18:59:09.000Z | lib/channel_mode.ml | reynir/cri | e720587814f5c01dafa0322c873dd33fe8dccbb7 | [
"MIT"
] | 1 | 2021-07-26T08:53:39.000Z | 2021-07-26T08:53:39.000Z | lib/channel_mode.ml | reynir/cri | e720587814f5c01dafa0322c873dd33fe8dccbb7 | [
"MIT"
] | 1 | 2021-06-18T07:39:23.000Z | 2021-06-18T07:39:23.000Z | type t =
| Channel_creator
| Channel_operator
| Voice_privilege
| Anonymous
| Invite_only
| Moderated
| Ostracize (* n *)
| Quiet
| Private
| Secret
| Server_reop
| Topic
| Key
| User_limit
| Ban_mask
| Exception_mask
| Invitation_mask
let of_letter = function
| 'O' -> Ok Channel_cr... | 26.029703 | 81 | 0.555344 |
44c2fe52c619ef136344c5457f1ee3a8c65bea63 | 1,007 | ml | OCaml | src/ocaml/gen_pw.ml | JustusAdam/misc_python | 36b61d6e954eb69cfd47066fe3cd29a93a197ba5 | [
"MIT"
] | 1 | 2019-11-27T03:05:33.000Z | 2019-11-27T03:05:33.000Z | src/ocaml/gen_pw.ml | JustusAdam/misc_python | 36b61d6e954eb69cfd47066fe3cd29a93a197ba5 | [
"MIT"
] | null | null | null | src/ocaml/gen_pw.ml | JustusAdam/misc_python | 36b61d6e954eb69cfd47066fe3cd29a93a197ba5 | [
"MIT"
] | null | null | null | let chars =
[| 'a'; 'b'; 'c'; 'd'; 'e'
; 'f'; 'g'; 'h'; 'i'; 'j'
; 'k'; 'l'; 'm'; 'n'; 'o'
; 'p'; 'q'; 'r'; 's'; 't'
; 'u'; 'v'; 'w'; 'x'; 'y'
; 'z' |];;
let nums =
[| '0'; '1'; '2'; '3'; '4'; '5'; '6'; '7'; '8'; '9' |];;
let syms =
[| '@'; '$'; '^'; '|'; '?'; '*'; '+' |];;
let all_chars = Array.app... | 23.418605 | 90 | 0.513406 |
bc8b5307c967628ff40cff446f4e5f0d3d78dc9b | 70 | ml | OCaml | web/handler/page.ml | timohuber/sihl-demo | 9edc2608b202825dcecbe1ff16be59583653a22e | [
"MIT"
] | 330 | 2020-03-18T09:54:39.000Z | 2022-03-02T15:51:38.000Z | web/handler/page.ml | timohuber/sihl-demo | 9edc2608b202825dcecbe1ff16be59583653a22e | [
"MIT"
] | 272 | 2020-03-12T18:34:57.000Z | 2022-03-31T15:21:22.000Z | web/handler/page.ml | timohuber/sihl-demo | 9edc2608b202825dcecbe1ff16be59583653a22e | [
"MIT"
] | 12 | 2020-06-18T10:55:59.000Z | 2021-09-11T06:43:25.000Z | let hello _ = Lwt.return @@ Sihl.Web.Response.of_html View.Hello.page
| 35 | 69 | 0.757143 |
bca6a9cfb22d70ae8ab9d97190ad396d5eee2106 | 411 | mli | OCaml | src/ocaml/rpc/configuration_endpoint.mli | derui/sxfiler | b88f99d4aa495ef3958ad1ca823e5a10146ca33a | [
"MIT"
] | null | null | null | src/ocaml/rpc/configuration_endpoint.mli | derui/sxfiler | b88f99d4aa495ef3958ad1ca823e5a10146ca33a | [
"MIT"
] | 11 | 2020-03-14T01:09:36.000Z | 2022-03-02T02:09:30.000Z | src/ocaml/rpc/configuration_endpoint.mli | derui/sxfiler | b88f99d4aa495ef3958ad1ca823e5a10146ca33a | [
"MIT"
] | null | null | null | (** This module provides endpoint definitions and implementations for Configuration *)
open Abbrev
val get :
([> `Step_configuration_instance of (module F.Common_step.Configuration.Instance) S.Context.t ] -> S.Context.value) ->
Endpoint.t
(** Query endpoint that get current key map *)
val update : 'a F.Configura... | 34.25 | 120 | 0.727494 |
bca7bbab91a45d69fcb2ebd96b610d92c8df5f86 | 19,210 | mli | OCaml | lib/node/gen/worker_threads.mli | smorimoto/js-bindings | 0812fbba1ccd616a4591b5c3da89b8623c0e5d85 | [
"MIT"
] | 1 | 2021-04-15T05:05:29.000Z | 2021-04-15T05:05:29.000Z | lib/node/gen/worker_threads.mli | smorimoto/js-bindings | 0812fbba1ccd616a4591b5c3da89b8623c0e5d85 | [
"MIT"
] | null | null | null | lib/node/gen/worker_threads.mli | smorimoto/js-bindings | 0812fbba1ccd616a4591b5c3da89b8623c0e5d85 | [
"MIT"
] | null | null | null | [@@@ocaml.warning "-7-11-32-33-39"]
[@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]]
open Es2020
open Globals
module Internal : sig
module AnonymousInterfaces : sig
type anonymous_interface_0 = [ `anonymous_interface_0 ] intf
[@@js.custom { of_js = Obj.magic; to_js = Obj.magic }]
end
module Types : ... | 24.163522 | 80 | 0.53316 |
bcc7d70f2779ba99f63e13e329c019a7df5b6d07 | 30,844 | ml | OCaml | analysis/annotatedSignature.ml | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | null | null | null | analysis/annotatedSignature.ml | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | null | null | null | analysis/annotatedSignature.ml | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | null | null | null | (* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. *)
open Core
open Pyre
open Ast
open Expression
type mismatch = {
actual: Type.t;
actual_expression: Expression.t;
expected: Type.t;
na... | 42.42641 | 99 | 0.596356 |
bc56f6c92b5eab5d1483b9a3442267e6710a0e7f | 26 | mli | OCaml | src/exes/moc.mli | olaszakos/motoko | 01867bdb76d6ceb7e986297464a41146f3d34839 | [
"Apache-2.0"
] | 248 | 2021-06-10T07:25:28.000Z | 2022-03-29T10:34:45.000Z | src/exes/moc.mli | olaszakos/motoko | 01867bdb76d6ceb7e986297464a41146f3d34839 | [
"Apache-2.0"
] | 612 | 2021-06-10T07:04:33.000Z | 2022-03-31T16:28:29.000Z | src/exes/moc.mli | olaszakos/motoko | 01867bdb76d6ceb7e986297464a41146f3d34839 | [
"Apache-2.0"
] | 36 | 2021-06-10T06:46:55.000Z | 2022-03-07T20:22:04.000Z | (* Nothing to see here *)
| 13 | 25 | 0.615385 |
bcab229514b3cec646fd17735dad1daf3e1631b2 | 6,001 | mli | OCaml | src/proto_alpha/bin_tx_rollup_node/state.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_alpha/bin_tx_rollup_node/state.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_alpha/bin_tx_rollup_node/state.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2022 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 48.395161 | 87 | 0.630228 |
bc172d6f1cf8f6d6efa0609afc8ca023c3b84bd8 | 3,405 | mli | OCaml | src/happy_eyeballs.mli | roburio/happy-eyeballs | 3e216048e25cc6e8b29ddad3930b7250468c2100 | [
"0BSD"
] | 16 | 2021-08-13T19:39:14.000Z | 2022-01-17T14:26:51.000Z | src/happy_eyeballs.mli | roburio/happy-eyeballs | 3e216048e25cc6e8b29ddad3930b7250468c2100 | [
"0BSD"
] | 16 | 2021-08-13T16:36:03.000Z | 2022-03-16T09:00:42.000Z | src/happy_eyeballs.mli | roburio/happy-eyeballs | 3e216048e25cc6e8b29ddad3930b7250468c2100 | [
"0BSD"
] | 1 | 2022-03-31T11:33:54.000Z | 2022-03-31T11:33:54.000Z | (** The internal state of happy eyeballs. *)
type t
(** The variant of actions to be performed by the effectful layer. *)
type action =
| Resolve_a of [`host] Domain_name.t
| Resolve_aaaa of [`host] Domain_name.t
| Connect of [`host] Domain_name.t * int * (Ipaddr.t * int)
| Connect_failed of [`host] Domain_nam... | 42.5625 | 100 | 0.68047 |
bc34b138fb2b7e91e777b81a0dca892736ed0573 | 6,121 | ml | OCaml | ocaml_modules/base/src/int.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | ocaml_modules/base/src/int.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | ocaml_modules/base/src/int.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | open! Import
include Int_intf
include Int0
module T = struct
type t = int [@@deriving_inline hash, sexp]
let (hash_fold_t :
Ppx_hash_lib.Std.Hash.state -> t -> Ppx_hash_lib.Std.Hash.state) =
hash_fold_int
and (hash : t -> Ppx_hash_lib.Std.Hash.hash_value) =
let func = hash_int in fun x -> fu... | 24.681452 | 90 | 0.652508 |
8adf8c72fe934618495c1b5b58bee01ae7ece482 | 78,204 | ml | OCaml | source/analysis/test/integration/annotationTest.ml | brianjo/pyre-check | faae20632480948d943d094895c1a2c025e9d82a | [
"MIT"
] | null | null | null | source/analysis/test/integration/annotationTest.ml | brianjo/pyre-check | faae20632480948d943d094895c1a2c025e9d82a | [
"MIT"
] | null | null | null | source/analysis/test/integration/annotationTest.ml | brianjo/pyre-check | faae20632480948d943d094895c1a2c025e9d82a | [
"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 OUnit2
open IntegrationTest
let test_check_undefined_type context =
let assert_type_errors = assert_type_errors ~context in... | 29.589103 | 121 | 0.580904 |
44bccc12bff19d59db3c58125e0054d9d8abeb6e | 590 | ml | OCaml | src/time_ns.ml | janestreet/async_kernel | 0f53fece3a9e5aeb404a067250aa8d6b71744a0d | [
"MIT"
] | 47 | 2015-02-08T20:14:40.000Z | 2021-12-17T02:54:42.000Z | src/time_ns.ml | janestreet/async_kernel | 0f53fece3a9e5aeb404a067250aa8d6b71744a0d | [
"MIT"
] | 12 | 2015-03-13T14:32:22.000Z | 2020-10-26T17:28:18.000Z | src/time_ns.ml | janestreet/async_kernel | 0f53fece3a9e5aeb404a067250aa8d6b71744a0d | [
"MIT"
] | 16 | 2015-01-18T04:15:19.000Z | 2021-12-17T02:55:43.000Z | include Core.Core_private.Time_ns_alternate_sexp
(* [after] is like [add], but deals nicely with the case of overflow by instead returning
[max_value]. Time-source functions use [after] to avoid immediately firing events that
should never fire, due to the overflow leading to a negative time that appears to be i... | 49.166667 | 90 | 0.750847 |
bc8b9e2ebcd312776dbbfd29a47517a4e8db5e7b | 10,881 | ml | OCaml | src/ce.ml | pfnet-research/ATPG4SV | 38a8aca3a238e83a3287d2e51dc634deb8ce3fa1 | [
"MIT"
] | 8 | 2018-12-21T05:21:43.000Z | 2021-08-18T01:58:21.000Z | src/ce.ml | pfnet-research/ATPG4SV | 38a8aca3a238e83a3287d2e51dc634deb8ce3fa1 | [
"MIT"
] | null | null | null | src/ce.ml | pfnet-research/ATPG4SV | 38a8aca3a238e83a3287d2e51dc634deb8ce3fa1 | [
"MIT"
] | 3 | 2018-12-21T06:35:09.000Z | 2019-09-19T05:22:42.000Z |
(*
Concrete Execution
Generates execution path from VCD.
*)
let read_ce ic =
let rec aux l =
match input_line ic with
| s -> aux (s::l)
| exception _ -> l in
aux [] |> List.rev
type value = Cint of int | Cfloat of float | Cundef | Cbool of bool
[@@deriving show]
type time = int
[@@deriving show]
... | 38.045455 | 117 | 0.568422 |
448134dc2ef5b0ef6b1b945d7cd1faae4131f6a5 | 3,997 | ml | OCaml | src/aeInst.ml | amaloz/ae-generator | c339172f08b8ca308170273b4bd4cc58b95aa715 | [
"Beerware"
] | 14 | 2015-07-06T17:12:25.000Z | 2020-05-30T17:05:14.000Z | src/aeInst.ml | amaloz/ae-generator | c339172f08b8ca308170273b4bd4cc58b95aa715 | [
"Beerware"
] | 1 | 2016-04-21T15:11:15.000Z | 2016-04-24T18:52:30.000Z | src/aeInst.ml | amaloz/ae-generator | c339172f08b8ca308170273b4bd4cc58b95aa715 | [
"Beerware"
] | 1 | 2019-04-18T05:18:05.000Z | 2019-04-18T05:18:05.000Z | open AeInclude
let n_in = function
| Inst In1 -> 0
| Inst In2 -> 0
| Inst Ini1 -> 0
| Inst Ini2 -> 0
| Inst Fin1 -> 1
| Inst Fin2 -> 1
| Inst Out1 -> 1
| Inst Out2 -> 1
| Inst Dup -> 1
| Inst Xor -> 2
| Inst Tbc -> 1
| StackInst Swap -> 2
| StackInst Twoswap -> 3
let n_out = function
| Ins... | 28.963768 | 81 | 0.590693 |
bc0f888b15f25d0ba1721e9c53c88f929c86e017 | 1,518 | ml | OCaml | hphp/hack/src/utils/config_file/config_file.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 7 | 2021-09-20T18:47:18.000Z | 2021-09-20T23:02:22.000Z | hphp/hack/src/utils/config_file/config_file.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-08-21T07:48:37.000Z | 2021-08-21T07:48:37.000Z | hphp/hack/src/utils/config_file/config_file.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"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
include Config_file_version
type t = Config_file_common.t
let file_path_relative_to_repo_root =
... | 27.107143 | 75 | 0.751647 |
44c8902977274b1863b7b4144d89e2473f9deddb | 14,258 | ml | OCaml | src/lustre/typeCheckerContext.ml | kind2-mc/kind2 | 12ee2b8a6fc3033f6bb2d278efc771e612906621 | [
"Apache-2.0"
] | 62 | 2015-02-04T17:49:51.000Z | 2022-03-19T21:52:06.000Z | src/lustre/typeCheckerContext.ml | kind2-mc/kind2 | 12ee2b8a6fc3033f6bb2d278efc771e612906621 | [
"Apache-2.0"
] | 110 | 2015-01-20T14:26:17.000Z | 2022-03-22T02:25:49.000Z | src/lustre/typeCheckerContext.ml | 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... | 40.737143 | 99 | 0.621967 |
4408d7540697a8ace40251d1ffb45669ba473f81 | 2,768 | mli | OCaml | compiler/src/safety/safetyAbsExpr.mli | maximedenes/jasmin | 033902f54904c35495b2c76e343bc57957fc348e | [
"MIT"
] | null | null | null | compiler/src/safety/safetyAbsExpr.mli | maximedenes/jasmin | 033902f54904c35495b2c76e343bc57957fc348e | [
"MIT"
] | null | null | null | compiler/src/safety/safetyAbsExpr.mli | maximedenes/jasmin | 033902f54904c35495b2c76e343bc57957fc348e | [
"MIT"
] | null | null | null | open Utils
open Wsize
open Prog
open SafetyVar
open SafetyExpr
open SafetyConstr
open SafetyPreanalysis
(*---------------------------------------------------------------*)
val pcast : wsize -> expr -> expr
val wsize_of_ty : 'a gty -> int
val check_is_word : int ggvar -> unit
(*------------... | 33.349398 | 79 | 0.501084 |
8a8575d47a5998629b9773c7ea4b570f7b1c88f4 | 832 | ml | OCaml | lib/common/src/scope.ml | MattWindsor91/c4f | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 7 | 2018-11-27T23:53:58.000Z | 2020-11-22T11:56:16.000Z | lib/common/src/scope.ml | MattWindsor91/act | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 235 | 2018-10-03T16:37:36.000Z | 2020-11-22T16:26:51.000Z | lib/common/src/scope.ml | MattWindsor91/c4f | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 1 | 2018-11-13T16:43:19.000Z | 2018-11-13T16:43:19.000Z | (* This file is part of c4f.
Copyright (c) 2018-2022 C4 Project
c4t itself is licensed under the MIT License. See the LICENSE file in the
project root for more information.
Parts of c4t are based on code from the Herdtools7 project
(https://github.com/herd/herdtools7) : see the LICENSE.herd file in th... | 28.689655 | 76 | 0.66226 |
445861cdf75211c5e8dcb3782a4e07ac76360c31 | 81 | ml | OCaml | benchmarks/C/iter/sol295.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/iter/sol295.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/iter/sol295.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | let rec iter = (fun (n, f) a ->
if n <= 0 then a
else iter(n - 1, f) (f a)
)
| 16.2 | 31 | 0.469136 |
bc28467467c10e67a31b817da416592b7b160b64 | 416 | ml | OCaml | bootstrap/test/basis/result/test_ok_opt_error_opt.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | 1 | 2021-08-13T04:54:39.000Z | 2021-08-13T04:54:39.000Z | bootstrap/test/basis/result/test_ok_opt_error_opt.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | 1 | 2020-02-14T19:21:40.000Z | 2020-02-14T19:21:40.000Z | bootstrap/test/basis/result/test_ok_opt_error_opt.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | null | null | null | open! Basis.Rudiments
open! Basis
open Result
open Format
let test () =
printf "@[<h>";
List.iter [Ok "ok"; Error "error"] ~f:(fun result ->
printf "ok_opt %a -> %a\n"
(pp String.pp String.pp) result
(Option.pp String.pp) (ok_opt result);
printf "error_opt %a -> %a\n"
(pp String.pp String... | 21.894737 | 54 | 0.59375 |
bc86b0678b6ce481f5ceb37775555e0f8c508b3b | 13,789 | ml | OCaml | hphp/hack/src/format/format_diff.ml | hmic/hhvm | 73f5c9c0fc56252ede63def7b0eab559035f14e8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/format/format_diff.ml | hmic/hhvm | 73f5c9c0fc56252ede63def7b0eab559035f14e8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/format/format_diff.ml | hmic/hhvm | 73f5c9c0fc56252ede63def7b0eab559035f14e8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(************... | 35.908854 | 80 | 0.600116 |
bc18854d0a1b8769ff097497385ba0a7457898d0 | 1,346 | ml | OCaml | src/external/ocaml-dune/src/dep_path.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | 1 | 2021-03-12T10:46:21.000Z | 2021-03-12T10:46:21.000Z | src/external/ocaml-dune/src/dep_path.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | src/external/ocaml-dune/src/dep_path.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | open! Stdune
module Entry = struct
type t =
| Path of Path.t
| Alias of Path.t
| Library of Path.t * Lib_name.t
| Preprocess of Lib_name.t list
| Loc of Loc.t
let to_string = function
| Path p -> Utils.describe_target p
| Alias p -> "alias " ^ Utils.describe_target p
| Library (pat... | 24.035714 | 68 | 0.612184 |
bc0a36bc388e87169f6bfafa5b0d72320b7f2a88 | 41,453 | ml | OCaml | genswf.ml | mcheshkov/haxe | d9ac9c2e1429e37790054c4f3dc12d728bb173fc | [
"MIT"
] | 1 | 2020-07-30T11:47:12.000Z | 2020-07-30T11:47:12.000Z | genswf.ml | mcheshkov/haxe | d9ac9c2e1429e37790054c4f3dc12d728bb173fc | [
"MIT"
] | null | null | null | genswf.ml | mcheshkov/haxe | d9ac9c2e1429e37790054c4f3dc12d728bb173fc | [
"MIT"
] | null | null | null | (*
* Copyright (C)2005-2013 Haxe Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge,... | 34.005742 | 184 | 0.606132 |
bc8dc94cc248f4c3d1111669f1dfdf8dd217a9e0 | 462 | mli | OCaml | infer/src/pulse/PulseReport.mli | SubratSahai/infer | b57ccc3364239f94f818f3f6b4bc9baf64f3b909 | [
"MIT"
] | 1 | 2021-02-17T06:08:10.000Z | 2021-02-17T06:08:10.000Z | infer/src/pulse/PulseReport.mli | yunjeong-lee/infer | bf87088a35ddf3f73564e4d67583411b710aff01 | [
"MIT"
] | null | null | null | infer/src/pulse/PulseReport.mli | yunjeong-lee/infer | bf87088a35ddf3f73564e4d67583411b710aff01 | [
"MIT"
] | 1 | 2021-01-29T07:48:02.000Z | 2021-01-29T07:48:02.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
open PulseBasicInterface
open PulseDomainInterface
type 'a access_result = ('a, Diagnostic.t * AbductiveDomain.t) resul... | 23.1 | 69 | 0.71645 |
bc53002e464b74da8bd4b1bdf14f3f2eb637a033 | 41,593 | mli | OCaml | latex/latex.mli | ppedrot/ocaml-melt | 0e58bb97e2afe2b7cadbaac906481f28cea1932e | [
"BSD-3-Clause"
] | 9 | 2018-04-29T20:53:47.000Z | 2020-06-18T22:28:35.000Z | latex/latex.mli | ppedrot/ocaml-melt | 0e58bb97e2afe2b7cadbaac906481f28cea1932e | [
"BSD-3-Clause"
] | 2 | 2019-10-18T17:04:49.000Z | 2020-02-24T12:09:56.000Z | latex/latex.mli | ppedrot/ocaml-melt | 0e58bb97e2afe2b7cadbaac906481f28cea1932e | [
"BSD-3-Clause"
] | 1 | 2019-10-18T16:49:29.000Z | 2019-10-18T16:49:29.000Z | (**************************************************************************)
(* Copyright (c) 2009, Romain BARDOU *)
(* All rights reserved. *)
(* *)
(* Redistrib... | 32.698899 | 93 | 0.639146 |
bc3e4f1ca91c52233dc1c305df16be412e933386 | 6,156 | ml | OCaml | test/typed_test/global_infer_test.ml | havr/lefunq | afd61807281964e1d0f51fc49516e14041a85c76 | [
"Apache-2.0"
] | 2 | 2021-07-16T12:54:55.000Z | 2021-07-17T17:32:44.000Z | test/typed_test/global_infer_test.ml | havr/lefunq | afd61807281964e1d0f51fc49516e14041a85c76 | [
"Apache-2.0"
] | null | null | null | test/typed_test/global_infer_test.ml | havr/lefunq | afd61807281964e1d0f51fc49516e14041a85c76 | [
"Apache-2.0"
] | null | null | null | open Base
open Typed
open Common
let module_of code =
match Ast.of_string ~file:"" code with
| Error e ->
Alcotest.fail (Common.Err.to_string e); (* TODO: proper error string *)
| Ok stmts ->
Typed.Infer_toplevel.root ~builtin: (Map.empty(module String)) ~source: "" ~resolve_source: (fun ... | 31.569231 | 134 | 0.559454 |
44d491d6d0ff094ae811e7ec665874ba6e450a48 | 2,559 | ml | OCaml | src/commands/shellCompleteCommand.ml | thejameskyle/flow | 3625decef79f5799d054f73f59970e1303278322 | [
"BSD-3-Clause"
] | 10 | 2016-07-28T20:02:37.000Z | 2021-01-28T05:48:11.000Z | src/commands/shellCompleteCommand.ml | jeffmo/flow | 315903b8a276aad1eb954c0aa5f175a286ce0324 | [
"BSD-3-Clause"
] | null | null | null | src/commands/shellCompleteCommand.ml | jeffmo/flow | 315903b8a276aad1eb954c0aa5f175a286ce0324 | [
"BSD-3-Clause"
] | 5 | 2017-02-06T11:42:23.000Z | 2021-01-11T12:10:08.000Z | (**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open ... | 30.464286 | 80 | 0.584603 |
bcbecd215a95156ac5fe3f423f72f9216a668f97 | 1,883 | ml | OCaml | infer/src/checkers/accessPathDomains.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 4 | 2021-11-19T02:07:46.000Z | 2022-03-24T06:03:50.000Z | infer/src/checkers/accessPathDomains.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 1 | 2021-04-05T15:19:58.000Z | 2021-12-16T04:22:26.000Z | infer/src/checkers/accessPathDomains.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module Set = struct
module APSet = PrettyPrintable.MakePPSet (AccessPath.Abs)
(** TODO (12086310): best-case behavior of... | 26.521127 | 99 | 0.644185 |
bc980e2973d464c31f1860acdec6deda1dfde037 | 5,485 | ml | OCaml | infer/src/backend/SyntacticCallGraph.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | infer/src/backend/SyntacticCallGraph.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | infer/src/backend/SyntacticCallGraph.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"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 L = Logging
let iter_captured_procs_and_callees f =
let db = ResultsDatabase.get_database () in
(* only load ... | 37.060811 | 100 | 0.701003 |
bccc17c2136454cfd8b9cd08e9aa38bf43c8bc06 | 2,177 | mli | OCaml | filename_unix/src/filename_unix.mli | 1Crazymoney/core | 3234ee559d13cab14eeafa455fdc92bec187c618 | [
"MIT"
] | 1 | 2021-06-16T20:02:37.000Z | 2021-06-16T20:02:37.000Z | filename_unix/src/filename_unix.mli | 1Crazymoney/core | 3234ee559d13cab14eeafa455fdc92bec187c618 | [
"MIT"
] | null | null | null | filename_unix/src/filename_unix.mli | 1Crazymoney/core | 3234ee559d13cab14eeafa455fdc92bec187c618 | [
"MIT"
] | null | null | null | (** Warning! this library assumes we are in a POSIX compliant OS. *)
open! Core
open! Import
(** [realpath path] @return the canonicalized absolute pathname of [path].
@raise Unix_error on errors. *)
val realpath : string -> string
(** Same as {!temp_file}, but returns both the name of a fresh
temporary file... | 41.865385 | 90 | 0.713367 |
bc4a7f3302b8064f4dd632ba1ee04a5b7f74a253 | 214 | mli | OCaml | libraries/route53/lib/deleteTrafficPolicyInstance.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/route53/lib/deleteTrafficPolicyInstance.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/route53/lib/deleteTrafficPolicyInstance.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = DeleteTrafficPolicyInstanceRequest.t
type output = unit
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 30.571429 | 74 | 0.747664 |
bc5197b145e05830f5b5f40a9974847da2983495 | 2,130 | ml | OCaml | src/model/error.ml | avsm/odoc | 61ac0c9532ee6bb372dfd6643d73b13155f02953 | [
"ISC"
] | null | null | null | src/model/error.ml | avsm/odoc | 61ac0c9532ee6bb372dfd6643d73b13155f02953 | [
"ISC"
] | null | null | null | src/model/error.ml | avsm/odoc | 61ac0c9532ee6bb372dfd6643d73b13155f02953 | [
"ISC"
] | null | null | null | open Result
type full_location_payload = {
location : Location_.span;
message : string;
}
type filename_only_payload = {
file : string;
message : string;
}
type t = [
| `With_full_location of full_location_payload
| `With_filename_only of filename_only_payload
]
let full message location =
`With_ful... | 23.406593 | 79 | 0.689671 |
bc1decf0e50efb04ad998ed9ef945719c5c3ded5 | 1,319 | ml | OCaml | iperf_udp_server/config.ml | hannesm/mirage_iperf | 4e3ce248dd081e8d9915025c547602974f908ad3 | [
"ISC"
] | null | null | null | iperf_udp_server/config.ml | hannesm/mirage_iperf | 4e3ce248dd081e8d9915025c547602974f908ad3 | [
"ISC"
] | null | null | null | iperf_udp_server/config.ml | hannesm/mirage_iperf | 4e3ce248dd081e8d9915025c547602974f908ad3 | [
"ISC"
] | null | null | null | (*
* Copyright (c) 2011 Richard Mortier <mort@cantab.net>
* Copyright (c) 2012 Balraj Singh <balraj.singh@cl.cam.ac.uk>
* Copyright (c) 2015 Magnus Skjegstad <magnus@skjegstad.com>
* Copyright (c) 2017 Takayuki Imada <takayuki.imada@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for ... | 34.710526 | 75 | 0.732373 |
bcccb9efaf2ad34df677b669b99f1a11622d8a2d | 33,085 | ml | OCaml | source/server/query.ml | ddainesefb/pyre-check | dedd67493f4334b6b5bf446260ed364b35b4a6aa | [
"MIT"
] | null | null | null | source/server/query.ml | ddainesefb/pyre-check | dedd67493f4334b6b5bf446260ed364b35b4a6aa | [
"MIT"
] | null | null | null | source/server/query.ml | ddainesefb/pyre-check | dedd67493f4334b6b5bf446260ed364b35b4a6aa | [
"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 Core
open Ast
open Analysis
open Pyre
exception InvalidQuery of string
exception IncorrectParameters of Type.t
module Reque... | 40.396825 | 100 | 0.611878 |
bc7f4479bcf3261d5fd528070b7c83c5c3ea1884 | 286 | ml | OCaml | 05_struktury_danych/srednica/rozwiazanie1.ml | Laplasjan107/WPF-cwiczenia | 1cf43f6c9b3ac3a44827dd0dd7426494536d084a | [
"CC0-1.0"
] | 2 | 2020-10-27T11:37:55.000Z | 2021-11-09T13:03:16.000Z | 05_struktury_danych/srednica/rozwiazanie1.ml | Laplasjan107/WPF-cwiczenia | 1cf43f6c9b3ac3a44827dd0dd7426494536d084a | [
"CC0-1.0"
] | 3 | 2020-11-14T16:13:02.000Z | 2021-01-19T17:29:45.000Z | 05_struktury_danych/srednica/rozwiazanie1.ml | Laplasjan107/WPF-cwiczenia | 1cf43f6c9b3ac3a44827dd0dd7426494536d084a | [
"CC0-1.0"
] | 5 | 2020-01-08T12:05:15.000Z | 2020-12-30T20:51:14.000Z | type tree = Node of tree * tree | Null;;
let srednica t =
let rec pom = function
| Null -> (0, 0)
| Node (l, r) ->
let (lm, ld) = pom l
and (rm, rd) = pom r in
(max (max lm rm) (ld + rd + 2), max ld rd + 1) in
fst (pom t);;
| 26 | 61 | 0.43007 |
bcb583e3b95ced7ecc4b8fc93308d5e348a2a218 | 2,449 | ml | OCaml | lib/int_wrapper.ml | mor1/ocaml-stdint | b11ef119ca07838dcaddb8be5415b013816851f6 | [
"MIT"
] | null | null | null | lib/int_wrapper.ml | mor1/ocaml-stdint | b11ef119ca07838dcaddb8be5415b013816851f6 | [
"MIT"
] | null | null | null | lib/int_wrapper.ml | mor1/ocaml-stdint | b11ef119ca07838dcaddb8be5415b013816851f6 | [
"MIT"
] | null | null | null | module type Size = sig
val bits : int
end
module type S = sig
type t = int
val bits : int
val add : t -> t -> t
val sub : t -> t -> t
val mul : t -> t -> t
val div : t -> t -> t
val rem : t -> t -> t
val logand : t -> t -> t
val logor : t -> t -> t
val logxor : t -> t -> t
val shift_left : t ->... | 23.32381 | 60 | 0.56962 |
bccd14b1a1a8cf9d18965ff7f3b18600c9420ac9 | 215 | ml | OCaml | benchmarks/C/mem/sol28.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/mem/sol28.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/mem/sol28.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type btree =
| Empty
| Node of int * btree * btree
let rec mem : int -> btree -> bool
= fun n tree -> (* TODO *)
match tree with
| Empty -> false
| Node(m,t1,t2) -> if m=n then true else
mem n t1 || mem n t2 | 21.5 | 40 | 0.586047 |
bc139621326b74aba0f9c0eb12c07ebd0d8b9a0d | 5,770 | mli | OCaml | infer/src/pulse/PulseAbductiveDomain.mli | tahmidbintaslim/infer | 1d2f00faea9523a1bed93085a800063e88f09482 | [
"MIT"
] | null | null | null | infer/src/pulse/PulseAbductiveDomain.mli | tahmidbintaslim/infer | 1d2f00faea9523a1bed93085a800063e88f09482 | [
"MIT"
] | 8 | 2021-05-12T00:06:23.000Z | 2022-02-27T11:21:00.000Z | infer/src/pulse/PulseAbductiveDomain.mli | tahmidbintaslim/infer | 1d2f00faea9523a1bed93085a800063e88f09482 | [
"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
open PulseBasicInterface
module BaseAddressAttributes = PulseBaseAddressAttributes
module BaseDomain =... | 36.0625 | 103 | 0.700867 |
bc99ec6aa9454ea4cfc9b31856252fe6bedb169f | 316 | ml | OCaml | Metl/READER.ml | Drakken/Metl | 35a6af57a73b14d77ddf57b8cf3a70e830edb607 | [
"MIT"
] | 2 | 2015-11-05T07:59:27.000Z | 2019-11-04T07:14:54.000Z | Metl/READER.ml | Drakken/Metl | 35a6af57a73b14d77ddf57b8cf3a70e830edb607 | [
"MIT"
] | null | null | null | Metl/READER.ml | Drakken/Metl | 35a6af57a73b14d77ddf57b8cf3a70e830edb607 | [
"MIT"
] | 1 | 2019-11-04T07:15:04.000Z | 2019-11-04T07:15:04.000Z | (*
* Copyright 2012 Daniel S. Bensen
* See LICENSE for details.
*)
open Camlp4.PreCast
type expr = Ast.expr
module Entry = Gram.Entry
module type T = sig
type pst
val parser_expr: Ast.patt -> pst -> expr -> expr -> expr
val next: Loc.t -> expr
val eoi: Loc.t -> expr
val parsr: pst Entry.t
end
| 16.631579 | 58 | 0.64557 |
44c9c0dbcd852288e675d84bae91a95b07eccae2 | 18,291 | ml | OCaml | sandbox/lexerGraph.ml | cherosene/ctl_logic | c10848f5f1236db25c8d084ecd40b7df830e9686 | [
"MIT"
] | null | null | null | sandbox/lexerGraph.ml | cherosene/ctl_logic | c10848f5f1236db25c8d084ecd40b7df830e9686 | [
"MIT"
] | null | null | null | sandbox/lexerGraph.ml | cherosene/ctl_logic | c10848f5f1236db25c8d084ecd40b7df830e9686 | [
"MIT"
] | 1 | 2021-01-26T15:29:23.000Z | 2021-01-26T15:29:23.000Z | # 1 "lexerGraph.mll"
open ParserGraph (* The type token is defined in parser.mli *)
# 6 "lexerGraph.ml"
let __ocaml_lex_tables = {
Lexing.lex_base =
"\000\000\078\000\153\000\243\255\163\000\000\000\246\255\247\255\
\248\255\249\255\250\255\251\255\252\255\253\255\254\255\255\255\
\245\255\238\... | 52.864162 | 105 | 0.666284 |
bc84f83738c7746f3c8051966af5c8305b678549 | 2,143 | ml | OCaml | example/sexp_with_text.ml | idkjs/async | 7e71341ab2b962c56b98f293a3bec6098eafd1b0 | [
"MIT"
] | 164 | 2015-02-05T05:53:03.000Z | 2022-02-28T02:38:59.000Z | example/sexp_with_text.ml | webclinic017/async | 066d69e210e1269ef5055829dfbb99c0d21acc9c | [
"MIT"
] | 15 | 2015-08-07T09:53:35.000Z | 2022-03-01T16:55:34.000Z | example/sexp_with_text.ml | webclinic017/async | 066d69e210e1269ef5055829dfbb99c0d21acc9c | [
"MIT"
] | 15 | 2015-04-23T20:46:18.000Z | 2021-12-17T02:53:42.000Z | open Core
open Async
module Data = struct
type t = (int * string) list [@@deriving sexp]
end
type t = Data.t Sexp.With_text.t String.Map.t [@@deriving sexp]
let edit_file (type a) (module A : Sexpable with type t = a) filename =
let editor =
match Sys.getenv "EDITOR" with
| Some x -> x
| None -> "ema... | 27.126582 | 84 | 0.568362 |
bcd3eaac2d009c49a396e1e69a5b4ab9410facda | 14,317 | ml | OCaml | hphp/hack/src/hhbc/typed_value.ml | thekid/hhvm | 3f7d3bdde3cbab3b90dd0f156ae56445738432b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/typed_value.ml | thekid/hhvm | 3f7d3bdde3cbab3b90dd0f156ae56445738432b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/typed_value.ml | thekid/hhvm | 3f7d3bdde3cbab3b90dd0f156ae56445738432b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2017, 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 SU = Hh... | 31.535242 | 102 | 0.627226 |
448fe9fb58e41a3935129fd8e6e6c2bf40c9f889 | 2,443 | ml | OCaml | lib/PCSat/bf_synthesis/DT_BFSynthesizer.ml | fahadnayyar/coar | 231ff92d5ce493922c66ec6beaa50c47bedc7295 | [
"Apache-2.0"
] | 5 | 2021-05-01T05:32:32.000Z | 2021-12-18T08:57:13.000Z | lib/PCSat/bf_synthesis/DT_BFSynthesizer.ml | fahadnayyar/coar | 231ff92d5ce493922c66ec6beaa50c47bedc7295 | [
"Apache-2.0"
] | null | null | null | lib/PCSat/bf_synthesis/DT_BFSynthesizer.ml | fahadnayyar/coar | 231ff92d5ce493922c66ec6beaa50c47bedc7295 | [
"Apache-2.0"
] | 1 | 2021-08-04T22:48:55.000Z | 2021-08-04T22:48:55.000Z | open Core
open Common.Util
open Ast
open PCSatCommon
module Config = struct
type t = { verbose: bool } [@@deriving yojson]
module type ConfigType = sig val config: t end
end
module Make (Cfg: Config.ConfigType) = struct
type dtree = Leaf of bool | Node of PropLogic.Formula.t * dtree * dtree
let entropy (d: T... | 35.926471 | 83 | 0.654114 |
8a900f507babcfee7ec7cbcefc9de06e4f801d15 | 3,499 | ml | OCaml | herd/X86_64Arch_herd.ml | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | null | null | null | herd/X86_64Arch_herd.ml | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | 4 | 2021-06-29T09:31:26.000Z | 2021-07-02T15:26:56.000Z | herd/X86_64Arch_herd.ml | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 35.343434 | 109 | 0.502143 |
44ded8964c25133389b04541009dbb1240aa8be6 | 416 | ml | OCaml | tests/benchmarks_call/r_type/first/mc91_99.ml | LinerSu/DART_IT | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 7 | 2020-06-12T09:32:16.000Z | 2020-10-05T09:04:07.000Z | tests/benchmarks_call/r_type/first/mc91_99.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | null | null | null | tests/benchmarks_call/r_type/first/mc91_99.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 2 | 2021-04-05T12:25:11.000Z | 2021-05-14T09:31:24.000Z |
(*
Res: OCaml -> 91
imprecision: Oct: 91 <= v <= 101
Liquid Haskell: false by property {-@ m :: x:Int -> {b:Int | (b == 91)} @-}
*)
let rec m x =
if x > 100
then x - 10
else m (m (x + 11))
let main_p (n:int) =
if n <= 99
then assert (m n = 91)
else ()
let main (w:unit) =
let _ = main_p 1 in
(* le... | 16 | 75 | 0.504808 |
bca5ed61ce58b62179b0d83ffdfb359e7404a807 | 104,645 | ml | OCaml | src/ocaml-output/FStar_Options.ml | landonf/FStar | c901c4975242c0f427102f18f3344be613e657b3 | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_Options.ml | landonf/FStar | c901c4975242c0f427102f18f3344be613e657b3 | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_Options.ml | landonf/FStar | c901c4975242c0f427102f18f3344be613e657b3 | [
"Apache-2.0"
] | null | null | null | open Prims
let (debug_embedding : Prims.bool FStar_ST.ref) = FStar_Util.mk_ref false
let (eager_embedding : Prims.bool FStar_ST.ref) = FStar_Util.mk_ref false
type debug_level_t =
| Low
| Medium
| High
| Extreme
| Other of Prims.string
let (uu___is_Low : debug_level_t -> Prims.bool) =
fun projectee -> ... | 47.393569 | 704 | 0.659162 |
8abdfba15cb9367eb2b468d4279a326bb05e6603 | 2,613 | ml | OCaml | src/git-mirage/git_mirage_happy_eyeballs.ml | dra27/ocaml-git | 36dc0aa323968e2459e5e6137e2f98c2c09f4d74 | [
"ISC"
] | 329 | 2015-01-11T02:00:34.000Z | 2022-03-31T03:38:02.000Z | src/git-mirage/git_mirage_happy_eyeballs.ml | dra27/ocaml-git | 36dc0aa323968e2459e5e6137e2f98c2c09f4d74 | [
"ISC"
] | 328 | 2015-01-05T17:20:47.000Z | 2022-03-17T12:29:51.000Z | src/git-mirage/git_mirage_happy_eyeballs.ml | dra27/ocaml-git | 36dc0aa323968e2459e5e6137e2f98c2c09f4d74 | [
"ISC"
] | 66 | 2015-01-16T21:53:49.000Z | 2022-03-19T07:55:46.000Z | module type S = sig
type t
type flow
val happy_eyeballs : t Mimic.value
val resolve :
t ->
string ->
int list ->
((Ipaddr.t * int) * flow, [ `Msg of string ]) result Lwt.t
end
module Make
(Random : Mirage_random.S)
(Time : Mirage_time.S)
(Mclock : Mirage_clock.MCLOCK)
(Pclock ... | 23.330357 | 72 | 0.588213 |
bc9c37feb329298b43405a0dacea2feac6b8ae56 | 664 | mli | OCaml | src/info.mli | pascutto/why3gospel | 2a04d534ed271c2114e137c8db43f63629672d20 | [
"MIT"
] | null | null | null | src/info.mli | pascutto/why3gospel | 2a04d534ed271c2114e137c8db43f63629672d20 | [
"MIT"
] | null | null | null | src/info.mli | pascutto/why3gospel | 2a04d534ed271c2114e137c8db43f63629672d20 | [
"MIT"
] | null | null | null | open Gospel
open Tterm
open Ttypes
type path = string list
val reduce_path : path -> path -> path
module Hls : Hashtbl.S with type key = lsymbol
module Hts : Hashtbl.S with type key = tysymbol
module Hxs : Hashtbl.S with type key = xsymbol
type info = private {
info_ls : path Hls.t;
info_ts : path Hts.t;
... | 21.419355 | 47 | 0.671687 |
bc401369815d5c4eadaab16de97fc96b4e115a5b | 4,443 | ml | OCaml | external/fixpoint/toLatex.ml | gridaphobe/liquid-fixpoint | fcca9d786eba38341ac13996bd352d773aa7d37c | [
"BSD-3-Clause"
] | 3 | 2019-11-29T01:33:47.000Z | 2021-05-30T16:40:40.000Z | external/fixpoint/toLatex.ml | gridaphobe/liquid-fixpoint | fcca9d786eba38341ac13996bd352d773aa7d37c | [
"BSD-3-Clause"
] | null | null | null | external/fixpoint/toLatex.ml | gridaphobe/liquid-fixpoint | fcca9d786eba38341ac13996bd352d773aa7d37c | [
"BSD-3-Clause"
] | null | null | null | (* translation of constraints to latex *)
module C = FixConstraint
module Su = Ast.Subst
module Misc = FixMisc open Misc.Ops
(* print linebreak after each connective in constraint *)
let c_linebreak = ref true
let q_mathit = Printf.sprintf "\\mathit{%s}"
let sort_to_latex s = Sort.to_string s |> q_mathit
let symbol... | 28.480769 | 77 | 0.6158 |
bca5a25190eb52bacc4f5663692e27f9fcb1957a | 60,292 | ml | OCaml | src/lib_shell/prevalidator.ml | Vertalo/tezos | f2f76ec444e6c8240e3afbc69a00e00eac249e3f | [
"MIT"
] | null | null | null | src/lib_shell/prevalidator.ml | Vertalo/tezos | f2f76ec444e6c8240e3afbc69a00e00eac249e3f | [
"MIT"
] | 1 | 2021-08-04T17:54:43.000Z | 2021-08-04T17:54:43.000Z | src/lib_shell/prevalidator.ml | Vertalo/tezos | f2f76ec444e6c8240e3afbc69a00e00eac249e3f | [
"MIT"
] | 1 | 2021-08-01T15:56:04.000Z | 2021-08-01T15:56:04.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 39.227066 | 91 | 0.633268 |
bc21cd10e5b8ce47e70cd964295c1e2292b54075 | 1,386 | mli | OCaml | src-http/irmin_http_server.mli | emillon/irmin | a1c7f534b68b966b2e4e98b6d6f791a7269ea309 | [
"0BSD"
] | 2 | 2015-11-16T15:49:16.000Z | 2018-05-16T23:09:46.000Z | src-http/irmin_http_server.mli | emillon/irmin | a1c7f534b68b966b2e4e98b6d6f791a7269ea309 | [
"0BSD"
] | 5 | 2019-02-11T18:28:15.000Z | 2020-11-18T15:25:06.000Z | src-http/irmin_http_server.mli | emillon/irmin | a1c7f534b68b966b2e4e98b6d6f791a7269ea309 | [
"0BSD"
] | 1 | 2019-06-26T08:18:29.000Z | 2019-06-26T08:18:29.000Z | (*
* 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... | 35.538462 | 75 | 0.720058 |
bc2752eb8cf1ba280c6b177031584d81ea88c4e3 | 3,316 | mli | OCaml | src/typing/flow_js.mli | mourner/flow | 8bb9d4ef01786d18b9033f16fb0c6eec21f4b0eb | [
"MIT"
] | 1 | 2019-05-17T11:06:58.000Z | 2019-05-17T11:06:58.000Z | src/typing/flow_js.mli | TrionFlow/flow | c7450137a1b0897c558fff6ed3f06fc46ddf76d3 | [
"MIT"
] | null | null | null | src/typing/flow_js.mli | TrionFlow/flow | c7450137a1b0897c558fff6ed3f06fc46ddf76d3 | [
"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 Reason
(* propagates sources to sinks following a subtype relation *)
val flow: Context.t -> (Type.t * Type.use_t) -> unit
v... | 34.541667 | 115 | 0.674608 |
bc0042f867d96b9a04eee2840449e7264c70a109 | 15,685 | ml | OCaml | src/lib_p2p/p2p_directory.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | src/lib_p2p/p2p_directory.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | src/lib_p2p/p2p_directory.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 34.246725 | 80 | 0.558177 |
bc35ca671fbfe3f8a952760b3c31e2da2f439112 | 11,780 | ml | OCaml | src/smtlibprover.ml | simon-i1-h/verifast | 9919ade5b755dced6db0154e27830bf400ce1c37 | [
"MIT"
] | 272 | 2016-01-28T16:01:28.000Z | 2022-03-10T11:53:19.000Z | src/smtlibprover.ml | simon-i1-h/verifast | 9919ade5b755dced6db0154e27830bf400ce1c37 | [
"MIT"
] | 207 | 2016-01-28T16:03:17.000Z | 2022-03-11T14:38:58.000Z | src/smtlibprover.ml | simon-i1-h/verifast | 9919ade5b755dced6db0154e27830bf400ce1c37 | [
"MIT"
] | 59 | 2016-04-03T17:52:17.000Z | 2022-01-28T11:35:57.000Z | open Proverapi
(* A generic prover using the SMTLib language. Depending on the
parameters input_fun and output, this can be used as either:
- an interface for SMT solvers that have no OCaml binding such as
CVC4; communication with the solver process is done through a
pipe. See the function dump_smt... | 40.62069 | 134 | 0.629202 |
bc87c14b5d5680f090a9d190f8ecedf4bd24cb05 | 591 | ml | OCaml | data/fa15/2860.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/2860.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/2860.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 = fs in let base = 0 in List.fold_left f base fs;;
(* fix
let pipe fs = let f a x = x in let base y = y in List.fold_left f base fs;;
*)
(* changed spans
(2,26)-(2,28)
(2,43)-(2,44)
(2,48)-(2,72)
*)
(* type error slice
(2,14)-(2,72)
(2,20)-(2,28)
(2,22)-(2,28)
(2,26)-(2,28)
(2,32)-(2,72)
... | 13.133333 | 75 | 0.490694 |
bc95c59f9b35904973b2f17012566d59f36a2e0f | 6,541 | ml | OCaml | src/base/maths/owl_maths_root.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | 508 | 2018-03-24T12:15:49.000Z | 2022-03-30T11:37:33.000Z | src/base/maths/owl_maths_root.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | 344 | 2018-03-23T14:01:27.000Z | 2022-03-31T16:14:14.000Z | src/base/maths/owl_maths_root.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | 68 | 2018-03-28T21:34:12.000Z | 2022-01-23T12:15:33.000Z | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
(** Root finding algorithms for nonlinear functions *)
(** type definition *)
type solver =
| Bisec
| FalsePos
| Ridder
| Brent
(* Bisection algorithm *)
let bisec ?(max_iter = 1000) ?... | 25.061303 | 88 | 0.449167 |
bc2dc1a92398ad3022cf68a2d93579e43c9ddc61 | 4,360 | ml | OCaml | src/owl/optimise/owl_regression_generic.ml | pvdhove/owl | 072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31 | [
"MIT"
] | null | null | null | src/owl/optimise/owl_regression_generic.ml | pvdhove/owl | 072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31 | [
"MIT"
] | null | null | null | src/owl/optimise/owl_regression_generic.ml | pvdhove/owl | 072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2018 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
module Make
(Optimise : Owl_optimise_generic_sig.Sig)
= struct
module Optimise = Optimise
open Optimise
open Optimise.Algodiff
(* iterative sovler for linear regression *)
let _... | 32.781955 | 97 | 0.63211 |
bcaa83f5eb82592d33097cf06c3f946dfe759ab0 | 1,104 | ml | OCaml | data/sp14/0368.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/0368.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/0368.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = a ^ (sep ^ x) in
let base = h in let l = t in List.fold_left f base l;;
let stringOfList f l = sepConcat (" " (List.map (f l)));;
(* fix
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = ... | 14.526316 | 60 | 0.468297 |
bc1e5f9a1bca28eda0e41e7544099e1a6535c364 | 1,680 | ml | OCaml | src/dune_lang/atom.ml | jonludlam/dune | d6ca965c0556d9925b1160c471b5f04f9fccd41b | [
"MIT"
] | null | null | null | src/dune_lang/atom.ml | jonludlam/dune | d6ca965c0556d9925b1160c471b5f04f9fccd41b | [
"MIT"
] | null | null | null | src/dune_lang/atom.ml | jonludlam/dune | d6ca965c0556d9925b1160c471b5f04f9fccd41b | [
"MIT"
] | null | null | null | open Stdune
type t = A of string [@@unboxed]
let invalid_argf fmt = Printf.ksprintf invalid_arg fmt
let is_valid_dune =
let rec loop s i len =
i = len ||
match String.unsafe_get s i with
| '%' -> after_percent s (i + 1) len
| '"' | '(' | ')' | ';' | '\000'..'\032' | '\127'..'\255' -> false
| _ ... | 28.965517 | 77 | 0.552381 |
bcd2cac7d060938e7efc91a0a3e79635011a7efb | 1,026 | mli | OCaml | libraries/elasticache/lib/deleteSnapshot.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/elasticache/lib/deleteSnapshot.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/elasticache/lib/deleteSnapshot.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<p>Deletes an existing snapshot. When you receive a successful response from this operation, ElastiCache immediately begins deleting the snapshot; you cannot cancel or revert this operation.</p> <note> <p>This operation is valid for Redis only.</p> </note>" *)
open Types[@@ocaml.warning "-33"]
open Aws.BaseTypes[@... | 46.636364 | 265 | 0.701754 |
bc41fed407b4259f3206a9fd6aa7bd4a6c9d4835 | 19,558 | ml | OCaml | examples/basicmagazine/vs.ml | ytomino/terminal-ocaml | e04d48851ed93a970dd4db5ce244dea82ec44a02 | [
"FSFAP"
] | 6 | 2015-03-23T08:17:34.000Z | 2021-07-26T01:19:47.000Z | examples/basicmagazine/vs.ml | ytomino/terminal-ocaml | e04d48851ed93a970dd4db5ce244dea82ec44a02 | [
"FSFAP"
] | null | null | null | examples/basicmagazine/vs.ml | ytomino/terminal-ocaml | e04d48851ed93a970dd4db5ce244dea82ec44a02 | [
"FSFAP"
] | null | null | null | (*
100 ' VS (ヴァーサス) STAGE 1 (C) 1993.02.03 VIC MAN Origianl
110 '
1000 ' INIT 1
1010 WIDTH 40,25:CONSOLE 0,25,0,1,1:CLS
1020 BS$=CHR$(&H1F)+CHR$(&H1D)
1030 PB$(1)="█"
1040 PB$(3)="█"+BS$+"█"+BS$+"█"
1050 PB$(5)="█"+BS$+"█"+BS$+"█"+BS$+"█"+BS$+"█"
1060 PB$(7)="█"+BS$+"█"+BS$+"█"+BS$... | 33.318569 | 109 | 0.486706 |
bc0b756cc3f53b1c01046003d402e7429f0ba38b | 4,694 | ml | OCaml | src/lib/semantic.ml | brunohiad/bcc328.2020.1 | feb64743de5ebb716d255e8dd4da5b364d63514e | [
"MIT"
] | null | null | null | src/lib/semantic.ml | brunohiad/bcc328.2020.1 | feb64743de5ebb716d255e8dd4da5b364d63514e | [
"MIT"
] | null | null | null | src/lib/semantic.ml | brunohiad/bcc328.2020.1 | feb64743de5ebb716d255e8dd4da5b364d63514e | [
"MIT"
] | null | null | null | open Absyn
let convertr (_, y) = y
let convertl (x, _) = x
let get_typeId (type_, id) =
match type_ with
| Absyn.Int -> (id, Absyn.Int)
| Absyn.Bool -> (id, Absyn.Bool)
let rec get_typeIds typeIds =
match typeIds with
| [typeId] ->
let (x, t) = get_typeId (typeId) in [t]
| typeId :: rest ->
... | 31.293333 | 102 | 0.617384 |
bccc5e13281266287fce68a791c35ec95a465915 | 807 | mli | OCaml | src/hack_forked/utils/http_lite/http_lite.mli | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2020-06-21T01:14:46.000Z | 2020-06-21T01:14:46.000Z | src/hack_forked/utils/http_lite/http_lite.mli | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 17 | 2020-10-12T16:16:07.000Z | 2021-08-07T04:38:39.000Z | src/hack_forked/utils/http_lite/http_lite.mli | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2021-01-06T10:57:53.000Z | 2021-01-06T10:57:53.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(* This `.mli` file was generated automatically. It may include extra
definitions that should not actually be exposed to the caller... | 32.28 | 76 | 0.768278 |
bca870bdaf5f6b5e22d4ea48e2c0b5386521cfe3 | 258 | ml | OCaml | src/ocaml/mirage-icecap/lib/OS.ml | veracruz-project/icecap | 905e9d6226b7fa9964f7ee868b84d3d3ab31d564 | [
"MIT"
] | null | null | null | src/ocaml/mirage-icecap/lib/OS.ml | veracruz-project/icecap | 905e9d6226b7fa9964f7ee868b84d3d3ab31d564 | [
"MIT"
] | null | null | null | src/ocaml/mirage-icecap/lib/OS.ml | veracruz-project/icecap | 905e9d6226b7fa9964f7ee868b84d3d3ab31d564 | [
"MIT"
] | null | null | null | module STACK = Os_icecap.Stack.STACK
module Icecap = Os_icecap.Icecap
type config = Os_icecap.Stack.config
let create = Os_icecap.Stack.create
let sleep_ns = Os_icecap.Time.sleep_ns
let run = Os_icecap.Loop.run
(* debug *)
let wfe = Os_icecap.Icecap.wfe
| 19.846154 | 38 | 0.771318 |
afbff3dbbd9d54947f21530c3b75ba3f5ebe7f8c | 5,503 | ml | OCaml | src/irmin-server/server.ml | mirage/irmin-server | b59b79674e50bff629a18853ca7514a04d53a09c | [
"0BSD"
] | 3 | 2021-10-29T20:36:04.000Z | 2021-12-13T02:13:52.000Z | src/irmin-server/server.ml | mirage/irmin-server | b59b79674e50bff629a18853ca7514a04d53a09c | [
"0BSD"
] | 6 | 2021-08-05T00:26:35.000Z | 2022-03-18T18:54:34.000Z | src/irmin-server/server.ml | mirage/irmin-server | b59b79674e50bff629a18853ca7514a04d53a09c | [
"0BSD"
] | 4 | 2021-08-05T00:15:05.000Z | 2022-03-02T14:19:23.000Z | open Lwt.Syntax
open Lwt.Infix
open Irmin_server_types
include Server_intf
module Make (X : Command.S) = struct
module Command = X
module Store = X.Store
module Conn = Command.Conn
type t = {
ctx : Conduit_lwt_unix.ctx;
uri : Uri.t;
server : Conduit_lwt_unix.server;
config : Irmin.config;
... | 32.370588 | 75 | 0.552244 |
bc68e2f5ddb5731bfafdb88e55f198e6b7fd022d | 8,751 | ml | OCaml | lib/frame.ml | pm-mck/ocaml-h2 | e5a769ff25abf9ccdf96b6e06432e847fe9b6495 | [
"BSD-3-Clause"
] | null | null | null | lib/frame.ml | pm-mck/ocaml-h2 | e5a769ff25abf9ccdf96b6e06432e847fe9b6495 | [
"BSD-3-Clause"
] | null | null | null | lib/frame.ml | pm-mck/ocaml-h2 | e5a769ff25abf9ccdf96b6e06432e847fe9b6495 | [
"BSD-3-Clause"
] | null | null | null | (*----------------------------------------------------------------------------
* Copyright (c) 2019 António Nuno Monteiro
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redi... | 36.615063 | 79 | 0.63707 |
44f8a035dd594a32dff205ed0a712a4621ee969f | 3,431 | ml | OCaml | src/lib_lwt_result_stdlib/bare/structs/withExceptions.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/lib_lwt_result_stdlib/bare/structs/withExceptions.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/lib_lwt_result_stdlib/bare/structs/withExceptions.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs <contact@nomadic-labs.com> *)
... | 40.845238 | 79 | 0.494899 |
bc6aa7e5ce3ade23feb0adfd1c4ddf51fde7de1b | 664 | ml | OCaml | result/fixml/lambda/sub115/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/lambda/sub115/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/lambda/sub115/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type lambda = V of var | P of (var * lambda) | C of (lambda * lambda)
and var = string
let rec str lambda =
match lambda with
| V a -> []
| P (a, e1) -> a :: str e1
| C (e1, e2) -> str e1 @ str e2
let rec v_str lambda =
match lambda with
| V a -> [ a ]
| P (a, e1) -> v_str e1
| C (e1, e2) -> v_str e... | 20.75 | 78 | 0.575301 |
bcd1e5316a1243fd27f05d532cb9dde1725fb197 | 308 | ml | OCaml | otherlibs/action-plugin/test/depends-on-directory-with-glob/bin/foo.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | otherlibs/action-plugin/test/depends-on-directory-with-glob/bin/foo.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | otherlibs/action-plugin/test/depends-on-directory-with-glob/bin/foo.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | open Dune_action_plugin.V1
module Glob = Dune_glob.V1
let action =
let open Dune_action_plugin.V1.O in
let glob = Glob.of_string "some_file*" in
let+ listing =
read_directory_with_glob ~path:(Path.of_string "some_dir") ~glob
in
String.concat "\n" listing |> print_endline
let () = run action
| 23.692308 | 68 | 0.730519 |
bcd33ddce1288b5abc069c88c0d0af48b09709c2 | 3,566 | ml | OCaml | src/test/testAdsenseV1_1Model.ml | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | null | null | null | src/test/testAdsenseV1_1Model.ml | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | null | null | null | src/test/testAdsenseV1_1Model.ml | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | null | null | null | open OUnit
open GapiAdsenseV1_1Model
open GapiLens.Infix
open GapiUtils.Infix
let test_parse_accounts () =
let accounts_json =
Yojson.Safe.from_file "test_data/test_adsense_accounts.json" in
let tree = GapiJson.json_to_data_model accounts_json in
let accounts = Accounts.of_data_model tree in
let tree' = Ac... | 32.418182 | 73 | 0.753505 |
8a4ede15c1d329988f4558e527a4f6703ef71974 | 2,364 | ml | OCaml | 1st/core/src/raytracer/globals.ml | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | null | null | null | 1st/core/src/raytracer/globals.ml | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | null | null | null | 1st/core/src/raytracer/globals.ml | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | 3 | 2020-10-08T04:16:58.000Z | 2021-10-11T13:19:30.000Z | (**************** グローバル変数の宣言 ****************)
(* オブジェクトの個数 *)
let n_objects = create_array 1 0 in
(* オブジェクトのデータを入れるベクトル(最大60個)*)
let objects =
let dummy = create_array 0 0.0 in
create_array 60 (0, 0, 0, 0, dummy, dummy, false, dummy, dummy, dummy, dummy) in
(* Screen の中心座標 *)
let screen = create_array 3 0.0 in... | 26.561798 | 82 | 0.701777 |
bcd8df941ceae98fe81e75bad8a7b15568642908 | 3,301 | ml | OCaml | vendor/base/src/buffer_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/base/src/buffer_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 4 | 2021-05-18T10:06:59.000Z | 2021-10-21T05:48:27.000Z | vendor/base/src/buffer_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open! Import
module type S = sig
(** The abstract type of buffers. *)
type t [@@deriving_inline sexp_of]
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
[@@@end]
(** [create n] returns a fresh buffer, initially empty. The [n] parameter is the
initial size of the internal storage medium that holds the... | 39.771084 | 90 | 0.667676 |
bccb6f2c3aec899c4f9e1b8dfe7aa5042666a020 | 2,762 | ml | OCaml | lib/preface_stdlib/list.ml | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 109 | 2021-04-08T18:41:14.000Z | 2022-03-26T10:28:45.000Z | lib/preface_stdlib/list.ml | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 35 | 2021-04-10T06:28:02.000Z | 2022-01-31T10:43:36.000Z | lib/preface_stdlib/list.ml | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 3 | 2021-05-07T21:53:35.000Z | 2021-08-28T12:28:12.000Z | type 'a t = 'a list
let pure x = [ x ]
module Foldable = Preface_make.Foldable.Via_fold_right (struct
type nonrec 'a t = 'a t
let fold_right f x acc = Stdlib.List.fold_right f x acc
end)
module Functor = Preface_make.Functor.Via_map (struct
type nonrec 'a t = 'a t
let map = Stdlib.List.map
end)
module Alt... | 22.455285 | 75 | 0.618755 |
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.