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
8adcbeee308a5b76e4fa745b2adf9f47cebb926b
10,484
ml
OCaml
hphp/hack/src/facts/facts_parser.ml
jeffomatic/hhvm
afd1a0c089aff36a31b8990490366606694a2842
[ "PHP-3.01", "Zend-2.0" ]
1
2019-07-21T09:08:35.000Z
2019-07-21T09:08:35.000Z
hphp/hack/src/facts/facts_parser.ml
jeffomatic/hhvm
afd1a0c089aff36a31b8990490366606694a2842
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/facts/facts_parser.ml
jeffomatic/hhvm
afd1a0c089aff36a31b8990490366606694a2842
[ "PHP-3.01", "Zend-2.0" ]
1
2019-07-30T11:52:42.000Z
2019-07-30T11:52:42.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 Core_kernel open Facts module SU = Hhbc_string_utils module FSC = Facts_smart_constructors module FactsParser...
31.866261
97
0.654712
8a86ab8dc925e077da37fc03395a12bd4e149a83
9,039
ml
OCaml
daemon/albatrossd.ml
reynir/albatross
3f36fe63826d13a44dbce1045d1ddb55eb63b681
[ "ISC" ]
null
null
null
daemon/albatrossd.ml
reynir/albatross
3f36fe63826d13a44dbce1045d1ddb55eb63b681
[ "ISC" ]
null
null
null
daemon/albatrossd.ml
reynir/albatross
3f36fe63826d13a44dbce1045d1ddb55eb63b681
[ "ISC" ]
null
null
null
(* (c) 2017 Hannes Mehnert, all rights reserved *) open Albatross_cli open Vmm_core open Lwt.Infix let state = ref (Vmm_vmmd.init ()) let stub_data_out _ = Lwt.return_unit let create_lock = Lwt_mutex.create () (* the global lock held during execution of create -- and also while Vmm_vmmd.handle is getting calle...
40.173333
101
0.559796
8add8037de79f446f8fbe7dddcd708906e544fe0
607
ml
OCaml
benchmarks/list/atoi.ml
victornicolet/atropos
86a96d263f49c1eccd8f584d624de119180e0eea
[ "MIT" ]
3
2021-05-03T16:20:32.000Z
2021-05-14T19:59:51.000Z
benchmarks/list/atoi.ml
victornicolet/Synduce
86a96d263f49c1eccd8f584d624de119180e0eea
[ "MIT" ]
null
null
null
benchmarks/list/atoi.ml
victornicolet/Synduce
86a96d263f49c1eccd8f584d624de119180e0eea
[ "MIT" ]
1
2021-05-12T15:14:40.000Z
2021-05-12T15:14:40.000Z
(** @synduce --no-lifting *) type 'a clist = CNil | Single of 'a | Concat of 'a clist * 'a clist type 'a list = Nil | Cons of 'a * 'a list let rec spec = function | Nil -> (0, 1) | Cons (hd, tl) -> let s, m = spec tl in 10 * s + hd, 10 * m let rec target = function | CNil -> [%synt s0] | Sin...
23.346154
90
0.532125
8a6d702d63e1027fed17be1376f37e7b6595848a
4,060
ml
OCaml
ocaml-glsl-parser/lexemes.ml
eliemichel/Spillr
d263b446ef60756b4a8d73607a372199ecff73f4
[ "MIT" ]
2
2021-02-26T02:58:56.000Z
2021-12-11T20:08:28.000Z
ocaml-glsl-parser/lexemes.ml
eliemichel/Spillr
d263b446ef60756b4a8d73607a372199ecff73f4
[ "MIT" ]
null
null
null
ocaml-glsl-parser/lexemes.ml
eliemichel/Spillr
d263b446ef60756b4a8d73607a372199ecff73f4
[ "MIT" ]
null
null
null
open Parser let types = [ "void"; "bool"; "int"; "uint"; "float"; "double"; "bvec2"; "bvec3"; "bvec4"; "ivec2"; "ivec3"; "ivec4"; "uvec2"; "uvec3"; "uvec4"; "vec2"; "vec3"; "vec4"; "dvec2"; "dvec3"; "dvec4"; ...
21.827957
77
0.4867
f3f06a2f700936d9ad56a2f208506a114c6abeac
4,009
ml
OCaml
lib/printer.ml
gasevo/ebso
bde88b2527f6114033a38e935ee293e28023e435
[ "Apache-2.0" ]
null
null
null
lib/printer.ml
gasevo/ebso
bde88b2527f6114033a38e935ee293e28023e435
[ "Apache-2.0" ]
null
null
null
lib/printer.ml
gasevo/ebso
bde88b2527f6114033a38e935ee293e28023e435
[ "Apache-2.0" ]
null
null
null
(* Copyright 2018 Julian Nagele and Maria A Schett Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law...
27.087838
90
0.66675
8aa2771e2b734ffb3c45c06b2cab13eccda56e13
3,235
mli
OCaml
src/core/Refiner.mli
ejgallego/cooltt
dd524a939fcb9baf82f1cb2b9add5225a161d288
[ "Apache-2.0" ]
null
null
null
src/core/Refiner.mli
ejgallego/cooltt
dd524a939fcb9baf82f1cb2b9add5225a161d288
[ "Apache-2.0" ]
null
null
null
src/core/Refiner.mli
ejgallego/cooltt
dd524a939fcb9baf82f1cb2b9add5225a161d288
[ "Apache-2.0" ]
null
null
null
(** This is the basis of trusted inference rules for cooltt. This module also contains some auxiliary tactics, but these don't need to be trusted so they should be moved elsewhere. *) module D := Domain module S := Syntax module RM := Monads.RefineM open Tactic type ('a, 'b) quantifier = 'a -> Ident.t * (var -> ...
24.507576
100
0.620093
8ad6cecc1b9f4bb2bfb5cf4e76ad45ad16947da2
4,393
ml
OCaml
imandra_model/src-messages-pp/nav_msgs_of_json.ml
AestheticIntegration/imandra-ros
e1380c267ee319dd4f86c4b54e0b270bc0738796
[ "Apache-2.0" ]
17
2018-08-06T22:30:35.000Z
2022-02-25T10:05:35.000Z
imandra_model/src-messages-pp/nav_msgs_of_json.ml
AestheticIntegration/imandra-ros
e1380c267ee319dd4f86c4b54e0b270bc0738796
[ "Apache-2.0" ]
null
null
null
imandra_model/src-messages-pp/nav_msgs_of_json.ml
AestheticIntegration/imandra-ros
e1380c267ee319dd4f86c4b54e0b270bc0738796
[ "Apache-2.0" ]
null
null
null
open Json_utils;; open Basic_types_of_json;; open Ros_messages.Nav_msgs;; let json_to_getMapGoal_opt json : getMapGoal option = Some () let json_to_odometry_opt json = jreq json "odometry_header" Std_msgs_of_json.json_to_header_opt @@ fun odometry_header -> jreq json "odometry_child_frame_id" json_to_string_...
39.576577
127
0.770089
8a8650ca7c7ebbbdb8804b82449f3ca3deca270f
4,415
ml
OCaml
object_stats.ml
mshinwell/object_stats
5a34598a5194c274bea275080b43530ba6d5fcba
[ "MIT" ]
null
null
null
object_stats.ml
mshinwell/object_stats
5a34598a5194c274bea275080b43530ba6d5fcba
[ "MIT" ]
null
null
null
object_stats.ml
mshinwell/object_stats
5a34598a5194c274bea275080b43530ba6d5fcba
[ "MIT" ]
null
null
null
[@@@ocaml.warning "+a-4-9-30-40-41-42"] let printf = Printf.printf module String = struct include String module Set = Misc.StringSet end type stats = { mutable direct_calls : String.Set.t; mutable c_calls : String.Set.t; mutable indirect_calls : int; mutable allocation_points : int; mutable may_allocat...
31.76259
80
0.62786
af82df85b001eecb383c95e0e82ba3af3eb5dd15
1,073
ml
OCaml
src/lib/secrets/privkey_error.ml
creativcoder/mina
91d6d536345f7e313b73fcb78bdea657ff584b72
[ "Apache-2.0" ]
2
2021-07-11T21:51:34.000Z
2021-07-29T14:33:45.000Z
src/lib/secrets/privkey_error.ml
yusuftrl/mina
42bbe89e0e84366fd1673672750eb6041462e449
[ "Apache-2.0" ]
1
2021-03-06T14:52:32.000Z
2021-03-06T14:52:32.000Z
src/lib/secrets/privkey_error.ml
obazl/mina
0612b142738c68155e9a9bba16cd3787bba4feed
[ "Apache-2.0" ]
3
2021-03-14T18:19:04.000Z
2021-03-25T16:37:07.000Z
open Core type t = [ `Corrupted_privkey of Error.t | `Incorrect_password_or_corrupted_privkey | `Cannot_open_file of string | `Parent_directory_does_not_exist of string | `Password_not_in_environment of string ] let to_string : t -> string = function | `Corrupted_privkey e -> sprintf !"The key was c...
34.612903
77
0.716682
8aa7958a574ce7f22d775a22b069cd1011ae7ed7
3,570
ml
OCaml
ag_pathanalysis/batteries/benchsuite/popcount.ml
BambooL/AutoGrader
f537d396605d1b943137b1b964c5a2ebecbf2aca
[ "MIT" ]
2
2019-12-05T19:47:42.000Z
2021-05-05T13:41:16.000Z
ag_pathanalysis/batteries/benchsuite/popcount.ml
BambooL/AutoGrader
f537d396605d1b943137b1b964c5a2ebecbf2aca
[ "MIT" ]
null
null
null
ag_pathanalysis/batteries/benchsuite/popcount.ml
BambooL/AutoGrader
f537d396605d1b943137b1b964c5a2ebecbf2aca
[ "MIT" ]
2
2021-04-20T07:44:02.000Z
2021-04-20T08:38:41.000Z
let popcount_test = if Sys.word_size = 32 then let k1 = 0x55555555 in let k2 = 0x33333333 in let k3 = 0x0f0f0f0f in (fun x -> let x = x - (x lsr 1) land k1 in let x = ((x lsr 2) land k2) + (x land k2) in let x = (x + (x lsr 4)) land k3 in let x = x + x lsr 8 in (x + x lsr...
24.285714
91
0.570868
f3c235b46de7d5c9c5e8edad97c4f6915bf8e090
3,013
ml
OCaml
lib/bap_core_theory/bap_core_theory_basic.ml
dra27/bap
bc9679900822afac9c7f7f1dc098958bab217b0e
[ "MIT" ]
1,697
2015-01-09T07:17:41.000Z
2022-03-26T17:48:05.000Z
lib/bap_core_theory/bap_core_theory_basic.ml
dvntaudio/bap
5cfc3e584ea32d6c0c33013e050fb1a1e8f260de
[ "MIT" ]
685
2015-01-10T21:32:42.000Z
2022-03-23T23:44:53.000Z
lib/bap_core_theory/bap_core_theory_basic.ml
dvntaudio/bap
5cfc3e584ea32d6c0c33013e050fb1a1e8f260de
[ "MIT" ]
294
2015-01-10T15:51:57.000Z
2022-03-20T05:37:22.000Z
open Core_kernel open Bap_knowledge open Bap_core_theory_definition open Bap_core_theory_value open Knowledge.Syntax module Value = Knowledge.Value let size = Bitv.size let (>>->) = fun x f -> x >>= fun x -> f (KB.Class.sort (Value.cls x)) x module Make(L : Minimal) = struct open L module BitLogic = struct ...
23.356589
63
0.539993
8a671ca1fa22f0f4c2dfa2f045fb6f28afd38377
4,758
ml
OCaml
ark/test_iteration.ml
sumanthsprabhu/strategy-improvement
12c1d45980f3563f0cfb97bc764e05b22687f83a
[ "MIT" ]
null
null
null
ark/test_iteration.ml
sumanthsprabhu/strategy-improvement
12c1d45980f3563f0cfb97bc764e05b22687f83a
[ "MIT" ]
null
null
null
ark/test_iteration.ml
sumanthsprabhu/strategy-improvement
12c1d45980f3563f0cfb97bc764e05b22687f83a
[ "MIT" ]
null
null
null
open OUnit open Abstract open Syntax open ArkApron open Test_pervasives module QQMatrix = Linear.QQMatrix module WV = struct include Iteration.WedgeVector let star ctx symbols phi = closure (abstract_iter ctx symbols phi) end let assert_implies_nonlinear phi psi = match Wedge.is_sat ctx (mk_and ctx [phi; mk_not...
20.597403
70
0.53657
8ac7eaa5b95fb89c9ae7b6154a467c714862224e
9,602
ml
OCaml
src/tests/unit-tests/backend_ocaml_test.ml
anmolsahoo25/ocaml-protoc
802dc25c2ac029a7ea5e9624f5727f35c8824a15
[ "MIT" ]
143
2016-01-25T18:42:38.000Z
2022-03-20T15:49:38.000Z
src/tests/unit-tests/backend_ocaml_test.ml
anmolsahoo25/ocaml-protoc
802dc25c2ac029a7ea5e9624f5727f35c8824a15
[ "MIT" ]
79
2015-11-11T12:15:19.000Z
2022-03-19T23:30:52.000Z
src/tests/unit-tests/backend_ocaml_test.ml
anmolsahoo25/ocaml-protoc
802dc25c2ac029a7ea5e9624f5727f35c8824a15
[ "MIT" ]
25
2016-04-10T17:58:13.000Z
2022-01-18T14:08:05.000Z
(* TODO Resurect or Delete *) (* let file_options = [] let file_name = "a.proto" let parse f s = f Pblexer.lexer (Lexing.from_string s) let () = let message_scope = [] in let oneof_name = "test" in assert ("test" = Backend_ocaml.type_name message_scope oneof_name); () let () = let message_...
32.996564
151
0.641116
8a8ac9ef7f56beb1a08e71237b3c16225478b2ee
1,650
ml
OCaml
II rok/I semestr/PF/sortowania.ml
antonitomaszewski/Studia
ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b
[ "MIT" ]
null
null
null
II rok/I semestr/PF/sortowania.ml
antonitomaszewski/Studia
ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b
[ "MIT" ]
null
null
null
II rok/I semestr/PF/sortowania.ml
antonitomaszewski/Studia
ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b
[ "MIT" ]
null
null
null
#use "funkcje.ml";; let partition (pred : 'a -> bool) (xs : 'a list) : ('a list * 'a list) = let rec _partition xs (result : 'a list * 'a list) = match (xs, result) with | ([],(left, right)) -> ((_reverse left []),(_reverse right [])) | (head::tail, (left, right)) when (pred head) -> (_partition tai...
34.375
99
0.527879
8a1e82b9b9cfdfefc601b801ccf85639c3293b7b
23,884
ml
OCaml
src/dune_rules/expander.ml
marsam/dune
8a3d7f2f2015b71384caa07226d1a89dba9d6c25
[ "MIT" ]
null
null
null
src/dune_rules/expander.ml
marsam/dune
8a3d7f2f2015b71384caa07226d1a89dba9d6c25
[ "MIT" ]
null
null
null
src/dune_rules/expander.ml
marsam/dune
8a3d7f2f2015b71384caa07226d1a89dba9d6c25
[ "MIT" ]
null
null
null
open! Dune_engine open Import module Expanded = struct type t = | Value of Value.t list | Deferred of Pform.Expansion.t | Unknown | Error of User_message.t let to_value_opt t ~on_deferred = match t with | Value v -> Some v | Deferred d -> on_deferred d | Error m -> raise (User_erro...
34.664731
80
0.639508
8a9ede78c6f776148cb6631994b743a27359ffe7
11,674
ml
OCaml
infer/src/nullsafe/ClassLevelAnalysis.ml
HybridDeveloper/infer
d01ada643d70202d9afd5e5c2d6ece715335a426
[ "MIT" ]
null
null
null
infer/src/nullsafe/ClassLevelAnalysis.ml
HybridDeveloper/infer
d01ada643d70202d9afd5e5c2d6ece715335a426
[ "MIT" ]
null
null
null
infer/src/nullsafe/ClassLevelAnalysis.ml
HybridDeveloper/infer
d01ada643d70202d9afd5e5c2d6ece715335a426
[ "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 let log_issue ?proc_name ~issue_log ~loc ~severity ~nullsafe_extra issue_type error_message = let extras = Jsonbu...
44.387833
129
0.7276
afb1c60f9cbf807e28ac259a4223a676a5da7996
2,091
mli
OCaml
test_native/_opam/lib/ocaml/compiler-libs/lift_let_to_initialize_symbol.mli
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
2
2021-03-03T15:31:36.000Z
2021-03-05T16:01:39.000Z
test_native/_opam/lib/ocaml/compiler-libs/lift_let_to_initialize_symbol.mli
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
2
2021-03-03T16:08:23.000Z
2021-03-03T19:31:03.000Z
test_native/_opam/lib/ocaml/compiler-libs/lift_let_to_initialize_symbol.mli
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
null
null
null
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
53.615385
78
0.467719
8a6e18e7ddf020163eb2ed5b25c76d8e7ff618a3
201
mli
OCaml
libraries/cloudwatch/lib/deleteDashboards.mli
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
null
null
null
libraries/cloudwatch/lib/deleteDashboards.mli
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
1
2021-06-22T14:33:23.000Z
2021-06-22T14:33:23.000Z
libraries/cloudwatch/lib/deleteDashboards.mli
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
null
null
null
open Types type input = DeleteDashboardsInput.t type output = unit type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
28.714286
74
0.731343
8aab9adfe4c0d8869016b9974b7eeefd9b9b7dc6
359
ml
OCaml
data/fa15/0123.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15_min/0123.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15_min/0123.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
let rec listReverse l = match l with | [] -> [] | t -> t | h::t -> h @ (listReverse [t]);; (* fix let rec listReverse l = match l with | [] -> [] | t -> t | h::t -> t @ (listReverse [h]);; *) (* changed spans (3,46)-(3,47) t VarG (3,64)-(3,65) h VarG *) (* type error slice (3,3)-(3,67) (3,34)-(3,35) (3,46)...
11.580645
68
0.473538
8a75c3d6bf0267826a9c2a2b2874b0ebc73a6e99
579
ml
OCaml
benchmarks/C/formula/sol147.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
9
2021-06-04T04:38:13.000Z
2021-12-15T05:45:28.000Z
benchmarks/C/formula/sol147.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
benchmarks/C/formula/sol147.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
type formula = True | False | Not of formula | AndAlso of formula * formula | OrElse of formula * formula | Imply of formula * formula | Equal of exp * exp and exp = Num of int | Plus of exp * exp | Minus of exp * exp let rec cnt e = match e with | Num a -> a | Plus (a,b) -> (cnt a) + (cnt b) | Minus (a,b) -> (cnt a...
20.678571
43
0.564767
8a4c027c387dbdc61c1290d39eb96d59d5f56168
1,393
mli
OCaml
pooled_hashtbl/src/pooled_hashtbl.mli
Gopiandcode/core_kernel
fab2048ede720205e65f1831d07e2b28524166c7
[ "MIT" ]
187
2015-01-02T03:14:37.000Z
2021-12-17T02:52:27.000Z
pooled_hashtbl/src/pooled_hashtbl.mli
Gopiandcode/core_kernel
fab2048ede720205e65f1831d07e2b28524166c7
[ "MIT" ]
84
2015-01-07T10:21:02.000Z
2021-11-10T05:55:37.000Z
pooled_hashtbl/src/pooled_hashtbl.mli
Gopiandcode/core_kernel
fab2048ede720205e65f1831d07e2b28524166c7
[ "MIT" ]
65
2015-02-01T11:01:32.000Z
2021-12-17T02:53:15.000Z
(** A polymorphic hashtbl that uses {!Pool} to avoid allocation. This uses the standard linked-chain hashtable algorithm, albeit with links performed through a pool and hence avoiding [caml_modify] (for table manipulation), even when hashing object keys/values. This implementation is worth exploring f...
44.935484
90
0.728643
8ad1de203b38f1d1a1fb13bf719b041b854c486f
557
ml
OCaml
04_binary_trees/p61.ml
danielkelshaw/99OCaml
7221c3b17a696dfc985201593457b2f6c4b4a0ed
[ "MIT" ]
null
null
null
04_binary_trees/p61.ml
danielkelshaw/99OCaml
7221c3b17a696dfc985201593457b2f6c4b4a0ed
[ "MIT" ]
null
null
null
04_binary_trees/p61.ml
danielkelshaw/99OCaml
7221c3b17a696dfc985201593457b2f6c4b4a0ed
[ "MIT" ]
null
null
null
(** Problem 61: Count the leaves of a binary tree.*) type 'a binary_tree = | Empty | Node of 'a * 'a binary_tree * 'a binary_tree let rec count_leaves (tree : 'a binary_tree) : int = match tree with | Empty -> 0 | Node (_, Empty, Empty) -> 1 | Node (_, left, right) -> count_leaves left + count_leaves righ...
25.318182
67
0.605027
afec4fa22c6f64dec8602aad7ff572536f27e7a5
7,717
ml
OCaml
src/weaken.ml
MattWindsor91/memalloy
e562f89ce14fdadfda5cf4a604a4d22d32972c0d
[ "MIT" ]
20
2016-09-25T12:36:19.000Z
2021-04-20T18:44:26.000Z
src/weaken.ml
MattWindsor91/memalloy
e562f89ce14fdadfda5cf4a604a4d22d32972c0d
[ "MIT" ]
23
2017-02-19T13:14:57.000Z
2019-07-25T16:57:59.000Z
src/weaken.ml
MattWindsor91/memalloy
e562f89ce14fdadfda5cf4a604a4d22d32972c0d
[ "MIT" ]
7
2016-11-01T22:57:42.000Z
2019-07-11T13:45:12.000Z
(* MIT License Copyright (c) 2017 by John Wickerson, Nathan Chong, and Tyler Sorensen. 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...
33.120172
82
0.642478
8ae8044979fd2c5c43cb0e67f7e95a7bb7c79868
2,728
ml
OCaml
source/service/test/schedulerTest.ml
dmitryvinn/pyre-check-1
b5e7c164397825ac32851bfe79a6f1a03399ed4c
[ "MIT" ]
1
2022-02-10T10:51:32.000Z
2022-02-10T10:51:32.000Z
source/service/test/schedulerTest.ml
dmitryvinn/pyre-check-1
b5e7c164397825ac32851bfe79a6f1a03399ed4c
[ "MIT" ]
null
null
null
source/service/test/schedulerTest.ml
dmitryvinn/pyre-check-1
b5e7c164397825ac32851bfe79a6f1a03399ed4c
[ "MIT" ]
null
null
null
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open OUnit2 module Policy = Scheduler.Policy let test_policy _ = let assert_divide ~number_of_workers ~number_of_tasks ~expect...
32.86747
90
0.728372
8aae283944db419181065e70e82e171bb64288ee
19,572
ml
OCaml
css_gen/src/css_gen.ml
Strikeskids/virtual_dom
ea8b8057387357c94a7bcf43b73e2e707c8ab639
[ "MIT" ]
null
null
null
css_gen/src/css_gen.ml
Strikeskids/virtual_dom
ea8b8057387357c94a7bcf43b73e2e707c8ab639
[ "MIT" ]
null
null
null
css_gen/src/css_gen.ml
Strikeskids/virtual_dom
ea8b8057387357c94a7bcf43b73e2e707c8ab639
[ "MIT" ]
null
null
null
module Stable = struct open Core_kernel.Core_kernel_stable module V1 = struct (** (field * value) list. Where value should be escaped / quoted as necessary as per https://www.w3.org/TR/CSS21/syndata.html#rule-sets. *) type t = (string * string) list [@@deriving sexp, compare, bin_io] end end op...
25.752632
139
0.629317
af351b71226bb2dfb2db0802528f54ffdaa6ada6
15,441
ml
OCaml
webgl_plot_repere.ml
mlasson/webgl-plot
a34f9e4e3db6496853ec5997e60c504e1f696092
[ "MIT" ]
6
2016-10-28T16:53:28.000Z
2019-03-07T22:29:49.000Z
webgl_plot_repere.ml
mlasson/webgl-plot
a34f9e4e3db6496853ec5997e60c504e1f696092
[ "MIT" ]
null
null
null
webgl_plot_repere.ml
mlasson/webgl-plot
a34f9e4e3db6496853ec5997e60c504e1f696092
[ "MIT" ]
null
null
null
(* This file is released under the terms of an MIT-like license. *) (* See the attached LICENSE file. *) (* Copyright 2016 by LexiFi. *) open Js_array open Webgl open Webgl.Constant open Webgl_plot_misc open Webgl_plot_math open Webgl_plo...
32.101871
152
0.607409
8aad4a621c4c74544fef8c39b9ab8326eb90e904
4,281
ml
OCaml
hphp/hack/src/h2tp/common/ast_ext.ml
radford/hhvm
a7cd6754d14742b40528c847b607a1608cfcfe98
[ "PHP-3.01", "Zend-2.0" ]
1
2015-11-06T08:44:15.000Z
2015-11-06T08:44:15.000Z
hphp/hack/src/h2tp/common/ast_ext.ml
radford/hhvm
a7cd6754d14742b40528c847b607a1608cfcfe98
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/h2tp/common/ast_ext.ml
radford/hhvm
a7cd6754d14742b40528c847b607a1608cfcfe98
[ "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 Ast open...
25.035088
80
0.646811
8a37c1ae1724a542deafaa0ecf7778cd02586b23
9,880
ml
OCaml
Optician-Integrated/lib/bsyntax.ml
optician-tool/Optician-Tool
4aa9d9d0f0511bf559abdc73dbef3b888d371d3a
[ "MIT" ]
1
2020-02-22T12:30:30.000Z
2020-02-22T12:30:30.000Z
Optician-Integrated/lib/bsyntax.ml
optician-tool/Optician-Tool
4aa9d9d0f0511bf559abdc73dbef3b888d371d3a
[ "MIT" ]
null
null
null
Optician-Integrated/lib/bsyntax.ml
optician-tool/Optician-Tool
4aa9d9d0f0511bf559abdc73dbef3b888d371d3a
[ "MIT" ]
null
null
null
(******************************************************************************) (* The Harmony Project *) (* harmony@lists.seas.upenn.edu *) (****************************************************************************...
27.292818
140
0.522672
8a8263c4e148f73f01f5ed5fbea49cc99a8e2d12
110,190
ml
OCaml
src/parser/flow_ast_mapper.ml
dmitryvinn/flow-1
9ef203b34fd36fe390467456cbd0ce6c4920522e
[ "MIT" ]
null
null
null
src/parser/flow_ast_mapper.ml
dmitryvinn/flow-1
9ef203b34fd36fe390467456cbd0ce6c4920522e
[ "MIT" ]
null
null
null
src/parser/flow_ast_mapper.ml
dmitryvinn/flow-1
9ef203b34fd36fe390467456cbd0ce6c4920522e
[ "MIT" ]
null
null
null
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) module Ast = Flow_ast let map_opt : 'node. ('node -> 'node) -> 'node option -> 'node option = fun map opt -> match opt with ...
41.913275
101
0.625665
8ab760ae05ed7823e6ce82d79acf0ab16756fd02
4,738
ml
OCaml
ocaml-compiler/src/compiler/liveness.ml
kcvlex/toy-scheme
c271d600a2cc264d46718219ec9caea5d48c8be7
[ "MIT" ]
null
null
null
ocaml-compiler/src/compiler/liveness.ml
kcvlex/toy-scheme
c271d600a2cc264d46718219ec9caea5d48c8be7
[ "MIT" ]
1
2021-03-16T17:50:19.000Z
2021-03-16T17:50:19.000Z
ocaml-compiler/src/compiler/liveness.ml
kcvlex/toy-scheme
c271d600a2cc264d46718219ec9caea5d48c8be7
[ "MIT" ]
null
null
null
open Util open ThreeAddressCodeType open ThreeAddressCode open RegsType open Regs (* FIXME : when call instr *) type t = { regs : reg_set; in_set : reg_table Vector.t; out_set : reg_table Vector.t; instr_vec : instr_type Vector.t; def : reg_table Vector.t; use : reg_table Vector.t; cfg : int Graph.t; } ...
28.202381
78
0.588645
aff983d64a45cc6a8fa8549a9f825cad78861349
21,702
ml
OCaml
infer/src/pulse/PulseDiagnostic.ml
clayne/infer
291b75d195b4adc2e6624a70aced05f6890f8299
[ "MIT" ]
null
null
null
infer/src/pulse/PulseDiagnostic.ml
clayne/infer
291b75d195b4adc2e6624a70aced05f6890f8299
[ "MIT" ]
null
null
null
infer/src/pulse/PulseDiagnostic.ml
clayne/infer
291b75d195b4adc2e6624a70aced05f6890f8299
[ "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 module Attribute = PulseAttribute module CallEvent = PulseCallEvent module Invalida...
43.842424
124
0.673532
afab670f9beaceeea08d7f2cc910c20a8ca2e678
3,046
mli
OCaml
test_native/_opam/lib/ocaml/uchar.mli
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
1
2020-09-24T05:03:32.000Z
2020-09-24T05:03:32.000Z
test_native/_opam/lib/ocaml/uchar.mli
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
null
null
null
test_native/_opam/lib/ocaml/uchar.mli
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
null
null
null
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
30.767677
76
0.46717
afc4230f32762fe341632eec4b53b08f54ceb9a1
24,601
ml
OCaml
src/backend/ast_sast.ml
cerrno/shux
075f3dac36f86b4121e7b1d112ad74eba5f2dfed
[ "MIT" ]
1
2017-03-26T16:55:24.000Z
2017-03-26T16:55:24.000Z
src/backend/ast_sast.ml
cerrno/shux
075f3dac36f86b4121e7b1d112ad74eba5f2dfed
[ "MIT" ]
26
2017-02-25T23:46:05.000Z
2017-03-26T23:10:03.000Z
src/backend/ast_sast.ml
cerrno/shux
075f3dac36f86b4121e7b1d112ad74eba5f2dfed
[ "MIT" ]
2
2017-02-25T06:39:24.000Z
2017-02-26T03:09:59.000Z
open Ast open Sast open Semant type svar = { id : string; scope : Sast.sscope; svar_type : Sast.styp; } (* keep track of names and types *) type strans_env = { variables : svar list VarMap.t; sfn_decl : sfn_decl VarMap.t; sstruct_map : sstruct_def VarMap.t } let print_styp = function | SIn...
47.128352
136
0.57018
8ab5f394f1e7919f8253e3d187ee016f77da1eff
4,283
mli
OCaml
src/dune_rules/super_context.mli
ocaml/jbuilder
bd53904712bf5991d7a02c70a3a1daf7be333c80
[ "MIT" ]
null
null
null
src/dune_rules/super_context.mli
ocaml/jbuilder
bd53904712bf5991d7a02c70a3a1daf7be333c80
[ "MIT" ]
null
null
null
src/dune_rules/super_context.mli
ocaml/jbuilder
bd53904712bf5991d7a02c70a3a1daf7be333c80
[ "MIT" ]
null
null
null
(** An augmented context *) (** A context augmented with: a lib-db, ... Super context are used for generating rules. *) open Import type t val all : t Context_name.Map.t Memo.Lazy.t (** Find a super context by name. *) val find : Context_name.t -> t option Memo.t val modules_of_lib : (* to avoid a cycle wit...
27.107595
81
0.691104
aff4b0b184fd2966a2cd92be0197fe93cad5a37f
11,456
ml
OCaml
src/cmdliner.ml
esy-ocaml/cmdliner
e9316bc34e4781ffdd51ffe6f2de7c59b36c741e
[ "ISC" ]
null
null
null
src/cmdliner.ml
esy-ocaml/cmdliner
e9316bc34e4781ffdd51ffe6f2de7c59b36c741e
[ "ISC" ]
null
null
null
src/cmdliner.ml
esy-ocaml/cmdliner
e9316bc34e4781ffdd51ffe6f2de7c59b36c741e
[ "ISC" ]
null
null
null
(*--------------------------------------------------------------------------- Copyright (c) 2011 Daniel C. Bünzli. All rights reserved. Distributed under the ISC license, see terms at the end of the file. %%NAME%% %%VERSION%% ---------------------------------------------------------------------------*) modu...
37.194805
84
0.624825
afe686abe9401303dfeb9383ebd89e42e08f5035
3,027
mly
OCaml
src/external/ocaml-dune/vendor/opam-file-format/src/opamBaseParser.mly
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
3
2020-09-06T21:32:35.000Z
2020-09-08T14:27:27.000Z
src/external/ocaml-dune/vendor/opam-file-format/src/opamBaseParser.mly
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
null
null
null
src/external/ocaml-dune/vendor/opam-file-format/src/opamBaseParser.mly
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
null
null
null
/**************************************************************************/ /* */ /* Copyright 2012-2015 OCamlPro */ /* Copyright 2012 INRIA */ /* ...
26.552632
76
0.488603
8a7cba330cca4ef7d8411bb7967152a55eb22618
1,885
mll
OCaml
lib/http/HTTP.mll
Joshkunz/nagad
6cb6e5d65a1eb124eba5c90ea6b0720b4a51eed1
[ "MIT" ]
1
2019-11-21T23:43:25.000Z
2019-11-21T23:43:25.000Z
lib/http/HTTP.mll
joshkunz/nagad
6cb6e5d65a1eb124eba5c90ea6b0720b4a51eed1
[ "MIT" ]
null
null
null
lib/http/HTTP.mll
joshkunz/nagad
6cb6e5d65a1eb124eba5c90ea6b0720b4a51eed1
[ "MIT" ]
null
null
null
{ open HTTPTypes open HTTPParse open Printf } (* This is from RFC2616 *) let CHAR = ['\000'-'\127'] let CTL = ['\000'-'\031' '\127'] let DIGIT = ['0'-'9'] let SP = ' ' let HT = '\t' let CR = '\r' let LF = '\n' let CRLF = CR LF let LWS = (CRLF)? (SP | HT)+ let TEXT = _ # CTL let seperators = ['(' ')' '<' ...
31.949153
77
0.527851
f362193b87e5b024559acde5e123f57d0c75279e
601
ml
OCaml
ag_pathanalysis/tests/reduced_havlak_suite.ml
BambooL/AutoGrader
f537d396605d1b943137b1b964c5a2ebecbf2aca
[ "MIT" ]
2
2019-12-05T19:47:42.000Z
2021-05-05T13:41:16.000Z
ag_pathanalysis/tests/reduced_havlak_suite.ml
BambooL/AutoGrader
f537d396605d1b943137b1b964c5a2ebecbf2aca
[ "MIT" ]
null
null
null
ag_pathanalysis/tests/reduced_havlak_suite.ml
BambooL/AutoGrader
f537d396605d1b943137b1b964c5a2ebecbf2aca
[ "MIT" ]
2
2021-04-20T07:44:02.000Z
2021-04-20T08:38:41.000Z
open BatPervasives open OUnit open Lnf_test module L = Lnf_reduced_havlak.Make(G) open Lnf let n = G.G.V.create;; let v0 = n 0 and va = n 1 and vb = n 2 and vc = n 3 and vd = n 4 and ve = n 5 and vf = n 6 and vg = n 7 and vh = n 8 and vend = n 9 let ramalingam_fig2 : test = (v0, [ (v0, [va; vend]); (va, [vb; v...
15.410256
74
0.55574
8acbaf2e4946d4caeabd06a3ab4b099d5726a9db
5,983
ml
OCaml
hphp/hack/src/server/methodJumps.ml
jmurret/hhvm
f005fa3ca2793291cf59e217db3e9ce074d22f71
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/server/methodJumps.ml
jmurret/hhvm
f005fa3ca2793291cf59e217db3e9ce074d22f71
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/server/methodJumps.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 ServerCommandTypes.Method_jumps open Typing_defs module Reason = Typing_reason module Decl_pro...
29.766169
80
0.641317
8ada86b566a7cbbb0f4719c65f8f383e0dc8445d
6,535
ml
OCaml
example/example.ml
nandor/ocamlcfg
7dc07b3531888253db412c9044a0266931e4815b
[ "MIT" ]
7
2019-09-26T14:27:53.000Z
2020-08-08T08:57:38.000Z
example/example.ml
nandor/ocamlcfg
7dc07b3531888253db412c9044a0266931e4815b
[ "MIT" ]
null
null
null
example/example.ml
nandor/ocamlcfg
7dc07b3531888253db412c9044a0266931e4815b
[ "MIT" ]
4
2019-08-13T15:41:53.000Z
2020-08-07T13:02:27.000Z
(**************************************************************************) (* *) (* OCamlFDO *) (* *) (* ...
37.130682
76
0.60505
afd56981fa7e143d0b44ac618cb5d9993bde7145
66,792
ml
OCaml
analysis/test/integration/typedDictionaryTest.ml
GreyElaina/pyre-check
abcb5daa64c38a25aed9ab238bb61290444ab06c
[ "MIT" ]
null
null
null
analysis/test/integration/typedDictionaryTest.ml
GreyElaina/pyre-check
abcb5daa64c38a25aed9ab238bb61290444ab06c
[ "MIT" ]
null
null
null
analysis/test/integration/typedDictionaryTest.ml
GreyElaina/pyre-check
abcb5daa64c38a25aed9ab238bb61290444ab06c
[ "MIT" ]
null
null
null
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open OUnit2 open IntegrationTest open Test let test_check_typed_dictionaries context = let assert_test_typed_dictionary source =...
33.065347
109
0.586927
8aaf875d836efddc303f37b7d024f940120f631d
90
ml
OCaml
test/installation/user.ml
glennsl/luv
97497dec2fc205f13fef392423a9333e9ae5c3e1
[ "MIT" ]
253
2018-07-12T20:32:22.000Z
2022-02-16T03:43:40.000Z
test/installation/user.ml
glennsl/luv
97497dec2fc205f13fef392423a9333e9ae5c3e1
[ "MIT" ]
124
2018-11-21T03:06:42.000Z
2022-03-11T01:48:36.000Z
test/installation/user.ml
glennsl/luv
97497dec2fc205f13fef392423a9333e9ae5c3e1
[ "MIT" ]
23
2019-02-09T15:59:04.000Z
2021-12-13T12:53:41.000Z
let () = Luv.Loop.(update_time (default ())); print_endline "Depending on luv works."
22.5
41
0.666667
8ab199c5597263a06b63cdf55c553bf684e54f3d
12,293
ml
OCaml
lib/ck_disk_node.ml
ghuysmans/cuekeeper
a33faaa35eebf9e53da1c64c2289566c267d87fd
[ "BSD-2-Clause" ]
null
null
null
lib/ck_disk_node.ml
ghuysmans/cuekeeper
a33faaa35eebf9e53da1c64c2289566c267d87fd
[ "BSD-2-Clause" ]
null
null
null
lib/ck_disk_node.ml
ghuysmans/cuekeeper
a33faaa35eebf9e53da1c64c2289566c267d87fd
[ "BSD-2-Clause" ]
null
null
null
(* Copyright (C) 2015, Thomas Leonard * See the README file for details. *) open Sexplib.Conv open Ck_utils type node_details = { parent : Ck_id.t sexp_option; name : string; description : string; ctime : float; contact : Ck_id.t sexp_option; conflicts : string sexp_list; } [@@deriving sexp] type astate...
37.251515
121
0.680794
f39ebbc68b25dd852ba1445ea3ddd0858a3f1ec3
666
ml
OCaml
classwork17.02.28/min1.ml
Cow-berry/Ocaml-Programs
b0b1eca894c66cf6e6d4226e17ce86963e893900
[ "MIT" ]
2
2017-01-15T16:03:22.000Z
2017-01-22T09:36:47.000Z
classwork17.02.28/min1.ml
Cow-berry/Ocaml-Programs
b0b1eca894c66cf6e6d4226e17ce86963e893900
[ "MIT" ]
null
null
null
classwork17.02.28/min1.ml
Cow-berry/Ocaml-Programs
b0b1eca894c66cf6e6d4226e17ce86963e893900
[ "MIT" ]
null
null
null
let pair n m = if n <> m then (m, (m+1))::[] else (m, 1)::[];; let rec make n m = if m > 1 then pair n (n-m) @ make n (m-1);; let print_str n l m = for i = 1 to List.length m do if List.mem (n, i) l then print_int 1 else print_int 0 done;; let print_rel m l = for i = 1 to List.length m do print_str i...
21.483871
45
0.584084
d2fae418ce1517cfe7ac07cb9feeeb23d3fd43a4
7,337
ml
OCaml
src/kernel/mbrowse.ml
vbmithr/merlin
cd78778a1f507f35292b6b5d7a3417ac86f2534d
[ "MIT" ]
null
null
null
src/kernel/mbrowse.ml
vbmithr/merlin
cd78778a1f507f35292b6b5d7a3417ac86f2534d
[ "MIT" ]
null
null
null
src/kernel/mbrowse.ml
vbmithr/merlin
cd78778a1f507f35292b6b5d7a3417ac86f2534d
[ "MIT" ]
null
null
null
(* {{{ COPYING *( This file is part of Merlin, an helper for ocaml editors Copyright (C) 2013 - 2015 Frédéric Bour <frederic.bour(_)lakaban.net> Thomas Refis <refis.thomas(_)gmail.com> Simon Castellan <simon.castellan(_)iuwt.fr> Permission is hereby...
30.069672
79
0.668257
8ae48aec94487436ed5163301afeea216bdd92d7
17,433
ml
OCaml
lib/Translation_unit.ml
jrochel/ocamlformat
a2079a81bdaf258f5e7742bb5295765aeedd8cc1
[ "MIT" ]
null
null
null
lib/Translation_unit.ml
jrochel/ocamlformat
a2079a81bdaf258f5e7742bb5295765aeedd8cc1
[ "MIT" ]
null
null
null
lib/Translation_unit.ml
jrochel/ocamlformat
a2079a81bdaf258f5e7742bb5295765aeedd8cc1
[ "MIT" ]
null
null
null
(********************************************************************** * * * OCamlFormat * * * * Copyright (c) 2017-present, ...
39.892449
77
0.575632
8adc32e850d120b526fb2630c82970a9dfbf92d0
984
ml
OCaml
data/sp14/2670.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/sp14/2670.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/sp14/2670.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
let rec wwhile (f,b) = let (b',c') = f b in if c' then wwhile (f, b') else b';; let fixpoint (f,b) = wwhile ((f, (b = (f b))), b);; (* fix let h x = let xx = (x * x) * x in (xx, (xx < 512));; let rec wwhile (f,b) = let (b',c') = f b in if c' then wwhile (f, b') else b';; let fixpoint (f,b) = wwhile (h, b);; *) ...
14.470588
79
0.455285
8af6cada4ead634187d3b28e04004133bbf424d4
445
ml
OCaml
examples/int-to-string.ml
uchicago-cmsc22600-aut21/mll-examples
8e6caed7a8f0651a94d0758b0c0e2337a5781434
[ "BSD-3-Clause" ]
null
null
null
examples/int-to-string.ml
uchicago-cmsc22600-aut21/mll-examples
8e6caed7a8f0651a94d0758b0c0e2337a5781434
[ "BSD-3-Clause" ]
null
null
null
examples/int-to-string.ml
uchicago-cmsc22600-aut21/mll-examples
8e6caed7a8f0651a94d0758b0c0e2337a5781434
[ "BSD-3-Clause" ]
1
2021-11-17T10:03:50.000Z
2021-11-17T10:03:50.000Z
/* int-to-string.ml */ fun intToString i = if i < 0 then "-" ^ (intToString (- i)) else if i == 0 then "0" else if i == 1 then "1" else if i == 2 then "2" else if i == 3 then "3" else if i == 4 then "4" else if i == 5 then "5" else if i == 6 then "6" else if i == 7 then "7" else if i == 8...
24.722222
56
0.514607
afb9d008be2cb14251c8ca6edb5b19f92718913b
4,302
mli
OCaml
src/sdam.mli
CARV-ICS-FORTH/scoop
9fbd86629a7e1951a392959149bb553fb5611a5f
[ "Apache-2.0" ]
2
2017-02-15T23:36:49.000Z
2018-09-11T09:34:14.000Z
src/sdam.mli
CARV-ICS-FORTH/scoop
9fbd86629a7e1951a392959149bb553fb5611a5f
[ "Apache-2.0" ]
null
null
null
src/sdam.mli
CARV-ICS-FORTH/scoop
9fbd86629a7e1951a392959149bb553fb5611a5f
[ "Apache-2.0" ]
2
2015-10-15T07:41:09.000Z
2019-10-08T12:55:13.000Z
(****************************************************************************) (* Copyright (c) 2010-13, *) (* Dimitris Chassapis <hassapis@ics.forth.gr> *) (* *) (* ...
35.553719
132
0.549512
8a3d52882d0c67e2f452c035bcb3c1f87f8835d1
3,561
ml
OCaml
etc/kaleidoscope/codegen.ml
artagnon/sandbox
672836b14ab4f51e91badb2fa85d7573f89f609f
[ "0BSD" ]
null
null
null
etc/kaleidoscope/codegen.ml
artagnon/sandbox
672836b14ab4f51e91badb2fa85d7573f89f609f
[ "0BSD" ]
1
2021-02-15T04:36:38.000Z
2021-02-15T10:17:37.000Z
etc/kaleidoscope/codegen.ml
artagnon/sandbox
672836b14ab4f51e91badb2fa85d7573f89f609f
[ "0BSD" ]
null
null
null
(*===----------------------------------------------------------------------=== * Code Generation *===----------------------------------------------------------------------===*) open Llvm exception Error of string let context = global_context () let the_module = create_module context "my cool jit" let builder = bui...
35.257426
80
0.597023
8af23f9dbde301624b9adaafe01db9cd409fd70d
14,394
ml
OCaml
hphp/hack/src/monitor/monitorConnection.ml
Mu-L/hhvm
972dcfd068c41f18ba5eadd1b833750917817225
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/monitor/monitorConnection.ml
Mu-L/hhvm
972dcfd068c41f18ba5eadd1b833750917817225
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/monitor/monitorConnection.ml
Mu-L/hhvm
972dcfd068c41f18ba5eadd1b833750917817225
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open ServerMonitorUtils let log s ~tracker = Hh_logger.log ("[%s] " ^^ s) (Connection_tracker.log...
40.094708
153
0.657705
afaf6c5a4c032bb92d72a434dd292fca6b2f731d
832
ml
OCaml
raytracer.ml
wiatrak2/raytracer
69ea891941ea3753c3f9cbd1e4f184c0d86a5d9f
[ "MIT" ]
2
2021-12-08T00:02:40.000Z
2022-03-01T20:06:24.000Z
raytracer.ml
wiatrak2/raytracer
69ea891941ea3753c3f9cbd1e4f184c0d86a5d9f
[ "MIT" ]
null
null
null
raytracer.ml
wiatrak2/raytracer
69ea891941ea3753c3f9cbd1e4f184c0d86a5d9f
[ "MIT" ]
1
2022-03-01T20:06:27.000Z
2022-03-01T20:06:27.000Z
open Camera open Vec open Ray open Intersection open Trace open World open Light (* for each pixel of the image compute its color *) module Raytracer = struct let trace ?(reflectDepth: int = 3) (camera: Camera.t) (world: World.t) = let screen = Camera.getScreen camera in let (w,h) = Screen.getRes screen in l...
28.689655
81
0.668269
8a06ccabeb094df620d3f1ddf65ff7af1bba0ae4
8,184
ml
OCaml
source/configuration.ml
zhuang-93/pyre-check
460b4c7bd81b152f386d6867c963564e1b20f19c
[ "MIT" ]
null
null
null
source/configuration.ml
zhuang-93/pyre-check
460b4c7bd81b152f386d6867c963564e1b20f19c
[ "MIT" ]
null
null
null
source/configuration.ml
zhuang-93/pyre-check
460b4c7bd81b152f386d6867c963564e1b20f19c
[ "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 default_python_major_version = 3 let default_python_minor_version = 10 let default_python_micro_version ...
28.318339
100
0.66349
afbfc6de0e619899c9760c0f6bdb709588496d6d
2,945
ml
OCaml
src/hpdrMain.ml
ksuenaga/HybridPDR
da242835b86b5747110f2eb84693305348172ff2
[ "CECILL-B" ]
1
2019-11-07T16:24:47.000Z
2019-11-07T16:24:47.000Z
src/hpdrMain.ml
ksuenaga/HybridPDR
da242835b86b5747110f2eb84693305348172ff2
[ "CECILL-B" ]
null
null
null
src/hpdrMain.ml
ksuenaga/HybridPDR
da242835b86b5747110f2eb84693305348172ff2
[ "CECILL-B" ]
null
null
null
open Core_kernel open Format let parse_verif_task_from_file ?(initial_condition=Z3Intf.mk_true) ?(safety_region=Z3Intf.mk_true) input_file = let module E = Error in let input_file = input_file in (* let input_stream = ref In_channel.stdin in *) (* let initial_condition = ref initial_condition in let safety...
33.465909
122
0.619355
8a5d363f1c09d36144561a971a3634b4945deb95
35,920
ml
OCaml
src/proto_010_PtGRANAD/lib_client/mockup.ml
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
8
2021-11-02T13:06:58.000Z
2021-11-18T19:07:33.000Z
src/proto_010_PtGRANAD/lib_client/mockup.ml
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
14
2020-05-07T15:51:28.000Z
2022-02-06T10:11:51.000Z
src/proto_010_PtGRANAD/lib_client/mockup.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> *) ...
36.803279
129
0.615145
f363c764fd65c94eb09b83b577cd7b1e0e59e436
812
mli
OCaml
src/lib/frontend/typeChecker.mli
letonchanh/Coeus
21d417a56a80d6c9014cbb6ed86b329d522fd9a3
[ "Apache-2.0" ]
3
2019-10-06T12:05:37.000Z
2020-04-16T11:40:50.000Z
src/lib/frontend/typeChecker.mli
letonchanh/Coeus
21d417a56a80d6c9014cbb6ed86b329d522fd9a3
[ "Apache-2.0" ]
null
null
null
src/lib/frontend/typeChecker.mli
letonchanh/Coeus
21d417a56a80d6c9014cbb6ed86b329d522fd9a3
[ "Apache-2.0" ]
2
2020-06-12T00:18:56.000Z
2020-10-09T23:35:38.000Z
val check_var : Env.t -> Ast.Coeus.Identifier.t option -> Ast.Coeus.Identifier.t -> (Ast.Ecoeus.VarBinding.t, string) Core.Result.t val check_expr : Env.t -> Ast.Coeus.Identifier.t option -> Ast.Coeus.Expr.t -> (Ast.Ecoeus.Expr.t, string) Core.Result.t val check_lvalue : Env.t -> Ast.Coeu...
23.882353
77
0.657635
f3e5f4c670b0811f2ca40582f12b1566120cc89c
11,260
ml
OCaml
analysis/test/integration/tupleTest.ml
s-pace/pyre-check
2b71dcf22e4672567cfe0dfef356f11646d66244
[ "MIT" ]
5
2019-02-14T19:46:47.000Z
2020-01-16T05:48:45.000Z
analysis/test/integration/tupleTest.ml
s-pace/pyre-check
2b71dcf22e4672567cfe0dfef356f11646d66244
[ "MIT" ]
null
null
null
analysis/test/integration/tupleTest.ml
s-pace/pyre-check
2b71dcf22e4672567cfe0dfef356f11646d66244
[ "MIT" ]
2
2019-02-14T19:46:23.000Z
2020-07-13T03:53:04.000Z
(* 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 OUnit2 open IntegrationTest let test_check_tuple context = let assert_type_errors = assert_type_errors ~context in assert_type_erro...
27.940447
100
0.543073
8a6de446a87def279af0aa5cfb5014d5995f6832
562
ml
OCaml
bin/uid.ml
dinosaure/carton
8cb8b3685fab477594b2d83c70b2fc965d1d59b9
[ "MIT" ]
17
2018-01-24T07:46:02.000Z
2020-07-09T23:24:30.000Z
bin/uid.ml
dinosaure/carton
8cb8b3685fab477594b2d83c70b2fc965d1d59b9
[ "MIT" ]
null
null
null
bin/uid.ml
dinosaure/carton
8cb8b3685fab477594b2d83c70b2fc965d1d59b9
[ "MIT" ]
1
2019-02-10T11:01:42.000Z
2019-02-10T11:01:42.000Z
type t = Digestif.SHA1.t type ctx = Digestif.SHA1.ctx let empty = Digestif.SHA1.empty let feed = Digestif.SHA1.feed_bigstring let get = Digestif.SHA1.get let hash x = Char.code (Digestif.SHA1.to_raw_string x).[0] let length = Digestif.SHA1.digest_size let equal = Digestif.SHA1.equal let pp = Digestif.SHA1.pp let of_r...
29.578947
58
0.786477
8a60fa3176841f3b4360a069c8d652768f8259b5
17,910
ml
OCaml
src/proto_alpha/lib_protocol/round_repr.ml
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
null
null
null
src/proto_alpha/lib_protocol/round_repr.ml
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
null
null
null
src/proto_alpha/lib_protocol/round_repr.ml
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2021 Nomadic Labs <contact@nomadic-labs.com> *) ...
36.851852
80
0.648241
8aed6606cbcee35c47a36f101c7cb2449d0da547
24,947
ml
OCaml
src/AstToCStar.ml
TakuKitamura/kremlin-base
f979e7a2838870038c9a075ee5aeb4e98a03a769
[ "Apache-2.0" ]
null
null
null
src/AstToCStar.ml
TakuKitamura/kremlin-base
f979e7a2838870038c9a075ee5aeb4e98a03a769
[ "Apache-2.0" ]
null
null
null
src/AstToCStar.ml
TakuKitamura/kremlin-base
f979e7a2838870038c9a075ee5aeb4e98a03a769
[ "Apache-2.0" ]
null
null
null
(* Copyright (c) INRIA and Microsoft Corporation. All rights reserved. *) (* Licensed under the Apache 2.0 License. *) (** Translation from Low* to C* *) (** In order to qualify as a Low* AST (and hence be eligible for translation), * the following criteria must be satisfied: * - no nested let-bindings; * - no mat...
31.222778
123
0.602397
8ae82c0639098d4b5924beed1ac8b6ff0b9bd967
11,593
ml
OCaml
src/nucleus/congruence.ml
Andromedans/andromeda
761b0fd07cab5cbcf68a06e79b7f27301826ca82
[ "BSD-2-Clause" ]
210
2015-11-10T17:16:02.000Z
2022-03-31T16:08:42.000Z
src/nucleus/congruence.ml
anjapetkovic/andromeda
a5c678450e6c6d4a7cd5eee1196bde558541b994
[ "BSD-2-Clause" ]
244
2015-11-10T16:20:24.000Z
2020-09-06T03:55:46.000Z
src/nucleus/congruence.ml
anjapetkovic/andromeda
a5c678450e6c6d4a7cd5eee1196bde558541b994
[ "BSD-2-Clause" ]
20
2015-11-10T16:15:10.000Z
2022-02-16T08:08:23.000Z
(** Congruence rules *) open Nucleus_types exception Skip_argument (** Given the values [es] of previous metas, a premise and two arguments [arg1] and [arg2] for the premise, generate an (abstracted) equation which equates them. If the arguments are proof irrelevant, return [None]. *) let congruence_boundary...
37.038339
131
0.634348
8ab803b696f3727fa84d1ab703d6838ba4c8b714
6,483
mli
OCaml
duniverse/opam/src/format/opamPp.mli
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
duniverse/opam/src/format/opamPp.mli
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
duniverse/opam/src/format/opamPp.mli
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
(**************************************************************************) (* *) (* Copyright 2012-2018 OCamlPro *) (* Copyright 2012 INRIA *) (* ...
33.942408
80
0.569335
8a5862f98c0b67561847c326a475a1d95cb5e229
278
ml
OCaml
data/derived/comb/progs/unify/prog5256.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/prog0349.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/fa15/progs/unify/prog0349.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let rec wwhile (f,b) = let i = b in match f i with | (v_n,false ) -> v_n | (v_n,true ) -> wwhile (f, v_n);; 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);; let _ = fixpoint (collatz, 3);;
23.166667
76
0.507194
8aeacd8696049c0d5922e0d1fa90f321d960232e
462
ml
OCaml
data/fa15/0822.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/fa15/0822.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/fa15/0822.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
let rec listReverse l = match l with | [] -> [] | h::t -> [h; listReverse t];; (* fix let rec listReverse l = match l with | [] -> [] | h::t -> h :: (listReverse t);; *) (* changed spans (2,58)-(2,76) *) (* type error slice (2,3)-(2,78) (2,20)-(2,76) (2,24)-(2,76) (2,58)-(2,76) (2,62)-(2,73) (2,62)-(2,75) *) ...
12.833333
78
0.471861
afb2a3d6a4f4078da0f1cdefc7cdb7d8fd832893
336
ml
OCaml
libraries/rds/lib_test/test_async.ml
apeschar/ocaml-aws
4d76d0d760b0e94f496ee49bd3f68fcb671308b8
[ "BSD-3-Clause" ]
1
2020-05-21T19:12:04.000Z
2020-05-21T19:12:04.000Z
libraries/rds/lib_test/test_async.ml
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
null
null
null
libraries/rds/lib_test/test_async.ml
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
null
null
null
open Aws_rds_test module T = TestSuite(struct type 'a m = 'a Async.Deferred.t let access_key = Unix.getenv "AWS_ACCESS_KEY" let secret_key = Unix.getenv "AWS_SECRET_KEY" let run_request = Aws_async.Runtime.run_request ~access_key ~secret_key let un_m v = Async.Thread_safe.block_on_async_exn (fun ...
28
75
0.723214
8ab0bbf1e010e73d723d01aba04224e862b5ed1a
168,650
ml
OCaml
lib/Fmt_ast.ml
ocaml-ppx/ocamlformat
c50a61aaeb006a54aa87b4c161f43dcb4608537a
[ "MIT" ]
499
2017-10-09T10:51:58.000Z
2022-03-30T19:11:27.000Z
lib/Fmt_ast.ml
ocaml-ppx/ocamlformat
c50a61aaeb006a54aa87b4c161f43dcb4608537a
[ "MIT" ]
1,392
2017-10-19T18:03:58.000Z
2022-03-30T15:53:42.000Z
lib/Fmt_ast.ml
ocaml-ppx/ocamlformat
c50a61aaeb006a54aa87b4c161f43dcb4608537a
[ "MIT" ]
118
2017-10-19T18:46:20.000Z
2022-03-30T11:22:50.000Z
(**************************************************************************) (* *) (* OCamlFormat *) (* *) (* ...
37.890362
80
0.554533
8aa4f59f501f81bd81cbfa618572e6f079695582
106,266
ml
OCaml
src/parser/flow_ast_mapper.ml
dizzydaizy/flow
dddadf96f00e9c85ad6b52ad997d19d8f0977cd7
[ "MIT" ]
null
null
null
src/parser/flow_ast_mapper.ml
dizzydaizy/flow
dddadf96f00e9c85ad6b52ad997d19d8f0977cd7
[ "MIT" ]
null
null
null
src/parser/flow_ast_mapper.ml
dizzydaizy/flow
dddadf96f00e9c85ad6b52ad997d19d8f0977cd7
[ "MIT" ]
null
null
null
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) module Ast = Flow_ast let map_opt : 'node. ('node -> 'node) -> 'node option -> 'node option = fun map opt -> match opt with |...
41.969194
101
0.62559
afaf528efc9a82826f4fb9983cddd85d65ef4d2b
183
ml
OCaml
misc/c5.ml
iStopped/ocaml_class
9fcd22d091cd734c38ea275bdb2d4afb730f24ce
[ "WTFPL" ]
null
null
null
misc/c5.ml
iStopped/ocaml_class
9fcd22d091cd734c38ea275bdb2d4afb730f24ce
[ "WTFPL" ]
null
null
null
misc/c5.ml
iStopped/ocaml_class
9fcd22d091cd734c38ea275bdb2d4afb730f24ce
[ "WTFPL" ]
null
null
null
let append l1 l2 = let rec apprendr l1 l2 = match l1,l2 with | h::t, _ -> h :: (apprendr t l2) | [], h::t -> h :: (apprendr [] t) | [], [] -> [] in apprendr l1 l2
22.875
38
0.464481
8aec87747eca888ee8388071860d139a585bbdd4
533
mli
OCaml
src/quip/Sidekick_quip.mli
c-cube/cdcl
4cdbaf17bfa60e166f6404a071f520ed15e97ebe
[ "Apache-2.0" ]
12
2019-06-10T22:13:36.000Z
2022-01-05T08:19:07.000Z
src/quip/Sidekick_quip.mli
c-cube/cdcl
4cdbaf17bfa60e166f6404a071f520ed15e97ebe
[ "Apache-2.0" ]
10
2019-08-20T14:44:03.000Z
2022-01-06T16:56:14.000Z
src/quip/Sidekick_quip.mli
c-cube/cdcl
4cdbaf17bfa60e166f6404a071f520ed15e97ebe
[ "Apache-2.0" ]
12
2019-07-17T16:00:18.000Z
2021-12-06T18:24:08.000Z
(** Proofs of unsatisfiability in the Quip proof format.. This targets {{: https://c-cube.github.io/quip-book/ } Quip} as an {b experimental} proof backend. *) module Proof = Proof type t = Proof.t (** The state holding the whole proof. *) (** What format to use to serialize the proof? *) type out_format =...
20.5
64
0.666041
af29cb58ecced963f3cfac766ad5c3dca8cd48f6
1,063
ml
OCaml
Ast.ml
argymouz/alan-compiler
a226f3f0f4428fc77d2daacc39c0668bbe7dc5d9
[ "MIT" ]
null
null
null
Ast.ml
argymouz/alan-compiler
a226f3f0f4428fc77d2daacc39c0668bbe7dc5d9
[ "MIT" ]
null
null
null
Ast.ml
argymouz/alan-compiler
a226f3f0f4428fc77d2daacc39c0668bbe7dc5d9
[ "MIT" ]
null
null
null
type binop = | Plus | Minus | Mul | Div | Mod | Eq | Neq | More | Less | Morequ | Lessequ | And | Or type unop = | Plus | Minus | Neg type data_type = | Int | Byte | IntArr | ByteArr type const = | Int of int | Char of int ...
16.873016
61
0.570085
8af5dea15c49053aee661336620aea0b30fa601d
1,230
mli
OCaml
src_top/herd_based/lib/CAstUtils.mli
VarunKoyyalagunta/rmem
9de95224f6293acb3cd6022471219a0a01b9b260
[ "BSD-2-Clause" ]
103
2016-11-28T10:00:41.000Z
2022-03-08T05:06:00.000Z
src_top/herd_based/lib/CAstUtils.mli
VarunKoyyalagunta/rmem
9de95224f6293acb3cd6022471219a0a01b9b260
[ "BSD-2-Clause" ]
193
2017-02-28T19:04:04.000Z
2022-03-25T14:33:24.000Z
src_top/herd_based/lib/CAstUtils.mli
VarunKoyyalagunta/rmem
9de95224f6293acb3cd6022471219a0a01b9b260
[ "BSD-2-Clause" ]
39
2016-12-14T23:10:34.000Z
2022-03-22T21:35:17.000Z
(****************************************************************************) (* the diy toolsuite *) (* *) (* Jade Alglave, University College London, UK. *) (* L...
68.333333
78
0.400813
8a7fb36b5c66718c5ad5c9059feae7211aef694d
12,935
ml
OCaml
src/bun.ml
talex5/ocaml-bun
fc20527b83ea95993992f71822a641c37676cab5
[ "MIT" ]
null
null
null
src/bun.ml
talex5/ocaml-bun
fc20527b83ea95993992f71822a641c37676cab5
[ "MIT" ]
null
null
null
src/bun.ml
talex5/ocaml-bun
fc20527b83ea95993992f71822a641c37676cab5
[ "MIT" ]
null
null
null
let program = let doc = "Fuzz this program. (Ideally it's a Crowbar test; if it isn't, \ ensure that it takes, as its last argument, a file for afl-fuzz to pass it.)" in Cmdliner.Arg.(required & pos 0 (some non_dir_file) None & info [] ~docv:"PROGRAM" ~doc) let program_argv = let doc = "Argum...
45.227273
106
0.61639
8aa6d12547cae080eb28fd26a0111cba6d1aa1ac
900
ml
OCaml
fuzz/fuzz.ml
CraigFe/duff
3e56a971ee58167967dc997c0694ee6361459d07
[ "MIT" ]
null
null
null
fuzz/fuzz.ml
CraigFe/duff
3e56a971ee58167967dc997c0694ee6361459d07
[ "MIT" ]
null
null
null
fuzz/fuzz.ml
CraigFe/duff
3e56a971ee58167967dc997c0694ee6361459d07
[ "MIT" ]
null
null
null
open Crowbar let length l = List.fold_left (fun a -> function | Duff.Copy (_, len) -> a + len | Duff.Insert (_, len) -> a + len) 0 l let apply a b c l = List.fold_left (fun pos -> function | Duff.Copy (off, len) -> Cstruct.blit a off c pos len; pos + len | Duf...
22.5
58
0.565556
8ae6bef699c71672f2ad99f9a15734774e8af537
3,504
ml
OCaml
src/Types.ml
samuli/little-search
58af9cb5acf7c6d86942e2f2cc137802ba8a2ed9
[ "MIT" ]
4
2019-09-15T14:42:15.000Z
2020-02-03T17:39:57.000Z
src/Types.ml
samuli/little-search
58af9cb5acf7c6d86942e2f2cc137802ba8a2ed9
[ "MIT" ]
null
null
null
src/Types.ml
samuli/little-search
58af9cb5acf7c6d86942e2f2cc137802ba8a2ed9
[ "MIT" ]
null
null
null
type searchterm = string type recordId = string type resultpageNum = int type resultLimit = int type resultCount = int type searchLookfor = string type searchParam = (string * string) type searchParams = { lookfor: string; filters: searchParam list; page: resultpageNum; limit: resultLi...
20.982036
75
0.665811
8ace884a4bf7169c74d51de826f45230b616c044
1,260
mli
OCaml
gospel/test/ocaml-source-mli/ocaml_tests.mli
enieber/vocal
f1e0930863d4f9c44370d5bb9b435727b7c8efcf
[ "MIT" ]
2
2021-03-03T15:31:36.000Z
2021-03-05T16:01:39.000Z
gospel/test/ocaml-source-mli/ocaml_tests.mli
enieber/vocal
f1e0930863d4f9c44370d5bb9b435727b7c8efcf
[ "MIT" ]
2
2021-03-03T16:08:23.000Z
2021-03-03T19:31:03.000Z
gospel/test/ocaml-source-mli/ocaml_tests.mli
enieber/vocal
f1e0930863d4f9c44370d5bb9b435727b7c8efcf
[ "MIT" ]
null
null
null
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
43.448276
76
0.311111
8ae5b021cf25b6a36bcd1ac5a3a1b61bf9df07c7
46
ml
OCaml
eval/sherrloc/easyocaml++/easyocaml-additional/exams/exam0.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
eval/sherrloc/easyocaml++/easyocaml-additional/exams/exam0.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
eval/sherrloc/easyocaml++/easyocaml-additional/exams/exam0.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
(*F*) let f x y = let w = y + 1 in w :: y
9.2
18
0.369565
af6f48bd91d6da55d855a83134a4e418a2dcc37f
3,731
ml
OCaml
sihl-web/test/user.ml
emilgoldsmith/sihl
588f9bc59b1f2d3c72fbde10bd1867caf7a1986c
[ "MIT" ]
null
null
null
sihl-web/test/user.ml
emilgoldsmith/sihl
588f9bc59b1f2d3c72fbde10bd1867caf7a1986c
[ "MIT" ]
null
null
null
sihl-web/test/user.ml
emilgoldsmith/sihl
588f9bc59b1f2d3c72fbde10bd1867caf7a1986c
[ "MIT" ]
null
null
null
open Alcotest_lwt open Lwt.Syntax let apply_middlewares handler = let token = Sihl_web.Bearer_token.middleware in let authentication = Sihl_web.Authentication.token_middleware () in let user = Sihl_web.User.token_middleware () in handler |> Rock.Middleware.apply user |> Rock.Middleware.apply authentication...
30.08871
74
0.682391
f3da97eef5540fa372023e47741edc930695ea32
527
ml
OCaml
4_trees/4.3_arbres_poly.ml
etaghayor/tp-pf5
2a11647213ac5a593f0c10b78a304864f87ed6c1
[ "MIT" ]
null
null
null
4_trees/4.3_arbres_poly.ml
etaghayor/tp-pf5
2a11647213ac5a593f0c10b78a304864f87ed6c1
[ "MIT" ]
null
null
null
4_trees/4.3_arbres_poly.ml
etaghayor/tp-pf5
2a11647213ac5a593f0c10b78a304864f87ed6c1
[ "MIT" ]
null
null
null
(* GRADE: 100% *) let rec forall_labels p a = match a with | Nil -> true | Node (x,y,z) -> p x && forall_labels p y && forall_labels p z let is_uniform x a = forall_labels (fun y -> x==y) a let rec forall_subtrees pn a = match a with | Nil -> true | Node (x,y,z) -> pn x y z && forall_subtrees pn y && f...
21.958333
77
0.605313
8a59d15b4243f152ceb1471ce63dd022f17f3d4d
2,229
mli
OCaml
src/kernel/mconfig_dot.mli
bluddy/merlin
cdb6b7100dce8f02970d1b69f3a68fe498ec22b4
[ "MIT" ]
null
null
null
src/kernel/mconfig_dot.mli
bluddy/merlin
cdb6b7100dce8f02970d1b69f3a68fe498ec22b4
[ "MIT" ]
null
null
null
src/kernel/mconfig_dot.mli
bluddy/merlin
cdb6b7100dce8f02970d1b69f3a68fe498ec22b4
[ "MIT" ]
1
2017-11-06T17:46:59.000Z
2017-11-06T17:46:59.000Z
(* {{{ COPYING *( This file is part of Merlin, an helper for ocaml editors Copyright (C) 2013 - 2015 Frédéric Bour <frederic.bour(_)lakaban.net> Thomas Refis <refis.thomas(_)gmail.com> Simon Castellan <simon.castellan(_)iuwt.fr> Permission is hereby...
38.431034
79
0.695379
8ab5e5547acdbe391d2ffb9ce8eb423021295e77
2,880
ml
OCaml
src/arg_spec.ml
mlasson/dune
599b7873be67c9798f9fe87979e7fec3b3a6d78b
[ "MIT" ]
null
null
null
src/arg_spec.ml
mlasson/dune
599b7873be67c9798f9fe87979e7fec3b3a6d78b
[ "MIT" ]
null
null
null
src/arg_spec.ml
mlasson/dune
599b7873be67c9798f9fe87979e7fec3b3a6d78b
[ "MIT" ]
null
null
null
open! Stdune open Import type static = Static type dynamic = Dynamic type ('a, _) t = | A : string -> ('a, _) t | As : string list -> ('a, _) t | S : ('a, 'b) t list -> ('a, 'b) t | Concat : string * ('a, 'b) t list -> ('a, 'b) t | Dep : Path.t -> ('a, _) t | Deps : Path.t ...
29.690722
73
0.532639
8ae41dc73c9a9e525f873dba491614642e52670c
730
mli
OCaml
bigint.mli
kortescode/Big-Integer-Calculator
09d4944d324a446caf730b2256a0f6e31a44afe0
[ "Apache-2.0" ]
null
null
null
bigint.mli
kortescode/Big-Integer-Calculator
09d4944d324a446caf730b2256a0f6e31a44afe0
[ "Apache-2.0" ]
null
null
null
bigint.mli
kortescode/Big-Integer-Calculator
09d4944d324a446caf730b2256a0f6e31a44afe0
[ "Apache-2.0" ]
null
null
null
(***********************************) (* *) (* Module Bigint *) (* *) (***********************************) module type BIGINT = sig exception OpByZero of string type bigint type base val binary : base val octal : base val...
21.470588
54
0.516438
8afe574ac7774ef8cc48bb9e29f6427b1eddd55e
599
ml
OCaml
binary_search.ml
alexbaretta/dawg
3d98d41ae72884e99938e41149cfb08203dec792
[ "BSD-3-Clause" ]
2
2017-03-02T19:09:01.000Z
2017-03-03T08:57:43.000Z
binary_search.ml
alexbaretta/dawg
3d98d41ae72884e99938e41149cfb08203dec792
[ "BSD-3-Clause" ]
null
null
null
binary_search.ml
alexbaretta/dawg
3d98d41ae72884e99938e41149cfb08203dec792
[ "BSD-3-Clause" ]
null
null
null
let rec find_r a v low high = if low = high then low else let mid = (low + high) / 2 in if v <= a.(mid) then find_r a v low mid else find_r a v (mid+1) high let find a v = let n = Array.length a in if n = 0 then raise Not_found else if v < a.(0) then 0 else let n1 = ...
16.638889
33
0.51586
8ad96a21609654bfafb523626ba17f54731c3dfe
2,365
mli
OCaml
src/dune_engine/artifact_substitution.mli
phink/dune
19556d65ba63c28b4b99021a86bd50ca34268b1a
[ "MIT" ]
1
2020-09-18T13:10:03.000Z
2020-09-18T13:10:03.000Z
src/dune_engine/artifact_substitution.mli
phink/dune
19556d65ba63c28b4b99021a86bd50ca34268b1a
[ "MIT" ]
1
2020-11-12T13:27:57.000Z
2020-11-12T13:27:57.000Z
src/dune_engine/artifact_substitution.mli
phink/dune
19556d65ba63c28b4b99021a86bd50ca34268b1a
[ "MIT" ]
null
null
null
(** Handling of substitutions in artifacts during promotion and installation *) open Stdune type configpath = | Sourceroot | Stdlib (** A symbolic representation of the value to substitute to *) type t = | Vcs_describe of Path.Source.t | Location of Section.t * Package.Name.t | Configpath of configpath |...
29.197531
82
0.684567
8a70954229af9c777a9c20f63db497fbc94092c4
354
mly
OCaml
schulze-modified/parser.mly
mukeshtiwari/formalized-voting
44c001288087c96c0fe8569dcc6c9704e68fb9aa
[ "MIT" ]
null
null
null
schulze-modified/parser.mly
mukeshtiwari/formalized-voting
44c001288087c96c0fe8569dcc6c9704e68fb9aa
[ "MIT" ]
null
null
null
schulze-modified/parser.mly
mukeshtiwari/formalized-voting
44c001288087c96c0fe8569dcc6c9704e68fb9aa
[ "MIT" ]
null
null
null
%token <int> INT %token <char> CAND %token LPAREN %token RPAREN %token COMMA %token SEMI %token NEWLINE %token EOF %start <(char * int) list list> prog %% prog: | EOF {[]} | v = stmtone; NEWLINE; ds = prog EOF {v :: ds} stmtone: | vs = separated_nonempty_list (SEMI, stmt) {vs}; stmt: LPAREN; s = CAND...
15.391304
55
0.612994
af249bd5bcf0aaa3f2e592a5ddbec62e63511708
2,917
mli
OCaml
src/dune_engine/install.mli
lefessan/dune
855b085d889389e17dc914d094617090321fbfa5
[ "MIT" ]
null
null
null
src/dune_engine/install.mli
lefessan/dune
855b085d889389e17dc914d094617090321fbfa5
[ "MIT" ]
null
null
null
src/dune_engine/install.mli
lefessan/dune
855b085d889389e17dc914d094617090321fbfa5
[ "MIT" ]
null
null
null
(** Opam install file *) open! Stdune module Dune_section = Section module Dst : sig type t val to_string : t -> string include Dune_lang.Conv.S with type t := t val to_dyn : t -> Dyn.t end (** Location for installation, containing the sections relative to the current package, and sites of possibly ot...
20.542254
78
0.599589
8a848b3275ca3992b9367c5a3f78a88863446f4d
2,688
ml
OCaml
base/pop/pml/src/Array.ml
GetPoplog/Seed
11cf37589021b232ab7b5b5f87169a694e474031
[ "MIT" ]
5
2021-06-04T21:18:58.000Z
2022-03-05T02:45:19.000Z
base/pop/pml/src/Array.ml
GetPoplog/Seed
11cf37589021b232ab7b5b5f87169a694e474031
[ "MIT" ]
58
2021-06-07T13:36:23.000Z
2021-09-16T08:39:18.000Z
base/pop/pml/src/Array.ml
GetPoplog/Seed
11cf37589021b232ab7b5b5f87169a694e474031
[ "MIT" ]
1
2021-06-13T01:50:16.000Z
2021-06-13T01:50:16.000Z
(* --- Copyright University of Sussex 1994. All rights reserved. ---------- * File: C.all/pml/src/Array.ml * Purpose: PML: the Array module * Author: Robert John Duncan, Nov 16 1994 (see revisions) * Documentation: HELP * ARRAY * Related Files: *) signature Array = sig eqtype '...
24
80
0.602307
8a62241765ac99fb0c138b23cd8d6a83d6080f10
7,608
ml
OCaml
data/fa15/0929.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/fa15/0929.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/fa15/0929.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 = if n <= 0 then [] else x :: (clone x (n - 1));; let padZero l1 l2 = if (List.length l1) <= (List.length l2) then (((clone 0 ((List.length l2) - (List.length l1))) @ l1), l2) else (((clone 0 ((List.length l1) - (List.length l2))) @ l2), l1);; let rec removeZero l = let f a x = if (List...
19.163728
75
0.488696
8a5d58f0763caea74c115267fd66c2c3578acaf1
5,283
ml
OCaml
src/imandra-reason-parser/reason_toolchain_ocaml.ml
AestheticIntegration/imandra-reason-parser
1f253b6140f2c9bb86f16d4422fa8a3ae31c7db7
[ "MIT" ]
4
2018-06-01T23:33:18.000Z
2020-08-17T13:53:19.000Z
src/imandra-reason-parser/reason_toolchain_ocaml.ml
AestheticIntegration/imandra-reason-parser
1f253b6140f2c9bb86f16d4422fa8a3ae31c7db7
[ "MIT" ]
2
2018-09-04T14:46:49.000Z
2018-09-05T14:15:04.000Z
src/imandra-reason-parser/reason_toolchain_ocaml.ml
AestheticIntegration/imandra-reason-parser
1f253b6140f2c9bb86f16d4422fa8a3ae31c7db7
[ "MIT" ]
null
null
null
open Reason_toolchain_conf (* The OCaml parser keep doc strings in the comment list. To avoid duplicating comments, we need to filter comments that appear as doc strings is the AST out of the comment list. *) let doc_comments_filter () = let open Ast_mapper in let open Parsetree in let seen = Hashtbl.c...
34.305195
105
0.710581
8aa14ee6d7e62399442024eff8826391efe92550
404
ml
OCaml
hello.ml
feihong/ocaml-quickstart
46d02cf43cff7e80681011c35e76a0ddf882935c
[ "Apache-2.0" ]
null
null
null
hello.ml
feihong/ocaml-quickstart
46d02cf43cff7e80681011c35e76a0ddf882935c
[ "Apache-2.0" ]
null
null
null
hello.ml
feihong/ocaml-quickstart
46d02cf43cff7e80681011c35e76a0ddf882935c
[ "Apache-2.0" ]
null
null
null
open Printf let print_random_hanzi () = let buf = Buffer.create 1 in let chr = Base.Random.int_incl 0x4e00 0x9fff |> Uchar.of_int in Buffer.add_utf_8_uchar buf chr; let len = buf |> Buffer.length in printf "Random hanzi: %s (%d bytes)\n" (buf |> Buffer.contents) len let () = let () = Base.Random.self_init...
25.25
69
0.673267
afa634ad3c848f81d22a900519a5959f09df8b8e
2,259
ml
OCaml
hphp/hack/src/naming/nast_eval.ml
NunoEdgarGFlowHub/hhvm
991973e74588e2da4cd800c0e4cf03430094649a
[ "PHP-3.01", "Zend-2.0" ]
3
2015-07-05T07:32:31.000Z
2015-07-13T02:31:10.000Z
hphp/hack/src/naming/nast_eval.ml
h4ck3rm1k3/hhvm
79e045f3ad1cbe079ff15c163131eb184db025f9
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/naming/nast_eval.ml
h4ck3rm1k3/hhvm
79e045f3ad1cbe079ff15c163131eb184db025f9
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(** * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the "hack" directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * *) open Core ope...
35.296875
80
0.687915
affca3ff823a08d541face8dc9dc807ff48397f0
1,941
ml
OCaml
hphp/hack/src/typing/typing_coeffects.ml
umanda/hhvm
4ae8526da6ac1eb475fa1e021e0207d7c064a4cd
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/typing_coeffects.ml
umanda/hhvm
4ae8526da6ac1eb475fa1e021e0207d7c064a4cd
[ "PHP-3.01", "Zend-2.0" ]
1
2021-08-21T07:48:37.000Z
2021-08-21T07:48:37.000Z
hphp/hack/src/typing/typing_coeffects.ml
umanda/hhvm
4ae8526da6ac1eb475fa1e021e0207d7c064a4cd
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(* * Copyright (c) 2020, 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 Typing_defs_core open Hh_prelude module Env = Typing_env module SN = Naming_special_names let capability_id = ...
29.861538
95
0.720762
4402c2e6e04979686e3f813e9b225ae21ea8c582
9,290
ml
OCaml
test/src/cidr_tests.ml
acatton/fork--janestreet--core
c125d07001e8a15a3b705e783e3da7e8e6413f25
[ "Apache-2.0" ]
null
null
null
test/src/cidr_tests.ml
acatton/fork--janestreet--core
c125d07001e8a15a3b705e783e3da7e8e6413f25
[ "Apache-2.0" ]
null
null
null
test/src/cidr_tests.ml
acatton/fork--janestreet--core
c125d07001e8a15a3b705e783e3da7e8e6413f25
[ "Apache-2.0" ]
null
null
null
open! Core open! Expect_test_helpers_kernel module Inet_addr = Unix.Inet_addr module Cidr = Unix.Cidr open Cidr let does_match ?(expected = true) cidr inet_addr = let matches = does_match cidr inet_addr in require [%here] (Bool.equal expected matches) ~if_false_then_print_s: (lazy [%message ...
40.92511
90
0.655436
8a1d6ad0967b5550d5b0d229dafc8987da32bf68
158,739
ml
OCaml
src/ocaml/typing/402/typecore.ml
rvantonder/merlin
09d6b2762f0be7129decae97bc2d87fc854bbbce
[ "MIT" ]
null
null
null
src/ocaml/typing/402/typecore.ml
rvantonder/merlin
09d6b2762f0be7129decae97bc2d87fc854bbbce
[ "MIT" ]
4
2019-01-19T10:08:04.000Z
2019-02-27T21:41:30.000Z
src/ocaml/typing/402/typecore.ml
rvantonder/merlin
09d6b2762f0be7129decae97bc2d87fc854bbbce
[ "MIT" ]
null
null
null
(***********************************************************************) (* *) (* OCaml *) (* *) (* Xavier Ler...
38.012213
106
0.593969
aff8b1c412bfaf207543a1b6bd5d2616f153f3b0
16,717
ml
OCaml
src/catala/default_calculus/interpreter.ml
AltGr/catala
d71d50ea4431059bec4ae741ccfae37597abacf1
[ "Apache-2.0" ]
null
null
null
src/catala/default_calculus/interpreter.ml
AltGr/catala
d71d50ea4431059bec4ae741ccfae37597abacf1
[ "Apache-2.0" ]
null
null
null
src/catala/default_calculus/interpreter.ml
AltGr/catala
d71d50ea4431059bec4ae741ccfae37597abacf1
[ "Apache-2.0" ]
null
null
null
(* This file is part of the Catala compiler, a specification language for tax and social benefits computation rules. Copyright (C) 2020 Inria, contributor: Denis Merigoux <denis.merigoux@inria.fr> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance...
51.595679
100
0.575821
8a1d25da9ef8a67ffa74d4c70ab88d70f9a9ace9
523
ml
OCaml
examples/otp.t/adder.ml
progman1/caramel
728830719a2a583eb894aed92a82a779d81bd2c3
[ "Apache-2.0" ]
961
2020-09-15T11:01:50.000Z
2022-03-26T00:25:17.000Z
examples/otp.t/adder.ml
progman1/caramel
728830719a2a583eb894aed92a82a779d81bd2c3
[ "Apache-2.0" ]
83
2020-09-27T18:51:24.000Z
2022-03-08T10:57:53.000Z
examples/otp.t/adder.ml
progman1/caramel
728830719a2a583eb894aed92a82a779d81bd2c3
[ "Apache-2.0" ]
26
2020-10-13T10:39:13.000Z
2021-12-07T04:57:33.000Z
type init_args = int type message = Add of int type reply = int type state = int type call_response = Reply of reply * state | No_reply of state let init x = Ok x let handle_cast _ state = No_reply state let handle_call message _pid state = Timer.sleep 1000; match message with Add i -> Reply (state, state + ...
21.791667
63
0.709369
8a967cc4211130a996063de43d9257e7280dcfec
259
ml
OCaml
Ocaml/Gruppo9/Es1/ocelia.ml
lucaleone/University-Roma-Tre-tests-and-exams
67885c03b0311e71e9c7740f36b5751840dfd0e5
[ "MIT" ]
1
2020-09-06T16:03:15.000Z
2020-09-06T16:03:15.000Z
Ocaml/Gruppo9/Es1/ocelia.ml
lucaleone/University-Roma-Tre-tests-and-exams
67885c03b0311e71e9c7740f36b5751840dfd0e5
[ "MIT" ]
null
null
null
Ocaml/Gruppo9/Es1/ocelia.ml
lucaleone/University-Roma-Tre-tests-and-exams
67885c03b0311e71e9c7740f36b5751840dfd0e5
[ "MIT" ]
null
null
null
(* complessita prende a parametro una formula e calcola la sua complessità *) (* complessita : form -> int *) let rec complessita = function | And(a, b) | Or(a, b) | Imp(a, b) -> 1 + (complessita a) + (complessita b) | Not a -> 1 + (complessita a) | _ -> 0
43.166667
77
0.625483
afbc97c0ffb70bc8cb4c7a154d5f07676b8e9554
1,394
mly
OCaml
lib/procRules.mly
jmadiot/herdtools7
b58a26946e2012a40ad280c3a11f2d251824a3ae
[ "CECILL-B" ]
null
null
null
lib/procRules.mly
jmadiot/herdtools7
b58a26946e2012a40ad280c3a11f2d251824a3ae
[ "CECILL-B" ]
null
null
null
lib/procRules.mly
jmadiot/herdtools7
b58a26946e2012a40ad280c3a11f2d251824a3ae
[ "CECILL-B" ]
null
null
null
%{ (****************************************************************************) (* the diy toolsuite *) (* *) (* Jade Alglave, University College London, UK. *) (...
48.068966
78
0.435438
8ad6747e91cb806704babf3fbcbdbec2b6b7aad1
2,471
mli
OCaml
src/lib_shell_services/protocol_services.mli
noclouds/tezos-master
6c31af7ab3ea782f89f988e389e9b0860207a8d6
[ "MIT" ]
null
null
null
src/lib_shell_services/protocol_services.mli
noclouds/tezos-master
6c31af7ab3ea782f89f988e389e9b0860207a8d6
[ "MIT" ]
null
null
null
src/lib_shell_services/protocol_services.mli
noclouds/tezos-master
6c31af7ab3ea782f89f988e389e9b0860207a8d6
[ "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> *) ...
42.603448
79
0.502631
8ae1e67db9b0850b4ee2eb3164cb030851f112c4
2,717
ml
OCaml
src/protocol/protocol_operation.ml
fraidev/deku
51d981a6e035b184ef13662afe4ac514c6a2eaaa
[ "MIT" ]
null
null
null
src/protocol/protocol_operation.ml
fraidev/deku
51d981a6e035b184ef13662afe4ac514c6a2eaaa
[ "MIT" ]
null
null
null
src/protocol/protocol_operation.ml
fraidev/deku
51d981a6e035b184ef13662afe4ac514c6a2eaaa
[ "MIT" ]
null
null
null
open Helpers open Crypto open Core module Consensus = struct type t = | Add_validator of Validators.validator | Remove_validator of Validators.validator [@@deriving eq, ord, yojson] let hash payload = to_yojson payload |> Yojson.Safe.to_string |> BLAKE2B.hash let sign secret t = let hash = hash t...
35.75
81
0.676849
8ad57b8678fc718d116bd43e00b8e78f6263b6fd
2,679
ml
OCaml
hphp/hack/src/server/serverArgs_sig.ml
theovod/hhvm
9c9e0653f825edd4c2db2a6d77cd9b123add7d6b
[ "PHP-3.01", "Zend-2.0" ]
1
2021-06-19T23:31:58.000Z
2021-06-19T23:31:58.000Z
hphp/hack/src/server/serverArgs_sig.ml
theovod/hhvm
9c9e0653f825edd4c2db2a6d77cd9b123add7d6b
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/server/serverArgs_sig.ml
theovod/hhvm
9c9e0653f825edd4c2db2a6d77cd9b123add7d6b
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
module Types = struct (** Commandline arg "--with-mini-state" constructs this record. *) type mini_state_target_info = { saved_state_fn : string; corresponding_base_revision : string; deptable_fn : string; prechecked_changes : Relative_path.t list; changes : Relative_path.t list...
37.732394
95
0.511758