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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f31de59ebeff0775a162f9f189db1706de93f057 | 5,564 | ml | OCaml | infer/src/checkers/uninitDomain.ml | jhonpj/infer | 01a83e694b2c55e240753cf1dfa5237faf4472f8 | [
"MIT"
] | 1 | 2018-11-10T08:04:26.000Z | 2018-11-10T08:04:26.000Z | infer/src/checkers/uninitDomain.ml | jhonpj/infer | 01a83e694b2c55e240753cf1dfa5237faf4472f8 | [
"MIT"
] | null | null | null | infer/src/checkers/uninitDomain.ml | jhonpj/infer | 01a83e694b2c55e240753cf1dfa5237faf4472f8 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
module Domain = AbstractDomain.InvertedSet (AccessExpression)
module MaybeUninitVars = struct
include Abs... | 33.518072 | 100 | 0.649173 |
f327a99632260d8c178371bdf79b83a0a9a73abb | 1,188 | ml | OCaml | bootstrap/test/basis/i32/test_rel.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | 1 | 2021-08-13T04:54:39.000Z | 2021-08-13T04:54:39.000Z | bootstrap/test/basis/i32/test_rel.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | 1 | 2020-02-14T19:21:40.000Z | 2020-02-14T19:21:40.000Z | bootstrap/test/basis/i32/test_rel.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | null | null | null | open! Basis.Rudiments
open! Basis
open I32
open Format
let test () =
let fn x y = begin
printf "cmp %a %a -> %a\n" pp_x x pp_x y Cmp.pp (cmp x y);
printf "%a >= %a -> %b\n" pp_x x pp_x y (x >= y);
printf "%a <= %a -> %b\n" pp_x x pp_x y (x <= y);
printf "%a = %a -> %b\n" pp_x x pp_x y (x = y);
pr... | 33 | 76 | 0.512626 |
af2dc83e9916c260bcb956c83138b9e61d5f01e5 | 22,631 | ml | OCaml | eval/sherrloc/easyocaml++/camlp4/Camlp4Filters/Camlp4FoldGenerator.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/sherrloc/easyocaml++/camlp4/Camlp4Filters/Camlp4FoldGenerator.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/sherrloc/easyocaml++/camlp4/Camlp4Filters/Camlp4FoldGenerator.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (* camlp4r *)
(****************************************************************************)
(* *)
(* Objective Caml *)
(* ... | 37.1 | 129 | 0.49768 |
af28a54e17a734282b4e4138885fff455d24ffff | 1,133 | mli | OCaml | src/typing/nType.mli | kit-ty-kate/labrys | ffa21b27f2557942073bcdfbe37af96b8bd53902 | [
"MIT"
] | 65 | 2018-08-10T11:51:20.000Z | 2022-03-25T10:44:56.000Z | src/typing/nType.mli | kit-ty-kate/labrys | ffa21b27f2557942073bcdfbe37af96b8bd53902 | [
"MIT"
] | 3 | 2021-12-26T01:37:08.000Z | 2022-01-03T14:39:17.000Z | src/typing/nType.mli | kit-ty-kate/labrys | ffa21b27f2557942073bcdfbe37af96b8bd53902 | [
"MIT"
] | 5 | 2020-12-30T14:50:11.000Z | 2022-03-25T10:30:29.000Z | (* Copyright (c) 2013-2017 The Labrys developers. *)
(* See the LICENSE file at the top-level directory. *)
val check :
pure_arrow:[`Partial | `Forbid | `Allow] ->
TypedEnv.env ->
PretypedTree.ty ->
TypedEnv.nty
val check_eff :
pure_arrow:[`Partial | `Forbid | `Allow] ->
TypedEnv.env ->
PretypedTree.ty ... | 29.815789 | 76 | 0.708738 |
af24124ace92a5bb3f9a8d5979b4bd228931e419 | 8,455 | ml | OCaml | hphp/hack/test/unit/naming/naming_table_tests.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-17T02:24:38.000Z | 2020-01-17T02:24:38.000Z | hphp/hack/test/unit/naming/naming_table_tests.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/unit/naming/naming_table_tests.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"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.
*
*
*)
(* These are basically the same tests as in
* test/integration_ml/saved_state/test_naming_table_sqlite_fallback.... | 34.092742 | 81 | 0.670373 |
f3597dac11fc86b30aa94e92c25efbefc09d5975 | 584 | mli | OCaml | src/services/inference/infer_service.mli | vkurchatkin/ff | ed75401e7557bb9821da29160c008d665ca3241e | [
"BSD-3-Clause"
] | null | null | null | src/services/inference/infer_service.mli | vkurchatkin/ff | ed75401e7557bb9821da29160c008d665ca3241e | [
"BSD-3-Clause"
] | 1 | 2022-03-30T02:29:35.000Z | 2022-03-30T02:29:35.000Z | src/services/inference/infer_service.mli | ahutchings/flow | b815b351f7625fab4a174d53628f53a6a481460a | [
"BSD-3-Clause"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open ... | 25.391304 | 80 | 0.726027 |
f3af34ad943b1b53d9412becdf2cb59be363d575 | 56,075 | ml | OCaml | src/seplog/rule.ml | taquangtrung/discover | 2ae5e07db51737c1c84fbd6b74297d03c2e91c29 | [
"Apache-2.0"
] | 9 | 2021-11-24T03:33:31.000Z | 2022-01-06T03:57:06.000Z | src/seplog/rule.ml | taquangtrung/discover | 2ae5e07db51737c1c84fbd6b74297d03c2e91c29 | [
"Apache-2.0"
] | 78 | 2021-11-01T06:55:39.000Z | 2022-03-15T02:55:55.000Z | src/seplog/rule.ml | tnkhanh/discover-analyzer | 1e4d2c3e6a202e794ba2690d7737e5647a2d0335 | [
"Apache-2.0"
] | 3 | 2021-11-24T03:33:34.000Z | 2022-03-03T09:27:24.000Z | (********************************************************************
* This file is part of the source code analyzer Discover.
*
* Copyright (c) 2020-2022 Singapore Blockchain Innovation Programme.
* All rights reserved.
********************************************************************)
open Dcore
open Slir
o... | 34.764414 | 80 | 0.660758 |
f3cb0d206042c40eff808eca3c9e3817a3f313a8 | 3,109 | ml | OCaml | src/problem22.ml | emannes/aoc2020 | 2fc7793973ec878a5dcc4893e1eb259ead5919a3 | [
"MIT"
] | null | null | null | src/problem22.ml | emannes/aoc2020 | 2fc7793973ec878a5dcc4893e1eb259ead5919a3 | [
"MIT"
] | null | null | null | src/problem22.ml | emannes/aoc2020 | 2fc7793973ec878a5dcc4893e1eb259ead5919a3 | [
"MIT"
] | null | null | null | open! Core
open Async
open Common
let winner deck1 deck2 =
if Queue.length deck1 = 0
then Some deck2
else if Queue.length deck2 = 0
then Some deck1
else None
;;
let score deck =
let deck = Queue.to_list deck in
let length = List.length deck in
List.mapi deck ~f:(fun i card -> (length - i) * card) |> L... | 25.908333 | 90 | 0.624317 |
f33f3154121c3623f5dbd0e26a51e6d2f8536208 | 592 | ml | OCaml | data/sp14/1831.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/1831.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/1831.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec append list1 list2 = match list1 with | [] -> [] | h::t -> h :: list2;;
let rec listReverse l =
match l with | [] -> [] | h::[] -> l | h::t -> listReverse append (t [h]);;
(* fix
let rec append list1 list2 = match list1 with | [] -> [] | h::t -> h :: list2;;
let rec listReverse l =
match l with | [] -... | 17.939394 | 79 | 0.513514 |
f34f1cdce99b94bf27b024663095f6294f190d5b | 3,975 | ml | OCaml | bin/Infer.ml | bchalala/LoopInvGen | 2f2fad6dcf697c5d313a775e330fbf4b23fac54f | [
"MIT"
] | null | null | null | bin/Infer.ml | bchalala/LoopInvGen | 2f2fad6dcf697c5d313a775e330fbf4b23fac54f | [
"MIT"
] | null | null | null | bin/Infer.ml | bchalala/LoopInvGen | 2f2fad6dcf697c5d313a775e330fbf4b23fac54f | [
"MIT"
] | null | null | null | open Core
open LoopInvGen
let output_stats stats = function
| None -> ()
| Some statsfile
-> let stats_chan = Out_channel.create statsfile
in Out_channel.output_string stats_chan
(Sexplib.Sexp.to_string_hum ~indent:4 (LIG.sexp_of_stats stats))
; Out_channel.close stats_chan
let m... | 45.170455 | 126 | 0.658868 |
f3358abc661fc20e32da9149cb1c0426e96c13c9 | 11,905 | ml | OCaml | hphp/hack/test/unit/server_tests.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/unit/server_tests.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/unit/server_tests.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.
*
*
*)
open Core_kernel
let tcopt_with_defer =
GlobalOptions.{ default with tco_defer_class_declaration_threshold = S... | 30.762274 | 102 | 0.693154 |
f3647fd216457da9b8c505b4fbfbe0d9cd18da06 | 95,620 | ml | OCaml | src/parser_utils/output/__tests__/js_layout_generator_test.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | 1 | 2020-07-11T17:49:59.000Z | 2020-07-11T17:49:59.000Z | src/parser_utils/output/__tests__/js_layout_generator_test.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | null | null | null | src/parser_utils/output/__tests__/js_layout_generator_test.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.
*)
open OUnit2
open Ast_builder
open Layout_test_utils
open Layout_generator_test_utils
module I = Ast_builder.Identifiers
module S =... | 41.810232 | 109 | 0.482608 |
f314bf44775dbcb5844aba7c6ae96ec4be4ab4cd | 54,858 | ml | OCaml | server/udns_server.ml | dinosaure/udns | 47fd3bcaebbc7de05f8dad0cd08d6729d9f80e68 | [
"BSD-2-Clause"
] | null | null | null | server/udns_server.ml | dinosaure/udns | 47fd3bcaebbc7de05f8dad0cd08d6729d9f80e68 | [
"BSD-2-Clause"
] | null | null | null | server/udns_server.ml | dinosaure/udns | 47fd3bcaebbc7de05f8dad0cd08d6729d9f80e68 | [
"BSD-2-Clause"
] | null | null | null | (* (c) 2017, 2018 Hannes Mehnert, all rights reserved *)
open Rresult
open R.Infix
open Udns
let src = Logs.Src.create "dns_server" ~doc:"DNS server"
module Log = (val Logs.src_log src : Logs.LOG)
module IPM = Map.Make(Ipaddr.V4)
let guard p err = if p then Ok () else Error err
type proto = [ `Tcp | `Udp ]
let au... | 40.726058 | 115 | 0.58028 |
af2c718fa3cd71d637f3534346039494eca50a69 | 2,034 | ml | OCaml | libraries/ec2/lib/acceptTransitGatewayPeeringAttachment.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/acceptTransitGatewayPeeringAttachment.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/ec2/lib/acceptTransitGatewayPeeringAttachment.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = AcceptTransitGatewayPeeringAttachmentRequest.t
type output = AcceptTransitGatewayPeeringAttachmentResult.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
... | 31.78125 | 117 | 0.593904 |
f3f889e6c9163dc529d964a0fb0b71add667115c | 2,071 | ml | OCaml | data/sp14_min/3121.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/3121.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/3121.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let l1 = [0; 0; 9; 9];;
let l2 = [1; 0; 0; 2];;
let x = (3, 3) :: (List.rev (List.combine l1 l2));;
let clone x n =
let rec helper x n acc =
if n <= 0 then acc else helper x (n - 1) (x :: acc) in
helper x n [];;
let padZero l1 l2 =
if (List.length l1) < (List.length l2)
then ((List.append (clone 0 ((Li... | 22.031915 | 79 | 0.538387 |
f36fddae79f3372d92893fe160e1f5b2094c832f | 114 | ml | OCaml | examples/ackermann.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 100 | 2017-09-08T09:49:08.000Z | 2022-03-10T12:12:50.000Z | examples/ackermann.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 1 | 2020-01-31T15:47:28.000Z | 2020-02-01T11:54:44.000Z | examples/ackermann.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | null | null | null | let rec a m n =
if m = 0 then n + 1 else
if n = 0 then a (m - 1) 1 else
a (m - 1) (a m (n - 1))
in
a 3 4
| 14.25 | 32 | 0.447368 |
f3513918cae37ca8bf17914bbb89caa7a2b29ccd | 99 | ml | OCaml | hollight/test/mathd-numbertheory-227.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 102 | 2021-05-04T09:50:13.000Z | 2022-03-27T12:00:05.000Z | hollight/test/mathd-numbertheory-227.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 49 | 2021-05-06T09:36:49.000Z | 2022-03-31T18:58:23.000Z | hollight/test/mathd-numbertheory-227.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 17 | 2021-05-06T09:04:02.000Z | 2022-03-29T11:25:46.000Z | let mathd-numbertheory-227 = `!x:num y:num n:num. (&x / &4 + &y / &6 = &(x + y) / &n) ==> n = 5`;;
| 49.5 | 98 | 0.444444 |
f343268e3d366f05a5063207737fad75635c899d | 64 | ml | OCaml | driver/pkcs11_CK_SESSION_HANDLE.ml | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | driver/pkcs11_CK_SESSION_HANDLE.ml | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | driver/pkcs11_CK_SESSION_HANDLE.ml | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | type t = P11_ulong.t
[@@deriving yojson]
let typ = Ctypes.ulong
| 16 | 22 | 0.71875 |
f33b79cb0bfec8797448976429ea3133b9cc6168 | 523 | ml | OCaml | src/calc/eval.ml | vrotaru/plzoo | ae6041c65baf1eebf65a60617819efeb8dcd3420 | [
"MIT"
] | 1,267 | 2015-01-01T18:23:48.000Z | 2022-03-31T06:31:51.000Z | src/calc/eval.ml | vrotaru/plzoo | ae6041c65baf1eebf65a60617819efeb8dcd3420 | [
"MIT"
] | 20 | 2016-05-19T11:24:40.000Z | 2020-11-11T09:36:21.000Z | src/calc/eval.ml | vrotaru/plzoo | ae6041c65baf1eebf65a60617819efeb8dcd3420 | [
"MIT"
] | 83 | 2015-07-04T15:28:52.000Z | 2022-03-24T13:11:49.000Z | (** Evaluation of expressions, given as big step semantics. *)
(** [eval e] evaluates the expression [e] to an integer. It raises an
exception if division by zero occurs. *)
let rec eval = function
| Syntax.Numeral n -> n
| Syntax.Plus (e1, e2) -> eval e1 + eval e2
| Syntax.Minus (e1, e2) -> eval e1 - eval e... | 37.357143 | 69 | 0.629063 |
d2da960e11cf6d823062bef74b166b6ed0c57b95 | 1,784 | mli | OCaml | expander/ppx_sexp_conv_expander.mli | pitag-ha/ppx_sexp_conv | dacdcdbe0d443a2f03ae2be2fbaf98c0216d9a82 | [
"MIT"
] | null | null | null | expander/ppx_sexp_conv_expander.mli | pitag-ha/ppx_sexp_conv | dacdcdbe0d443a2f03ae2be2fbaf98c0216d9a82 | [
"MIT"
] | null | null | null | expander/ppx_sexp_conv_expander.mli | pitag-ha/ppx_sexp_conv | dacdcdbe0d443a2f03ae2be2fbaf98c0216d9a82 | [
"MIT"
] | null | null | null | open Ppxlib
module Attrs : sig
val default : (label_declaration, expression) Attribute.t
val drop_default : (label_declaration, expression option) Attribute.t
val drop_if : (label_declaration, expression) Attribute.t
end
module Sexp_of : sig
val type_extension : core_type -> core_type
val core_type : core_t... | 24.108108 | 82 | 0.686099 |
af32663740b4c1835ca6297dcbb855b6bddf1e8a | 2,312 | ml | OCaml | oidc-client/Dynamic.ml | jchavarri/ocaml-oidc | c1f99c5e06a6e87d5a55f14e606bd7dc240e98e2 | [
"BSD-3-Clause"
] | null | null | null | oidc-client/Dynamic.ml | jchavarri/ocaml-oidc | c1f99c5e06a6e87d5a55f14e606bd7dc240e98e2 | [
"BSD-3-Clause"
] | null | null | null | oidc-client/Dynamic.ml | jchavarri/ocaml-oidc | c1f99c5e06a6e87d5a55f14e606bd7dc240e98e2 | [
"BSD-3-Clause"
] | null | null | null | type 'store t = {
kv : (module KeyValue.KV with type value = string and type store = 'store);
store : 'store;
http_client : Piaf.Client.t;
meta : Oidc.Client.meta;
provider_uri : Uri.t;
}
let get_or_create_client { kv; store; http_client; provider_uri; meta } =
let open Lwt_result.Infix in
Internal.disco... | 36.698413 | 81 | 0.720156 |
af0b76253a26f1ec31e3d6eb5e802e375b43ebad | 143 | ml | OCaml | result/fixml/max/sub35/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/max/sub35/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/max/sub35/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | let rec max : int list -> int =
fun lst ->
match lst with
| [] -> 0
| hd :: tl -> if hd < max tl && max [] < max tl then max tl else hd
| 23.833333 | 69 | 0.517483 |
f3a22f871ffd31536ee7746a3c2da4f4bc9d4c40 | 883 | mli | OCaml | src/services/autocomplete/autocompleteService_js.mli | radex/flow | 803afdc9990c4bdc3d489ec498f2b032fa7b2c08 | [
"MIT"
] | null | null | null | src/services/autocomplete/autocompleteService_js.mli | radex/flow | 803afdc9990c4bdc3d489ec498f2b032fa7b2c08 | [
"MIT"
] | null | null | null | src/services/autocomplete/autocompleteService_js.mli | radex/flow | 803afdc9990c4bdc3d489ec498f2b032fa7b2c08 | [
"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.
*)
type autocomplete_service_result =
| AcResult of {
result: ServerProt.Response.Completion.t;
errors_to_log: string li... | 25.970588 | 68 | 0.705549 |
f3d7935bfa031e76b8160be693200b06ea5e42b1 | 1,329 | mli | OCaml | dm/dm_step.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | dm/dm_step.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | dm/dm_step.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 36.916667 | 93 | 0.364936 |
f3f4b1db8f6a8c9b058e92d4adeb026a23a1f284 | 4,855 | ml | OCaml | order.ml | BFarinier/diplomacy | c3b86b11901039e349258997c1813918a203a6df | [
"MIT"
] | 1 | 2018-10-09T12:53:23.000Z | 2018-10-09T12:53:23.000Z | order.ml | BFarinier/diplomacy | c3b86b11901039e349258997c1813918a203a6df | [
"MIT"
] | null | null | null | order.ml | BFarinier/diplomacy | c3b86b11901039e349258997c1813918a203a6df | [
"MIT"
] | null | null | null | open MapBoard
type utag = [`Armies|`Fleets]
type otag = [`Hold|`Move|`SupportA|`SupportD|`Convoy]
type order =
| AHold of armies units
| AMove of armies units * armies province
| ASupportD of armies units * armies province
| ASupportA of armies units * armies province * armies province
| FHold of fleets uni... | 33.951049 | 82 | 0.632544 |
f32ecda85f84ca5ec45db1d832d0a2cfbfba5e53 | 5,559 | mli | OCaml | duniverse/bin_prot/shape/src/bin_shape.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/bin_prot/shape/src/bin_shape.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/bin_prot/shape/src/bin_shape.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null |
(** [Shape.t] are constructed by the [bin_shape] syntax extension from Ocaml type
definitions & expressions.
There is a direct mapping from ocaml type definition syntax to the corresponding
[Shape.group] and from ocaml type expression syntax to the corresponding [Shape.t].
*)
type t [@@deriving sexp_of]
... | 36.333333 | 90 | 0.685015 |
af255aa6dac8566f6b79d58de47533651bc48fd5 | 117,242 | ml | OCaml | src/ocaml-output/FStar_Syntax_Resugar.ml | victoria-petite/FStar | 9799598076ffad69be599f74e9cd1e0b06f8c268 | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_Syntax_Resugar.ml | victoria-petite/FStar | 9799598076ffad69be599f74e9cd1e0b06f8c268 | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_Syntax_Resugar.ml | victoria-petite/FStar | 9799598076ffad69be599f74e9cd1e0b06f8c268 | [
"Apache-2.0"
] | null | null | null | open Prims
let (doc_to_string : FStar_Pprint.document -> Prims.string) =
fun doc1 ->
FStar_Pprint.pretty_string (FStar_Util.float_of_string "1.0")
(Prims.of_int (100)) doc1
let (parser_term_to_string : FStar_Parser_AST.term -> Prims.string) =
fun t ->
let uu____15 = FStar_Parser_ToDocument.term_t... | 45.197379 | 114 | 0.498013 |
f3e02c30410ad78b4d4a089ab03879ccd5cb28a7 | 15,395 | ml | OCaml | src-select/fut_backend.ml | dbuenzli/fut | 907de63df12815f2df2cb796baa7fa37ac2758d4 | [
"ISC"
] | 10 | 2015-01-14T09:59:14.000Z | 2020-10-22T01:28:25.000Z | src-select/fut_backend.ml | dbuenzli/fut | 907de63df12815f2df2cb796baa7fa37ac2758d4 | [
"ISC"
] | null | null | null | src-select/fut_backend.ml | dbuenzli/fut | 907de63df12815f2df2cb796baa7fa37ac2758d4 | [
"ISC"
] | 1 | 2016-03-30T18:31:32.000Z | 2016-03-30T18:31:32.000Z | (*---------------------------------------------------------------------------
Copyright (c) 2014 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)
(* s... | 35.228833 | 79 | 0.601429 |
af15c1a7a8cd300403d40a7336ce6ac55bc27da1 | 31,427 | ml | OCaml | src/ast/analyzing/diffastcore.ml | mstmhsmt/cca | 0dc69b0f0da1def4e8404e5f7b7fe35b6ac3198a | [
"Apache-2.0"
] | null | null | null | src/ast/analyzing/diffastcore.ml | mstmhsmt/cca | 0dc69b0f0da1def4e8404e5f7b7fe35b6ac3198a | [
"Apache-2.0"
] | null | null | null | src/ast/analyzing/diffastcore.ml | mstmhsmt/cca | 0dc69b0f0da1def4e8404e5f7b7fe35b6ac3198a | [
"Apache-2.0"
] | null | null | null | (*
Copyright 2012-2020 Codinuum Software Lab <https://codinuum.com>
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... | 34.611233 | 109 | 0.546886 |
d2f948cec0bada53f21545204e1be5fb42b3f6ad | 13,473 | ml | OCaml | src/proto_010_PtGRANAD/lib_client_sapling/context.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_010_PtGRANAD/lib_client_sapling/context.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_010_PtGRANAD/lib_client_sapling/context.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2019-2020 Nomadic Labs <contact@nomadic-labs.com> *)
... | 32.860976 | 80 | 0.621985 |
f338a67da187c34041a96bac99deaaa8bad34c1e | 6,210 | ml | OCaml | test/Test_RealComponents.ml | millstein/LoopInvGen | 60e8ba586bc8c10a6992940a4365e594990a3b74 | [
"MIT"
] | null | null | null | test/Test_RealComponents.ml | millstein/LoopInvGen | 60e8ba586bc8c10a6992940a4365e594990a3b74 | [
"MIT"
] | 1 | 2020-09-01T02:05:18.000Z | 2020-09-01T02:05:18.000Z | test/Test_RealComponents.ml | millstein/LoopInvGen | 60e8ba586bc8c10a6992940a4365e594990a3b74 | [
"MIT"
] | null | null | null | open Base
open LoopInvGen
let value_of : Value.t -> float =
function [@warning "-8"]
| Real x -> x
let add_eval = (List.find_exn RealComponents.translation
~f:(fun comp -> String.equal comp.name "real-add")).evaluate
let sub_eval = (List.find_exn RealComponents.translation
... | 36.529412 | 94 | 0.628824 |
f3e22ac262918b55e040c30a07685a8a315787b7 | 1,868 | ml | OCaml | src/terminal/terminal.ml | mbarbin/progress | 42759d57cb5f437cf4c84c5258be0a6422d649ae | [
"MIT"
] | 90 | 2020-10-12T11:43:35.000Z | 2022-03-25T07:56:07.000Z | src/terminal/terminal.ml | mbarbin/progress | 42759d57cb5f437cf4c84c5258be0a6422d649ae | [
"MIT"
] | 16 | 2021-02-04T16:19:20.000Z | 2022-03-06T18:23:31.000Z | src/terminal/terminal.ml | mbarbin/progress | 42759d57cb5f437cf4c84c5258be0a6422d649ae | [
"MIT"
] | 8 | 2021-01-21T04:03:35.000Z | 2022-03-06T11:34:28.000Z | (*————————————————————————————————————————————————————————————————————————————
Copyright (c) 2020–2021 Craig Ferguson <me@craigfe.io>
Distributed under the MIT license. See terms at the end of this file.
————————————————————————————————————————————————————————————————————————————*)
module Color = Color
module ... | 39.744681 | 80 | 0.609743 |
af3ec8097f00deeb3e73d4c0133828104af1a252 | 5,449 | ml | OCaml | lib/delitmus/src/stub.ml | MattWindsor91/c4f | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 7 | 2018-11-27T23:53:58.000Z | 2020-11-22T11:56:16.000Z | lib/delitmus/src/stub.ml | MattWindsor91/act | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 235 | 2018-10-03T16:37:36.000Z | 2020-11-22T16:26:51.000Z | lib/delitmus/src/stub.ml | MattWindsor91/c4f | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 1 | 2018-11-13T16:43:19.000Z | 2018-11-13T16:43:19.000Z | (* This file is part of c4f.
Copyright (c) 2018-2022 C4 Project
c4t itself is licensed under the MIT License. See the LICENSE file in the
project root for more information.
Parts of c4t are based on code from the Herdtools7 project
(https://github.com/herd/herdtools7) : see the LICENSE.herd file in th... | 39.485507 | 77 | 0.683795 |
f3464109b14cc35694592e97c37a4444d8f36234 | 6,284 | mli | OCaml | infer/src/concurrency/RacerDDomain.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | infer/src/concurrency/RacerDDomain.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | infer/src/concurrency/RacerDDomain.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 2,225 | 2015-06-11T16:36:10.000Z | 2022-03-31T05:16:59.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module AccessExpression = HilExp.AccessExpression
module F = Format
val apply_to_first_actual : HilExp.t list -> 'a -> ... | 32.729167 | 102 | 0.686824 |
af09082626f1c0ab8ff4968efcedfefac6b52dbe | 3,448 | mli | OCaml | async_rpc/src/rpc_transport.mli | idkjs/async | 7e71341ab2b962c56b98f293a3bec6098eafd1b0 | [
"MIT"
] | 164 | 2015-02-05T05:53:03.000Z | 2022-02-28T02:38:59.000Z | async_rpc/src/rpc_transport.mli | webclinic017/async | 066d69e210e1269ef5055829dfbb99c0d21acc9c | [
"MIT"
] | 15 | 2015-08-07T09:53:35.000Z | 2022-03-01T16:55:34.000Z | async_rpc/src/rpc_transport.mli | webclinic017/async | 066d69e210e1269ef5055829dfbb99c0d21acc9c | [
"MIT"
] | 15 | 2015-04-23T20:46:18.000Z | 2021-12-17T02:53:42.000Z | open! Core
open! Import
(*_ The [Reader] and [Writer] modules from [Async], renamed to avoid conflicting with
[Reader] and [Writer] below. *)
module Async_reader := Reader
module Async_writer := Writer
module Reader : sig
include module type of struct
include Rpc_kernel.Transport.Reader
end
val of_reader... | 35.183673 | 89 | 0.690255 |
f3e4958587a983ab9261367bb02b89c9e0525bd8 | 3,844 | ml | OCaml | toplevel/top_compile.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | toplevel/top_compile.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | toplevel/top_compile.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 35.266055 | 159 | 0.526275 |
af17f21027ba6ce0c6d733df3d2cd9d44299d2d2 | 2,406 | ml | OCaml | src/playerSig.ml | ilikeheaps/small-shogi | 9176a729e657e1d0fb0b4caf5a5f872c7ff0bcf4 | [
"MIT"
] | null | null | null | src/playerSig.ml | ilikeheaps/small-shogi | 9176a729e657e1d0fb0b4caf5a5f872c7ff0bcf4 | [
"MIT"
] | null | null | null | src/playerSig.ml | ilikeheaps/small-shogi | 9176a729e657e1d0fb0b4caf5a5f872c7ff0bcf4 | [
"MIT"
] | null | null | null | (*
* Functions in here are supposed to take the state of a match, time remaining (for the current move) and state of the computation (taken from previous steps) and return the move, a new state of the computation and whether you want to continue the computation (in simple implementations you can always return true for... | 55.953488 | 324 | 0.704904 |
f3f5fa33e62ff1fbe7ed7acc12f7b380fb2907eb | 81 | ml | OCaml | data/derived/comb/progs/unify/prog7668.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/prog2870.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2870.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let pipe fs = let f a x x = x a in let base z = z in List.fold_left f base fs;;
| 27 | 79 | 0.62963 |
f33c66e6172d5c8f63a0b8611cc9a52eee70ba5e | 78 | mli | OCaml | src/pa_here.mli | janestreet/herelib | dc0aa1eda6b69578cd318b2148490fae4cf91cd8 | [
"Apache-2.0"
] | null | null | null | src/pa_here.mli | janestreet/herelib | dc0aa1eda6b69578cd318b2148490fae4cf91cd8 | [
"Apache-2.0"
] | null | null | null | src/pa_here.mli | janestreet/herelib | dc0aa1eda6b69578cd318b2148490fae4cf91cd8 | [
"Apache-2.0"
] | null | null | null |
val ast_of_loc : Camlp4.PreCast.Syntax.Gram.Loc.t -> Camlp4.PreCast.Ast.expr
| 26 | 76 | 0.769231 |
af3f709e5ee8c237dbfa4623d6779e30c918b523 | 1,022 | mli | OCaml | infer/src/nullsafe/DereferenceRule.mli | yangshun/infer | 5e7b0caaef0555bd0e66e2a4b18abf4f0903aadf | [
"MIT"
] | 1 | 2021-12-03T02:23:16.000Z | 2021-12-03T02:23:16.000Z | infer/src/nullsafe/DereferenceRule.mli | yangshun/infer | 5e7b0caaef0555bd0e66e2a4b18abf4f0903aadf | [
"MIT"
] | null | null | null | infer/src/nullsafe/DereferenceRule.mli | yangshun/infer | 5e7b0caaef0555bd0e66e2a4b18abf4f0903aadf | [
"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
(** Dereference rule should be checked every type an object is dereferenced. The rule checks if the
reference is nul... | 30.058824 | 99 | 0.747554 |
f3dd400c843bf62d39e392ea7fd19d339f28d22a | 204 | ml | OCaml | src/mirage_crypto.ml | TheLortex/mirage-crypto | 42563a78f0ee9e106e045f4bda3284dd58935ca4 | [
"0BSD"
] | 59 | 2020-02-11T09:17:56.000Z | 2022-03-30T18:16:58.000Z | src/mirage_crypto.ml | TheLortex/mirage-crypto | 42563a78f0ee9e106e045f4bda3284dd58935ca4 | [
"0BSD"
] | 115 | 2020-02-10T14:03:31.000Z | 2022-03-30T14:17:51.000Z | src/mirage_crypto.ml | TheLortex/mirage-crypto | 42563a78f0ee9e106e045f4bda3284dd58935ca4 | [
"0BSD"
] | 30 | 2020-02-11T12:53:50.000Z | 2022-03-30T18:16:59.000Z | module Uncommon = Uncommon
module Hash = Hash
module Poly1305 = Poly1305.It
module type AEAD = Aead.AEAD
module Cipher_block = Cipher_block
module Chacha20 = Chacha20
module Cipher_stream = Cipher_stream
| 25.5 | 36 | 0.813725 |
af1be6b0a280ef9d0d546935d8f2021c19f56fff | 550,045 | ml | OCaml | src/typing/flow_js.ml | lgordey/flow | c26d69bfd021c6d485bc6c34cb92c2504576d478 | [
"MIT"
] | null | null | null | src/typing/flow_js.ml | lgordey/flow | c26d69bfd021c6d485bc6c34cb92c2504576d478 | [
"MIT"
] | null | null | null | src/typing/flow_js.ml | lgordey/flow | c26d69bfd021c6d485bc6c34cb92c2504576d478 | [
"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.
*)
(* This module describes the subtyping algorithm that forms the core of
typechecking. The algorithm (in its basic form) is descr... | 45.431981 | 130 | 0.56989 |
f3f5ef4b1c9abd57ec9a7f21e654407a4f836aa9 | 1,444 | mli | OCaml | mirage/lwt_bounded_stream.mli | richardclegg/ocaml-pcap | a060225aee9e7912ab2ea14210c6392bec88ed5c | [
"0BSD"
] | 1 | 2021-04-25T11:14:15.000Z | 2021-04-25T11:14:15.000Z | mirage/lwt_bounded_stream.mli | richardclegg/ocaml-pcap | a060225aee9e7912ab2ea14210c6392bec88ed5c | [
"0BSD"
] | null | null | null | mirage/lwt_bounded_stream.mli | richardclegg/ocaml-pcap | a060225aee9e7912ab2ea14210c6392bec88ed5c | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2012 Citrix Systems
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI... | 42.470588 | 81 | 0.726454 |
f3dc62c2a367ebd1ac4d33ef683f5c106c5f2c22 | 977 | mli | OCaml | src/ordered_set_lang.mli | fdopen/jbuilder | a7067f5aa867c4c0d21650491e03793caf734f52 | [
"Apache-2.0"
] | null | null | null | src/ordered_set_lang.mli | fdopen/jbuilder | a7067f5aa867c4c0d21650491e03793caf734f52 | [
"Apache-2.0"
] | null | null | null | src/ordered_set_lang.mli | fdopen/jbuilder | a7067f5aa867c4c0d21650491e03793caf734f52 | [
"Apache-2.0"
] | null | null | null | (** [Ordered_set_lang.t] is a sexp-based representation for an ordered list of strings,
with some set like operations. *)
open Import
type t
val t : t Sexp.Of_sexp.t
val eval_with_standard : t -> standard:string list -> string list
val standard : t
val is_standard : t -> bool
val append : t -> t -> t
(** Map no... | 29.606061 | 98 | 0.668373 |
f3f023f2975585bb02985b5b117183c43d5ff031 | 32,782 | mll | OCaml | src/reason-parser/reason_lexer.mll | andreypopp/_r | b622e8f40c5605e9ab2b2423eb78053b8690d14e | [
"MIT"
] | null | null | null | src/reason-parser/reason_lexer.mll | andreypopp/_r | b622e8f40c5605e9ab2b2423eb78053b8690d14e | [
"MIT"
] | null | null | null | src/reason-parser/reason_lexer.mll | andreypopp/_r | b622e8f40c5605e9ab2b2423eb78053b8690d14e | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2015-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.
*
* Forked from OCaml, which is provided under the license below:
*
* Xavier Leroy, projet Cristal, INRIA Rocquencourt
*
* Copyright ... | 32.361303 | 86 | 0.588433 |
f33acd99914751a62ac91045a69aea305217955e | 4,549 | ml | OCaml | hphp/hack/src/typing/tast_expand.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_expand.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_expand.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Typing_defs
module T = Aast
(* Eliminate residue of type inference:
* 1. Tvars are replaced... | 30.736486 | 79 | 0.60233 |
d2de7c1b92f5803a6cbc30ea93f1b098b6bcf3a6 | 1,481 | mli | OCaml | libraries/auto-scaling/lib/attachLoadBalancerTargetGroups.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/auto-scaling/lib/attachLoadBalancerTargetGroups.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/auto-scaling/lib/attachLoadBalancerTargetGroups.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<p>Attaches one or more target groups to the specified Auto Scaling group.</p> <p>To describe the target groups for an Auto Scaling group, use <a>DescribeLoadBalancerTargetGroups</a>. To detach the target group from the Auto Scaling group, use <a>DetachLoadBalancerTargetGroups</a>.</p> <p>With Application Load Bal... | 59.24 | 726 | 0.745442 |
d2f470cb9b5d0733b7e1378fc1d80ae44d15f35d | 122 | ml | OCaml | data/derived/comb/progs/unify/prog6655.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/prog1825.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1825.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec filter l a =
match l with
| [] -> []
| hd::tl -> if hd = a then filter (tl, a) else h :: (filter (t, a));;
| 20.333333 | 71 | 0.483607 |
f3960f31237b78d2fd632b9198459e1c8819e42f | 1,600 | mli | OCaml | lwt-unix/conduit_lwt_unix_ssl_dummy.mli | arenadotio/ocaml-conduit | 05ddf131ca9f58375590af439878844d799e294d | [
"ISC"
] | null | null | null | lwt-unix/conduit_lwt_unix_ssl_dummy.mli | arenadotio/ocaml-conduit | 05ddf131ca9f58375590af439878844d799e294d | [
"ISC"
] | null | null | null | lwt-unix/conduit_lwt_unix_ssl_dummy.mli | arenadotio/ocaml-conduit | 05ddf131ca9f58375590af439878844d799e294d | [
"ISC"
] | null | null | null | (*
* Copyright (c) 2012-2014 Anil Madhavapeddy <anil@recoil.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS ... | 29.62963 | 78 | 0.695625 |
f3b228de85e58128af50512c9b375a2b90bd202c | 529 | ml | OCaml | inifile/refreference.ml | haoxuany/jpndrill | 4445d807dfc3cb1b34110fa84dfd4abf2a15c7d1 | [
"Apache-2.0"
] | 2 | 2021-10-04T06:14:34.000Z | 2021-11-09T04:20:03.000Z | inifile/refreference.ml | haoxuany/jpndrill | 4445d807dfc3cb1b34110fa84dfd4abf2a15c7d1 | [
"Apache-2.0"
] | null | null | null | inifile/refreference.ml | haoxuany/jpndrill | 4445d807dfc3cb1b34110fa84dfd4abf2a15c7d1 | [
"Apache-2.0"
] | null | null | null | open Signatures;;
module type SERIALIZER = sig
type rep
val serialize : rep -> string
val deserialize : string -> rep
end
module type REFENTRY = sig
type t
val reference : t ref
end
module RefReference =
functor (R : sig
module S : SERIALIZER
module E : REFENTRY
with type t = S.rep
end
) ... | 15.558824 | 33 | 0.640832 |
af21f2fdee780f76f9fee893b2346cd251a00875 | 2,877 | mli | OCaml | src/util/util.mli | tlaplus/v1-tlapm | c8523c675b2b20712a04c243c73a743d93c9e14a | [
"BSD-2-Clause"
] | 3 | 2019-09-02T11:44:20.000Z | 2020-01-23T07:46:12.000Z | src/util/util.mli | lemmy/tlapm | 563ac8d0454386c4797ce060253c03b941e6c463 | [
"BSD-2-Clause"
] | null | null | null | src/util/util.mli | lemmy/tlapm | 563ac8d0454386c4797ce060253c03b941e6c463 | [
"BSD-2-Clause"
] | 4 | 2019-06-28T15:15:43.000Z | 2020-02-17T01:14:35.000Z | (*
* util.mli --- format utilities
*
*
* Copyright (C) 2008-2010 INRIA and Microsoft Corporation
*)
(** A collection of utilities *)
open Property
(** {3 Locations} *)
val locate : 'a -> Loc.locus -> 'a wrapped
val location : ?cap:bool -> 'a wrapped -> string
val get_locus : 'a wrapped -> Loc.locus... | 28.485149 | 77 | 0.65902 |
f3b4c3952827785c72cd11983d67881d288fc03d | 177 | ml | OCaml | data/derived/comb/progs/unify/prog6733.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/prog1910.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1910.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec wwhile (f,b) =
let (b',c') = f b in match c' with | true -> wwhile (f, b') | false -> b';;
let fixpoint (f,b) = wwhile ((let func (x,y) = (f x) = y in func), b);;
| 29.5 | 79 | 0.502825 |
f3023f8a1d03789e797ccb5672ac05f13bdeb290 | 5,285 | ml | OCaml | src/ocaml/typer_405/raw_compat.ml | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | src/ocaml/typer_405/raw_compat.ml | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | src/ocaml/typer_405/raw_compat.ml | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | (* {{{ COPYING *(
This file is part of Merlin, an helper for ocaml editors
Copyright (C) 2013 - 2015 Frédéric Bour <frederic.bour(_)lakaban.net>
Thomas Refis <refis.thomas(_)gmail.com>
Simon Castellan <simon.castellan(_)iuwt.fr>
Permission is hereby... | 34.542484 | 79 | 0.622895 |
af1c00d2a5d68322ba516630135d2e858d55b8f7 | 449 | ml | OCaml | src/Implementation/OutFile.ml | hhugo/General | 5237123668e939c0cb83aa3e1c4756473336bc7e | [
"MIT"
] | 7 | 2020-11-09T02:07:18.000Z | 2021-02-20T08:29:05.000Z | src/Implementation/OutFile.ml | hhugo/General | 5237123668e939c0cb83aa3e1c4756473336bc7e | [
"MIT"
] | null | null | null | src/Implementation/OutFile.ml | hhugo/General | 5237123668e939c0cb83aa3e1c4756473336bc7e | [
"MIT"
] | 3 | 2020-11-09T00:57:00.000Z | 2021-02-20T08:31:51.000Z | module OCSP = OCamlStandard.Pervasives
type t = OCSP.out_channel
let seek x ~pos =
OCSP.LargeFile.seek_out x pos
let pos = OCSP.LargeFile.pos_out
let size = OCSP.LargeFile.out_channel_length
let channel = identity
let with_file s ~f =
let file = OCSP.open_out s in
try
let r = f file in
OCSP.close_ou... | 17.96 | 51 | 0.699332 |
af0725a66133a075f480a1def73c4c92de92c94d | 3,556 | mli | OCaml | src/binary_search.mli | Khady/base | db1981bd71ab3812aec02970c51bcc03b6c8fa61 | [
"MIT"
] | null | null | null | src/binary_search.mli | Khady/base | db1981bd71ab3812aec02970c51bcc03b6c8fa61 | [
"MIT"
] | null | null | null | src/binary_search.mli | Khady/base | db1981bd71ab3812aec02970c51bcc03b6c8fa61 | [
"MIT"
] | null | null | null | (** General functions for performing binary searches over ordered sequences given
[length] and [get] functions.
These functions can be specialized and added to a data structure using the functors
supplied in {{!Base.Binary_searchable}[Binary_searchable]} and described in
{{!Base.Binary_searchable_intf}... | 40.873563 | 89 | 0.612205 |
af195cee84c8fe2488663e140d7b69cc859068f4 | 5,405 | ml | OCaml | tls/albatross_tls_common.ml | hannesm/albatross | 26b5a59ea7eaf257d8327855db812be7b87060dd | [
"ISC"
] | 58 | 2017-12-25T11:36:27.000Z | 2020-11-20T02:30:24.000Z | tls/albatross_tls_common.ml | hannesm/albatross | 26b5a59ea7eaf257d8327855db812be7b87060dd | [
"ISC"
] | 31 | 2018-01-04T15:09:53.000Z | 2020-11-26T11:07:18.000Z | tls/albatross_tls_common.ml | hannesm/albatross | 26b5a59ea7eaf257d8327855db812be7b87060dd | [
"ISC"
] | 8 | 2018-01-03T22:48:34.000Z | 2020-11-09T12:55:11.000Z | (* (c) 2018 Hannes Mehnert, all rights reserved *)
open Lwt.Infix
let command = ref 0L
let tls_config cacert cert priv_key =
X509_lwt.private_of_pems ~cert ~priv_key >>= fun cert ->
X509_lwt.certs_of_pem cacert >>= (function
| [ ca ] -> Lwt.return ca
| _ -> Lwt.fail_with "expect single ca as cacert")... | 39.742647 | 117 | 0.566883 |
f32d25f5a8ae337214138b93bdfd3a566a813fbc | 321 | ml | OCaml | src/Result.ml | adnelson/bs-postgres | 3bcbd984cceef3fd44536daa39a81ad50e85cb7e | [
"MIT"
] | 3 | 2019-03-11T10:19:04.000Z | 2020-07-24T22:14:35.000Z | src/Result.ml | adnelson/bs-postgres | 3bcbd984cceef3fd44536daa39a81ad50e85cb7e | [
"MIT"
] | 1 | 2019-10-01T19:29:46.000Z | 2019-10-04T11:07:31.000Z | src/Result.ml | adnelson/bs-postgres | 3bcbd984cceef3fd44536daa39a81ad50e85cb7e | [
"MIT"
] | 4 | 2019-03-11T10:19:07.000Z | 2021-08-04T17:50:11.000Z | type 'a t =
< rows: 'a array
; fields: <name: string; dataTypeID: int> Js.t array
; rowCount: int
; command: string
> Js.t
let map f x =
[%bs.obj { rows = Js.Array.map f x##rows
; fields = x##fields
; rowCount = x##rowCount
; command = x##command
}]... | 22.928571 | 56 | 0.492212 |
d2fd4c19bc19a4dd0156c7530a445b82d03895f9 | 8,974 | ml | OCaml | hphp/hack/src/client/clientStart.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientStart.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientStart.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.
*
*)
module SMUtils = ServerMonitorUtils
let get_hhserver () =
let exe_name =
if Sys.win32 then "hh_server.exe" e... | 45.095477 | 94 | 0.656563 |
f3e2586e6783f966d3beaba80a367cbd6977be63 | 762 | ml | OCaml | benchmarks/lambda/lambda2/submissions/sub172.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/lambda/lambda2/submissions/sub172.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/lambda/lambda2/submissions/sub172.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z |
type exp =
| V of var
| P of var * exp
| C of exp * exp
and var = string
let rec check : exp -> bool
= fun exp ->
(*let lst = [](*default list*)*)
let rec finalcheck e l =(*check variable form by list, return bool*)
match l with
|[] -> false
|hd:... | 23.090909 | 98 | 0.494751 |
f37c60b489002eb75d45542875aaa7682a7541a4 | 7,430 | ml | OCaml | src/service/hfrag.ml | dbuenzli/hyperbib | f75cb77f01abc1929db9ef9882c57bb09ce3c2dc | [
"MIT"
] | 13 | 2021-12-24T11:18:20.000Z | 2022-03-14T09:18:08.000Z | src/service/hfrag.ml | dbuenzli/hyperbib | f75cb77f01abc1929db9ef9882c57bb09ce3c2dc | [
"MIT"
] | null | null | null | src/service/hfrag.ml | 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.
---------------------------------------------------------------------------*)
open Hyperbib.Std
(* Stri... | 39.521277 | 80 | 0.651279 |
af2d586ce565c81d47a3dbf4b8f5a0966c04042e | 707 | mli | OCaml | cilexts/cildump.mli | liangjs/relay | de123b8474c3485abaedcbc52be437d0d27c131d | [
"BSD-3-Clause"
] | 2 | 2019-10-05T04:17:01.000Z | 2021-03-08T14:30:34.000Z | cilexts/cildump.mli | liangjs/relay | de123b8474c3485abaedcbc52be437d0d27c131d | [
"BSD-3-Clause"
] | null | null | null | cilexts/cildump.mli | liangjs/relay | de123b8474c3485abaedcbc52be437d0d27c131d | [
"BSD-3-Clause"
] | 3 | 2017-07-04T11:06:22.000Z | 2022-02-25T05:55:27.000Z | (** Collection of "to string" functions for various Cil types *)
open Cil
open Pretty
(** Make a string out of an expression *)
val string_of_exp : exp -> string
(** Make a string out of an lval *)
val string_of_lval : lval -> string
(** Make a string out of a location *)
val string_of_loc : location -> string
(**... | 22.09375 | 64 | 0.70297 |
f32f18d7f0707f1e8b46359d9986500ff59743d2 | 3,441 | mli | OCaml | src/obj_array.mli | CraigFe/compact | daa1b516c917585b80e2fbace74690766a9ac907 | [
"MIT"
] | 37 | 2021-12-27T19:33:37.000Z | 2022-01-31T07:10:12.000Z | src/obj_array.mli | CraigFe/compact | daa1b516c917585b80e2fbace74690766a9ac907 | [
"MIT"
] | null | null | null | src/obj_array.mli | CraigFe/compact | daa1b516c917585b80e2fbace74690766a9ac907 | [
"MIT"
] | null | null | null | (*————————————————————————————————————————————————————————————————————————————
Copyright (c) 2016–2020 Jane Street Group, LLC <opensource@janestreet.com>
Distributed under the MIT license. See terms at the end of this file.
————————————————————————————————————————————————————————————————————————————*)
(** This... | 43.556962 | 81 | 0.635571 |
f375afcba2311c5da3510abb76941ab13f0648ce | 3,472 | ml | OCaml | 80-89+94-graphs/p94.ml | MassD/99 | 1d3019eb55b0d621ed1df4132315673dd812b1e1 | [
"MIT"
] | 31 | 2015-02-03T08:47:17.000Z | 2021-12-31T16:25:02.000Z | 80-89+94-graphs/p94.ml | MassD/99 | 1d3019eb55b0d621ed1df4132315673dd812b1e1 | [
"MIT"
] | null | null | null | 80-89+94-graphs/p94.ml | MassD/99 | 1d3019eb55b0d621ed1df4132315673dd812b1e1 | [
"MIT"
] | 5 | 2017-04-16T03:47:58.000Z | 2021-11-04T03:43:05.000Z | (*
Generate K-regular simple graphs with N nodes. (hard)
In a K-regular graph all nodes have a degree of K; i.e. the number of edges incident in each node is K. How many (non-isomorphic!) 3-regular graphs with 6 nodes are there?
*)
(* for isomorphism *)
type 'a graph = {nodes : 'a list;
edges : ('a * 'a) list
... | 27.338583 | 171 | 0.576613 |
af2e5ac9f207cec6365e4a0dd24ecbd11bc5a205 | 549 | mli | OCaml | src/lib/frontend/Console.mli | DanielBentleyMacLeod/lucid | 7364207bc90737a835505c6f2131d9258a3a590a | [
"MIT"
] | 12 | 2021-07-07T16:09:56.000Z | 2022-03-09T14:49:38.000Z | src/lib/frontend/Console.mli | DanielBentleyMacLeod/lucid | 7364207bc90737a835505c6f2131d9258a3a590a | [
"MIT"
] | 7 | 2021-08-30T16:48:24.000Z | 2022-02-28T21:19:34.000Z | src/lib/frontend/Console.mli | DanielBentleyMacLeod/lucid | 7364207bc90737a835505c6f2131d9258a3a590a | [
"MIT"
] | 2 | 2021-11-05T23:14:37.000Z | 2022-03-14T02:10:32.000Z | module T = ANSITerminal
exception Error of string
(* read_files initializes info about the input files for position printing *)
val read_files : string list -> unit
val error : string -> 'a
val warning : string -> unit
val report : string -> unit
val show_message : string -> T.color -> string -> unit
val error_positi... | 34.3125 | 77 | 0.712204 |
f3844d77cef9b7b98797e5ebed160c69510c0ecd | 1,190 | ml | OCaml | ocaml/src/reducingBySteps.ml | emliunix/codewars | 61b2f11b27022561f5600d494c50c24931258b4f | [
"MIT"
] | null | null | null | ocaml/src/reducingBySteps.ml | emliunix/codewars | 61b2f11b27022561f5600d494c50c24931258b4f | [
"MIT"
] | null | null | null | ocaml/src/reducingBySteps.ml | emliunix/codewars | 61b2f11b27022561f5600d494c50c24931258b4f | [
"MIT"
] | null | null | null | (* https://www.codewars.com/kata/56efab15740d301ab40002ee/train/ocaml *)
let oper fct arr init : int list =
let rec helper a inarr res =
match inarr with
| [] -> res
| x::xs -> let v = fct a x in
helper v xs (v :: res)
in
List.rev @@ helper init arr []
let som (x: int) (y: int) = x +... | 23.8 | 72 | 0.516807 |
f3e2a7076bb22d7c8657d629d95a1c3bf48ceba1 | 46,854 | ml | OCaml | src/core/CCList.ml | FardaleM/ocaml-containers | 0a3b04855ab27925d6a8d6253151c2c7c03aff13 | [
"BSD-2-Clause"
] | null | null | null | src/core/CCList.ml | FardaleM/ocaml-containers | 0a3b04855ab27925d6a8d6253151c2c7c03aff13 | [
"BSD-2-Clause"
] | null | null | null | src/core/CCList.ml | FardaleM/ocaml-containers | 0a3b04855ab27925d6a8d6253151c2c7c03aff13 | [
"BSD-2-Clause"
] | null | null | null |
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Complements to list} *)
open CCShims_
(*$inject
let lsort l = List.sort Stdlib.compare l
*)
(* backport new functions from stdlib here *)
let nth_opt l n =
if n<0 then invalid_arg "nth_opt";
let rec aux l n = m... | 25.353896 | 102 | 0.528343 |
f3a8407637ae30ee20dcc3ce8019d25559102757 | 1,203 | mli | OCaml | interp.mli | nojb/tiger-interp | 6c03060fe1849af137d221eb39267c42153ece65 | [
"MIT"
] | 1 | 2019-03-30T00:47:56.000Z | 2019-03-30T00:47:56.000Z | interp.mli | nojb/tiger-interp | 6c03060fe1849af137d221eb39267c42153ece65 | [
"MIT"
] | null | null | null | interp.mli | nojb/tiger-interp | 6c03060fe1849af137d221eb39267c42153ece65 | [
"MIT"
] | null | null | null | (* The MIT License (MIT)
Copyright (c) 2015 Nicolas Ojeda Bar <n.oje.bar@gmail.com>
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 t... | 50.125 | 80 | 0.757273 |
af19a297b7b70bc40a9e4744609e9ce33f31f0af | 1,726 | ml | OCaml | lib/xen_trace_source.ml | talex5/mirage-trace-dump-xen | 5e4a8806b7ae171a6e00ad9c7bc42589ef9bfc76 | [
"BSD-2-Clause"
] | 2 | 2021-04-08T15:16:21.000Z | 2021-04-08T15:27:56.000Z | lib/xen_trace_source.ml | talex5/mirage-trace-dump-xen | 5e4a8806b7ae171a6e00ad9c7bc42589ef9bfc76 | [
"BSD-2-Clause"
] | null | null | null | lib/xen_trace_source.ml | talex5/mirage-trace-dump-xen | 5e4a8806b7ae171a6e00ad9c7bc42589ef9bfc76 | [
"BSD-2-Clause"
] | null | null | null | (* Copyright (C) 2014, Thomas Leonard *)
(** Load a trace from another process's trace buffer (in a shared memory region). *)
open Bigarray
module Xs = Xs_client_unix.Client(Xs_transport_unix_client)
type log_buffer = (char, int8_unsigned_elt, c_layout) Array1.t
type t = {
dom : int;
refs : int list;
}
type d... | 29.254237 | 103 | 0.647161 |
f33233054badbc95ccb18fb9aecaf7e11b372dd6 | 3,143 | ml | OCaml | external/ocamlgraph/src/classic.ml | gridaphobe/liquid-fixpoint | fcca9d786eba38341ac13996bd352d773aa7d37c | [
"BSD-3-Clause"
] | 3 | 2019-11-29T01:33:47.000Z | 2021-05-30T16:40:40.000Z | external/ocamlgraph/src/classic.ml | gridaphobe/liquid-fixpoint | fcca9d786eba38341ac13996bd352d773aa7d37c | [
"BSD-3-Clause"
] | 1 | 2018-04-24T10:43:07.000Z | 2018-04-24T10:43:07.000Z | external/ocamlgraph/src/classic.ml | gridaphobe/liquid-fixpoint | fcca9d786eba38341ac13996bd352d773aa7d37c | [
"BSD-3-Clause"
] | null | null | null | (**************************************************************************)
(* *)
(* Ocamlgraph: a generic graph library for OCaml *)
(* Copyright (C) 2004-2007 *)
(* Sylvain ... | 36.546512 | 78 | 0.476933 |
af057500db9e2316d7307916b9467e22ec907475 | 8,055 | ml | OCaml | src/Tiny_httpd_stream.ml | c-cube/simplehttpserver | c8d89e24be18240c3eee27737713a5e70a68b7f5 | [
"MIT"
] | 6 | 2019-11-14T08:50:35.000Z | 2019-11-15T14:21:54.000Z | src/Tiny_httpd_stream.ml | c-cube/simplehttpserver | c8d89e24be18240c3eee27737713a5e70a68b7f5 | [
"MIT"
] | 3 | 2019-11-14T05:56:23.000Z | 2019-11-17T18:12:25.000Z | src/Tiny_httpd_stream.ml | c-cube/simplehttpserver | c8d89e24be18240c3eee27737713a5e70a68b7f5 | [
"MIT"
] | null | null | null |
module Buf = Tiny_httpd_buf
let spf = Printf.sprintf
type hidden = unit
type t = {
mutable bs: bytes;
mutable off : int;
mutable len : int;
fill_buf: unit -> unit;
consume: int -> unit;
close: unit -> unit;
_rest: hidden;
}
let[@inline] close self = self.close()
let empty = {
bs=Bytes.empty;
off=... | 25.734824 | 81 | 0.537803 |
f39cd123282781212bd08e6cc6be01891c105e99 | 2,930 | mli | OCaml | upstream/ocaml_412/utils/local_store.mli | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 1,031 | 2016-12-16T19:17:17.000Z | 2022-03-24T06:30:52.000Z | upstream/ocaml_412/utils/local_store.mli | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 754 | 2016-12-16T14:01:33.000Z | 2022-03-31T13:21:16.000Z | upstream/ocaml_412/utils/local_store.mli | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 177 | 2017-01-04T17:35:53.000Z | 2022-02-18T02:54:14.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 43.731343 | 80 | 0.510922 |
d2f8b6bbe775b82d5e004e71b55670915684cc60 | 3,326 | ml | OCaml | src/typing/type_annotation_sig.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/typing/type_annotation_sig.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/typing/type_annotation_sig.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.
*)
(** services for producing types from annotations,
called during AST traversal.
*)
module type S = sig
module Env : Env_s... | 30.236364 | 91 | 0.656945 |
f3c201bd159e61ebac943f01b2de54d1da3ab0b8 | 1,036 | ml | OCaml | data/derived/comb/progs/unify/prog4854.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/prog4854.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog4854.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let clone x n =
let rec helper x n acc =
if n <= 0 then acc else helper x (n - 1) (x :: acc) in
helper x n [];;
let padZero l1 l2 =
if (List.length l1) < (List.length l2)
then ((List.append (clone 0 ((List.length l2) - (List.length l1))) l1), l2)
else (l1, (List.append (clone 0 ((List.length l1) - (List... | 30.470588 | 79 | 0.580116 |
af0b86236ca8e1d150316f33ccfce3c7d3e7075b | 1,446 | ml | OCaml | hack/utils/bser/bser_main_test.ml | Connormiha/flow | 5a9f63fab7b4c1453c1e0950a56df6fac1a9d612 | [
"MIT"
] | 7 | 2015-08-28T06:20:50.000Z | 2021-11-08T09:48:24.000Z | hack/utils/bser/bser_main_test.ml | angeloocana/flow | 6632dcaebe460c691e60cdc33253a5940068ff1e | [
"BSD-3-Clause"
] | 2 | 2021-07-07T23:32:21.000Z | 2022-03-23T16:49:04.000Z | hack/utils/bser/bser_main_test.ml | angeloocana/flow | 6632dcaebe460c691e60cdc33253a5940068ff1e | [
"BSD-3-Clause"
] | 3 | 2018-01-23T20:44:59.000Z | 2021-05-06T12:45:31.000Z | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
let usage = "... | 24.508475 | 80 | 0.64592 |
d2ff737cf45a6cfbe62653896649ae635f872b2e | 4,838 | ml | OCaml | discover/discover.ml | janestreet/config_h | 8ad47534e7aadd3a6848b5a3d5ce68ad4e251e7e | [
"MIT"
] | null | null | null | discover/discover.ml | janestreet/config_h | 8ad47534e7aadd3a6848b5a3d5ce68ad4e251e7e | [
"MIT"
] | null | null | null | discover/discover.ml | janestreet/config_h | 8ad47534e7aadd3a6848b5a3d5ce68ad4e251e7e | [
"MIT"
] | null | null | null | open Base
module C = Configurator.V1
let eventfd_code = {|
#include <sys/eventfd.h>
int main()
{
int fd = eventfd(0, 0);
return 0;
}
|}
let posix_timers_code = {|
#include <time.h>
int main()
{
struct timespec ts;
clock_gettime(CLOCK_REALTIME, &ts);
clock_settime(CLOCK_REALTIME, &ts);
clock_getres(CLOCK... | 20.074689 | 101 | 0.572137 |
af16d62a0ae1893773174ae20060e5e9b0b76c0d | 29,319 | ml | OCaml | test/irmin/test_tree.ml | jthelin/irmin | f989de227332918b12c25415c0fa8ed2a1e34ec9 | [
"0BSD"
] | null | null | null | test/irmin/test_tree.ml | jthelin/irmin | f989de227332918b12c25415c0fa8ed2a1e34ec9 | [
"0BSD"
] | 2 | 2020-09-24T07:16:37.000Z | 2021-01-07T18:03:13.000Z | test/irmin/test_tree.ml | jthelin/irmin | f989de227332918b12c25415c0fa8ed2a1e34ec9 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-2021 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 34.131548 | 83 | 0.610014 |
af1f90d44811d55333f4646a4aac87f726f7ffa6 | 6,340 | ml | OCaml | arm/proofs/bignum_double_p521.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 33 | 2021-03-11T16:12:01.000Z | 2022-03-06T17:01:18.000Z | arm/proofs/bignum_double_p521.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 8 | 2021-09-06T12:58:47.000Z | 2022-01-03T16:43:09.000Z | arm/proofs/bignum_double_p521.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 4 | 2021-03-11T19:28:16.000Z | 2021-12-12T23:40:44.000Z | (*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "LICENSE" file ... | 47.669173 | 196 | 0.616246 |
af2da9ec0af6d2ad26704a12030a2afdab96375a | 1,484 | ml | OCaml | data/derived/comb/progs/unify/prog0253.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/prog0253.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0253.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n = if n > 0 then x :: (clone x (n - 1)) else [];;
let padZero l1 l2 =
if (List.length l1) < (List.length l2)
then ((List.append (clone 0 ((List.length l2) - (List.length l1))) l1), l2)
else (l1, (List.append (clone 0 ((List.length l1) - (List.length l2))) l2));;
let rec removeZero l =
match ... | 32.977778 | 79 | 0.440701 |
f3fd9a5f9177fbcec32f949a090919c370d68320 | 3,793 | ml | OCaml | src/dune/format_config.ml | Julow/dune | 2aac0728daa65780df9187a409a1c166ff9ab6bf | [
"MIT"
] | null | null | null | src/dune/format_config.ml | Julow/dune | 2aac0728daa65780df9187a409a1c166ff9ab6bf | [
"MIT"
] | null | null | null | src/dune/format_config.ml | Julow/dune | 2aac0728daa65780df9187a409a1c166ff9ab6bf | [
"MIT"
] | null | null | null | open! Stdune
open Import
open Dune_lang.Decoder
let syntax =
Dune_lang.Syntax.create ~name:"fmt"
~desc:"integration with automatic formatters" [ (1, 2) ]
module Language = struct
type t =
| Dialect of string
| Dune
let to_dyn =
let open Dyn.Encoder in
function
| Dialect name -> constr "... | 25.286667 | 79 | 0.646454 |
d2f7b5e7fb75068a370afca25e32611b12876487 | 7,055 | mli | OCaml | src/proto_alpha/lib_protocol/delegate_services.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_alpha/lib_protocol/delegate_services.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_alpha/lib_protocol/delegate_services.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 33.278302 | 79 | 0.635436 |
af39ef962fc31f6c2c6f020b28873cedcd7b0b7e | 4,112 | mll | OCaml | test/unit-tests/expect_test.mll | TheLortex/dune | df3d1ab23f7bde17f45bfceeebf0c211f9573d47 | [
"MIT"
] | null | null | null | test/unit-tests/expect_test.mll | TheLortex/dune | df3d1ab23f7bde17f45bfceeebf0c211f9573d47 | [
"MIT"
] | null | null | null | test/unit-tests/expect_test.mll | TheLortex/dune | df3d1ab23f7bde17f45bfceeebf0c211f9573d47 | [
"MIT"
] | null | null | null | {
open StdLabels
type kind = Ignore | Expect | Error
}
let newline = eof | '\r'? '\n'
rule code txt start = parse
| "[%%ignore]\n" {
let pos = start.Lexing.pos_cnum in
let len = Lexing.lexeme_start lexbuf - pos in
let s = String.sub txt ~pos ~len in
Lexing.new_line lexbuf;
(Ignore, start, s) ::... | 27.597315 | 76 | 0.585117 |
f341f9656954cee0cb8b2d7ae5600a893174afd6 | 1,828 | ml | OCaml | data/sp14/0526.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/0526.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/0526.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 pi = 4.0 *. (atan 1.0);;
let rec eval (e,x,y) =
match e with
| VarX -> x
| VarY -> y
| Sine i -> sin (pi *. (eval (i, x, y)))
| Cosine i -> cos (p... | 16.468468 | 72 | 0.495624 |
af4802319c6879367b4782f5df943e2c12de7e32 | 13,217 | ml | OCaml | hphp/hack/src/parser/full_fidelity_positioned_token.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_positioned_token.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_positioned_token.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"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.
*
*)
(**
* Positioned token
*
* A positioned token stores the original source text,
* the offset of the leading trivi... | 30.953162 | 93 | 0.709919 |
f34d5a220c57ce7c9e9608aee414da2032b365f7 | 1,066 | ml | OCaml | vendor/ppx_hash/runtime-lib/test/threads.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/ppx_hash/runtime-lib/test/threads.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/ppx_hash/runtime-lib/test/threads.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z |
open Core
module Tests(Hash : Base.Hash.S with type hash_value = int) = struct
module Ppx_hash_lib = struct
module Std = struct module Hash = Base.Hash.F(Hash) end
end
module Hash = Ppx_hash_lib.Std.Hash
open Hash.Builtin
let hash_fold_int s t =
(* nanosleep forces threads to yield *)
ignore (... | 24.790698 | 69 | 0.638837 |
f3b2f2b25fe899a77d8df79b5bcebb2e4e23ea4e | 3,916 | mli | OCaml | hphp/hack/src/procs/workerController.mli | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/procs/workerController.mli | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/procs/workerController.mli | 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.
*
*)
open Core_kernel
(*****************************************************************************)
(* Module building... | 30.59375 | 79 | 0.637385 |
f3f2ca2bcc7cc7cef4b6fb6b55264a1997d79615 | 987 | ml | OCaml | vendor/incremental/src/scope.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/incremental/src/scope.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/incremental/src/scope.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open Core_kernel
open! Import
module Node = Types.Node
include Types.Scope
let top = Top
let is_top = function
| Top -> true
| Bind _ -> false
;;
let invariant = function
| Top -> ()
| Bind bind -> Bind.invariant ignore ignore bind
;;
(* Unlike for nodes, there is no invariant [is_necessary t <=> height > -... | 22.431818 | 89 | 0.672746 |
af1618a8414926fff178591825bb23f85a35e40a | 18,230 | ml | OCaml | legacy/lib/c/src/bandpass_nifti/FFTW/fftw-3.1.2/genfft/algsimp.ml | deyingli/Standalone_Ooi2022_MMP | 74fdb28cb1c26a3088144ced720fc69351ffa5ab | [
"MIT"
] | null | null | null | legacy/lib/c/src/bandpass_nifti/FFTW/fftw-3.1.2/genfft/algsimp.ml | deyingli/Standalone_Ooi2022_MMP | 74fdb28cb1c26a3088144ced720fc69351ffa5ab | [
"MIT"
] | null | null | null | legacy/lib/c/src/bandpass_nifti/FFTW/fftw-3.1.2/genfft/algsimp.ml | deyingli/Standalone_Ooi2022_MMP | 74fdb28cb1c26a3088144ced720fc69351ffa5ab | [
"MIT"
] | 1 | 2022-03-12T08:21:59.000Z | 2022-03-12T08:21:59.000Z | (*
* Copyright (c) 1997-1999 Massachusetts Institute of Technology
* Copyright (c) 2003, 2006 Matteo Frigo
* Copyright (c) 2003, 2006 Massachusetts Institute of Technology
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published b... | 32.038664 | 79 | 0.556007 |
f32c7437de3b25dcd10334fc70dfe835ea243d42 | 1,117 | mli | OCaml | plugin/src/core/components/factoring/factoring.mli | uwplse/PUMPKIN-PATCH | 75e93275290c76d13a7a8b3a2124257be895f5e4 | [
"MIT"
] | 44 | 2017-10-07T05:13:45.000Z | 2022-03-29T22:29:39.000Z | plugin/src/core/components/factoring/factoring.mli | uwplse/PUMPKIN-PATCH | 75e93275290c76d13a7a8b3a2124257be895f5e4 | [
"MIT"
] | 75 | 2017-12-14T02:05:29.000Z | 2020-09-29T23:54:24.000Z | plugin/src/core/components/factoring/factoring.mli | uwplse/PUMPKIN-PATCH | 75e93275290c76d13a7a8b3a2124257be895f5e4 | [
"MIT"
] | 2 | 2017-12-09T16:05:13.000Z | 2021-05-14T09:29:34.000Z | (* --- The Factoring Component --- *)
open Constr
open Environ
open Evd
open Stateutils
(*
* Factors are a list of environment-type pairs, where the environment
* contains all necessary assumptions. This is essentially a way
* to avoid DeBruijn problems while reasoning about factors with hypotheses
* that depend ... | 30.189189 | 75 | 0.715309 |
af23344ff19c55f8e3b8d96582d0d00abc789128 | 72 | ml | OCaml | hello_world/bin/plugin_003.ml | janestreet/ocaml_plugin | addc0b5d63ea7e3470507cb739db8ee366025e57 | [
"MIT"
] | 47 | 2015-02-14T19:39:20.000Z | 2022-01-19T08:33:26.000Z | hello_world/bin/plugin_003.ml | janestreet/ocaml_plugin | addc0b5d63ea7e3470507cb739db8ee366025e57 | [
"MIT"
] | 4 | 2016-03-11T12:37:52.000Z | 2018-04-18T16:39:37.000Z | hello_world/bin/plugin_003.ml | janestreet/ocaml_plugin | addc0b5d63ea7e3470507cb739db8ee366025e57 | [
"MIT"
] | 5 | 2016-05-19T16:36:54.000Z | 2021-12-17T02:50:56.000Z | open! Core
let f s = s^s^s
let message = f "plugin_003 is a stammer "
| 12 | 42 | 0.652778 |
af2d1038355b6f209a6c33625f9ef8cb2ba8ff8d | 4,235 | mli | OCaml | hphp/hack/test/integration_ml/integration_test_base.mli | kkopachev/hhvm | a9f242ec029c37b1e9d1715b13661e66293d87ab | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-06-19T23:31:58.000Z | 2021-06-19T23:31:58.000Z | hphp/hack/test/integration_ml/integration_test_base.mli | kkopachev/hhvm | a9f242ec029c37b1e9d1715b13661e66293d87ab | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration_ml/integration_test_base.mli | kkopachev/hhvm | a9f242ec029c37b1e9d1715b13661e66293d87ab | [
"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
val setup_server: ?custom_config:ServerConfig.t ->
?hhi_files:(string * stri... | 25.981595 | 81 | 0.730815 |
d2ec3670c87bff7a80209b5dee5a3a4978b25e79 | 200 | ml | OCaml | gen/gen.ml | mthssdrbrg/rekube | d4b91f1fda3799ea688225ed51ac22dfd573af8b | [
"MIT"
] | 21 | 2019-03-12T17:03:07.000Z | 2020-01-29T13:50:47.000Z | gen/gen.ml | mthssdrbrg/rekube | d4b91f1fda3799ea688225ed51ac22dfd573af8b | [
"MIT"
] | 1 | 2020-04-26T13:02:58.000Z | 2020-04-27T14:00:40.000Z | gen/gen.ml | rizo/rekube | 0ce7f9f31759c16c0b91b941a08c810389f0e060 | [
"MIT"
] | 1 | 2020-04-24T16:17:38.000Z | 2020-04-24T16:17:38.000Z |
let () =
Swagger.codegen
~input:Sys.argv.(1)
~output:stdout
~path_base:"/"
~definition_base:"io.k8s."
~reference_base:"#/definitions/io.k8s."
~reference_root:"Definitions"
| 18.181818 | 43 | 0.63 |
f3a68c44864e7674450472cebc9c98430db0c442 | 901 | mli | OCaml | src/parser.mli | CornellDataScience/cypria-query-language | 7cd1b9241aa78fcb0853df3b779cd6e5f228b4ca | [
"MIT"
] | 2 | 2020-02-02T21:11:03.000Z | 2020-02-04T14:39:09.000Z | src/parser.mli | CornellDataScience/cypria-query-language | 7cd1b9241aa78fcb0853df3b779cd6e5f228b4ca | [
"MIT"
] | null | null | null | src/parser.mli | CornellDataScience/cypria-query-language | 7cd1b9241aa78fcb0853df3b779cd6e5f228b4ca | [
"MIT"
] | null | null | null | open Ast
exception ParseError of string
val next_paren_contained_string : string -> string * string
(* val parse_ast_from_string : string -> expression *)
val parse_ast_from_string : string -> expression option
(** [parse_map str] evaluates a "project_cols" string in Cypria to a
[map_configuration] ast for th... | 39.173913 | 78 | 0.716981 |
d2d41fa45596a208b9d22ac1602fbfcd0c400db8 | 1,524 | mli | OCaml | infer/src/nullsafe/typeCheck.mli | asyard/infer | ce1ba6a8c670445edef5bde378543b39d7854ecf | [
"MIT"
] | null | null | null | infer/src/nullsafe/typeCheck.mli | asyard/infer | ce1ba6a8c670445edef5bde378543b39d7854ecf | [
"MIT"
] | null | null | null | infer/src/nullsafe/typeCheck.mli | asyard/infer | ce1ba6a8c670445edef5bde378543b39d7854ecf | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
(** Module type for the type checking functions. *)
type check_return_type = Procname.t -> Procdesc.t -> Typ.t -> Typ.... | 36.285714 | 99 | 0.704068 |
f34482b682204dcfae62ebd3973cb16e4e01a5d0 | 3,381 | ml | OCaml | test/test_serious.ml | lebotlan/ocaml-exenum | eab63e63a26d0a014c254183e66f236abe1529ce | [
"MIT"
] | 5 | 2017-07-10T01:39:32.000Z | 2017-08-29T08:06:52.000Z | test/test_serious.ml | lebotlan/ocaml-exenum | eab63e63a26d0a014c254183e66f236abe1529ce | [
"MIT"
] | null | null | null | test/test_serious.ml | lebotlan/ocaml-exenum | eab63e63a26d0a014c254183e66f236abe1529ce | [
"MIT"
] | null | null | null | open Exenum
open Exenum_internals.Convenience
(* The tests succeeds if it does not fail. *)
(* Test injectivity:
* Two differents indices lead to two different values.
* Quite easy to check, using ocaml polymorphic comparison. *)
let check_injective exen start length =
Printf.printf "Starting injectivity te... | 27.266129 | 115 | 0.701863 |
f324a50ba7d02b5c17db7f44ecf9507c765fe69c | 1,544 | ml | OCaml | lib/pastry/router.ml | orbitz/ocaml-pastry | 9a31bf0328ae44b4130d729845119b5bf0413b36 | [
"BSD-3-Clause"
] | 1 | 2015-05-09T17:56:16.000Z | 2015-05-09T17:56:16.000Z | lib/pastry/router.ml | orbitz/ocaml-pastry | 9a31bf0328ae44b4130d729845119b5bf0413b36 | [
"BSD-3-Clause"
] | null | null | null | lib/pastry/router.ml | orbitz/ocaml-pastry | 9a31bf0328ae44b4130d729845119b5bf0413b36 | [
"BSD-3-Clause"
] | null | null | null | open Core.Std
type 'a t = { me : 'a Node.t
; b : int
; leaf_set : 'a Leaf_set.t
; routing_table : 'a Routing_table.t
}
let create ~me ~b =
{ me
; b
; leaf_set = Leaf_set.create ~me (2 lsl b)
; routing_table = Routing_table.create ~me:(Node.key me) ~b
}
l... | 24.125 | 83 | 0.618523 |
f39d3fdd9fc3cd7ae2c46f293b798fb146c229e8 | 7,747 | ml | OCaml | hphp/hack/src/decl/decl_nast.ml | mshen63/hhvm | 93180906138ea86bb972ccef1858a1ca6a9d5856 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/decl_nast.ml | mshen63/hhvm | 93180906138ea86bb972ccef1858a1ca6a9d5856 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/decl_nast.ml | mshen63/hhvm | 93180906138ea86bb972ccef1858a1ca6a9d5856 | [
"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.
*
*)
(*****************************************************************************)
(* Module used to convert an AST int... | 32.279167 | 80 | 0.612366 |
f35e978823272848677997e46fb86216135fa353 | 1,793 | ml | OCaml | tapl/ocaml/simplebool/core.ml | at15/mini-impl | 9878dce9f0c7e59966f7a3e05e42d1188322b3c9 | [
"MIT"
] | 2 | 2017-11-05T10:38:37.000Z | 2018-02-19T01:11:09.000Z | tapl/ocaml/simplebool/core.ml | at15/mini-impl | 9878dce9f0c7e59966f7a3e05e42d1188322b3c9 | [
"MIT"
] | 7 | 2016-11-06T05:24:57.000Z | 2018-05-04T21:11:15.000Z | tapl/ocaml/simplebool/core.ml | at15/mini-impl | 9878dce9f0c7e59966f7a3e05e42d1188322b3c9 | [
"MIT"
] | null | null | null | open Format
open Syntax
open Support.Error
open Support.Pervasive
(* ------------------------ EVALUATION ------------------------ *)
let rec isval ctx t = match t with
TmTrue(_) -> true
| TmFalse(_) -> true
| TmAbs(_,_,_,_) -> true
| _ -> false
exception NoRuleApplies
let rec eval1 ctx t = match t wit... | 26.761194 | 69 | 0.545455 |
f3b1261f3bece52038fa08ae6e3f8bcd453484df | 4,121 | mli | OCaml | src/base/misc/owl_view.mli | pvdhove/owl | 072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31 | [
"MIT"
] | null | null | null | src/base/misc/owl_view.mli | pvdhove/owl | 072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31 | [
"MIT"
] | null | null | null | src/base/misc/owl_view.mli | 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>
*)
(** View module
This module is used to create views atop of an ndarray. The view creation is
very light-weighted and avoids copying actual data. You can further create
views atop of existing... | 28.818182 | 89 | 0.605193 |
af2a202f72120c6808f30d5791c0dea9216b709f | 15,393 | mli | OCaml | sundials.mli | jun0/sundialsml | cd261d74ff9cd9bf2db95ef1fe6abc5b2aed985d | [
"BSD-3-Clause"
] | null | null | null | sundials.mli | jun0/sundialsml | cd261d74ff9cd9bf2db95ef1fe6abc5b2aed985d | [
"BSD-3-Clause"
] | null | null | null | sundials.mli | jun0/sundialsml | cd261d74ff9cd9bf2db95ef1fe6abc5b2aed985d | [
"BSD-3-Clause"
] | null | null | null | (***********************************************************************)
(* *)
(* OCaml interface to Sundials *)
(* *)
(* Timothy B... | 35.305046 | 82 | 0.584032 |
f3b8119de3f1fec802e795da6a48feea1fe39731 | 275 | mli | OCaml | source/external/fetchSavedState.mli | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | 1 | 2022-02-10T10:51:32.000Z | 2022-02-10T10:51:32.000Z | source/external/fetchSavedState.mli | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | null | null | null | source/external/fetchSavedState.mli | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
val fetch : bucket:string -> path:string -> target:PyrePath.t -> unit -> unit Lwt.t
| 30.555556 | 83 | 0.701818 |
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.