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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
af8c35202f41195781b1cda86ac75082121d5a90 | 25,065 | ml | OCaml | hphp/hack/src/utils/pos.ml | jsoref/hhvm | 2bd80a8909496b70cac45bb6b28b5d662176477f | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/pos.ml | jsoref/hhvm | 2bd80a8909496b70cac45bb6b28b5d662176477f | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/pos.ml | jsoref/hhvm | 2bd80a8909496b70cac45bb6b28b5d662176477f | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-01-06T04:58:57.000Z | 2022-01-06T04:58:57.000Z | (** Positions embedded with full position info inside its
* data structure. See "type 'a pos"
*
* Note: This module can only be used with the Lexbuf Pos_source
* module, as it will not compile with other Pos_source modules. So,
* when choosing a different Pos module, you must also choose its
* compatible Pos_sour... | 34.429945 | 90 | 0.682067 |
f3d7a8ad81b534b8c30f13db22e9cf8f8cb91fed | 111,009 | ml | OCaml | src/analyses/base.ml | FeldrinH/analyzer | 5d978c37896d3564bdfe3879c60f989c5c415c92 | [
"MIT"
] | null | null | null | src/analyses/base.ml | FeldrinH/analyzer | 5d978c37896d3564bdfe3879c60f989c5c415c92 | [
"MIT"
] | null | null | null | src/analyses/base.ml | FeldrinH/analyzer | 5d978c37896d3564bdfe3879c60f989c5c415c92 | [
"MIT"
] | null | null | null | (** Value analysis. *)
open Prelude.Ana
open Analyses
open GobConfig
open BaseUtil
module A = Analyses
module H = Hashtbl
module Q = Queries
module GU = Goblintutil
module ID = ValueDomain.ID
module IdxDom = ValueDomain.IndexDomain
module IntSet = SetDomain.Make (IntDomain.Integers)
module AD = ValueDomain.AD
module... | 49.513381 | 288 | 0.59052 |
f3ddd26c9b099e570df756e9bb91a34fc98fe486 | 2,076 | ml | OCaml | lib/deprecated.ml | Leonidas-from-XIV/mdx | 150a534724c26b1d0b4cafbb2ed69f8ec1e46859 | [
"0BSD"
] | 215 | 2018-07-12T14:16:26.000Z | 2022-03-02T21:27:14.000Z | lib/deprecated.ml | Leonidas-from-XIV/mdx | 150a534724c26b1d0b4cafbb2ed69f8ec1e46859 | [
"0BSD"
] | 225 | 2018-07-26T08:15:53.000Z | 2022-03-09T09:12:36.000Z | lib/deprecated.ml | Leonidas-from-XIV/mdx | 150a534724c26b1d0b4cafbb2ed69f8ec1e46859 | [
"0BSD"
] | 33 | 2018-07-12T14:16:32.000Z | 2022-01-23T01:00:58.000Z | (*
* Copyright (c) 2018 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS... | 37.071429 | 79 | 0.686898 |
d2da4ad5dd947f0c6afef13849f8ce830bd5fe64 | 4,539 | ml | OCaml | herd/RISCVArch_herd.ml | herd/herdtools7 | 04f1c0b6c09e8b22de9d5bfbd45ae2b01ce4d375 | [
"CECILL-B"
] | 103 | 2016-11-28T10:00:41.000Z | 2022-03-08T05:06:00.000Z | herd/RISCVArch_herd.ml | herd/herdtools7 | 04f1c0b6c09e8b22de9d5bfbd45ae2b01ce4d375 | [
"CECILL-B"
] | 193 | 2017-02-28T19:04:04.000Z | 2022-03-25T14:33:24.000Z | herd/RISCVArch_herd.ml | herd/herdtools7 | 04f1c0b6c09e8b22de9d5bfbd45ae2b01ce4d375 | [
"CECILL-B"
] | 39 | 2016-12-14T23:10:34.000Z | 2022-03-22T21:35:17.000Z | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 30.463087 | 87 | 0.525887 |
afa1bef05186b5be93bcd92b26375ebf5afcd6d4 | 87 | ml | OCaml | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/lib-dynlink-native/b.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/lib-dynlink-native/b.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/lib-dynlink-native/b.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | let () =
print_endline "B is running";
incr A.x;
Printf.printf "A.x = %i\n" !A.x
| 17.4 | 33 | 0.574713 |
af098ae21bf7c25e2959b3be8d9c7bdae3d115dd | 10,921 | ml | OCaml | lib_test/ounit/test_query.ml | djs55/ocaml-dns | c61ce71fa61296ace7904a4866f0c4b301a2262f | [
"0BSD"
] | null | null | null | lib_test/ounit/test_query.ml | djs55/ocaml-dns | c61ce71fa61296ace7904a4866f0c4b301a2262f | [
"0BSD"
] | null | null | null | lib_test/ounit/test_query.ml | djs55/ocaml-dns | c61ce71fa61296ace7904a4866f0c4b301a2262f | [
"0BSD"
] | null | null | null | [@@@warning "-27"]
open OUnit2
open Dns
open Packet
module Q = Query
let tests =
"Query" >:::
[
"answer-dns" >:: (fun test_ctxt ->
let trie = Test_trie.load_test_zone "test_dns.zone" in
let name = Name.of_string "mail.d1.signpo.st." in
let query =
let detail = {
qr... | 43.50996 | 136 | 0.578976 |
af709becc01230a517db2d01f5a3058565c0988f | 5,848 | ml | OCaml | code/examples/equeue/filecopy_lablgtk/filecopy.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/examples/equeue/filecopy_lablgtk/filecopy.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/examples/equeue/filecopy_lablgtk/filecopy.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | open Unixqueue
(* let _ = Unixqueue.set_debug_mode true;; *)
type copy_state =
{ copy_ues : Unixqueue.event_system;
copy_group : Unixqueue.group;
copy_infd : Unix.file_descr;
copy_outfd : Unix.file_descr;
copy_size : int;
copy_inbuf : string;
copy_outbuf : string;
mutable... | 30.300518 | 79 | 0.658174 |
f3fe5d03477a521b0919cb311c47317e200c2179 | 2,323 | mli | OCaml | source/analysis/astEnvironment.mli | mata14/pyre-check | 0ba391675e6baafbb6beea4f1809095c53f7a97f | [
"MIT"
] | null | null | null | source/analysis/astEnvironment.mli | mata14/pyre-check | 0ba391675e6baafbb6beea4f1809095c53f7a97f | [
"MIT"
] | null | null | null | source/analysis/astEnvironment.mli | mata14/pyre-check | 0ba391675e6baafbb6beea4f1809095c53f7a97f | [
"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 Ast
open Core
open SharedMemoryKeys
type t
module ParserError : sig
type t = {
source_path: SourcePath.t;
is_suppr... | 24.197917 | 96 | 0.69393 |
d2da33be17c6a44108f9ec89c1fb8de8c424943d | 3,149 | ml | OCaml | src/hack_forked/socket/socket.ml | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | 1 | 2020-02-15T06:37:51.000Z | 2020-02-15T06:37:51.000Z | src/hack_forked/socket/socket.ml | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | null | null | null | src/hack_forked/socket/socket.ml | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(* Initializes the unix domain socket *)
let unix_socket sock_name =
try
Sys_utils.with_umask 0o111 (fun () ->
Sys_ut... | 37.047059 | 86 | 0.669101 |
8a3fa4647b8a34ebae9c65261f8fcc5328befc0b | 3,056 | ml | OCaml | server/sentMailLib/commands.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | 5 | 2015-01-30T06:16:32.000Z | 2020-04-14T09:08:49.000Z | server/sentMailLib/commands.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | server/sentMailLib/commands.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | (* © 2014 RunOrg *)
open Std
(* Scheduling e-mail to be sent.
============================= *)
(* Who is allowed to send e-mail ? *)
let send_audience = Audience.admin
let batch_size = 100
let send pid mid gid =
let! allowed = Audience.is_member pid send_audience in
if not allowed then
let! c... | 25.680672 | 91 | 0.578207 |
8a1a1d75ee08c8bf1bfa6287cfe84fdc2dbc7526 | 728 | ml | OCaml | src/stdune/string_split.ml | bobzhang/dune | 5d690c55085c036b72003f89daec5ad273311a9c | [
"MIT"
] | null | null | null | src/stdune/string_split.ml | bobzhang/dune | 5d690c55085c036b72003f89daec5ad273311a9c | [
"MIT"
] | 2 | 2018-01-12T08:41:59.000Z | 2020-12-30T21:57:31.000Z | src/stdune/string_split.ml | bobzhang/dune | 5d690c55085c036b72003f89daec5ad273311a9c | [
"MIT"
] | null | null | null | module List = Dune_caml.ListLabels
module String = Dune_caml.StringLabels
open String
let split_lines s =
let rec loop ~last_is_cr ~acc i j =
if j = length s then (
let acc =
if j = i || (j = i + 1 && last_is_cr) then
acc
else
sub s ~pos:i ~len:(j - i) :: acc
in
... | 26 | 65 | 0.504121 |
8a21a40a3659f9a919bd94b14572cc6d99980387 | 21,250 | ml | OCaml | data/derived/fa15/progs/cnstr/prog3848.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/cnstr/prog3848.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/cnstr/prog3848.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 34.496753 | 195 | 0.6256 |
8a378054b6c395e48c0f19a664ffc82f7deb4636 | 48,193 | ml | OCaml | src/typing/ty_normalizer.ml | jameskraus/flow | a5240d819a3300204a9362e13a32f79d63ec25cd | [
"MIT"
] | null | null | null | src/typing/ty_normalizer.ml | jameskraus/flow | a5240d819a3300204a9362e13a32f79d63ec25cd | [
"MIT"
] | null | null | null | src/typing/ty_normalizer.ml | jameskraus/flow | a5240d819a3300204a9362e13a32f79d63ec25cd | [
"MIT"
] | null | null | null | (**
* 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 Pervasives
open Utils_js
open Reason
module T = Type
module VSet = ISet
(* The type normalizer converts infered types (of type `T... | 35.10051 | 90 | 0.614239 |
af52ddf83010dc52735dd413c2b5d33246b14433 | 7,600 | ml | OCaml | hphp/hack/src/hhas/shared/sharedCollections.ml | escherlat/hhvm | 7814b9842f3d15876884e6e3b62f2d00821c1c17 | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2016-10-07T21:13:50.000Z | 2016-10-07T21:14:16.000Z | hack/hhas/shared/sharedCollections.ml | jeffmo/flow | 315903b8a276aad1eb954c0aa5f175a286ce0324 | [
"BSD-3-Clause"
] | null | null | null | hack/hhas/shared/sharedCollections.ml | jeffmo/flow | 315903b8a276aad1eb954c0aa5f175a286ce0324 | [
"BSD-3-Clause"
] | null | null | null | (*****************************************************************************)
(* Exceptions *)
(*****************************************************************************)
exception Error_name_already_bound of string * Pos.t * Pos.t
exception Error_unbound_name of string * Pos.t
(*********************************... | 30.278884 | 79 | 0.531447 |
afa41ac1db50b67d5c4c730ed5574a5a5b1d6728 | 279 | mli | OCaml | src/rltl/manager.mli | juliansf/rltl2ba | 45456b3ef1faa8f1bd95d20581b17fc6246ff3cd | [
"BSD-3-Clause"
] | 2 | 2015-06-25T19:16:40.000Z | 2017-11-01T15:32:15.000Z | src/rltl/manager.mli | juliansf/rltl2ba | 45456b3ef1faa8f1bd95d20581b17fc6246ff3cd | [
"BSD-3-Clause"
] | null | null | null | src/rltl/manager.mli | juliansf/rltl2ba | 45456b3ef1faa8f1bd95d20581b17fc6246ff3cd | [
"BSD-3-Clause"
] | null | null | null |
type addr = Node.t
type t
val init: unit -> t
val add: t -> Exptree.expression -> addr
val lookup: t -> addr -> Exptree.expression
val apply: (addr -> Exptree.expression -> unit) -> t -> unit
val lastref: t -> addr
val size: t -> int
val clean: ?keep_lastref:bool -> t -> unit
| 23.25 | 60 | 0.65233 |
af7bbbf9d997ab670b7e80c82b3880664603085b | 330 | ml | OCaml | result/cafe2/lambda/sub26/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/lambda/sub26/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/lambda/sub26/patch.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 check (m : lambda) : bool =
let rec checkRec (m : lambda) (s : var list) : bool =
match m with
| V n -> List.mem n s
| P (n, m) -> checkRec m (n :: s)
| C (m1, m2) -> checkRec m1 s && checkRec m2 s
in
chec... | 25.384615 | 69 | 0.545455 |
d2d231fed9763a8dfbf4afac784218d307ae3373 | 1,337 | ml | OCaml | data/sp14/3336.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/3336.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/3336.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec mulByDigit i l =
match List.rev l with
| [] -> []
| h::t ->
(match (mulByDigit i (List.rev (List.map (fun x -> x * 10) t))) @
[h * i]
with
| [] -> []
| h1::t1 -> let rec helper acc v = v = 0 in helper [] h1);;
(* fix
let rec mulByDigit i l =
match List.rev ... | 16.108434 | 79 | 0.44353 |
af854a62548e8512fb5192e6e5e483286cce9a5e | 8,614 | ml | OCaml | data/derived/comb/progs/unify/prog6080.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/prog1218.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1218.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.668731 | 166 | 0.641166 |
af809ef7a4aa144f5d988ba12b9cafedaf5da527 | 730 | ml | OCaml | src/bin/config/discover.ml | argent-smith/rpiterm | 971cc2b72f3670565470589afadf910e9c0ad71a | [
"MIT"
] | 3 | 2017-12-08T18:22:50.000Z | 2021-07-14T15:05:22.000Z | src/bin/config/discover.ml | argent-smith/rpiterm | 971cc2b72f3670565470589afadf910e9c0ad71a | [
"MIT"
] | null | null | null | src/bin/config/discover.ml | argent-smith/rpiterm | 971cc2b72f3670565470589afadf910e9c0ad71a | [
"MIT"
] | 1 | 2020-04-18T14:51:07.000Z | 2020-04-18T14:51:07.000Z | module C = Configurator.V1
let env_var_name = "BUILD_STATIC_BINARY"
let result_file_name = "ocamlopt_flags.sexp"
let standard_flags = ["-O2"]
let static_flags = standard_flags @ ["-ccopt"; "-static"]
let write_standard_flags () =
C.Flags.write_sexp result_file_name standard_flags
let write_static_flags () =
C.Fl... | 30.416667 | 71 | 0.715068 |
f3db8689ed7f1d76ad566647a45bd9250fd09678 | 4,408 | ml | OCaml | lib/dns_service.ml | tsh2/core-network | 8c9243364facafaba84e79a320e05c6839d53a56 | [
"MIT"
] | 5 | 2017-11-17T17:46:29.000Z | 2019-11-26T04:08:00.000Z | lib/dns_service.ml | tsh2/core-network | 8c9243364facafaba84e79a320e05c6839d53a56 | [
"MIT"
] | 4 | 2018-03-12T12:58:53.000Z | 2020-01-10T18:10:32.000Z | lib/dns_service.ml | tsh2/core-network | 8c9243364facafaba84e79a320e05c6839d53a56 | [
"MIT"
] | 6 | 2017-12-12T02:43:10.000Z | 2019-10-25T14:45:07.000Z | open Lwt.Infix
let dns = Logs.Src.create "dns" ~doc:"Dns service"
module Log = (val Logs_lwt.src_log dns : Logs_lwt.LOG)
let pp_ip = Ipaddr.V4.pp_hum
let is_dns_query = let open Frame in function
| Ipv4 { payload = Udp { dst = 53; _ }; _ }
| Ipv4 { payload = Tcp { dst = 53; _ }; _ } -> true
| _ -> false
let i... | 39.711712 | 119 | 0.601407 |
afc6d83cdcee20fe9da7f7748ba872d0fce7fe64 | 57,368 | ml | OCaml | src/typecheck.ml | cmcl/coop | 9e06eb3cbabd48878979df21b6995f1dad775910 | [
"MIT"
] | 79 | 2019-10-25T12:47:55.000Z | 2022-03-20T21:54:08.000Z | src/typecheck.ml | cmcl/coop | 9e06eb3cbabd48878979df21b6995f1dad775910 | [
"MIT"
] | 3 | 2019-10-25T13:46:16.000Z | 2020-04-17T20:01:14.000Z | src/typecheck.ml | cmcl/coop | 9e06eb3cbabd48878979df21b6995f1dad775910 | [
"MIT"
] | 3 | 2020-01-12T23:41:02.000Z | 2020-12-26T10:03:07.000Z | (** Coop type checking. *)
(** Typing context *)
type context =
{ ctx_operations : (Syntax.expr_ty * Syntax.expr_ty * Syntax.exceptions) Name.Map.t
; ctx_signals : Syntax.expr_ty Name.Map.t
; ctx_exceptions : Syntax.expr_ty Name.Map.t
; ctx_idents : (Name.t * Syntax.expr_ty) list
; ctx_aliases : Syntax.expr_... | 34.517449 | 136 | 0.644122 |
f377ae4df0de102106137ea3418844a5f9893937 | 8,062 | ml | OCaml | app/context/pizza/repo.ml | timohuber/sihl-demo | 9edc2608b202825dcecbe1ff16be59583653a22e | [
"MIT"
] | null | null | null | app/context/pizza/repo.ml | timohuber/sihl-demo | 9edc2608b202825dcecbe1ff16be59583653a22e | [
"MIT"
] | null | null | null | app/context/pizza/repo.ml | timohuber/sihl-demo | 9edc2608b202825dcecbe1ff16be59583653a22e | [
"MIT"
] | null | null | null | let clean_pizzas_request =
Caqti_request.exec Caqti_type.unit "TRUNCATE TABLE pizzas CASCADE;"
;;
let clean_ingredients_request =
Caqti_request.exec Caqti_type.unit "TRUNCATE TABLE ingredients CASCADE;"
;;
let clean_pizzas_ingredients_request =
Caqti_request.exec
Caqti_type.unit
"TRUNCATE TABLE pizzas_i... | 27.236486 | 81 | 0.642024 |
af98503e764abc80b59fb9a3e6d6de194cfc3c0f | 1,607 | ml | OCaml | libraries/ec2/lib/createImage.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/ec2/lib/createImage.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/ec2/lib/createImage.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
open Aws
type input = CreateImageRequest.t
type output = CreateImageResult.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 |
8a01e6e03f61ba60d1ad1da77e94525e86b347c7 | 1,084 | ml | OCaml | src/checkUninitFlow1.ml | andersfischernielsen/eba | ceb42493d995120cc266f15fc85c0e07fea3d9b7 | [
"BSD-3-Clause"
] | 16 | 2017-01-30T02:45:41.000Z | 2022-03-14T03:23:04.000Z | src/checkUninitFlow1.ml | andersfischernielsen/eba | ceb42493d995120cc266f15fc85c0e07fea3d9b7 | [
"BSD-3-Clause"
] | 7 | 2018-05-11T08:50:11.000Z | 2020-06-22T09:34:45.000Z | src/checkUninitFlow1.ml | andersfischernielsen/eba | ceb42493d995120cc266f15fc85c0e07fea3d9b7 | [
"BSD-3-Clause"
] | 2 | 2019-04-21T10:30:25.000Z | 2019-09-13T07:37:29.000Z |
open Batteries
open Type
open Abs
open PathTree
open Utils.Option
module L = LazyList
module Spec = struct
type st = Region.t
type bug = Region.t
let name = "Flow-1 use-before-initialization local-variable checker"
let bug_of_st r = r
let doc_of_bug r =
PP.(!^ "Use before initialization" ++ parens(Regio... | 21.68 | 69 | 0.704797 |
aff4454b7aa55a28ac7a53ed2bc6450675f7a4ea | 1,796 | ml | OCaml | libraries/ec2/lib/requestSpotFleet.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/requestSpotFleet.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/requestSpotFleet.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | open Types_internal
open Aws
type input = RequestSpotFleetRequest.t
type output = RequestSpotFleetResponse.t
type error = Errors_internal.t
let service = "ec2"
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)))
... | 30.965517 | 98 | 0.572383 |
af373da01c85b2da65a60371a007b2f566b56f67 | 60,076 | ml | OCaml | duniverse/ppxlib.0.13.0/ast/pprintast.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | duniverse/ppxlib.0.13.0/ast/pprintast.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | duniverse/ppxlib.0.13.0/ast/pprintast.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 36.947109 | 80 | 0.529945 |
8a25d4851fd40a1e5601789b5c3b18c7dda39302 | 1,416 | ml | OCaml | coq/plugins/ltac/tacarg.ml | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq/plugins/ltac/tacarg.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq/plugins/ltac/tacarg.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 2 | 2021-01-19T17:56:28.000Z | 2022-03-28T04:39:41.000Z | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *)
(* <O___,, * (see CREDITS file for the list of authors) *)
(* \VV/ *********... | 38.27027 | 74 | 0.577684 |
afaf6fe9966f557bd28e7297d96793ac71694371 | 2,209 | ml | OCaml | src-d0/d0.ml | dysinger/b0 | 59c24086f5bbee1484dea4e4ec9592bfdc6691fb | [
"ISC"
] | null | null | null | src-d0/d0.ml | dysinger/b0 | 59c24086f5bbee1484dea4e4ec9592bfdc6691fb | [
"ISC"
] | null | null | null | src-d0/d0.ml | dysinger/b0 | 59c24086f5bbee1484dea4e4ec9592bfdc6691fb | [
"ISC"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2017 The b0 programmers. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)
op... | 37.440678 | 79 | 0.59665 |
afe180a97c6c26070bfd9fe8e3ca8b60d4725d9b | 6,281 | mli | OCaml | lib/litmus_c/src/ast_types.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 2 | 2021-06-09T22:28:00.000Z | 2021-06-30T18:08:22.000Z | lib/litmus_c/src/ast_types.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 13 | 2021-02-10T08:57:29.000Z | 2021-02-16T16:17:25.000Z | lib/litmus_c/src/ast_types.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 1 | 2021-06-09T22:28:01.000Z | 2021-06-09T22:28:01.000Z | (* This file is part of c4f.
Copyright (c) 2018-2021 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... | 24.826087 | 78 | 0.671231 |
affc9c1ff61e2ecb9c6dd19a22d01aa9f0e2b9d6 | 7,758 | mli | OCaml | src/ocaml/typing/printtyp.mli | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 1,031 | 2016-12-16T19:17:17.000Z | 2022-03-24T06:30:52.000Z | src/ocaml/typing/printtyp.mli | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 754 | 2016-12-16T14:01:33.000Z | 2022-03-31T13:21:16.000Z | src/ocaml/typing/printtyp.mli | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 177 | 2017-01-04T17:35:53.000Z | 2022-02-18T02:54:14.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 40.40625 | 79 | 0.659191 |
af79aae15afb665dbc4dc0422d1b852ac5e78d7d | 621 | ml | OCaml | src/package.ml | rvantonder/dune | d9fcb622f6f497f5393b7003aa6613c8e5d74277 | [
"MIT"
] | 1 | 2018-09-14T10:47:11.000Z | 2018-09-14T10:47:11.000Z | src/package.ml | nandor/shmap | 6a730de81a1e8568a61ac0f53af3aebabde8e58b | [
"MIT"
] | null | null | null | src/package.ml | nandor/shmap | 6a730de81a1e8568a61ac0f53af3aebabde8e58b | [
"MIT"
] | null | null | null | open Stdune
module Name = struct
module T = Interned.Make(struct
let initial_size = 16
let resize_policy = Interned.Conservative
let order = Interned.Natural
end)()
include T
let of_string = make
let opam_fn (t : t) = to_string t ^ ".opam"
let pp fmt t = Format.pp_print_string fmt (... | 20.032258 | 60 | 0.634461 |
af97fad1b56e3c16438941c3af45e24abfe6fc1d | 7,802 | ml | OCaml | data/derived/comb/progs/unify/prog3872.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/prog3872.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3872.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let rec sumList xs = match xs with
| [] -> 0
| h::t -> h + sumList t
;;
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let _ = sumList [1; 2; 3; 4]
let _ = sumList [1; -2; 3; 5]
let _ = sumList [1; 3; 5; 7; 9; 11]
(*X... | 24.229814 | 94 | 0.635478 |
8a3bae0a97712c89a70d6f084be7f14d3f280cde | 11,010 | ml | OCaml | hphp/hack/src/providers/provider_utils.ml | ecreeth/hhvm | 743948904dcf31985e25f68258f7afcd36d2b228 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-17T02:24:38.000Z | 2020-01-17T02:24:38.000Z | hphp/hack/src/providers/provider_utils.ml | ecreeth/hhvm | 743948904dcf31985e25f68258f7afcd36d2b228 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/providers/provider_utils.ml | ecreeth/hhvm | 743948904dcf31985e25f68258f7afcd36d2b228 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
module Compute_tast = struct
type t = {
tast: Tast.program;
decl_cache_misses: int;
}
end
module... | 34.841772 | 111 | 0.680836 |
f3f51e0906df78e67e7d1b56ed294264c91da287 | 88 | mli | OCaml | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/typing-short-paths/gpr1223_bar.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/typing-short-paths/gpr1223_bar.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/typing-short-paths/gpr1223_bar.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null |
module M : Gpr1223_foo.S
module N : sig
module O : sig
type t = T
end
end
| 6.769231 | 24 | 0.579545 |
8a2da78124671383d320f0b7bad5a0f9298afb43 | 13,171 | ml | OCaml | hphp/hack/src/server/identifySymbolService.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/identifySymbolService.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/identifySymbolService.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open SymbolOccurrence
open Typing_defs
module Result_set = Caml.Set.Make (struct
type t = Relati... | 35.310992 | 89 | 0.648926 |
8a0ddd63e1566c9e4d370043ca50f01b9324eed0 | 4,203 | ml | OCaml | code/src/MythToDSBasic.ml | Miltnoid/HanoiArtifactEvaluation | dd76b55b0fcf62f66cd90a7f25a981c89ddcff88 | [
"MIT"
] | 2 | 2020-06-17T15:17:05.000Z | 2020-06-17T20:42:00.000Z | code/src/MythToDSBasic.ml | amiltner/HanoiArtifactEvaluation | dd76b55b0fcf62f66cd90a7f25a981c89ddcff88 | [
"MIT"
] | null | null | null | code/src/MythToDSBasic.ml | amiltner/HanoiArtifactEvaluation | dd76b55b0fcf62f66cd90a7f25a981c89ddcff88 | [
"MIT"
] | null | null | null | open Core
let rec explode (binder: Expr.t) : Myth.Lang.pattern list -> (Expr.t * Id.t) list =
let rec helper i acc =
function
| [] -> acc
| (Myth.Lang.PVar id) :: plist
-> helper (i + 1) (((Expr.Proj (i, binder)), id) :: acc) plist
| (Myth.Lang.PTuple _plist) :: plist
-> helper (i + 1) (... | 36.232759 | 96 | 0.545563 |
af089405ff4c340817aba62bd7ae22e5fbeb6ad0 | 522 | ml | OCaml | examples/CustomHooks.ml | utkarshkukreti/reaml | 5640a36293ba2a765171225deddb644f4d6c5d26 | [
"MIT"
] | 93 | 2019-08-26T12:47:08.000Z | 2021-12-02T08:04:22.000Z | examples/CustomHooks.ml | utkarshkukreti/reaml | 5640a36293ba2a765171225deddb644f4d6c5d26 | [
"MIT"
] | 9 | 2020-01-07T14:54:45.000Z | 2022-02-13T13:59:32.000Z | examples/CustomHooks.ml | utkarshkukreti/reaml | 5640a36293ba2a765171225deddb644f4d6c5d26 | [
"MIT"
] | 4 | 2019-09-05T21:10:38.000Z | 2021-08-13T17:28:18.000Z | module R = Reaml
let[@reaml.hook] useDoubleReducer (reducer, initialValue) =
let[@reaml] state, dispatch = R.useReducer reducer initialValue in
let dispatchTwice action =
dispatch action;
dispatch action
in
state, dispatchTwice
let[@reaml.component "CustomHooks"] make () =
let reducer state action =... | 29 | 68 | 0.695402 |
8a10c9245db7fcf4ce4adb90302cbbf8dd933bb6 | 533 | ml | OCaml | src/base/owl_base.ml | Drup/owl | cc2520b2f057d6b7f64d175e97ae810b63d3d14b | [
"MIT"
] | null | null | null | src/base/owl_base.ml | Drup/owl | cc2520b2f057d6b7f64d175e97ae810b63d3d14b | [
"MIT"
] | null | null | null | src/base/owl_base.ml | Drup/owl | cc2520b2f057d6b7f64d175e97ae810b63d3d14b | [
"MIT"
] | null | null | null | (*
* OWL - an OCaml numerical library for scientific computing
* Copyright (c) 2016-2018 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
module Const = Owl_const
module Maths = Owl_base_maths
module Stats = Owl_base_stats
module Complex = Owl_base_complex
module Quadrature = Owl_maths_quadrature
module Root = Ow... | 12.690476 | 63 | 0.744841 |
8a1b0409a462a0ae726f5049b3dd4b00a896c222 | 4,484 | ml | OCaml | lib/tyxml/top_app_bar.ml | monstasat/components | 011b513208c2053a22236e3df6fc3f38a2ec7630 | [
"MIT"
] | 1 | 2020-05-04T15:49:02.000Z | 2020-05-04T15:49:02.000Z | lib/tyxml/top_app_bar.ml | monstasat/components | 011b513208c2053a22236e3df6fc3f38a2ec7630 | [
"MIT"
] | null | null | null | lib/tyxml/top_app_bar.ml | monstasat/components | 011b513208c2053a22236e3df6fc3f38a2ec7630 | [
"MIT"
] | 1 | 2020-05-04T15:49:06.000Z | 2020-05-04T15:49:06.000Z | module CSS = struct
(** Mandatory. *)
let root = "mdc-top-app-bar"
(** Class used to style the top app bar as a fixed top app bar. *)
let fixed = BEM.add_modifier root "fixed"
(** Class used to style the content below the standard and fixed
top app bar to prevent the top app bar from covering it. *)
... | 35.03125 | 89 | 0.626227 |
af97847358240a01b29088715f5e22faaad06d29 | 656 | ml | OCaml | api/tex.ml | SoftwareFoundationGroupAtKyotoU/bibman | 587011be13b74cdc47fdd044d65e7e8a5a13e8e6 | [
"MIT"
] | 1 | 2020-07-23T12:56:14.000Z | 2020-07-23T12:56:14.000Z | api/tex.ml | SoftwareFoundationGroupAtKyotoU/bibman | 587011be13b74cdc47fdd044d65e7e8a5a13e8e6 | [
"MIT"
] | null | null | null | api/tex.ml | SoftwareFoundationGroupAtKyotoU/bibman | 587011be13b74cdc47fdd044d65e7e8a5a13e8e6 | [
"MIT"
] | null | null | null | open BibmanNet
;;
let main (cgi: Netcgi.cgi) _ =
let arg_val = cgi # argument_value in
redirect_to_script cgi
~content_type:MimeType.tex
Config.script_tex [
"tosho";
arg_val "id";
arg_val "purchaser";
arg_val "sent-date";
arg_val "budget";
arg_val "number";
arg_val... | 19.878788 | 39 | 0.57622 |
8a3ffb622fc3032b47682d0b27f683818f87ff4a | 16,677 | ml | OCaml | lib/mach/B2J_MachLoadCommandTypes.ml | m4b/bin2json | 9aeeef017a4446cfc134e593aca76e8ac573b7f7 | [
"BSD-3-Clause"
] | 20 | 2015-11-06T05:20:35.000Z | 2022-03-22T12:34:09.000Z | lib/mach/B2J_MachLoadCommandTypes.ml | m4b/bin2json | 9aeeef017a4446cfc134e593aca76e8ac573b7f7 | [
"BSD-3-Clause"
] | null | null | null | lib/mach/B2J_MachLoadCommandTypes.ml | m4b/bin2json | 9aeeef017a4446cfc134e593aca76e8ac573b7f7 | [
"BSD-3-Clause"
] | 3 | 2016-06-01T11:54:14.000Z | 2017-07-19T07:03:26.000Z | open Mach.LoadCommand.Types
open B2J_Json
let lc_count = 43
let load_command_to_json (lc:load_command) =
`O[
("cmd", (to_hex lc.cmd));
("_cmd", (`String (cmd_int_to_string lc.cmd)));
("cmdsize", (to_hex lc.cmdsize));
]
let lc_str_to_json (lc:lc_str) =
`O[
("offset", (to_hex lc.offset));
... | 28.953125 | 73 | 0.62835 |
8a116438cedfc307c081e663b6a23f48833af67e | 3,626 | mll | OCaml | src/util/oilLexer.mll | vootelerotov/goblint-fork | 1aa04505362d2a89ab40fc1d0499afac09472d7b | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/util/oilLexer.mll | vootelerotov/goblint-fork | 1aa04505362d2a89ab40fc1d0499afac09472d7b | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/util/oilLexer.mll | vootelerotov/goblint-fork | 1aa04505362d2a89ab40fc1d0499afac09472d7b | [
"MIT",
"BSD-3-Clause"
] | null | null | null | {
open OilParser
}
let nl = '\r'?'\n'
let endlinecomment = "//" [^'\n']* nl
let multlinecomment = "/*"([^'*']|('*'+[^'*''/'])|nl)*'*'+'/'
let comments = endlinecomment|multlinecomment
let include = "#include" [^'\n']* nl
let hex_digit = ['0'-'9''a'-'f''A'-'F']
let zero_digit = '0'
let dec_digit = ['0'-'9']
let pos_di... | 51.070423 | 196 | 0.352454 |
f32cb789afb8f44c03a6d179b5970083534877b3 | 1,482 | mli | OCaml | src/dune_rules/ml_sources.mli | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | null | null | null | src/dune_rules/ml_sources.mli | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | null | null | null | src/dune_rules/ml_sources.mli | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | null | null | null | (** OCaml sources *)
open! Dune_engine
(** This module encapsulates the structure of source files in a particular
directory. *)
open Import
module Artifacts : sig
type t
val lookup_module :
t -> Module_name.t -> (Path.Build.t Obj_dir.t * Module.t) option
val lookup_library : t -> Lib_name.t -> Lib_in... | 27.444444 | 80 | 0.687584 |
afc6109393f66b63b64e502db180beacfc06e673 | 726 | mli | OCaml | src/logic.mli | ossanha/smtpp | 57eb74bccbb0f30293ee058ded4b01baa1067756 | [
"0BSD"
] | 7 | 2015-07-18T23:27:38.000Z | 2016-05-02T00:42:40.000Z | src/logic.mli | ossanha/smtpp | 57eb74bccbb0f30293ee058ded4b01baa1067756 | [
"0BSD"
] | 4 | 2015-06-05T23:43:04.000Z | 2015-07-29T12:38:10.000Z | src/logic.mli | ossanha/smtpp | 57eb74bccbb0f30293ee058ded4b01baa1067756 | [
"0BSD"
] | null | null | null | type arith_sort = Integer | Real | Mixed ;;
(* The basic sort upon which arithmetic can be based *)
type arith_kind = Difference | Linear | NonLinear ;;
(* Kind of arithmetics used in SMT-LIB benchmarks.
They form a simple lattice.
*)
val max_kind_opt : arith_kind option -> arith_kind option -> arith_kind option
... | 26.888889 | 78 | 0.695592 |
afffaffbe9e30204b8badf0ff2bfe6680a19e268 | 14,215 | ml | OCaml | presentations/coq-workshop-2014-coq/tactics/tacsubst.ml | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/tactics/tacsubst.ml | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/tactics/tacsubst.ml | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | (************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2015 *)
(* \VV/ **************************************************************)
(* // * Th... | 40.498575 | 109 | 0.682026 |
f32b73e06ee913da90006233ba7a20bd38f3b2f4 | 3,274 | ml | OCaml | hphp/hack/test/integration_ml/ide/test_ide_check.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration_ml/ide/test_ide_check.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration_ml/ide/test_ide_check.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*
*)
open Integration_test_base_types
module Test = Integration_test_base
let a_name = "a.php"
let a_contents1 =
... | 27.283333 | 80 | 0.666463 |
f38be194e9a08bbc896c89199140d137e11d329f | 1,224 | mli | OCaml | ci/src/cI_utils.mli | samoht/datakit | 5b98f909ef04ac686c65bee699ac3b53c727bd87 | [
"Apache-2.0"
] | null | null | null | ci/src/cI_utils.mli | samoht/datakit | 5b98f909ef04ac686c65bee699ac3b53c727bd87 | [
"Apache-2.0"
] | null | null | null | ci/src/cI_utils.mli | samoht/datakit | 5b98f909ef04ac686c65bee699ac3b53c727bd87 | [
"Apache-2.0"
] | null | null | null | open! Result
module Log: Logs.LOG
val src: Logs.src
module Client9p: sig
include Protocol_9p_client.S
val connect:
string -> string ->
?msize:int32 -> ?username:string -> ?aname:string -> ?max_fids:int32 -> unit ->
t Protocol_9p_error.t Lwt.t
end
module DK: sig
include Datakit_S.CLIENT
val connect... | 24 | 83 | 0.629902 |
afa57e02c48a3f7cd7937605fe52bd114aaf4d47 | 146 | ml | OCaml | benchmarks/C/max/sol54.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/max/sol54.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/max/sol54.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | let rec max : int list -> int
=fun l ->
match l with
|[] -> 0
|d::[] -> d
|d::e ->
let f = max e in
if d > f then d
else f
| 14.6 | 30 | 0.424658 |
af5e25bf87d22f3deeb4cb387cc963bdd639cb87 | 4,855 | ml | OCaml | src/sign_or_nan.ml | EduardoRFS/base | 8993e35ba2e83e5020b2deb548253ef1e4a699d4 | [
"MIT"
] | 641 | 2016-09-16T15:51:06.000Z | 2022-03-31T19:30:56.000Z | src/sign_or_nan.ml | EduardoRFS/base | 8993e35ba2e83e5020b2deb548253ef1e4a699d4 | [
"MIT"
] | 121 | 2016-09-17T07:30:00.000Z | 2022-03-03T21:00:03.000Z | src/sign_or_nan.ml | EduardoRFS/base | 8993e35ba2e83e5020b2deb548253ef1e4a699d4 | [
"MIT"
] | 95 | 2016-09-16T23:31:38.000Z | 2022-03-19T01:35:06.000Z | open! Import
module T = struct
type t =
| Neg
| Zero
| Pos
| Nan
[@@deriving_inline sexp, sexp_grammar, compare, hash, enumerate]
let t_of_sexp =
(let error_source__003_ = "sign_or_nan.ml.T.t" in
function
| Sexplib0.Sexp.Atom ("neg" | "Neg") -> Neg
| Sexplib0.Sexp.Atom ("zero"... | 33.715278 | 90 | 0.627188 |
8a0b96e503dfcb6b99c56feadb5b06d47138fd58 | 2,942 | ml | OCaml | sudoku.ml | hultin/ocamlTest | 7b31a314819a9fd74b0df86be9f35851187cfff9 | [
"MIT"
] | null | null | null | sudoku.ml | hultin/ocamlTest | 7b31a314819a9fd74b0df86be9f35851187cfff9 | [
"MIT"
] | null | null | null | sudoku.ml | hultin/ocamlTest | 7b31a314819a9fd74b0df86be9f35851187cfff9 | [
"MIT"
] | null | null | null | open Core.Std
let compliment a b =
Array.filter ~f:(fun x -> not (Array.mem b x)) a
;;
let union a b =
Array.filter ~f:(fun x -> (Array.mem b x)) a
;;
let fullA = [|1;2;3;4;5;6;7;8;9|];;
let fullAOpt = [|Some 1;Some 2;Some 3;Some 4;Some 5;Some 6;Some 7;Some 8;Some 9|];;
let getRow n table =
Array.get table n
... | 25.807018 | 112 | 0.609789 |
af2d0fad5fdefd9e79cc541b7af9eb83d45eed89 | 2,141 | ml | OCaml | hphp/hack/src/server/serverEnv.ml | edwinsmith/hhvm-armjit | 486a041a0dfe25c5d6a9a06bab657ab2cb5aa8ea | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2015-07-28T23:53:32.000Z | 2015-07-31T15:17:21.000Z | hphp/hack/src/server/serverEnv.ml | edwinsmith/hhvm-armjit | 486a041a0dfe25c5d6a9a06bab657ab2cb5aa8ea | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverEnv.ml | edwinsmith/hhvm-armjit | 486a041a0dfe25c5d6a9a06bab657ab2cb5aa8ea | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Core
(*... | 35.683333 | 80 | 0.524988 |
8a47386afc9f289daa39ad7ee8140e4263a2d930 | 2,548 | mli | OCaml | src/service/entity_service.mli | dbuenzli/hyperbib | f75cb77f01abc1929db9ef9882c57bb09ce3c2dc | [
"MIT"
] | 13 | 2021-12-24T11:18:20.000Z | 2022-03-14T09:18:08.000Z | src/service/entity_service.mli | dbuenzli/hyperbib | f75cb77f01abc1929db9ef9882c57bb09ce3c2dc | [
"MIT"
] | null | null | null | src/service/entity_service.mli | dbuenzli/hyperbib | f75cb77f01abc1929db9ef9882c57bb09ce3c2dc | [
"MIT"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2021 University of Bern. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
---------------------------------------------------------------------------*)
(** Database entities serv... | 40.444444 | 79 | 0.615777 |
af7d7a0aeb91ba4da2b5ca1c8ed87874179ce58c | 1,938 | ml | OCaml | data/fa15/2310.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/2310.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/2310.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr;;
let rec exprToString e =
match e with
| VarX -> "x"
| VarY -> "y"
| Sine e -> "sin(pi*" ^ ((exprToString e) ^ ")")
| Cosine e -> "cos(pi*" ^ ((exprToSt... | 17.779817 | 69 | 0.505676 |
8a0f48dc4dd876571eccaf3ecd1a6fa9e36ed2b0 | 10,454 | ml | OCaml | coq/plugins/rtauto/refl_tauto.ml | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq/plugins/rtauto/refl_tauto.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq/plugins/rtauto/refl_tauto.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 2 | 2021-01-19T17:56:28.000Z | 2022-03-28T04:39:41.000Z | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *)
(* <O___,, * (see CREDITS file for the list of authors) *)
(* \VV/ *********... | 31.299401 | 87 | 0.642912 |
8a263ffec1c50e9345a691e42d85aa891fd30650 | 3,571 | mli | OCaml | src/program/intraCfg.mli | aspire-project/uichisel | a50a182c4ff1921b81dc7e4d23af904ce9b23148 | [
"BSD-3-Clause"
] | 1 | 2021-12-03T11:49:18.000Z | 2021-12-03T11:49:18.000Z | src/program/intraCfg.mli | aspire-project/uichisel | a50a182c4ff1921b81dc7e4d23af904ce9b23148 | [
"BSD-3-Clause"
] | null | null | null | src/program/intraCfg.mli | aspire-project/uichisel | a50a182c4ff1921b81dc7e4d23af904ce9b23148 | [
"BSD-3-Clause"
] | null | null | null | (***********************************************************************)
(* *)
(* Copyright (c) 2007-present. *)
(* Programming Research Laboratory (ROPAS), Seoul National University. *)
(* All rights reserved. ... | 31.60177 | 76 | 0.551106 |
af3617d23e49b05870face6397155977949862cb | 7,326 | mli | OCaml | src/nvim.mli | janestreet/vcaml | bd4e55dec448a0a6da874d7f8f7f9584d0bd5a43 | [
"MIT"
] | 91 | 2019-12-03T15:01:18.000Z | 2022-02-07T22:00:18.000Z | src/nvim.mli | janestreet/vcaml | bd4e55dec448a0a6da874d7f8f7f9584d0bd5a43 | [
"MIT"
] | 1 | 2019-12-21T17:30:39.000Z | 2021-02-26T03:46:39.000Z | src/nvim.mli | janestreet/vcaml | bd4e55dec448a0a6da874d7f8f7f9584d0bd5a43 | [
"MIT"
] | 3 | 2019-12-14T17:29:53.000Z | 2021-12-21T06:25:56.000Z | module Unshadow_command := Command
open Core
module Command := Unshadow_command
module Type := Nvim_internal.Phantom
(* Neovim API functions that are not bound to a particular Neovim object. *)
val command : command:string -> unit Api_call.Or_error.t
val source : code:string -> string Api_call.Or_error.t
val get_chan... | 36.447761 | 90 | 0.715261 |
afa2acdade154093cd6045eb81b497f73e42f1f4 | 10,881 | ml | OCaml | src/dune_rules/install.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | null | null | null | src/dune_rules/install.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | null | null | null | src/dune_rules/install.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | null | null | null | open! Dune_engine
open! Stdune
open Import
module Section0 = struct
type t =
| Lib
| Lib_root
| Libexec
| Libexec_root
| Bin
| Sbin
| Toplevel
| Share
| Share_root
| Etc
| Doc
| Stublibs
| Man
| Misc
let compare : t -> t -> Ordering.t = Poly.compare
let t... | 26.282609 | 80 | 0.569341 |
af711b7bc7ed6f30a160004e339df2da6e558d03 | 6,700 | mli | OCaml | src/lib_base/time.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 1 | 2021-11-03T08:21:08.000Z | 2021-11-03T08:21:08.000Z | src/lib_base/time.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | src/lib_base/time.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> *)
... | 34.358974 | 80 | 0.604328 |
af2d03fb9325e47d7fbeed3f5187a9e013029b20 | 343 | ml | OCaml | js_ocoi/specification.ml | roddyyaga/ocoi | 0a07e9457add9890cb507ac8bb4e55044d86a640 | [
"MIT"
] | 62 | 2019-12-26T18:28:25.000Z | 2022-01-26T18:05:31.000Z | js_ocoi/specification.ml | roddyyaga/ocoi | 0a07e9457add9890cb507ac8bb4e55044d86a640 | [
"MIT"
] | 2 | 2020-05-05T21:47:49.000Z | 2021-07-16T22:17:39.000Z | js_ocoi/specification.ml | roddyyaga/ocoi | 0a07e9457add9890cb507ac8bb4e55044d86a640 | [
"MIT"
] | 2 | 2020-04-10T07:19:10.000Z | 2020-05-26T13:05:00.000Z | type verb = Get | Post | Put | Delete
let verb_to_string = function
| Get -> "get"
| Post -> "post"
| Put -> "put"
| Delete -> "delete"
module type S_base = sig
val verb : verb
val path : string
end
module type S = sig
include S_base
module Parameters : sig
type t
end
module Responses : si... | 13.192308 | 37 | 0.612245 |
8a264d53f50115fff9fa9b08c61c503fc131a999 | 5,275 | ml | OCaml | src/PML/command.ml | alphaKAI/opml | c70f3778088ed5aa3a86dcc7f0e2246d9b3a7441 | [
"MIT"
] | 3 | 2018-07-19T16:12:55.000Z | 2018-07-23T10:56:29.000Z | src/PML/command.ml | alphaKAI/opml | c70f3778088ed5aa3a86dcc7f0e2246d9b3a7441 | [
"MIT"
] | null | null | null | src/PML/command.ml | alphaKAI/opml | c70f3778088ed5aa3a86dcc7f0e2246d9b3a7441 | [
"MIT"
] | null | null | null | open Formula
open Parser
open Axiom
open Core
type indicator =
| INum of int
| IStr of string
| IPre
[@@deriving show]
type command =
| Axiom of formula
| MP of indicator * indicator
| US of indicator * formula * string
| G of indicator
| Name of indicator * string
| Q
| Comment of string
let sho... | 28.668478 | 112 | 0.527393 |
afe3dfb59a7a8beef0aabece82d6eb74962b250a | 18,649 | ml | OCaml | data/derived/comb/progs/unify/prog7283.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/prog2469.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2469.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 33.301786 | 208 | 0.664701 |
8a3f7514ac4c35b3aad9cb1c2df2bbe940ec0804 | 138 | ml | OCaml | data/derived/comb/progs/unify/prog3241.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/prog3241.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3241.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let pipe fs = let f a x = x a in let base x y = y in List.fold_left f base fs;;
let _ = pipe [(fun x -> x + x); (fun x -> x + 3)] 3;;
| 27.6 | 79 | 0.521739 |
f3e156e09ee5ba8e365ee5c66da3653d927b053e | 9,741 | ml | OCaml | src/services/inference/merge_stream.ml | giltho/flow | ac42cb1a4d3d17afde4c9ce3c12fa847e897959f | [
"MIT"
] | null | null | null | src/services/inference/merge_stream.ml | giltho/flow | ac42cb1a4d3d17afde4c9ce3c12fa847e897959f | [
"MIT"
] | 1 | 2021-04-16T12:04:57.000Z | 2021-04-16T12:04:57.000Z | src/services/inference/merge_stream.ml | isabella232/flow-1 | 2d9073973d236d6bc05aa216baea99adf3b885fe | [
"MIT"
] | 1 | 2021-05-12T18:13:36.000Z | 2021-05-12T18:13:36.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.
*)
(* Custom bucketing scheme for dynamically growing and shrinking workloads when
merging files.
We start out with files that ... | 34.789286 | 100 | 0.681758 |
afc655b0020c2cf51921e7345659e5973005ded6 | 471 | mli | OCaml | src/Poly_set.mli | c-cube/smbc | 1b787f0258b3b47b9b93737fe0c4d698892d6d3d | [
"BSD-2-Clause"
] | 19 | 2017-10-10T08:20:14.000Z | 2022-01-11T13:30:39.000Z | src/Poly_set.mli | c-cube/e3 | 1b787f0258b3b47b9b93737fe0c4d698892d6d3d | [
"BSD-2-Clause"
] | 6 | 2017-06-22T11:38:50.000Z | 2019-11-13T21:28:37.000Z | src/Poly_set.mli | c-cube/smbc | 1b787f0258b3b47b9b93737fe0c4d698892d6d3d | [
"BSD-2-Clause"
] | null | null | null |
(* This file is free software. See file "license" for more details. *)
(** {1 Imperative Set} *)
type 'a t
val create :
eq:('a -> 'a -> bool) ->
int ->
'a t
(** [create ~eq ~hash size] makes a new set of initial size [size] *)
val mem : 'a t -> 'a -> bool
(** Check if an element is within *)
val add : 'a t ... | 19.625 | 70 | 0.558386 |
af46ff790d4230660000c385881a85e20ddd20d1 | 171 | ml | OCaml | data/derived/comb/progs/unify/prog2891.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/prog2891.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2891.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec append l1 l2 = match l1 with | [] -> l2 | h::t -> h :: (append t l2);;
let rec listReverse l =
match l with | [] -> [] | h::t -> append (listReverse t; [h]);;
| 28.5 | 78 | 0.526316 |
d2ef1ab817f9634cbe60ca8dda4ac59630d28dc1 | 705 | ml | OCaml | src/CL_DataBuffer.ml | fccm/ocaml-clanlib | 1929f1c11d4cc9fc19e7da22826238b4cce7a07d | [
"Zlib",
"OLDAP-2.2.1"
] | 1 | 2020-10-24T14:48:04.000Z | 2020-10-24T14:48:04.000Z | src/CL_DataBuffer.ml | fccm/ocaml-clanlib | 1929f1c11d4cc9fc19e7da22826238b4cce7a07d | [
"Zlib",
"OLDAP-2.2.1"
] | null | null | null | src/CL_DataBuffer.ml | fccm/ocaml-clanlib | 1929f1c11d4cc9fc19e7da22826238b4cce7a07d | [
"Zlib",
"OLDAP-2.2.1"
] | null | null | null | (* bindings for CL_DataBuffer *)
type t
external init : unit -> t
= "caml_CL_DataBuffer_init"
external delete : t -> unit
= "caml_CL_DataBuffer_delete"
external of_string : string -> t
= "caml_CL_DataBuffer_of_string"
external copy : t -> t
= "caml_CL_DataBuffer_copy"
external get_size : t -> int
= "caml... | 21.363636 | 40 | 0.714894 |
8a46c36566d1b2047e7e3ac09cbdfd97b6dc1fb4 | 968 | mli | OCaml | src/monad_error.mli | zoggy/asak | 223943bf2da038d7a4b23a0f874dc1a4c43a5912 | [
"MIT"
] | 26 | 2019-10-17T12:10:20.000Z | 2021-11-08T09:08:39.000Z | src/monad_error.mli | zoggy/asak | 223943bf2da038d7a4b23a0f874dc1a4c43a5912 | [
"MIT"
] | 4 | 2019-11-06T22:03:30.000Z | 2021-07-26T08:16:33.000Z | src/monad_error.mli | zoggy/asak | 223943bf2da038d7a4b23a0f874dc1a4c43a5912 | [
"MIT"
] | 3 | 2019-11-06T17:34:55.000Z | 2021-06-29T08:01:58.000Z | (* This file is part of asak.
*
* Copyright (C) 2019 IRIF / OCaml Software Foundation.
*
* asak is distributed under the terms of the MIT license. See the
* included LICENSE file for details. *)
val either : ('a -> 'c) -> ('b -> 'c) -> ('a,'b) result -> 'c
module type T = sig
type e
end
module Make (T : T) : ... | 22.511628 | 66 | 0.511364 |
f337e8be56436b8e582d65222e704ef515022513 | 450 | ml | OCaml | efolios-anteriores2.ml | PauloJMNicolau/afs-lp-ocaml | 8bdb3993e2f46acd6d65667367b90b8563362020 | [
"MIT"
] | null | null | null | efolios-anteriores2.ml | PauloJMNicolau/afs-lp-ocaml | 8bdb3993e2f46acd6d65667367b90b8563362020 | [
"MIT"
] | null | null | null | efolios-anteriores2.ml | PauloJMNicolau/afs-lp-ocaml | 8bdb3993e2f46acd6d65667367b90b8563362020 | [
"MIT"
] | null | null | null | type 'a tree =
Nil (*Folhas*)
| Node of 'a * 'a tree * 'a tree (*Nó*)
;;
let c =
Node(3,
Node(5,
Node(7,Nil,Nil),
Node(8,Nil,Nil)
),
Node(6,
Node(2,Nil,Nil),
Nil
)
);;
let rec soma tree sum = (
match tree with
| Nil -> 0
| Node ... | 15.517241 | 48 | 0.437778 |
8a07a40f683314ef615f3a75cd0923e084516513 | 3,040 | mli | OCaml | src/lib/TermBuilder.mli | ecavallo/cooltt | 62af87a69da3da541c03420cf950c2473a947d33 | [
"MIT"
] | null | null | null | src/lib/TermBuilder.mli | ecavallo/cooltt | 62af87a69da3da541c03420cf950c2473a947d33 | [
"MIT"
] | null | null | null | src/lib/TermBuilder.mli | ecavallo/cooltt | 62af87a69da3da541c03420cf950c2473a947d33 | [
"MIT"
] | null | null | null | (** A language for building terms without doing De Bruijn arithmetic. This module contains constructors
* not only for the primitives of cubical type theory, but also for the more complex derived forms --
* for instance, the algorithm of coercion and composition in various type connectives. *)
open CoolBasis
includ... | 26.434783 | 103 | 0.549013 |
afe6bc41e060cc0d35363b22f17927d806c937ff | 15,586 | ml | OCaml | src/interpreter.ml | CodaProtocol/ppx_optcomp | 2dfcf8104b1afee1a9ed0393d1f9f734c707e5c5 | [
"MIT"
] | 3 | 2019-01-31T01:53:04.000Z | 2019-11-05T18:48:12.000Z | src/interpreter.ml | CodaProtocol/ppx_optcomp | 2dfcf8104b1afee1a9ed0393d1f9f734c707e5c5 | [
"MIT"
] | null | null | null | src/interpreter.ml | CodaProtocol/ppx_optcomp | 2dfcf8104b1afee1a9ed0393d1f9f734c707e5c5 | [
"MIT"
] | 3 | 2019-04-08T05:38:09.000Z | 2020-06-30T03:31:50.000Z | open Base
open Ppxlib
open Ast_builder.Default
module Filename = Caml.Filename
module Parsing = Caml.Parsing
module Type = struct
type t =
| Var of string
| Bool
| Int
| Char
| String
| Tuple of t list
let rec to_core_type loc t =
let constr x = ptyp_constr ~loc {txt= lident x; loc} ... | 30.681102 | 104 | 0.54164 |
8a3adbaeb73defc5b7062f49205951ed0fc3a55e | 1,915 | ml | OCaml | libraries/cloudwatch/lib/listTagsForResource.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudwatch/lib/listTagsForResource.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/cloudwatch/lib/listTagsForResource.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = ListTagsForResourceInput.t
type output = ListTagsForResourceOutput.t
type error = Errors_internal.t
let service = "monitoring"
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 (... | 31.393443 | 99 | 0.582768 |
8a0e32831ce9b259a4b185620eba454dc983ffe7 | 4,358 | ml | OCaml | src/lib/snark_worker_lib/worker.ml | ValarDragon/coda | 2a73c37c22c4029fcfb0b2a444115eead94bdb8b | [
"Apache-2.0"
] | null | null | null | src/lib/snark_worker_lib/worker.ml | ValarDragon/coda | 2a73c37c22c4029fcfb0b2a444115eead94bdb8b | [
"Apache-2.0"
] | null | null | null | src/lib/snark_worker_lib/worker.ml | ValarDragon/coda | 2a73c37c22c4029fcfb0b2a444115eead94bdb8b | [
"Apache-2.0"
] | null | null | null | open Core
open Async
module Make (Inputs : Intf.Inputs_intf) :
Intf.S
with type transition := Inputs.Super_transaction.t
and type sparse_ledger := Inputs.Sparse_ledger.t
and type statement := Inputs.Statement.t
and type proof := Inputs.Proof.t = struct
open Inputs
module Work = struct
open Snark_... | 32.044118 | 78 | 0.596145 |
f344aa65cdf4938bb8c71a754df292decf84410c | 106 | ml | OCaml | tool/version.ml | HarryGifford/AlphaCaml | 634d0a04fa90a5b8512876c770584a9a4c8615ac | [
"BSD-3-Clause"
] | null | null | null | tool/version.ml | HarryGifford/AlphaCaml | 634d0a04fa90a5b8512876c770584a9a4c8615ac | [
"BSD-3-Clause"
] | null | null | null | tool/version.ml | HarryGifford/AlphaCaml | 634d0a04fa90a5b8512876c770584a9a4c8615ac | [
"BSD-3-Clause"
] | null | null | null | let version =
"<unreleased>" (* to be overridden when a package is created *)
let version = "20191001"
| 21.2 | 65 | 0.688679 |
af6eecd15c3cb1a3810b22200ef6f2f45d48dee8 | 1,857 | ml | OCaml | src/app/cli/src/tests/coda_long_fork.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | null | null | null | src/app/cli/src/tests/coda_long_fork.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | null | null | null | src/app/cli/src/tests/coda_long_fork.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | null | null | null | open Core
open Async
let name = "coda-long-fork"
let main n waiting_time () =
let precomputed_values =
(* TODO: Load for this specific test. *)
Lazy.force Precomputed_values.compiled_inputs
in
let consensus_constants = precomputed_values.consensus_constants in
let logger = Logger.create () in
let pu... | 36.411765 | 78 | 0.732364 |
d2d797be1026dfc1a8f407ab9564017502f85be4 | 4,108 | mli | OCaml | src/core/Vec.mli | louisabraham/mc2 | 1c76105d41700d448635d288ef76dc75c3e6260d | [
"Apache-2.0"
] | 7 | 2018-08-10T13:15:19.000Z | 2022-01-15T02:04:24.000Z | src/core/Vec.mli | louisabraham/mc2 | 1c76105d41700d448635d288ef76dc75c3e6260d | [
"Apache-2.0"
] | null | null | null | src/core/Vec.mli | louisabraham/mc2 | 1c76105d41700d448635d288ef76dc75c3e6260d | [
"Apache-2.0"
] | 1 | 2018-10-30T12:22:53.000Z | 2018-10-30T12:22:53.000Z | (**************************************************************************)
(* *)
(* Cubicle *)
(* Combining model checking algorithms and SMT solvers *)
(* ... | 34.233333 | 83 | 0.514362 |
af8db778f7d33f42a32625be5f3d8b59aa46629c | 18,504 | ml | OCaml | data/derived/fa15/progs/cnstr/prog3617.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/cnstr/prog3617.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/cnstr/prog3617.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.983957 | 208 | 0.663748 |
8a1177443e61751c00b373848c104465c53b2914 | 705 | ml | OCaml | tests/types/class/mtpc-scope.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | tests/types/class/mtpc-scope.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | tests/types/class/mtpc-scope.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | class functor 'f begin
val map : ('a -> 'b) -> 'f 'a -> 'f 'b
end
class functor 'f => foldable 'f begin
end
class (forall 'j 'k. functor ('f 'j 'k)) => iapplicative 'f begin
val pure : 'a -> 'f 'i 'i 'a
val (<*>) : 'f 'i 'j ('a -> 'b) -> 'f 'j 'k 'a -> 'f 'i 'k 'b
end
class iapplicative 'm => imonad 'm begin
... | 22.741935 | 65 | 0.503546 |
8a21f7c8739d0bbbb28ce7ab300cb4b0756dad35 | 1,104 | ml | OCaml | ocaml/peano/fizzbuzz-peano.ml | amarantedaniel/fizzbuzz-polyglot | e25e18398103ac4e599d5c1e9b23b0a15048dc08 | [
"MIT"
] | null | null | null | ocaml/peano/fizzbuzz-peano.ml | amarantedaniel/fizzbuzz-polyglot | e25e18398103ac4e599d5c1e9b23b0a15048dc08 | [
"MIT"
] | null | null | null | ocaml/peano/fizzbuzz-peano.ml | amarantedaniel/fizzbuzz-polyglot | e25e18398103ac4e599d5c1e9b23b0a15048dc08 | [
"MIT"
] | null | null | null | type t =
| O
| S of t
let rec add a b = match (a, b) with
| (_, O) -> a
| (_, S b') -> S (add a b')
let rec sub a b = match (a, b) with
| (O, _) -> O
| (_, O) -> a
| (S a', S b') -> sub a' b'
let rec mult a b = match (a, b) with
| (_, O) -> O
| (_, S O) -> a
| (_, S b') -> add a (mult a b')
let ... | 20.830189 | 64 | 0.495471 |
f30ef182f95ae4cc9ca5e9a75292f92ca7e4490c | 502 | ml | OCaml | GrammarGraphics/src/grammar.ml | kkirstein/ocaml-playground | 31bd403e76811627388a6eb29b27021ea9255f05 | [
"MIT"
] | null | null | null | GrammarGraphics/src/grammar.ml | kkirstein/ocaml-playground | 31bd403e76811627388a6eb29b27021ea9255f05 | [
"MIT"
] | null | null | null | GrammarGraphics/src/grammar.ml | kkirstein/ocaml-playground | 31bd403e76811627388a6eb29b27021ea9255f05 | [
"MIT"
] | null | null | null | (* vim: set ft=ocaml sw=2 ts=2: *)
(*
* grammar.ml
*
* Grammar to describe scientific graphics (charts).
* Taken from The Grammar of Graphics by Leland Wilkinson
* (https://www.springer.com/in/book/9780387245447)
*)
module Variables = struct
type t
end
module Algebra = struct
type t
end
module Scales =... | 10.913043 | 57 | 0.691235 |
af579b2f88a39f7c873e1aa3d4f1665370d39def | 4,192 | mli | OCaml | examples/sexpr.mli | copy/sequence | 27042d15126897cc0cffae8a4b2c7bbd730e10c9 | [
"BSD-2-Clause"
] | null | null | null | examples/sexpr.mli | copy/sequence | 27042d15126897cc0cffae8a4b2c7bbd730e10c9 | [
"BSD-2-Clause"
] | null | null | null | examples/sexpr.mli | copy/sequence | 27042d15126897cc0cffae8a4b2c7bbd730e10c9 | [
"BSD-2-Clause"
] | null | null | null | (*
Zipperposition: a functional superposition prover for prototyping
Copyright (C) 2012 Simon Cruanes
This 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 ... | 31.518797 | 80 | 0.661021 |
f3132eb0fcaa666546110f1d7c52844ea9cd9512 | 105,338 | ml | OCaml | trans/translate_to_il3.ml | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | 1 | 2018-02-10T02:52:09.000Z | 2018-02-10T02:52:09.000Z | trans/translate_to_il3.ml | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | null | null | null | trans/translate_to_il3.ml | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | null | null | null | (*
Part of Fail-Safe C Compiler. Produced by Yutaka Oiwa.
(c) 2001-2005 Yutaka Oiwa.
(c) 2005- AIST.
This file is written by Yutaka Oiwa in 2003-2009. *)
open Util
open Big_int_infix
open Locterm
open Ctt_abstree
open Cttm_abstree
open Ils
open Ilc
open Il
open Il0
open Il3
open Transutil
open Record... | 34.696311 | 146 | 0.675388 |
8a305e20f290ce475a38f3249a7b83a6d04c566d | 54,465 | ml | OCaml | infer/src/al/cTL.ml | smorimoto/infer | 374c09c6c7f16e039455fe23cb82ad9eab1094c8 | [
"MIT"
] | 1 | 2019-11-23T14:35:34.000Z | 2019-11-23T14:35:34.000Z | infer/src/al/cTL.ml | imbsky/infer | 374c09c6c7f16e039455fe23cb82ad9eab1094c8 | [
"MIT"
] | null | null | null | infer/src/al/cTL.ml | imbsky/infer | 374c09c6c7f16e039455fe23cb82ad9eab1094c8 | [
"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 Ctl_parser_types
module L = Logging
(* This module defines a language to define checkers. These checkers
are in... | 37.901879 | 102 | 0.650803 |
8a18710040e4563ae69392fc768994bbcb41f0b9 | 2,791 | ml | OCaml | ml_timelock/crypto_box.ml | RomarQ/tezos-timelock | f4f32095981affd8c9eb592cab52c1554138b14e | [
"MIT"
] | 3 | 2021-11-11T19:16:09.000Z | 2021-12-15T08:47:18.000Z | ml_timelock/crypto_box.ml | RomarQ/tezos-timelock | f4f32095981affd8c9eb592cab52c1554138b14e | [
"MIT"
] | 1 | 2021-10-29T20:07:42.000Z | 2021-10-31T16:58:08.000Z | ml_timelock/crypto_box.ml | RomarQ/tezos-timelock | f4f32095981affd8c9eb592cab52c1554138b14e | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 45.754098 | 79 | 0.542458 |
8a49f49134d8271e55c0e411e3a2959460de97e5 | 1,867 | mli | OCaml | typing/typing_call.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | typing/typing_call.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | typing/typing_call.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 38.895833 | 87 | 0.516336 |
af731e4b7f07c18b59ab135cacdd8059e7ef3283 | 7,939 | ml | OCaml | src/services/inference/recheck_stats.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | 1 | 2020-07-11T17:49:59.000Z | 2020-07-11T17:49:59.000Z | src/services/inference/recheck_stats.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | null | null | null | src/services/inference/recheck_stats.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"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.
*)
let per_file_time_guess = 0.003
let per_file_time_key = "per_file_time"
let estimates_key = "estimates"
let estimated_time_to_r... | 36.086364 | 101 | 0.645421 |
f3642276790cd0d93d37ea20e1639e381be3a7c5 | 3,679 | ml | OCaml | paks/Batsh/src/main.ml | josephgodwinkimani/wrench | 00e8d2ce086357a3f37a2f864c524c4384477535 | [
"MIT"
] | 1 | 2020-08-01T03:27:14.000Z | 2020-08-01T03:27:14.000Z | paks/Batsh/src/main.ml | josephgodwinkimani/wrench | 00e8d2ce086357a3f37a2f864c524c4384477535 | [
"MIT"
] | null | null | null | paks/Batsh/src/main.ml | josephgodwinkimani/wrench | 00e8d2ce086357a3f37a2f864c524c4384477535 | [
"MIT"
] | null | null | null | open Core_kernel.Std
open Cmdliner
(* Options common to all commands *)
type output_type = Code | Ast | Symbols
type copts = {
output_type : output_type;
output_file : string option
}
let copts_sect = "COMMON OPTIONS"
let copts_t =
let docs = copts_sect in
let output_type =
let doc = "Print abstract s... | 28.083969 | 79 | 0.646915 |
f3cf90e9e7cafa08bd72b6b20fe4ee40e58da364 | 13,063 | ml | OCaml | src/bin_signer/main_signer.ml | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/bin_signer/main_signer.ml | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/bin_signer/main_signer.ml | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"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> *)
... | 34.927807 | 83 | 0.54329 |
8a1bc0323cc64cd98c2b4fab18715181e5983640 | 4,486 | mli | OCaml | src/ocaml/typing/405/untypeast.mli | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | src/ocaml/typing/405/untypeast.mli | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | src/ocaml/typing/405/untypeast.mli | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* Thom... | 54.048193 | 80 | 0.636647 |
f3f61e7fbd935dcca1cdb64d17918aac7ac4d9f0 | 7,768 | ml | OCaml | src/proto_alpha/lib_delegate/client_baking_nonces.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | src/proto_alpha/lib_delegate/client_baking_nonces.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | src/proto_alpha/lib_delegate/client_baking_nonces.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 39.835897 | 81 | 0.562822 |
af6867e31029da347479606a061e4ac4ae194e21 | 1,130 | mli | OCaml | lib/measure.mli | yomimono/bechamel | f3a64ed36348102a2823ed5ee5e3ab4c68d3ccaf | [
"MIT"
] | null | null | null | lib/measure.mli | yomimono/bechamel | f3a64ed36348102a2823ed5ee5e3ab4c68d3ccaf | [
"MIT"
] | null | null | null | lib/measure.mli | yomimono/bechamel | f3a64ed36348102a2823ed5ee5e3ab4c68d3ccaf | [
"MIT"
] | null | null | null | type 'a impl = (module S.MEASURE with type witness = 'a)
(** Type of module implementation to record a measure. *)
type 'a measure
(** Type of measure. ['a] represents the {i witness} to record the measure. *)
type witness
(** Abtract type of a {i witness} to be able to record a {!measure}. *)
val register : 'w impl... | 32.285714 | 79 | 0.69292 |
f34bc75ec4248fd91516372fb64b70177b6c7337 | 41 | mli | OCaml | src/test_state.mli | ChesleyTan/ascii-chat | f2670c4a9d8b8e555d6b42741b314257db942c30 | [
"MIT"
] | 17 | 2016-12-15T15:20:01.000Z | 2022-02-27T16:48:03.000Z | src/test_messaging.mli | ChesleyTan/ascii-chat | f2670c4a9d8b8e555d6b42741b314257db942c30 | [
"MIT"
] | null | null | null | src/test_messaging.mli | ChesleyTan/ascii-chat | f2670c4a9d8b8e555d6b42741b314257db942c30 | [
"MIT"
] | 3 | 2016-12-05T14:36:39.000Z | 2019-08-21T05:30:37.000Z | open OUnit2
val tests: OUnit2.test list
| 10.25 | 27 | 0.780488 |
afafeb1eae71c524cb50b66f8ed012beaa05e8ae | 1,251 | ml | OCaml | src/logic.ml | dalcoder/dalilcoin | aa6a377abd3c0d244e276eadde6a84f5badb8549 | [
"MIT"
] | 1 | 2018-06-17T19:03:30.000Z | 2018-06-17T19:03:30.000Z | src/logic.ml | dalcoder/dalilcoin | aa6a377abd3c0d244e276eadde6a84f5badb8549 | [
"MIT"
] | null | null | null | src/logic.ml | dalcoder/dalilcoin | aa6a377abd3c0d244e276eadde6a84f5badb8549 | [
"MIT"
] | 2 | 2018-06-17T19:05:08.000Z | 2019-06-29T14:39:14.000Z | (* Copyright (c) 2016 The Qeditas developers *)
(* Copyright (c) 2017-2018 The Dalilcoin developers *)
(* Distributed under the MIT software license, see the accompanying
file COPYING or http://www.opensource.org/licenses/mit-license.php. *)
open Hash
type stp =
| TpVar of int
| Base of int
| TpAll of stp
| TpArr ... | 18.397059 | 73 | 0.685052 |
8a398ec0b04a096736e9f118a490a51f5126275b | 1,039 | mli | OCaml | src/jhupllib/jhupllib_eager_nondeterminism.mli | JHU-PL-Lab/jhu-pl-lib | 571dd53f30b204224c87c66732306928e7382621 | [
"Apache-2.0"
] | 3 | 2020-08-24T16:29:40.000Z | 2020-08-24T18:18:58.000Z | src/jhupllib/jhupllib_eager_nondeterminism.mli | JHU-PL-Lab/jhu-pl-lib | 571dd53f30b204224c87c66732306928e7382621 | [
"Apache-2.0"
] | null | null | null | src/jhupllib/jhupllib_eager_nondeterminism.mli | JHU-PL-Lab/jhu-pl-lib | 571dd53f30b204224c87c66732306928e7382621 | [
"Apache-2.0"
] | null | null | null | (**
This module contains a simple definition of an eager nondeterminism monad.
This monad is eager in that it uses non-lazy structures (e.g. list) rather
than lazy structures (e.g. lazy_list). While lazy structures are useful both
to reduce memory copying and avoid unnecessary computation in the event that... | 35.827586 | 80 | 0.746872 |
af38b56243920a8038b51477d4ea1c47d7ff6c3d | 3,129 | ml | OCaml | web/bonsai_web.ml | prekel/bonsai | f346dcc20ae088d5562aa1821e6b0ea64da59dcf | [
"MIT"
] | null | null | null | web/bonsai_web.ml | prekel/bonsai | f346dcc20ae088d5562aa1821e6b0ea64da59dcf | [
"MIT"
] | null | null | null | web/bonsai_web.ml | prekel/bonsai | f346dcc20ae088d5562aa1821e6b0ea64da59dcf | [
"MIT"
] | null | null | null | open! Core
open! Js_of_ocaml
module Arrow_deprecated = struct
module Effect = Effect
module Vdom = Import.Vdom
module Start = Start.Arrow_deprecated
module Bonsai = Bonsai.Arrow_deprecated
end
module Start = Start.Proc
module Bonsai = Import.Bonsai
module Incr = Import.Incr
module Vdom = Import.Vdom
module To... | 39.607595 | 89 | 0.721317 |
f3a049632a7c077de7355b26447a398eb69a95f9 | 2,743 | ml | OCaml | hphp/hack/src/typing/typing_env_types.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_env_types.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_env_types.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"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.
*
*)
(* cf: typing_env_types_sig.mli - These files should be the same *)
open Hh_prelude
open Typing_defs
module ITySet =... | 28.278351 | 79 | 0.721473 |
8a1e2b558699c8dada2caa613ccd612403519fcd | 1,563 | mll | OCaml | chunjp/decomp/lexer.mll | nya3jp/icfpc2020 | d4f150a3a254baf2913e99662ef949ce03fad7ab | [
"Apache-2.0"
] | null | null | null | chunjp/decomp/lexer.mll | nya3jp/icfpc2020 | d4f150a3a254baf2913e99662ef949ce03fad7ab | [
"Apache-2.0"
] | 3 | 2021-08-31T20:11:34.000Z | 2022-02-27T08:40:18.000Z | chunjp/decomp/lexer.mll | nya3jp/icfpc2020 | d4f150a3a254baf2913e99662ef949ce03fad7ab | [
"Apache-2.0"
] | 2 | 2020-07-22T02:58:44.000Z | 2020-07-24T22:29:11.000Z | (**
Copyright 2020 Google LLC
Copyright 2020 Team Spacecat
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by a... | 20.298701 | 75 | 0.586052 |
8a4ab77ccb0d6ffbce649aa4d2c8712a4adcad4f | 3,869 | ml | OCaml | core/src/import.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 834 | 2015-01-02T03:14:35.000Z | 2022-03-28T05:17:24.000Z | core/src/import.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 99 | 2015-01-03T09:30:25.000Z | 2022-02-23T02:40:57.000Z | core/src/import.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 100 | 2015-02-01T10:54:19.000Z | 2022-03-15T18:23:22.000Z |
(* We do not [include Base] here, and instead import modules that [Core] doesn't extend,
because we want code in [Core] to be clear when it references a [Base] module that
[Core] is overriding. *)
module Applicative = Base.Applicative
module Avltree = Base.Avltree
module Backtrace = Base.Backtrace
module Binary_... | 32.788136 | 100 | 0.732231 |
8a2f47c09446778fc321de970310d38cbf5e0898 | 596 | ml | OCaml | data/derived/comb/progs/unify/prog7496.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/prog2689.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2689.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr;;
let pi = 4.0 *. (atan 1.0);;
let rec eval (e,x,y) =
match e with
| VarX -> x
| VarY -> y
| Sine e' -> sin (pi *. (eval (e', x, y)))
| Cosine e' -> cos... | 23.84 | 66 | 0.464765 |
afb8c7c1bb4622bb6870b51897f0cc59eb6d6ec5 | 1,347 | ml | OCaml | src/logs_top_init.ml | MisterDA/logs | 346f2cb5279a0dfee0e57fff109b8994982ce66f | [
"0BSD"
] | 75 | 2015-10-23T01:13:35.000Z | 2021-12-26T06:14:44.000Z | src/logs_top_init.ml | MisterDA/logs | 346f2cb5279a0dfee0e57fff109b8994982ce66f | [
"0BSD"
] | 41 | 2015-10-23T01:14:27.000Z | 2021-11-20T06:45:36.000Z | src/logs_top_init.ml | MisterDA/logs | 346f2cb5279a0dfee0e57fff109b8994982ce66f | [
"0BSD"
] | 18 | 2015-12-10T16:20:52.000Z | 2021-12-15T13:41:45.000Z | (*---------------------------------------------------------------------------
Copyright (c) 2015 The logs programmers. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)
... | 49.888889 | 79 | 0.57758 |
8a1a7d768f99c8c0b551f69f8c2b6620c311ccf8 | 761 | ml | OCaml | test/unittest.ml | darrenldl/fugit | 1fd352a8df725354fb19b054c3a1c8416a0ec8f8 | [
"ISC"
] | null | null | null | test/unittest.ml | darrenldl/fugit | 1fd352a8df725354fb19b054c3a1c8416a0ec8f8 | [
"ISC"
] | null | null | null | test/unittest.ml | darrenldl/fugit | 1fd352a8df725354fb19b054c3a1c8416a0ec8f8 | [
"ISC"
] | null | null | null |
module Period = struct
type t = CalendarLib.Calendar.Precise.Period.t
let pp = Delay.pp_duration
let equal = CalendarLib.Calendar.Precise.Period.equal
end
let period : Period.t Alcotest.testable = (module Period)
let periods =
let f s d =
let open Alcotest in
test_case d `Quick @@ fun () ->
check ... | 22.382353 | 58 | 0.617608 |
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.