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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f31488ef29f4eccb6313e219b9b7a46f725260e0 | 8,607 | ml | OCaml | duniverse/ctypes/tests/test-cstdlib/test_cstdlib.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/ctypes/tests/test-cstdlib/test_cstdlib.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/ctypes/tests/test-cstdlib/test_cstdlib.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2013 Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
open OUnit2
open Ctypes
open Unsigned
open Foreign
module Common_tests(S : Cstubs.FOREIGN with type 'a result = 'a
and type 'a re... | 25.540059 | 76 | 0.557453 |
f34be0e184ad6bebb83a3854fbfe63fcf41a2870 | 1,465 | mli | OCaml | src/udp/udp_packet.mli | CraigFe/mirage-tcpip | 451c5666d5a486620d89a4b95d89d40be51c79ed | [
"0BSD"
] | 290 | 2015-01-08T14:39:32.000Z | 2022-03-30T11:42:58.000Z | src/udp/udp_packet.mli | CraigFe/mirage-tcpip | 451c5666d5a486620d89a4b95d89d40be51c79ed | [
"0BSD"
] | 288 | 2015-01-01T20:01:51.000Z | 2022-03-22T15:58:47.000Z | src/udp/udp_packet.mli | CraigFe/mirage-tcpip | 451c5666d5a486620d89a4b95d89d40be51c79ed | [
"0BSD"
] | 77 | 2015-03-01T13:13:26.000Z | 2022-03-11T20:14:36.000Z | type t = {
src_port : Cstruct.uint16;
dst_port : Cstruct.uint16;
}
val pp : Format.formatter -> t -> unit
val equal : t -> t -> bool
module Unmarshal : sig
type error = string
(** [of_cstruct buf] attempts to interpret [buf] as a UDP header. If
successful, it returns [Ok (header, payload)], although [pa... | 35.731707 | 92 | 0.685324 |
f33356778dc1cbe8fa4ccbfb2f5b654253ae8d51 | 901 | mli | OCaml | sub.mli | trilis/1ml | 5b850e875e9ae06d3ce8e90a22cedbabcf0f33ca | [
"Apache-2.0"
] | null | null | null | sub.mli | trilis/1ml | 5b850e875e9ae06d3ce8e90a22cedbabcf0f33ca | [
"Apache-2.0"
] | null | null | null | sub.mli | trilis/1ml | 5b850e875e9ae06d3ce8e90a22cedbabcf0f33ca | [
"Apache-2.0"
] | null | null | null | (*
* (c) 2014 Andreas Rossberg
*)
(* Materialization *)
val materialize_typ : Types.typ -> Fomega.exp
(* Lifting *)
val lift :
int -> Types.typ -> Env.env -> Types.infer ref list -> Types.infer ref list
val lift_warn :
int -> Source.region -> Types.typ -> Env.env -> Types.infer ref list ->
Types.infer re... | 24.351351 | 79 | 0.650388 |
f3e311d1bd90396eb6bc11829d5b312b84314c35 | 4,073 | mli | OCaml | lib/sos.mli | mjambon/dune-release | c66c13e739e2ecfe277c47336614f6b146cff9ea | [
"ISC"
] | null | null | null | lib/sos.mli | mjambon/dune-release | c66c13e739e2ecfe277c47336614f6b146cff9ea | [
"ISC"
] | null | null | null | lib/sos.mli | mjambon/dune-release | c66c13e739e2ecfe277c47336614f6b146cff9ea | [
"ISC"
] | null | null | null | (*
* Copyright (c) 2018 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS... | 31.820313 | 80 | 0.663884 |
f3b1d9fc2fecfe1fbc63468939edcef451ac6f4e | 2,510 | ml | OCaml | output/recon.ml | AMSUN-Berlin/ocsimrun | 6b51d626a0c97be13f6df2016866fe794d9a2e75 | [
"BSD-3-Clause"
] | 2 | 2016-06-19T16:23:33.000Z | 2016-06-19T18:19:11.000Z | output/recon.ml | AMSUN-Berlin/ocsimrun | 6b51d626a0c97be13f6df2016866fe794d9a2e75 | [
"BSD-3-Clause"
] | null | null | null | output/recon.ml | AMSUN-Berlin/ocsimrun | 6b51d626a0c97be13f6df2016866fe794d9a2e75 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2014, TU Berlin
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions... | 36.376812 | 82 | 0.712749 |
f373a46579ef3a17a73ecc9cead68cee00412e70 | 236 | mli | OCaml | libraries/ec2/lib/describeReservedInstances.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/ec2/lib/describeReservedInstances.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/ec2/lib/describeReservedInstances.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
type input = DescribeReservedInstancesRequest.t
type output = DescribeReservedInstancesResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| 21.454545 | 85 | 0.788136 |
f3f8f304269abc6ad5ff8d098d8f49b22625d08b | 5,960 | ml | OCaml | hphp/hack/src/client/clientEnv.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientEnv.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientEnv.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.
*
*)
type client_mode =
| MODE_AI_QUERY of string
| MODE_AUTO_COMPLETE
| MODE_BIGCODE of string
| MODE_COLORING o... | 37.484277 | 76 | 0.768792 |
f3e62e2b041c7a76bda8424121a24ab88fa68e17 | 1,541 | ml | OCaml | ocaml-sources/testsuite/tests/typing-core-bugs/missing_rec_hint.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/typing-core-bugs/missing_rec_hint.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/typing-core-bugs/missing_rec_hint.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | null | null | null | (* TEST
* expect
*)
let facto n = (* missing [rec] *)
if n = 0 then 1 else n * facto (n-1)
[%%expect{|
Line 2, characters 28-33:
2 | if n = 0 then 1 else n * facto (n-1)
^^^^^
Error: Unbound value facto
Hint: If this is a recursive definition,
you should add the 'rec' keywor... | 22.661765 | 64 | 0.56976 |
f3ce6daa9dae57de5dbd08dcac6905126d68d8a0 | 6,342 | mli | OCaml | src/core/CCHeap.mli | FardaleM/ocaml-containers | 0a3b04855ab27925d6a8d6253151c2c7c03aff13 | [
"BSD-2-Clause"
] | null | null | null | src/core/CCHeap.mli | FardaleM/ocaml-containers | 0a3b04855ab27925d6a8d6253151c2c7c03aff13 | [
"BSD-2-Clause"
] | null | null | null | src/core/CCHeap.mli | 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 Leftist Heaps}
Implementation following Okasaki's book. *)
type 'a iter = ('a -> unit) -> unit
(** Fast internal iterator.
@since 2.8 *)
type 'a gen = unit -> 'a option
type 'a klist = unit -> [`Nil | `Cons of... | 33.03125 | 90 | 0.597919 |
f31ab0ac2ab5f7af6b0ce1b96dd05245f8fc30b5 | 630 | ml | OCaml | tests/konfig_props.ml | orbitz/kaiju | 9da6a07770cdfddde7d33b12f636df2615c36676 | [
"BSD-3-Clause"
] | 1 | 2015-01-24T18:05:31.000Z | 2015-01-24T18:05:31.000Z | tests/konfig_props.ml | orbitz/kaiju | 9da6a07770cdfddde7d33b12f636df2615c36676 | [
"BSD-3-Clause"
] | null | null | null | tests/konfig_props.ml | orbitz/kaiju | 9da6a07770cdfddde7d33b12f636df2615c36676 | [
"BSD-3-Clause"
] | null | null | null | open Core.Std
(* let ok_exn = function *)
(* | Ok v -> v *)
(* | Error _ -> failwith "Error" *)
let parse_prop =
QCheck.mk_test
~n:100
~name:"Parse"
~pp:QCheck.PP.(list (pair (list string) string))
QCheck.Arbitrary.(list (pair (list string) string))
(fun kvs ->
let str =
Str... | 18.529412 | 55 | 0.507937 |
f3a7a6a95805f5be6bbe14b1be61f138eaf8495a | 22,486 | ml | OCaml | bin/asli.ml | daeken/asl-interpreter | ba7b4c38d2526db214d649d04d2c3a6cb7f5b967 | [
"BSD-3-Clause"
] | null | null | null | bin/asli.ml | daeken/asl-interpreter | ba7b4c38d2526db214d649d04d2c3a6cb7f5b967 | [
"BSD-3-Clause"
] | null | null | null | bin/asli.ml | daeken/asl-interpreter | ba7b4c38d2526db214d649d04d2c3a6cb7f5b967 | [
"BSD-3-Clause"
] | null | null | null | (****************************************************************
* ASL interactive frontend
*
* Copyright Arm Limited (c) 2017-2019
* SPDX-Licence-Identifier: BSD-3-Clause
****************************************************************)
(** ASL interactive frontend *)
open LibASL
open Asl_ast
open Asl_visitor... | 51.455378 | 225 | 0.622565 |
f3da8b7d440fdff906182e26505cbebf23aa7c2c | 12,045 | ml | OCaml | examples/main.ml | roddyyaga/jay | 3aa1dd8e1e3fdb89e437333f52c3c138af0ad7ee | [
"MIT"
] | 11 | 2020-09-04T20:50:46.000Z | 2021-03-27T12:00:17.000Z | examples/main.ml | roddyyaga/jay | 3aa1dd8e1e3fdb89e437333f52c3c138af0ad7ee | [
"MIT"
] | null | null | null | examples/main.ml | roddyyaga/jay | 3aa1dd8e1e3fdb89e437333f52c3c138af0ad7ee | [
"MIT"
] | null | null | null | let () = Printexc.record_backtrace true
let show_rule_string rule =
Jay.Grammar.show_rule Format.pp_print_string Format.pp_print_string rule
let show_rule_char rule =
Jay.Grammar.show_rule Format.pp_print_char Format.pp_print_string rule
let string_to_list s =
s |> String.to_seq |> List.of_seq |> List.map (Str... | 34.512894 | 81 | 0.461021 |
d2f01d2ab917582fb126c8f6c5dc87a86e458459 | 16,806 | ml | OCaml | flatlet.ml | namachan10777/S8 | 19c832291c4a9f2a5d7d58b43fea32ca833500fa | [
"Unlicense"
] | 1 | 2021-08-20T01:28:02.000Z | 2021-08-20T01:28:02.000Z | flatlet.ml | namachan10777/naml | 19c832291c4a9f2a5d7d58b43fea32ca833500fa | [
"Unlicense"
] | 7 | 2021-02-22T07:48:28.000Z | 2021-02-26T10:24:35.000Z | flatlet.ml | namachan10777/naml | 19c832291c4a9f2a5d7d58b43fea32ca833500fa | [
"Unlicense"
] | null | null | null | type pat_t =
| PInt of int
| PBool of bool
| PVar of Id.t * Types.t
| PTuple of (pat_t * Types.t) list
| PAs of pat_t list * Types.t
| POr of pat_t * pat_t list * Types.t
| PCtorApp of Id.t * (pat_t * Types.t) list * Types.t
[@@deriving show]
type t =
| Never
| Add of t * t
| Su... | 45.792916 | 150 | 0.558848 |
f31f796804d4d7d60700c11c2c80537724d4fa88 | 25 | mli | OCaml | src/build.mli | dmbaturin/camyll | 13c9668e522f2292b90c143925853fd15fb350e2 | [
"MIT"
] | 2 | 2021-11-04T14:57:03.000Z | 2021-11-11T20:01:30.000Z | src/build.mli | dosaylazy/camyll | f8bd06fc6a76a4811bfeb593eebce4c23bcea025 | [
"MIT"
] | 1 | 2021-11-20T15:39:17.000Z | 2021-11-29T00:12:48.000Z | src/build.mli | dosaylazy/camyll | f8bd06fc6a76a4811bfeb593eebce4c23bcea025 | [
"MIT"
] | 1 | 2021-11-04T12:24:09.000Z | 2021-11-04T12:24:09.000Z | val build : unit -> unit
| 12.5 | 24 | 0.64 |
f36de3eb276839b4618f5adc811587c0356a4ce2 | 7,109 | ml | OCaml | src/fsmonitor/linux/watcher.ml | paulp/unison | 1bece7bf3b8f6ee62c64a0aa4e0045a6dbdd7eb2 | [
"MIT"
] | 2 | 2016-03-17T02:42:43.000Z | 2016-03-17T13:59:31.000Z | src/fsmonitor/linux/watcher.ml | paulp/unison | 1bece7bf3b8f6ee62c64a0aa4e0045a6dbdd7eb2 | [
"MIT"
] | null | null | null | src/fsmonitor/linux/watcher.ml | paulp/unison | 1bece7bf3b8f6ee62c64a0aa4e0045a6dbdd7eb2 | [
"MIT"
] | null | null | null | (* Unison file synchronizer: src/fsmonitoring/linux/watcher.ml *)
(* Copyright 2012, Benjamin C. Pierce
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or... | 29.74477 | 78 | 0.609368 |
f3c514e1f2d608c8bfc95e9b8cd7bce6632bf43b | 2,344 | ml | OCaml | src/common/lwt/lwtLoop.ml | mochja/flow | f5351e5ece186468278f5a94a5c59f00315243c1 | [
"MIT"
] | 1 | 2020-11-02T02:15:55.000Z | 2020-11-02T02:15:55.000Z | src/common/lwt/lwtLoop.ml | mochja/flow | f5351e5ece186468278f5a94a5c59f00315243c1 | [
"MIT"
] | 1 | 2021-04-16T12:04:57.000Z | 2021-04-16T12:04:57.000Z | src/common/lwt/lwtLoop.ml | mochja/flow | f5351e5ece186468278f5a94a5c59f00315243c1 | [
"MIT"
] | 1 | 2021-05-12T18:13:36.000Z | 2021-05-12T18:13:36.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(* It is useful to write infinite loops using lwt. They're useful for reading, for writing, for
* waiting for some broadcast messa... | 32.109589 | 99 | 0.628413 |
f3c04e63b576b075667ff8aed976b2de2074b372 | 7,098 | ml | OCaml | x86/proofs/bignum_mod_n256_4.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 33 | 2021-03-11T16:12:01.000Z | 2022-03-06T17:01:18.000Z | x86/proofs/bignum_mod_n256_4.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 8 | 2021-09-06T12:58:47.000Z | 2022-01-03T16:43:09.000Z | x86/proofs/bignum_mod_n256_4.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 ... | 48.951724 | 117 | 0.607354 |
f360c3706d2406bdb4d8a5717f67d5833ec8dbab | 2,949 | ml | OCaml | src/ocaml/infrastructure/ws_actor.ml | derui/sxfiler | b88f99d4aa495ef3958ad1ca823e5a10146ca33a | [
"MIT"
] | null | null | null | src/ocaml/infrastructure/ws_actor.ml | derui/sxfiler | b88f99d4aa495ef3958ad1ca823e5a10146ca33a | [
"MIT"
] | 11 | 2020-03-14T01:09:36.000Z | 2022-03-02T02:09:30.000Z | src/ocaml/infrastructure/ws_actor.ml | derui/sxfiler | b88f99d4aa495ef3958ad1ca823e5a10146ca33a | [
"MIT"
] | null | null | null | open Sxfiler_core
include Ws_actor_intf
module W = Websocket
module D = Sxfiler_domain
module L = (val Logger.make [ "ws_actor" ])
module Receiver_map = Map.Make (struct
type t = Uuidm.t
let compare = Uuidm.compare
end)
module Impl (IG : D.Id_generator.S with type id = Uuidm.t) = struct
type t = {
conn : ... | 35.107143 | 116 | 0.578501 |
f3fce50b38a5ff74a86cce5aa8071b7725dd43be | 8,291 | ml | OCaml | data/derived/comb/progs/unify/prog0656.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/prog0656.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0656.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 25.277439 | 148 | 0.632493 |
d2d93678225ffa3df50265919af86734558bf316 | 6,952 | ml | OCaml | src/dune_rules/jsoo_rules.ml | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | null | null | null | src/dune_rules/jsoo_rules.ml | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | null | null | null | src/dune_rules/jsoo_rules.ml | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | null | null | null | open Import
module SC = Super_context
let install_jsoo_hint = "opam install js_of_ocaml-compiler"
let in_build_dir ~ctx args =
Path.Build.L.relative ctx.Context.build_dir (".js" :: args)
let jsoo ~dir sctx =
SC.resolve_program sctx ~dir ~loc:None ~hint:install_jsoo_hint "js_of_ocaml"
type sub_command =
| Comp... | 34.76 | 78 | 0.648734 |
f32aedf20822f49d6a1ecfb1ecec147d95c75798 | 26,539 | ml | OCaml | src/parser/comment_attachment.ml | Nicky7787/flow | 58511ab989590253364d06da48318805677c4ead | [
"MIT"
] | 1 | 2020-07-08T17:40:26.000Z | 2020-07-08T17:40:26.000Z | src/parser/comment_attachment.ml | Nicky7787/flow | 58511ab989590253364d06da48318805677c4ead | [
"MIT"
] | 2 | 2021-09-02T16:30:33.000Z | 2021-09-02T16:30:34.000Z | src/parser/comment_attachment.ml | Nicky7787/flow | 58511ab989590253364d06da48318805677c4ead | [
"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
open Flow_ast
open Parser_env
let id = Flow_ast_mapper.id
let map_loc = Flow_ast_mapper.map_loc
let map_op... | 39.908271 | 104 | 0.66521 |
f3f37b72e878c0737ea1e85227e864a87fc4cba0 | 1,734 | ml | OCaml | src/common/lwt/lwtUtils.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2020-11-02T02:15:55.000Z | 2020-11-02T02:15:55.000Z | src/common/lwt/lwtUtils.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 17 | 2020-10-12T16:16:07.000Z | 2021-08-07T04:38:39.000Z | src/common/lwt/lwtUtils.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2021-01-06T10:57:53.000Z | 2021-01-06T10:57:53.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(* Lwt.join is a great way to run multiple threads in parallel. However it has this really annoying
* property where it won't exit... | 36.125 | 100 | 0.696078 |
f3692dc30c1b35e5562b63653aa5fcfda4338c27 | 11,957 | ml | OCaml | src/ocaml-output/FStar_Interactive_QueryHelper.ml | richardlford/FStar | f5f307f2904263f34372ad78c7c27488fd7685bf | [
"Apache-2.0"
] | 1 | 2020-02-12T16:11:39.000Z | 2020-02-12T16:11:39.000Z | src/ocaml-output/FStar_Interactive_QueryHelper.ml | richardlford/FStar | f5f307f2904263f34372ad78c7c27488fd7685bf | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_Interactive_QueryHelper.ml | richardlford/FStar | f5f307f2904263f34372ad78c7c27488fd7685bf | [
"Apache-2.0"
] | null | null | null | open Prims
type position = (Prims.string * Prims.int * Prims.int)
type sl_reponse =
{
slr_name: Prims.string ;
slr_def_range: FStar_Range.range FStar_Pervasives_Native.option ;
slr_typ: Prims.string FStar_Pervasives_Native.option ;
slr_doc: Prims.string FStar_Pervasives_Native.option ;
slr_def: Prims.string... | 42.102113 | 92 | 0.606925 |
d2ef136c6343fb0bb508795c759df883327f67cf | 4,392 | ml | OCaml | hphp/hack/test/integration/server_driver.ml | elgenie/hiphop-php | 23efadffa702cf296403a850e3500f91511258f7 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration/server_driver.ml | elgenie/hiphop-php | 23efadffa702cf296403a850e3500f91511258f7 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration/server_driver.ml | elgenie/hiphop-php | 23efadffa702cf296403a850e3500f91511258f7 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2016, 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.
*
*)
(**
* Does a... | 34.857143 | 80 | 0.694217 |
f3d7b6b7d9041e94fdf979019afa94c6233ce4c7 | 4,510 | ml | OCaml | src/core/ID.ml | nunchaku-inria/nunchaku | 91e62687ba3dac692e25bcc1849a1c042f46ab21 | [
"BSD-2-Clause"
] | 39 | 2015-09-30T15:02:05.000Z | 2022-02-20T17:54:46.000Z | src/core/ID.ml | nunchaku-inria/nunchaku | 91e62687ba3dac692e25bcc1849a1c042f46ab21 | [
"BSD-2-Clause"
] | 36 | 2015-11-17T08:41:18.000Z | 2020-12-10T20:28:53.000Z | src/core/ID.ml | nunchaku-inria/nunchaku | 91e62687ba3dac692e25bcc1849a1c042f46ab21 | [
"BSD-2-Clause"
] | 3 | 2017-01-18T23:10:48.000Z | 2018-11-09T17:14:16.000Z |
(* This file is free software, part of nunchaku. See file "license" for more details. *)
module Fields = Bit_set.Make(struct end)
type fields = Fields.t
type t = {
name: string;
id: int;
fields: Fields.t;
pol: Polarity.t;
}
type _t = t
let field_needs_at = Fields.mk_field ()
(** Field to indicate whether p... | 25.91954 | 88 | 0.684922 |
f3b96929825148876ea885af58260100fb674c67 | 6,625 | mli | OCaml | infer/src/base/IssueType.mli | aspirin0109/infer | d397ea03d15c90394138d7227237e4990f745c8e | [
"MIT"
] | 1 | 2019-09-11T13:16:25.000Z | 2019-09-11T13:16:25.000Z | infer/src/base/IssueType.mli | aspirin0109/infer | d397ea03d15c90394138d7227237e4990f745c8e | [
"MIT"
] | null | null | null | infer/src/base/IssueType.mli | aspirin0109/infer | d397ea03d15c90394138d7227237e4990f745c8e | [
"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 of string used for localisation *)
type t = private
{ unique_id: string
; mutable enabled: bool
; mutabl... | 19.485294 | 95 | 0.786113 |
af1477f1aebb97c8488657b39d6ae37fe213389f | 4,246 | ml | OCaml | Resources/coq-8.3pl2/plugins/syntax/r_syntax.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2015-01-27T00:11:26.000Z | 2015-01-27T00:11:26.000Z | Resources/coq-8.3pl2/plugins/syntax/r_syntax.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | Resources/coq-8.3pl2/plugins/syntax/r_syntax.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | (************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2010 *)
(* \VV/ **************************************************************)
(* // * Th... | 33.698413 | 74 | 0.562176 |
f3debb9560fd29e7de230631303c7117a3d897cb | 3,271 | ml | OCaml | src/review/github_review.ml | hhpack/typesafety-cli | ca6769e371bd816112ab8473121d82440b78d18a | [
"MIT"
] | null | null | null | src/review/github_review.ml | hhpack/typesafety-cli | ca6769e371bd816112ab8473121d82440b78d18a | [
"MIT"
] | 15 | 2017-05-16T06:43:01.000Z | 2018-07-17T01:39:06.000Z | src/review/github_review.ml | hhpack/typesafety-cli | ca6769e371bd816112ab8473121d82440b78d18a | [
"MIT"
] | null | null | null | (**
* Copyright 2016-2017 Noritaka Horio <holy.shared.design@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*)
open Env
open Typechecker
open Misc
type skip_result =
| NoError
| NotPullRequest
type review_result =
| Skiped of skip... | 27.033058 | 117 | 0.631 |
f3b4d955b0755f858173021b044955b0931811f4 | 1,691 | ml | OCaml | lib/passes/2_parse_tree_postprocess/parse_tree_postprocess.ml | dakk/yallo-lang | 4534f99a8553de298853416453b18b63a9549bc6 | [
"MIT"
] | 12 | 2020-07-04T15:00:27.000Z | 2021-12-21T10:32:47.000Z | lib/passes/2_parse_tree_postprocess/parse_tree_postprocess.ml | dakk/yallo-lang | 4534f99a8553de298853416453b18b63a9549bc6 | [
"MIT"
] | 11 | 2020-06-18T10:28:16.000Z | 2020-07-14T09:04:11.000Z | lib/passes/2_parse_tree_postprocess/parse_tree_postprocess.ml | dakk/yallo-lang | 4534f99a8553de298853416453b18b63a9549bc6 | [
"MIT"
] | null | null | null | open Parse_tree
(* replace all imports in a Parse_tree with the content of the file *)
let rec inject_import (pt: Parse_tree.t): Parse_tree.t =
List.fold_left (fun ptl dec ->
match dec with
| Parse_tree.DImport (path) -> (
try ptl @ Parsing.parse_file path |> inject_import
with | e -> raise e)
... | 31.314815 | 88 | 0.56712 |
f36dfcc641b918442778ccbed0f4ffc130505812 | 37,583 | ml | OCaml | duniverse/lwt.5.3.0/test/unix/test_lwt_unix.cppo.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | 11 | 2020-11-25T14:23:49.000Z | 2021-07-22T07:45:09.000Z | duniverse/lwt.5.3.0/test/unix/test_lwt_unix.cppo.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | 1 | 2020-07-27T17:35:13.000Z | 2020-09-21T11:17:06.000Z | test/unix/test_lwt_unix.cppo.ml | Sudha247/lwt | c656870190847c1982dc36978529a67597271fd1 | [
"MIT"
] | 1 | 2020-10-05T13:41:44.000Z | 2020-10-05T13:41:44.000Z | (* This file is part of Lwt, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. *)
open Test
open Lwt.Infix
(* An instance of the tester for the wait/waitpid tests. *)
let () =
match Sys.argv with
| [|_; "--child"|] ->
exit 42
| _... | 31.68887 | 87 | 0.581034 |
f353c0e3950c6a5b5c44b0c7aae766ca8f8fae36 | 3,223 | ml | OCaml | Functional_Language_Lab/7submit/kadai1/syntax.ml | yoshi-ki/BACHELOR | 65d01c62ab2ea4a6d2616a6b6c535bd4f1645630 | [
"MIT"
] | null | null | null | Functional_Language_Lab/7submit/kadai1/syntax.ml | yoshi-ki/BACHELOR | 65d01c62ab2ea4a6d2616a6b6c535bd4f1645630 | [
"MIT"
] | null | null | null | Functional_Language_Lab/7submit/kadai1/syntax.ml | yoshi-ki/BACHELOR | 65d01c62ab2ea4a6d2616a6b6c535bd4f1645630 | [
"MIT"
] | null | null | null | open TySyntax
open ConstraintSolver
type name = string
type constraints = (ty * ty) list
type tyenv = (name * ty ) list
type expr =
| EConstInt of int
| EConstBool of bool
| EVar of name
| EAdd of expr * expr
| ESub of expr * expr
| EMul of expr * expr
| EDiv of expr * ... | 23.021429 | 64 | 0.538629 |
af14676b7960630d6a00573b51748b6165b6e7d6 | 16,777 | ml | OCaml | src-unix/git_unix.ml | samoht/ocaml-git | 45d1722f2220cf70b7314287cffec084410ebca9 | [
"0BSD"
] | null | null | null | src-unix/git_unix.ml | samoht/ocaml-git | 45d1722f2220cf70b7314287cffec084410ebca9 | [
"0BSD"
] | null | null | null | src-unix/git_unix.ml | samoht/ocaml-git | 45d1722f2220cf70b7314287cffec084410ebca9 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-2017 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 30.559199 | 79 | 0.588603 |
f3da357831890effbafbc952db087ceddf14e1fc | 1,439 | mli | OCaml | src/passes/09.5-inference/database_plugins/groupedByVariable.mli | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | 2 | 2021-03-06T12:11:41.000Z | 2021-11-21T13:54:18.000Z | src/passes/09.5-inference/database_plugins/groupedByVariable.mli | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | 4 | 2021-11-10T15:04:00.000Z | 2022-01-14T07:49:14.000Z | src/passes/09.5-inference/database_plugins/groupedByVariable.mli | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | 1 | 2022-03-30T09:12:37.000Z | 2022-03-30T09:12:37.000Z | open Solver_types
module M : functor
(Type_variable : sig type t end)
(Type_variable_abstraction : TYPE_VARIABLE_ABSTRACTION(Type_variable).S) ->
sig
open Type_variable_abstraction.Types
include INDEXER_PLUGIN_TYPE(Type_variable)(Type_variable_abstraction).S
val get_abs_by_lhs : 'type_varia... | 57.56 | 110 | 0.724809 |
af06014a10faddd3bcbc73aebe3e9478191aa3ef | 1,619 | mli | OCaml | lib/vscode-languageclient/vscode_languageclient_configuration.mli | tmattio/js-bindings | 109076fe682c84eb1cf01c7f38ee1f4163fb3a9a | [
"MIT"
] | 18 | 2021-04-14T02:52:09.000Z | 2021-11-14T17:08:09.000Z | lib/vscode-languageclient/vscode_languageclient_configuration.mli | tmattio/ocaml-ecmascript | 109076fe682c84eb1cf01c7f38ee1f4163fb3a9a | [
"MIT"
] | 4 | 2021-04-14T16:23:13.000Z | 2021-05-22T00:00:55.000Z | lib/vscode-languageclient/vscode_languageclient_configuration.mli | tmattio/ocaml-ecmascript | 109076fe682c84eb1cf01c7f38ee1f4163fb3a9a | [
"MIT"
] | 1 | 2021-04-14T15:29:24.000Z | 2021-04-14T15:29:24.000Z | [@@@ocaml.warning "-7-11-32-33-39"]
[@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]]
open Es5
(* import { StaticFeature, BaseLanguageClient } from './client'; *)
(* import { ClientCapabilities, ConfigurationRequest } from
'vscode-languageserver-protocol'; *)
module ConfigurationWorkspaceMiddleware : sig
type ... | 25.698413 | 79 | 0.670167 |
af1905f872a6de6bcbfd031df45951830c9e7ae4 | 1,750 | ml | OCaml | result/cafe2/diff/sub76/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/prog/diff/sub76/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/prog/diff/sub76/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type aexp =
| Const of int
| Var of string
| Power of (string * int)
| Times of aexp list
| Sum of aexp list
let rec check_times ((li : aexp list), (str : string)) : int =
match li with
| [] -> 0
| h :: t -> (
match h with
| Var str3 -> if str = str3 then 1 else check_times (t, str)
|... | 29.166667 | 77 | 0.550857 |
f3c1685921e4264f158e63a6f5a4ad2930e5aabe | 3,225 | ml | OCaml | duniverse/core_bench/inline_benchmarks_runner_lib_public/src/runner.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_bench/inline_benchmarks_runner_lib_public/src/runner.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_bench/inline_benchmarks_runner_lib_public/src/runner.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | open Core
open Core_bench.Std
module Entry = Ppx_bench_lib.Benchmark_accumulator.Entry
let x_library_inlining_warning ~run_without_inlining ~suppress_warnings =
if not Version_util.x_library_inlining then begin
if not suppress_warnings
then
Core.printf
"Warning: X_LIBRARY_INLINING is not set t... | 31.930693 | 92 | 0.660465 |
d2f2ac076c46e2ec833155e561b481214466d8ff | 363 | mli | OCaml | src/transforms.mli | patricoferris/vicuna | 6c18154266080d458783cf1ee2bc378ae5853497 | [
"MIT"
] | null | null | null | src/transforms.mli | patricoferris/vicuna | 6c18154266080d458783cf1ee2bc378ae5853497 | [
"MIT"
] | null | null | null | src/transforms.mli | patricoferris/vicuna | 6c18154266080d458783cf1ee2bc378ae5853497 | [
"MIT"
] | null | null | null | type t
type axis = X | Y | Z
val pi : float
val half_pi : float
val transpose : t -> t
val const : float -> t
val (@->) : t -> t -> t
val ($) : t -> Vector.t -> Vector.t
val rot_mat : float -> axis -> t
val trans_mat : float -> float -> float -> t
val to_array : t -> float array array
val equal : t -> t -> bool
va... | 22.6875 | 45 | 0.586777 |
f3e5793e38c42544d24d9f338ffa4064dc0bf4e7 | 10,145 | ml | OCaml | src/passes/07-self_ast_sugar/helpers.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | src/passes/07-self_ast_sugar/helpers.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | src/passes/07-self_ast_sugar/helpers.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | module Pair = Simple_utils.Pair
open Ast_sugar
open Stage_common
type ('a , 'err) folder = 'a -> expression -> 'a
let rec fold_expression : ('a, 'err) folder -> 'a -> expression -> 'a = fun f init e ->
let self = fold_expression f in
let init = f init e in
match e.expression_content with
| E_literal _ | E_var... | 33.592715 | 106 | 0.609167 |
af15333b11db0f9375d7488e94ec0e2fa269eaa7 | 23 | ml | OCaml | vendor/parse-wyc/test/expect/structure/invalid_after_eq.ml | cgaebel/ocamlformat | 7a1e34c95c494005cdb9e49628d953be920920eb | [
"MIT"
] | null | null | null | vendor/parse-wyc/test/expect/structure/invalid_after_eq.ml | cgaebel/ocamlformat | 7a1e34c95c494005cdb9e49628d953be920920eb | [
"MIT"
] | null | null | null | vendor/parse-wyc/test/expect/structure/invalid_after_eq.ml | cgaebel/ocamlformat | 7a1e34c95c494005cdb9e49628d953be920920eb | [
"MIT"
] | null | null | null | let fooooooooooooooo =
| 11.5 | 22 | 0.826087 |
f3c27a0d8559ffd5ec09b0bcfd013b16c25d3261 | 948 | mli | OCaml | test/irmin-containers/common.mli | gs0510/irmin | d6701925517d2d9874fe9d77a9a1fad905c72bd3 | [
"0BSD"
] | 1,491 | 2015-01-04T05:34:56.000Z | 2022-03-31T09:53:17.000Z | test/irmin-containers/common.mli | gs0510/irmin | d6701925517d2d9874fe9d77a9a1fad905c72bd3 | [
"0BSD"
] | 1,132 | 2015-01-05T17:06:31.000Z | 2022-03-30T19:56:47.000Z | test/irmin-containers/common.mli | gs0510/irmin | d6701925517d2d9874fe9d77a9a1fad905c72bd3 | [
"0BSD"
] | 144 | 2015-01-30T14:00:16.000Z | 2022-03-29T16:30:47.000Z | (*
* Copyright (c) 2020 KC Sivaramakrishnan <kc@kcsrk.info>
* Copyright (c) 2020 Anirudh Sunder Raj <anirudh6626@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission noti... | 47.4 | 75 | 0.75 |
af015c5fb5ad9de2a9834eb9645502445bb2e002 | 2,755 | ml | OCaml | vendor/incr_dom_keyboard/src/variable_keyboard_event_handler.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/incr_dom_keyboard/src/variable_keyboard_event_handler.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/incr_dom_keyboard/src/variable_keyboard_event_handler.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 Const_handler = Keyboard_event_handler
module Action = Const_handler.Action
module Command = Const_handler.Command
type 'env t =
{ handler : Const_handler.t
; variable_actions : 'env -> Action.t list
}
[@@deriving sexp_of]
let empty_variable_actions _env = []
let empty = { h... | 32.411765 | 90 | 0.758621 |
f3cabc0542d0e0b6ac5de9e10275fef029d23d1d | 3,187 | mli | OCaml | src/runtime/native/runtime.mli | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | src/runtime/native/runtime.mli | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | src/runtime/native/runtime.mli | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | (* This file is part of Bisect_ppx, released under the MIT license. See
LICENSE.md for details, or visit
https://github.com/aantron/bisect_ppx/blob/master/LICENSE.md. *)
(** This module provides runtime support for Bisect. Instrumented programs
should hence be linked with this module.
Each instrumente... | 46.867647 | 80 | 0.737371 |
f3a755a1e62039b423dc4e8782d423b7c50c8ed0 | 7,260 | ml | OCaml | duniverse/0install/src/cli/slave.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/0install/src/cli/slave.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/0install/src/cli/slave.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | (* Copyright (C) 2013, Thomas Leonard
* See the README file for details, or visit http://0install.net.
*)
(** The "0install slave" command *)
open Options
open Zeroinstall.General
open Support
open Support.Common
open Zeroinstall
module J = Yojson.Basic
module JC = Zeroinstall.Json_connection
module Ui = Zeroinsta... | 39.243243 | 132 | 0.659917 |
af1c1069668e20acd1f5ced68563f5084b984029 | 1,391 | mli | OCaml | src/bindings/node/node.mli | smorimoto/vscode-ocaml-platform | 4c3fb2541b070ee158b0ccdf5f24a2427d46f4c1 | [
"0BSD"
] | null | null | null | src/bindings/node/node.mli | smorimoto/vscode-ocaml-platform | 4c3fb2541b070ee158b0ccdf5f24a2427d46f4c1 | [
"0BSD"
] | 72 | 2021-02-12T07:02:19.000Z | 2022-03-31T06:07:13.000Z | src/bindings/node/node.mli | smorimoto/vscode-ocaml-platform | 4c3fb2541b070ee158b0ccdf5f24a2427d46f4c1 | [
"0BSD"
] | null | null | null | open Interop
val __filename : unit -> string
val __dirname : unit -> string
module Process : sig
val cwd : unit -> string
val platform : string
module Env : sig
val get : string -> string option
val set : string -> string -> unit
end
end
module JsError : sig
val message : Promise.error -> strin... | 16.759036 | 76 | 0.634076 |
f31d5e85f3f118264bf99455b3281bb6ca74ca6d | 756 | ml | OCaml | source/ast/test/identifierTest.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 5,975 | 2018-05-11T15:54:32.000Z | 2022-03-31T14:38:00.000Z | source/ast/test/identifierTest.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 524 | 2018-05-11T16:47:20.000Z | 2022-03-22T17:43:06.000Z | source/ast/test/identifierTest.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 501 | 2018-05-11T16:46:29.000Z | 2022-03-19T04:41: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 root directory of this source tree.
*)
open Core
open OUnit2
open Ast
let test_remove_leading_underscores _ =
let assert_removed identifier expected =
let removed ... | 29.076923 | 98 | 0.736772 |
f37aaaf1ebefdd33fcbf2ad0975be768cf3953a6 | 36,555 | ml | OCaml | hphp/hack/src/server/hhMonitorInformant.ml | marscore/hhvm | b3d09b6b9a6beb521149f47e67d0691ac291e2b9 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-05-25T13:42:36.000Z | 2019-05-25T13:42:36.000Z | hphp/hack/src/server/hhMonitorInformant.ml | marscore/hhvm | b3d09b6b9a6beb521149f47e67d0691ac291e2b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/hhMonitorInformant.ml | marscore/hhvm | b3d09b6b9a6beb521149f47e67d0691ac291e2b9 | [
"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 Core_kernel
include HhMonitorInformant_sig.Types
let exit_on_parent_exit () = Parent.exit_on_parent_exit 10 6... | 39.138116 | 100 | 0.672247 |
d2f744e9027885880f5008bff1888dde6f90bf7b | 705 | ml | OCaml | benchmarks/list/mps.ml | victornicolet/atropos | 86a96d263f49c1eccd8f584d624de119180e0eea | [
"MIT"
] | 3 | 2021-05-03T16:20:32.000Z | 2021-05-14T19:59:51.000Z | benchmarks/list/mps.ml | synduce/Synduce | 11e9eb1d420113ae85ec63399dd493034c51a354 | [
"MIT"
] | null | null | null | benchmarks/list/mps.ml | synduce/Synduce | 11e9eb1d420113ae85ec63399dd493034c51a354 | [
"MIT"
] | 1 | 2021-05-12T15:14:40.000Z | 2021-05-12T15:14:40.000Z | type 'a clist =
| CNil
| Single of 'a
| Concat of 'a clist * 'a clist
type 'a list =
| Nil
| Cons of 'a * 'a list
let rec mps = function
| Nil -> 0, 0
| Cons (hd, tl) ->
let amps, asum = mps tl in
max (amps + hd) 0, asum + hd
[@@ensures fun (x, _) -> x >= 0]
;;
let rec clist_to_list = functio... | 19.583333 | 49 | 0.539007 |
f3118e23f360765963570cc73ed72dfd745bbb7c | 1,123 | ml | OCaml | data/fa15_min/1564.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/1564.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/1564.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec sumListHelper total xs =
match xs with | [] -> total | hd::tail -> sumListHelper (total + hd) tail;;
let rec digitsOfIntHelper n =
if n < 1
then []
else if n >= 10 then (digitsOfIntHelper (n / 10)) @ [n mod 10] else [n];;
let rec digitsOfInt n = digitsOfIntHelper n;;
let rec sumList xs = sumListHelp... | 19.362069 | 77 | 0.620659 |
f37ece4819eae83134d3bd576bbe7ed49f384b81 | 17,815 | ml | OCaml | src/lib/coda_intf/transition_frontier_components_intf.ml | love-choco/coda | 3e8aede6839fa1dbc1f630c9e18c951af604ad7d | [
"Apache-2.0"
] | null | null | null | src/lib/coda_intf/transition_frontier_components_intf.ml | love-choco/coda | 3e8aede6839fa1dbc1f630c9e18c951af604ad7d | [
"Apache-2.0"
] | null | null | null | src/lib/coda_intf/transition_frontier_components_intf.ml | love-choco/coda | 3e8aede6839fa1dbc1f630c9e18c951af604ad7d | [
"Apache-2.0"
] | null | null | null | open Core
open Async_kernel
open Pipe_lib
open Cache_lib
open Coda_base
module type Catchup_intf = sig
type external_transition_with_initial_validation
type unprocessed_transition_cache
type transition_frontier
type transition_frontier_breadcrumb
type network
type verifier
val run :
logger:L... | 33.113383 | 80 | 0.626944 |
f38848cdcf5d5ce41515059fed6e27983d2d616d | 1,014 | mli | OCaml | presentations/coq-workshop-2014-coq/printing/ppvernac.mli | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/printing/ppvernac.mli | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/printing/ppvernac.mli | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | (************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2015 *)
(* \VV/ **************************************************************)
(* // * Th... | 48.285714 | 74 | 0.518738 |
d2e0dd544934e9e430de649a05eda8e1f43ee684 | 8,431 | ml | OCaml | analysis/src/Commands.ml | WhyThat/rescript-vscode | 534c45d5f95f8b0cc4ff48b73f75e6c0d83b5447 | [
"MIT"
] | null | null | null | analysis/src/Commands.ml | WhyThat/rescript-vscode | 534c45d5f95f8b0cc4ff48b73f75e6c0d83b5447 | [
"MIT"
] | 1 | 2021-05-06T16:16:44.000Z | 2021-05-11T23:42:18.000Z | analysis/src/Commands.ml | WhyThat/rescript-vscode | 534c45d5f95f8b0cc4ff48b73f75e6c0d83b5447 | [
"MIT"
] | null | null | null | let dumpLocations ~full =
full.SharedTypes.extra.locItems
|> List.map (fun locItem ->
let locItemTxt = SharedTypes.locItemToString locItem in
let hoverText = Hover.newHover ~full locItem in
let hover =
match hoverText with None -> "" | Some s -> String.escaped s
in
... | 36.029915 | 79 | 0.555094 |
f3bee1c30ae779639ca6b4869ff67a5ac5248426 | 3,332 | mli | OCaml | interprocedural/callable.mli | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"MIT"
] | 1 | 2019-12-31T01:08:13.000Z | 2019-12-31T01:08:13.000Z | interprocedural/callable.mli | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"MIT"
] | null | null | null | interprocedural/callable.mli | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"MIT"
] | null | null | null | (* Copyright (c) 2018-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. *)
(* A generalization of what can be a call target during the analysis. - RealTarget refers to an
actual definition. - OverrideTarget is a s... | 24.321168 | 100 | 0.702281 |
d2d35582293c6fb009157e2cdea83559273e6968 | 11,155 | ml | OCaml | src/lib_lwt_result_stdlib/test/test_list_basic.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/lib_lwt_result_stdlib/test/test_list_basic.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/lib_lwt_result_stdlib/test/test_list_basic.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs <contact@nomadic-labs.com> *)
... | 32.054598 | 81 | 0.555805 |
f3990935397efcd065d913ceee1095127d4d1623 | 8,572 | ml | OCaml | src/image.ml | dlobraico/ocaml-bimage | 21ccf881a4890180902dcc0bd83cab9ce1b7129e | [
"0BSD"
] | null | null | null | src/image.ml | dlobraico/ocaml-bimage | 21ccf881a4890180902dcc0bd83cab9ce1b7129e | [
"0BSD"
] | null | null | null | src/image.ml | dlobraico/ocaml-bimage | 21ccf881a4890180902dcc0bd83cab9ce1b7129e | [
"0BSD"
] | null | null | null | open Type
open Color
type layout = Planar | Interleaved
type ('a, 'b, 'c) t = {
width : int;
height : int;
color : 'c Color.t;
layout : layout;
data : ('a, 'b) Data.t;
}
let create ?(layout = Interleaved) kind color width height =
let channels = channels_of_color color in
let data = Data.create kind (w... | 26.134146 | 80 | 0.627392 |
f3eb8f134457afe38c544fd829dc8400eded8ecc | 18,301 | ml | OCaml | src/lib/coda_lib/coda_lib.ml | ValarDragon/coda | 2a73c37c22c4029fcfb0b2a444115eead94bdb8b | [
"Apache-2.0"
] | null | null | null | src/lib/coda_lib/coda_lib.ml | ValarDragon/coda | 2a73c37c22c4029fcfb0b2a444115eead94bdb8b | [
"Apache-2.0"
] | null | null | null | src/lib/coda_lib/coda_lib.ml | ValarDragon/coda | 2a73c37c22c4029fcfb0b2a444115eead94bdb8b | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Async_kernel
open Protocols
module type Ledger_builder_io_intf = sig
type t
type net
type ledger_builder_hash
type ledger_hash
type ledger_builder_aux
type sync_ledger_query
type sync_ledger_answer
type protocol_state
val create : net -> t
val get_ledger_builder_aux_a... | 29.757724 | 121 | 0.69335 |
f335ec1464909641d3a52591f154ca314fe3aa64 | 2,240 | ml | OCaml | benchmarks/C/formula/sol476.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/formula/sol476.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/formula/sol476.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type exp = Num of int
| Plus of exp * exp
| Minus of exp * exp
type formula = True
| False
| Not of formula
| AndAlso of formula * formula
| OrElse of formula * formula
| Imply of formula * formula
| Equal of exp * exp
let rec expSol: exp -> exp = fun e ->
match e with
|Num a -> Num a
|Plus (p1,p2) ->
(m... | 20.934579 | 52 | 0.541071 |
f3894970644b648ae0f8b44506927bc4481e8627 | 2,748 | ml | OCaml | utils/complexity.ml | s-falke/kittel-koat | c00d21f6a4485d2b085949b936b2a379e2d30be0 | [
"Apache-2.0"
] | 16 | 2015-02-12T21:46:52.000Z | 2020-11-02T07:47:28.000Z | utils/complexity.ml | s-falke/kittel-koat | c00d21f6a4485d2b085949b936b2a379e2d30be0 | [
"Apache-2.0"
] | 6 | 2017-01-15T08:38:39.000Z | 2021-08-06T15:42:39.000Z | utils/complexity.ml | s-falke/kittel-koat | c00d21f6a4485d2b085949b936b2a379e2d30be0 | [
"Apache-2.0"
] | 11 | 2015-01-13T10:35:37.000Z | 2020-05-21T15:38:01.000Z | (*
Non-asymptotic complexity function stuff
@author Stephan Falke
Copyright 2010-2014 Stephan Falke
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/... | 27.48 | 108 | 0.596434 |
f36b560f816ff469de6ef10483bc326636e9e472 | 2,516 | mli | OCaml | lib/tar_lwt_unix.mli | dra27/ocaml-tar | 685c4f0f7046bb35e7ae2c5267116d1addde1d9f | [
"0BSD"
] | null | null | null | lib/tar_lwt_unix.mli | dra27/ocaml-tar | 685c4f0f7046bb35e7ae2c5267116d1addde1d9f | [
"0BSD"
] | null | null | null | lib/tar_lwt_unix.mli | dra27/ocaml-tar | 685c4f0f7046bb35e7ae2c5267116d1addde1d9f | [
"0BSD"
] | null | null | null | (*
* Copyright (C) 2006-2009 Citrix Systems Inc.
*
* 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 AUTH... | 43.37931 | 110 | 0.723768 |
f3e18797de6af18da434791aa5884b1c5c8db3e8 | 5,427 | ml | OCaml | src/expr/e_eq.ml | damiendoligez/tlapm | 13a1993263642092a521ac046c11e3cb5fbcbc8b | [
"BSD-2-Clause"
] | null | null | null | src/expr/e_eq.ml | damiendoligez/tlapm | 13a1993263642092a521ac046c11e3cb5fbcbc8b | [
"BSD-2-Clause"
] | null | null | null | src/expr/e_eq.ml | damiendoligez/tlapm | 13a1993263642092a521ac046c11e3cb5fbcbc8b | [
"BSD-2-Clause"
] | null | null | null | (*
* expr/eq.ml --- expressions (alpha equivalence)
*
*
* Copyright (C) 2008-2010 INRIA and Microsoft Corporation
*)
Revision.f "$Rev$";;
open Property
open E_t
module M = Map.Make (String)
let digest l =
List.fold_right (fun (v, t) m -> M.add v t m) l M.empty
let digestv l =
List.fold_right (fun (v, t)... | 26.73399 | 62 | 0.493643 |
f31938830728459999ef8bab48e90007f3c46053 | 9,682 | mli | OCaml | src/lib/mina_networking/mina_networking.mli | Vrrinderjit/mina | 1d9ef9cc8c14f6965e7b9c835c8127acbbd2a045 | [
"Apache-2.0"
] | null | null | null | src/lib/mina_networking/mina_networking.mli | Vrrinderjit/mina | 1d9ef9cc8c14f6965e7b9c835c8127acbbd2a045 | [
"Apache-2.0"
] | null | null | null | src/lib/mina_networking/mina_networking.mli | Vrrinderjit/mina | 1d9ef9cc8c14f6965e7b9c835c8127acbbd2a045 | [
"Apache-2.0"
] | null | null | null | open Async
open Core
open Mina_base
open Mina_transition
open Network_pool
open Pipe_lib
open Network_peer
exception No_initial_peers
type Structured_log_events.t +=
| Gossip_new_state of { state_hash : State_hash.t }
| Gossip_transaction_pool_diff of
{ txns : Transaction_pool.Resource_pool.Diff.t }
| Gos... | 30.542587 | 79 | 0.698306 |
f36a26d0b22cbc06bd738f729e96301c0da31899 | 742 | mli | OCaml | src/field.mli | hcarty/ocaml-gdal | 9c225c1e3f8002ec7614b3c1657e5f05e4e0e821 | [
"MIT"
] | 4 | 2016-09-07T14:24:04.000Z | 2020-04-02T19:50:08.000Z | src/field.mli | hcarty/ocaml-gdal | 9c225c1e3f8002ec7614b3c1657e5f05e4e0e821 | [
"MIT"
] | 9 | 2016-05-03T21:05:33.000Z | 2018-06-13T17:40:17.000Z | src/field.mli | hcarty/ocaml-gdal | 9c225c1e3f8002ec7614b3c1657e5f05e4e0e821 | [
"MIT"
] | 5 | 2016-06-11T23:49:08.000Z | 2019-08-06T22:06:56.000Z | (** {1 OGR Fields} *)
module Defn : sig
(** {1 OGR Field Definitions} *)
(** These are bindings and wrappers around the [OGR_Fld_*] API. *)
type t
(** Field definition *)
val t : t Ctypes.typ
(** Values for proper Ctypes integration/extension *)
type field_type_t =
| Integer
| IntegerList
... | 20.054054 | 68 | 0.609164 |
f3b5dcfab2ccc49057156e07d95501111bfc5be0 | 879 | ml | OCaml | src/lib/ints_as_bits.ml | gltrost/prohlatype | 3acaf7154f93675fc729971d4c76c2b133e90ce6 | [
"Apache-2.0"
] | 31 | 2016-06-07T19:59:31.000Z | 2021-09-08T00:55:25.000Z | src/lib/ints_as_bits.ml | gltrost/prohlatype | 3acaf7154f93675fc729971d4c76c2b133e90ce6 | [
"Apache-2.0"
] | 90 | 2016-06-14T20:40:07.000Z | 2021-12-17T18:37:40.000Z | src/lib/ints_as_bits.ml | gltrost/prohlatype | 3acaf7154f93675fc729971d4c76c2b133e90ce6 | [
"Apache-2.0"
] | 4 | 2018-01-09T01:45:10.000Z | 2021-12-18T07:03:59.000Z | (** A utility module where we utilize the bits of an integer.
*
* This is the just the common code that is used in Bitvector.
*)
let width = Sys.word_size - 1
(** Index from the least significant bit. We create masks to zero out the most significant
bits that aren't used to store values. This is necessary when... | 28.354839 | 90 | 0.653015 |
d2f1d01a678613538ac88c666116776ceb376123 | 5,010 | ml | OCaml | src/proto_alpha/lib_protocol/test/pbt/test_merkle_list.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/test/pbt/test_merkle_list.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/test/pbt/test_merkle_list.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2022 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 39.140625 | 80 | 0.567864 |
f37f5314be8165a97809198a69b082a717b29b05 | 4,607 | mli | OCaml | src/lib/cnf.mli | AbdallahS/touist | 7c0302384a8974cf03a5aadf61b6e2492db8ef17 | [
"MIT"
] | 56 | 2016-10-14T11:51:44.000Z | 2021-08-03T13:46:30.000Z | src/lib/cnf.mli | AbdallahS/touist | 7c0302384a8974cf03a5aadf61b6e2492db8ef17 | [
"MIT"
] | 95 | 2016-04-11T10:02:34.000Z | 2021-01-06T18:45:24.000Z | src/lib/cnf.mli | AbdallahS/touist | 7c0302384a8974cf03a5aadf61b6e2492db8ef17 | [
"MIT"
] | 12 | 2016-10-14T12:23:16.000Z | 2020-12-18T11:03:56.000Z | (** Process an evaluated AST given by {!Eval.eval}
to produce a CNF AST and output DIMACS
[ast_to_cnf] is the main function.
{2 Vocabulary}
{ul
{- {b Literal}:
a possibly negated proposition; we denote them as a, b... and
their type is homogenous to [Prop _] or [Not(Prop _)] or [Top] ... | 35.167939 | 81 | 0.579119 |
f3f6608fed7ab23a3e25946ac0a3dbc3d795d082 | 18,667 | ml | OCaml | examples/nvector/serial/test_nvector_serial.ml | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 24 | 2015-02-14T17:16:38.000Z | 2021-12-23T16:02:13.000Z | examples/nvector/serial/test_nvector_serial.ml | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 10 | 2016-03-20T22:14:49.000Z | 2022-03-16T09:54:31.000Z | examples/nvector/serial/test_nvector_serial.ml | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 5 | 2015-04-14T14:21:54.000Z | 2022-03-10T16:14:55.000Z | (*
* -----------------------------------------------------------------
* $Revision: 4137 $
* $Date: 2014-06-15 12:26:15 -0700 (Sun, 15 Jun 2014) $
* -----------------------------------------------------------------
* Programmer(s): David J. Gardner @ LLNL
* -------------------------------------------------------... | 40.317495 | 89 | 0.686934 |
f3606a52e3b6cceb379289f14afc46067e275959 | 4,598 | ml | OCaml | vendor/core/test/bin/int_conversions_test.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/core/test/bin/int_conversions_test.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/core/test/bin/int_conversions_test.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open OUnit;;
open Core
open Poly
let () =
List.iter [
("1", "1");
("12", "12");
("123", "123");
("1234", "1_234");
("12345", "12_345");
("123456", "123_456");
("1234567", "1_234_567");
("+1", "+1");
("+12", "+12");
("+123", "+123");
("+1234", "+1_234");
("+12345", "+12... | 25.544444 | 84 | 0.573945 |
f3c9211637fcf075d76e22b70d669a99c23622eb | 715 | ml | OCaml | protocol/revision_is_fully_reviewed.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | protocol/revision_is_fully_reviewed.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | protocol/revision_is_fully_reviewed.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | module Stable = struct
open! Import_stable
module Action = struct
module V1 = struct
type t =
{ rev : Rev.V1.t
}
[@@deriving bin_io, fields, sexp]
let%expect_test _ =
print_endline [%bin_digest: t];
[%expect {| a2ef260cd6d4c0ab084d1193287efa60 |}]
;;
... | 19.861111 | 56 | 0.622378 |
af082e4d296f9634f7a4129175984241169d09e0 | 10,055 | ml | OCaml | cil/src/ext/expcompare.ml | petr-muller/abductor | 4c9199378e847e22660daab5e5843805d4035d0a | [
"Intel",
"Unlicense"
] | null | null | null | cil/src/ext/expcompare.ml | petr-muller/abductor | 4c9199378e847e22660daab5e5843805d4035d0a | [
"Intel",
"Unlicense"
] | null | null | null | cil/src/ext/expcompare.ml | petr-muller/abductor | 4c9199378e847e22660daab5e5843805d4035d0a | [
"Intel",
"Unlicense"
] | null | null | null | (*
*
* Copyright (c) 2004,
* Jeremy Condit <jcondit@cs.berkeley.edu>
* George C. Necula <necula@cs.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. Re... | 36.966912 | 79 | 0.618001 |
af079c4151aedd33263655cdb11590f1d56c04f3 | 16,576 | ml | OCaml | src/lib/pickles_types/vector.ml | CodaProtocol/coda | bd1c97acd9c3c80e638045e4562dae711efbd28c | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/pickles_types/vector.ml | CodaProtocol/coda | bd1c97acd9c3c80e638045e4562dae711efbd28c | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/pickles_types/vector.ml | CodaProtocol/coda | bd1c97acd9c3c80e638045e4562dae711efbd28c | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | open Core_kernel
module Nat = Nat
module type Nat_intf = Nat.Intf
type z = Nat.z
type 'a s = 'a Nat.s
type 'a nat = 'a Nat.t = Z : z nat | S : 'n nat -> 'n s nat
module T = struct
type ('a, _) t = [] : ('a, z) t | ( :: ) : 'a * ('a, 'n) t -> ('a, 'n s) t
end
include T
let hd (type a n) (t : (a, n s) t) : a = m... | 21.954967 | 80 | 0.533965 |
f3b95aaf84de3f36f7c95ff655cca725dfdefd64 | 1,048 | ml | OCaml | examples/async/async_get.ml | dakotamurphyucf/httpaf | b532606e37764176f7d26bf0e632f320c298a72f | [
"BSD-3-Clause"
] | 20 | 2019-12-25T09:09:45.000Z | 2021-09-14T13:39:00.000Z | examples/async/async_get.ml | dakotamurphyucf/httpaf | b532606e37764176f7d26bf0e632f320c298a72f | [
"BSD-3-Clause"
] | 13 | 2019-07-07T04:59:14.000Z | 2021-12-17T16:06:09.000Z | examples/async/async_get.ml | dakotamurphyucf/httpaf | b532606e37764176f7d26bf0e632f320c298a72f | [
"BSD-3-Clause"
] | 5 | 2019-04-15T07:55:19.000Z | 2021-12-02T19:49:06.000Z | open! Core
open Async
open Httpaf
open Httpaf_async
let main port host () =
let where_to_connect = Tcp.Where_to_connect.of_host_and_port { host; port } in
Tcp.connect_sock where_to_connect
>>= fun socket ->
let finished = Ivar.create () in
let response_handler = Httpaf_examples.Client.print ~on_eof:(Iva... | 28.324324 | 87 | 0.639313 |
f3f67a6242c2729de1df8c11495dd266af93ffed | 7,065 | ml | OCaml | ppx/path/lrt_path.ml | Khady/lrt | 696760ffb8fa7962a14b4cfb1603f04e9b732a21 | [
"MIT"
] | 24 | 2020-05-29T19:35:23.000Z | 2021-11-14T17:12:04.000Z | ppx/path/lrt_path.ml | Khady/lrt | 696760ffb8fa7962a14b4cfb1603f04e9b732a21 | [
"MIT"
] | 2 | 2020-06-29T17:26:23.000Z | 2020-11-02T09:28:03.000Z | ppx/path/lrt_path.ml | Khady/lrt | 696760ffb8fa7962a14b4cfb1603f04e9b732a21 | [
"MIT"
] | 2 | 2020-08-29T00:07:30.000Z | 2020-11-02T09:25:42.000Z | (******************************************************************************)
(* Copyright (C) 2020 by LexiFi. *)
(* *)
(* This source file is released under the terms of the MIT license as part ... | 33.169014 | 83 | 0.515782 |
f336c6709e5620678787fe3521d44620ef3008be | 6,668 | ml | OCaml | infer/src/java/jTransExn.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | null | null | null | infer/src/java/jTransExn.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | null | null | null | infer/src/java/jTransExn.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 1 | 2019-04-26T02:27:43.000Z | 2019-04-26T02:27:43.000Z | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* 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! IStd
module Hashtbl = Caml.Hashtbl
open Sawja_pack
let create_handler_table impl =
le... | 40.168675 | 97 | 0.638722 |
af090020a0ec760a4744c04c6e8501b8c7ad87db | 1,213 | ml | OCaml | data/derived/comb/progs/unify/prog5366.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/prog0462.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0462.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 difference = (List.length l1) - (List.length l2) in
if difference > 0
then (l1, ((clone 0 difference) @ l2))
else
if difference < 0
then (((clone 0 ((-1) * difference)) @ l1), l2)
else (l1, l2);;
let rec r... | 28.880952 | 79 | 0.530915 |
f3ac4a541ffd90ec229d6301cecd80e973d9336a | 46,442 | ml | OCaml | infer/src/eradicate/typeCheck.ml | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | 1 | 2016-12-19T07:33:16.000Z | 2016-12-19T07:33:16.000Z | infer/src/eradicate/typeCheck.ml | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | null | null | null | infer/src/eradicate/typeCheck.ml | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2014 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! IStd... | 41.614695 | 99 | 0.601611 |
af13c5f2bcf6b37fdf1110fce8e051d2afb1e4fa | 2,437 | ml | OCaml | tcp/profiler.ml | mor1/mirage-tcpip | 1617953b4674c9c832786c1ab3236b91d00f5c25 | [
"0BSD"
] | 1 | 2016-10-11T09:03:09.000Z | 2016-10-11T09:03:09.000Z | tcp/profiler.ml | mor1/mirage-tcpip | 1617953b4674c9c832786c1ab3236b91d00f5c25 | [
"0BSD"
] | null | null | null | tcp/profiler.ml | mor1/mirage-tcpip | 1617953b4674c9c832786c1ab3236b91d00f5c25 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013 Balraj Singh <bs375@cl.cam.ac.uk>
*
* 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... | 29.719512 | 88 | 0.656135 |
f327e44069d664481cffe850b3a2b682319c8443 | 28,994 | ml | OCaml | src/ocaml-3.12.0/otherlibs/unix/unix.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2015-01-27T00:11:26.000Z | 2015-01-27T00:11:26.000Z | src/ocaml-3.12.0/otherlibs/unix/unix.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/otherlibs/unix/unix.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Xavier Ler... | 29.952479 | 94 | 0.654515 |
f36aeba5fbaedf0f7ac48f4b1d825b6d88eab507 | 1,257 | mli | OCaml | infer/src/base/Serialization.mli | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 4 | 2021-11-19T02:07:46.000Z | 2022-03-24T06:03:50.000Z | infer/src/base/Serialization.mli | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 1 | 2021-04-05T15:19:58.000Z | 2021-12-16T04:22:26.000Z | infer/src/base/Serialization.mli | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 1 | 2019-04-26T02:27:43.000Z | 2019-04-26T02:27:43.000Z | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* 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! IStd
(** Serialization of data stuctures *)
module Key : sig
(** Serialization key, ... | 27.326087 | 95 | 0.686555 |
f3dada5c8fc643ddb1ad9100f3b560561cd61895 | 423 | ml | OCaml | data/sp14_min/2953.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/3579.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/3579.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let sqsum xs =
let f a x = (a ** 2) + x in let base = 0 in List.fold_left f base xs;;
(* fix
let sqsum xs =
let f a x = (a * a) + x in let base = 0 in List.fold_left f base xs;;
*)
(* changed spans
(3,15)-(3,23)
a * a
BopG VarG VarG
*)
(* type error slice
(3,3)-(3,71)
(3,9)-(3,27)
(3,11)-(3,27)
(3,15)-(3,23... | 12.818182 | 72 | 0.508274 |
f3b8c7e976e97bc5efcab87310ee9bcff0a5a8e3 | 238 | mli | OCaml | libraries/ec2/lib/describeNetworkAcls.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/describeNetworkAcls.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/describeNetworkAcls.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | open Types_internal
type input = DescribeNetworkAclsRequest.t
type output = DescribeNetworkAclsResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 34 | 74 | 0.768908 |
d2e46f85d497f74487ccf936d075a7802d431870 | 790 | ml | OCaml | src/video.ml | eras/tgup | eddedaa924169293999f4d78c788fcb9bc80c40b | [
"MIT"
] | 1 | 2016-02-08T15:04:01.000Z | 2016-02-08T15:04:01.000Z | src/video.ml | eras/tgup | eddedaa924169293999f4d78c788fcb9bc80c40b | [
"MIT"
] | null | null | null | src/video.ml | eras/tgup | eddedaa924169293999f4d78c788fcb9bc80c40b | [
"MIT"
] | null | null | null | class type video = object
method get_fd : Unix.file_descr
method get_frame : V4l2.frame
method start : unit -> unit
method stop : unit -> unit
end
class v4l2 device : video = object
val v4l2 = V4l2.init device { width = 640; height = 480 }
method get_fd = V4l2.get_fd v4l2
method get_frame ... | 27.241379 | 73 | 0.644304 |
f3b83084c679c082c923db62e0d9a4d166bf90c3 | 131 | ml | OCaml | src/Implementation/StdErr.ml | hhugo/General | 5237123668e939c0cb83aa3e1c4756473336bc7e | [
"MIT"
] | 7 | 2020-11-09T02:07:18.000Z | 2021-02-20T08:29:05.000Z | src/Implementation/StdErr.ml | hhugo/General | 5237123668e939c0cb83aa3e1c4756473336bc7e | [
"MIT"
] | null | null | null | src/Implementation/StdErr.ml | hhugo/General | 5237123668e939c0cb83aa3e1c4756473336bc7e | [
"MIT"
] | 3 | 2020-11-09T00:57:00.000Z | 2021-02-20T08:31:51.000Z | module OCSP = OCamlStandard.Pervasives
include StandardOutChannel.Make(struct
let channel = OCSP.stderr
let flush = true
end)
| 18.714286 | 38 | 0.78626 |
f3113f1ad74d96163367353be2b7f593af280419 | 27,833 | ml | OCaml | x86/proofs/bignum_mod_n384_alt.ml | jargh/s2n-bignum | 60e0181906811865bec1501e18c1384482585a46 | [
"Apache-2.0"
] | null | null | null | x86/proofs/bignum_mod_n384_alt.ml | jargh/s2n-bignum | 60e0181906811865bec1501e18c1384482585a46 | [
"Apache-2.0"
] | null | null | null | x86/proofs/bignum_mod_n384_alt.ml | jargh/s2n-bignum | 60e0181906811865bec1501e18c1384482585a46 | [
"Apache-2.0"
] | null | null | null | (*
* 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 ... | 49.261947 | 155 | 0.596414 |
af11aabed9df14550f337f6c2a6f6c06cc361530 | 1,163 | mli | OCaml | interfaces/4.01/obj.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 23 | 2017-11-16T10:01:56.000Z | 2021-06-23T08:44:44.000Z | interfaces/4.01/obj.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 15 | 2018-04-21T13:49:52.000Z | 2022-02-16T11:19:38.000Z | interfaces/4.01/obj.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 8 | 2018-04-23T18:10:00.000Z | 2021-12-14T14:31:22.000Z | type t
external repr : 'a -> t = "%identity"
external obj : t -> 'a = "%identity"
external magic : 'a -> 'b = "%identity"
external is_block : t -> bool = "caml_obj_is_block"
external is_int : t -> bool = "%obj_is_int"
external tag : t -> int = "caml_obj_tag"
external set_tag : t -> int -> unit = "caml_obj_set_tag"
exte... | 33.228571 | 63 | 0.681857 |
f3cb9a1ec631f1d61a299d719c251321e008d864 | 16,434 | ml | OCaml | hack/utils/lsp_helpers.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | 2 | 2019-09-01T19:40:10.000Z | 2019-10-18T13:30:30.000Z | hack/utils/lsp_helpers.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | 8 | 2020-04-06T11:23:08.000Z | 2022-03-24T12:41:12.000Z | hack/utils/lsp_helpers.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | 1 | 2018-11-17T04:11:10.000Z | 2018-11-17T04:11:10.000Z | (* A few helpful wrappers around LSP *)
open Lsp
open Lsp_fmt
let progress_and_actionRequired_counter = ref 0
(************************************************************************)
(** Conversions **)
(********************************************************... | 44.657609 | 98 | 0.695996 |
f315085d0d18ca23c6b19913e658d1afe0634bfc | 63,145 | ml | OCaml | hphp/hack/src/typing/typing_print.ml | ivanmurashko/hhvm | ce6e2c423308b6be196d1797a52e128746c69181 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_print.ml | ivanmurashko/hhvm | ce6e2c423308b6be196d1797a52e128746c69181 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_print.ml | ivanmurashko/hhvm | ce6e2c423308b6be196d1797a52e128746c69181 | [
"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.
*
*)
(*****************************************************************************)
(* Pretty printing of types *)
(****... | 33.251711 | 98 | 0.536242 |
d2e0e0b428e67b4d52fbee592cb7633b8e7153f6 | 75,947 | ml | OCaml | test/smart/test.ml | gpetiot/ocaml-git | ba60f55c9def77279be45e11bc12f49d26165bb0 | [
"0BSD"
] | null | null | null | test/smart/test.ml | gpetiot/ocaml-git | ba60f55c9def77279be45e11bc12f49d26165bb0 | [
"0BSD"
] | null | null | null | test/smart/test.ml | gpetiot/ocaml-git | ba60f55c9def77279be45e11bc12f49d26165bb0 | [
"0BSD"
] | null | null | null | open Bos
open Rresult
open Lwt_backend
open Store_backend
(** logging: *)
let () = Printexc.record_backtrace true
let reporter ppf =
let report src level ~over k msgf =
let k _ =
over ();
k ()
in
let with_metadata header _tags k ppf fmt =
let path = Fpath.v (Unix.getcwd ()) in
Fo... | 42.811161 | 86 | 0.590267 |
f335b36770bde6a89b9cb9f275703cff78ed7113 | 18,764 | ml | OCaml | data/derived/comb/progs/unify/prog6165.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/prog1305.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1305.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 33.3879 | 208 | 0.658229 |
f38890d4e50d9c981db0926be33e2a71393cb8d2 | 484 | ml | OCaml | data/derived/comb/progs/unify/prog4996.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/prog0071.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0071.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 a -> sin (pi * (eval (a, x, y)))
| Cosine a -> cos (pi... | 22 | 64 | 0.497934 |
f3b6cf93ed379b275f3fe98172efc6f765ca4938 | 501 | ml | OCaml | MP4/fold_left.ml | liutiantian233/Introduction_OCaml | 16102e5edec4b886f8829d1ef7e9ba0aefd39c88 | [
"Unlicense"
] | null | null | null | MP4/fold_left.ml | liutiantian233/Introduction_OCaml | 16102e5edec4b886f8829d1ef7e9ba0aefd39c88 | [
"Unlicense"
] | null | null | null | MP4/fold_left.ml | liutiantian233/Introduction_OCaml | 16102e5edec4b886f8829d1ef7e9ba0aefd39c88 | [
"Unlicense"
] | null | null | null | open Common
(* CS421 - Fall 2018 fold_left
*
* Please keep in mind that there may be more than one way to solve a
* problem. You will want to change how a number of these start.
*)
(*****************************
* Continuation Passing Style *
*****************************)
(* Problems *)
let rec fold_left (f,e,... | 29.470588 | 111 | 0.532934 |
f30333a2658ac8581c9317732934e97204033f4a | 1,199 | mli | OCaml | optimizations/lib/fftw-3.3.4/genfft/schedule.mli | albertsgrc/ftdock-opt | 3361d1f18bf529958b78231fdcf139b1c1c1f232 | [
"MIT"
] | 34 | 2019-05-03T14:45:49.000Z | 2022-01-05T17:43:27.000Z | optimizations/lib/fftw-3.3.4/genfft/schedule.mli | albertsgrc/ftdock-opt | 3361d1f18bf529958b78231fdcf139b1c1c1f232 | [
"MIT"
] | 61 | 2017-04-02T05:50:44.000Z | 2017-11-22T02:32:43.000Z | optimizations/lib/fftw-3.3.4/genfft/schedule.mli | albertsgrc/ftdock-opt | 3361d1f18bf529958b78231fdcf139b1c1c1f232 | [
"MIT"
] | 15 | 2019-04-29T14:49:59.000Z | 2021-11-15T13:29:27.000Z | (*
* Copyright (c) 1997-1999 Massachusetts Institute of Technology
* Copyright (c) 2003, 2007-14 Matteo Frigo
* Copyright (c) 2003, 2007-14 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 publi... | 38.677419 | 81 | 0.748957 |
f3608dcfab74008869786a84c644361b987da561 | 8,637 | ml | OCaml | data/derived/comb/progs/unify/prog0661.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/prog0661.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0661.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 25.402941 | 148 | 0.62348 |
d2f4bf7ab769d6c1231c751233182ccce901647e | 34,474 | mll | OCaml | src/reason-parser/reason_lexer.mll | esy-ocaml-old/reason | 61d18051d833acc7039766b2d54353749ac80d8e | [
"BSD-3-Clause"
] | null | null | null | src/reason-parser/reason_lexer.mll | esy-ocaml-old/reason | 61d18051d833acc7039766b2d54353749ac80d8e | [
"BSD-3-Clause"
] | null | null | null | src/reason-parser/reason_lexer.mll | esy-ocaml-old/reason | 61d18051d833acc7039766b2d54353749ac80d8e | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* Fork... | 32.584121 | 101 | 0.595057 |
d2f1002545d7bdd9fe19d221d09acf767a79e070 | 14,821 | ml | OCaml | src/lsp/lspInteraction.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/lsp/lspInteraction.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/lsp/lspInteraction.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.
*)
module List = Base.List
open LspProt
(* Each interaction gets a unique id. *)
type id = int
(* What initiated this interaction ... | 36.32598 | 101 | 0.744484 |
d2f93dfb5d60654aee045c29c2a12a4d8c778b2b | 148 | ml | OCaml | checker/PolyTypingML4/macroVars.ml | aigarashi/copl-tools | 3c4da117083a0870334c8eef270206b11060514e | [
"MIT"
] | 11 | 2015-08-10T16:43:33.000Z | 2021-11-14T17:05:44.000Z | checker/PolyTypingML4/macroVars.ml | aigarashi/copl-tools | 3c4da117083a0870334c8eef270206b11060514e | [
"MIT"
] | null | null | null | checker/PolyTypingML4/macroVars.ml | aigarashi/copl-tools | 3c4da117083a0870334c8eef270206b11060514e | [
"MIT"
] | null | null | null | open Parser
let v = [
("e", fun s -> MVEXP s);
("t", fun s -> MVTYPE s);
("s", fun s -> MVTYSC s);
("env", fun s -> MVTENV s);
]
| 16.444444 | 31 | 0.425676 |
f3d4ffb1b8ae24ae102e1d15935e93ed56c0c948 | 259 | ml | OCaml | src/irmin-server/irmin_server.ml | zshipko/irmin-server | 899bb11d79916534214a4117d565b96841cefeac | [
"0BSD"
] | 22 | 2018-05-13T19:10:44.000Z | 2021-07-31T15:06:56.000Z | src/irmin-server/irmin_server.ml | zshipko/irmin-server | 899bb11d79916534214a4117d565b96841cefeac | [
"0BSD"
] | 5 | 2021-04-02T02:51:31.000Z | 2021-06-03T02:07:54.000Z | src/irmin-server/irmin_server.ml | zshipko/irmin-server | 899bb11d79916534214a4117d565b96841cefeac | [
"0BSD"
] | null | null | null | include Irmin_server_intf
open Irmin_server_types
module Error = Error
module type S = Server.S
module Make (Store : Irmin.Generic_key.S) = struct
module X = struct
include Command
include Command.Make (Store)
end
include Server.Make (X)
end
| 17.266667 | 50 | 0.741313 |
f3f12d5beb95a9e6bcd915b9de3d9586951bfd39 | 5,143 | ml | OCaml | init/init.ml | styczynski/ocaml.hs | 25f9ab322b53b3290d79a85fab0f5e10ed11af74 | [
"BSD-3-Clause"
] | 3 | 2019-05-14T18:45:41.000Z | 2019-06-10T11:29:44.000Z | init/init.ml | styczynski/ocaml.hs | 25f9ab322b53b3290d79a85fab0f5e10ed11af74 | [
"BSD-3-Clause"
] | 6 | 2021-03-01T22:41:25.000Z | 2022-03-08T22:48:08.000Z | init/init.ml | styczynski/ocaml.hs | 25f9ab322b53b3290d79a85fab0f5e10ed11af74 | [
"BSD-3-Clause"
] | null | null | null | (*
* This file contains prelude code loaded when interpreter is launched.
*)
(* Basic polymorphic types definitions *)
type 'a Maybe = None | Some of 'a
type ('a, 'b) Either = Left of 'a | Right of 'b
(* Define basic operators *)
let ( == ) = value_eq
let ( < ) = value_lt
let ( > ) = value_gt
let ( <= ) = value_lt_... | 26.926702 | 71 | 0.618122 |
f33691f6900193b10af9049c8754b2564a85e5f7 | 2,633 | ml | OCaml | data/fa15/2954.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/2954.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15/2954.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec clone x n = if n <= 0 then [] else List.append [x] (clone x (n - 1));;
let padZero l1 l2 =
let x = List.length l1 in
let y = List.length l2 in
if x > y
then (l1, (List.append (clone 0 (x - y)) l2))
else if x < y then ((List.append (clone 0 (y - x)) l1), l2) else (l1, l2);;
let rec removeZero l =
... | 25.07619 | 78 | 0.549183 |
d2d6e548d62afef6ca10a9eca734468c09c4702d | 594 | ml | OCaml | data/sp14/0264.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/0264.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/0264.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec digitsOfInt n = if n <= 0 then [] else [digitsOfInt (n mod 10)];;
(* fix
let rec digitsOfInt n =
let myList = [] in
if n <= 0
then []
else if n < 10 then [n] else (digitsOfInt (n / 10)) @ [n mod 10];;
*)
(* changed spans
(2,24)-(2,71)
(2,47)-(2,71)
(2,48)-(2,70)
(2,60)-(2,70)
*)
(* type error sli... | 13.2 | 73 | 0.488215 |
f3a3a27ece8fa433991b69c0d41bd5bb169220af | 22,011 | ml | OCaml | infer/src/pulse/PulseModels.ml | yangshun/infer | 5e7b0caaef0555bd0e66e2a4b18abf4f0903aadf | [
"MIT"
] | null | null | null | infer/src/pulse/PulseModels.ml | yangshun/infer | 5e7b0caaef0555bd0e66e2a4b18abf4f0903aadf | [
"MIT"
] | null | null | null | infer/src/pulse/PulseModels.ml | 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
open IResult.Let_syntax
open PulseBasicInterface
open PulseDomainInterface
type arg_payload = AbstractValue.t * ValueHis... | 45.477273 | 101 | 0.690518 |
f30b6e70cae6fe881bc92511f8ad806a2fa8cfcd | 2,500 | mli | OCaml | hphp/hack/src/client/clientConnect.mli | tobielf/hhvm | a26dfe733c344ef59ab3c4773956ea81d3e0dcbb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientConnect.mli | tobielf/hhvm | a26dfe733c344ef59ab3c4773956ea81d3e0dcbb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientConnect.mli | tobielf/hhvm | a26dfe733c344ef59ab3c4773956ea81d3e0dcbb | [
"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.
*
*)
(** This callback is typically provided for env.progress_callback; it prints data with
a spinner to stderr. *)
val tty_progres... | 34.246575 | 96 | 0.7476 |
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.