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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44febb8ecd156e84bbebb5878640935e2a300223 | 55,497 | mly | OCaml | tests/jasmc.mly | vbgl/Obelisk | ab8ab94f1974caca8a164768634fa171cfe47503 | [
"MIT"
] | 39 | 2017-07-06T09:41:44.000Z | 2022-02-09T17:01:07.000Z | tests/jasmc.mly | vbgl/Obelisk | ab8ab94f1974caca8a164768634fa171cfe47503 | [
"MIT"
] | 12 | 2017-07-07T11:14:24.000Z | 2022-03-21T19:31:02.000Z | tests/jasmc.mly | Lelio-Brun/MenhirBrav | ab8ab94f1974caca8a164768634fa171cfe47503 | [
"MIT"
] | 4 | 2020-03-13T11:08:08.000Z | 2022-03-14T13:16:00.000Z | %{
open Javalib_pack
open Javalib
type switchcase =
| CaseIntWord of int * string
| CaseIntInt of int * int
type switchdefault =
| DefaultWord of string
| DefaultInt of int
type pcode =
| DCatchIII of JBasics.class_name * int * int * int
let unescape s =
Scanf.unescaped (String.s... | 37.523327 | 126 | 0.456799 |
bc40e96ec687483c77836c71a4e6aa5f83ce9a4b | 490 | ml | OCaml | test/import.ml | janestreet/pam | 602386a688255074affaee73434fa34fbd9d4ed2 | [
"MIT"
] | 3 | 2018-08-03T09:27:30.000Z | 2021-12-17T02:44:52.000Z | test/import.ml | janestreet/pam | 602386a688255074affaee73434fa34fbd9d4ed2 | [
"MIT"
] | null | null | null | test/import.ml | janestreet/pam | 602386a688255074affaee73434fa34fbd9d4ed2 | [
"MIT"
] | 2 | 2021-01-09T13:53:43.000Z | 2021-12-17T02:46:50.000Z | open! Core
open Pam
(* The service [other] comes with the recent [pam] package *)
let default_service = "other"
let default_user = "foo"
let with_pam ?(user = default_user) ?(service = default_service) ~f () =
let open Or_error.Let_syntax in
let conv _ = Error Pam_conv.Result.PAM_CONV_ERR in
let%bind t = pam_st... | 27.222222 | 79 | 0.689796 |
bc4ce3a762e331548c3647f185f70cc38361c299 | 799 | ml | OCaml | data/sp14/1844.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/1844.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/1844.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 -> [] | m -> helper (append [m / 10] [m mod 10]) in
helper n;;
(* fix
let rec digitsOfInt n =
let rec append xs1 xs2 =
match xs1 with | [] -> xs2 |... | 17.755556 | 72 | 0.515645 |
44d9d72b65f1167b303e103239d27422e28390cb | 4,385 | ml | OCaml | src/test1.ml | nopid/gnirut | 0450a48b4e1634b55e697b36439a8862c2c604e2 | [
"CECILL-B"
] | null | null | null | src/test1.ml | nopid/gnirut | 0450a48b4e1634b55e697b36439a8862c2c604e2 | [
"CECILL-B"
] | null | null | null | src/test1.ml | nopid/gnirut | 0450a48b4e1634b55e697b36439a8862c2c604e2 | [
"CECILL-B"
] | null | null | null | open Rtm
let info m =
Printf.printf "\n states: %i\n letters: %i\n\n" (states m) (letters m)
let gs m s =
try
sname m s
with Not_found -> Printf.sprintf "#%i" s
let runit m a s pos =
let sN = Array.length a in
let cur = ref pos
and s = ref (sint m s) in
let pr () =
for i = 0 to !cur-1 do
Printf.print... | 29.42953 | 113 | 0.535462 |
bc29f7bfd82e37e92bd7de4ade2074b61d9c055c | 8,088 | ml | OCaml | data/derived/comb/progs/unify/prog7109.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/prog2294.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2294.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... | 27.416949 | 148 | 0.652324 |
44f435ae717be94e42126688ca6b25ed0da63e29 | 566 | ml | OCaml | result/prog/lambda/sub75/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/prog/lambda/sub75/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/prog/lambda/sub75/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type lambda = V of var | P of var * lambda | C of lambda * lambda
and var = string
let rec check : lambda -> bool =
fun e ->
match e with
| V x -> false
| P (x, e1) -> (
match e1 with
| V y -> x = y
| P (y, e2) -> (
match e2 with
| C (e3, e4) ->
(check (P (x,... | 28.3 | 65 | 0.411661 |
bc46309497f936142a3334e0103f8a035d51be2d | 5,138 | ml | OCaml | src/proto_alpha/bin_tx_rollup_node/configuration.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_alpha/bin_tx_rollup_node/configuration.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_alpha/bin_tx_rollup_node/configuration.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2022 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 34.716216 | 80 | 0.580576 |
44fe0fef1705081bc108cc4b6a1b49bea97f6673 | 231 | mli | OCaml | src/hit_record.mli | CianLR/ocaml-raytracer | 015e4b5cdb39273fbcf5948c9877f287437deb5d | [
"MIT"
] | 1 | 2020-12-10T01:57:47.000Z | 2020-12-10T01:57:47.000Z | src/hit_record.mli | CianLR/ocaml-raytracer | 015e4b5cdb39273fbcf5948c9877f287437deb5d | [
"MIT"
] | null | null | null | src/hit_record.mli | CianLR/ocaml-raytracer | 015e4b5cdb39273fbcf5948c9877f287437deb5d | [
"MIT"
] | null | null | null |
type hit_record
val make : Ray.ray -> float -> Vector.vec3 -> Vector.vec3 -> hit_record
val t : hit_record -> float
val hit : hit_record -> Vector.vec3
val normal : hit_record -> Vector.vec3
val front_face : hit_record -> bool
| 21 | 71 | 0.705628 |
bc42301e60b42e40f6eda576a53b2133ea82352d | 10,587 | ml | OCaml | source/command/analyzeCommand.ml | ddainesefb/pyre-check | dedd67493f4334b6b5bf446260ed364b35b4a6aa | [
"MIT"
] | null | null | null | source/command/analyzeCommand.ml | ddainesefb/pyre-check | dedd67493f4334b6b5bf446260ed364b35b4a6aa | [
"MIT"
] | null | null | null | source/command/analyzeCommand.ml | ddainesefb/pyre-check | dedd67493f4334b6b5bf446260ed364b35b4a6aa | [
"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 Core
open Pyre
let get_analysis_kind = function
| "taint" -> TaintAnalysis.abstract_kind
| _ ->
Log.error "Invalid ... | 35.056291 | 100 | 0.62624 |
44b9bace59857988e8935336872851c721e18168 | 2,022 | ml | OCaml | src/console_solo5.ml | g2p/mirage-console-solo5 | f1a2cae5cd782074d5dfa0fdf6ec8592ce70c515 | [
"ISC"
] | null | null | null | src/console_solo5.ml | g2p/mirage-console-solo5 | f1a2cae5cd782074d5dfa0fdf6ec8592ce70c515 | [
"ISC"
] | null | null | null | src/console_solo5.ml | g2p/mirage-console-solo5 | f1a2cae5cd782074d5dfa0fdf6ec8592ce70c515 | [
"ISC"
] | null | null | null | (*
* Copyright (c) 2010-2013 Anil Madhavapeddy <anil@recoil.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS ... | 27.69863 | 75 | 0.71365 |
bc02b06c6da8b2cb77de1a3e109fa0b877bafd04 | 52,403 | ml | OCaml | src/jbuild.ml | Khady/dune | 9afd3d215759f65d52c74def6992b2771def3363 | [
"MIT"
] | null | null | null | src/jbuild.ml | Khady/dune | 9afd3d215759f65d52c74def6992b2771def3363 | [
"MIT"
] | null | null | null | src/jbuild.ml | Khady/dune | 9afd3d215759f65d52c74def6992b2771def3363 | [
"MIT"
] | null | null | null | open Import
open Stanza.Of_sexp
(* This file defines the jbuild types as well as the S-expression
syntax for the various supported version of the specification.
*)
(* Deprecated *)
module Jbuild_version = struct
type t =
| V1
let t =
enum
[ "1", V1
]
end
let invalid_module_name ~loc =
o... | 28.856278 | 86 | 0.540313 |
bc448f2ab975900de790fed58211caa007bb124d | 6,756 | ml | OCaml | hphp/hack/src/typing/tast_check/switch_check.ml | fengjixuchui/hhvm | f66a8093d3a0cb2b0ffb74ed6b80da678da0ad75 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/switch_check.ml | fengjixuchui/hhvm | f66a8093d3a0cb2b0ffb74ed6b80da678da0ad75 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/switch_check.ml | fengjixuchui/hhvm | f66a8093d3a0cb2b0ffb74ed6b80da678da0ad75 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-11-09T08:56:11.000Z | 2020-11-09T08:56:11.000Z | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Aast
open Typing_defs
open Utils
module Env = Tast_env
module Cls = Decl_provider.Class
module ... | 34.294416 | 81 | 0.65675 |
bc09c8e86b2261f3475347f3da128baa30c70b51 | 3,813 | ml | OCaml | src/program/global.ml | kupl/sparrow_ku | b4074e1b4567e54e2347cf8da0e47efe50160923 | [
"BSD-3-Clause"
] | 1 | 2019-04-29T08:52:46.000Z | 2019-04-29T08:52:46.000Z | src/program/global.ml | kupl/sparrow_ku | b4074e1b4567e54e2347cf8da0e47efe50160923 | [
"BSD-3-Clause"
] | null | null | null | src/program/global.ml | kupl/sparrow_ku | b4074e1b4567e54e2347cf8da0e47efe50160923 | [
"BSD-3-Clause"
] | 2 | 2018-03-20T09:53:25.000Z | 2022-02-04T06:44:31.000Z | (***********************************************************************)
(* *)
(* Copyright (c) 2007-present. *)
(* Programming Research Laboratory (ROPAS), Seoul National University. *)
(* All rights reserved. ... | 39.309278 | 113 | 0.623918 |
8a2c0593b2b760c24c74b0fd5d0d2c8571bac235 | 15,015 | ml | OCaml | src/graph.ml | mlasson/landmarks | fe1849b98ac0723e31354f436961b2b4410f04c9 | [
"MIT"
] | 94 | 2016-07-08T12:10:39.000Z | 2021-11-29T21:14:48.000Z | src/graph.ml | mlasson/landmarks | fe1849b98ac0723e31354f436961b2b4410f04c9 | [
"MIT"
] | 29 | 2016-07-11T15:13:41.000Z | 2022-03-10T08:59:36.000Z | src/graph.ml | mlasson/landmarks | fe1849b98ac0723e31354f436961b2b4410f04c9 | [
"MIT"
] | 15 | 2016-07-12T08:40:39.000Z | 2022-03-08T09:54:13.000Z | (* This file is released under the terms of an MIT-like license. *)
(* See the attached LICENSE file. *)
(* Copyright 2016 by LexiFi. *)
open Misc
type id = int
type kind = Normal | Root | Counter | Sampler
let string_of_kind = function
... | 32.927632 | 196 | 0.595005 |
8afc61db3f7a9f6f79868530c97f85d1df16044d | 4,356 | ml | OCaml | src/terms/invs.ml | daniel-larraz/kind2 | 168918803d5f834676c1d328573ee32b2bedee6e | [
"Apache-2.0"
] | 62 | 2015-02-04T17:49:51.000Z | 2022-03-19T21:52:06.000Z | src/terms/invs.ml | daniel-larraz/kind2 | 168918803d5f834676c1d328573ee32b2bedee6e | [
"Apache-2.0"
] | 110 | 2015-01-20T14:26:17.000Z | 2022-03-22T02:25:49.000Z | src/terms/invs.ml | daniel-larraz/kind2 | 168918803d5f834676c1d328573ee32b2bedee6e | [
"Apache-2.0"
] | 25 | 2017-02-20T21:13:55.000Z | 2021-07-20T19:46:09.000Z | (* This file is part of the Kind 2 model checker.
Copyright (c) 2015 by the Board of Trustees of the University of Iowa
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.a... | 26.4 | 79 | 0.635445 |
4429f254da06cf05e4e40ec9e4053bb76450a073 | 1,539 | mli | OCaml | src/lib/datastructures/AdjGraph.mli | nickgian/ProbNV | 60091faf43135a5e3ff431c7b20ea4b8b9f0b965 | [
"MIT"
] | null | null | null | src/lib/datastructures/AdjGraph.mli | nickgian/ProbNV | 60091faf43135a5e3ff431c7b20ea4b8b9f0b965 | [
"MIT"
] | 1 | 2021-05-05T21:33:27.000Z | 2021-06-10T00:16:40.000Z | src/lib/datastructures/AdjGraph.mli | nickgian/ProbNV | 60091faf43135a5e3ff431c7b20ea4b8b9f0b965 | [
"MIT"
] | null | null | null | open ProbNv_utils.PrimitiveCollections
module Vertex :
sig
type t = int (* Really should be Syntax.node, but that causes a dependency loop *)
val to_string : t -> string
val compare : t -> t -> int
val equal : t -> t -> bool
val hash : t -> int
end
(* graph *)
include module type of Graph.Persistent.Digrap... | 28.5 | 88 | 0.682261 |
bc4f688459e1a70eab1910576cbfdcdbad566d01 | 7,480 | ml | OCaml | infer/src/IR/Io_infer.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 4 | 2021-11-19T02:07:46.000Z | 2022-03-24T06:03:50.000Z | infer/src/IR/Io_infer.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 1 | 2021-04-05T15:19:58.000Z | 2021-12-16T04:22:26.000Z | infer/src/IR/Io_infer.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 to handle IO. Includes html and xml modules. *)
module F = Format
(* ... | 34.62963 | 324 | 0.657754 |
bc486d940e33109806b0f50bc5e9b498b70157c0 | 5,096 | mli | OCaml | src/base/maths/owl_base_maths.mli | gbaydin/owl | 2cd67547543cd7fdd54bbbfbf5a094e0c92ef399 | [
"MIT"
] | null | null | null | src/base/maths/owl_base_maths.mli | gbaydin/owl | 2cd67547543cd7fdd54bbbfbf5a094e0c92ef399 | [
"MIT"
] | null | null | null | src/base/maths/owl_base_maths.mli | gbaydin/owl | 2cd67547543cd7fdd54bbbfbf5a094e0c92ef399 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
(** Maths: fundamental and advanced mathematical functions. *)
(** {6 Basic functions} *)
val add : float -> float -> float
(** ``add x y`` *)
val sub : float -> float -> float
(** ``sub x y`` ... | 19.675676 | 86 | 0.5469 |
44d5808ff74cc009b94cdb3964af5532d357f3d4 | 26,955 | ml | OCaml | jpndrill/UI.ml | haoxuany/jpndrill | 4445d807dfc3cb1b34110fa84dfd4abf2a15c7d1 | [
"Apache-2.0"
] | 2 | 2021-10-04T06:14:34.000Z | 2021-11-09T04:20:03.000Z | jpndrill/UI.ml | haoxuany/jpndrill | 4445d807dfc3cb1b34110fa84dfd4abf2a15c7d1 | [
"Apache-2.0"
] | null | null | null | jpndrill/UI.ml | haoxuany/jpndrill | 4445d807dfc3cb1b34110fa84dfd4abf2a15c7d1 | [
"Apache-2.0"
] | null | null | null | open Batteries;;
module P = Preferences
module Dictionary = Internal.Dictionary
(* image display *)
(* class img ~packing = *)
(* let vbox = GPack.vbox ~packing () in *)
(* let area = GMisc.drawing_area ~packing:vbox#add () in *)
(* let pixbuf = ref None in *)
(* let redraw cairo = *)
(* begin *)
(* ... | 33.651685 | 113 | 0.59859 |
bc16a78dfd32b0c52a5437cb6208052310ab67ba | 2,985 | ml | OCaml | tests/node_tests.ml | ruhatch/mirage-btrees | 902decc6948f49034c87b5b20270a2d686476aea | [
"MIT"
] | 11 | 2016-02-27T10:45:17.000Z | 2020-11-23T10:02:45.000Z | tests/node_tests.ml | ruhatch/mirage-btrees | 902decc6948f49034c87b5b20270a2d686476aea | [
"MIT"
] | null | null | null | tests/node_tests.ml | ruhatch/mirage-btrees | 902decc6948f49034c87b5b20270a2d686476aea | [
"MIT"
] | 2 | 2016-07-13T10:51:04.000Z | 2020-11-23T00:01:47.000Z | open Core_kernel.Std
open Alcotest
open Testable
open Generators
open Node
let node_tests =
[
"NodeCreate_512_MinDegree14", `Quick,
(fun () ->
let node = Node.create 512 in
check int "" 14 (Node.minDegree node));
"NodeCreate_512_NoKeys0", `Quick,
(fun () ->
let node = Node.create 51... | 35.117647 | 76 | 0.549414 |
bc067f3691f462165bec06fe9ef77f9ef870ec27 | 13,622 | ml | OCaml | plugin/test/dataClassTest.ml | jerryliu55/pyre-check | ca779758cda4468c95dc2cd84f97a896bb983e3c | [
"MIT"
] | 3 | 2019-03-29T22:32:12.000Z | 2019-04-16T08:54:57.000Z | plugin/test/dataClassTest.ml | jerryliu55/pyre-check | ca779758cda4468c95dc2cd84f97a896bb983e3c | [
"MIT"
] | null | null | null | plugin/test/dataClassTest.ml | jerryliu55/pyre-check | ca779758cda4468c95dc2cd84f97a896bb983e3c | [
"MIT"
] | null | null | null | (** Copyright (c) 2016-present, Facebook, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree. *)
open Core
open OUnit2
let test_transform_environment _ =
PluginTest.assert_environment_contains
{|
@dataclass
class Foo:... | 20.577039 | 107 | 0.422992 |
afe0ff71a93695b4bd7f3fa22cff92bb4d0affe4 | 3,345 | ml | OCaml | src/stubs/flowEventLogger.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | null | null | null | src/stubs/flowEventLogger.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | null | null | null | src/stubs/flowEventLogger.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
type logging_context = { from: string option }
type persistent_context = {
start_lsp_state: string option;
start_lsp_state_re... | 33.45 | 96 | 0.768909 |
449fdfcdca23068d3a6f3f0da322a80edbbc0f4b | 32,538 | ml | OCaml | src/async_ecaml.ml | janestreet/ecaml | da88f7ddde41838f6ad0ef90c85d81fbfb1526c3 | [
"MIT"
] | 245 | 2016-08-29T14:21:13.000Z | 2022-03-12T04:08:52.000Z | src/async_ecaml.ml | janestreet/ecaml | da88f7ddde41838f6ad0ef90c85d81fbfb1526c3 | [
"MIT"
] | 13 | 2016-08-29T14:55:35.000Z | 2021-07-30T04:25:32.000Z | src/async_ecaml.ml | janestreet/ecaml | da88f7ddde41838f6ad0ef90c85d81fbfb1526c3 | [
"MIT"
] | 13 | 2016-08-30T00:53:52.000Z | 2021-12-17T02:51:25.000Z | (* This module adds support for running Async code in Ecaml.
We change the way the scheduler works. The Async scheduler runs in its own thread, but
all Async cycles now run within the main emacs thread. When the scheduler would run a
cycle, it instead sends a packet to a socket that the emacs main thread li... | 35.993363 | 92 | 0.649702 |
8aed9618e310fedf112414bb2293f8e2379d3755 | 167 | ml | OCaml | src/lib/format/flambda2_1_0_0/report.ml | Gbury/ocir | a350ff9cadcf58dd4e5e6e3c460bc39db181e5c6 | [
"RSA-MD"
] | null | null | null | src/lib/format/flambda2_1_0_0/report.ml | Gbury/ocir | a350ff9cadcf58dd4e5e6e3c460bc39db181e5c6 | [
"RSA-MD"
] | null | null | null | src/lib/format/flambda2_1_0_0/report.ml | Gbury/ocir | a350ff9cadcf58dd4e5e6e3c460bc39db181e5c6 | [
"RSA-MD"
] | null | null | null |
(** Alias to provide a uniform interface across inlining report formats *)
type t = [ | Inlining_report.report ][@@deriving yojson]
let conv = Inlining_report.conv
| 23.857143 | 74 | 0.742515 |
bc2617ac5a3cf50ac60fbd9134926eef0aaef004 | 3,618 | ml | OCaml | src/ocaml-3.12.0/typing/datarepr.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/typing/datarepr.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/typing/datarepr.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Xavier Ler... | 36.918367 | 75 | 0.527087 |
44d7c342ea21149317840ad8551553135a5a542a | 5,461 | ml | OCaml | src/bin_tps_evaluation/gas.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/bin_tps_evaluation/gas.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/bin_tps_evaluation/gas.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 42.007692 | 80 | 0.595862 |
44b740d1d3733e6f143686fb1c0d8777b4889c9e | 104 | ml | OCaml | tests/task-3/floating_test.ml | E-Sh4rk/FuncProg | c35546ce64378054531b5e0ec5e19c6e08c8d70c | [
"Apache-2.0"
] | 1 | 2019-06-03T13:57:43.000Z | 2019-06-03T13:57:43.000Z | tests/task-3/floating_test.ml | youqad/Compiling-to-Categories_Automatic_Differentiation_Project | ee017bc90a412182017246728c78c4b8e3e7ca6d | [
"Apache-2.0"
] | null | null | null | tests/task-3/floating_test.ml | youqad/Compiling-to-Categories_Automatic_Differentiation_Project | ee017bc90a412182017246728c78c4b8e3e7ca6d | [
"Apache-2.0"
] | null | null | null | include Floating.Make (Category.FloatLambdaCat)
let tests =
assert (cossin 0.5 = cos 0.5 *. sin 0.5)
| 20.8 | 47 | 0.701923 |
8a7e25def769f8b76a711af28ff9ce8c215bec38 | 30,054 | ml | OCaml | src/irmin-unix/cli.ml | zshipko/irmin | 733df281a9e56c4e7e7dc5efa92d86abcfc3a012 | [
"0BSD"
] | null | null | null | src/irmin-unix/cli.ml | zshipko/irmin | 733df281a9e56c4e7e7dc5efa92d86abcfc3a012 | [
"0BSD"
] | 2 | 2020-09-24T07:16:37.000Z | 2021-01-07T18:03:13.000Z | src/irmin-unix/cli.ml | zshipko/irmin | 733df281a9e56c4e7e7dc5efa92d86abcfc3a012 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-2021 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 31.371608 | 81 | 0.494643 |
bc232fb2e830ee87d32da6ee0737ebfaf5fd7d6d | 1,126 | ml | OCaml | infer/src/absint/AnalysisCallbacks.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | 4 | 2020-06-16T14:40:24.000Z | 2021-07-28T18:02:26.000Z | infer/src/absint/AnalysisCallbacks.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | 25 | 2021-02-08T13:49:24.000Z | 2022-02-28T03:34:19.000Z | infer/src/absint/AnalysisCallbacks.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | 1 | 2021-01-29T07:48:02.000Z | 2021-01-29T07:48:02.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module L = Logging
type callbacks =
{ get_proc_desc_f: Procname.t -> Procdesc.t option
; html_debug_new_node_sessio... | 30.432432 | 94 | 0.725577 |
bc1726730ba9a8b99bb04f57c328719b2ff7c70f | 4,884 | ml | OCaml | vendors/index/src/search.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | vendors/index/src/search.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | vendors/index/src/search.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | (* The MIT License
Copyright (c) 2019 Craig Ferguson <craig@tarides.com>
Thomas Gazagnaire <thomas@tarides.com>
Ioana Cristescu <ioana@tarides.com>
Clément Pascutto <clement@tarides.com>
Permission is hereby granted, free of charge, to any person obtaining a co... | 30.716981 | 77 | 0.627764 |
448bcd2d61058686a14891641925595aa89a7da6 | 9,368 | ml | OCaml | src/proto_005_PsBabyM1/lib_client/protocol_client_context.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | 3 | 2021-12-16T20:28:56.000Z | 2022-01-21T01:37:49.000Z | src/proto_005_PsBabyM1/lib_client/protocol_client_context.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | 5 | 2022-01-20T21:30:24.000Z | 2022-03-11T14:43:56.000Z | src/proto_005_PsBabyM1/lib_client/protocol_client_context.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | 1 | 2021-07-19T07:00:37.000Z | 2021-07-19T07:00:37.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 37.174603 | 82 | 0.614112 |
44e709dad0357366d4ca398b41e0e767915e55d3 | 21 | mli | OCaml | test/blackbox-tests/test-cases/c-stubs.t/q/q.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | test/blackbox-tests/test-cases/c-stubs.t/q/q.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | test/blackbox-tests/test-cases/c-stubs.t/q/q.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z |
val q : unit -> int
| 7 | 19 | 0.52381 |
4456d5356b7ab6ecfe93911f17ffe976808c208f | 2,826 | mli | OCaml | ast_mapper_class.mli | xclerc/ppx_tools | ffd20a77d7c103aee70f09c58c95ba25b52610f8 | [
"MIT"
] | null | null | null | ast_mapper_class.mli | xclerc/ppx_tools | ffd20a77d7c103aee70f09c58c95ba25b52610f8 | [
"MIT"
] | null | null | null | ast_mapper_class.mli | xclerc/ppx_tools | ffd20a77d7c103aee70f09c58c95ba25b52610f8 | [
"MIT"
] | 1 | 2019-06-17T16:09:16.000Z | 2019-06-17T16:09:16.000Z | (* This file is part of the ppx_tools package. It is released *)
(* under the terms of the MIT license (see LICENSE file). *)
(* Copyright 2013 Alain Frisch and LexiFi *)
(** Class-based customizable mapper *)
open Parsetree
class mapper:
object
method attribute: attribute -> a... | 49.578947 | 86 | 0.772116 |
bc4bfa0fd3dd70b2518a0666c727390736845491 | 11,639 | ml | OCaml | duniverse/0install/src/zeroinstall/stores.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/0install/src/zeroinstall/stores.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/0install/src/zeroinstall/stores.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.
*)
(** Managing cached implementations *)
open General
open Support
open Support.Common
module Q = Support.Qdom
module U = Support.Utils
type stores = string list
type available_digests = (string, filepath) Hash... | 39.996564 | 129 | 0.658905 |
bc2c95a3bf8207541daf0a980c75280335ac8283 | 6,734 | ml | OCaml | ch5/primes.ml | bikashckarmokar/cpbook-code | bd12bed74b81eb08c303f89d8962188013ac7cc2 | [
"UPL-1.0"
] | 1,441 | 2018-12-03T23:46:17.000Z | 2022-03-29T06:36:43.000Z | ch5/primes.ml | bikashckarmokar/cpbook-code | bd12bed74b81eb08c303f89d8962188013ac7cc2 | [
"UPL-1.0"
] | 53 | 2018-12-11T13:50:35.000Z | 2022-03-20T04:30:39.000Z | ch5/primes.ml | bikashckarmokar/cpbook-code | bd12bed74b81eb08c303f89d8962188013ac7cc2 | [
"UPL-1.0"
] | 420 | 2018-12-04T11:22:08.000Z | 2022-03-27T15:25:33.000Z | open Printf
open Int64
let _sieve_size = ref 0
let bs = Array.make 10000010 true
let rec mark_sieve start step =
if start < !_sieve_size
then begin
bs.(start) <- false;
mark_sieve (start+step) step
end
(* returns a list of primes *)
let sieve upperbound =
_sieve_size := upperbound + 1;
let rec help... | 32.375 | 128 | 0.586427 |
bc1e0e6f23907e9ac2af82c8defb7f45cf724be8 | 50 | ml | OCaml | nylas_json.ml | esperco/esper-nylas-api | e962e83319e3ed414cc9fa16355bd280e3dfe262 | [
"BSD-3-Clause"
] | 3 | 2017-08-15T18:56:05.000Z | 2018-08-28T21:10:01.000Z | nylas_json.ml | esperco/esper-nylas-api | e962e83319e3ed414cc9fa16355bd280e3dfe262 | [
"BSD-3-Clause"
] | null | null | null | nylas_json.ml | esperco/esper-nylas-api | e962e83319e3ed414cc9fa16355bd280e3dfe262 | [
"BSD-3-Clause"
] | null | null | null | include Yojson.Safe
let validate_json _ _ = None
| 12.5 | 28 | 0.78 |
449778ed40e95f3d8ee5bc9b46f8a8a1ec55b204 | 9,523 | ml | OCaml | src/b00/kit/b00_os.ml | shonfeder/b0 | ec12b4fbbed6efb99dba5f8f69ecfa03cc2f9478 | [
"ISC"
] | 1 | 2022-02-19T04:46:23.000Z | 2022-02-19T04:46:23.000Z | src/b00/kit/b00_os.ml | shonfeder/b0 | ec12b4fbbed6efb99dba5f8f69ecfa03cc2f9478 | [
"ISC"
] | null | null | null | src/b00/kit/b00_os.ml | shonfeder/b0 | ec12b4fbbed6efb99dba5f8f69ecfa03cc2f9478 | [
"ISC"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2020 The b0 programmers. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
---------------------------------------------------------------------------*)
open B00_std
open B00_std.... | 34.132616 | 80 | 0.607897 |
bc0db47b76cc30f7a1e9714198e60ff28d6ddd44 | 48 | mli | OCaml | examples/bonsai_guide_code/vdom_examples.mli | prekel/bonsai | f346dcc20ae088d5562aa1821e6b0ea64da59dcf | [
"MIT"
] | 172 | 2019-11-18T13:19:13.000Z | 2022-03-13T00:50:07.000Z | examples/bonsai_guide_code/vdom_examples.mli | prekel/bonsai | f346dcc20ae088d5562aa1821e6b0ea64da59dcf | [
"MIT"
] | 17 | 2019-11-21T19:01:59.000Z | 2022-01-25T14:38:29.000Z | examples/bonsai_guide_code/vdom_examples.mli | prekel/bonsai | f346dcc20ae088d5562aa1821e6b0ea64da59dcf | [
"MIT"
] | 22 | 2020-01-19T02:54:15.000Z | 2022-03-01T14:50:29.000Z | (* this module is used only for side-effects *)
| 24 | 47 | 0.708333 |
8a4dfc36299c9794d8120908516e817652e028ce | 9,992 | ml | OCaml | cil/src/ext/liveness.ml | westwind2013/compi-z3.2.0 | c1f7fdb24ef1fe62a1a4f44fadd9439051795c7d | [
"BSD-2-Clause"
] | 139 | 2015-01-06T09:41:51.000Z | 2022-03-29T06:43:59.000Z | cil/src/ext/liveness.ml | westwind2013/compi-z3.2.0 | c1f7fdb24ef1fe62a1a4f44fadd9439051795c7d | [
"BSD-2-Clause"
] | 17 | 2015-01-29T17:09:04.000Z | 2020-10-14T14:23:35.000Z | cil/src/ext/liveness.ml | westwind2013/compi-z3.2.0 | c1f7fdb24ef1fe62a1a4f44fadd9439051795c7d | [
"BSD-2-Clause"
] | 54 | 2015-02-24T05:00:20.000Z | 2022-03-23T07:05:18.000Z |
(* Calculate which variables are live at
* each statememnt.
*
*
*
*)
open Cil
open Pretty
module DF = Dataflow
module UD = Usedef
module IH = Inthash
module E = Errormsg
let debug = ref false
(*
* When ignore_inst returns true, then
* the instruction in question has no
* effects on the abstract state.
* W... | 28.795389 | 92 | 0.593074 |
447ff5aaf0af0c889ae442554649918283de7d6f | 643 | ml | OCaml | vendor/flow/flow_parser_dot_js.ml | idkjs/rebind | 1881bafe89d07a1382836af7f424665ff36fb108 | [
"MIT"
] | 92 | 2018-05-12T13:28:45.000Z | 2021-05-25T17:23:12.000Z | vendor/flow/flow_parser_dot_js.ml | idkjs/rebind | 1881bafe89d07a1382836af7f424665ff36fb108 | [
"MIT"
] | 4 | 2018-05-13T07:55:55.000Z | 2021-05-21T23:42:40.000Z | vendor/flow/flow_parser_dot_js.ml | idkjs/rebind | 1881bafe89d07a1382836af7f424665ff36fb108 | [
"MIT"
] | 1 | 2021-01-10T13:00:28.000Z | 2021-01-10T13:00:28.000Z | (* (**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
le... | 32.15 | 81 | 0.698289 |
bc516dbd453fcc5ab2f0c6e9d5f9d3401022d0a9 | 913 | ml | OCaml | libraries/ec2/lib/attachInternetGateway.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/attachInternetGateway.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/attachInternetGateway.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = AttachInternetGatewayRequest.t
type output = unit
type error = Errors_internal.t
let service = "ec2"
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
[ ... | 24.026316 | 80 | 0.634173 |
bc44a2329a2197862f9650ba8c2387613b907438 | 513 | ml | OCaml | test/deps.ml | pqwy/unmark | b0cc8f002df3b9d8ae3f292e12607cd9000530dd | [
"0BSD"
] | 19 | 2019-03-01T16:39:11.000Z | 2021-11-04T10:04:47.000Z | test/deps.ml | pqwy/unmark | b0cc8f002df3b9d8ae3f292e12607cd9000530dd | [
"0BSD"
] | null | null | null | test/deps.ml | pqwy/unmark | b0cc8f002df3b9d8ae3f292e12607cd9000530dd | [
"0BSD"
] | null | null | null | (* Copyright (c) 2018 David Kaloper Meršinjak. All rights reserved.
See LICENSE.md *)
open Unmark
let rec fib = function 0 -> 0 | 1 -> 1 | n -> fib (n - 2) + fib (n - 1)
let rec (--) a b = if a <= b then a :: succ a -- b else []
let n = Attr.key ~name:"n" Fmt.int
let arg = Cmdliner.Arg.(
value @@ opt int 5 @@ ... | 27 | 71 | 0.557505 |
bc0f55138765c31211f4b8b0c62caca837ed1bb7 | 2,465 | ml | OCaml | src/ic-tester/models/model_74189.ml | tiash/gpio-hat | 6ad0c7a3ead416d47b4ff6d80c53813be4718d36 | [
"MIT"
] | 1 | 2020-05-07T19:10:33.000Z | 2020-05-07T19:10:33.000Z | src/ic-tester/models/model_74189.ml | tiash/gpio-hat | 6ad0c7a3ead416d47b4ff6d80c53813be4718d36 | [
"MIT"
] | null | null | null | src/ic-tester/models/model_74189.ml | tiash/gpio-hat | 6ad0c7a3ead416d47b4ff6d80c53813be4718d36 | [
"MIT"
] | null | null | null | open Core
open Ic_tester
open Seventy_four_series
let model =
Model.create "74189" ~summary:"64-bit random access memory" ~description:""
(let%map_open.Dip16 addr =
all [ input "A_3" 13; input "A_2" 14; input "A_1" 15; input "A_0" 1 ]
>>| Util.uint
and data =
all [ input "D_3" 12; input... | 37.348485 | 104 | 0.525761 |
bc59b802fafe1f5e4ea4222d1ed49b8123ac75be | 4,927 | ml | OCaml | data/fa15/1887.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/1887.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/1887.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr
| Power of expr* expr
| TowerInv of expr* expr* expr;;
let pi = 4.0 *. (atan 1.0);;
let rec eval (e,x,y) =
match e with
| VarX -> x
| VarY -> y
| Sine... | 18.522556 | 78 | 0.466816 |
8a5d8099b785385534235e3a5f77e20fb35043b9 | 10,548 | mli | OCaml | src/ocaml/typing/411/btype.mli | brianhempel/merlin | 14325f26fc7ffa4a3e8adaa70d405c9d5f31b2a6 | [
"MIT"
] | null | null | null | src/ocaml/typing/411/btype.mli | brianhempel/merlin | 14325f26fc7ffa4a3e8adaa70d405c9d5f31b2a6 | [
"MIT"
] | null | null | null | src/ocaml/typing/411/btype.mli | brianhempel/merlin | 14325f26fc7ffa4a3e8adaa70d405c9d5f31b2a6 | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 39.211896 | 80 | 0.644103 |
442e7d960c51a75714ed7beca18f91a32ff70c97 | 5,454 | mli | OCaml | schema/schema_builtin.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | schema/schema_builtin.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | schema/schema_builtin.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 42.27907 | 104 | 0.589292 |
8acfbb30cbd54e10eb336782008620a1e45c4381 | 1,601 | ml | OCaml | caramel/verify/typing.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | null | null | null | caramel/verify/typing.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | null | null | null | caramel/verify/typing.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | null | null | null | open Comp_misc
open Comp_misc.Opts
let initialize_compiler ~no_stdlib ~stdlib_path =
Clflags.nopervasives := true;
Clflags.no_std_include := true;
Clflags.open_modules := if no_stdlib then [] else [ "Stdlib"; "Beam" ];
Clflags.include_dirs :=
if no_stdlib then []
else
[
Filename.concat st... | 30.788462 | 81 | 0.677077 |
bc3a50a5c68fe450dc9890bdad2c7a69e1cc8ddd | 1,372 | mli | OCaml | src/zarithint.mli | dalcoder/dalilcoin | aa6a377abd3c0d244e276eadde6a84f5badb8549 | [
"MIT"
] | null | null | null | src/zarithint.mli | dalcoder/dalilcoin | aa6a377abd3c0d244e276eadde6a84f5badb8549 | [
"MIT"
] | null | null | null | src/zarithint.mli | dalcoder/dalilcoin | aa6a377abd3c0d244e276eadde6a84f5badb8549 | [
"MIT"
] | null | null | null | (* Copyright (c) 2019 The Dalilcoin developers *)
(* Distributed under the MIT software license, see the accompanying
file COPYING or http://www.opensource.org/licenses/mit-license.php. *)
val zero_big_int : Z.t
val unit_big_int : Z.t
val big_int_of_string : string -> Z.t
val string_of_big_int : Z.t -> string
val i... | 37.081081 | 73 | 0.654519 |
44be252bcd835754b53ed555255ea476ef5b062b | 5,146 | ml | OCaml | test/test_bigarray_grammars.ml | EduardoRFS/sexplib | eb1594fed781dfc42a6bfe00b988e429a3cce1ef | [
"BSD-3-Clause",
"MIT"
] | null | null | null | test/test_bigarray_grammars.ml | EduardoRFS/sexplib | eb1594fed781dfc42a6bfe00b988e429a3cce1ef | [
"BSD-3-Clause",
"MIT"
] | null | null | null | test/test_bigarray_grammars.ml | EduardoRFS/sexplib | eb1594fed781dfc42a6bfe00b988e429a3cce1ef | [
"BSD-3-Clause",
"MIT"
] | 1 | 2022-02-15T01:39:47.000Z | 2022-02-15T01:39:47.000Z | open! Base
open! Expect_test_helpers_core
open Sexplib
open Sexp_grammar_validation
let test m = validate_grammar m |> require_ok [%here]
module Test = struct
include Sexplib0.Sexp_conv
type mat = Conv.mat
let mat_sexp_grammar = Conv.mat_sexp_grammar
let mat_of_sexp = Conv.mat_of_sexp
let sexp_of_mat = Co... | 34.536913 | 81 | 0.765838 |
8a0a43dde98decde8df5a96a1f932d0b56ffa245 | 1,008 | mli | OCaml | hack_parallel/hack_parallel/utils/local_id.mli | mzlee/pyre-check | e31eedeedd88aa92890ffe38afdc6063d8b21ef8 | [
"MIT"
] | null | null | null | hack_parallel/hack_parallel/utils/local_id.mli | mzlee/pyre-check | e31eedeedd88aa92890ffe38afdc6063d8b21ef8 | [
"MIT"
] | null | null | null | hack_parallel/hack_parallel/utils/local_id.mli | mzlee/pyre-check | e31eedeedd88aa92890ffe38afdc6063d8b21ef8 | [
"MIT"
] | 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.
*
*)
(* Used to rep... | 23.44186 | 80 | 0.690476 |
44da52eeb9dd64b2896948354e1846d9a56ddf0e | 202 | ml | OCaml | src/bin/main.ml | romildo/straightline-ocaml-2021-2 | 189c3b9142dd34e40db19839163cf25bcc3837a5 | [
"MIT"
] | null | null | null | src/bin/main.ml | romildo/straightline-ocaml-2021-2 | 189c3b9142dd34e40db19839163cf25bcc3837a5 | [
"MIT"
] | null | null | null | src/bin/main.ml | romildo/straightline-ocaml-2021-2 | 189c3b9142dd34e40db19839163cf25bcc3837a5 | [
"MIT"
] | null | null | null | (* main *)
let () =
PrintBox_text.output stdout (Totree.stm_to_tree Examples.prog6);
print_newline ();
print_string "max args: ";
print_int (Maxargs.maxargs Examples.prog6);
print_newline ()
| 22.444444 | 66 | 0.707921 |
44e8ce47404c82b09300f87d46c57564430e92c3 | 2,282 | ml | OCaml | tests/benchmarks/r_type/termination/CE-Jones_Bohr03.ml | LinerSu/DART_IT | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 7 | 2020-06-12T09:32:16.000Z | 2020-10-05T09:04:07.000Z | tests/benchmarks/r_type/termination/CE-Jones_Bohr03.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | null | null | null | tests/benchmarks/r_type/termination/CE-Jones_Bohr03.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 2 | 2021-04-05T12:25:11.000Z | 2021-05-14T09:31:24.000Z |
let rec bot _ = bot ()
let fail _ = assert false
let rec c9_COEFFICIENT_1286 = 0
let rec c8_COEFFICIENT_1285 = 0
let rec c7_COEFFICIENT_1284 = 0
let rec c6_COEFFICIENT_1273 = 0
let rec c5_COEFFICIENT_1272 = 0
let rec c4_COEFFICIENT_1267 = 0
let rec c3_COEFFICIENT_1266 = 0
let rec c2_COEFFICIEN... | 37.409836 | 160 | 0.740578 |
bc31320efbbc45113773240bfd50da0226888922 | 321 | mli | OCaml | bindings/udisks/uDisks_monitor.mli | NathanReb/obus | 8aaf3d4e5538e42a62ae206dcfc01d2b898e54dc | [
"BSD-3-Clause"
] | 14 | 2019-07-05T01:44:28.000Z | 2021-06-02T11:32:46.000Z | bindings/udisks/uDisks_monitor.mli | NathanReb/obus | 8aaf3d4e5538e42a62ae206dcfc01d2b898e54dc | [
"BSD-3-Clause"
] | 10 | 2019-07-11T08:43:53.000Z | 2021-07-17T09:54:49.000Z | bindings/udisks/uDisks_monitor.mli | NathanReb/obus | 8aaf3d4e5538e42a62ae206dcfc01d2b898e54dc | [
"BSD-3-Clause"
] | 7 | 2017-10-15T13:14:48.000Z | 2018-12-12T05:17:28.000Z | (*
* uDisks_monitor.mli
* ------------------
* Copyright : (c) 2011, Jeremie Dimino <jeremie@dimino.org>
* Licence : BSD3
*
* This file is a part of obus, an ocaml implementation of D-Bus.
*)
(** Properties monitoring *)
val monitor : OBus_property.monitor
(** Monitor for properties of udisk interfaces. *)... | 22.928571 | 65 | 0.641745 |
44d62ce1c874b1e643beec6960c28e08ebb1234f | 1,334 | ml | OCaml | src/test/heuristic_access_label_tests.ml | tezos-checker/ligo | a7fa6d848e09ca546331df827caa48b2d7925dff | [
"MIT"
] | 2 | 2021-03-06T12:11:41.000Z | 2021-11-21T13:54:18.000Z | src/test/heuristic_access_label_tests.ml | tezos-checker/ligo | a7fa6d848e09ca546331df827caa48b2d7925dff | [
"MIT"
] | 4 | 2021-11-10T15:04:00.000Z | 2022-01-14T07:49:14.000Z | src/test/heuristic_access_label_tests.ml | tezos-checker/ligo | a7fa6d848e09ca546331df827caa48b2d7925dff | [
"MIT"
] | 1 | 2022-03-30T09:12:37.000Z | 2022-03-30T09:12:37.000Z | open Test_helpers
(* open Main_errors *)
module Core = Typesystem.Core
open Ast_core.Types
open Ast_core.Reasons
let mk p_ctor_tag p_ctor_args = (wrap (Todo "unit test") @@ P_constant { p_ctor_tag ; p_ctor_args ; })
(* A bunch of arbitrary types (they only need to be distrinct type constructors without arguments, fe... | 49.407407 | 212 | 0.695652 |
bc3f9a5fd366b11777c79c1a7b87cf7ac71106c2 | 12,744 | ml | OCaml | src/lib.ml | susisu/esto | e610d07b166a51e5763aa4f7b12449ec0438071c | [
"MIT"
] | 6 | 2017-07-31T13:57:03.000Z | 2018-05-13T13:14:42.000Z | src/lib.ml | susisu/esto | e610d07b166a51e5763aa4f7b12449ec0438071c | [
"MIT"
] | null | null | null | src/lib.ml | susisu/esto | e610d07b166a51e5763aa4f7b12449ec0438071c | [
"MIT"
] | null | null | null | open Core
let raise_runtime_error msg = raise (Eval.Runtime_error (None, msg))
let raise_type_error ~expect ~actual = raise_runtime_error (
"expected: " ^ expect ^ "\n" ^
"actual : " ^ actual
)
(* constants *)
module C = struct
open Value
let pi = Float.pi
let e = Float.exp 1.0
let ln2 ... | 30.561151 | 99 | 0.560264 |
bc4c1558985077aafa89e21e33c3fb578e370006 | 1,430 | mli | OCaml | src/state/heaps/context/context_heaps.mli | Sam9799/flow | 3255fc9ed24e0913923459cad3392339757b6472 | [
"MIT"
] | 1 | 2020-12-23T05:42:50.000Z | 2020-12-23T05:42:50.000Z | src/state/heaps/context/context_heaps.mli | Miazzy/flow | 9ec27c7b6582d0e46a57508a2491130e7912e533 | [
"MIT"
] | null | null | null | src/state/heaps/context/context_heaps.mli | Miazzy/flow | 9ec27c7b6582d0e46a57508a2491130e7912e533 | [
"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 type READER = sig
type reader
val find_sig : reader:reader -> File_key.t -> Context.sig_t
val find_leader : reader:r... | 26.981132 | 89 | 0.736364 |
bc26b1a10170cd4b1850b7417d80fb58675b288b | 820 | ml | OCaml | src/parser_utils/__tests__/flow_polymorphic_ast_mapper_test.ml | zhangmaijun/flow | f60e2a745b06f6f0739a4e4518eb5e2481f9e011 | [
"MIT"
] | 20,996 | 2015-01-01T13:51:47.000Z | 2022-03-31T17:44:01.000Z | src/parser_utils/__tests__/flow_polymorphic_ast_mapper_test.ml | zhangmaijun/flow | f60e2a745b06f6f0739a4e4518eb5e2481f9e011 | [
"MIT"
] | 8,315 | 2015-01-01T19:56:43.000Z | 2022-03-31T15:58:10.000Z | src/parser_utils/__tests__/flow_polymorphic_ast_mapper_test.ml | zhangmaijun/flow | f60e2a745b06f6f0739a4e4518eb5e2481f9e011 | [
"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.
*)
open OUnit2
class ['a] mapper =
object
inherit [Loc.t, 'a, Loc.t, 'a] Flow_polymorphic_ast_mapper.mapper
method on_loc_... | 22.777778 | 75 | 0.614634 |
bc60c3070a525b058a7592420f7422030582fc01 | 3,358 | ml | OCaml | src/ch2/ch2.3.ml | zxygentoo/eopl-3rd-ocaml | c82e54219abdffac4a4beb6a7743af6b797c744c | [
"BSD-2-Clause"
] | null | null | null | src/ch2/ch2.3.ml | zxygentoo/eopl-3rd-ocaml | c82e54219abdffac4a4beb6a7743af6b797c744c | [
"BSD-2-Clause"
] | null | null | null | src/ch2/ch2.3.ml | zxygentoo/eopl-3rd-ocaml | c82e54219abdffac4a4beb6a7743af6b797c744c | [
"BSD-2-Clause"
] | null | null | null | (* e2.17 *)
(* e2.18 *)
module BiIntList : sig
type bilist = int * int list * int list
val current : bilist -> int
val move_left : bilist -> bilist
val move_right : bilist -> bilist
val insert_left : int -> bilist -> bilist
val insert_right : int -> bilist -> bilist
val at_left_end : bilist -> bool
va... | 23.482517 | 90 | 0.580405 |
449fa759deb7d5da32db158d69b3ca669cc55766 | 7,305 | ml | OCaml | litmus/CSymbReg.ml | maranget/herdtools7 | c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0 | [
"CECILL-B"
] | 103 | 2016-11-28T10:00:41.000Z | 2022-03-08T05:06:00.000Z | litmus/CSymbReg.ml | maranget/herdtools7 | c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0 | [
"CECILL-B"
] | 193 | 2017-02-28T19:04:04.000Z | 2022-03-25T14:33:24.000Z | litmus/CSymbReg.ml | maranget/herdtools7 | c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0 | [
"CECILL-B"
] | 39 | 2016-12-14T23:10:34.000Z | 2022-03-22T21:35:17.000Z | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 33.509174 | 82 | 0.558111 |
bc1e674b6b27b1da751c43532e9df2ac4a3aa954 | 87,998 | ml | OCaml | src/map_intf.ml | diaozheng999/base | fe3aaecd4859c34db32333c278a76c29acb7bb96 | [
"MIT"
] | null | null | null | src/map_intf.ml | diaozheng999/base | fe3aaecd4859c34db32333c278a76c29acb7bb96 | [
"MIT"
] | 4 | 2021-05-18T10:06:59.000Z | 2021-10-21T05:48:27.000Z | src/map_intf.ml | diaozheng999/base | fe3aaecd4859c34db32333c278a76c29acb7bb96 | [
"MIT"
] | null | null | null | open! Import
open! T
module Or_duplicate = struct
type 'a t =
[ `Ok of 'a
| `Duplicate
]
[@@deriving_inline sexp_of]
let sexp_of_t : 'a. ('a -> Ppx_sexp_conv_lib.Sexp.t) -> 'a t -> Ppx_sexp_conv_lib.Sexp.t
=
fun _of_a -> function
| `Ok v0 -> Ppx_sexp_conv_lib.Sexp.List [ Ppx_sexp_conv_... | 32.352206 | 102 | 0.520603 |
bc523ac00daa09ef57740e3ea4e01e70d9bd4eda | 391 | ml | OCaml | benchmarks/lambda/lambda1/submissions/sub288.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/lambda/lambda1/submissions/sub288.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/lambda/lambda1/submissions/sub288.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type metro =
STATION of name
|AREA of name * metro
|CONNECT of metro * metro
and name = string
let rec checkMetro mt = ckM mt []
and ckM mt l =
match mt with
STATION(nm) -> if_cont nm l
|AREA(nm, mt_a) -> ckM mt_a (nm::l)
|CONNECT(mt_a, mt_b) -> (ckM mt_a l) && (ckM mt_b l)
and if_cont nm l = List.exists ... | 26.066667 | 57 | 0.654731 |
4484907e493238519347330db9d97da8d88e7fe5 | 624 | ml | OCaml | pkg/pkg.ml | hannesm/mirage-xen | 3f0f1a6d2c0f6899c7757f19d7927d750cb5604d | [
"0BSD"
] | null | null | null | pkg/pkg.ml | hannesm/mirage-xen | 3f0f1a6d2c0f6899c7757f19d7927d750cb5604d | [
"0BSD"
] | null | null | null | pkg/pkg.ml | hannesm/mirage-xen | 3f0f1a6d2c0f6899c7757f19d7927d750cb5604d | [
"0BSD"
] | null | null | null | #!/usr/bin/env ocaml
#use "topfind"
#require "topkg"
#require "ocb-stubblr.topkg"
open Topkg
open Ocb_stubblr_topkg
let opams = [
Pkg.opam_file "opam" ~lint_deps_excluding:(Some ["mirage-xen-ocaml"; "io-page-xen"; "mirage-xen-minios"])
]
let nowhere ?force ?built ?cond ?exts ?dst _ = Pkg.nothing
let () =
Pkg.des... | 28.363636 | 107 | 0.682692 |
8ab6a7fd95991118cca5780555881dc9addedfe6 | 244 | ml | OCaml | libraries/s3/s3_endpoints.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/s3_endpoints.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/s3_endpoints.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | let endpoint_of region =
if Aws.Util.str_starts_with region "cn-"
then Some "{scheme}://{service}.{region}.amazonaws.com.cn"
else
(match region with
| region -> Some "{scheme}://{service}.{region}.amazonaws.com"
| _ -> None) | 34.857143 | 67 | 0.647541 |
446a3f358cfe2beb6d207cbe4dd33092bed7e120 | 2,107 | ml | OCaml | data/sp14_min/2995.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/2995.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/2995.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 x :: (clone x (n - 1));;
let padZero l1 l2 =
let diff = (List.length l1) - (List.length l2) in
if diff >= 0
then (l1, ((clone 0 diff) @ l2))
else (((clone 0 (abs diff)) @ l1), l2);;
let rec removeZero l =
match l with
| [] -> []
| h::t -> (match h with | 0 -> ... | 23.674157 | 67 | 0.49122 |
bc5df9d9e67f1058e8de4898a343a3545c92a337 | 1,558 | mli | OCaml | debugger/4.10.0/show_information.mli | progman1/genprint-lib | acc1e5cc46b9ce6191d0306f51337581c93ffe94 | [
"MIT"
] | 20 | 2019-07-19T15:10:09.000Z | 2021-12-11T22:10:23.000Z | debugger/4.10.0/show_information.mli | progman1/genprint-lib | acc1e5cc46b9ce6191d0306f51337581c93ffe94 | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | debugger/4.10.0/show_information.mli | progman1/genprint-lib | acc1e5cc46b9ce6191d0306f51337581c93ffe94 | [
"MIT"
] | 2 | 2019-07-19T11:47:44.000Z | 2021-09-30T16:15:24.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 55.642857 | 76 | 0.385751 |
44c47417eea3dbcb155c680203b4a0be408684eb | 1,820 | ml | OCaml | src/lib/consensus/global_slot.ml | LukasGerm/coda | 443d87f510f618263a927e1052e1d6a53b0f6264 | [
"Apache-2.0"
] | null | null | null | src/lib/consensus/global_slot.ml | LukasGerm/coda | 443d87f510f618263a927e1052e1d6a53b0f6264 | [
"Apache-2.0"
] | null | null | null | src/lib/consensus/global_slot.ml | LukasGerm/coda | 443d87f510f618263a927e1052e1d6a53b0f6264 | [
"Apache-2.0"
] | null | null | null | open Unsigned
open Core
open Coda_base
open Snark_params.Tick
module T = Coda_numbers.Global_slot
include (T : module type of T with module Checked := T.Checked)
let create ~(epoch : Epoch.t) ~(slot : Slot.t) =
of_int
( Slot.to_int slot
+ (UInt32.to_int Constants.slots_per_epoch * Epoch.to_int epoch) )
let... | 28.888889 | 80 | 0.702198 |
aff23911fff04154793494bfbbb035e0e40cc7f7 | 10,792 | mli | OCaml | infer/src/base/CommandLineOption.mli | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/base/CommandLineOption.mli | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/base/CommandLineOption.mli | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** Definition and parsing of command line arguments *)
open! IStd
val warnf : ('a, Format.formatter, unit) format -> 'a
(** Print to s... | 51.884615 | 194 | 0.713028 |
bc320577a338adb98d7a85558750c6537cdefae2 | 115,939 | ml | OCaml | src/ocaml-output/FStar_Interactive_Ide.ml | kant2002/FStar | 96534f492dd4a91a78ad5d01e9c39e49808c1c10 | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_Interactive_Ide.ml | kant2002/FStar | 96534f492dd4a91a78ad5d01e9c39e49808c1c10 | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_Interactive_Ide.ml | kant2002/FStar | 96534f492dd4a91a78ad5d01e9c39e49808c1c10 | [
"Apache-2.0"
] | null | null | null | open Prims
let with_captured_errors' :
'uuuuu .
FStar_TypeChecker_Env.env ->
FStar_Compiler_Util.sigint_handler ->
(FStar_TypeChecker_Env.env -> 'uuuuu FStar_Pervasives_Native.option)
-> 'uuuuu FStar_Pervasives_Native.option
=
fun env ->
fun sigint_handler ->
fun f ->
... | 43.196349 | 118 | 0.613875 |
bc45b6a43580c806425754f61e13a22e2da10901 | 911 | ml | OCaml | src/opencl/config/make_kernel.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | null | null | null | src/opencl/config/make_kernel.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | null | null | null | src/opencl/config/make_kernel.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
let gcc_preprocess in_file =
let out_file = Filename.temp_file "" "" in
let cmd = Printf.sprintf "gcc -E -P %s -o %s" in_file out_file in
let r = Sys.command cmd in
if r <> 0 then failwith... | 28.46875 | 69 | 0.722283 |
bc5a0437d692b69a0b4782da668f0654de6d8e0f | 11,450 | ml | OCaml | infer/src/checkers/liveness.ml | avery-laird/term-project | 00bcd0a3dca5ef7247c6758747d04e5c51d51f64 | [
"MIT"
] | 1 | 2019-11-23T14:35:34.000Z | 2019-11-23T14:35:34.000Z | infer/src/checkers/liveness.ml | avery-laird/term-project | 00bcd0a3dca5ef7247c6758747d04e5c51d51f64 | [
"MIT"
] | null | null | null | infer/src/checkers/liveness.ml | avery-laird/term-project | 00bcd0a3dca5ef7247c6758747d04e5c51d51f64 | [
"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 L = Logging
(** backward analysis for computing set of maybe-live variables at each program po... | 37.913907 | 100 | 0.684803 |
44b78444f861c46c9e1710590b7ff0d0c72d258e | 299 | ml | OCaml | result/fixml/iter/sub38/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/iter/sub38/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/iter/sub38/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | let rec iter : int * (int -> int) -> int -> int =
fun (n, f) ->
let compose f g x = f (g x) in
if n <= 1 then if n = 1 then f else fun __x__ -> __x__
else compose f (iter (n - 1, f))
let _ = iter (0, fun x -> 2 + x) 0
let _ = iter (1, fun x -> 2 + x) 0
let _ = iter (5, fun x -> 2 + x) 0
| 23 | 56 | 0.498328 |
bc5517ee87eb9f35bb32405da039836eb7b0bcb8 | 8,180 | ml | OCaml | src/services/inference/merge_stream.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | 1 | 2019-07-15T20:48:46.000Z | 2019-07-15T20:48:46.000Z | src/services/inference/merge_stream.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | 8 | 2020-04-06T11:23:08.000Z | 2022-03-24T12:41:12.000Z | src/services/inference/merge_stream.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"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.
*)
(* Custom bucketing scheme for dynamically growing and shrinking workloads when
merging files.
We start out with files that... | 32.589641 | 99 | 0.71088 |
bc4ddf9ebf631a69424910364f7baebd0c72cd84 | 6,955 | ml | OCaml | src/source_code_position0.ml | zenhack/base | c6780dd2c8a4adc76591c11ce1970e230bf737f9 | [
"MIT"
] | null | null | null | src/source_code_position0.ml | zenhack/base | c6780dd2c8a4adc76591c11ce1970e230bf737f9 | [
"MIT"
] | null | null | null | src/source_code_position0.ml | zenhack/base | c6780dd2c8a4adc76591c11ce1970e230bf737f9 | [
"MIT"
] | null | null | null | open! Import
module Int = Int0
module String = String0
module T = struct
type t = Caml.Lexing.position =
{ pos_fname : string
; pos_lnum : int
; pos_bol : int
; pos_cnum : int
}
[@@deriving_inline compare, hash, sexp]
let compare =
(fun a__001_ ->
fun b__002_ ->
if Ppx_com... | 38.854749 | 101 | 0.53573 |
bc47dbc23e1f36bf43597eedcf5ae159b15f6fc4 | 2,900 | ml | OCaml | src/proto_011_PtHangz2/lib_delegate/client_baking_revelation.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_011_PtHangz2/lib_delegate/client_baking_revelation.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_011_PtHangz2/lib_delegate/client_baking_revelation.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 52.727273 | 79 | 0.497586 |
afcdac28b1656e82d02449164ec314ac9c4c3957 | 110 | ml | OCaml | tests/types/tyfun/tyfun-instance.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | 1 | 2021-11-23T13:07:37.000Z | 2021-11-23T13:07:37.000Z | tests/types/tyfun/tyfun-instance.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | tests/types/tyfun/tyfun-instance.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | type function foo 'a begin end
class bar 'a begin
val foo : 'a () -> 'a ()
end
instance bar foo begin end
| 13.75 | 30 | 0.645455 |
448cbd5ac3c30157aca115df10d080fc4619bc43 | 12,710 | mli | OCaml | eval/ocaml/otherlibs/str/str.mli | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/ocaml/otherlibs/str/str.mli | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/ocaml/otherlibs/str/str.mli | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 43.827586 | 74 | 0.668293 |
447a536c6bd6e48f951bce78ad6db3ea06a0319d | 8,285 | ml | OCaml | hphp/hack/src/typing/typing_defs.ml | chregu/hhvm | e95c8aff36dad178adac2418f2dbf5bb65ac2431 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_defs.ml | chregu/hhvm | e95c8aff36dad178adac2418f2dbf5bb65ac2431 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_defs.ml | chregu/hhvm | e95c8aff36dad178adac2418f2dbf5bb65ac2431 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Utils
... | 38.896714 | 92 | 0.598672 |
44211029dfada4d6cf358613d4efa05879f589c6 | 30,489 | ml | OCaml | infer/src/concurrency/RacerDFileAnalysis.ml | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"MIT"
] | 4 | 2020-06-16T14:40:24.000Z | 2021-07-28T18:02:26.000Z | infer/src/concurrency/RacerDFileAnalysis.ml | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"MIT"
] | 25 | 2021-02-08T13:49:24.000Z | 2022-02-28T03:34:19.000Z | infer/src/concurrency/RacerDFileAnalysis.ml | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"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 AccessExpression = HilExp.AccessExpression
module F = Format
module MF = MarkupFormatter
let describe_exp = MF.w... | 43.493581 | 104 | 0.722687 |
af103b7af0c1f8651ed40e6a672a2236b374881c | 4,318 | mli | OCaml | fs_test/debug/checklib_2.mli | sibylfs/sibylfs_src | 30675bc3b91e73f7133d0c30f18857bb1f4df8fa | [
"ISC"
] | 32 | 2015-09-28T13:30:14.000Z | 2022-02-11T02:40:09.000Z | fs_test/debug/checklib_2.mli | sibylfs/sibylfs_src | 30675bc3b91e73f7133d0c30f18857bb1f4df8fa | [
"ISC"
] | 17 | 2015-10-01T14:33:44.000Z | 2019-08-15T09:53:09.000Z | fs_test/debug/checklib_2.mli | sibylfs/sibylfs_src | 30675bc3b91e73f7133d0c30f18857bb1f4df8fa | [
"ISC"
] | 1 | 2015-10-02T21:29:51.000Z | 2015-10-02T21:29:51.000Z | (****************************************************************************)
(* Copyright (c) 2013, 2014, 2015, Tom Ridge, David Sheets, Thomas Tuerk, *)
(* Andrea Giugliano (as part of the SibylFS project) *)
(* *)
(* ... | 42.752475 | 119 | 0.627142 |
bc48ffe577a649921a06a4acc1bf1790d5509426 | 1,997 | ml | OCaml | litmus/langUtils.ml | maranget/herdtools7 | c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0 | [
"CECILL-B"
] | 103 | 2016-11-28T10:00:41.000Z | 2022-03-08T05:06:00.000Z | litmus/langUtils.ml | maranget/herdtools7 | c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0 | [
"CECILL-B"
] | 193 | 2017-02-28T19:04:04.000Z | 2022-03-25T14:33:24.000Z | litmus/langUtils.ml | maranget/herdtools7 | c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0 | [
"CECILL-B"
] | 39 | 2016-12-14T23:10:34.000Z | 2022-03-22T21:35:17.000Z | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 48.707317 | 78 | 0.515273 |
afdb90d580e1cdb9d2655c8d22650c460c0d0716 | 5,473 | ml | OCaml | src/bin_signer/socket_daemon.ml | connectedcustomer/Project1 | e84e4a645bc6f45ba68e023d67274d550231ad03 | [
"MIT"
] | null | null | null | src/bin_signer/socket_daemon.ml | connectedcustomer/Project1 | e84e4a645bc6f45ba68e023d67274d550231ad03 | [
"MIT"
] | null | null | null | src/bin_signer/socket_daemon.ml | connectedcustomer/Project1 | e84e4a645bc6f45ba68e023d67274d550231ad03 | [
"MIT"
] | 1 | 2021-06-04T09:31:48.000Z | 2021-06-04T09:31:48.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 48.433628 | 96 | 0.581582 |
bc4e8540bb9eb3c091468d2f0892ac7903fb6560 | 22,442 | ml | OCaml | hphp/hack/src/server/serverConfig.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverConfig.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverConfig.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"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.
*
*)
(**
* Parses and gathers information from the .hhconfig in the repo.
*)
open Hh_prelude
open Config_file.Getters
... | 39.79078 | 80 | 0.746279 |
bc0358499c6adb8edc105da9336f748d6f5e9437 | 6,258 | ml | OCaml | tezt/lib_tezos/signer.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | tezt/lib_tezos/signer.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | tezt/lib_tezos/signer.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2022 Nomadic Labs <contact@nomadic-labs.com> *)
... | 35.965517 | 79 | 0.6093 |
445ececdc41c9de017e3e1c935d0dd963667b387 | 35,520 | ml | OCaml | x86/proofs/bignum_montsqr_p384.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 33 | 2021-03-11T16:12:01.000Z | 2022-03-06T17:01:18.000Z | x86/proofs/bignum_montsqr_p384.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 8 | 2021-09-06T12:58:47.000Z | 2022-01-03T16:43:09.000Z | x86/proofs/bignum_montsqr_p384.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 ... | 50.098731 | 155 | 0.52134 |
44d90e6ff7237daa446f7ab2ee848a01303c2a3a | 7,877 | ml | OCaml | data/derived/comb/progs/unify/prog3924.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/prog3924.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3924.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 26.344482 | 148 | 0.689476 |
bc28608efd0551f83d7f87c8685cc0db7c7b10bb | 1,569 | ml | OCaml | ocaml/FPMIS/utils.ml | ostera/asdf | adec59de04ce1c2994db60b92f693e621bf68850 | [
"MIT"
] | 4 | 2017-03-02T22:25:19.000Z | 2020-12-30T18:22:11.000Z | ocaml/FPMIS/utils.ml | ostera/asdf | adec59de04ce1c2994db60b92f693e621bf68850 | [
"MIT"
] | 7 | 2019-12-05T22:45:56.000Z | 2019-12-05T22:45:58.000Z | ocaml/FPMIS/utils.ml | ostera/asdf | adec59de04ce1c2994db60b92f693e621bf68850 | [
"MIT"
] | null | null | null | open Core
open Pervasives
type position = Position of int * int
type result =
| Hit of string * string * position
| Miss of string * string
(*
* Printing helpers
*)
let pad (c : string) (padding : int) =
List.range ~start:`inclusive ~stop:`exclusive 0 padding
|> List.map ~f:(fun _ -> c)
|> List.fold ~f:(... | 25.306452 | 81 | 0.600382 |
44aa36e6beb4062505e4fe5f4169e826d9927fcf | 7,291 | ml | OCaml | mirage/mdns_resolver_mirage.ml | samoht/ocaml-dns | e68d3834f0c4f6e7c84db9a02ac03f478937585c | [
"0BSD"
] | null | null | null | mirage/mdns_resolver_mirage.ml | samoht/ocaml-dns | e68d3834f0c4f6e7c84db9a02ac03f478937585c | [
"0BSD"
] | null | null | null | mirage/mdns_resolver_mirage.ml | samoht/ocaml-dns | e68d3834f0c4f6e7c84db9a02ac03f478937585c | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2015 Luke Dunstan <LukeDunstan81@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 notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS... | 31.15812 | 89 | 0.648196 |
bc55ca008c76fcf972344156a261c83b07bb97d7 | 7,859 | ml | OCaml | data/derived/comb/progs/unify/prog1030.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/prog1035.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1035.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 26.372483 | 148 | 0.690546 |
44f24fa3fb44ed2ee6a07899e2091cf4ce5ae88d | 976 | ml | OCaml | 2018/03/b.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | 2 | 2022-01-04T23:09:54.000Z | 2022-01-26T08:57:20.000Z | 2018/03/b.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | null | null | null | 2018/03/b.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | null | null | null | open! Core
open! Async
open! Import
let main () =
let%bind claims =
Reader.with_file "input" ~f:(fun r ->
r |> Reader.lines |> Pipe.map ~f:Claim.of_string |> Pipe.to_list)
in
let claims_by_square = Hashtbl.create (module Tuple.Hashable_t (Int) (Int)) in
List.iter claims ~f:(fun claim ->
Claim.ite... | 31.483871 | 82 | 0.619877 |
44dc4d222a5750079c0a7c09bac9ef9fa2d4a56b | 92 | ml | OCaml | data/derived/comb/progs/unify/prog1682.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/prog1682.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1682.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let sqsum xs =
let f a x = a +. (x ** 2.0) in let base = 0 in List.fold_left f base xs;;
| 23 | 75 | 0.565217 |
441393fde88aba6ba7747e1451e1b88bf8681ea0 | 16,761 | ml | OCaml | hphp/hack/src/server/ffpAutocompleteContextParser.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/ffpAutocompleteContextParser.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/ffpAutocompleteContextParser.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2017, 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 Positi... | 36.756579 | 100 | 0.706939 |
bc0a68de4518a16259f84e945fd2e3f338e6049e | 3,688 | ml | OCaml | lib/qcow_cstructs.ml | emillon/ocaml-qcow | 50a7b6612543259850a06582b07650232a36f73c | [
"0BSD"
] | null | null | null | lib/qcow_cstructs.ml | emillon/ocaml-qcow | 50a7b6612543259850a06582b07650232a36f73c | [
"0BSD"
] | null | null | null | lib/qcow_cstructs.ml | emillon/ocaml-qcow | 50a7b6612543259850a06582b07650232a36f73c | [
"0BSD"
] | null | null | null | (*
* Copyright (C) 2017 Docker 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 AUTHOR DISCLAIMS A... | 36.156863 | 105 | 0.650217 |
4452ff6352c2c1248163d04cc07f86a7533e624a | 1,668 | ml | OCaml | lib/ltpa.ml | kit-ty-kate/key-parsers | c981870ff1706f67c4342b093a027834e01ce586 | [
"BSD-2-Clause"
] | null | null | null | lib/ltpa.ml | kit-ty-kate/key-parsers | c981870ff1706f67c4342b093a027834e01ce586 | [
"BSD-2-Clause"
] | null | null | null | lib/ltpa.ml | kit-ty-kate/key-parsers | c981870ff1706f67c4342b093a027834e01ce586 | [
"BSD-2-Clause"
] | null | null | null | (** Read a big-endian arbitrary length number *)
let get_z_be cs off len =
let r = ref Z.zero in
let base = Z.of_int 0x100 in
for i = off to off + len - 1 do
r := Z.add (Z.mul base !r) @@ Z.of_int @@ Cstruct.get_uint8 cs i
done;
!r
module Rsa = struct
(** If public exponent is not 0x10001, it is unclea... | 26.903226 | 78 | 0.579736 |
bc36cc0d962b2e0a3d9f08bb2104b004b3eaec9c | 957 | mli | OCaml | hphp/hack/src/facts/facts_parser.mli | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-03-11T02:25:37.000Z | 2022-03-11T02:25:37.000Z | hphp/hack/src/facts/facts_parser.mli | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/facts/facts_parser.mli | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"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.
*
*)
val mangle_xhp_mode : bool ref
val flags_abstract : int
val flags_final : int
val extract_as_json_string :
php5_... | 25.184211 | 66 | 0.760711 |
44928b306ffd890f8e07ea2b34f4c8f37f63aafa | 1,482 | ml | OCaml | src/classify_file.ml | avsm/git-delve | b44b130ad92781d23ef0fe58d70a51570c516e4e | [
"0BSD"
] | 6 | 2017-01-11T13:49:23.000Z | 2018-03-27T17:11:53.000Z | src/classify_file.ml | avsm/git-delve | b44b130ad92781d23ef0fe58d70a51570c516e4e | [
"0BSD"
] | null | null | null | src/classify_file.ml | avsm/git-delve | b44b130ad92781d23ef0fe58d70a51570c516e4e | [
"0BSD"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2017 Anil Madhavapeddy. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)
(* ... | 35.285714 | 79 | 0.551957 |
bc3466ce67f9c224366fc2cd48530a8cc374e161 | 2,482 | ml | OCaml | infer/src/eradicate/typeAnnotation.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/eradicate/typeAnnotation.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/eradicate/typeAnnotation.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2014-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 to represent annotations on types. *)
module AnnotationsMap = Caml.Map.Make (struct
type t = AnnotatedSignature... | 27.88764 | 96 | 0.713135 |
449b13af9a930c05aafd95152ac31a126b18e535 | 2,708 | ml | OCaml | data/fa15_min/2098.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15_min/2098.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/2098.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 x :: (clone x (n - 1));;
let padZero l1 l2 =
if (List.length l1) < (List.length l2)
then
let n = (List.length l2) - (List.length l1) in (((clone 0 n) @ l1), l2)
else
if (List.length l2) < (List.length l1)
then
(let n = (List.length l1) - (List.length ... | 25.308411 | 79 | 0.566839 |
bc341c788bec77c8b40fdcc6493a4e1f9cbe7191 | 21,563 | ml | OCaml | ocaml-sources/ocamldoc/odoc_to_text.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | ocaml-sources/ocamldoc/odoc_to_text.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | ocaml-sources/ocamldoc/odoc_to_text.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 35.407225 | 98 | 0.509437 |
44d416d2d2fad0e68a2cc0a0b2d55e661f9e6431 | 340 | ml | OCaml | zoo/calc/eval.ml | EarlGray/language-snippets | 31e4cd1cd32a444752e47484ff528a50bb6e14f6 | [
"BSD-3-Clause"
] | 22 | 2016-02-21T11:13:12.000Z | 2022-03-04T00:10:51.000Z | zoo/calc/eval.ml | EarlGray/language-snippets | 31e4cd1cd32a444752e47484ff528a50bb6e14f6 | [
"BSD-3-Clause"
] | null | null | null | zoo/calc/eval.ml | EarlGray/language-snippets | 31e4cd1cd32a444752e47484ff528a50bb6e14f6 | [
"BSD-3-Clause"
] | null | null | null | open Syntax
let rec eval = function
| Numeral n -> n
| Plus (e1, e2) -> eval e1 + eval e2
| Minus (e1, e2) -> eval e1 - eval e2
| Times (e1, e2) -> eval e1 * eval e2
| Divide (e1, e2) ->
let n2 = eval e2 in
if n2 <> 0 then eval e1 / n2 else failwith "Division by zero"
| Nega... | 26.153846 | 73 | 0.520588 |
44a5384a6b47a0af37e160094febaa8921097077 | 6,092 | ml | OCaml | src/lib_error_monad/test/test_recursive_registration.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | src/lib_error_monad/test/test_recursive_registration.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | src/lib_error_monad/test/test_recursive_registration.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs <contact@nomadic-labs.com> *)
... | 35.213873 | 80 | 0.58109 |
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.