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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17cc389382acf0ff5bbe744c2b67b85af7c11bec | 828 | ml | OCaml | simplebuild/myocamlbuild.ml | cgreenhalgh/ocaml-crosscompiling | ed2366d4941c2200d8f95cbd13ff35fb9e298752 | [
"BSD-2-Clause"
] | 3 | 2015-03-04T07:27:03.000Z | 2017-06-17T14:32:13.000Z | simplebuild/myocamlbuild.ml | cgreenhalgh/ocaml-crosscompiling | ed2366d4941c2200d8f95cbd13ff35fb9e298752 | [
"BSD-2-Clause"
] | null | null | null | simplebuild/myocamlbuild.ml | cgreenhalgh/ocaml-crosscompiling | ed2366d4941c2200d8f95cbd13ff35fb9e298752 | [
"BSD-2-Clause"
] | null | null | null | open Ocamlbuild_plugin
let toolchain = A"android"
(* ocamlfind command *)
let ocamlfind x = if toolchain = A"" then S[A"ocamlfind"; x]
else S[A"ocamlfind"; A"-toolchain"; toolchain; x]
let _ = dispatch begin function
| Before_options ->
(* by using Before_options one let command line options have an highe... | 33.12 | 91 | 0.661836 |
1769837423640c44e66e969384b99c97f440a677 | 7,918 | ml | OCaml | data/derived/comb/progs/unify/prog3618.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/prog3618.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3618.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.305648 | 148 | 0.692725 |
1742f1a5fdcfb00388a161eab6d7e34dedb36bb2 | 18,491 | ml | OCaml | data/derived/comb/progs/unify/prog6477.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/prog1637.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1637.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 33.137993 | 208 | 0.675139 |
17011ebc4314c36ab871e535de8cf0fa6bcea3c3 | 2,027 | ml | OCaml | data/fa15/0480.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/0480.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/0480.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec append xs ys = match xs with | [] -> ys | h::t -> h :: (append t ys);;
let rec digitsOfInt n =
if n <= 0 then [] else append (digitsOfInt (n / 10)) [n mod 10];;
let digits n = digitsOfInt (abs n);;
let rec sumList xs = match xs with | [] -> 0 | h::t -> h + (sumList t);;
let rec additivePersistence n =
... | 16.479675 | 78 | 0.496793 |
1746161c899ca25f937aee167a0035ac887055d0 | 8,572 | ml | OCaml | src/irmin-chunk/irmin_chunk.ml | patricoferris/irmin | a255e9b7b788401712359e0c776bc181e8eb20ab | [
"0BSD"
] | null | null | null | src/irmin-chunk/irmin_chunk.ml | patricoferris/irmin | a255e9b7b788401712359e0c776bc181e8eb20ab | [
"0BSD"
] | null | null | null | src/irmin-chunk/irmin_chunk.ml | patricoferris/irmin | a255e9b7b788401712359e0c776bc181e8eb20ab | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-2021 Thomas Gazagnaire <thomas@gazagnaire.org>
* Copyright (c) 2015 Mounir Nasr Allah <mounir@nasrallah.co>
*
* 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 permiss... | 31.866171 | 82 | 0.612109 |
17f646c3fd33a92169d0aa0e24081a3a10f7162b | 1,842 | ml | OCaml | src/base/compute/owl_computation_graph_sig.ml | pvdhove/owl | 072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31 | [
"MIT"
] | null | null | null | src/base/compute/owl_computation_graph_sig.ml | pvdhove/owl | 072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31 | [
"MIT"
] | null | null | null | src/base/compute/owl_computation_graph_sig.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 type Sig = sig
module Optimiser : Owl_computation_optimiser_sig.Sig
open Optimiser.Operator.Symbol.Shape.Type
open Optimiser.Operator.Symbol.Shape.Type.Device
(** {6 Type defi... | 21.418605 | 105 | 0.634093 |
17b9b269b88a562bce36eebfc0c10953ed7afbef | 1,298 | ml | OCaml | lib/table.ml | talex5/capnp-rpc | 058852ebc99d9886baf0170efa368f2278742747 | [
"Apache-2.0"
] | null | null | null | lib/table.ml | talex5/capnp-rpc | 058852ebc99d9886baf0170efa368f2278742747 | [
"Apache-2.0"
] | 1 | 2021-04-23T08:05:36.000Z | 2021-04-23T08:05:36.000Z | lib/table.ml | talex5/capnp-rpc | 058852ebc99d9886baf0170efa368f2278742747 | [
"Apache-2.0"
] | null | null | null | let failf fmt = Fmt.kstrf failwith fmt
module Allocating ( ) = struct
type key = Uint32.t
type 'a t = {
mutable next : key; (* The lowest ID we've never used *)
mutable free : key list; (* Keys we can recycle *)
used : (key, 'a) Hashtbl.t;
}
let make () =
{ next = Uint32.zero; free = [... | 21.278689 | 79 | 0.596302 |
17e64f126370ec9a12c461a24ca1037da5ee97c8 | 4,324 | mli | OCaml | src/nvectors/nvector_pthreads.mli | Octachron/sundialsml | e941ad5265d6d5b152210c8d5df6b2b871af07dc | [
"BSD-3-Clause"
] | null | null | null | src/nvectors/nvector_pthreads.mli | Octachron/sundialsml | e941ad5265d6d5b152210c8d5df6b2b871af07dc | [
"BSD-3-Clause"
] | null | null | null | src/nvectors/nvector_pthreads.mli | Octachron/sundialsml | e941ad5265d6d5b152210c8d5df6b2b871af07dc | [
"BSD-3-Clause"
] | null | null | null | (***********************************************************************)
(* *)
(* OCaml interface to Sundials *)
(* *)
(* Timothy B... | 43.24 | 94 | 0.625347 |
aafbbf7e7f03608f14834968cd38c4e30776f25e | 159 | ml | OCaml | tests/unittests.ml | ostera/ocaml-x509 | f26c23a033628f99e1fdd456e85c5053c0b12aff | [
"BSD-2-Clause"
] | 1 | 2019-06-11T20:20:44.000Z | 2019-06-11T20:20:44.000Z | tests/unittests.ml | DavidAlphaFox/ocaml-x509 | 37e238b0cbed457a9332a2cb24435094579c9990 | [
"BSD-2-Clause"
] | 1 | 2019-05-17T14:14:19.000Z | 2019-05-17T20:11:49.000Z | tests/unittests.ml | DavidAlphaFox/ocaml-x509 | 37e238b0cbed457a9332a2cb24435094579c9990 | [
"BSD-2-Clause"
] | 1 | 2019-05-17T13:15:39.000Z | 2019-05-17T13:15:39.000Z | open OUnit2
let suite =
"All" >::: [
"Revoke" >::: Revoke.revoke_tests ;
"X509" >::: X509tests.x509_tests ;
"CRL" >::: Crltests.crl_tests ;
]
| 17.666667 | 39 | 0.553459 |
179774c5f218a6b4e5416c868a4357008d0708d6 | 4,974 | ml | OCaml | src/lib/mina_base/ledger_hash.ml | kobigurk/mina | 585c76fc631616a65c1c8eb067c625376d498ad2 | [
"Apache-2.0"
] | 1 | 2022-01-03T07:25:40.000Z | 2022-01-03T07:25:40.000Z | src/lib/mina_base/ledger_hash.ml | kobigurk/mina | 585c76fc631616a65c1c8eb067c625376d498ad2 | [
"Apache-2.0"
] | null | null | null | src/lib/mina_base/ledger_hash.ml | kobigurk/mina | 585c76fc631616a65c1c8eb067c625376d498ad2 | [
"Apache-2.0"
] | null | null | null | open Core
open Import
open Snark_params
open Snarky_backendless
open Tick
open Let_syntax
module Merkle_tree =
Snarky_backendless.Merkle_tree.Checked
(Tick)
(struct
type value = Field.t
type var = Field.Var.t
let typ = Field.typ
let merge ~height h1 h2 =
Tick.make_checked (... | 32.298701 | 79 | 0.661238 |
17f4dd1d37e323a3c89daf39293c63694e2ac19b | 5,555 | ml | OCaml | piqilib/piqi_pp.ml | smarkets/piqi | 4ff1485a6606df2eb3b210418b443101e24e4df8 | [
"Apache-2.0"
] | null | null | null | piqilib/piqi_pp.ml | smarkets/piqi | 4ff1485a6606df2eb3b210418b443101e24e4df8 | [
"Apache-2.0"
] | null | null | null | piqilib/piqi_pp.ml | smarkets/piqi | 4ff1485a6606df2eb3b210418b443101e24e4df8 | [
"Apache-2.0"
] | null | null | null | (*pp camlp4o -I `ocamlfind query piqi.syntax` pa_labelscope.cmo pa_openin.cmo *)
(*
Copyright 2009, 2010, 2011 Anton Lavrik
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:/... | 28.487179 | 117 | 0.594419 |
17c0842071f58e4aadbf34fb78599998f7d8bd82 | 312 | ml | OCaml | test/conditional.ml | coord-e/mlml | ec34b1fe8766901fab6842b790267f32b77a2861 | [
"MIT"
] | 51 | 2019-04-06T14:22:22.000Z | 2021-11-24T09:53:15.000Z | test/conditional.ml | coord-e/mlml | ec34b1fe8766901fab6842b790267f32b77a2861 | [
"MIT"
] | null | null | null | test/conditional.ml | coord-e/mlml | ec34b1fe8766901fab6842b790267f32b77a2861 | [
"MIT"
] | 4 | 2019-12-30T01:08:42.000Z | 2022-02-11T06:36:55.000Z | let () =
Tester.expr "if true then 43 else 10";
Tester.expr "if false then 10 else 40 + 3";
Tester.expr
{|
if 1 = 2
then 4
else (
let a = 10 in
if a * 2 = 20
then 43
else 0
)
|};
Tester.f {|
if false
then print_endline "true";
print_endline "outer!"
|}
;;
| 14.857143 | 45 | 0.519231 |
171d58dfc52555222f75fdf8e074aa2f933d44f9 | 3,950 | ml | OCaml | src/lib/cli_lib/arg_type.ml | paul-schaaf/coda | 2292aed8e1b3c495e1e9ec2a956e07f6d4ab57ba | [
"Apache-2.0"
] | null | null | null | src/lib/cli_lib/arg_type.ml | paul-schaaf/coda | 2292aed8e1b3c495e1e9ec2a956e07f6d4ab57ba | [
"Apache-2.0"
] | null | null | null | src/lib/cli_lib/arg_type.ml | paul-schaaf/coda | 2292aed8e1b3c495e1e9ec2a956e07f6d4ab57ba | [
"Apache-2.0"
] | null | null | null | open Core
open Signature_lib
let validate_int16 x =
let max_port = 1 lsl 16 in
if 0 <= x && x < max_port then Ok x
else Or_error.errorf !"Port not between 0 and %d" max_port
let int16 =
Command.Arg_type.map Command.Param.int
~f:(Fn.compose Or_error.ok_exn validate_int16)
let public_key_compressed =
Com... | 30.384615 | 82 | 0.683797 |
177cd0fa139089eab624b28eab6c2578527fc1e1 | 3,361 | mli | OCaml | cil/src/ext/pta/golf.mli | liangjs/relay | de123b8474c3485abaedcbc52be437d0d27c131d | [
"BSD-3-Clause"
] | 2 | 2019-10-05T04:17:01.000Z | 2021-03-08T14:30:34.000Z | cil/src/ext/pta/golf.mli | liangjs/relay | de123b8474c3485abaedcbc52be437d0d27c131d | [
"BSD-3-Clause"
] | null | null | null | cil/src/ext/pta/golf.mli | liangjs/relay | de123b8474c3485abaedcbc52be437d0d27c131d | [
"BSD-3-Clause"
] | 3 | 2017-07-04T11:06:22.000Z | 2022-02-25T05:55:27.000Z | (*
*
* Copyright (c) 2001-2002,
* John Kodumal <jkodumal@eecs.berkeley.edu>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain th... | 38.632184 | 83 | 0.7349 |
17cb6cdbd02bfa63983e3d31f4f92d53cad08299 | 86,292 | ml | OCaml | src/typing/flow_error.ml | gregeinfrank/flow | 466ff9b70de57ed2ffef9de8bea9f2f16cf170bb | [
"MIT"
] | 2 | 2019-01-31T09:33:15.000Z | 2019-01-31T09:35:08.000Z | src/typing/flow_error.ml | gregeinfrank/flow | 466ff9b70de57ed2ffef9de8bea9f2f16cf170bb | [
"MIT"
] | null | null | null | src/typing/flow_error.ml | gregeinfrank/flow | 466ff9b70de57ed2ffef9de8bea9f2f16cf170bb | [
"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 Type
open Utils_js
open Reason
exception EDebugThrow of Loc.t
exception EMergeTimeout of float
type invalid_char_set =
| Duplic... | 40.117155 | 107 | 0.661892 |
17bd91b29dcb31b30ceb6d92d26732b8dfb8245c | 2,946 | ml | OCaml | random_props.ml | KirrimK/Poussin | 9dd238fa2d3ca41e8eca0b24b19cbf2742444d75 | [
"MIT"
] | 5 | 2021-12-03T10:23:37.000Z | 2022-01-03T09:26:13.000Z | random_props.ml | KirrimK/Poulet | 9dd238fa2d3ca41e8eca0b24b19cbf2742444d75 | [
"MIT"
] | null | null | null | random_props.ml | KirrimK/Poulet | 9dd238fa2d3ca41e8eca0b24b19cbf2742444d75 | [
"MIT"
] | null | null | null | (* Module Random_props*)
open Proposition;;
open Proof;;
(* Générer une proposition aléatoire *)
let prop_aleatoire = fun idmin prob_nonterm prob_term profondeur_max->
let (pb_name_new_t, pb_name_old_t, pb_true_t) = prob_term in
let (pb_name_new, pb_name_old, pb_imply, pb_and, pb_or, pb_true) = prob_nonterm in
... | 45.323077 | 124 | 0.671079 |
1783e07abd9ea85fbaa663c5a130955dde7a326f | 716 | ml | OCaml | example_tcp_header/src/example_tcp_header.ml | holyshared/ocaml-scrap | 922e2805e3f9e738cfb68ec052cb811a488f45d1 | [
"MIT"
] | 2 | 2018-07-21T13:30:51.000Z | 2021-07-20T11:26:54.000Z | example_tcp_header/src/example_tcp_header.ml | holyshared/ocaml-scrap | 922e2805e3f9e738cfb68ec052cb811a488f45d1 | [
"MIT"
] | 1 | 2017-03-30T04:24:57.000Z | 2017-03-30T04:25:40.000Z | example_tcp_header/src/example_tcp_header.ml | holyshared/ocaml-scrap | 922e2805e3f9e738cfb68ec052cb811a488f45d1 | [
"MIT"
] | 1 | 2021-07-20T11:24:30.000Z | 2021-07-20T11:24:30.000Z | open Tcp_header
let () =
let header = parse "tests/fixtures/tcp_header.byte" in
print_endline (string_of_int header.src_port);
print_endline (string_of_int header.dest_port);
print_endline (string_of_int header.seq_number);
print_endline (string_of_int header.ack_number);
print_endline (string_of_bool head... | 39.777778 | 56 | 0.804469 |
1747ca746c36c894ea112756c47016ed7507b098 | 9,401 | ml | OCaml | Comp-302/final-practice.ml | shubymao/McGill-Public | f7195ade317cdff8eaefc2422d36e2ef5864ee7f | [
"Apache-2.0"
] | 48 | 2017-11-03T10:51:36.000Z | 2022-03-20T07:04:34.000Z | Comp-302/final-practice.ml | shubymao/McGill-Public | f7195ade317cdff8eaefc2422d36e2ef5864ee7f | [
"Apache-2.0"
] | 4 | 2018-02-27T00:40:36.000Z | 2021-03-06T01:54:21.000Z | Comp-302/final-practice.ml | shubymao/McGill-Public | f7195ade317cdff8eaefc2422d36e2ef5864ee7f | [
"Apache-2.0"
] | 33 | 2017-10-13T23:43:31.000Z | 2021-10-31T22:12:49.000Z | let listToString l = match l with
| [] -> ""
| l -> let rec toString l = match l with
| [] -> ""
| [h] -> string_of_int h
| hd::tl -> string_of_int hd ^ ", " ^ toString tl
in
toString l
(* We define a type of simple binary trees with data in their nodes *)
type 'a tree
= Leaf
| Node o... | 32.305842 | 103 | 0.560685 |
afe0a4998eb460025470af482cc4f86bf51ed38c | 1,180 | ml | OCaml | lib/encoder.ml | oklm-wsh/MrMime | 4d2a9dc75905927a092c0424cff7462e2b26bb96 | [
"MIT"
] | 32 | 2016-04-21T12:34:49.000Z | 2018-11-15T12:47:29.000Z | lib/encoder.ml | oklm-wsh/MrMime | 4d2a9dc75905927a092c0424cff7462e2b26bb96 | [
"MIT"
] | 2 | 2017-08-21T00:34:33.000Z | 2019-01-14T21:00:09.000Z | lib/encoder.ml | oklm-wsh/MrMime | 4d2a9dc75905927a092c0424cff7462e2b26bb96 | [
"MIT"
] | 5 | 2016-06-06T13:33:06.000Z | 2019-01-25T18:17:50.000Z | type t =
{ mutable buffer : Bytes.t
; mutable pos : int }
type 'r partial = [> `Partial of (Bytes.t * int * int * (int -> 'r)) ] as 'r
type 'r k0 = (t -> 'r) -> t -> 'r
type ('a, 'r) k1 = 'a -> (t -> 'r) -> t -> 'r
type ('a, 'b, 'r) k2 = 'a -> 'b -> (t -> 'r) -> t -> 'r
let make () =
{ buffer ... | 28.095238 | 78 | 0.528814 |
17837753ec42797562cc7b48beb3ab731d31afee | 9,672 | ml | OCaml | src/reason-parser/reason_layout.ml | Drup/reason | 8f71db0b88c31842d866d46a18b71a1ce1709567 | [
"MIT"
] | 9,879 | 2016-05-17T20:15:20.000Z | 2021-01-07T19:50:00.000Z | src/reason-parser/reason_layout.ml | snu-development/reason | b2887ec0eb0bd60cc842d062bd874edef5495dee | [
"MIT"
] | 1,985 | 2016-05-17T20:26:17.000Z | 2021-01-07T07:38:52.000Z | src/reason-parser/reason_layout.ml | snu-development/reason | b2887ec0eb0bd60cc842d062bd874edef5495dee | [
"MIT"
] | 573 | 2016-05-17T20:15:52.000Z | 2020-12-18T09:42:26.000Z | module Easy_format = Vendored_easy_format
module Comment = Reason_comment
module Range = Reason_location.Range
type break_criterion =
| Never
| IfNeed
| Always
(* Always_rec not only will break, it will break recursively up to the root *)
| Always_rec
(*
Modeling separators:
Special ability to render the... | 32.897959 | 114 | 0.661084 |
aa697642c09b3405bacc178777e83be28020f44c | 1,299 | ml | OCaml | ocaml_debug_adapter/main.ml | hanjiexi/ocamlearlybird | 7a6137a06415b39be8dfbed7786b6c516c189523 | [
"MIT"
] | null | null | null | ocaml_debug_adapter/main.ml | hanjiexi/ocamlearlybird | 7a6137a06415b39be8dfbed7786b6c516c189523 | [
"MIT"
] | null | null | null | ocaml_debug_adapter/main.ml | hanjiexi/ocamlearlybird | 7a6137a06415b39be8dfbed7786b6c516c189523 | [
"MIT"
] | null | null | null | module Session_set = BatSet.Make (struct
type t = Session.t
let compare a b = Session.id a - Session.id b
end)
let sessions = ref Session_set.empty
let on_connection in_chan out_chan =
let session = Session.create in_chan out_chan in
sessions := Session_set.add session !sessions;
Session.start session... | 28.23913 | 66 | 0.69515 |
17d496a55c70260209c2b6ced5b4ec738859a071 | 8,111 | mly | OCaml | lib/modelParser.mly | csgordon/herdtools7 | 0b068a7e84eff5edcf3ed495c640d525cd65c545 | [
"CECILL-B"
] | null | null | null | lib/modelParser.mly | csgordon/herdtools7 | 0b068a7e84eff5edcf3ed495c640d525cd65c545 | [
"CECILL-B"
] | null | null | null | lib/modelParser.mly | csgordon/herdtools7 | 0b068a7e84eff5edcf3ed495c640d525cd65c545 | [
"CECILL-B"
] | null | null | null | %{
(****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(... | 24.578788 | 91 | 0.57009 |
179dc2db4d5d1a178ac109f4627c57f639a93767 | 823 | ml | OCaml | examples/freeform_multiselect/main.ml | prekel/bonsai | f346dcc20ae088d5562aa1821e6b0ea64da59dcf | [
"MIT"
] | 172 | 2019-11-18T13:19:13.000Z | 2022-03-13T00:50:07.000Z | examples/freeform_multiselect/main.ml | prekel/bonsai | f346dcc20ae088d5562aa1821e6b0ea64da59dcf | [
"MIT"
] | 17 | 2019-11-21T19:01:59.000Z | 2022-01-25T14:38:29.000Z | examples/freeform_multiselect/main.ml | prekel/bonsai | f346dcc20ae088d5562aa1821e6b0ea64da59dcf | [
"MIT"
] | 22 | 2020-01-19T02:54:15.000Z | 2022-03-01T14:50:29.000Z | open! Core
open! Bonsai_web
let components =
let open! Bonsai.Let_syntax in
let open! Bonsai_web_ui_freeform_multiselect in
let%sub control =
Freeform_multiselect.create ~placeholder:"Enter something here.." ()
in
return
@@ let%map selected, control, (_ : String.Set.t -> unit Ui_effect.t) = control in
... | 28.37931 | 87 | 0.682868 |
176076994ce5eb38320c04abb22e9d1816b45637 | 31,876 | ml | OCaml | hphp/hack/src/hh_fanout/hh_fanout.ml | fyunaz/hhvm | fc52cae6762431395818de9edbb0b918167c4b65 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-05-15T22:07:47.000Z | 2021-05-15T22:07:47.000Z | hphp/hack/src/hh_fanout/hh_fanout.ml | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-04-19T09:53:42.000Z | 2021-04-19T09:53:42.000Z | hphp/hack/src/hh_fanout/hh_fanout.ml | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"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 Hh_prelude
type env = {
from: string;
client_id: string;
root: Path.t;
ignore_hh_version: bool;
is_64bit: bool... | 31.128906 | 144 | 0.685375 |
17c25350fb0b9e54704ee6f7534b25681bcd4dad | 334 | mli | OCaml | infer/src/pulse/PulseSummary.mli | GaloisNeko/infer | 55de99b46574050506618acfc2ce9c49df66d27a | [
"MIT"
] | null | null | null | infer/src/pulse/PulseSummary.mli | GaloisNeko/infer | 55de99b46574050506618acfc2ce9c49df66d27a | [
"MIT"
] | null | null | null | infer/src/pulse/PulseSummary.mli | GaloisNeko/infer | 55de99b46574050506618acfc2ce9c49df66d27a | [
"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
type t = PulseAbductiveDomain.PrePost.t list
val of_posts : PulseAbductiveDomain.t list -> t
val pp : Format.formatter... | 23.857143 | 66 | 0.721557 |
17ef8f31c68ef4a513164160a552f68d5e7be936 | 3,384 | ml | OCaml | lib/main.ml | dinosaure/mirage-solo5 | ef89ad2e5e7a30ea5aff28254016d68f02ef7606 | [
"ISC"
] | null | null | null | lib/main.ml | dinosaure/mirage-solo5 | ef89ad2e5e7a30ea5aff28254016d68f02ef7606 | [
"ISC"
] | 2 | 2019-11-01T18:54:40.000Z | 2019-11-01T18:54:56.000Z | lib/main.ml | dinosaure/mirage-solo5 | ef89ad2e5e7a30ea5aff28254016d68f02ef7606 | [
"ISC"
] | null | null | null | (* Lightweight thread library for Objective Caml
* http://www.ocsigen.org/lwt
* Module Lwt_main
* Copyright (C) 2009 Jérémie Dimino
* Copyright (C) 2010 Anil Madhavapeddy <anil@recoil.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Publ... | 37.186813 | 111 | 0.669326 |
aa1fc596c76524d4979b6599de8128abea1fd69e | 2,193 | ml | OCaml | data/sp14/2233.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/2233.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/2233.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 buildCosine e = Cosine e;;
let buildSine e = Sine e;;
let buildX () = VarX;;
let buildY () = VarY;;
let rec build (rand,depth) =
if depth > 0
then
... | 16.488722 | 67 | 0.526676 |
aac78c443b27b40634da005aabc554a2ca535d1d | 13,535 | ml | OCaml | src/lib_stdlib_unix/lwt_utils_unix.ml | osiz-blockchainapp/mica-hCoinSandbox | f877e01bbef8e748a52490bf0af599c654754148 | [
"MIT"
] | null | null | null | src/lib_stdlib_unix/lwt_utils_unix.ml | osiz-blockchainapp/mica-hCoinSandbox | f877e01bbef8e748a52490bf0af599c654754148 | [
"MIT"
] | null | null | null | src/lib_stdlib_unix/lwt_utils_unix.ml | osiz-blockchainapp/mica-hCoinSandbox | f877e01bbef8e748a52490bf0af599c654754148 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 33.585608 | 83 | 0.562172 |
aaee5e387f300d42aa750bb24ca9643fba2c637f | 3,624 | ml | OCaml | src/hostnet_test/test_ping.ml | haesbaert/vpnkit | 854498c13b1884d4a48d84f3569eb34681af2126 | [
"Apache-2.0"
] | null | null | null | src/hostnet_test/test_ping.ml | haesbaert/vpnkit | 854498c13b1884d4a48d84f3569eb34681af2126 | [
"Apache-2.0"
] | null | null | null | src/hostnet_test/test_ping.ml | haesbaert/vpnkit | 854498c13b1884d4a48d84f3569eb34681af2126 | [
"Apache-2.0"
] | null | null | null | open Lwt.Infix
let src =
let src = Logs.Src.create "tcp" ~doc:"Test ICMP ping" in
Logs.Src.set_level src (Some Logs.Debug);
src
let failf fmt = Fmt.kstr failwith fmt
module Log = (val Logs.src_log src : Logs.LOG)
let google_1 = Ipaddr.V4.of_string_exn "8.8.8.8"
let google_2 = Ipaddr.V4.of_string_exn "8.8.4.4"... | 39.391304 | 116 | 0.601821 |
178f8dba217a2ae9d440530fd9c96eb5cbc1f108 | 2,520 | ml | OCaml | test/generators/gen_rules/gen_rules.ml | gpetiot/odoc | da5986d73a66388adae1cc0f77336885d12d4ee8 | [
"0BSD"
] | null | null | null | test/generators/gen_rules/gen_rules.ml | gpetiot/odoc | da5986d73a66388adae1cc0f77336885d12d4ee8 | [
"0BSD"
] | null | null | null | test/generators/gen_rules/gen_rules.ml | gpetiot/odoc | da5986d73a66388adae1cc0f77336885d12d4ee8 | [
"0BSD"
] | null | null | null | let html_target_rule path : Gen_rules_lib.sexp =
List
[
Atom "action";
List
[
Atom "progn";
List
[
Atom "run";
Atom "odoc";
Atom "html-generate";
Atom "--indent";
Atom "--flat";
... | 24.466019 | 73 | 0.47381 |
179f9890d940ba5434c818ab308e2a0a499bba93 | 1,191 | ml | OCaml | test/unit/fixtures/instrument/match_408.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | test/unit/fixtures/instrument/match_408.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | test/unit/fixtures/instrument/match_408.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | 1 | 2020-11-17T11:14:18.000Z | 2020-11-17T11:14:18.000Z | (* Exception patterns under an or-pattern. *)
let () =
match `A with
| `A -> ()
| exception Exit | exception Not_found -> ()
(* Exception under a constraint. *)
let () =
match () with
| () -> ()
| ((exception Exit) : unit) -> ()
(* Exception or-pattern under a constraint. *)
let () =
match () with
| (... | 20.534483 | 64 | 0.552477 |
17a55794a6e82e5b8a712d3262c508e36e476596 | 26,918 | ml | OCaml | src/proto_alpha/lib_client_commands/client_proto_multisig_commands.ml | connectedcustomer/Project1 | e84e4a645bc6f45ba68e023d67274d550231ad03 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_client_commands/client_proto_multisig_commands.ml | connectedcustomer/Project1 | e84e4a645bc6f45ba68e023d67274d550231ad03 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_client_commands/client_proto_multisig_commands.ml | connectedcustomer/Project1 | e84e4a645bc6f45ba68e023d67274d550231ad03 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2019 Nomadic Labs <contact@nomadic-labs.com> *)
... | 46.490501 | 137 | 0.625306 |
17ea37e1df5423bab18404a75ac33ac79cb3136d | 479 | mli | OCaml | ml-proto/src/given/lib.mli | binji/spec | 3d2937ada38bccea01ce38c362ca42586ece75d2 | [
"Apache-2.0"
] | 1 | 2021-05-29T15:58:33.000Z | 2021-05-29T15:58:33.000Z | ml-proto/src/given/lib.mli | binji/spec | 3d2937ada38bccea01ce38c362ca42586ece75d2 | [
"Apache-2.0"
] | null | null | null | ml-proto/src/given/lib.mli | binji/spec | 3d2937ada38bccea01ce38c362ca42586ece75d2 | [
"Apache-2.0"
] | null | null | null | (*
* (c) 2014 Andreas Rossberg
*)
(* Things that should be in the OCaml library... *)
module List :
sig
val take : int -> 'a list -> 'a list
val drop : int -> 'a list -> 'a list
val last : 'a list -> 'a (* raise Failure *)
val split_last : 'a list -> 'a list * 'a (* raise Failure *)
end
module Option :
si... | 18.423077 | 62 | 0.572025 |
1792b299d745f7a9ba0df7fdef01546ce6d75227 | 695 | ml | OCaml | data/fa15_min/2065.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15_min/2065.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/2065.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.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... | 15.444444 | 60 | 0.500719 |
17a7dfc6ea612e80a5280743d6cb3fb3c1e27865 | 906 | ml | OCaml | ocaml/fizzbuzz.ml | idkjs/til | eee606856ed11d57e96060f62adf0dd072f8bff1 | [
"WTFPL"
] | 2 | 2020-05-11T13:43:27.000Z | 2020-07-31T11:57:19.000Z | ocaml/fizzbuzz.ml | idkjs/til | eee606856ed11d57e96060f62adf0dd072f8bff1 | [
"WTFPL"
] | 2 | 2020-09-27T02:35:38.000Z | 2021-03-08T08:33:02.000Z | ocaml/fizzbuzz.ml | idkjs/til | eee606856ed11d57e96060f62adf0dd072f8bff1 | [
"WTFPL"
] | 1 | 2020-05-11T13:44:04.000Z | 2020-05-11T13:44:04.000Z | open Printf
let fizzbuzz n =
for i = 1 to n do
match i with
| _ when i mod 15 = 0 -> printf "FizzBuzz\n"
| _ when i mod 5 = 0 -> printf "Buzz\n"
| _ when i mod 3 = 0 -> printf "Fizz\n"
| _ -> printf "%d\n" i
done
;;
(* tail recurtion *)
let fizzbuzz2 n =
let rec iter i =
let _ =
ma... | 19.276596 | 50 | 0.512141 |
17e672e63c40eef652955ba5d783f7f2d3e5eaca | 3,426 | ml | OCaml | src/lex_buffer.ml | kujon/ppx_bs_css | 666c5faff3484ad2c7cb4d924564703605cfc8c1 | [
"MIT"
] | null | null | null | src/lex_buffer.ml | kujon/ppx_bs_css | 666c5faff3484ad2c7cb4d924564703605cfc8c1 | [
"MIT"
] | null | null | null | src/lex_buffer.ml | kujon/ppx_bs_css | 666c5faff3484ad2c7cb4d924564703605cfc8c1 | [
"MIT"
] | null | null | null | (* Based on
* https://github.com/smolkaj/ocaml-parsing/blob/master/src/LexBuffer.ml *)
(** A custom lexbuffer that automatically keeps track of the source location.
This module is a thin wrapper arounds sedlexing's default buffer, which does
not provide this functionality. *)
(** the lex buffer type *)
type ... | 28.55 | 80 | 0.677466 |
17f3282dce343a96aa5226e0254661664a1b07a6 | 8,120 | ml | OCaml | bin/client.ml | shakthimaan/ocluster | ac776d53cc7dfeb89555e148b1626cb10b8c8a39 | [
"Apache-2.0"
] | 13 | 2020-07-19T18:32:53.000Z | 2022-03-23T14:29:52.000Z | bin/client.ml | shakthimaan/ocluster | ac776d53cc7dfeb89555e148b1626cb10b8c8a39 | [
"Apache-2.0"
] | 38 | 2020-07-16T09:41:52.000Z | 2022-03-29T13:53:35.000Z | bin/client.ml | shakthimaan/ocluster | ac776d53cc7dfeb89555e148b1626cb10b8c8a39 | [
"Apache-2.0"
] | 13 | 2020-07-19T16:56:27.000Z | 2022-03-03T15:46:05.000Z | open Lwt.Infix
open Capnp_rpc_lwt
let or_die = function
| Ok x -> x
| Error `Msg m -> failwith m
let read_first_line path =
let ch = open_in_bin path in
Fun.protect (fun () -> input_line ch)
~finally:(fun () -> close_in ch)
let rec tail job start =
Cluster_api.Job.log job start >>= function
| Error (... | 27.90378 | 137 | 0.662192 |
bce071bcd810c97a2479ebd9c1b2bad4ce2e66c5 | 797 | ml | OCaml | data/sp14_min/2892.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/2892.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/2892.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr;;
let rec exprToString e =
match e with
| VarX -> "x"
| VarY -> "y"
| Sine s -> "pi* " + (exprToString s);;
(* fix
type expr =
| VarX
| VarY
| Sin... | 14.759259 | 41 | 0.549561 |
172e02d3e320ae44f9c5f9f96327b88952614cc9 | 6,564 | ml | OCaml | hphp/hack/test/hackfmt/verify_idempotence.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/hackfmt/verify_idempotence.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2022-02-17T04:00:03.000Z | 2022-03-24T03:45:33.000Z | hphp/hack/test/hackfmt/verify_idempotence.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-01-06T04:58:57.000Z | 2022-01-06T04:58:57.000Z | (*
* 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.
*
*)
(** hackfmt promises that on a file with no syntax errors, it will not add,
remove, or modify tokens except for trailing c... | 38.162791 | 93 | 0.721511 |
17bd1d2416831412dffb779b09b8f52d19c11eaa | 1,519 | ml | OCaml | duniverse/bisect_ppx/src/ppx/comments.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/bisect_ppx/src/ppx/comments.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/bisect_ppx/src/ppx/comments.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (* This Source Code Form is subject to the terms of the Mozilla Public License,
v. 2.0. If a copy of the MPL was not distributed with this file, You can
obtain one at http://mozilla.org/MPL/2.0/. *)
let no_comment_parsing = ref false
type t = {
mutable ignored_intervals : (int * int) list;
mutable mar... | 29.211538 | 79 | 0.676103 |
17bde87ab2ef94d3594ae8b6b790c73d90ec1542 | 21,673 | ml | OCaml | src/services/autocomplete/autocompleteService_js.ml | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | null | null | null | src/services/autocomplete/autocompleteService_js.ml | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | null | null | null | src/services/autocomplete/autocompleteService_js.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.
*)
open Autocomplete_js
open Base.Result
open ServerProt.Response
open Parsing_heaps_utils
open Loc_collections
let add_autocomplete_... | 36.242475 | 113 | 0.652194 |
17687433adaf97b43001eee4df45a52a6b02167c | 2,075 | ml | OCaml | huf_hist.ml | alexbaretta/dawg | 3d98d41ae72884e99938e41149cfb08203dec792 | [
"BSD-3-Clause"
] | 2 | 2017-03-02T19:09:01.000Z | 2017-03-03T08:57:43.000Z | huf_hist.ml | alexbaretta/dawg | 3d98d41ae72884e99938e41149cfb08203dec792 | [
"BSD-3-Clause"
] | null | null | null | huf_hist.ml | alexbaretta/dawg | 3d98d41ae72884e99938e41149cfb08203dec792 | [
"BSD-3-Clause"
] | null | null | null | type bin = {
left: float;
mean: float;
right : float
}
let rec huf_loop best best_f prefix = function
| [] | [_] ->
let (best_prefix, best_node, best_tail) = best in
List.rev_append best_prefix (best_node :: best_tail)
| hd :: ((nxt :: nxt_tl) as tl) ->
let (hd_bin, hd_f) = hd in
let (nxt_bin... | 30.072464 | 77 | 0.602892 |
1769b526aea8e6b90fb6885d07e7f9e5931b741a | 21,390 | mli | OCaml | src/pre/lib/cfg.mli | kupl/MicSE | f23575accb2704cb2bc6f71b91bfed657dd7b9a6 | [
"MIT"
] | 17 | 2021-06-16T11:43:15.000Z | 2022-03-04T16:47:31.000Z | src/pre/lib/cfg.mli | kupl/MicSE | f23575accb2704cb2bc6f71b91bfed657dd7b9a6 | [
"MIT"
] | 26 | 2020-09-09T05:23:28.000Z | 2021-12-10T10:08:54.000Z | src/pre/lib/cfg.mli | kupl/MicSE | f23575accb2704cb2bc6f71b91bfed657dd7b9a6 | [
"MIT"
] | null | null | null | (* Control Flow Graph representation of the Michelson program *)
(* Original Michelson program is just functional instruction sequences,
so in order to make control flow graph, we need to translate the michelson code
into imperative code.
*)
(********************************************************************... | 41.055662 | 256 | 0.498457 |
17c060a913b5c22ebe15123a18b177bef99a689a | 17,856 | ml | OCaml | lib/Translation_unit.ml | kmh11/ocamlformat | 5424e14e04c5ff2ef934bca129cbaa9c11b2be74 | [
"MIT"
] | null | null | null | lib/Translation_unit.ml | kmh11/ocamlformat | 5424e14e04c5ff2ef934bca129cbaa9c11b2be74 | [
"MIT"
] | null | null | null | lib/Translation_unit.ml | kmh11/ocamlformat | 5424e14e04c5ff2ef934bca129cbaa9c11b2be74 | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCamlFormat *)
(* *)
(* ... | 41.429234 | 79 | 0.563676 |
179bbc0e7aa8dd966d49c6d349ee302f6c61ab57 | 8,527 | ml | OCaml | hphp/hack/src/server/serverLocalConfig.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverLocalConfig.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverLocalConfig.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"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 Config_file.Getters
open Hh_core
type t = {
use_watchman: bool;
watchman_init_timeout: int; (* in seconds... | 36.75431 | 92 | 0.775888 |
17dfbe14ce05663359951e570d6cc2402dfb1c76 | 631 | ml | OCaml | fscw/fscw_tree.ml | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | 1 | 2018-02-10T02:52:09.000Z | 2018-02-10T02:52:09.000Z | fscw/fscw_tree.ml | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | null | null | null | fscw/fscw_tree.ml | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | null | null | null | type section =
| Prologue
| CPrologue
| FSCPrologue
| RequiredDecls
| NativeImplementation
type pos = string * int
type required_decl =
| RequireStruct of string
| RequireTypedef of string
| RequireFunction of string * bool
| RequireValue of string (* * bool *)
| AutoGenerate of string
| EmitTypeinfo of string
| Emit... | 19.121212 | 45 | 0.729002 |
17cd93a597d6c3c6b182e61bed1397db361cb8a4 | 10,554 | ml | OCaml | src/lib_base/time.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | src/lib_base/time.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | src/lib_base/time.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 32.473846 | 164 | 0.573906 |
17b064d6f6b38dc6f8f8e63a0e5c8b4a2c22995c | 229 | mli | OCaml | src/common/lwt/lwtInit.mli | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | 1 | 2020-07-11T17:49:59.000Z | 2020-07-11T17:49:59.000Z | src/common/lwt/lwtInit.mli | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | null | null | null | src/common/lwt/lwtInit.mli | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | 1 | 2019-11-30T03:40:04.000Z | 2019-11-30T03:40:04.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.
*)
val run_lwt : (unit -> 'a Lwt.t) -> 'a
| 25.444444 | 66 | 0.672489 |
17c7a8fb8be38da51b33f8d3e77e6c93edc25597 | 137,189 | ml | OCaml | src/ast/analyzing/langs/cpp/cpp_label.ml | codinuum/cca | 808b92856e8d51420b7bf53a02bb90b28ff003c3 | [
"Apache-2.0"
] | 4 | 2021-03-26T01:43:06.000Z | 2022-02-22T13:16:26.000Z | src/ast/analyzing/langs/cpp/cpp_label.ml | codinuum/cca | 808b92856e8d51420b7bf53a02bb90b28ff003c3 | [
"Apache-2.0"
] | 2 | 2020-10-25T07:44:54.000Z | 2021-03-28T08:15:14.000Z | src/ast/analyzing/langs/cpp/cpp_label.ml | codinuum/cca | 808b92856e8d51420b7bf53a02bb90b28ff003c3 | [
"Apache-2.0"
] | 3 | 2017-02-28T02:57:32.000Z | 2022-02-09T07:01:11.000Z | (*
Copyright 2012-2020 Codinuum Software Lab <https://codinuum.com>
Copyright 2020 Chiba Institute of Technology
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.apa... | 45.321771 | 117 | 0.586898 |
aacbe6189b8f73b2aee65dd3ae1684e986af0964 | 939 | ml | OCaml | ocaml-sources/testsuite/tests/lib-int64/issue9460.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | ocaml-sources/testsuite/tests/lib-int64/issue9460.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | ocaml-sources/testsuite/tests/lib-int64/issue9460.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | null | null | null | (* TEST
*)
(* See https://github.com/ocaml/ocaml/issues/9460
This test comes from Richard Jones
at
https://github.com/libguestfs/libnbd/blob/0475bfe04a527051c0a37af59a733c4c8554e427/ocaml/tests/test_400_pread.ml#L21-L36
*)
let test_result =
let b = Bytes.create 16 in
for i = 0 to 16/8-1 do
let i64 =... | 24.710526 | 125 | 0.663472 |
aa3f3e5bb0d298e367b4a5e817222a8038311bd6 | 34,253 | ml | OCaml | analysis/test/integration/signatureSelectionTest.ml | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | null | null | null | analysis/test/integration/signatureSelectionTest.ml | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | null | null | null | analysis/test/integration/signatureSelectionTest.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 OUnit2
open IntegrationTest
let test_check_callables context =
let assert_type_errors = assert_type_errors ~context in
let assert_d... | 27.098892 | 102 | 0.562783 |
bc32462baa5f1df988d9d84d5ce7f20c492e801d | 5,891 | ml | OCaml | src/hack_forked/utils/disk/testDisk.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/hack_forked/utils/disk/testDisk.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/hack_forked/utils/disk/testDisk.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
include Disk_sig.Types
module Hashtbl_base = Hashtbl
module Hashtbl = struct
include Hashtbl_base
let find_opt t x =
tr... | 30.682292 | 92 | 0.695468 |
17f0dd2b27fdf5f5290850947287693fa4f95d0c | 593 | ml | OCaml | data/derived/comb/progs/unify/prog4516.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/prog4516.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog4516.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
let leng1 = List.length l1 in
let leng2 = List.length l2 in
(((clone 0 (leng2 - leng1)) @ l1), ((clone 0 (leng1 - leng2)) @ l2));;
let rec removeZero l =
match l with | [] -> [] | h::t -> if h = 0 then removeZero t else l... | 31.210526 | 72 | 0.593592 |
173857db6a225ae5f8f7d4507723c44b6ff206b1 | 2,268 | ml | OCaml | duniverse/astring/src/astring_unsafe.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/astring/src/astring_unsafe.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/astring/src/astring_unsafe.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2015 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)
(* U... | 48.255319 | 79 | 0.656526 |
17e1d87e6bff4f0cd37d0afbfeca7e5d5628059d | 17,700 | ml | OCaml | src/common/flow_lsp_conversions.ml | fredemmott/flow | 9ef85f5a69e15a098206a2587cbb23dbd61d370d | [
"MIT"
] | 1 | 2020-07-11T17:49:59.000Z | 2020-07-11T17:49:59.000Z | src/common/flow_lsp_conversions.ml | lunaruan/flow | d17ed03661d8c0af2450cd91645c9641fdab9d69 | [
"MIT"
] | null | null | null | src/common/flow_lsp_conversions.ml | lunaruan/flow | d17ed03661d8c0af2450cd91645c9641fdab9d69 | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast = Flow_ast
let flow_position_to_lsp (line : int) (char : int) : Lsp.position =
Lsp.{ line = max 0 (line - 1); charac... | 43.488943 | 100 | 0.647006 |
178f2cf95fd4094120261115094fc2646d86df5f | 71 | ml | OCaml | tests/compiler/functions.t/hello_joe.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | tests/compiler/functions.t/hello_joe.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | tests/compiler/functions.t/hello_joe.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | let hello () =
let text = "hello, joe!" in
Io.format "~p" [ text ]
| 17.75 | 29 | 0.535211 |
177a1c1103eda4c50af3e32b7a4ef17c8e1580cf | 723 | ml | OCaml | data/derived/comb/progs/unify/prog2284.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/prog2284.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2284.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 e1 ->
let ans = sin (pi *. (eval (e1, x, y))) in
... | 26.777778 | 70 | 0.497925 |
44afc97818d8407eca765cd49a1bd2103dc0ffe2 | 10,950 | ml | OCaml | src/bs_node_fetch.ml | janmarsicek/bs-node-fetch | a1c5a92e5bdd07e2196e8bfb3d480b9ed5f8a0f0 | [
"MIT"
] | null | null | null | src/bs_node_fetch.ml | janmarsicek/bs-node-fetch | a1c5a92e5bdd07e2196e8bfb3d480b9ed5f8a0f0 | [
"MIT"
] | null | null | null | src/bs_node_fetch.ml | janmarsicek/bs-node-fetch | a1c5a92e5bdd07e2196e8bfb3d480b9ed5f8a0f0 | [
"MIT"
] | null | null | null | type body
type bodyInit
type headers
type headersInit
type response
type request
type requestInit
(* external *)
type arrayBuffer (* TypedArray *)
type blob (* FileAPI *)
type bufferSource (* Web IDL, either an arrayBuffer or arrayBufferView *)
type formData (* XMLHttpRequest *)
type readableStream (* Streams *)
type ... | 29.514825 | 108 | 0.632877 |
173e4cff773171414655bbdcc851c13f5d3338f6 | 1,296 | ml | OCaml | src/sparse/accessSem.ml | prosyslab/sparrow | a525084b22ae45b63f1a1d6b451924e34d34213b | [
"BSD-3-Clause"
] | 1 | 2020-01-31T17:43:58.000Z | 2020-01-31T17:43:58.000Z | src/sparse/accessSem.ml | KihongHeo/sparrow | adce52e39925cf5554100ada41fac84d098dea88 | [
"BSD-3-Clause"
] | 8 | 2020-03-19T10:21:01.000Z | 2020-08-20T14:02:06.000Z | src/sparse/accessSem.ml | prosyslab/sparrow | a525084b22ae45b63f1a1d6b451924e34d34213b | [
"BSD-3-Clause"
] | 2 | 2020-03-11T10:07:41.000Z | 2020-04-23T02:06:00.000Z | (***********************************************************************)
(* *)
(* Copyright (c) 2007-present. *)
(* Programming Research Laboratory (ROPAS), Seoul National University. *)
(* All rights reserved. ... | 36 | 75 | 0.401235 |
17a0628452472c9048d833c0ffa985b1c61b1b0c | 1,662 | mli | OCaml | tools/lexLog_tools.mli | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | 103 | 2016-11-28T10:00:41.000Z | 2022-03-08T05:06:00.000Z | tools/lexLog_tools.mli | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | 193 | 2017-02-28T19:04:04.000Z | 2022-03-25T14:33:24.000Z | tools/lexLog_tools.mli | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"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... | 50.363636 | 78 | 0.480144 |
bccdf39979e8e6de64942a119e357d85e71702c5 | 3,928 | ml | OCaml | src/proto_alpha/lib_protocol/gas_input_size.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/gas_input_size.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/gas_input_size.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021-2022 Nomadic Labs <contact@nomadic-labs.com> *)
... | 48.493827 | 79 | 0.553717 |
17da2ba3555fcb87f3dbde28153bc123855df336 | 57,183 | ml | OCaml | hphp/hack/src/server/serverMain.ml | tobielf/hhvm | a26dfe733c344ef59ab3c4773956ea81d3e0dcbb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverMain.ml | tobielf/hhvm | a26dfe733c344ef59ab3c4773956ea81d3e0dcbb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverMain.ml | tobielf/hhvm | a26dfe733c344ef59ab3c4773956ea81d3e0dcbb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open ServerEnv
open Reordered_argument_collections
open String_utils
open Option.Monad_infix
(*****... | 36.655769 | 114 | 0.68321 |
17ffaa4d2c45456cf59724ac787c90c5c8a4c609 | 20,820 | ml | OCaml | src/lib/merkle_ledger/database.ml | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | null | null | null | src/lib/merkle_ledger/database.ml | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | null | null | null | src/lib/merkle_ledger/database.ml | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | null | null | null | open Core
module type Inputs_intf = sig
include Base_inputs_intf.S
module Location : Location_intf.S
module Kvdb : Intf.Key_value_database with type config := string
module Storage_locations : Intf.Storage_locations
end
module Make (Inputs : Inputs_intf) :
Database_intf.S
with module Location = Inputs.... | 32.839117 | 80 | 0.660038 |
177a0cc480d367cb7d7ad09d82fa0c9177919446 | 3,321 | ml | OCaml | src/astUtils.ml | angelo-ortiz/Go-compiler | 75781f0167493cc4e083fc6bd14387d76ff318e7 | [
"MIT"
] | null | null | null | src/astUtils.ml | angelo-ortiz/Go-compiler | 75781f0167493cc4e083fc6bd14387d76ff318e7 | [
"MIT"
] | null | null | null | src/astUtils.ml | angelo-ortiz/Go-compiler | 75781f0167493cc4e083fc6bd14387d76ff318e7 | [
"MIT"
] | null | null | null |
open Ast
exception Syntax_error of Utils.loc * string
let level = ref 0
let max_int_p1 = Big_int_Z.power_int_positive_int 2 63
let min_int = Big_int_Z.minus_big_int max_int_p1
let syntax_error loc msg =
raise (Syntax_error (loc, msg))
let incr_level () =
incr level
let decr_level () =
decr level
let chec... | 28.878261 | 76 | 0.632641 |
bc2dc0a76dfc24fa8f5c3762c96b46db947d60a7 | 160 | ml | OCaml | data/derived/comb/progs/unify/prog2723.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/prog2723.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2723.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = a @ sep in
let base = h in let l = sl in List.fold_left f base l;;
| 20 | 61 | 0.5125 |
17ef9bb8aa2070b152e08b753ddba221e5516bc1 | 43,735 | ml | OCaml | common.ml | paulfitz/haxe | 47d1fc32bdb2a6228732d0d496c017aac148f88c | [
"MIT"
] | 9 | 2015-02-28T01:29:56.000Z | 2021-05-06T19:43:31.000Z | common.ml | paulfitz/haxe | 47d1fc32bdb2a6228732d0d496c017aac148f88c | [
"MIT"
] | 6 | 2015-05-01T04:39:04.000Z | 2018-12-14T01:55:44.000Z | common.ml | paulfitz/haxe | 47d1fc32bdb2a6228732d0d496c017aac148f88c | [
"MIT"
] | 3 | 2016-01-03T19:22:21.000Z | 2019-12-22T12:12:00.000Z | (*
* 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,... | 40.835668 | 229 | 0.691529 |
17876c46f11309d9cdf64b548207ba6cb7070d9f | 6,426 | ml | OCaml | ocaml-sources/asmcomp/i386/arch.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | ocaml-sources/asmcomp/i386/arch.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | ocaml-sources/asmcomp/i386/arch.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 38.945455 | 80 | 0.53517 |
aa0798e04882c946347cf5ee58093b80990818f6 | 1,984 | ml | OCaml | atdgen/test/test_abstract_j.expected.ml | mjambon/atd | 65a4534d43dd0fc732164e669624896132c1d238 | [
"BSD-3-Clause"
] | 137 | 2015-03-03T20:17:59.000Z | 2019-08-27T17:01:40.000Z | atdgen/test/test_abstract_j.expected.ml | mjambon/atd | 65a4534d43dd0fc732164e669624896132c1d238 | [
"BSD-3-Clause"
] | 154 | 2015-06-22T14:35:58.000Z | 2019-08-27T15:35:05.000Z | atdgen/test/test_abstract_j.expected.ml | mjambon/atd | 65a4534d43dd0fc732164e669624896132c1d238 | [
"BSD-3-Clause"
] | 20 | 2015-06-18T18:37:59.000Z | 2019-04-18T11:31:21.000Z | (* Auto-generated from "test_abstract.atd" *)
[@@@ocaml.warning "-27-32-33-35-39"]
type int_assoc_list = Testj.int_assoc_list
type any_items = Test_abstract_t.any_items
type any = Test_abstract_t.any
type 'x abs2 = 'x Testj.abs2
type 'x abs1 = 'x Testj.abs1
let write_int_assoc_list = (
Testj.write_int_assoc_lis... | 25.435897 | 72 | 0.745968 |
17c9297aded33c7d961f6ecce75589de10a2d42c | 99 | mli | OCaml | src/mo_types/productive.mli | olaszakos/motoko | 01867bdb76d6ceb7e986297464a41146f3d34839 | [
"Apache-2.0"
] | 248 | 2021-06-10T07:25:28.000Z | 2022-03-29T10:34:45.000Z | src/mo_types/productive.mli | olaszakos/motoko | 01867bdb76d6ceb7e986297464a41146f3d34839 | [
"Apache-2.0"
] | 612 | 2021-06-10T07:04:33.000Z | 2022-03-31T16:28:29.000Z | src/mo_types/productive.mli | olaszakos/motoko | 01867bdb76d6ceb7e986297464a41146f3d34839 | [
"Apache-2.0"
] | 36 | 2021-06-10T06:46:55.000Z | 2022-03-07T20:22:04.000Z | (* the subset of non-productive types in cs *)
val non_productive : Type.ConSet.t -> Type.ConSet.t
| 33 | 51 | 0.727273 |
17d590618772ad94bac89cb9a0471a678d8c10a6 | 6,244 | ml | OCaml | src/lib/coda_base/data_hash.ml | acoglio/coda | f6a4bda2f3ce93ebfe426891411e06539c44a5f2 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/data_hash.ml | acoglio/coda | f6a4bda2f3ce93ebfe426891411e06539c44a5f2 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/data_hash.ml | acoglio/coda | f6a4bda2f3ce93ebfe426891411e06539c44a5f2 | [
"Apache-2.0"
] | null | null | null | (* data_hash.ml *)
[%%import
"/src/config.mlh"]
open Core_kernel
[%%ifdef
consensus_mechanism]
open Snark_params.Tick
open Bitstring_lib
[%%else]
open Snark_params_nonconsensus
module Random_oracle = Random_oracle_nonconsensus.Random_oracle
[%%endif]
module type Full_size = Data_hash_intf.Full_size
module Make... | 25.801653 | 79 | 0.660955 |
aa1b5178500713cbfb35cbc9d83f933b2f533bf5 | 163 | ml | OCaml | data/derived/comb/progs/unify/prog5214.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/prog0306.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0306.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let stringOfList f l = match l with | [] -> "[]" | x::[] -> "[" ^ (x ^ "]");;
let _ =
stringOfList (stringOfList string_of_int) [[1; 2; 3]; [4; 5]; [6]; []];;
| 27.166667 | 77 | 0.466258 |
aab4c0ef7f5463877a3db8de1c7706c5359abec7 | 1,789 | mli | OCaml | vendor/dune/src/install.mli | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/dune/src/install.mli | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/dune/src/install.mli | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | (** Opam install file *)
open! Stdune
module Dst : sig
type t
val to_string : t -> string
end
module Section : sig
type t =
| Lib
| Lib_root
| Libexec
| Libexec_root
| Bin
| Sbin
| Toplevel
| Share
| Share_root
| Etc
| Doc
| Stublibs
| Man
| Misc
val ... | 20.101124 | 75 | 0.542761 |
aab8ebe85c1a3169f23b312515eb4cb563223c30 | 1,135 | ml | OCaml | data/derived/comb/progs/unify/prog1773.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/prog1773.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1773.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
| Tangent of expr* expr
| Square2 of expr* expr* expr
| Thresh of expr* expr* expr* expr;;
let buildAverage (e1,e2) = Average (e1, e2);;
let buildCosine e = Cosine e;;
let buildSine e = Sine e;;... | 27.02381 | 77 | 0.514537 |
17dc7e634fc307bf9c711684cd29ceaedbd13529 | 227 | mly | OCaml | grammar-artefacts/07-menhir-modules/_2.4.3_2.5_2.6_.mly | MalloyPower/parsing-python | b2bca5eed07ea2af7a2001cd4f63becdfb0570be | [
"MIT"
] | 1 | 2020-11-26T18:53:46.000Z | 2020-11-26T18:53:46.000Z | grammar-artefacts/07-menhir-modules/_2.4.3_2.5_2.6_.mly | MalloyPower/parsing-python | b2bca5eed07ea2af7a2001cd4f63becdfb0570be | [
"MIT"
] | null | null | null | grammar-artefacts/07-menhir-modules/_2.4.3_2.5_2.6_.mly | MalloyPower/parsing-python | b2bca5eed07ea2af7a2001cd4f63becdfb0570be | [
"MIT"
] | 1 | 2019-04-11T11:27:01.000Z | 2019-04-11T11:27:01.000Z | // Grammar for versions: 2.4.3 2.5 2.6
// Generated by CompareGrammar on 2018-01-16 at 20:28:52.950+00:00
%%
%public
argument:
test _optional(gen_for {})
| test EQUAL test
{} ;
%%
| 13.352941 | 73 | 0.537445 |
17b14643f092df99b945cc4d49d784e38e3a11ac | 2,012 | ml | OCaml | controller/simul.ml | chesseye/chesseye | 23402e77292b1eb0758ecd61f30979166743c3b9 | [
"Apache-2.0"
] | 16 | 2016-05-08T16:24:05.000Z | 2019-08-15T15:06:58.000Z | controller/simul.ml | chesseye/chesseye | 23402e77292b1eb0758ecd61f30979166743c3b9 | [
"Apache-2.0"
] | 1 | 2016-06-24T20:39:17.000Z | 2016-07-10T01:50:35.000Z | controller/simul.ml | chesseye/chesseye | 23402e77292b1eb0758ecd61f30979166743c3b9 | [
"Apache-2.0"
] | 1 | 2019-10-03T12:33:36.000Z | 2019-10-03T12:33:36.000Z | open Ochess
exception WrongMove of string
let string_of_file file =
try
let inchan = open_in_bin file in
let len = in_channel_length inchan in
let buf = Buffer.create len in
Buffer.add_channel buf inchan len;
close_in inchan;
Buffer.contents buf
with
Sys_error err ->
Util.warni... | 25.794872 | 77 | 0.67495 |
aa712d5f8b502e83a0ab9f21b20d1fc6e13b7b7c | 10,921 | ml | OCaml | src/core/CCHeap.ml | dinosaure/ocaml-containers | 0d05643c5716baaca452ec67823b418d4420df6f | [
"BSD-2-Clause"
] | 1 | 2019-01-22T15:09:19.000Z | 2019-01-22T15:09:19.000Z | src/core/CCHeap.ml | dinosaure/ocaml-containers | 0d05643c5716baaca452ec67823b418d4420df6f | [
"BSD-2-Clause"
] | null | null | null | src/core/CCHeap.ml | dinosaure/ocaml-containers | 0d05643c5716baaca452ec67823b418d4420df6f | [
"BSD-2-Clause"
] | null | null | null |
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Leftist Heaps} *)
type 'a sequence = ('a -> unit) -> unit
type 'a gen = unit -> 'a option
type 'a printer = Format.formatter -> 'a -> unit
type 'a klist = unit -> [`Nil | `Cons of 'a * 'a klist]
type 'a ktree = unit -> ... | 25.397674 | 90 | 0.556268 |
17c2f84129add07d86790a9fd92576ccb885f9d0 | 3,583 | ml | OCaml | src/conduit/conduit_trie.ml | madroach/ocaml-conduit | 522b536601ee5996f6833f6d78e5df5fa0c6f971 | [
"ISC"
] | null | null | null | src/conduit/conduit_trie.ml | madroach/ocaml-conduit | 522b536601ee5996f6833f6d78e5df5fa0c6f971 | [
"ISC"
] | null | null | null | src/conduit/conduit_trie.ml | madroach/ocaml-conduit | 522b536601ee5996f6833f6d78e5df5fa0c6f971 | [
"ISC"
] | null | null | null | (*
* Copyright (c) 2007-2014 Dave Scott <dave.scott@citrix.com>
* Copyright (c) 2014 Anil Madhavapeddy <anil@recoil.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice ... | 37.322917 | 79 | 0.629919 |
bce69e800d61e25df657600146eb01b16fc468bd | 575 | ml | OCaml | benchmarks/lambda/lambda1/submissions/sub368.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/lambda/lambda1/submissions/sub368.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/lambda/lambda1/submissions/sub368.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | (* 2015-1478 Giyeon Kim HW 2 *)
(* Exercise 4 *)
type metro = STATION of name
| AREA of name * metro
| CONNECT of metro * metro
and name = string
let checkMetro: metro -> bool = fun imetro ->
let rec checkMetroInner: metro -> name list -> bool = fun imetro ilist ->
match imetro wit... | 33.823529 | 98 | 0.634783 |
aa5fe57481e715fbd65e4b31d425f5fc358a8807 | 1,635 | ml | OCaml | src/lib/rosetta_models/construction_metadata_request.ml | phreelyfe/mina | 34328cd4e9b6ac699c3330003e40976a1059ed90 | [
"Apache-2.0"
] | null | null | null | src/lib/rosetta_models/construction_metadata_request.ml | phreelyfe/mina | 34328cd4e9b6ac699c3330003e40976a1059ed90 | [
"Apache-2.0"
] | null | null | null | src/lib/rosetta_models/construction_metadata_request.ml | phreelyfe/mina | 34328cd4e9b6ac699c3330003e40976a1059ed90 | [
"Apache-2.0"
] | null | null | null | (*
* This file has been generated by the OCamlClientCodegen generator for openapi-generator.
*
* Generated by: https://openapi-generator.tech
*
* Schema Construction_metadata_request.t : A ConstructionMetadataRequest is utilized to get information required to construct a transaction. The Options object used to spe... | 81.75 | 418 | 0.805505 |
cd02254334e5983a8d01f0dc385ce5dd5559ffc0 | 134 | ml | OCaml | data/derived/comb/progs/unify/prog1557.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/prog1557.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1557.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let pipe fs = let f a x = x a in let base = f in List.fold_left f base fs;;
let _ = pipe [(fun x -> x + 3); (fun x -> x + x)] 3;;
| 26.8 | 75 | 0.522388 |
176254002d8338b4f3c08d343b375c4527a29183 | 14,344 | ml | OCaml | src/reason-parser/reason_toolchain.ml | iamdarshshah/reason | 9486cfbe1979714ed1a022ecce3be0ae4d6a1362 | [
"MIT"
] | 1 | 2021-08-16T12:32:00.000Z | 2021-08-16T12:32:00.000Z | src/reason-parser/reason_toolchain.ml | iamdarshshah/reason | 9486cfbe1979714ed1a022ecce3be0ae4d6a1362 | [
"MIT"
] | 4 | 2019-11-26T20:50:13.000Z | 2020-01-21T19:28:20.000Z | src/reason-parser/reason_toolchain.ml | iamdarshshah/reason | 9486cfbe1979714ed1a022ecce3be0ae4d6a1362 | [
"MIT"
] | 1 | 2020-01-21T09:49:21.000Z | 2020-01-21T09:49:21.000Z | (***********************************************************************)
(* *)
(* Reason *)
(* *)
(***********************... | 39.406593 | 134 | 0.63971 |
1759f366d0b4f673fd8ed4d09df17e4dcc9270fe | 5,016 | ml | OCaml | hphp/hack/src/typing/typing_deferred_members.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_deferred_members.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_deferred_members.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"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 Nast
open Shallow_decl_defs
open Typing_defs
module Attrs = Attributes
module Cls = Typing_c... | 33.44 | 79 | 0.669258 |
1760a6b7a5eb1e55d21f14195204093e031a4315 | 3,487 | ml | OCaml | test/test_udp.ml | dinosaure/mirage-tcpip | 4dbadd9f36cb981f0e4ba3f6816d1f0623e3defd | [
"0BSD"
] | null | null | null | test/test_udp.ml | dinosaure/mirage-tcpip | 4dbadd9f36cb981f0e4ba3f6816d1f0623e3defd | [
"0BSD"
] | null | null | null | test/test_udp.ml | dinosaure/mirage-tcpip | 4dbadd9f36cb981f0e4ba3f6816d1f0623e3defd | [
"0BSD"
] | 1 | 2021-06-16T22:40:12.000Z | 2021-06-16T22:40:12.000Z | open Common
module Time = Vnetif_common.Time
module B = Basic_backend.Make
module V = Vnetif.Make(B)
module E = Ethernet.Make(V)
module Static_arp = Static_arp.Make(E)(Time)
module Ip = Static_ipv4.Make(Mirage_random_test)(Mclock)(E)(Static_arp)
module Udp = Udp.Make(Ip)(Mirage_random_test)
type stack = {
backend :... | 37.902174 | 121 | 0.714654 |
1743dadbb322e0949165568eb3819307f3677a20 | 1,048 | ml | OCaml | src/redis_sync.ml | mrnumber/ocaml-redis | a670100f0f53b5637a0ecf6218a3aa1d5c7a3788 | [
"BSD-3-Clause"
] | 6 | 2017-03-24T21:07:31.000Z | 2021-09-01T15:42:41.000Z | src/redis_sync.ml | mrnumber/ocaml-redis | a670100f0f53b5637a0ecf6218a3aa1d5c7a3788 | [
"BSD-3-Clause"
] | 1 | 2015-09-24T19:32:55.000Z | 2015-09-24T19:32:55.000Z | src/redis_sync.ml | skydeck/ocaml-redis | a670100f0f53b5637a0ecf6218a3aa1d5c7a3788 | [
"BSD-3-Clause"
] | 2 | 2015-11-25T09:26:57.000Z | 2021-12-14T18:35:58.000Z | module IO = struct
type 'a t = 'a
type file_descr = Unix.file_descr
type in_channel = Pervasives.in_channel
type out_channel = Pervasives.out_channel
let (>>=) a f = f a
let catch f exn_handler = try f () with e -> exn_handler e
let try_bind f bind_handler exn_handler = try f () >>= bind_handler with e -... | 29.111111 | 93 | 0.722328 |
1712e687a5fa64dd5d188cf60d171c575e8e8a7b | 96 | ml | OCaml | burst/src/TermClassification.ml | VictorYYW/BurstArtifactEvaluation | b69a22ec20666c29f3e5839bd75ffdc3b37ed1bc | [
"MIT"
] | 2 | 2022-02-17T02:18:55.000Z | 2022-03-02T22:54:52.000Z | burst/src/TermClassification.ml | VictorYYW/BurstArtifactEvaluation | b69a22ec20666c29f3e5839bd75ffdc3b37ed1bc | [
"MIT"
] | null | null | null | burst/src/TermClassification.ml | VictorYYW/BurstArtifactEvaluation | b69a22ec20666c29f3e5839bd75ffdc3b37ed1bc | [
"MIT"
] | 1 | 2021-12-06T23:14:05.000Z | 2021-12-06T23:14:05.000Z | open MyStdLib
type t =
| Introduction
| Elimination
[@@deriving eq, hash, ord, show, sexp]
| 13.714286 | 38 | 0.677083 |
17ff94ec9c480af47eaaf09b8007d62c45e837ff | 10,322 | ml | OCaml | coq/tactics/dnet.ml | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq/tactics/dnet.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq/tactics/dnet.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/ *********... | 33.953947 | 88 | 0.557644 |
aa370553cdd926650a956e3b0f24bebdc2dc3acb | 1,255 | ml | OCaml | hphp/hack/src/client/clientEnv.ml | aingram/hhvm | a0c84e34fa96f680660d9a90e8e7637eaa35943b | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-04-24T08:18:15.000Z | 2021-04-24T08:18:15.000Z | hphp/hack/src/client/clientEnv.ml | aingram/hhvm | a0c84e34fa96f680660d9a90e8e7637eaa35943b | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2020-12-31T09:08:34.000Z | 2021-09-28T05:42:02.000Z | hphp/hack/src/client/clientEnv.ml | aingram/hhvm | a0c84e34fa96f680660d9a90e8e7637eaa35943b | [
"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.
*
*)
type client_... | 25.1 | 80 | 0.772908 |
1762fe367347a46f2139dcf041547e068b81db45 | 254 | ml | OCaml | src/base/dense/owl_base_dense_matrix_s.ml | jzstark/owl | eead31f1920e63b876421e6a30e61c947f29827f | [
"MIT"
] | null | null | null | src/base/dense/owl_base_dense_matrix_s.ml | jzstark/owl | eead31f1920e63b876421e6a30e61c947f29827f | [
"MIT"
] | null | null | null | src/base/dense/owl_base_dense_matrix_s.ml | jzstark/owl | eead31f1920e63b876421e6a30e61c947f29827f | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific Computing
* Copyright (c) 2016-2022 Liang Wang <liang@ocaml.xyz>
*)
open Bigarray
module M = Owl_base_dense_matrix_generic
include M
type elt = float
type mat = (float, Bigarray.float32_elt) M.t
let eye = M.eye Float32
| 16.933333 | 55 | 0.728346 |
17b606870e81794ec35ad3a65b0375e07986d73d | 3,585 | mli | OCaml | vendor/cohttp-async/cohttp-async/src/server.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/cohttp-async/cohttp-async/src/server.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/cohttp-async/cohttp-async/src/server.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | type ('address, 'listening_on) t constraint 'address
= [< Async_unix.Socket.Address.t ]
[@@deriving sexp_of]
val close : (_, _) t -> unit Async_kernel.Deferred.t
val close_finished : (_, _) t -> unit Async_kernel.Deferred.t
val is_closed : (_, _) t -> bool
val listening_on : (_, 'listening_on) t -... | 37.736842 | 102 | 0.678103 |
17ed3795dbd484f3bbcdc796a8633a10b0fd7e41 | 12,328 | ml | OCaml | hphp/hack/src/typing/tast_check/reified_check.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/reified_check.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/reified_check.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Aast
open Typing_defs
open Type_validator
module Env = Tast_env
module SN = Naming_special_name... | 36.365782 | 124 | 0.587768 |
17ab24e567fba259d94c33d59b63a8f1fb2fed0a | 4,962 | ml | OCaml | 02-exercises/12-list_functions/problem.ml | JuanCasado/learn-ocaml-workshop | a5db499f434122bddabe4c2a3ee0a8bf11a90f37 | [
"Apache-2.0"
] | null | null | null | 02-exercises/12-list_functions/problem.ml | JuanCasado/learn-ocaml-workshop | a5db499f434122bddabe4c2a3ee0a8bf11a90f37 | [
"Apache-2.0"
] | null | null | null | 02-exercises/12-list_functions/problem.ml | JuanCasado/learn-ocaml-workshop | a5db499f434122bddabe4c2a3ee0a8bf11a90f37 | [
"Apache-2.0"
] | null | null | null | open! Base
(* Remember the list functions we wrote in exercises 8-10? Many of those
functions that we've been writing by hand are actually available in the
language in a nice, first class way in the [List] module.
Let's take look at some of the useful functions that are given to you. *)
(** ========== [Lis... | 35.442857 | 108 | 0.610036 |
174c3a0b009f02da552336f22caf686e5b094c67 | 2,987 | ml | OCaml | runtime/vm/match.ml | sano-jin/lmn-alpha | bea1b64752547ce2a0797eb6594564e99213792e | [
"MIT"
] | 2 | 2021-08-11T15:32:19.000Z | 2021-08-11T15:53:01.000Z | runtime/vm/match.ml | sano-jin/lmn-alpha | bea1b64752547ce2a0797eb6594564e99213792e | [
"MIT"
] | null | null | null | runtime/vm/match.ml | sano-jin/lmn-alpha | bea1b64752547ce2a0797eb6594564e99213792e | [
"MIT"
] | null | null | null | (** match.ml *)
open Generator
open Vm
open Util
(** 巻き戻しの起点にならない,プロセス文脈に関係しない,マッチング命令を一回実行する *)
let exec_unrewindable_inst register = function
| PeakAtom _ -> failwith "Bug: PeakAtom is a rewindable instruction"
| BindData _ -> failwith "Bug: BindData is not a matching instruction"
| CheckFunctor (reg_i, func... | 36.426829 | 80 | 0.649816 |
1769bf567c9acd8dbb70010c1f97a9a58bba8a07 | 1,515 | ml | OCaml | test/expect-tests/dune_file_tests.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | test/expect-tests/dune_file_tests.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | test/expect-tests/dune_file_tests.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | open Dune_rules
open! Stdune
open Dune_tests_common
let () = init ()
(* Dune_file.Executables.Link_mode.decode *)
let test s =
Dune_lang.Decoder.parse Dune_file.Executables.Link_mode.decode Univ_map.empty
(Dune_lang.Parser.parse_string ~fname:"" ~mode:Dune_lang.Parser.Mode.Single
s)
|> Dune_file.Execut... | 21.956522 | 79 | 0.661386 |
aac97379cd1eddd16356b9ba49e74d22ba223efb | 4,953 | ml | OCaml | node_modules/bs-platform/scripts/curry_gen.ml | Et7f3/esy-glfw | cd10f4754ee3e0a1404e2cca7b3ed711230d5202 | [
"Zlib"
] | null | null | null | node_modules/bs-platform/scripts/curry_gen.ml | Et7f3/esy-glfw | cd10f4754ee3e0a1404e2cca7b3ed711230d5202 | [
"Zlib"
] | null | null | null | node_modules/bs-platform/scripts/curry_gen.ml | Et7f3/esy-glfw | cd10f4754ee3e0a1404e2cca7b3ed711230d5202 | [
"Zlib"
] | null | null | null |
(* no mli file emitted, since mli is not very meaningful
except which identifiers are exposed
exported functions:
- [ app f args]
called when apply a curried function with a list of arugments
- [ _1 o arg ] .. [ _n]
called when apply a curried function with [n] argument
- [ __1 o] .. [ ... | 29.658683 | 86 | 0.626287 |
cd0559f4f3d2efc6dc1d54ba81f166ef1da17569 | 7,138 | ml | OCaml | src/outline.ml | jpdeplaix/merlin | 81a6f05bcdc32ab2ec32057bd37dd0d6db315426 | [
"MIT"
] | null | null | null | src/outline.ml | jpdeplaix/merlin | 81a6f05bcdc32ab2ec32057bd37dd0d6db315426 | [
"MIT"
] | null | null | null | src/outline.ml | jpdeplaix/merlin | 81a6f05bcdc32ab2ec32057bd37dd0d6db315426 | [
"MIT"
] | null | null | null | (* {{{ COPYING *(
type token = Chunk_parser.token Fake_lexer.token
This file is part of Merlin, an helper for ocaml editors
Copyright (C) 2013 Frédéric Bour <frederic.bour(_)lakaban.net>
Thomas Refis <refis.thomas(_)gmail.com>
Simon Castellan <simon.castellan(_)iuwt... | 35.869347 | 86 | 0.653124 |
17fe208fe07d97276837bbd241d7f61555481ae6 | 1,809 | mli | OCaml | test_native/_opam/lib/ocaml/compiler-libs/mutable_variable.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | test_native/_opam/lib/ocaml/compiler-libs/mutable_variable.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | test_native/_opam/lib/ocaml/compiler-libs/mutable_variable.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 37.6875 | 76 | 0.413488 |
17c8214ec9997385edadc76a1d3586f2507d8487 | 552 | mli | OCaml | src/jbuild_load.mli | rvantonder/dune | d9fcb622f6f497f5393b7003aa6613c8e5d74277 | [
"MIT"
] | null | null | null | src/jbuild_load.mli | rvantonder/dune | d9fcb622f6f497f5393b7003aa6613c8e5d74277 | [
"MIT"
] | null | null | null | src/jbuild_load.mli | rvantonder/dune | d9fcb622f6f497f5393b7003aa6613c8e5d74277 | [
"MIT"
] | null | null | null | open Stdune
module Jbuild : sig
type t =
{ dir : Path.t
; project : Dune_project.t
; stanzas : Dune_file.Stanzas.t
; kind : File_tree.Dune_file.Kind.t
}
end
module Jbuilds : sig
type t
val eval
: t
-> context:Context.t
-> Jbuild.t list Fiber.t
end
type conf =
{ file_t... | 16.727273 | 44 | 0.623188 |
17ca34e4e4eb4322fbf47f6915b6cee022b70dd1 | 12,478 | ml | OCaml | hphp/hack/src/client/ide_service/clientIdeIncremental.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/ide_service/clientIdeIncremental.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/ide_service/clientIdeIncremental.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2019, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Reordered_argument_collections
let log s = Hh_logger.log ("[ide-incremental] " ^^ s)
let str... | 38.512346 | 80 | 0.623417 |
178a06330ccfb7bcbea9bde75ae25e298b33fe13 | 9,465 | ml | OCaml | lib/cmon.ml | let-def/cmon | 540904dde3f1dd453ba5dd113c0a8c7ac9fce7ab | [
"MIT"
] | 24 | 2021-12-15T21:53:13.000Z | 2022-01-18T18:00:51.000Z | lib/cmon.ml | let-def/cmon | 540904dde3f1dd453ba5dd113c0a8c7ac9fce7ab | [
"MIT"
] | null | null | null | lib/cmon.ml | let-def/cmon | 540904dde3f1dd453ba5dd113c0a8c7ac9fce7ab | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2021 Frédéric Bour <frederic.bour@lakaban.net>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS... | 32.864583 | 79 | 0.607924 |
aa8b7c6a48b4d36ed6466528321ad3e5aaa0c07e | 27,400 | ml | OCaml | orig/ocaml_400/typing/typetexp.ml | art-w/merlin | 7d34d0af1749d27deb6a47bdf5b4d0796528905a | [
"MIT"
] | 1 | 2021-03-12T10:45:56.000Z | 2021-03-12T10:45:56.000Z | orig/ocaml/typing/typetexp.ml | MarcWeber/merlin | 2dbad93fcc63eff70c29d937fb67c1645deee05b | [
"MIT"
] | null | null | null | orig/ocaml/typing/typetexp.ml | MarcWeber/merlin | 2dbad93fcc63eff70c29d937fb67c1645deee05b | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 36.631016 | 80 | 0.582737 |
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.