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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
af91885895ccd5a15137c65fd3b10135c5fcb00f | 1,878 | ml | OCaml | vendor/core_kernel/test/src/info_unit_tests.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/core_kernel/test/src/info_unit_tests.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/core_kernel/test/src/info_unit_tests.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open! Core_kernel
let%test_unit "[create_s sexp] produces an info whose [sexp_of_t] is [sexp]" =
let sexp = [%sexp "foo"] in
assert (phys_equal [%sexp (Info.create_s sexp : Info.t)] sexp)
;;
let%test_module "Info.Stable.V2" =
(module Stable_unit_test.Make (struct
include Info.Stable.V2
let equal ... | 37.56 | 91 | 0.542066 |
afe63808229523f65f99afb6bee669cd7f354da8 | 12,761 | ml | OCaml | src/Sugar.ml | Khady/ocamlformat | 5f7578197599ace20ec3103db9673b86432ff90d | [
"MIT"
] | null | null | null | src/Sugar.ml | Khady/ocamlformat | 5f7578197599ace20ec3103db9673b86432ff90d | [
"MIT"
] | null | null | null | src/Sugar.ml | Khady/ocamlformat | 5f7578197599ace20ec3103db9673b86432ff90d | [
"MIT"
] | null | null | null | (**********************************************************************
* *
* OCamlFormat *
* *
* Copyright (c) 2019-present, ... | 37.204082 | 77 | 0.568137 |
af56458d4869430e1d44a1974ba8bdfcf810f8cb | 1,609 | ml | OCaml | server/apiLib/keyAPI.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | 5 | 2015-01-30T06:16:32.000Z | 2020-04-14T09:08:49.000Z | server/apiLib/keyAPI.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | server/apiLib/keyAPI.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | (* © 2014 RunOrg *)
open Std
(* Creating a new key
================== *)
module Create = Endpoint.Post(struct
module Arg = type module unit
module Post = type module <
hash : Key.Hash.t ;
key : string ;
encoding : [ `hex ] ;
>
module Out = type module <
id : Key.I.t ;
at : ... | 22.661972 | 90 | 0.568055 |
afe6eb30b61b321a672b6ea3c3f591b23a3689ef | 643 | ml | OCaml | examples/Context.ml | utkarshkukreti/reaml | 5640a36293ba2a765171225deddb644f4d6c5d26 | [
"MIT"
] | 93 | 2019-08-26T12:47:08.000Z | 2021-12-02T08:04:22.000Z | examples/Context.ml | utkarshkukreti/reaml | 5640a36293ba2a765171225deddb644f4d6c5d26 | [
"MIT"
] | 9 | 2020-01-07T14:54:45.000Z | 2022-02-13T13:59:32.000Z | examples/Context.ml | utkarshkukreti/reaml | 5640a36293ba2a765171225deddb644f4d6c5d26 | [
"MIT"
] | 4 | 2019-09-05T21:10:38.000Z | 2021-08-13T17:28:18.000Z | module R = Reaml
module Theme = struct
type t =
| Red
| Green
| Blue
let toString = function
| Red -> "Red"
| Green -> "Green"
| Blue -> "Blue"
end
let theme = R.Context.make Theme.Red
module Hello = struct
let[@reaml.component "Hello"] make () =
let[@reaml] theme = R.useContext th... | 20.09375 | 86 | 0.583204 |
afa3654a26965363956a3876627bb6da004ec345 | 69 | mli | OCaml | src/lib/cparser/Bool.mli | letonchanh/Coeus | 21d417a56a80d6c9014cbb6ed86b329d522fd9a3 | [
"Apache-2.0"
] | 3 | 2019-10-06T12:05:37.000Z | 2020-04-16T11:40:50.000Z | src/lib/cparser/Bool.mli | letonchanh/Coeus | 21d417a56a80d6c9014cbb6ed86b329d522fd9a3 | [
"Apache-2.0"
] | null | null | null | src/lib/cparser/Bool.mli | letonchanh/Coeus | 21d417a56a80d6c9014cbb6ed86b329d522fd9a3 | [
"Apache-2.0"
] | 2 | 2020-06-12T00:18:56.000Z | 2020-10-09T23:35:38.000Z |
val bool_dec : bool -> bool -> bool
val eqb : bool -> bool -> bool
| 13.8 | 35 | 0.594203 |
afb1258b2329acb9c2cd76b3b2fd9a2bb720f836 | 26,697 | mli | OCaml | duniverse/odoc/src/model/maps.mli | pitag-ha/ppx_universe | 4d7dab337767961e346e4bfe1596f38370581dee | [
"MIT"
] | 2 | 2022-03-03T01:38:24.000Z | 2022-03-03T01:54:36.000Z | duniverse/odoc/src/model/maps.mli | pitag-ha/ppx_universe | 4d7dab337767961e346e4bfe1596f38370581dee | [
"MIT"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | duniverse/odoc/src/model/maps.mli | pitag-ha/ppx_universe | 4d7dab337767961e346e4bfe1596f38370581dee | [
"MIT"
] | 1 | 2022-03-02T19:35:36.000Z | 2022-03-02T19:35:36.000Z | (*
* Copyright (c) 2014 Leo White <lpw25@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 TH... | 29.962963 | 120 | 0.771135 |
afcbc8e76367ff72d3689e24abc2ccef9d398f95 | 373 | mli | OCaml | hphp/hack/src/h2tp/common/Str_ext.mli | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2015-02-12T07:24:28.000Z | 2015-02-12T07:24:28.000Z | hphp/hack/src/h2tp/common/Str_ext.mli | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/h2tp/common/Str_ext.mli | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-10-09T15:14:18.000Z | 2020-10-09T15:14:18.000Z | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
include (modu... | 26.642857 | 80 | 0.697051 |
8a17a2eea3dee8234ec1ea4cea4feaddcbdb6393 | 6 | ml | OCaml | ocamli2/programs/compare.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 100 | 2017-09-08T09:49:08.000Z | 2022-03-10T12:12:50.000Z | newtype/programs/compare.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 1 | 2020-01-31T15:47:28.000Z | 2020-02-01T11:54:44.000Z | ocamli2/programs/compare.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | null | null | null | 1 = 0
| 3 | 5 | 0.333333 |
af1b37f3a1ab67f279c76166174d8e015081305d | 16,528 | ml | OCaml | test/helpers/base_quickcheck_test_helpers.ml | janestreet/base_quickcheck | 57f65c7c0a1f265a05783b7201ef4ca5bbdb5bc5 | [
"MIT"
] | 10 | 2019-06-25T03:35:58.000Z | 2021-12-17T02:52:42.000Z | test/helpers/base_quickcheck_test_helpers.ml | janestreet/base_quickcheck | 57f65c7c0a1f265a05783b7201ef4ca5bbdb5bc5 | [
"MIT"
] | 3 | 2018-07-29T20:04:27.000Z | 2022-01-03T11:24:59.000Z | test/helpers/base_quickcheck_test_helpers.ml | janestreet/base_quickcheck | 57f65c7c0a1f265a05783b7201ef4ca5bbdb5bc5 | [
"MIT"
] | 3 | 2019-08-16T17:43:50.000Z | 2021-12-17T02:53:23.000Z | open! Base
open Base_quickcheck
open Expect_test_helpers_core
include Base_quickcheck_test_helpers_intf
let () = sexp_style := Sexp_style.simple_pretty
let set_is_singleton set = Set.length set = 1
let arbitrary_int_gen =
Generator.create (fun ~size:_ ~random ->
Splittable_random.int random ~lo:Int.min_value ~h... | 29.99637 | 91 | 0.634741 |
afeed5725f30a93ba1becaa813456ddb66cf0c40 | 3,045 | ml | OCaml | test/mac_test.ml | o1-labs/ppx_bin_prot | 3f7cdfeac74180d11d062a04319bb42b59d38523 | [
"MIT"
] | null | null | null | test/mac_test.ml | o1-labs/ppx_bin_prot | 3f7cdfeac74180d11d062a04319bb42b59d38523 | [
"MIT"
] | null | null | null | test/mac_test.ml | o1-labs/ppx_bin_prot | 3f7cdfeac74180d11d062a04319bb42b59d38523 | [
"MIT"
] | null | null | null | open Printf
open Bin_prot
open Common
open Bin_prot.Std
(* Checks correct behavior for empty types *)
type empty [@@deriving bin_io]
module type S = sig
(* Checks correct behavior for type signatures with variance annotations. *)
type +'a t [@@deriving bin_io]
end
module PolyInhTest = struct
type x = [ `X1 | ... | 26.478261 | 97 | 0.626273 |
af407fa8597dcab54d970aff7a085c0458758dff | 2,141 | ml | OCaml | duniverse/ocaml-migrate-parsetree/tools/add_special_comments.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/ocaml-migrate-parsetree/tools/add_special_comments.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/ocaml-migrate-parsetree/tools/add_special_comments.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (* Add (*IF_CURRENT:= Parsetree.expression *) comments to type definitions. *)
open StdLabels
open Parsetree
[@@@warning "-40"]
let read_file fn =
let ic = open_in_bin fn in
let len = in_channel_length ic in
let s = really_input_string ic len in
close_in ic;
s
let collect_insertions structure =
let inse... | 31.955224 | 78 | 0.560953 |
f3d37aaf530a51ba00a1a0f1a1ebb9d5f55197af | 36,339 | ml | OCaml | src/lib/gossip_net/gossip_net.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | src/lib/gossip_net/gossip_net.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | src/lib/gossip_net/gossip_net.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | [%%import
"../../config.mlh"]
open Core
open Async
open Pipe_lib
open Network_peer
open Kademlia
open O1trace
module Membership = Membership.Haskell
type ('q, 'r) dispatch =
Versioned_rpc.Connection_with_menu.t -> 'q -> 'r Deferred.Or_error.t
module Get_chain_id = struct
module Master = struct
let name = "ge... | 38.906852 | 96 | 0.554886 |
af1a2920c195aab1e77175535d98792d7830cff3 | 1,080 | ml | OCaml | out/prologin_template_2charline.fun.ml | Melyodas/metalang | 399a9f1a71402c979d7f8024d4f98f081c80e771 | [
"BSD-2-Clause"
] | 22 | 2017-04-24T10:00:45.000Z | 2021-04-01T10:11:05.000Z | out/prologin_template_2charline.fun.ml | Melyodas/metalang | 399a9f1a71402c979d7f8024d4f98f081c80e771 | [
"BSD-2-Clause"
] | 12 | 2017-03-26T18:34:21.000Z | 2019-03-21T19:13:03.000Z | out/prologin_template_2charline.fun.ml | Melyodas/metalang | 399a9f1a71402c979d7f8024d4f98f081c80e771 | [
"BSD-2-Clause"
] | 7 | 2017-10-14T13:33:33.000Z | 2021-03-18T15:18:50.000Z | let programme_candidat tableau1 taille1 tableau2 taille2 =
let out0 = 0 in
let rec e i out0 =
if i <= taille1 - 1
then let out0 = out0 + (int_of_char (tableau1.(i))) * i in
( Printf.printf "%c" tableau1.(i);
e (i + 1) out0)
else ( Printf.printf "%s" "--\n";
let rec f j out0 =
... | 36 | 83 | 0.517593 |
af8c1ff345a40105020a8826010daec56c597b5a | 878 | ml | OCaml | benchmarks/I/diff/sub173.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/I/diff/sub173.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/I/diff/sub173.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type aexp =
| Const of int
| Var of string
| Power of string * int
| Times of aexp list
| Sum of aexp list
let rec diff : aexp * string -> aexp
= fun (exp, x) ->
match exp with
|Const n -> Const 0
|Var s -> (
if s=x then Const 1
else Const 0)
|Power (s, n) -> (
if s=x then (T... | 28.322581 | 71 | 0.47836 |
afead54a1f7876201d377e7b07af532d9f18268b | 775 | ml | OCaml | src/top/owl_top.ml | syther-labs/owl | f43835e643ac31b6ecedeb2a32fcd99bcc003140 | [
"MIT"
] | null | null | null | src/top/owl_top.ml | syther-labs/owl | f43835e643ac31b6ecedeb2a32fcd99bcc003140 | [
"MIT"
] | null | null | null | src/top/owl_top.ml | syther-labs/owl | f43835e643ac31b6ecedeb2a32fcd99bcc003140 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2022 Liang Wang <liang@ocaml.xyz>
*)
let printers =
[ "Owl.Dense.Ndarray.Generic.pp_dsnda"
; "Owl.Sparse.Ndarray.Generic.pp_spnda"
; "Owl.Sparse.Matrix.Generic.pp_spmat"
; "Owl.Neural.S.Graph.pp_network"
; "Owl.Neural.D.Graph.pp_ne... | 24.21875 | 87 | 0.696774 |
af29722472c4fe295c4e4316566b3d47ae8bdc70 | 315 | mli | OCaml | src/basis/DisjointSet.mli | clayrat/cooltt | b3e6246169e2118aade43d582f0c5ecb1ea9625d | [
"Apache-2.0"
] | 143 | 2020-05-11T19:40:53.000Z | 2022-03-31T14:55:17.000Z | src/basis/DisjointSet.mli | clayrat/cooltt | b3e6246169e2118aade43d582f0c5ecb1ea9625d | [
"Apache-2.0"
] | 200 | 2020-05-09T14:32:57.000Z | 2022-03-30T20:03:18.000Z | src/basis/DisjointSet.mli | clayrat/cooltt | b3e6246169e2118aade43d582f0c5ecb1ea9625d | [
"Apache-2.0"
] | 11 | 2020-05-12T12:27:57.000Z | 2022-03-17T07:50:52.000Z | (* Due to Conchon & Filliatre *)
module type S =
sig
type key
type t
val empty : t
val test : key -> key -> t -> bool
val union : key -> key -> t -> t
val test_and_union : key -> key -> t -> bool * t
end
module type MAKER = functor (O : Map.OrderedType) -> S with type key = O.t
module Make : MAKER
| 18.529412 | 74 | 0.596825 |
affb5bf19dce4aa3dd52aca4115bf512f57a0846 | 6,414 | ml | OCaml | src/oauth2.ml | dogeared/google-drive-ocamlfuse | 664ac23814d68565f5fb5653528dadde90890318 | [
"MIT"
] | 1 | 2020-08-28T15:08:02.000Z | 2020-08-28T15:08:02.000Z | src/oauth2.ml | SeppPenner/google-drive-ocamlfuse | a3800921678869842c7be3668028faad138b2185 | [
"MIT"
] | null | null | null | src/oauth2.ml | SeppPenner/google-drive-ocamlfuse | a3800921678869842c7be3668028faad138b2185 | [
"MIT"
] | null | null | null | open GapiUtils.Infix
open GapiLens.Infix
open GapiMonad
open GapiMonad.SessionM.Infix
let scope = [GapiDriveV2Service.Scope.drive]
(* Gapi request wrapper *)
let do_request go =
let update_state session =
let context = Context.get_ctx () in
let state = context |. Context.state_lens in
let access_token =... | 34.858696 | 79 | 0.642657 |
d2d9ad9c2b825ff051ba235f14ca37aa81af0a23 | 2,411 | ml | OCaml | src/common/utils/line.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 20,996 | 2015-01-01T13:51:47.000Z | 2022-03-31T17:44:01.000Z | src/common/utils/line.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 8,315 | 2015-01-01T19:56:43.000Z | 2022-03-31T15:58:10.000Z | src/common/utils/line.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 2,338 | 2015-01-05T03:28:26.000Z | 2022-03-26T20:40:56.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.
*)
(* Line Separator (0xE2 0x80 0xA8) or Paragraph Separator (0xE2 0x80 0xA9) *)
let is_ls_or_ps =
let c1 = Char.chr 0xE2 in
let c... | 27.089888 | 97 | 0.598092 |
af48ade0006f4704b6be7afd611e1723cfacf836 | 9,646 | mly | OCaml | parse.mly | kevinaangstadt/rapid | 5e3fe4edce7eaac29b668bc83b158b879fbce586 | [
"BSD-3-Clause"
] | 2 | 2017-03-22T00:53:36.000Z | 2018-01-16T05:46:07.000Z | parse.mly | kevinaangstadt/rapid | 5e3fe4edce7eaac29b668bc83b158b879fbce586 | [
"BSD-3-Clause"
] | 1 | 2016-10-13T19:56:28.000Z | 2016-10-13T19:56:28.000Z | parse.mly | kevinaangstadt/rapid | 5e3fe4edce7eaac29b668bc83b158b879fbce586 | [
"BSD-3-Clause"
] | null | null | null | %{
(*
* Parser for RAPID
*)
open Language
open Id
let ast_seed = new_seed ()
let make_exp exp loc =
{
exp = exp ;
expr_type = NoType ;
loc = loc ;
id = (get_num ast_seed) ;
}
let make_stmt stmt loc =
{
stmt = stmt ;
loc = loc ;
id = (get... | 24.733333 | 121 | 0.547273 |
aff66ad07d927de002b5e6d09332a366468d6df2 | 3,892 | ml | OCaml | atdj/src/atdj_helper.ml | jchavarri/atd | 2f4f347069efcd0e461fbcf4e3e6e1c0a0eeb66b | [
"BSD-3-Clause"
] | 137 | 2015-03-03T20:17:59.000Z | 2019-08-27T17:01:40.000Z | atdj/src/atdj_helper.ml | jchavarri/atd | 2f4f347069efcd0e461fbcf4e3e6e1c0a0eeb66b | [
"BSD-3-Clause"
] | 154 | 2015-06-22T14:35:58.000Z | 2019-08-27T15:35:05.000Z | atdj/src/atdj_helper.ml | jchavarri/atd | 2f4f347069efcd0e461fbcf4e3e6e1c0a0eeb66b | [
"BSD-3-Clause"
] | 20 | 2015-06-18T18:37:59.000Z | 2019-04-18T11:31:21.000Z | (* Helper classes *)
open Atd.Import
open Atdj_env
let output_atdj env =
let out = Atdj_trans.open_class env "Atdj" in
fprintf out "\
/**
* Common utility interface.
*/
public interface Atdj {
/**
* Get the JSON string representation, failing if some of the data
* was not initialized.
* @return The J... | 26.841379 | 75 | 0.573998 |
d2e11f00ae3e637f56054001fcf3eb05e8beb9bd | 3,486 | ml | OCaml | src/server/monitor_listener/serverMonitorListener.ml | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | 1 | 2020-07-08T17:40:26.000Z | 2020-07-08T17:40:26.000Z | src/server/monitor_listener/serverMonitorListener.ml | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | 2 | 2021-09-02T16:30:33.000Z | 2021-09-02T16:30:34.000Z | src/server/monitor_listener/serverMonitorListener.ml | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open ServerEnv
(* This is a thread that just keeps looping in the background. It reads messages from the
* monitor process and ad... | 40.068966 | 101 | 0.690189 |
afcf576f1e60e7b714458cc21caab66335fdc7d8 | 4,089 | ml | OCaml | bin/migrations/m20210608.ml | idkjs/builder-web | fb26e1d8ee8e6aad9d1654a5f5752a44dea81a29 | [
"ISC"
] | null | null | null | bin/migrations/m20210608.ml | idkjs/builder-web | fb26e1d8ee8e6aad9d1654a5f5752a44dea81a29 | [
"ISC"
] | null | null | null | bin/migrations/m20210608.ml | idkjs/builder-web | fb26e1d8ee8e6aad9d1654a5f5752a44dea81a29 | [
"ISC"
] | null | null | null | let new_version = 6L and old_version = 5L
let identifier = "2021-06-08"
let migrate_doc = "add access list"
let rollback_doc = "remove access list"
let new_user =
Caqti_request.exec
Caqti_type.unit
{| CREATE TABLE new_user (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
username VARCHAR(25... | 36.508929 | 145 | 0.678161 |
8a2ade219f63526c8eeab098094b8909ad0d4878 | 25 | ml | OCaml | src/Implementation/Exit.ml | hhugo/General | 5237123668e939c0cb83aa3e1c4756473336bc7e | [
"MIT"
] | 7 | 2020-11-09T02:07:18.000Z | 2021-02-20T08:29:05.000Z | src/Implementation/Exit.ml | hhugo/General | 5237123668e939c0cb83aa3e1c4756473336bc7e | [
"MIT"
] | null | null | null | src/Implementation/Exit.ml | hhugo/General | 5237123668e939c0cb83aa3e1c4756473336bc7e | [
"MIT"
] | 3 | 2020-11-09T00:57:00.000Z | 2021-02-20T08:31:51.000Z | include Foundations.Exit
| 12.5 | 24 | 0.88 |
afc51b97bb94b104d9a251c20c72430945c4e603 | 467 | ml | OCaml | benchmarks/C/lambda/sol407.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/lambda/sol407.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/lambda/sol407.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type var = string
type lambda = V of var
| P of var * lambda
| C of lambda * lambda
let rec check2 lambda env =
match lambda with
| V s ->
(match env with
| h::t -> if h=s then true else (check2 lambda t)
| [] -> false)
| P (n, m) -> (check2 m (n::env))
| C (m1, m2) -> (... | 24.578947 | 55 | 0.535332 |
af80d3bdd515a4525106f5bc36d2a19799474df1 | 5,177 | ml | OCaml | caramel/compiler/ocaml_to_erlang/names.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | null | null | null | caramel/compiler/ocaml_to_erlang/names.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | null | null | null | caramel/compiler/ocaml_to_erlang/names.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | null | null | null | open Erlang.Ast_helper
let erlang = Name.atom (Atom.mk "erlang")
let guards =
[
Name.atom (Atom.mk "!");
Name.atom (Atom.mk "*");
Name.atom (Atom.mk "+");
Name.atom (Atom.mk "++");
Name.atom (Atom.mk "-");
Name.atom (Atom.mk "--");
Name.atom (Atom.mk "/");
Name.atom (Atom.mk "/=");
... | 31.567073 | 78 | 0.565772 |
8a2e78b1d8350153d4f93363e3d6eecd511063c2 | 7,672 | ml | OCaml | lib/accept.ml | tmattio/dream-accept | 2d62c28b5ae5aedd81cd64ce56ee91e35fcd3b2a | [
"0BSD"
] | 2 | 2021-07-26T18:48:05.000Z | 2021-07-27T07:01:48.000Z | lib/accept.ml | tmattio/dream-accept | 2d62c28b5ae5aedd81cd64ce56ee91e35fcd3b2a | [
"0BSD"
] | null | null | null | lib/accept.ml | tmattio/dream-accept | 2d62c28b5ae5aedd81cd64ce56ee91e35fcd3b2a | [
"0BSD"
] | null | null | null | (* From
https://github.com/lyrm/ocaml-httpadapter/blob/master/src-httpaf/accept.ml
Copyright (c) 2019 Carine Morel <carine@tarides.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 ... | 25.154098 | 80 | 0.61731 |
afccf8d41cfca58305b661ccc2bdeadb220f78c5 | 1,114 | ml | OCaml | II rok/I semestr/PF/Zajecia 01/pf_wyklad_01.ml | antonitomaszewski/Studia | ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b | [
"MIT"
] | null | null | null | II rok/I semestr/PF/Zajecia 01/pf_wyklad_01.ml | antonitomaszewski/Studia | ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b | [
"MIT"
] | null | null | null | II rok/I semestr/PF/Zajecia 01/pf_wyklad_01.ml | antonitomaszewski/Studia | ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b | [
"MIT"
] | null | null | null | function (x,y) -> x+y;;
function (x,y,z) -> if x then y else z;;
function (x, (y,z)) -> ((x,y),z);;
let cons = fun x xs -> x :: xs;;
let car = function xs -> List.hd xs;;
let cdr = function xs -> List.tl xs;;
let null = [];;
let czy_null = function xs -> xs = null;;
let rec append = fun xs ys -> if xs=null then ys els... | 32.764706 | 130 | 0.595153 |
aff430eb47ad9d947d9e1f7d9d4deb8c402ad168 | 694 | mli | OCaml | src/lib/sequme_cufflinks.mli | cgsb/sequme | 9da8796062089998b05cf4b064fde046ce49a9a0 | [
"0BSD"
] | null | null | null | src/lib/sequme_cufflinks.mli | cgsb/sequme | 9da8796062089998b05cf4b064fde046ce49a9a0 | [
"0BSD"
] | null | null | null | src/lib/sequme_cufflinks.mli | cgsb/sequme | 9da8796062089998b05cf4b064fde046ce49a9a0 | [
"0BSD"
] | null | null | null | (** Cufflinks support. See the
{{:http://cufflinks.cbcb.umd.edu}Cufflinks website} for details. *)
exception Error of string
(** Cufflinks command. *)
type cmd = private {
exec : string;
output_dir : string option;
num_threads : int option;
mask_file : string option;
quartile_normalization : bool;
gtf... | 27.76 | 72 | 0.691643 |
d2e7f5c4c43d6b2a24a6f1690b79c72ea55f3fe7 | 92 | ml | OCaml | OCaml from the Very Beginning/Chapter 4/example11.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 100 | 2017-09-08T09:49:08.000Z | 2022-03-10T12:12:50.000Z | OCaml from the Very Beginning/Chapter 4/example11.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 1 | 2020-01-31T15:47:28.000Z | 2020-02-01T11:54:44.000Z | OCaml from the Very Beginning/Chapter 4/example11.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | null | null | null | let rec drop n l =
if n = 0 then l else
match l with
h::t -> drop (n - 1) t
| 18.4 | 29 | 0.478261 |
f3a7cce3aa7d07e6958fb9942a4dd42b8267c5ce | 4,742 | ml | OCaml | src/proto_alpha/lib_tx_rollup/l2block.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_tx_rollup/l2block.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_tx_rollup/l2block.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2022 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 37.634921 | 80 | 0.608815 |
af4950815126f935b161586c8fe103c7d0015c58 | 788 | mli | OCaml | hphp/hack/src/utils/file_content.mli | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/file_content.mli | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2021-05-11T23:33:41.000Z | 2022-03-28T18:43:26.000Z | hphp/hack/src/utils/file_content.mli | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Ide_api_... | 30.307692 | 80 | 0.711929 |
afb2b8f7748220ce94ae9161b52eef7aa9dfd71d | 19,601 | ml | OCaml | data/derived/comb/progs/unify/prog3027.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/prog3027.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3027.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 33.053963 | 208 | 0.652314 |
f35361bc966f1b432f4c221582155fd8b0c9a2f5 | 767 | ml | OCaml | lib/preface_stdlib/continuation.ml | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 109 | 2021-04-08T18:41:14.000Z | 2022-03-26T10:28:45.000Z | lib/preface_stdlib/continuation.ml | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 35 | 2021-04-10T06:28:02.000Z | 2022-01-31T10:43:36.000Z | lib/preface_stdlib/continuation.ml | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 3 | 2021-05-07T21:53:35.000Z | 2021-08-28T12:28:12.000Z | open Preface_core.Fun.Infix
type 'a t = { run : 'r. ('a -> 'r) -> 'r }
let pure c = { run = (fun k -> k c) }
let map f c = { run = (fun k -> c.run @@ (f %> k)) }
module Functor = Preface_make.Functor.Via_map (struct
type nonrec 'a t = 'a t
let map = map
end)
module Applicative = Preface_make.Applicative.Via_m... | 20.184211 | 73 | 0.602347 |
af082f25b11ac5499a50e53c7b25ba7a22c9caca | 1,768 | mli | OCaml | coq/ide/protocol/serialize.mli | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq/ide/protocol/serialize.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq/ide/protocol/serialize.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 2 | 2021-01-19T17:56:28.000Z | 2022-03-28T04:39:41.000Z | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *)
(* <O___,, * (see CREDITS file for the list of authors) *)
(* \VV/ *********... | 42.095238 | 74 | 0.5 |
af575dc9203663e43ba355be82e6b08b0c6acd3f | 82,341 | ml | OCaml | src/ocaml-output/FStar_TypeChecker_NBETerm.ml | LaudateCorpus1/FStar | 0566df7ec290437ef2df9c045cb3445a6abfa8ee | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_TypeChecker_NBETerm.ml | LaudateCorpus1/FStar | 0566df7ec290437ef2df9c045cb3445a6abfa8ee | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_TypeChecker_NBETerm.ml | LaudateCorpus1/FStar | 0566df7ec290437ef2df9c045cb3445a6abfa8ee | [
"Apache-2.0"
] | 1 | 2022-01-28T03:32:14.000Z | 2022-01-28T03:32:14.000Z | open Prims
type var = FStar_Syntax_Syntax.bv
type sort = Prims.int
type constant =
| Unit
| Bool of Prims.bool
| Int of FStar_BigInt.t
| String of (Prims.string * FStar_Range.range)
| Char of FStar_Char.char
| Range of FStar_Range.range
| SConst of FStar_Const.sconst
let (uu___is_Unit : constant ->... | 40.225208 | 98 | 0.595135 |
afabb69464f9390db97a559c74a5009e80d0ed47 | 20,430 | ml | OCaml | data/derived/comb/progs/unify/prog1937.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/prog1937.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1937.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.173228 | 210 | 0.655213 |
8a1fa01871d2742b59f35ab20cf5512a3b487ed2 | 8,595 | ml | OCaml | infer/src/checkers/costModels.ml | aspirin0109/infer | d397ea03d15c90394138d7227237e4990f745c8e | [
"MIT"
] | 1 | 2019-09-11T13:16:25.000Z | 2019-09-11T13:16:25.000Z | infer/src/checkers/costModels.ml | aspirin0109/infer | d397ea03d15c90394138d7227237e4990f745c8e | [
"MIT"
] | null | null | null | infer/src/checkers/costModels.ml | 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
module BasicCost = CostDomain.BasicCost
open BufferOverrunUtils.ModelEnv
type model = model_env -> ret:Ident.t * Typ.t ... | 42.339901 | 99 | 0.715998 |
f353b9221c55f649dcbb059ecb5d4a090731ce41 | 2,853 | ml | OCaml | hphp/hack/src/typing/typing_tdef.ml | swtaarrs/hhvm | dfb8867363623d7d02d03a64691610f1289ef5ad | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-02-04T22:07:59.000Z | 2021-02-04T22:07:59.000Z | hphp/hack/src/typing/typing_tdef.ml | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_tdef.ml | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_core
open Typing_defs
open Utils
module Reason = Typing_reason
module Env = Typing_env
module Inst = ... | 32.420455 | 79 | 0.594462 |
8a0bd0ef49aa621bbceea6d77c41c0b9c7b7bc4e | 7,611 | ml | OCaml | src/generic/soundcheck.ml | iceluke/cyclist | 6983f1c7a5aacf142fb7edc6a2803ebd8924310c | [
"BSD-3-Clause"
] | null | null | null | src/generic/soundcheck.ml | iceluke/cyclist | 6983f1c7a5aacf142fb7edc6a2803ebd8924310c | [
"BSD-3-Clause"
] | null | null | null | src/generic/soundcheck.ml | iceluke/cyclist | 6983f1c7a5aacf142fb7edc6a2803ebd8924310c | [
"BSD-3-Clause"
] | null | null | null | open Lib
open Parsers
external create_aut : int -> unit = "create_aut" ;;
external destroy_aut: unit -> unit = "destroy_aut" ;;
external create_vertex : int -> unit = "create_vertex" ;;
external tag_vertex : int -> int -> unit = "tag_vertex" ;;
external set_successor : int -> int -> unit = "set_successor" ;;
external... | 33.528634 | 131 | 0.589279 |
afee1d2fb1915ccd6bc4aee9426ad79da1f27364 | 91 | ml | OCaml | hpack/util/syntax.ml | jeffa5/ocaml-h2 | e92be081d775011cc791c35538a33a5334eaa96a | [
"BSD-3-Clause"
] | 203 | 2019-03-27T21:05:54.000Z | 2022-03-05T08:24:14.000Z | hpack/util/syntax.ml | jeffa5/ocaml-h2 | e92be081d775011cc791c35538a33a5334eaa96a | [
"BSD-3-Clause"
] | 21 | 2019-06-04T20:36:45.000Z | 2022-03-16T18:45:59.000Z | hpack/util/syntax.ml | jeffa5/ocaml-h2 | e92be081d775011cc791c35538a33a5334eaa96a | [
"BSD-3-Clause"
] | 15 | 2019-03-28T14:29:59.000Z | 2022-03-14T22:55:54.000Z | open Parsetree
open Ast_helper
open Asttypes
let strloc txt = { txt; loc = !default_loc }
| 15.166667 | 44 | 0.747253 |
8a18cdaa5f5fa4ad1e9576d470599f3c3b09ad3d | 407 | ml | OCaml | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/experimental/frisch/test_ifdef.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/experimental/frisch/test_ifdef.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/experimental/frisch/test_ifdef.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | type t =
| A
| DBG [@IFDEF DEBUG] of string
| B
[%%IFDEF DEBUG]
let debug s = prerr_endline ([%GETENV DEBUG] ^ ":" ^ s)
let x = DBG "xxx"
[%%ELSE]
let debug _ = ()
let x = A
[%%END]
let f = function
| A -> "A"
| DBG s when [%IFDEF DEBUG] -> "DEBUG:" ^ s
| B -> "B"
let () = debug "ABC"
let () =
Printf.... | 15.653846 | 57 | 0.530713 |
af77d53efa13aaa90fcee3639d3751c5b989406a | 5,920 | ml | OCaml | src/lib_protocol_compiler/replace.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | src/lib_protocol_compiler/replace.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | src/lib_protocol_compiler/replace.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2019 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 37.468354 | 80 | 0.579561 |
af81411ae77d1b5fb80e7fac3caa83a3fadad407 | 1,643 | ml | OCaml | types.ml | dra27/opam-dune-lint | 790f4d552d37cfeb6c13c5d1d543ef7da576ad1d | [
"0BSD"
] | 1 | 2022-03-21T15:43:46.000Z | 2022-03-21T15:43:46.000Z | types.ml | dra27/opam-dune-lint | 790f4d552d37cfeb6c13c5d1d543ef7da576ad1d | [
"0BSD"
] | 1 | 2021-04-27T18:52:04.000Z | 2021-04-27T18:52:04.000Z | types.ml | dra27/opam-dune-lint | 790f4d552d37cfeb6c13c5d1d543ef7da576ad1d | [
"0BSD"
] | 1 | 2021-04-27T16:36:30.000Z | 2021-04-27T16:36:30.000Z | module Dir_set = Set.Make(String)
module Paths = Map.Make(String)
module Libraries = Map.Make(String)
module Change = struct
type t =
[ `Remove_with_test of OpamPackage.Name.t
| `Add_with_test of OpamPackage.Name.t
| `Add_build_dep of OpamPackage.t
| `Add_test_dep of OpamPackage.t ]
end
module Cha... | 32.215686 | 120 | 0.642118 |
af79098ffff92cfb8296bdc671e4bf1cfd39acea | 7,259 | mli | OCaml | src/dune/lib.mli | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | 1 | 2021-04-15T05:05:50.000Z | 2021-04-15T05:05:50.000Z | src/dune/lib.mli | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | null | null | null | src/dune/lib.mli | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | null | null | null | open! Stdune
open Import
(** {1 Generals} *)
(** Representation of a library *)
type t
val to_dyn : t -> Dyn.t
(** For libraries defined in the workspace, this is the [public_name] if present
or the [name] if not. *)
val name : t -> Lib_name.t
val implements : t -> t Or_exn.t option
(** Directory where the ob... | 22.971519 | 81 | 0.646646 |
f361a794db2e0fdc71901f832314714df5956522 | 781 | ml | OCaml | data/sp14/1843.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/1843.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/1843.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec digitsOfInt n =
let rec append xs1 xs2 =
match xs1 with | [] -> xs2 | hd::tl -> append tl (hd :: xs2) in
let rec helper x =
match x with | 0 -> [] | n -> append helper (n / 10) [n mod 10] in
helper n;;
(* fix
let rec digitsOfInt n =
let rec append xs1 xs2 =
match xs1 with | [] -> xs2 | h... | 17.75 | 72 | 0.517286 |
afbce871e092069fcd70681fae4cc446f4ea2e86 | 132 | ml | OCaml | tests/tool-ocaml/t020.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | 1 | 2016-05-17T14:29:13.000Z | 2016-05-17T14:29:13.000Z | tests/tool-ocaml/t020.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | tests/tool-ocaml/t020.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | let _ = () in ();;
(**
0 CONST0
1 PUSHCONST0
2 POP 1
4 ATOM0
5 SETGLOBAL T020
7 STOP
**)
| 12 | 23 | 0.409091 |
afd806fb0530eeef4eb5e31e838cc44f4683b191 | 17,110 | ml | OCaml | src/ext/inliner/inliner.ml | faddeenkov/cil_fork | 6f9e7ba04a3e8fdd1cc9fef23a5118fa11ff9e24 | [
"BSD-3-Clause"
] | 1 | 2020-08-27T08:11:01.000Z | 2020-08-27T08:11:01.000Z | src/ext/inliner/inliner.ml | keremc/cil | 2a037839ba6fba735f53cc20788eca24c9a45853 | [
"BSD-3-Clause"
] | null | null | null | src/ext/inliner/inliner.ml | keremc/cil | 2a037839ba6fba735f53cc20788eca24c9a45853 | [
"BSD-3-Clause"
] | null | null | null | (*
*
* Copyright (c) 2007,
* 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. Redistributions of source code must retain t... | 38.449438 | 90 | 0.485856 |
af00d903d819620fa67c640d8773ab123b46de49 | 49,264 | mli | OCaml | src/cmdliner.mli | dinosaure/cmdliner | 74daf226fbacdd29862a01c85fe37c6595b374bf | [
"ISC"
] | null | null | null | src/cmdliner.mli | dinosaure/cmdliner | 74daf226fbacdd29862a01c85fe37c6595b374bf | [
"ISC"
] | 1 | 2022-03-12T16:22:19.000Z | 2022-03-14T10:08:16.000Z | src/cmdliner.mli | dinosaure/cmdliner | 74daf226fbacdd29862a01c85fe37c6595b374bf | [
"ISC"
] | 1 | 2022-03-11T18:28:30.000Z | 2022-03-11T18:28:30.000Z | (*---------------------------------------------------------------------------
Copyright (c) 2011 The cmdliner programmers. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
---------------------------------------------------------------------------*)
(** Declarative defi... | 41.891156 | 80 | 0.642599 |
8a306848add8d19f201684b3ed043e6ba5339ad9 | 275,026 | ml | OCaml | src/typing/statement.ml | goodmind/flow | 2e9141bc94c7ad1ccd22fea5dca0e5a5058bc2d0 | [
"MIT"
] | 1 | 2021-04-04T14:30:02.000Z | 2021-04-04T14:30:02.000Z | src/typing/statement.ml | goodmind/flow | 2e9141bc94c7ad1ccd22fea5dca0e5a5058bc2d0 | [
"MIT"
] | null | null | null | src/typing/statement.ml | goodmind/flow | 2e9141bc94c7ad1ccd22fea5dca0e5a5058bc2d0 | [
"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
module Tast_utils = Typed_ast_utils
(* This module contains the traversal functions which set up subtyping
... | 39.447217 | 128 | 0.622807 |
f37a4dd94fb8309981d3e0c74f97f959f1739d12 | 804 | ml | OCaml | result/func/diff/sub38/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/prog/diff/sub38/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/prog/diff/sub38/patch.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 diff ((aexp : aexp), (x : string)) : aexp =
match aexp with
| Const i -> Const 0
| Var s -> if s = x then Const 1 else Const 0
| Power (s, i) ->
if s = x then
match i wit... | 25.935484 | 67 | 0.430348 |
f339386fb31342b1d7fbd9e2142894a20f67968d | 4,215 | ml | OCaml | __tests__/virtual_dom_test.ml | bs-oak/virtual-dom | ba5009b85251c653975e5a0345fcdabb0708df2e | [
"MIT"
] | 2 | 2020-08-19T22:59:40.000Z | 2020-08-20T03:08:27.000Z | __tests__/virtual_dom_test.ml | bs-oak/virtual-dom | ba5009b85251c653975e5a0345fcdabb0708df2e | [
"MIT"
] | 3 | 2020-09-04T10:07:00.000Z | 2021-05-07T11:12:36.000Z | __tests__/virtual_dom_test.ml | bs-oak/virtual-dom | ba5009b85251c653975e5a0345fcdabb0708df2e | [
"MIT"
] | null | null | null | open Jest
open Expect
let () = describe "Virtual_dom" (fun () ->
let inner_html node =
Virtual_dom.empty ()
|> Virtual_dom.patch (fun _ -> ()) node
|> Virtual_dom.element
|> Webapi.Dom.Element.innerHTML
in
let namespace_uri node =
let get_namespace_uri = [%raw {|
function(el) {
... | 30.543478 | 115 | 0.486833 |
8a18f7d351043e45d43b08724ff6af6511589dff | 282 | mli | OCaml | server/config.mli | janestreet/jane-street-build-server | 7dd5dacfae33a361ba10ea93c8b9b21a9ce812ef | [
"MIT"
] | 6 | 2016-05-21T04:51:04.000Z | 2021-12-17T03:01:38.000Z | server/config.mli | janestreet/jane-street-build-server | 7dd5dacfae33a361ba10ea93c8b9b21a9ce812ef | [
"MIT"
] | null | null | null | server/config.mli | janestreet/jane-street-build-server | 7dd5dacfae33a361ba10ea93c8b9b21a9ce812ef | [
"MIT"
] | 2 | 2017-07-20T12:27:30.000Z | 2021-12-17T03:02:41.000Z | open Build_pkg_common.Std
type t [@@deriving sexp]
val create : base_dir:string -> opam_switch:Opam_switch.t -> t
(** Base directory, everything happens inside *)
val base_dir : t -> string
(** Opam_switch used by this opam installation. *)
val opam_switch : t -> Opam_switch.t
| 23.5 | 62 | 0.72695 |
f3bd57b633fa66d7a5d428c37e2e8ac0d7225bb1 | 3,577 | ml | OCaml | eval/ocaml/debugger/input_handling.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/ocaml/debugger/input_handling.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/ocaml/debugger/input_handling.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Jerome Vouil... | 31.377193 | 73 | 0.549343 |
f33873873e04f07c4979c37c7fb68b9fd467899c | 249 | mli | OCaml | libraries/s3/lib/getBucketNotification.mli | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/getBucketNotification.mli | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/getBucketNotification.mli | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = GetBucketNotificationConfigurationRequest.t
type output = NotificationConfigurationDeprecated.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| 22.636364 | 85 | 0.799197 |
affd23fb7f2c2d0c77e5c56aaf93b38866904cac | 12,255 | ml | OCaml | infer/src/nullsafe/ErrorRenderingUtils.ml | piyushjainb/infer | b073b55b1a92313437d08f58716cadfa894bd060 | [
"MIT"
] | 1 | 2020-11-12T23:04:48.000Z | 2020-11-12T23:04:48.000Z | infer/src/nullsafe/ErrorRenderingUtils.ml | rushatgabhane/infer | 14b32f172791daa32b26a88c35a368ce1081a5f4 | [
"MIT"
] | 6 | 2021-06-28T20:30:19.000Z | 2022-02-27T10:48:57.000Z | infer/src/nullsafe/ErrorRenderingUtils.ml | rushatgabhane/infer | 14b32f172791daa32b26a88c35a368ce1081a5f4 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
module UserFriendlyNullable = struct
type t = ExplainablyNullable of explainably_nullable_kind | Un... | 43.151408 | 122 | 0.714157 |
d2d6d0194c7006a9bddead192b686f865e23efa2 | 3,789 | ml | OCaml | hphp/hack/src/globals/find_refs.ml | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2017-09-13T22:07:37.000Z | 2017-09-13T22:07:37.000Z | hphp/hack/src/globals/find_refs.ml | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2017-04-10T11:50:15.000Z | 2017-04-10T11:50:15.000Z | hphp/hack/src/globals/find_refs.ml | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-03-24T20:14:38.000Z | 2021-03-24T20:14:38.000Z | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
module PosMap ... | 33.530973 | 80 | 0.507258 |
8a2bdf9df1faf6e7abc1de56cd3495ffe470a789 | 1,598 | mli | OCaml | CodeHawk/CHC/cchanalyze/cCHPostCondition.mli | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 17 | 2020-08-17T15:35:57.000Z | 2022-03-23T14:40:19.000Z | CodeHawk/CHC/cchanalyze/cCHPostCondition.mli | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 6 | 2020-07-17T05:43:51.000Z | 2021-01-06T03:41:46.000Z | CodeHawk/CHC/cchanalyze/cCHPostCondition.mli | sipma/codehawk | e4eeb41fdea6a8467d1892b9467ec54ef04953b0 | [
"MIT"
] | 3 | 2020-08-13T23:18:39.000Z | 2021-12-11T11:10:06.000Z | (* =============================================================================
CodeHawk C Analyzer
Author: Henny Sipma
------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2005-2019 Kestrel Technology LLC
Permission is hereby granted,... | 45.657143 | 83 | 0.645181 |
af9baff100ceb917a0f77da377e7501ba32289ae | 4,473 | ml | OCaml | hphp/hack/src/typing/typing_dynamic.ml | umanda/hhvm | 4ae8526da6ac1eb475fa1e021e0207d7c064a4cd | [
"PHP-3.01",
"Zend-2.0"
] | 7 | 2021-09-20T18:47:18.000Z | 2021-09-20T23:02:22.000Z | hphp/hack/src/typing/typing_dynamic.ml | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-08-21T07:48:37.000Z | 2021-08-21T07:48:37.000Z | hphp/hack/src/typing/typing_dynamic.ml | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Typing_defs
module Env = Typing_env
module SN = Naming_special_names
module Reason = Typing_rea... | 31.5 | 107 | 0.688129 |
affb0fe91863e57f44b7db92f895b94c15e39513 | 1,537 | mli | OCaml | CodeHawk/CHB/bchlibpe/bCHPEAssemblyTableLayout.mli | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 17 | 2020-08-17T15:35:57.000Z | 2022-03-23T14:40:19.000Z | CodeHawk/CHB/bchlibpe/bCHPEAssemblyTableLayout.mli | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 6 | 2020-07-17T05:43:51.000Z | 2021-01-06T03:41:46.000Z | CodeHawk/CHB/bchlibpe/bCHPEAssemblyTableLayout.mli | sipma/codehawk | e4eeb41fdea6a8467d1892b9467ec54ef04953b0 | [
"MIT"
] | 3 | 2020-08-13T23:18:39.000Z | 2021-12-11T11:10:06.000Z | (* =============================================================================
CodeHawk Binary Analyzer
Author: Henny Sipma
------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2005-2019 Kestrel Technology LLC
Permission is hereby gra... | 48.03125 | 83 | 0.645413 |
afdbcc5dc14b5764b8fd2d4a03793f0e5ca99c30 | 655 | ml | OCaml | tests/tool-ocaml/t172-pushenvacc2.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | 1 | 2016-05-17T14:29:13.000Z | 2016-05-17T14:29:13.000Z | tests/tool-ocaml/t172-pushenvacc2.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | tests/tool-ocaml/t172-pushenvacc2.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | open Lib;;
let x = 5 in
let y = 4 in
let f _ = y + x in
if f 0 <> 9 then raise Not_found
;;
(**
0 CONSTINT 42
2 PUSHACC0
3 MAKEBLOCK1 0
5 POP 1
7 SETGLOBAL Lib
9 BRANCH 16
11 ENVACC1
12 PUSHENVACC2
13 ADDINT
14 RETURN 1
16 CONSTINT 5
18 PUSH... | 17.236842 | 35 | 0.548092 |
8a349f1fdd64f6f20338d856ae296dbfaad16240 | 2,840 | ml | OCaml | hphp/hack/src/server/diffHotDecls.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/src/server/diffHotDecls.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/src/server/diffHotDecls.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 2,126 | 2015-01-01T11:13:29.000Z | 2022-03-28T19:58:15.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
*... | 33.809524 | 76 | 0.726761 |
8a1a786253e6b31ea7c67abccb78a721ba30199d | 361 | ml | OCaml | lib/bap_types/bap_int_conversions.ml | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | 1,697 | 2015-01-09T07:17:41.000Z | 2022-03-26T17:48:05.000Z | lib/bap_types/bap_int_conversions.ml | dvntaudio/bap | 5cfc3e584ea32d6c0c33013e050fb1a1e8f260de | [
"MIT"
] | 685 | 2015-01-10T21:32:42.000Z | 2022-03-23T23:44:53.000Z | lib/bap_types/bap_int_conversions.ml | dvntaudio/bap | 5cfc3e584ea32d6c0c33013e050fb1a1e8f260de | [
"MIT"
] | 294 | 2015-01-10T15:51:57.000Z | 2022-03-20T05:37:22.000Z | open Core_kernel
open Or_error
let to_int conv sexp v = match conv v with
| Some v -> Ok v
| None -> error "doesn't fit into int" v sexp
let int_of_int64 = to_int Int64.to_int Int64.sexp_of_t
let int_of_int32 = to_int Int32.to_int Int32.sexp_of_t
let int_of_nativeint = to_int Nativeint.to_int Nativeint.sexp_of_... | 25.785714 | 66 | 0.775623 |
af0035f0e2d6bc07f09aaef78aab71a3a4627c0c | 370 | mli | OCaml | bildb/lib/screens/initialization.mli | 2over12/cbat_tools | 8330495fadb062a8359921be031a4f9a9bf778f0 | [
"MIT"
] | null | null | null | bildb/lib/screens/initialization.mli | 2over12/cbat_tools | 8330495fadb062a8359921be031a4f9a9bf778f0 | [
"MIT"
] | null | null | null | bildb/lib/screens/initialization.mli | 2over12/cbat_tools | 8330495fadb062a8359921be031a4f9a9bf778f0 | [
"MIT"
] | null | null | null | (** Generates the UI screen that displays the initialization of BILDB. *)
open Bap_primus.Std
module Make : functor (Machine : Primus.Machine.S) -> sig
type event = Ui.Event (Machine).t
(** [show state] generates a screen that displays the initialization
data contained in [state] (see {!State.Data}). *)
... | 28.461538 | 73 | 0.694595 |
8a248d92e7642b7a567028eb932325ce2dc70a01 | 7,451 | ml | OCaml | giraf10/gi.ml | arkinjo/PDBjTk3 | 483730cb9d0784aeaa6922938abb316698dcf601 | [
"MIT"
] | null | null | null | giraf10/gi.ml | arkinjo/PDBjTk3 | 483730cb9d0784aeaa6922938abb316698dcf601 | [
"MIT"
] | null | null | null | giraf10/gi.ml | arkinjo/PDBjTk3 | 483730cb9d0784aeaa6922938abb316698dcf601 | [
"MIT"
] | null | null | null | open PDBjTk
open Printf
open Util
let debug = false
let nfetch = 2000
let default_max_score = 1000.0
let trefsets_table = "TRefsets"
type opt = {
search: itype list;
sub: string;
dcut: float;
min_score: float;
max_score: float;
nlimit: int;
random: bool;
pdbset: string list; (* limit... | 29.450593 | 87 | 0.628238 |
af52b3fc79a16948f4554c6c4acf9e2461fe1ae0 | 927 | ml | OCaml | tests/benchmarks_call/DOrder/first/seq-len1.ml | LinerSu/DART_IT | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 7 | 2020-06-12T09:32:16.000Z | 2020-10-05T09:04:07.000Z | tests/benchmarks_call/DOrder/first/seq-len1.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | null | null | null | tests/benchmarks_call/DOrder/first/seq-len1.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 2 | 2021-04-05T12:25:11.000Z | 2021-05-14T09:31:24.000Z |
let rec loopa ai ak an =
if ai < an then loopa (ai+1) (ak+1) an
else ak
let rec loopb bi bk bn =
if bi < bn then loopb (bi+1) (bk - 1) bn
else bk
let rec loopc ci ck cn =
if ci < cn then (assert (ck > 0); loopc (ci+1) (ck - 1) cn)
else true
let main_p (n0:int) (n1:int) (n2:int) =
if... | 23.769231 | 64 | 0.509169 |
af6e6e5d17e0be42087b01c0995dc4effa6f7b68 | 2,505 | ml | OCaml | examples/ocaml_light/hol/ocamlpp/parsing/parse.ml | Vertmo/ott | 29ac9ef84967686da35b9b42608b3aec3539a689 | [
"BSD-3-Clause"
] | 249 | 2016-10-28T13:59:43.000Z | 2022-03-30T00:50:59.000Z | examples/ocaml_light/hol/ocamlpp/parsing/parse.ml | Vertmo/ott | 29ac9ef84967686da35b9b42608b3aec3539a689 | [
"BSD-3-Clause"
] | 64 | 2017-05-29T11:50:11.000Z | 2022-03-08T11:14:20.000Z | examples/ocaml_light/hol/ocamlpp/parsing/parse.ml | Vertmo/ott | 29ac9ef84967686da35b9b42608b3aec3539a689 | [
"BSD-3-Clause"
] | 33 | 2016-11-02T18:11:00.000Z | 2022-01-03T14:43:06.000Z | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Xavier Ler... | 38.538462 | 76 | 0.555689 |
8a29f5c8406a2be121fd0ea337e399943f57b9b7 | 18,587 | ml | OCaml | data/derived/comb/progs/unify/prog5564.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/prog0678.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0678.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.608772 | 208 | 0.665519 |
8a38ed8d1569d6d33943e895e742a4b83fddf081 | 16,461 | ml | OCaml | ast.ml | paulfitz/haxe | 47d1fc32bdb2a6228732d0d496c017aac148f88c | [
"MIT"
] | 9 | 2015-02-28T01:29:56.000Z | 2021-05-06T19:43:31.000Z | ast.ml | paulfitz/haxe | 47d1fc32bdb2a6228732d0d496c017aac148f88c | [
"MIT"
] | 6 | 2015-05-01T04:39:04.000Z | 2018-12-14T01:55:44.000Z | ast.ml | paulfitz/haxe | 47d1fc32bdb2a6228732d0d496c017aac148f88c | [
"MIT"
] | 3 | 2016-01-03T19:22:21.000Z | 2019-12-22T12:12:00.000Z | (*
* Copyright (C)2005-2013 Haxe Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge,... | 21.977303 | 141 | 0.615637 |
8a0388cd8846eb6a40e8993b9694352635f7a9d3 | 37,599 | mli | OCaml | src/react.mli | besport/react | c4196e6ef53ef51313be8bd97af45c45068128ab | [
"CECILL-B"
] | 1 | 2019-03-12T17:51:51.000Z | 2019-03-12T17:51:51.000Z | src/react.mli | besport/react | c4196e6ef53ef51313be8bd97af45c45068128ab | [
"CECILL-B"
] | null | null | null | src/react.mli | besport/react | c4196e6ef53ef51313be8bd97af45c45068128ab | [
"CECILL-B"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2009-2012 Daniel C. Bünzli. All rights reserved.
Distributed under a BSD3 license, see license at the end of the file.
react release 0.9.4
---------------------------------------------------------------------------*)
... | 41.002181 | 80 | 0.574244 |
f30cc2d0560543ee0b95a31491495c9b319b62fc | 24,288 | ml | OCaml | src/proto_112_Pt4FJEL6/lib_protocol/test/helpers/block.ml | Decentralized-Pictures/T4L3NT | 3a9265949d50d2e925b5d6b3df21f283211df6a2 | [
"MIT"
] | 3 | 2021-12-16T20:28:56.000Z | 2022-01-21T01:37:49.000Z | src/proto_112_Pt4FJEL6/lib_protocol/test/helpers/block.ml | Decentralized-Pictures/T4L3NT | 3a9265949d50d2e925b5d6b3df21f283211df6a2 | [
"MIT"
] | 5 | 2022-01-20T21:30:24.000Z | 2022-03-11T14:43:56.000Z | src/proto_112_Pt4FJEL6/lib_protocol/test/helpers/block.ml | Decentralized-Pictures/T4L3NT | 3a9265949d50d2e925b5d6b3df21f283211df6a2 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 35.665198 | 83 | 0.680377 |
af2c7aa76fe4e5b66197f6aacd54f90ea8972ed7 | 93 | mli | OCaml | roman.mli | johnwhitington/roman | 43c25358e9a749f46d424e3617599a924254c86d | [
"BSD-2-Clause"
] | 2 | 2021-04-14T16:46:17.000Z | 2021-04-14T17:59:39.000Z | roman.mli | johnwhitington/roman | 43c25358e9a749f46d424e3617599a924254c86d | [
"BSD-2-Clause"
] | null | null | null | roman.mli | johnwhitington/roman | 43c25358e9a749f46d424e3617599a924254c86d | [
"BSD-2-Clause"
] | null | null | null | (** Build a roman numeral string from an integer. *)
val roman_string_of_int : int -> string
| 31 | 52 | 0.731183 |
afb0a765020ced66b454ddaed3ad8a09cd916de0 | 1,807 | ml | OCaml | hphp/hack/src/naming/naming_heap.ml | ebernhardson/hiphop-php | c9c4855f07e947d703dc1eb414ec95100e7d63cb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/naming/naming_heap.ml | ebernhardson/hiphop-php | c9c4855f07e947d703dc1eb414ec95100e7d63cb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/naming/naming_heap.ml | ebernhardson/hiphop-php | c9c4855f07e947d703dc1eb414ec95100e7d63cb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
module Class... | 27.8 | 80 | 0.709463 |
8a07cf7ee162125f3dbbda9f560c3eb81b1a19dc | 14,691 | ml | OCaml | src/passes/15-self_mini_c/self_mini_c.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | src/passes/15-self_mini_c/self_mini_c.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | src/passes/15-self_mini_c/self_mini_c.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | module Errors = Errors
open Errors
open Mini_c
open Simple_utils.Trace
let eta_expand : expression -> type_expression -> type_expression -> anon_function =
fun e in_ty out_ty ->
let binder = Var.fresh () in
let var = e_var binder in_ty in
let app = e_application e out_ty var in
{ binder = binder ; bo... | 31.593548 | 177 | 0.628616 |
8a0254ff800e7ee3880822ed706ae1263b8a91ab | 180 | mli | OCaml | src/visibility.mli | mlasson/dune | 599b7873be67c9798f9fe87979e7fec3b3a6d78b | [
"MIT"
] | null | null | null | src/visibility.mli | mlasson/dune | 599b7873be67c9798f9fe87979e7fec3b3a6d78b | [
"MIT"
] | 2 | 2018-01-12T08:41:59.000Z | 2020-12-30T21:57:31.000Z | src/visibility.mli | mlasson/dune | 599b7873be67c9798f9fe87979e7fec3b3a6d78b | [
"MIT"
] | null | null | null | open! Stdune
type t = Public | Private
include Dune_lang.Conv with type t := t
val is_public : t -> bool
val is_private : t -> bool
val to_sexp : t -> Sexp.t
val pp : t Fmt.t
| 13.846154 | 39 | 0.661111 |
8a2f96fa50a729e0a786523b08b54cd2b3d9b1e4 | 6,878 | ml | OCaml | src/commands/statusCommands.ml | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"MIT"
] | 1 | 2021-03-12T10:46:28.000Z | 2021-03-12T10:46:28.000Z | src/commands/statusCommands.ml | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"MIT"
] | null | null | null | src/commands/statusCommands.ml | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"MIT"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open CommandInfo
open CommandUtils
(***********************************************************************)
(* flow status (report cur... | 34.39 | 116 | 0.625327 |
af58fc0ea328d173e363814733a5d3beabbfb7b7 | 296 | mli | OCaml | example/simple_editor/src/simple_editor.mli | janestreet/vcaml | bd4e55dec448a0a6da874d7f8f7f9584d0bd5a43 | [
"MIT"
] | 91 | 2019-12-03T15:01:18.000Z | 2022-02-07T22:00:18.000Z | example/simple_editor/src/simple_editor.mli | janestreet/vcaml | bd4e55dec448a0a6da874d7f8f7f9584d0bd5a43 | [
"MIT"
] | 1 | 2019-12-21T17:30:39.000Z | 2021-02-26T03:46:39.000Z | example/simple_editor/src/simple_editor.mli | janestreet/vcaml | bd4e55dec448a0a6da874d7f8f7f9584d0bd5a43 | [
"MIT"
] | 3 | 2019-12-14T17:29:53.000Z | 2021-12-21T06:25:56.000Z | open! Core
open Vcaml
module State : sig
type t =
{ buffer : Buffer.t
; window : Window.t
}
end
val main : Core.Command.t
module For_testing : sig
val create_plugin
: sequencer:unit Async.Sequencer.t
-> (module Vcaml_plugin.Persistent.S with type state = State.t)
end
| 16.444444 | 67 | 0.672297 |
f3c297512c65ff0f9b50c79c36a1140b5a47f7de | 705 | ml | OCaml | bench/gcd.ml | lsylvestre/dsml | 0f55c8acdc2b959d866610e51bc45db306898231 | [
"CECILL-B"
] | null | null | null | bench/gcd.ml | lsylvestre/dsml | 0f55c8acdc2b959d866610e51bc45db306898231 | [
"CECILL-B"
] | null | null | null | bench/gcd.ml | lsylvestre/dsml | 0f55c8acdc2b959d866610e51bc45db306898231 | [
"CECILL-B"
] | null | null | null | circuit fact_cc (n) =
let rec aux(a,n) =
if n < 1 then a
else aux(n*a,n-1)
in
aux(1,n)
circuit rec gcd_cc(a,b) =
if a < b then gcd_cc(a,b-a) else
if a > b then gcd_cc(a-b,b)
else a
;;;;
let rec gcd_ml a b =
if a < b then gcd a (b-a) else
if a > b then gcd (a-b) b
else ... | 17.195122 | 41 | 0.568794 |
af49b05c23f9fb0a314e5e65d477b966a53db832 | 785 | mli | OCaml | lib/preface_stdlib/writer.mli | Sir4ur0n/preface | fc3d9c340d034c960842d3cfec5a0488edc768e1 | [
"MIT"
] | null | null | null | lib/preface_stdlib/writer.mli | Sir4ur0n/preface | fc3d9c340d034c960842d3cfec5a0488edc768e1 | [
"MIT"
] | null | null | null | lib/preface_stdlib/writer.mli | Sir4ur0n/preface | fc3d9c340d034c960842d3cfec5a0488edc768e1 | [
"MIT"
] | null | null | null | (** A specialized version of a [Writer monad] with [Identity] as the inner
monad. Since [Preface.Make.Writer] is a Transformer, this module exposes the
classical Writer monad. *)
(** {1 Specialization giving a Monoid}
A [Writer Monad] is set up by the monoidal tape which be written. *)
module Over (Tape ... | 29.074074 | 80 | 0.671338 |
af02a14f3b2b31333ddae2831dc2b540c87f2c66 | 1,383 | ml | OCaml | hphp/hack/src/server/serverStatusSingleRemoteExecution.ml | the-storm/hhvm | 8c173160bb6b8e56277a04d00efe4c1a234b605c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverStatusSingleRemoteExecution.ml | the-storm/hhvm | 8c173160bb6b8e56277a04d00efe4c1a234b605c | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-04-19T09:53:42.000Z | 2021-04-19T09:53:42.000Z | hphp/hack/src/server/serverStatusSingleRemoteExecution.ml | isabella232/hhvm | 6345684c993c575db92cbe18cd739147bfa0296f | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Hh_json
let go file_name ctx =
let dep_edges = HashSet.create () in
let single_remote_execu... | 31.431818 | 76 | 0.712943 |
8a0d7d5551dcaaf9b13b288740c11b6bd26cad60 | 596 | ml | OCaml | tools/candump.ml | mwweissmann/ocaml-socketcan | 9794eda64f95ef3c9789bacbebeedb2e89f42b2f | [
"MIT"
] | 3 | 2017-03-01T01:35:37.000Z | 2018-11-20T18:02:50.000Z | tools/candump.ml | mwweissmann/ocaml-socketcan | 9794eda64f95ef3c9789bacbebeedb2e89f42b2f | [
"MIT"
] | null | null | null | tools/candump.ml | mwweissmann/ocaml-socketcan | 9794eda64f95ef3c9789bacbebeedb2e89f42b2f | [
"MIT"
] | null | null | null | let get_ok = function | Result.Ok x -> x | Result.Error _ -> failwith "oops"
let (>>|) a b = match a with | Result.Ok r -> Result.Ok (b r) | Result.Error _ as x -> x
let _ =
if Array.length Sys.argv != 2 then
Printf.printf "%s IFACE" Sys.argv.(0)
else
let socket = get_ok (Socketcan.Socket.create Sys.argv.... | 29.8 | 88 | 0.588926 |
afd9f6446ebb38d1d9363d14aa7180974ec41bd0 | 5,471 | ml | OCaml | test/test_sinsemilla.ml | dannywillems/ocaml-ec | 82bcddc87459a86d032549e75a9098ac7276de7c | [
"MIT"
] | 1 | 2022-02-01T11:14:20.000Z | 2022-02-01T11:14:20.000Z | test/test_sinsemilla.ml | dannywillems/ocaml-ec | 82bcddc87459a86d032549e75a9098ac7276de7c | [
"MIT"
] | null | null | null | test/test_sinsemilla.ml | dannywillems/ocaml-ec | 82bcddc87459a86d032549e75a9098ac7276de7c | [
"MIT"
] | null | null | null | open Mec.Curve
open Mec.Utils
let two_z = Z.succ Z.one
(* The test vectors have been generated from https://github.com/zcash/orchard,
b4a82211cee82ceb02d2e0e99b7566a967804a6c
The following rust code has been added in primitives/sinsemilla.rs:
```rust
#[test]
fn test_vectors() {
use crate::... | 24.101322 | 81 | 0.596052 |
f342f63b8d9f7f99e89d7bc3018c5fc2d8b59945 | 2,232 | ml | OCaml | ocaml/p0094.ml | kwj/project-euler | 8d12664f69a99725d475208273898b1aabe06fbf | [
"Unlicense"
] | null | null | null | ocaml/p0094.ml | kwj/project-euler | 8d12664f69a99725d475208273898b1aabe06fbf | [
"Unlicense"
] | null | null | null | ocaml/p0094.ml | kwj/project-euler | 8d12664f69a99725d475208273898b1aabe06fbf | [
"Unlicense"
] | null | null | null | (* Project Euler: Problem 94 *)
(*
a,a,b
--> 'b' must be even since area of triangle is integer.
Heron's formula: triangle area S =sqrt(s*(s-a)*(s-b)*(s-c)) [s=(a+b+c)/2, a/b/c are length of sides]
s = (a + a + b)/2 = (2a + b)/2
S = sqrt( (2a+b)/2 * b/2 * b/2 * (2a-b)/2 )
= sqrt( ... | 29.368421 | 108 | 0.390233 |
aff2ef61be8b856c708b29659ce26d2ae5222245 | 7,879 | ml | OCaml | src/watermarks.ml | rvantonder/dune | d9fcb622f6f497f5393b7003aa6613c8e5d74277 | [
"MIT"
] | 1 | 2018-09-14T10:47:11.000Z | 2018-09-14T10:47:11.000Z | src/watermarks.ml | nandor/shmap | 6a730de81a1e8568a61ac0f53af3aebabde8e58b | [
"MIT"
] | null | null | null | src/watermarks.ml | nandor/shmap | 6a730de81a1e8568a61ac0f53af3aebabde8e58b | [
"MIT"
] | null | null | null | open Import
open Fiber.O
let is_a_source_file fn =
match Filename.extension fn with
| ".flv"
| ".gif"
| ".ico"
| ".jpeg"
| ".jpg"
| ".mov"
| ".mp3"
| ".mp4"
| ".otf"
| ".pdf"
| ".png"
| ".ttf"
| ".woff" -> false
| _ -> true
let make_watermark_map ~name ~version ~commit =
let opam_file ... | 29.958175 | 84 | 0.528367 |
af156309d91caaddb75bcb977c046b3050b96864 | 526 | eliom | OCaml | UserAuth.eliom | Denommus/UserRegistration | 080bed61a309e691229cf7304c24cfb0b99ebb32 | [
"MIT"
] | null | null | null | UserAuth.eliom | Denommus/UserRegistration | 080bed61a309e691229cf7304c24cfb0b99ebb32 | [
"MIT"
] | null | null | null | UserAuth.eliom | Denommus/UserRegistration | 080bed61a309e691229cf7304c24cfb0b99ebb32 | [
"MIT"
] | null | null | null | [%%shared
open Eliom_lib
open Eliom_content
open Html5.D
]
module UserController = UserService.UserControllerFunctor(UserModel)
open UserController
open UserService
module UserAuth_app =
Eliom_registration.App (
struct
let application_name = "UserAuth"
end)
let () =
UserAuth_app.register
~service:ind... | 19.481481 | 68 | 0.787072 |
8a1d6d9fab394cc3264b5b502f888a8e28516b53 | 4,694 | mli | OCaml | src/dataframe/column.mli | LaurentMazare/ocaml-dataframe | 89bd3cb4035db505ac516303b04f4de7ffdff0be | [
"Apache-2.0"
] | 22 | 2019-06-09T20:28:23.000Z | 2021-09-08T04:52:26.000Z | src/dataframe/column.mli | vbmithr/ocaml-dataframe | 89bd3cb4035db505ac516303b04f4de7ffdff0be | [
"Apache-2.0"
] | 1 | 2020-12-12T00:45:11.000Z | 2020-12-12T00:45:11.000Z | src/dataframe/column.mli | vbmithr/ocaml-dataframe | 89bd3cb4035db505ac516303b04f4de7ffdff0be | [
"Apache-2.0"
] | 4 | 2019-07-06T16:58:13.000Z | 2020-10-22T09:51:18.000Z | (** [('elt, 'storage) t] represents a column which elements have typed
['elt] and the whole data is stored using type ['storage].
*)
type ('elt, 'storage) t
(** {3 Column Creation} *)
(** [create array_intf elt ~len] creates a new column of length [len]
using the storage described in [Array_intf]. All the ele... | 35.293233 | 80 | 0.642522 |
d2e13f067471e393836c23811f58d4f2db081ce3 | 11,792 | ml | OCaml | code/myth_folds/typecheck.ml | Miltnoid/HanoiArtifactEvaluation | dd76b55b0fcf62f66cd90a7f25a981c89ddcff88 | [
"MIT"
] | 2 | 2020-06-17T15:17:05.000Z | 2020-06-17T20:42:00.000Z | code/myth_folds/typecheck.ml | amiltner/HanoiArtifactEvaluation | dd76b55b0fcf62f66cd90a7f25a981c89ddcff88 | [
"MIT"
] | null | null | null | code/myth_folds/typecheck.ml | amiltner/HanoiArtifactEvaluation | dd76b55b0fcf62f66cd90a7f25a981c89ddcff88 | [
"MIT"
] | null | null | null | open Core
open Lang
open Pp
open Printf
open Sigma
open Gamma
exception Type_error of string
module type Typecheck_Sig = sig
val typecheck : prog -> Sigma.t * Gamma.t
val check_decls : Sigma.t -> Gamma.t -> decl list -> Sigma.t * Gamma.t
val check_exp : Sigma.t -> Gamma.t -> exp -> typ
end
module Typeche... | 46.608696 | 100 | 0.481852 |
8a092a6aefa670149a72bd980cdb9fa81d5787d1 | 8,216 | mli | OCaml | state.mli | connor15mcc/monopoly | e69d9a46201560ad71430d8f1af06e9d092ff189 | [
"MIT"
] | null | null | null | state.mli | connor15mcc/monopoly | e69d9a46201560ad71430d8f1af06e9d092ff189 | [
"MIT"
] | null | null | null | state.mli | connor15mcc/monopoly | e69d9a46201560ad71430d8f1af06e9d092ff189 | [
"MIT"
] | null | null | null | (** State keeps track of the game state of monopoly and provides
functions to update the attributes of this game state *)
(** [property] is a board type *)
type property = Board.property
(** The type of value that represents a card (either community chest or
chance) *)
type card
(* [game_state] represents th... | 39.311005 | 74 | 0.730526 |
afe6c598104b702cc40857537295d28c1abc195b | 6,586 | ml | OCaml | hphp/hack/src/providers/shallow_classes_provider.ml | xtaofb/hhvm | 5a5d2787039965fa12d36d30820a724a5c0f041d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/providers/shallow_classes_provider.ml | xtaofb/hhvm | 5a5d2787039965fa12d36d30820a724a5c0f041d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/providers/shallow_classes_provider.ml | xtaofb/hhvm | 5a5d2787039965fa12d36d30820a724a5c0f041d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Shallow_decl_defs
let err_not_found (file : Relative_path.t) (name : string) : 'a =
let err_str =
... | 42.490323 | 81 | 0.724871 |
af7c7c817a57a4425cd968652288b91553b30324 | 4,687 | ml | OCaml | hphp/hack/src/server/serverFindRefs.ml | escherlat/hhvm | 7814b9842f3d15876884e6e3b62f2d00821c1c17 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverFindRefs.ml | escherlat/hhvm | 7814b9842f3d15876884e6e3b62f2d00821c1c17 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverFindRefs.ml | escherlat/hhvm | 7814b9842f3d15876884e6e3b62f2d00821c1c17 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Core
ope... | 39.058333 | 80 | 0.740986 |
af230997b07137d16a3c7f54a788957ba41a3ac9 | 13,383 | ml | OCaml | src/ocaml-output/Microsoft_FStar_ToSMT_Z3.ml | srenatus/FStar | 66c9f2774601e48d4e1445a518b5e6882c5e0320 | [
"Apache-2.0"
] | 1 | 2021-06-24T15:18:33.000Z | 2021-06-24T15:18:33.000Z | src/ocaml-output/Microsoft_FStar_ToSMT_Z3.ml | srenatus/FStar | 66c9f2774601e48d4e1445a518b5e6882c5e0320 | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/Microsoft_FStar_ToSMT_Z3.ml | srenatus/FStar | 66c9f2774601e48d4e1445a518b5e6882c5e0320 | [
"Apache-2.0"
] | null | null | null |
type z3version =
| Z3V_Unknown
| Z3V of (int * int * int)
let z3v_compare = (fun known _423916 -> (match (_423916) with
| (w1, w2, w3) -> begin
(match (known) with
| Z3V_Unknown -> begin
None
end
| Z3V ((k1, k2, k3)) -> begin
Some (if (k1 <> w1) then begin
(w1 - k1)
end else begin
if (k2 <> w2) then begin
(w2 - k2)
e... | 30.554795 | 232 | 0.679818 |
afef690966d2bdbec5272a77a8fe8c88fdd3d6b8 | 2,219 | ml | OCaml | test/test_utils.ml | talex5/capnp-rpc | 058852ebc99d9886baf0170efa368f2278742747 | [
"Apache-2.0"
] | null | null | null | test/test_utils.ml | talex5/capnp-rpc | 058852ebc99d9886baf0170efa368f2278742747 | [
"Apache-2.0"
] | 1 | 2021-04-23T08:05:36.000Z | 2021-04-23T08:05:36.000Z | test/test_utils.ml | talex5/capnp-rpc | 058852ebc99d9886baf0170efa368f2278742747 | [
"Apache-2.0"
] | null | null | null | open Capnp_rpc
let pp_actor f = function
| `Client -> Fmt.(styled `Green (const string "client")) f ()
| `Server -> Fmt.(styled `Red (const string "server")) f ()
| `Unknown -> Fmt.(const string "------") f ()
let actor_tag = Logs.Tag.def "actor" pp_actor
let pp_qid f = function
| None -> ()
| Some x ->
... | 32.632353 | 98 | 0.648941 |
af4885018adb7d726b545466f331a05eb6361da7 | 1,804 | ml | OCaml | libraries/s3/lib/deleteObjectTagging.ml | tmattio/ocaml-aws | a49d92a03a9a618dab2dc924aed2b494f9b79ae5 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/deleteObjectTagging.ml | tmattio/ocaml-aws | a49d92a03a9a618dab2dc924aed2b494f9b79ae5 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/deleteObjectTagging.ml | tmattio/ocaml-aws | a49d92a03a9a618dab2dc924aed2b494f9b79ae5 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DeleteObjectTaggingRequest.t
type output = DeleteObjectTaggingOutput.t
type error = Errors_internal.t
let service = "s3"
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
... | 31.103448 | 99 | 0.574279 |
8a05c566533528a0d278eec2101d6531a80b5275 | 260 | mli | OCaml | libraries/ec2/lib/disassociateEnclaveCertificateIamRole.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/ec2/lib/disassociateEnclaveCertificateIamRole.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/ec2/lib/disassociateEnclaveCertificateIamRole.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 = DisassociateEnclaveCertificateIamRoleRequest.t
type output = DisassociateEnclaveCertificateIamRoleResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| 23.636364 | 85 | 0.807692 |
afae9c979d9b598faecd485b038f03f5ef21b7d4 | 1,284 | mli | OCaml | src/lib/fake_network/fake_network.mli | spaweb/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 2 | 2021-12-10T21:56:09.000Z | 2021-12-15T21:51:35.000Z | src/lib/fake_network/fake_network.mli | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | null | null | null | src/lib/fake_network/fake_network.mli | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | null | null | null | open Core
open Gadt_lib
(* There must be at least 2 peers to create a network *)
type 'n num_peers = 'n Peano.gt_1
type peer_state =
{ frontier : Transition_frontier.t
; consensus_local_state : Consensus.Data.Local_state.t
}
type peer_network =
{ peer : Network_peer.Peer.t
; state : peer_state
; network ... | 23.777778 | 65 | 0.712617 |
aff2e38722fd0ea1bb7a6fdd7a2496a343fbedf6 | 251 | ml | OCaml | tests/tool-ocaml/t060-raise.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | 1 | 2016-05-17T14:29:13.000Z | 2016-05-17T14:29:13.000Z | tests/tool-ocaml/t060-raise.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | tests/tool-ocaml/t060-raise.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | open Lib;;
raise End_of_file;;
(**
0 CONSTINT 42
2 PUSHACC0
3 MAKEBLOCK1 0
5 POP 1
7 SETGLOBAL Lib
9 GETGLOBAL End_of_file
11 MAKEBLOCK1 0
13 RAISE
14 SETGLOBAL T060-raise
16 STOP
**)
| 15.6875 | 30 | 0.557769 |
f359c41ad27a0d2a233e9576cf8fe869d3eebbae | 18,602 | ml | OCaml | data/derived/comb/progs/unify/prog4294.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/prog4294.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog4294.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.80776 | 208 | 0.662402 |
8a22266fb9dc9ad863d32a75a36b7acbe3eb91d6 | 115 | ml | OCaml | result/fixml/sigma/sub22/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/sigma/sub22/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/sigma/sub22/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | let rec sigma f a b =
if f a != f b then
let induction = f b in
induction + sigma f a (b - 1)
else f b
| 19.166667 | 33 | 0.556522 |
8a2797206526b08335bd61319eeea288c20496e1 | 2,038 | ml | OCaml | src/lib/coda_base/transaction_hash.ml | paul-schaaf/coda | 2292aed8e1b3c495e1e9ec2a956e07f6d4ab57ba | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/transaction_hash.ml | paul-schaaf/coda | 2292aed8e1b3c495e1e9ec2a956e07f6d4ab57ba | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/transaction_hash.ml | paul-schaaf/coda | 2292aed8e1b3c495e1e9ec2a956e07f6d4ab57ba | [
"Apache-2.0"
] | null | null | null | open Core_kernel
module T = struct
include Blake2.Make ()
end
include T
module Base58_check = Codable.Make_base58_check (struct
type t = Stable.Latest.t [@@deriving bin_io_unversioned, compare]
let version_byte = Base58_check.Version_bytes.transaction_hash
let description = "Transaction Hash"
end)
[%%defi... | 26.815789 | 78 | 0.707066 |
8a18ef4a6954db844f9ccfe6f1a9a0d95fefb53e | 856 | mli | OCaml | src/server/find_refs/findRefsUtils.mli | KevinGrandon/flow | 7360702fe9214cd30286a5362561953f21af4c1c | [
"MIT"
] | null | null | null | src/server/find_refs/findRefsUtils.mli | KevinGrandon/flow | 7360702fe9214cd30286a5362561953f21af4c1c | [
"MIT"
] | null | null | null | src/server/find_refs/findRefsUtils.mli | KevinGrandon/flow | 7360702fe9214cd30286a5362561953f21af4c1c | [
"MIT"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
val compute_docblock: File_key.t -> string (* content *) -> Docblock.t
val compute_ast_result:
File_key.t ->
string (* content *) -... | 25.939394 | 71 | 0.683411 |
af0bfa425eeeacefc2aed5ea21d538e9bf74040b | 48,148 | ml | OCaml | src/parser/estree_translator.ml | KevinGrandon/flow | 7360702fe9214cd30286a5362561953f21af4c1c | [
"MIT"
] | null | null | null | src/parser/estree_translator.ml | KevinGrandon/flow | 7360702fe9214cd30286a5362561953f21af4c1c | [
"MIT"
] | null | null | null | src/parser/estree_translator.ml | KevinGrandon/flow | 7360702fe9214cd30286a5362561953f21af4c1c | [
"MIT"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module type Config = sig
val include_locs: bool
val include_comments: bool
end
module Translate (Impl : Translator_intf.S) (Config... | 32.292421 | 90 | 0.619299 |
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.