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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aaa49e2c94505a31e988d731fb7f12dd2a5ef6b0 | 2,051 | ml | OCaml | hphp/hack/src/typing/typing_generic.ml | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-10-09T15:14:16.000Z | 2020-10-09T15:14:16.000Z | hphp/hack/src/typing/typing_generic.ml | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_generic.ml | 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.
*
*)
open Core
ope... | 28.887324 | 81 | 0.63335 |
aabc311c9ee16b62585bb4009041f4c3f4816a81 | 18,488 | ml | OCaml | hphp/hack/src/typing/typing_phase.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-06-19T23:31:58.000Z | 2021-06-19T23:31:58.000Z | hphp/hack/src/typing/typing_phase.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_phase.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Common
open Typing_defs
open Typing_dependent_type
open Utils
module Env = Typing_env
module... | 38.119588 | 93 | 0.656804 |
bc5f92af791ca1b16d7ffc0132d818dced451f3c | 582 | ml | OCaml | src/lib/transition_chain_verifier/transition_chain_verifier.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | null | null | null | src/lib/transition_chain_verifier/transition_chain_verifier.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | null | null | null | src/lib/transition_chain_verifier/transition_chain_verifier.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | null | null | null | open Core
open Mina_base
open Mina_state
module Merkle_list_verifier = Merkle_list_verifier.Make (struct
type proof_elem = State_body_hash.t
type hash = State_hash.t [@@deriving equal]
let hash previous_state_hash state_body_hash =
(Protocol_state.hashes_abstract ~hash_body:Fn.id
{ previous_state_ha... | 30.631579 | 80 | 0.781787 |
aae9f7484d52dae3d6e9c655e995be74fbfcaa53 | 21,890 | ml | OCaml | src/hack_forked/utils/collections/flow_map.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | src/hack_forked/utils/collections/flow_map.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | src/hack_forked/utils/collections/flow_map.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Xavier Ler... | 25.074456 | 91 | 0.486158 |
aab82e68ce5585df2878eb36801006ede2e1d013 | 19,434 | ml | OCaml | schema/schema_builtin.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | schema/schema_builtin.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | schema/schema_builtin.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 40.070103 | 321 | 0.771689 |
aaba1b2a2d4e22bc54bcef006e118a51ed217c77 | 440 | ml | OCaml | 02-exercises/10-list_product/problem.ml | jerryhuang3/learn-ocaml-workshop | 8eb5937109905c482347fad3b4c76bb63ef2a1ee | [
"Apache-2.0"
] | null | null | null | 02-exercises/10-list_product/problem.ml | jerryhuang3/learn-ocaml-workshop | 8eb5937109905c482347fad3b4c76bb63ef2a1ee | [
"Apache-2.0"
] | null | null | null | 02-exercises/10-list_product/problem.ml | jerryhuang3/learn-ocaml-workshop | 8eb5937109905c482347fad3b4c76bb63ef2a1ee | [
"Apache-2.0"
] | null | null | null | open! Base
(* Now let's write a function to multiply together the elements of a list. *)
let rec product xs =
match xs with
| [] -> false
| hd :: xs -> hd * product xs
;;
let%test "Testing product..." = Int.equal 1 (product [])
let%test "Testing product..." = Int.equal 55 (product [ 55 ])
let%test "Testing prod... | 31.428571 | 77 | 0.618182 |
aae5c67a5a88b16b4667c327f3d3cbde4593c224 | 438 | ml | OCaml | benchmarks/crazy2add/crazy2add/submissions/sub164.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/crazy2add/crazy2add/submissions/sub164.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/crazy2add/crazy2add/submissions/sub164.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type crazy2 = NIL | ZERO of crazy2 | ONE of crazy2 | MONE of crazy2
let rec crazy2add(a, b) = match (a, b) with
| (ONE c, ONE d) -> ZERO(crazy2add(crazy2add(ONE NIL, c), d))
| (MONE c, MONE d) -> ZERO(crazy2add(crazy2add(MONE NIL, c), d))
| (ZERO c, ZERO d) | (ONE c, MONE d) -> ZERO(crazy2add(c, d))
| (ZERO c, ONE... | 43.8 | 67 | 0.582192 |
aac3aaeffb7e206420384d5a7c9cc076839a7ec3 | 10,526 | ml | OCaml | hphp/hack/src/typing/typing_sequencing.ml | 2BitSalute/hhvm | da549f6612ca8531398a24c44dfc1027707da633 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_sequencing.ml | 2BitSalute/hhvm | da549f6612ca8531398a24c44dfc1027707da633 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_sequencing.ml | 2BitSalute/hhvm | da549f6612ca8531398a24c44dfc1027707da633 | [
"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.
*
*)
(* Pass to check for unsequenced modifications to local variables.
*
* PHP has a somewhat weird evaluation order (... | 38.137681 | 82 | 0.67167 |
aa5ba8268c3687c05d3d0007d6719e067412244c | 677 | ml | OCaml | data/derived/comb/progs/unify/prog8971.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/prog4194.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog4194.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n =
if n <= 0 then [] else if n = 1 then [x] else [x] @ (clone x (n - 1));;
let padZero l1 l2 =
let n = (List.length l1) - (List.length l2) in
if n < 0 then (((clone 0 (- n)) @ l1), l2) else (l1, ((clone 0 n) @ l2));;
let rec removeZero l =
match l with | [] -> [] | h::t -> if h = 0 then remo... | 30.772727 | 76 | 0.519941 |
aab58560e5a84058401b769ea44ffc99a4f9c6cc | 671 | ml | OCaml | src/alcotest/utils.ml | CraigFe/alcotest | 47908b1f576d65f4418bcf778d2a1db213f5a7ff | [
"0BSD"
] | 1 | 2020-11-02T04:11:35.000Z | 2020-11-02T04:11:35.000Z | src/alcotest/utils.ml | mjambon/alcotest | 372065b3be9fcafc4dd223819a0a06b7a798252d | [
"ISC"
] | 1 | 2020-02-12T12:54:21.000Z | 2020-02-12T12:54:21.000Z | src/alcotest/utils.ml | CraigFe/alcotest | 47908b1f576d65f4418bcf778d2a1db213f5a7ff | [
"0BSD"
] | null | null | null | module List = struct
include List
type 'a t = 'a list
let filter_map f l =
let rec inner acc = function
| [] -> rev acc
| x :: xs -> (
match f x with
| None -> (inner [@tailcall]) acc xs
| Some y -> (inner [@tailcall]) (y :: acc) xs )
in
inner [] l
let li... | 22.366667 | 60 | 0.479881 |
aa630c85241a2ce12271279a931f8be3edc5d0e0 | 36 | ml | OCaml | proj/sub1/lib/a.ml | rmdouglas/dune-starter | ec8633717f020d1d077c687ba0c9c4e88036d8cc | [
"Unlicense"
] | null | null | null | proj/sub1/lib/a.ml | rmdouglas/dune-starter | ec8633717f020d1d077c687ba0c9c4e88036d8cc | [
"Unlicense"
] | null | null | null | proj/sub1/lib/a.ml | rmdouglas/dune-starter | ec8633717f020d1d077c687ba0c9c4e88036d8cc | [
"Unlicense"
] | null | null | null | let now () =
Unix.gettimeofday ()
| 12 | 22 | 0.611111 |
aa85e4daa4bf413debacf6e6aac0d1713b84c9e3 | 33,509 | mli | OCaml | eval/sherrloc/easyocaml++/stdlib/pervasives.mli | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/sherrloc/easyocaml++/stdlib/pervasives.mli | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/sherrloc/easyocaml++/stdlib/pervasives.mli | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Xavier Ler... | 38.165148 | 79 | 0.66979 |
aadbcea43dd07d880a5eb853f395b5abba637dbc | 619 | ml | OCaml | hphp/hack/src/client/clientTypeAtPos.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2019-09-01T19:40:10.000Z | 2019-10-18T13:30:30.000Z | hphp/hack/src/client/clientTypeAtPos.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-12-16T15:39:15.000Z | 2018-12-16T15:39:16.000Z | hphp/hack/src/client/clientTypeAtPos.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-11-17T04:11:10.000Z | 2018-11-17T04:11:10.000Z | (**
* 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.
*
*)
let go result output_json =
if output_json
then begin
let response =
(match result with
| Non... | 24.76 | 66 | 0.644588 |
aa931daacf3072a340db0d51bbf5c820ad977360 | 1,865 | ml | OCaml | exercises/word-count/test.ml | bcc32/exercism-ocaml | b535bccf069695ee9f6d607cad5dd10734066893 | [
"MIT"
] | null | null | null | exercises/word-count/test.ml | bcc32/exercism-ocaml | b535bccf069695ee9f6d607cad5dd10734066893 | [
"MIT"
] | null | null | null | exercises/word-count/test.ml | bcc32/exercism-ocaml | b535bccf069695ee9f6d607cad5dd10734066893 | [
"MIT"
] | null | null | null | (* Test/exercise version: "1.2.0" *)
open Core_kernel
open OUnit2
open Word_count
module SMap = String.Map
let ae exp got _test_ctxt =
let printer m = SMap.sexp_of_t Int.sexp_of_t m |> Sexp.to_string_hum ~indent:1 in
assert_equal (SMap.of_alist_exn exp) got ~cmp:(SMap.equal (=)) ~printer
let tests = [
"count... | 37.3 | 90 | 0.529759 |
bcd2969d3ca21a194bc037b71b05f918e1535c27 | 27 | mli | OCaml | src/status.mli | janestreet/resource_cache | 0e06b0b03824b546c20720b6e70600226c03c257 | [
"MIT"
] | 6 | 2018-01-31T14:33:53.000Z | 2021-12-17T02:45:29.000Z | src/status.mli | janestreet/resource_cache | 0e06b0b03824b546c20720b6e70600226c03c257 | [
"MIT"
] | null | null | null | src/status.mli | janestreet/resource_cache | 0e06b0b03824b546c20720b6e70600226c03c257 | [
"MIT"
] | 1 | 2021-12-17T02:47:56.000Z | 2021-12-17T02:47:56.000Z | include Status_intf.Status
| 13.5 | 26 | 0.888889 |
bc18a4188f20810736b76f366d043b98075223ee | 666 | mli | OCaml | lib/util/strtbl.mli | foche/cool_compiler | c46fa7284873867b92f697518a951f1c0cdf8c5a | [
"MIT"
] | null | null | null | lib/util/strtbl.mli | foche/cool_compiler | c46fa7284873867b92f697518a951f1c0cdf8c5a | [
"MIT"
] | null | null | null | lib/util/strtbl.mli | foche/cool_compiler | c46fa7284873867b92f697518a951f1c0cdf8c5a | [
"MIT"
] | null | null | null | (* strtbl.mli *)
type 'a handle
(** A [handle] that identifies a string. Can be used to retrieve the original string. *)
type 'a handle_module = (module Set.OrderedType with type t = 'a)
type ('a, 'b) t
(** The type of string tables. *)
val create : Int.t -> ('a, 'b) t
(** [create n] creates a string table with an ... | 28.956522 | 88 | 0.606607 |
bcd39ef548309292dea49ff4756a64b88607a045 | 5,580 | ml | OCaml | src/ocaml/domain/file_list.ml | derui/sxfiler | b88f99d4aa495ef3958ad1ca823e5a10146ca33a | [
"MIT"
] | null | null | null | src/ocaml/domain/file_list.ml | derui/sxfiler | b88f99d4aa495ef3958ad1ca823e5a10146ca33a | [
"MIT"
] | 11 | 2020-03-14T01:09:36.000Z | 2022-03-02T02:09:30.000Z | src/ocaml/domain/file_list.ml | derui/sxfiler | b88f99d4aa495ef3958ad1ca823e5a10146ca33a | [
"MIT"
] | null | null | null | open Sxfiler_core
(** Scanner module provides type to scan file tree. *)
module Id = Common.Identity.Make (struct
type t = string [@@deriving eq, show, ord]
end)
module Item_map = struct
include Map.Make (struct
type t = File_item.Id.t
let compare = File_item.Id.compare
end)
end
type scanned =
| Val... | 37.449664 | 117 | 0.667204 |
aaea5414eb276a986bd9881295f8a88c1f9944db | 6,293 | ml | OCaml | hphp/hack/test/unit/heap/test_sharedmem.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-17T02:24:38.000Z | 2020-01-17T02:24:38.000Z | hphp/hack/test/unit/heap/test_sharedmem.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/unit/heap/test_sharedmem.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*
*)
type key = Digest.t
module IntVal = struct
type t = int
let prefix = Prefix.make ()
let description = "I... | 25.581301 | 80 | 0.635786 |
8aef418e6d70a28fa1bbfa51125f038ae4f9f21f | 12,212 | ml | OCaml | client/albatross_client_bistro.ml | smorimoto/albatross | a87e5175f354dd0343a363f1e6d7fa358a546d3c | [
"0BSD"
] | null | null | null | client/albatross_client_bistro.ml | smorimoto/albatross | a87e5175f354dd0343a363f1e6d7fa358a546d3c | [
"0BSD"
] | null | null | null | client/albatross_client_bistro.ml | smorimoto/albatross | a87e5175f354dd0343a363f1e6d7fa358a546d3c | [
"0BSD"
] | null | null | null | (* (c) 2018 Hannes Mehnert, all rights reserved *)
open Lwt.Infix
open X509
let read fd =
(* now we busy read and process output *)
Logs.debug (fun m -> m "reading tls stream") ;
let rec loop () =
Vmm_tls_lwt.read_tls fd >>= function
| Error `Eof ->
Logs.debug (fun m -> m "eof from server");
... | 37.231707 | 198 | 0.668687 |
aaae790138a031071cf43d7e8fee0b2ea4920ec5 | 1,848 | mll | OCaml | src/dune_rules/ocamlobjinfo.mll | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1 | 2020-09-18T13:10:03.000Z | 2020-09-18T13:10:03.000Z | src/dune_rules/ocamlobjinfo.mll | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1 | 2020-11-12T13:27:57.000Z | 2020-11-12T13:27:57.000Z | src/dune_rules/ocamlobjinfo.mll | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | null | null | null | {
open Dune_engine
open Stdune
type t = Module_name.Unique.Set.t Ml_kind.Dict.t
let to_dyn = Ml_kind.Dict.to_dyn Module_name.Unique.Set.to_dyn
let empty =
{ Ml_kind.Dict.
intf = Module_name.Unique.Set.empty
; impl = Module_name.Unique.Set.empty
}
let add_intf (t : t) i =
{ t with intf = Module_name.Uniq... | 26.782609 | 86 | 0.636364 |
bc78f775e8299f14709969d9622b760a140a39ff | 411 | ml | OCaml | src/common/utils/optionUtils.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/common/utils/optionUtils.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/common/utils/optionUtils.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** Performs a map, but returns the original optional if there is no change **)
let ident_map f x =
match x with
| None -> x
... | 22.833333 | 79 | 0.618005 |
bc55b23cebf41505ecb8aa08066b04d2de085e35 | 3,097 | ml | OCaml | src/test/testDate.ml | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | null | null | null | src/test/testDate.ml | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | null | null | null | src/test/testDate.ml | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | null | null | null | open OUnit
let test_to_string () =
let t = {
GapiDate.epoch with
Netdate.year = 2011;
month = 10;
day = 14;
hour = 10;
minute = 30;
second = 0;
nanos = 10000000;
zone = 120;
} in
let s = GapiDate.to_string t in
assert_equal ~printer:Std.iden... | 25.595041 | 72 | 0.544075 |
aadc7683899fa5bcd22bd25767ab3f07c429559a | 10,456 | ml | OCaml | pre.ml | kayceesrk/cubicle | c2fba597da83b9ddc1195f1c8710d5330db24735 | [
"Apache-2.0"
] | 10 | 2017-08-01T16:13:02.000Z | 2022-02-18T10:12:45.000Z | pre.ml | kayceesrk/cubicle | c2fba597da83b9ddc1195f1c8710d5330db24735 | [
"Apache-2.0"
] | 4 | 2018-06-07T05:27:42.000Z | 2022-02-28T09:31:46.000Z | pre.ml | kayceesrk/cubicle | c2fba597da83b9ddc1195f1c8710d5330db24735 | [
"Apache-2.0"
] | 6 | 2018-07-11T15:42:26.000Z | 2022-02-15T17:21:03.000Z | (**************************************************************************)
(* *)
(* Cubicle *)
(* *)
(* ... | 30.573099 | 79 | 0.508607 |
aaa80f0fe127ef838349680110aa856870283750 | 245 | ml | OCaml | tests/tool-ocaml/t330-compact-1.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | 1 | 2016-05-17T14:29:13.000Z | 2016-05-17T14:29:13.000Z | tests/tool-ocaml/t330-compact-1.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | tests/tool-ocaml/t330-compact-1.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | open Lib;;
Gc.compact ();;
(**
0 CONSTINT 42
2 PUSHACC0
3 MAKEBLOCK1 0
5 POP 1
7 SETGLOBAL Lib
9 CONST0
10 C_CALL1 gc_compaction
12 ATOM0
13 SETGLOBAL T330-compact-1
15 STOP
**)
| 15.3125 | 33 | 0.534694 |
44bbb2e6e8fc695af34a8db5791d21f5382e73e2 | 2,192 | mli | OCaml | src/parsing_helper.mli | theisgroenbech/appliedPi_to_linearLogic | d6ea31957f4dabc3fee1d3e991dfa7fc435f67d6 | [
"MIT"
] | 17 | 2019-05-05T17:05:26.000Z | 2022-03-18T03:04:58.000Z | src/parsing_helper.mli | theisgroenbech/appliedPi_to_linearLogic | d6ea31957f4dabc3fee1d3e991dfa7fc435f67d6 | [
"MIT"
] | 1 | 2019-08-01T09:14:41.000Z | 2019-08-01T09:14:41.000Z | src/parsing_helper.mli | theisgroenbech/appliedPi_to_linearLogic | d6ea31957f4dabc3fee1d3e991dfa7fc435f67d6 | [
"MIT"
] | 3 | 2019-10-21T07:31:46.000Z | 2022-02-26T14:21:24.000Z | (*************************************************************
* *
* Cryptographic protocol verifier *
* *
* Bruno Blanchet, Vincent Cheval, and Marc Sylvestre *
* ... | 39.854545 | 77 | 0.584398 |
aa47adaf4b25ad81fbeda80c13c0f719af0ab1c7 | 18,899 | ml | OCaml | lib/misc.ml | HadrienRenaud/herdtools7 | 3eb29a5a03e33b02505c63338e6bc10ab3da5a5b | [
"CECILL-B"
] | null | null | null | lib/misc.ml | HadrienRenaud/herdtools7 | 3eb29a5a03e33b02505c63338e6bc10ab3da5a5b | [
"CECILL-B"
] | null | null | null | lib/misc.ml | HadrienRenaud/herdtools7 | 3eb29a5a03e33b02505c63338e6bc10ab3da5a5b | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 22.49881 | 80 | 0.546696 |
aa99bd93b73aae30ab26c39edbb827ac8c35ddfa | 101,277 | ml | OCaml | infer/src/base/Config.ml | jhonpj/infer | 01a83e694b2c55e240753cf1dfa5237faf4472f8 | [
"MIT"
] | 1 | 2018-11-10T08:04:26.000Z | 2018-11-10T08:04:26.000Z | infer/src/base/Config.ml | jhonpj/infer | 01a83e694b2c55e240753cf1dfa5237faf4472f8 | [
"MIT"
] | null | null | null | infer/src/base/Config.ml | jhonpj/infer | 01a83e694b2c55e240753cf1dfa5237faf4472f8 | [
"MIT"
] | null | null | null | (*
* 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
open PolyVariantEqual
(** Configuration values: either constant, determined at com... | 33.591045 | 172 | 0.724044 |
aac93fd9c7ef6dff0a3094bb6ba398113c527522 | 15,452 | ml | OCaml | hphp/hack/src/parser/parserSig.ml | ammarfaizi2/hhvm | 51daefa61e9f6c5e6781c853ec558796e38db4fd | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-08-03T16:16:53.000Z | 2021-08-03T16:16:53.000Z | hphp/hack/src/parser/parserSig.ml | ammarfaizi2/hhvm | 51daefa61e9f6c5e6781c853ec558796e38db4fd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/parserSig.ml | ammarfaizi2/hhvm | 51daefa61e9f6c5e6781c853ec558796e38db4fd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree. An additional
* directory.
*
**
*
* THIS FILE IS @generated; DO NOT EDIT IT
* To regenerate this file, run
*
* bu... | 68.371681 | 155 | 0.511908 |
aade43c3b5ddd2ffb08d0a2e7e2fd5b7f8915043 | 7,519 | ml | OCaml | src/incremental/compareCFG.ml | mikcp/analyzer | c506fa4bfed6dfd4d81c549e7a4c59be8122a855 | [
"MIT"
] | null | null | null | src/incremental/compareCFG.ml | mikcp/analyzer | c506fa4bfed6dfd4d81c549e7a4c59be8122a855 | [
"MIT"
] | null | null | null | src/incremental/compareCFG.ml | mikcp/analyzer | c506fa4bfed6dfd4d81c549e7a4c59be8122a855 | [
"MIT"
] | null | null | null | open MyCFG
open Queue
open Cil
include CompareAST
let eq_node (x, fun1) (y, fun2) =
match x,y with
| Statement s1, Statement s2 -> (try eq_stmt ~cfg_comp:true (s1, fun1) (s2, fun2) with Invalid_argument _ -> false)
| Function f1, Function f2 -> eq_varinfo f1.svar f2.svar
| FunctionEntry f1, FunctionEntry f2 ->... | 56.11194 | 182 | 0.68799 |
aad4bd6e13d5df2dc871f524a97c206ff96ce3ea | 6,523 | ml | OCaml | command/test/commandTest.ml | theodoretliu/pyre-check | b3dff2e32ec115e853f9171dc018d831e561439d | [
"MIT"
] | null | null | null | command/test/commandTest.ml | theodoretliu/pyre-check | b3dff2e32ec115e853f9171dc018d831e561439d | [
"MIT"
] | null | null | null | command/test/commandTest.ml | theodoretliu/pyre-check | b3dff2e32ec115e853f9171dc018d831e561439d | [
"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
open Analysis
open Pyre
open Test
let clean_environment () =
(* Clean up: hack library modifies the environment, cau... | 30.339535 | 102 | 0.653227 |
aae5e6f75f7783b65421b511816102350a6f19b9 | 3,641 | ml | OCaml | data/sp14/2690.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/2690.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/2690.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
| Cube of expr
| Addition of expr* expr;;
let pi = 4.0 *. (atan 1.0);;
let rec eval (e,x,y) =
match e with
| VarX -> x
| VarY -> y
| Sine a -> eval (a... | 18.576531 | 72 | 0.47844 |
aabe7a6a364957e5bfb9688b45ffc8c3fc881fb6 | 1,364 | ml | OCaml | infer/src/base/Location.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 1 | 2018-11-10T08:04:26.000Z | 2018-11-10T08:04:26.000Z | infer/src/base/Location.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | null | null | null | infer/src/base/Location.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 1 | 2019-10-24T14:47:52.000Z | 2019-10-24T14:47:52.000Z | (*
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
(** Location in the original source file *)
type t =
{ line: int (** The line number. -1 means "do not kn... | 29.652174 | 87 | 0.666422 |
aa2008a14b44705971bd8c7a96bbde13e2d8cf92 | 10,688 | ml | OCaml | src/not-so-smart/find_common.ml | patricoferris/ocaml-git | 8ddb937e4888151dc639200f548b9494354f0a57 | [
"0BSD"
] | null | null | null | src/not-so-smart/find_common.ml | patricoferris/ocaml-git | 8ddb937e4888151dc639200f548b9494354f0a57 | [
"0BSD"
] | null | null | null | src/not-so-smart/find_common.ml | patricoferris/ocaml-git | 8ddb937e4888151dc639200f548b9494354f0a57 | [
"0BSD"
] | null | null | null | open Sigs
module Log = (val let src = Logs.Src.create "find-common" in
Logs.src_log src : Logs.LOG)
type configuration = {
stateless : bool;
mutable multi_ack : [ `None | `Some | `Detailed ];
no_done : bool;
}
type 'uid hex = {
to_hex : 'uid -> string;
of_hex : string -> 'uid;
compare :... | 39.585185 | 100 | 0.517309 |
f3af318b60eeff63d8f04e17381c6d79d6223bc2 | 1,800 | mli | OCaml | coq/grammar/q_util.mli | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq/grammar/q_util.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq/grammar/q_util.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/ *********... | 33.962264 | 82 | 0.584444 |
bc856e5637d8d7f0236f4d822f17392dc9cd6fbf | 388 | ml | OCaml | benchmarks/C/nat/sol347.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/nat/sol347.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/nat/sol347.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type nat = ZERO | SUCC of nat
let rec natadd : nat -> nat -> nat =
fun a b ->
match a with
| ZERO -> b
| SUCC a -> SUCC (natadd a b)
;;
let rec natmul : nat -> nat -> nat =
fun a b ->
match a with
| ZERO -> ZERO
| SUCC a -> natadd b (natmul a b)
;;
let two = SUCC (SUCC Z... | 21.555556 | 39 | 0.515464 |
bc55d44b422004fb005d289decaad6f8ce22a174 | 257 | ml | OCaml | data/derived/comb/progs/unify/prog7458.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/prog2651.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2651.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec wwhile (f,b) =
let (b',c) = f b in if not c then b' else wwhile (f, b');;
let collatz n =
match n with | 1 -> 1 | _ when (n mod 2) = 0 -> n / 2 | _ -> (3 * n) + 1;;
let fixpoint (f,b) = wwhile ((f b), b);;
let _ = fixpoint (collatz, 9001);;
| 23.363636 | 76 | 0.509728 |
aa0fba92de7a0e0c6462317765c56bffe5eae8b1 | 6,082 | ml | OCaml | hphp/hack/src/utils/core/exit_status.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/core/exit_status.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/core/exit_status.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"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.
*
*)
(** care: the integers provided by deriving-enum should not be exposed
to callers, and are not the same as the 'exit... | 30.873096 | 91 | 0.714896 |
aad1fcb86f61b139f149ac29702e8f24d1287b05 | 4,894 | ml | OCaml | src/uucp_tmap5bytes.ml | mjambon/uucp | 1fe4a8c7f692c8fc829503777ca4f8d3c2cb87a4 | [
"ISC"
] | 19 | 2015-08-31T01:20:01.000Z | 2022-01-26T17:33:50.000Z | src/uucp_tmap5bytes.ml | mjambon/uucp | 1fe4a8c7f692c8fc829503777ca4f8d3c2cb87a4 | [
"ISC"
] | 17 | 2015-08-02T21:30:34.000Z | 2021-09-15T10:33:33.000Z | src/uucp_tmap5bytes.ml | mjambon/uucp | 1fe4a8c7f692c8fc829503777ca4f8d3c2cb87a4 | [
"ISC"
] | 9 | 2015-10-15T12:51:38.000Z | 2021-12-09T20:56:51.000Z | (*---------------------------------------------------------------------------
Copyright (c) 2014 The uucp programmers. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
---------------------------------------------------------------------------*)
(* uchar to 5 bytes trie... | 37.358779 | 79 | 0.588884 |
aac390a4e0b16d809f6053e47606de361601df53 | 1,962 | mll | OCaml | geas/fzn/fznLexer.mll | AppleGamer22/FIT2082 | 298459dbfdb158bdd4e6d8428e6c958d186fdb20 | [
"MIT"
] | 3 | 2021-09-29T08:06:31.000Z | 2022-03-25T10:24:54.000Z | geas/fzn/fznLexer.mll | AppleGamer22/FIT2082 | 298459dbfdb158bdd4e6d8428e6c958d186fdb20 | [
"MIT"
] | null | null | null | geas/fzn/fznLexer.mll | AppleGamer22/FIT2082 | 298459dbfdb158bdd4e6d8428e6c958d186fdb20 | [
"MIT"
] | null | null | null | (* Lexer for FlatZinc. *)
{
open Token
let keywords = Hashtbl.create 17
let get_ident str =
try
Hashtbl.find keywords str
with Not_found -> Id str
}
let digit = ['0' - '9']
let lower = ['a' - 'z']
let upper = ['A' - 'Z']
let alpha = lower | upper
let alnum = alpha | digit
let alext = alnum | ':' | '_' | '''
... | 20.87234 | 55 | 0.480632 |
aaeb59733e75cccb93336adb7af9ddf46fa0e103 | 3,695 | ml | OCaml | hphp/hack/src/server/serverRxApiShared.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/serverRxApiShared.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/serverRxApiShared.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) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE fn in the "hack" directory of this source tree.
*
*)
open Hh_prelude
type pos = Relative_path.t * int * int
type spos = string * int * int [@@deriving eq, ord]
let pos_... | 28.206107 | 77 | 0.644926 |
aad2aa40c6a7c1ee9312d5aa7437ba94c65565c1 | 18,155 | ml | OCaml | ppx/snarky_module.ml | rahulmutt/snarky | 22fe78d768c012c7ab229ff9eb95b87c7873f2bc | [
"MIT"
] | null | null | null | ppx/snarky_module.ml | rahulmutt/snarky | 22fe78d768c012c7ab229ff9eb95b87c7873f2bc | [
"MIT"
] | null | null | null | ppx/snarky_module.ml | rahulmutt/snarky | 22fe78d768c012c7ab229ff9eb95b87c7873f2bc | [
"MIT"
] | null | null | null | open Core_kernel
open Location
open Ppxlib
open Ast_helper
type lbl = label Location.loc
type longident = Ast.longident =
| Lident of string
| Ldot of longident * string
| Lapply of longident * longident
[@@deriving sexp]
type lid = longident Location.loc
let sexp_of_lid {txt; _} = sexp_of_longident txt
let ... | 35.321012 | 82 | 0.576205 |
aa7fb123ddb4a441ea75a9dfd4593135071ef982 | 49,199 | ml | OCaml | src/CStarToC11.ml | Vertalo/kremlin | 17d259b2ad254549a417acdd3a1e204ea9ca9bed | [
"Apache-2.0"
] | null | null | null | src/CStarToC11.ml | Vertalo/kremlin | 17d259b2ad254549a417acdd3a1e204ea9ca9bed | [
"Apache-2.0"
] | null | null | null | src/CStarToC11.ml | Vertalo/kremlin | 17d259b2ad254549a417acdd3a1e204ea9ca9bed | [
"Apache-2.0"
] | null | null | null | (* Copyright (c) INRIA and Microsoft Corporation. All rights reserved. *)
(* Licensed under the Apache 2.0 License. *)
(** Converting from C* to C abstract syntax. *)
module C = C11
open C
open CStar
open KPrint
open Common
(* Builtin names, meaning we don't generate declarations for them *)
let builtin_names =
l... | 35.964181 | 126 | 0.587146 |
aadee4ccac30ec45d869815f5704e829f6659743 | 200 | ml | OCaml | lib/models/user/presence.ml | EmileTrotignon/disml | 24526c8500e095c54ff45f6541ae2f8b3326b968 | [
"MIT"
] | null | null | null | lib/models/user/presence.ml | EmileTrotignon/disml | 24526c8500e095c54ff45f6541ae2f8b3326b968 | [
"MIT"
] | null | null | null | lib/models/user/presence.ml | EmileTrotignon/disml | 24526c8500e095c54ff45f6541ae2f8b3326b968 | [
"MIT"
] | null | null | null | open Core
type t =
{ user: User_t.partial_user
; game: Activity.t option [@default None]
; status: string
; activities: Activity.t list }
[@@deriving sexp, yojson {strict= false; exn= true}]
| 22.222222 | 52 | 0.68 |
aad989ef799b3c2d77ea8b78ee42de99ac3a12f7 | 13,261 | mli | OCaml | src/ocaml_trunk/typing/ctype.mli | jordwalke/merlin | 40cd1704df97d7e74e17824b684438a4e55c1771 | [
"MIT"
] | 1 | 2021-03-12T10:45:56.000Z | 2021-03-12T10:45:56.000Z | src/ocaml_trunk/typing/ctype.mli | jordwalke/merlin | 40cd1704df97d7e74e17824b684438a4e55c1771 | [
"MIT"
] | null | null | null | src/ocaml_trunk/typing/ctype.mli | jordwalke/merlin | 40cd1704df97d7e74e17824b684438a4e55c1771 | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 47.024823 | 80 | 0.657492 |
aa5b5335fcc5563a7371f66b0fc38e95f56ff438 | 10,507 | ml | OCaml | hphp/hack/src/typing/typing_sequencing.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_sequencing.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_sequencing.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"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.
*
*)
(* Pass to check for unsequenced modifications to local variables.
*
* PHP has a somewhat weird evaluation order (... | 37.794964 | 79 | 0.668602 |
aaa5405ba1d376ef99fb32b93fac4a4ea9946451 | 1,590 | ml | OCaml | csv/csv_io.ml | alexbaretta/dawg | 3d98d41ae72884e99938e41149cfb08203dec792 | [
"BSD-3-Clause"
] | 2 | 2017-03-02T19:09:01.000Z | 2017-03-03T08:57:43.000Z | csv/csv_io.ml | alexbaretta/dawg | 3d98d41ae72884e99938e41149cfb08203dec792 | [
"BSD-3-Clause"
] | null | null | null | csv/csv_io.ml | alexbaretta/dawg | 3d98d41ae72884e99938e41149cfb08203dec792 | [
"BSD-3-Clause"
] | null | null | null | type error_location = {
e_line_number : int;
e_start : int;
e_end : int
}
let error_location lexbuf =
let open Lexing in
let pos1 = lexbuf.lex_start_p in
let pos2 = lexbuf.lex_curr_p in
let line1 = pos1.pos_lnum
and start1 = pos1.pos_bol in
{
e_line_number = line1;
e_start = pos1.pos_cnum - s... | 26.5 | 73 | 0.671069 |
aab87279feaff09d6d55ad97c7c15ec09704f728 | 183 | ml | OCaml | otherlibs/action-plugin/test/dependency-rebuilt-but-not-changed/bin/foo.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | otherlibs/action-plugin/test/dependency-rebuilt-but-not-changed/bin/foo.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | otherlibs/action-plugin/test/dependency-rebuilt-but-not-changed/bin/foo.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | open Dune_action_plugin.V1
let action =
let open Dune_action_plugin.V1.O in
let+ data = read_file ~path:(Path.of_string "some_file") in
print_endline data
let () = run action
| 20.333333 | 61 | 0.743169 |
aa0549032f0a1a64d4bbfd5933ca96bce614b678 | 422 | mli | OCaml | src/vfile_kind.mli | zploskey/dune | 8bc5e202b7f192b965f59a975307f069d11133a4 | [
"MIT"
] | null | null | null | src/vfile_kind.mli | zploskey/dune | 8bc5e202b7f192b965f59a975307f069d11133a4 | [
"MIT"
] | null | null | null | src/vfile_kind.mli | zploskey/dune | 8bc5e202b7f192b965f59a975307f069d11133a4 | [
"MIT"
] | null | null | null | open Import
module Id : sig
type 'a t
val eq : 'a t -> 'b t -> ('a, 'b) eq option
end
module type S = sig
type t
val id : t Id.t
val load : Path.t -> t
val to_string : t -> string
end
type 'a t = (module S with type t = 'a)
val eq : 'a t -> 'b t -> ('a, 'b) eq option
module Make
(T : sig
... | 14.551724 | 45 | 0.526066 |
aa901c7f5e2a0696c0c6a2f8db781c132713373f | 7,982 | ml | OCaml | data/derived/comb/progs/unify/prog5024.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/prog0108.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0108.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.084967 | 148 | 0.644951 |
aa85154aedb15b48197ce7863533ece6375f3c7c | 205 | mli | OCaml | libraries/cloudwatch/lib/enableAlarmActions.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudwatch/lib/enableAlarmActions.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudwatch/lib/enableAlarmActions.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = EnableAlarmActionsInput.t
type output = unit
type error = Errors_internal.t
include
(Aws.Call with type input := input and type output := output and type
error := error) | 29.285714 | 75 | 0.726829 |
afe04a0d13d78cc85c42565a4a4d4a8691866464 | 2,809 | ml | OCaml | src/lib/child_processes/termination.ml | bettery-io/mina | 691840a42c3efe7e14bf5f8c94fe49244f1377cc | [
"Apache-2.0"
] | 1 | 2021-03-29T18:24:14.000Z | 2021-03-29T18:24:14.000Z | src/lib/child_processes/termination.ml | cashlimited/mina | 691840a42c3efe7e14bf5f8c94fe49244f1377cc | [
"Apache-2.0"
] | null | null | null | src/lib/child_processes/termination.ml | cashlimited/mina | 691840a42c3efe7e14bf5f8c94fe49244f1377cc | [
"Apache-2.0"
] | 1 | 2021-12-18T20:29:13.000Z | 2021-12-18T20:29:13.000Z | (* termination.ml -- maintain a set of child pids
when a child terminates, terminate the current process
*)
open Async
open Core_kernel
include Hashable.Make_binable (Pid)
type process_kind = Prover | Verifier
[@@deriving show {with_path= false}, yojson]
type data = {kind: process_kind; termination_expected: bool... | 35.556962 | 80 | 0.670345 |
aaa252129769db480fc62fb545777bc238bc907e | 4,707 | ml | OCaml | src/syntax.ml | rvantonder/dune | d9fcb622f6f497f5393b7003aa6613c8e5d74277 | [
"MIT"
] | null | null | null | src/syntax.ml | rvantonder/dune | d9fcb622f6f497f5393b7003aa6613c8e5d74277 | [
"MIT"
] | null | null | null | src/syntax.ml | rvantonder/dune | d9fcb622f6f497f5393b7003aa6613c8e5d74277 | [
"MIT"
] | null | null | null | open Import
module Version = struct
module T = struct
type t = int * int
let compare (major_a, minor_a) (major_b, minor_b) =
match Int.compare major_a major_b with
| (Gt | Lt) as ne -> ne
| Eq -> Int.compare minor_a minor_b
end
include T
module Infix = Comparable.Operators(T)
le... | 26.296089 | 79 | 0.61228 |
bc45f599bebb51f3c2b35a5917b809fa068df136 | 1,151 | ml | OCaml | src/lib/graphql_lib/base_types.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/graphql_lib/base_types.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/graphql_lib/base_types.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | open Core_kernel
open Signature_lib
open Graphql_async
open Schema
(* HACK: To prevent the compiler from identifying the `ctx value in a graphql
typ to be a weak variable, the type needs to be created as unit -> ('ctx,
'output) value *)
let unsigned_scalar_scalar ~to_string typ_name =
scalar typ_name
~doc:... | 33.852941 | 79 | 0.721981 |
aae0dd50a5f21bc475c0988c442034b7b69dfa68 | 8,514 | ml | OCaml | lib/m_tree.ml | jfeser/mtree | d2596253dd16c4b6c705310ccd8aa3e599ffc8b9 | [
"MIT"
] | null | null | null | lib/m_tree.ml | jfeser/mtree | d2596253dd16c4b6c705310ccd8aa3e599ffc8b9 | [
"MIT"
] | null | null | null | lib/m_tree.ml | jfeser/mtree | d2596253dd16c4b6c705310ccd8aa3e599ffc8b9 | [
"MIT"
] | null | null | null | module type T = sig
type 'a t
val create :
?branching_factor:int ->
?eq:('a -> 'a -> bool) ->
('a -> 'a -> float) ->
'a t
val iter : 'a t -> 'a Iter.t
val insert : 'a t -> 'a -> unit
val range : 'a t -> 'a -> radius:float -> 'a Iter.t
end
module Private = struct
type 'a obj = {
value ... | 32.007519 | 95 | 0.551327 |
aad3784f4722599e950143f7ae276441f4fb7d49 | 183 | mli | OCaml | src/unicode.mli | YieldNull/OCaml.jvm | f9503d05577dab6dd6db3cb0b3f610fa49a6366f | [
"MIT"
] | 4 | 2017-03-01T17:01:16.000Z | 2021-11-21T15:58:24.000Z | src/unicode.mli | YieldNull/OCaml.jvm | f9503d05577dab6dd6db3cb0b3f610fa49a6366f | [
"MIT"
] | null | null | null | src/unicode.mli | YieldNull/OCaml.jvm | f9503d05577dab6dd6db3cb0b3f610fa49a6366f | [
"MIT"
] | 1 | 2017-03-01T17:01:23.000Z | 2017-03-01T17:01:23.000Z | open Core
val modified_utf8_to_unicode : string -> string
val modified_utf8_to_uchar_arr : string -> (Jvalue.t) Array.t
val uchar_arr_to_modified_utf8 : (Jvalue.t) Array.t -> string
| 30.5 | 61 | 0.781421 |
bc9f4d7ea4f19d2ba18780388bb8fd2754ede755 | 54,350 | ml | OCaml | src/parser.ml | ahrefs/omd | 2e121af7b104e2f4a4e179c120f94150d39db774 | [
"0BSD"
] | 109 | 2015-03-30T16:11:17.000Z | 2022-03-06T23:13:10.000Z | src/parser.ml | ahrefs/omd | 2e121af7b104e2f4a4e179c120f94150d39db774 | [
"0BSD"
] | 139 | 2015-04-07T19:04:06.000Z | 2022-03-12T03:46:27.000Z | src/parser.ml | ahrefs/omd | 2e121af7b104e2f4a4e179c120f94150d39db774 | [
"0BSD"
] | 36 | 2015-10-25T19:26:58.000Z | 2022-03-06T23:20:41.000Z | open Ast
open Compat
module Sub : sig
type t
val of_string : string -> t
val to_string : t -> string
val offset : int -> t -> t
val lexbuf : t -> Lexing.lexbuf
val contains : string -> t -> bool
val print : Format.formatter -> t -> unit
val head : ?rev:unit -> t -> char option
val tail : ?rev... | 24.166296 | 80 | 0.433045 |
aaec45c4c9d5db50eac8e1949a337fbd8de55c48 | 572 | ml | OCaml | src/Library/NSHashSet.ml | jberdine/SLAyer | 540976c814a5804a88d705fba5ac12382556171c | [
"MIT"
] | 1 | 2022-02-16T07:43:50.000Z | 2022-02-16T07:43:50.000Z | src/Library/NSHashSet.ml | jberdine/SLAyer | 540976c814a5804a88d705fba5ac12382556171c | [
"MIT"
] | null | null | null | src/Library/NSHashSet.ml | jberdine/SLAyer | 540976c814a5804a88d705fba5ac12382556171c | [
"MIT"
] | 1 | 2022-02-28T18:10:26.000Z | 2022-02-28T18:10:26.000Z | (* Copyright (c) Microsoft Corporation. All rights reserved. *)
open NSPolyHashMap
(* Note: remove polymorphic interface *)
module HashSet = struct
type 'a t = ('a, unit) PolyHMap.t
let create = PolyHMap.create
let add s x = PolyHMap.add s x ()
let remove s x = PolyHMap.remove s x
let cardinal = PolyHMa... | 26 | 64 | 0.63986 |
aa513b535c5406005fb439db54d91044fa9962c8 | 999 | ml | OCaml | lib/language/omega_parser.ml | indradhanush/comby | 6442ef73a12092d224086d78b67926148e0e4724 | [
"Apache-2.0"
] | 1 | 2021-06-16T22:43:47.000Z | 2021-06-16T22:43:47.000Z | lib/language/omega_parser.ml | indradhanush/comby | 6442ef73a12092d224086d78b67926148e0e4724 | [
"Apache-2.0"
] | null | null | null | lib/language/omega_parser.ml | indradhanush/comby | 6442ef73a12092d224086d78b67926148e0e4724 | [
"Apache-2.0"
] | 1 | 2021-06-16T22:43:39.000Z | 2021-06-16T22:43:39.000Z | open Core
open Angstrom
open Ast
let (|>>) p f =
p >>= fun x -> return (f x)
let alphanum =
satisfy (function
| 'a' .. 'z'
| 'A' .. 'Z'
| '0' .. '9' -> true
| _ -> false)
let variable_parser =
(string Syntax.variable_left_delimiter
*> (many (alphanum <|> char '_') |>> String.of_cha... | 20.8125 | 78 | 0.614615 |
aa8ba89f1cedb3414a501abf9d99c6257db777fc | 21,623 | ml | OCaml | lib/smyth/parse.ml | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 15 | 2020-08-27T10:51:14.000Z | 2021-12-24T08:17:28.000Z | lib/smyth/parse.ml | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 18 | 2020-06-28T18:13:20.000Z | 2021-03-12T16:18:05.000Z | lib/smyth/parse.ml | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 5 | 2021-02-23T16:22:25.000Z | 2022-01-24T18:36:45.000Z | open Bark
open Bark.Syntax
open Lang
(* Parser specialization *)
type problem =
| ExpectingLeftParen
| ExpectingRightParen
| ExpectingLeftBracket
| ExpectingRightBracket
| ExpectingComma
| ExpectingRightArrow
| ExpectingLAngle
| ExpectingRAngle
| ExpectingSpace
| ExpectingPound
| ExpectingDot
... | 23.99889 | 79 | 0.455117 |
aab3366c600f2facdd78e5925e12997b72015a1b | 4,198 | mli | OCaml | src/uniform_array.mli | KDWSS/base | 6569501b3015d0443bc925dea4a824fddb24d1bb | [
"MIT"
] | 641 | 2016-09-16T15:51:06.000Z | 2022-03-31T19:30:56.000Z | src/uniform_array.mli | KDWSS/base | 6569501b3015d0443bc925dea4a824fddb24d1bb | [
"MIT"
] | 121 | 2016-09-17T07:30:00.000Z | 2022-03-03T21:00:03.000Z | src/uniform_array.mli | KDWSS/base | 6569501b3015d0443bc925dea4a824fddb24d1bb | [
"MIT"
] | 95 | 2016-09-16T23:31:38.000Z | 2022-03-19T01:35:06.000Z | (** Same semantics as ['a Array.t], except it's guaranteed that the representation array
is not tagged with [Double_array_tag], the tag for float arrays.
This means it's safer to use in the presence of [Obj.magic], but it's slower than
normal [Array] if you use it with floats.
It can often be faster t... | 37.482143 | 90 | 0.648166 |
bccc131c8ca2b8e046b03820eb6605611a78e151 | 24,280 | ml | OCaml | experiments/ownership-inference/infer/infer/src/integration/Driver.ml | SunghoLee/hafnium-verification | 382494a2280a751a1e33f2676e8bbf5d5e2d9dbf | [
"Apache-2.0"
] | 30 | 2019-06-28T15:20:25.000Z | 2021-08-25T11:37:30.000Z | experiments/ownership-inference/infer/infer/src/integration/Driver.ml | SunghoLee/hafnium-verification | 382494a2280a751a1e33f2676e8bbf5d5e2d9dbf | [
"Apache-2.0"
] | 39 | 2019-06-28T15:08:12.000Z | 2020-07-17T01:44:33.000Z | experiments/ownership-inference/infer/infer/src/integration/Driver.ml | SunghoLee/hafnium-verification | 382494a2280a751a1e33f2676e8bbf5d5e2d9dbf | [
"Apache-2.0"
] | 17 | 2019-06-28T14:40:41.000Z | 2021-03-11T19:26:13.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
open PolyVariantEqual
(** entry points for top-level functionalities such as capture, analysis, and reporting *)
module... | 39.351702 | 121 | 0.65902 |
bc46955c405efc514106aed8259dc99cceba8a4d | 18,397 | ml | OCaml | src/hack_forked/procs/workerController.ml | w01fgang/flow | a301e4d995d8c033e9aed05d24d943caf43b83b1 | [
"MIT"
] | null | null | null | src/hack_forked/procs/workerController.ml | w01fgang/flow | a301e4d995d8c033e9aed05d24d943caf43b83b1 | [
"MIT"
] | 1 | 2020-06-26T11:29:23.000Z | 2020-06-26T11:29:23.000Z | src/hack_forked/procs/workerController.ml | w01fgang/flow | a301e4d995d8c033e9aed05d24d943caf43b83b1 | [
"MIT"
] | 1 | 2021-01-06T10:57:53.000Z | 2021-01-06T10:57:53.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Base
open Worker
(*****************************************************************************
* Module building workers
*... | 35.653101 | 100 | 0.62782 |
aa9901658229e899eb8fd5650f0a90753cd35210 | 1,006 | mli | OCaml | syntax/xml/parser.mli | dsheets/ocaml-cow | 4db79d7e9cbac64e943fafb2496580cd466039b5 | [
"0BSD"
] | null | null | null | syntax/xml/parser.mli | dsheets/ocaml-cow | 4db79d7e9cbac64e943fafb2496580cd466039b5 | [
"0BSD"
] | null | null | null | syntax/xml/parser.mli | dsheets/ocaml-cow | 4db79d7e9cbac64e943fafb2496580cd466039b5 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2010 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS... | 41.916667 | 75 | 0.750497 |
aab91983d0ee817406e3246a0185d5143d7ad971 | 2,474 | ml | OCaml | data/sp14/1287.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/1287.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/1287.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr;;
let buildAverage (e1,e2) = Average (e1, e2);;
let buildCosine e = Cosine e;;
let buildSine e = Sine e;;
let buildThresh (a,b,a_less,b_less) = Thresh (a, b, a_le... | 21.327586 | 73 | 0.525869 |
aa8e9cb820adfc86d63f05871f5e6a43a89d9309 | 6,525 | mli | OCaml | src/maps.mli | jberdine/ICS | 62b67db7e213bf1f4ac183eedec2c3e5072f3278 | [
"MIT"
] | 3 | 2020-07-23T15:11:49.000Z | 2020-08-25T11:56:33.000Z | src/maps.mli | jberdine/ICS | 62b67db7e213bf1f4ac183eedec2c3e5072f3278 | [
"MIT"
] | null | null | null | src/maps.mli | jberdine/ICS | 62b67db7e213bf1f4ac183eedec2c3e5072f3278 | [
"MIT"
] | 4 | 2020-05-14T22:47:12.000Z | 2020-12-16T09:54:31.000Z | (*
* The MIT License (MIT)
*
* Copyright (c) 2020 SRI International
*
* 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
* t... | 39.071856 | 81 | 0.633103 |
aaa8f5f0292e01b4e15594adb3d060e2b0f37dbd | 14,380 | ml | OCaml | worldgen/Biome_overlay.ml | nenofite/map-gen | 0beda8b34c7145cdf6f47991f425a959bba6359b | [
"MIT"
] | 1 | 2020-11-17T03:09:38.000Z | 2020-11-17T03:09:38.000Z | worldgen/Biome_overlay.ml | nenofite/map-gen | 0beda8b34c7145cdf6f47991f425a959bba6359b | [
"MIT"
] | null | null | null | worldgen/Biome_overlay.ml | nenofite/map-gen | 0beda8b34c7145cdf6f47991f425a959bba6359b | [
"MIT"
] | null | null | null | open! Core_kernel
include Biome_overlay_i
let scale_factor = 8
let to_minecraft_biome = function
| Ocean ->
Minecraft.Biome.Ocean
| Plain _ ->
Minecraft.Biome.Plains
| Forest _ ->
Minecraft.Biome.Forest
| Desert _ ->
Minecraft.Biome.Desert
| Savanna ->
Minecraft.Biome.Savanna
... | 31.125541 | 102 | 0.620376 |
aac86fd68a800e1178074e97df1896e079d4bc4f | 7,745 | ml | OCaml | hphp/hack/src/server/serverInit.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverInit.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverInit.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Result.Export
open SearchServiceRunner
open ServerEnv
module SLC = ServerLocalConfig
include S... | 35.045249 | 90 | 0.661201 |
4476a67cc5d49e2d30551d236a794d41c1bb931e | 316 | ml | OCaml | result/func/mirror/sub4/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/func/mirror/sub9/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/func/mirror/sub9/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type btree = Empty | Node of (int * btree * btree)
let rec __s3 (__s4 : btree) : btree =
match __s4 with
| Node (__s5, __s6, __s7) ->
if __s6 = Empty && __s7 = Empty then Node (__s5, __s7, __s6)
else Node (__s5, __s3 __s7, __s3 __s6)
| Empty -> Empty
let rec mirror (t : btree) : btree = __s3 t
| 26.333333 | 66 | 0.607595 |
aa69117c629e73c5561a3f2bdd8782efae0834b3 | 1,675 | ml | OCaml | libraries/ec2/lib/associateAddress.ml | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/ec2/lib/associateAddress.ml | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/ec2/lib/associateAddress.ml | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
open Aws
type input = AssociateAddressRequest.t
type output = AssociateAddressResult.t
type error = Errors_internal.t
let service = "ec2"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_... | 27.016129 | 90 | 0.620896 |
bc44a03e1b57526b09bb5f5c7acb4cf7f1c46bb7 | 4,427 | ml | OCaml | hphp/hack/src/server/serverAutoComplete.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2019-09-01T19:40:10.000Z | 2019-10-18T13:30:30.000Z | hphp/hack/src/server/serverAutoComplete.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-12-16T15:39:15.000Z | 2018-12-16T15:39:16.000Z | hphp/hack/src/server/serverAutoComplete.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-11-17T04:11:10.000Z | 2018-11-17T04:11:10.000Z | (**
* 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.
*
*)
(*****************************************************************************)
(* Code for auto-completion *)
(***... | 41.373832 | 117 | 0.728258 |
aa2c6b013f3cbd47e3beb2b287f97e22647fb3e4 | 219 | mli | OCaml | libraries/sdb/lib/domainMetadata.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/sdb/lib/domainMetadata.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/sdb/lib/domainMetadata.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = DomainMetadataRequest.t
type output = DomainMetadataResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 31.285714 | 74 | 0.748858 |
aa6437231f2f967c75ebf50c629f716b828ee4be | 58 | ml | OCaml | src/atdgen_runtime.ml | pewniak747/bs-atdgen-codec-runtime | 85be0f8bfcc436e125ea7e3e4c572484f7e06a1d | [
"MIT"
] | 29 | 2018-08-28T15:00:33.000Z | 2022-03-06T00:04:45.000Z | src/atdgen_runtime.ml | pewniak747/bs-atdgen-codec-runtime | 85be0f8bfcc436e125ea7e3e4c572484f7e06a1d | [
"MIT"
] | 24 | 2018-09-11T12:09:32.000Z | 2022-03-23T05:14:47.000Z | src/atdgen_runtime.ml | pewniak747/bs-atdgen-codec-runtime | 85be0f8bfcc436e125ea7e3e4c572484f7e06a1d | [
"MIT"
] | 10 | 2019-06-08T15:17:09.000Z | 2021-09-22T05:25:02.000Z | module Util = struct
type 'a ocaml_array = 'a array
end
| 14.5 | 32 | 0.706897 |
aabe6e907c82c8f8f9afb15e630f55b873679f94 | 162 | mli | OCaml | test/ocaml/Person.mli | LumiGuide/ocaml-export | 7f803eb961851ceb4853fae0e741378d86237d2b | [
"BSD-3-Clause"
] | 13 | 2018-02-16T08:30:21.000Z | 2021-06-15T21:38:32.000Z | test/ocaml/Person.mli | plow-technologies/reason-export | 752167f5df37d43534d27d9f63bb512eec1e750d | [
"BSD-3-Clause"
] | 10 | 2018-01-17T02:10:28.000Z | 2019-04-23T21:56:43.000Z | test/ocaml/Person.mli | plow-technologies/reason-export | 752167f5df37d43534d27d9f63bb512eec1e750d | [
"BSD-3-Clause"
] | 1 | 2021-07-03T20:02:22.000Z | 2021-07-03T20:02:22.000Z | type person =
{ id : int
; name : (string) option
}
val encodePerson : person -> Js_json.t
val decodePerson : Js_json.t -> (person, string) Belt.Result.t
| 18 | 62 | 0.654321 |
aae519d127f210b17392531f5ae902e74472ca7e | 1,526 | ml | OCaml | ocaml/p0078.ml | kwj/project-euler | 8d12664f69a99725d475208273898b1aabe06fbf | [
"Unlicense"
] | null | null | null | ocaml/p0078.ml | kwj/project-euler | 8d12664f69a99725d475208273898b1aabe06fbf | [
"Unlicense"
] | null | null | null | ocaml/p0078.ml | kwj/project-euler | 8d12664f69a99725d475208273898b1aabe06fbf | [
"Unlicense"
] | null | null | null | (* Project Euler: Problem 78 *)
(*
p(5) = 7
p(10) = 42
p(50) = 204226
p(100) = 190569292
p(200) = 3972999029388
p(500) = 2300165032574323995027
p(1000) = 24061467864032622473692149727991
...
Hmm, I needed to find another way instead of dynamic programming.
Finally, I gave up trying to solve it o... | 23.84375 | 86 | 0.57536 |
aa90bbf38c45ec488d702503a86569bcf01b355c | 21,602 | ml | OCaml | core/src/date0.ml | bogdan2412/core | ecbbf36987decc66e0974e9eeb749b57aca9c6c7 | [
"MIT"
] | null | null | null | core/src/date0.ml | bogdan2412/core | ecbbf36987decc66e0974e9eeb749b57aca9c6c7 | [
"MIT"
] | null | null | null | core/src/date0.ml | bogdan2412/core | ecbbf36987decc66e0974e9eeb749b57aca9c6c7 | [
"MIT"
] | 4 | 2022-03-21T20:04:46.000Z | 2022-03-22T00:07:16.000Z | open! Import
open Std_internal
open Digit_string_helpers
let is_leap_year ~year = (year mod 4 = 0 && not (year mod 100 = 0)) || year mod 400 = 0
(* Create a local private date type to ensure that all dates are created via
Date.create_exn.
*)
module Stable = struct
module V1 = struct
module Without_comparable... | 32.386807 | 96 | 0.624572 |
aad8c52ff1b6c2a757d26617ee32ada51b41b672 | 14,272 | ml | OCaml | src-c/digestif_native.ml | maxtori/digestif | 430cbcbb37c5b261931b5f1c0a1e82841eff71c5 | [
"MIT"
] | null | null | null | src-c/digestif_native.ml | maxtori/digestif | 430cbcbb37c5b261931b5f1c0a1e82841eff71c5 | [
"MIT"
] | null | null | null | src-c/digestif_native.ml | maxtori/digestif | 430cbcbb37c5b261931b5f1c0a1e82841eff71c5 | [
"MIT"
] | null | null | null | (* Copyright (c) 2014-2016 David Kaloper Meršinjak
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTH... | 27.875 | 80 | 0.649313 |
aa3a0f2c7ba6e98959e5e691b0ae3a0658201029 | 41,866 | ml | OCaml | src/typing/types_js.ml | mcanthony/flow-type | fb50e311cbc4d6b716889419796ff8a8746bd7f1 | [
"BSD-3-Clause"
] | 1 | 2015-10-01T01:50:43.000Z | 2015-10-01T01:50:43.000Z | src/typing/types_js.ml | mcanthony/flow-type | fb50e311cbc4d6b716889419796ff8a8746bd7f1 | [
"BSD-3-Clause"
] | null | null | null | src/typing/types_js.ml | mcanthony/flow-type | fb50e311cbc4d6b716889419796ff8a8746bd7f1 | [
"BSD-3-Clause"
] | 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 "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(* This modul... | 36.724561 | 80 | 0.698443 |
aaad331f4104354007c1197b760d4d26fbad79b8 | 11,695 | mli | OCaml | src/lib_shell/state.mli | xtzbaker/tezos | f2961db7406b56b060da1895857f48835ecfc260 | [
"MIT"
] | null | null | null | src/lib_shell/state.mli | xtzbaker/tezos | f2961db7406b56b060da1895857f48835ecfc260 | [
"MIT"
] | null | null | null | src/lib_shell/state.mli | xtzbaker/tezos | f2961db7406b56b060da1895857f48835ecfc260 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 35.984615 | 99 | 0.63959 |
aabf85a1ed86c516e70f5ad440c5a3ddd8ec08d8 | 18,788 | mli | OCaml | analysis/type.mli | fabiomassimo/pyre-check | e2f2be7c14a4125d19158b265aebcc666fdd0600 | [
"MIT"
] | 1 | 2020-08-12T14:33:46.000Z | 2020-08-12T14:33:46.000Z | analysis/type.mli | fabiomassimo/pyre-check | e2f2be7c14a4125d19158b265aebcc666fdd0600 | [
"MIT"
] | null | null | null | analysis/type.mli | fabiomassimo/pyre-check | e2f2be7c14a4125d19158b265aebcc666fdd0600 | [
"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 Ast
module Record : sig
module Variable : sig
type state [@@deriving compare, eq, sexp, show, hash]
module RecordN... | 23.872935 | 99 | 0.668512 |
aaa6a8ef93517971d28ba61a55cd73f167af45a6 | 7,542 | ml | OCaml | hphp/hack/src/hh_oxidize/convert_type.ml | fyunaz/hhvm | fc52cae6762431395818de9edbb0b918167c4b65 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-05-15T22:07:47.000Z | 2021-05-15T22:07:47.000Z | hphp/hack/src/hh_oxidize/convert_type.ml | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hh_oxidize/convert_type.ml | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Asttypes
open Longident
open Parsetree
open Reordered_argument_collections
open Utils
open State
open Ru... | 35.07907 | 85 | 0.631265 |
aa4c04acb591a537cab2b5455cd59f967e4bf57f | 5,542 | ml | OCaml | src/lib/crypto/kimchi_backend/common/field.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/crypto/kimchi_backend/common/field.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/crypto/kimchi_backend/common/field.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | open Intf
open Core_kernel
module Bignum_bigint = Snarky_backendless.Backend_extended.Bignum_bigint
module type Input_intf = sig
type t
module Bigint : Bigint.Intf
val size : unit -> Bigint.t
val size_in_bits : unit -> int
val to_bigint : t -> Bigint.t
val of_bigint : Bigint.t -> t
val of_int : int... | 19.652482 | 81 | 0.57777 |
449a8e642e107bdc02c785df69a1d56d841bb246 | 23,318 | ml | OCaml | hphp/hack/src/typing/tast_check/readonly_check.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-12-02T18:52:19.000Z | 2021-12-02T18:52:19.000Z | hphp/hack/src/typing/tast_check/readonly_check.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/readonly_check.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Aast
module Env = Tast_env
module Cls = Decl_provider.Class
module SN = Naming_special_names
mod... | 35.763804 | 128 | 0.6299 |
aa1f1537defdab9b1f932aea8f6d63b3cde30c2e | 22,410 | ml | OCaml | lib/parse.ml | anmonteiro/ocaml-quic | 7f1a06fbe5380954bf49adc53a8fa7458bdc0024 | [
"BSD-3-Clause"
] | 21 | 2021-01-14T19:16:28.000Z | 2021-08-18T17:50:31.000Z | lib/parse.ml | anmonteiro/ocaml-quic | 7f1a06fbe5380954bf49adc53a8fa7458bdc0024 | [
"BSD-3-Clause"
] | null | null | null | lib/parse.ml | anmonteiro/ocaml-quic | 7f1a06fbe5380954bf49adc53a8fa7458bdc0024 | [
"BSD-3-Clause"
] | 1 | 2021-04-08T09:23:06.000Z | 2021-04-08T09:23:06.000Z | (*----------------------------------------------------------------------------
* Copyright (c) 2020 António Nuno Monteiro
*
* 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. Redi... | 34.109589 | 83 | 0.623115 |
aa4e21a81fbbf86a82dd3c1d7def0b9b651550a2 | 966 | ml | OCaml | test/unit/fixtures/instrument/assert.reference.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | test/unit/fixtures/instrument/assert.reference.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | test/unit/fixtures/instrument/assert.reference.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | [@@@ocaml.text "/*"]
module Bisect_visit___assert___ml =
struct
let ___bisect_visit___ =
let point_definitions =
"\132\149\166\190\000\000\000\006\000\000\000\002\000\000\000\005\000\000\000\005\144\160\001\000\163@" in
let `Staged cb =
Bisect.Runtime.register_file "assert.ml" ~point_c... | 32.2 | 114 | 0.662526 |
aa29e216e4f5809c0f59a6a51f0e080d107b53a5 | 3,223 | ml | OCaml | belt_src/belt_internalSetString.ml | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 684 | 2018-05-24T14:14:06.000Z | 2022-03-14T21:13:22.000Z | belt_src/belt_internalSetString.ml | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 439 | 2018-05-25T21:16:18.000Z | 2021-12-03T11:28:10.000Z | belt_src/belt_internalSetString.ml | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 107 | 2018-05-30T23:53:50.000Z | 2022-01-10T10:50:53.000Z | # 2 "../others/internal_set.cppo.ml"
type value = string
module S = Belt_SortArrayString
# 12 "../others/internal_set.cppo.ml"
module N = Belt_internalAVLset
module A = Belt_Array
type t = value N.t
let rec has (t : t) (x : value) =
match N.toOpt t with
| None -> false
| Some n ->
let... | 24.792308 | 80 | 0.517841 |
aac607076d9424a9929077902920fd946c37d309 | 18,800 | ml | OCaml | src/findlib/fl_package_base.ml | AltGr/ocamlfind | d905d242d1b52037416e106db998ef38c7e6f06f | [
"MIT"
] | 18 | 2019-10-02T13:19:18.000Z | 2022-03-17T11:20:10.000Z | src/findlib/fl_package_base.ml | AltGr/ocamlfind | d905d242d1b52037416e106db998ef38c7e6f06f | [
"MIT"
] | 27 | 2019-10-21T16:13:08.000Z | 2022-03-23T23:36:56.000Z | src/findlib/fl_package_base.ml | AltGr/ocamlfind | d905d242d1b52037416e106db998ef38c7e6f06f | [
"MIT"
] | 17 | 2019-10-03T20:57:42.000Z | 2022-02-12T05:51:51.000Z | (* $Id$
* ----------------------------------------------------------------------
*
*)
open Fl_metascanner
exception No_such_package of string * string
(* (name, reason) *)
type package =
{ package_name : string;
package_dir : string;
package_meta : string;
package_defs : Fl_metascanner.pkg... | 25.966851 | 92 | 0.648351 |
aae3700451b377c08c30ba2dc75873bd4d593e9e | 176,107 | ml | OCaml | src/ocaml/typer_405/typing/typecore.ml | bluddy/merlin | cdb6b7100dce8f02970d1b69f3a68fe498ec22b4 | [
"MIT"
] | null | null | null | src/ocaml/typer_405/typing/typecore.ml | bluddy/merlin | cdb6b7100dce8f02970d1b69f3a68fe498ec22b4 | [
"MIT"
] | null | null | null | src/ocaml/typer_405/typing/typecore.ml | bluddy/merlin | cdb6b7100dce8f02970d1b69f3a68fe498ec22b4 | [
"MIT"
] | 1 | 2017-11-06T17:46:59.000Z | 2017-11-06T17:46:59.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 37.929571 | 80 | 0.592753 |
aaf2854e49a595ce0a37a6b2b7e337d252c034b6 | 3,135 | ml | OCaml | parser/cttm_to_ctt.ml | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | 1 | 2018-02-10T02:52:09.000Z | 2018-02-10T02:52:09.000Z | parser/cttm_to_ctt.ml | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | null | null | null | parser/cttm_to_ctt.ml | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | null | null | null | (*
Part of Fail-Safe C Compiler. Produced by Yutaka Oiwa.
(c) 2001-2005 Yutaka Oiwa.
(c) 2005-2007 AIST.
This file is written by Yutaka Oiwa in 2002-2006. *)
open Big_int
open Locterm
open Ctt_abstree
open Cttm_abstree
open Util
let dprintf l f = Debug.dprintf ~category:111 l f
let get_debug_flags () = ... | 29.575472 | 85 | 0.691866 |
aad0d79c8e7fef30519413e81b3bb6ef7609bb26 | 2,606 | ml | OCaml | vendor/ppx_hash/runtime-lib/test/perfect_hash.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/ppx_hash/runtime-lib/test/perfect_hash.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/ppx_hash/runtime-lib/test/perfect_hash.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open Core_kernel
open Poly
(* This is not intended as a realistic candidate hash function since it allocates when
hashing, but as some kind of `perfect' baseline against which other hash functions can
be compared and judged.
It is a perfect hash in the sense that it produces no collisions of intermediate sta... | 31.780488 | 90 | 0.678818 |
aaf4d1ec2a9e729523781a3856c056b9a960212e | 52,572 | ml | OCaml | infer/src/bufferoverrun/bounds.ml | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"MIT"
] | 4 | 2020-06-16T14:40:24.000Z | 2021-07-28T18:02:26.000Z | infer/src/bufferoverrun/bounds.ml | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"MIT"
] | 25 | 2021-02-08T13:49:24.000Z | 2022-02-28T03:34:19.000Z | infer/src/bufferoverrun/bounds.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
open! AbstractDomain.Types
module F = Format
module L = Logging
exception Not_One_Symbol
open Ints
type sign = Plus |... | 36.206612 | 166 | 0.575515 |
aab2f85c222ed6812c46a5704418b7b50a4be93e | 101,393 | ml | OCaml | src/server/command_handler/commandHandler.ml | w01fgang/flow | a301e4d995d8c033e9aed05d24d943caf43b83b1 | [
"MIT"
] | 1 | 2020-06-21T01:14:46.000Z | 2020-06-21T01:14:46.000Z | src/server/command_handler/commandHandler.ml | w01fgang/flow | a301e4d995d8c033e9aed05d24d943caf43b83b1 | [
"MIT"
] | 2 | 2021-05-11T22:39:32.000Z | 2021-09-02T16:14:18.000Z | src/server/command_handler/commandHandler.ml | w01fgang/flow | a301e4d995d8c033e9aed05d24d943caf43b83b1 | [
"MIT"
] | 1 | 2021-01-06T10:57:53.000Z | 2021-01-06T10:57:53.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Base.Result
open ServerEnv
open Utils_js
open Lsp
(* Returns the result of calling `type_contents`, along with a bool option ... | 41.742692 | 163 | 0.679347 |
aaa4dee31d1e6895bd6ab24a66212c0b766c2af2 | 9,697 | ml | OCaml | srk/test/test_termination.ml | jbreck/duet-jbreck | 3bf4aa0c69983d15f199bf02f294d356c354e932 | [
"MIT"
] | 1 | 2020-08-15T15:26:25.000Z | 2020-08-15T15:26:25.000Z | srk/test/test_termination.ml | jbreck/duet-jbreck | 3bf4aa0c69983d15f199bf02f294d356c354e932 | [
"MIT"
] | null | null | null | srk/test/test_termination.ml | jbreck/duet-jbreck | 3bf4aa0c69983d15f199bf02f294d356c354e932 | [
"MIT"
] | null | null | null | open Srk
open Syntax
open OUnit
open Test_pervasives
let tr_symbols = [(wsym,wsym');(xsym,xsym');(ysym,ysym');(zsym,zsym')]
let mp_exp =
let all_sym = (List.map fst tr_symbols)@(List.map snd tr_symbols) in
fun tr_symbols phi ->
TerminationExp.mp
(module Iteration.LinearRecurrenceInequation)
srk
(Tr... | 35.782288 | 97 | 0.496958 |
aae96d9208bb02b15fdbef5e6a8ac76ff297edfe | 4,847 | ml | OCaml | hphp/hack/src/typing/tast_check/instantiability_check.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-17T02:24:38.000Z | 2020-01-17T02:24:38.000Z | hphp/hack/src/typing/tast_check/instantiability_check.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/instantiability_check.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Aast
module ShapeMap = Aast.ShapeMap
module SN = Naming_special_names
module Cls = Decl_provide... | 27.697143 | 79 | 0.639983 |
aa6c6e7b3ed4df42ce47d1a9ae965070f9e4f24b | 3,029 | mli | OCaml | libraries/route-53/lib/createReusableDelegationSet.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/route-53/lib/createReusableDelegationSet.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/route-53/lib/createReusableDelegationSet.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<p>Creates a delegation set (a group of four name servers) that can be reused by multiple hosted zones. If a hosted zoned ID is specified, <code>CreateReusableDelegationSet</code> marks the delegation set associated with that zone as reusable.</p> <note> <p>You can't associate a reusable delegation set with a priv... | 126.208333 | 2,239 | 0.752394 |
aa83126572d3da5d88feac5fed67f77e97f08f9d | 4,986 | mli | OCaml | test/tests/autotest/dual.mli | rems-project/netsem | 0b02450eee334fc42f74ad3da09d3ce1a0698a48 | [
"BSD-2-Clause-FreeBSD"
] | 34 | 2018-02-26T20:37:44.000Z | 2022-02-24T01:49:55.000Z | test/tests/autotest/dual.mli | PeterSewell/netsem | 0b02450eee334fc42f74ad3da09d3ce1a0698a48 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | test/tests/autotest/dual.mli | PeterSewell/netsem | 0b02450eee334fc42f74ad3da09d3ce1a0698a48 | [
"BSD-2-Clause-FreeBSD"
] | 5 | 2015-04-24T15:26:34.000Z | 2017-12-12T23:39:13.000Z | (* ---------------------------------------------------------------------- *)
(* Netsem Tthee Automated Dual Tests Helper Code *)
(* Steve Bishop - Created 20030504 *)
(* $Id: dual.mli,v 1.9 2006/08/17 10:28:25 tjr22 Exp $ *)
(* -----------... | 39.571429 | 102 | 0.558965 |
aa7b250a522d1984b9abf3a0a52de4a369730802 | 10,000 | ml | OCaml | src/ser.ml | ai4reason/Proofgold | aa04e3abe97f7060573d32a27822e577ef60cae3 | [
"MIT"
] | null | null | null | src/ser.ml | ai4reason/Proofgold | aa04e3abe97f7060573d32a27822e577ef60cae3 | [
"MIT"
] | null | null | null | src/ser.ml | ai4reason/Proofgold | aa04e3abe97f7060573d32a27822e577ef60cae3 | [
"MIT"
] | null | null | null | (* Copyright (c) 2015 The Qeditas developers *)
(* Copyright (c) 2017-2019 The Dalilcoin developers *)
(* Distributed under the MIT software license, see the accompanying
file COPYING or http://www.opensource.org/licenses/mit-license.php. *)
open Zarithint
(*** Generic serialization code ***)
(*** String Buffer (... | 24.570025 | 86 | 0.5676 |
bcdd15e1f7ad1b865d88831ea07b169c42957b08 | 968 | ml | OCaml | libraries/autoscaling/lib/deletePolicy.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/autoscaling/lib/deletePolicy.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/autoscaling/lib/deletePolicy.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DeletePolicyType.t
type output = unit
type error = Errors_internal.t
let service = "autoscaling"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service regio... | 31.225806 | 79 | 0.636364 |
bc949fe4abe19d615f1080bc400acb90f8d94356 | 37 | mli | OCaml | reddit_api_kernel/json_object.mli | nmtake/ocaml-reddit-api | 4cba7b98fe0a0f61f2908a83752936e60f69275e | [
"MIT"
] | 3 | 2020-12-31T06:25:49.000Z | 2022-03-27T11:25:09.000Z | reddit_api_kernel/json_object.mli | nmtake/ocaml-reddit-api | 4cba7b98fe0a0f61f2908a83752936e60f69275e | [
"MIT"
] | 7 | 2020-09-21T12:38:34.000Z | 2022-03-28T00:28:11.000Z | reddit_api_kernel/json_object.mli | nmtake/ocaml-reddit-api | 4cba7b98fe0a0f61f2908a83752936e60f69275e | [
"MIT"
] | 2 | 2021-07-03T22:24:38.000Z | 2022-03-27T04:02:00.000Z | include Json_object_intf.Json_object
| 18.5 | 36 | 0.918919 |
aa7441c096f3e1a39e76e9c4d31549ff18f3b4b3 | 3,312 | mli | OCaml | src/json.mli | idkjs/data-encoding | 8aafa6c39c9636687b26a5f02630844b42e9a3ca | [
"MIT"
] | 3 | 2020-12-27T15:33:25.000Z | 2020-12-31T08:03:06.000Z | src/json.mli | idkjs/data-encoding | 8aafa6c39c9636687b26a5f02630844b42e9a3ca | [
"MIT"
] | null | null | null | src/json.mli | idkjs/data-encoding | 8aafa6c39c9636687b26a5f02630844b42e9a3ca | [
"MIT"
] | 1 | 2021-07-18T23:03:49.000Z | 2021-07-18T23:03:49.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 38.511628 | 80 | 0.562802 |
aaf6fd155045754a94eefd59b80e4984c45cd0b8 | 3,981 | ml | OCaml | data/sp14/2594.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/2594.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/2594.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec clone x n =
let rec helper a b acc = if b > 0 then helper a (b - 1) (a :: acc) else acc in
helper x n [];;
let padZero l1 l2 =
let l1_len = List.length l1 in
let l2_len = List.length l2 in
let l_diff = l1_len - l2_len in
if l_diff < 0
then (((clone 0 (l_diff * (-1))) @ l1), l2)
else (l1, ((clo... | 17.384279 | 80 | 0.502638 |
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.