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
8a2ffbc893204c0d2136e83aded79661fa342246
983
ml
OCaml
examples/benchmarks/outlier/particles/run.ml
eric93/probzelus
cbbb17fcdcb1cccd4140f32ff4dde8400c16e501
[ "Apache-2.0" ]
36
2019-12-17T15:31:06.000Z
2022-03-30T18:29:47.000Z
examples/benchmarks/outlier/particles/run.ml
eric93/probzelus
cbbb17fcdcb1cccd4140f32ff4dde8400c16e501
[ "Apache-2.0" ]
2
2021-01-16T08:45:07.000Z
2021-02-04T20:33:42.000Z
examples/benchmarks/outlier/particles/run.ml
eric93/probzelus
cbbb17fcdcb1cccd4140f32ff4dde8400c16e501
[ "Apache-2.0" ]
6
2019-12-29T18:23:15.000Z
2021-05-26T09:24:25.000Z
(* * Copyright 2018-2020 IBM Corporation * * 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 or agree...
28.911765
75
0.715158
afcdd506489775694dc3a503a712e3b2d4e9ed58
1,386
ml
OCaml
src/infer.ml
peterbb/dep
ade52018188fc199a67e09b3c0bcd53472f4bccc
[ "MIT" ]
null
null
null
src/infer.ml
peterbb/dep
ade52018188fc199a67e09b3c0bcd53472f4bccc
[ "MIT" ]
1
2015-05-17T17:47:30.000Z
2015-05-18T13:38:44.000Z
src/infer.ml
peterbb/dep
ade52018188fc199a67e09b3c0bcd53472f4bccc
[ "MIT" ]
null
null
null
open Term exception Error of string let type_error msg = raise (Error msg) let whnf_pi delta t = match Eval.whnf delta t with | Pi (x, t0, t1) -> (x, t0, t1) | _ -> failwith "expected a pi type" let rec infer delta gamma tm = try match tm with | Box -> type_error "# has no type" | Star -> ...
27.72
67
0.574315
8ae3b10c6bf5a47bcfe5b87a007263a84790100f
559
ml
OCaml
data/derived/comb/progs/unify/prog1771.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
4
2017-07-04T22:30:05.000Z
2021-03-29T14:44:52.000Z
data/derived/sp14/progs/unify/prog1771.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog1771.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
type expr = | VarX | VarY | Sine of expr | Cosine of expr | Average of expr* expr | Times of expr* expr | Tangent of expr* expr | Square2 of expr* expr* expr | Thresh of expr* expr* expr* expr;; let buildTangent (e1,e2) = Tangent (e1, e2);; let buildX () = VarX;; let buildY () = VarY;; let rec bu...
20.703704
59
0.550984
445f13dc90e3d9a77bd79e4d327197c4066a66ae
1,722
ml
OCaml
libraries/ec2/lib/attachClassicLinkVpc.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/attachClassicLinkVpc.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/attachClassicLinkVpc.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 = AttachClassicLinkVpcRequest.t type output = AttachClassicLinkVpcResult.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 (Endpoi...
27.333333
87
0.622532
440255c9607fbaa06aea05d9d10a5e74a00ef618
650
ml
OCaml
src/parser_utils/json_of_estree.ml
mirek/flow
fa1268d9153ec372796d7bf0fb364e648f1eb51f
[ "MIT" ]
20,996
2015-01-01T13:51:47.000Z
2022-03-31T17:44:01.000Z
src/parser_utils/json_of_estree.ml
mirek/flow
fa1268d9153ec372796d7bf0fb364e648f1eb51f
[ "MIT" ]
8,315
2015-01-01T19:56:43.000Z
2022-03-31T15:58:10.000Z
src/parser_utils/json_of_estree.ml
mirek/flow
fa1268d9153ec372796d7bf0fb364e648f1eb51f
[ "MIT" ]
2,338
2015-01-05T03:28:26.000Z
2022-03-26T20:40:56.000Z
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) module Hh_json_translator : Translator_intf.S with type t = Hh_json.json = struct type t = Hh_json.json open Hh_json let st...
20.967742
81
0.732308
8a9d06089d97ade249a8e4a187a4fa17cd510ae5
3,448
ml
OCaml
hphp/hack/src/typing/typing_equality_check.ml
elgenie/hiphop-php
23efadffa702cf296403a850e3500f91511258f7
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/typing_equality_check.ml
elgenie/hiphop-php
23efadffa702cf296403a850e3500f91511258f7
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/typing_equality_check.ml
elgenie/hiphop-php
23efadffa702cf296403a850e3500f91511258f7
[ "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 Typing_d...
38.311111
82
0.62819
4462569309c352cea8fbf6dd9540c7b848b8c184
3,499
ml
OCaml
src/IFSeqSig.ml
diskuv/feat
d5e6f63234c2e901b3a922fd888f78a9ddbb710d
[ "MIT" ]
1
2021-11-11T16:20:43.000Z
2021-11-11T16:20:43.000Z
src/IFSeqSig.ml
diskuv/feat
d5e6f63234c2e901b3a922fd888f78a9ddbb710d
[ "MIT" ]
null
null
null
src/IFSeqSig.ml
diskuv/feat
d5e6f63234c2e901b3a922fd888f78a9ddbb710d
[ "MIT" ]
null
null
null
(******************************************************************************) (* *) (* Feat *) (* ...
41.654762
80
0.549871
8acb34c40f70bad65440657830a0efaa271fb6f0
12,104
ml
OCaml
src/kernel/merlin_typer.ml
jordwalke/merlin
40cd1704df97d7e74e17824b684438a4e55c1771
[ "MIT" ]
1
2021-03-12T10:45:56.000Z
2021-03-12T10:45:56.000Z
src/kernel/merlin_typer.ml
jordwalke/merlin
40cd1704df97d7e74e17824b684438a4e55c1771
[ "MIT" ]
null
null
null
src/kernel/merlin_typer.ml
jordwalke/merlin
40cd1704df97d7e74e17824b684438a4e55c1771
[ "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...
34.095775
81
0.6654
8a5d304c43a1c39ac840dae30962e641f5f57295
300
mli
OCaml
src/monitor/socketAcceptor.mli
aryzing/flow
e352b6b3ff135e78b402234dfbfa7e6653580b70
[ "MIT" ]
1
2019-07-15T20:48:46.000Z
2019-07-15T20:48:46.000Z
src/monitor/socketAcceptor.mli
aryzing/flow
e352b6b3ff135e78b402234dfbfa7e6653580b70
[ "MIT" ]
8
2020-04-06T11:23:08.000Z
2022-03-24T12:41:12.000Z
src/monitor/socketAcceptor.mli
aryzing/flow
e352b6b3ff135e78b402234dfbfa7e6653580b70
[ "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. *) val run: Lwt_unix.file_descr -> autostop:bool -> unit Lwt.t val run_legacy: Lwt_unix.file_descr -> unit Lwt.t
30
66
0.723333
8ad5c95a250c33c4c69f82b16bc07bbb09e52b3e
2,578
ml
OCaml
data/fa15_min/1665.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15/1665.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15_min/1665.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));; let padZero l1 l2 = if (List.length l1) < (List.length l2) then (((clone 0 ((List.length l2) - (List.length l1))) @ l1), l2) else (l1, ((clone 0 ((List.length l1) - (List.length l2))) @ l2));; let rec removeZero l = match l with | [] -> [] |...
28.32967
130
0.508534
aff99d2de01542be2f708977e7d6b1559b116e9b
780
ml
OCaml
result/fixml/diff/sub125/original.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
9
2021-06-04T04:38:13.000Z
2021-12-15T05:45:28.000Z
result/fixml/diff/sub125/original.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
result/fixml/diff/sub125/original.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
type aexp = | Const of int | Var of string | Power of (string * int) | Times of aexp list | Sum of aexp list let rec diff : aexp * string -> aexp = fun (e, x) -> match e with | Const a -> Const 0 | Var a -> if a = x then Const 1 else Var a | Power (a, b) -> if a = x && b = 1 then Const 1 ...
26.896552
73
0.494872
8adb3fef0544e1e3fe309ec59d29fc715503a33e
14,603
ml
OCaml
src/parser_utils/output/__tests__/js_layout_generator/operator_precedence_test.ml
https-justin3687-business-site/flow
e19583bb56f7cb385941f0f9cc34e5d09c38d222
[ "MIT" ]
null
null
null
src/parser_utils/output/__tests__/js_layout_generator/operator_precedence_test.ml
https-justin3687-business-site/flow
e19583bb56f7cb385941f0f9cc34e5d09c38d222
[ "MIT" ]
null
null
null
src/parser_utils/output/__tests__/js_layout_generator/operator_precedence_test.ml
https-justin3687-business-site/flow
e19583bb56f7cb385941f0f9cc34e5d09c38d222
[ "MIT" ]
1
2019-11-30T03:40:04.000Z
2019-11-30T03:40:04.000Z
(** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open OUnit2 open Ast_builder open Layout_test_utils open Layout_generator_test_utils module S = Ast_builder.Statements module E = ...
33.493119
136
0.523112
8a37a338fb5a4a08d656734b2ff00ecf14c1036b
1,333
mli
OCaml
interfaces/3.10/gc.mli
crabtw/stdcompat
667cb7bf93f423e3c7f56b319e9366394d6adc4a
[ "BSD-2-Clause-FreeBSD" ]
23
2017-11-16T10:01:56.000Z
2021-06-23T08:44:44.000Z
interfaces/3.10/gc.mli
crabtw/stdcompat
667cb7bf93f423e3c7f56b319e9366394d6adc4a
[ "BSD-2-Clause-FreeBSD" ]
15
2018-04-21T13:49:52.000Z
2022-02-16T11:19:38.000Z
interfaces/3.10/gc.mli
crabtw/stdcompat
667cb7bf93f423e3c7f56b319e9366394d6adc4a
[ "BSD-2-Clause-FreeBSD" ]
8
2018-04-23T18:10:00.000Z
2021-12-14T14:31:22.000Z
type stat = { minor_words: float ; promoted_words: float ; major_words: float ; minor_collections: int ; major_collections: int ; heap_words: int ; heap_chunks: int ; live_words: int ; live_blocks: int ; free_words: int ; free_blocks: int ; largest_free: int ; fragments: int ; compactions:...
31
72
0.706677
8afe77c25d8b3a5a42a57d1a5ae75a37087f57a9
2,177
mli
OCaml
CodeHawk/CHB/bchlibpower32/bCHPowerOperand.mli
kestreltechnology/codehawk
e38199ded2b249e6b9d6d98ae7064ed1c887cc0a
[ "MIT" ]
2
2019-12-05T18:50:53.000Z
2019-12-07T18:47:44.000Z
CodeHawk/CHB/bchlibpower32/bCHPowerOperand.mli
kestreltechnology/codehawk
e38199ded2b249e6b9d6d98ae7064ed1c887cc0a
[ "MIT" ]
1
2020-03-04T05:04:37.000Z
2020-03-04T05:04:37.000Z
CodeHawk/CHB/bchlibpower32/bCHPowerOperand.mli
kestreltechnology/codehawk
e38199ded2b249e6b9d6d98ae7064ed1c887cc0a
[ "MIT" ]
1
2019-12-05T18:51:24.000Z
2019-12-05T18:51:24.000Z
(* ============================================================================= CodeHawk Binary Analyzer Author: Henny Sipma ------------------------------------------------------------------------------ The MIT License (MIT) Copyright (c) 2022 Aarno Labs LLC Permission is hereby granted, free of...
32.014706
83
0.670648
8a6975a5e2d68fa6fe92de3980aedcb706207254
1,911
ml
OCaml
amfbrowser/sources/ui/uITools.ml
EEvangelisti/amfinder
00c2edc58549b403c0eee90a0993e509d4fcb5b3
[ "MIT" ]
8
2021-03-06T16:39:33.000Z
2022-02-08T23:44:01.000Z
amfbrowser/sources/ui/uITools.ml
EEvangelisti/amfinder
00c2edc58549b403c0eee90a0993e509d4fcb5b3
[ "MIT" ]
18
2021-04-06T18:27:12.000Z
2022-02-22T06:53:25.000Z
amfbrowser/sources/ui/uITools.ml
EEvangelisti/amfinder
00c2edc58549b403c0eee90a0993e509d4fcb5b3
[ "MIT" ]
5
2021-09-05T11:45:30.000Z
2022-03-26T17:39:14.000Z
(* AMFinder - ui/uITools.ml * * MIT License * Copyright (c) 2021 Edouard Evangelisti * * 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...
34.745455
79
0.723705
8a1888fbe2e47525873823b9b873fe51441de464
1,013
ml
OCaml
plugin/test/newTypeTest.ml
aspin/pyre-check
fe78b41789ba3ef091b0b021d9a1c6267905a7f8
[ "MIT" ]
null
null
null
plugin/test/newTypeTest.ml
aspin/pyre-check
fe78b41789ba3ef091b0b021d9a1c6267905a7f8
[ "MIT" ]
null
null
null
plugin/test/newTypeTest.ml
aspin/pyre-check
fe78b41789ba3ef091b0b021d9a1c6267905a7f8
[ "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 Ast open Plugin open Test let test_transform_ast _ = let assert_expand ?(qualifier = "qualifier") source ex...
20.26
67
0.616979
8a19067ba18ed3ad12878b8123d60ae64264f76c
208
mli
OCaml
libraries/ec2/lib/deleteVolume.mli
pm-mck/ocaml-aws
7912f94e73941d07d350d7f06c625853298c962c
[ "BSD-3-Clause" ]
null
null
null
libraries/ec2/lib/deleteVolume.mli
pm-mck/ocaml-aws
7912f94e73941d07d350d7f06c625853298c962c
[ "BSD-3-Clause" ]
null
null
null
libraries/ec2/lib/deleteVolume.mli
pm-mck/ocaml-aws
7912f94e73941d07d350d7f06c625853298c962c
[ "BSD-3-Clause" ]
null
null
null
open Types_internal type input = DeleteVolumeRequest.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.714286
74
0.740385
444886428785e70a8ad17fa573d8c5703bdc047d
45,571
ml
OCaml
src/dune_engine/build_system.ml
hyphenrf/dune
0ecdf454ea4db89453b26a6b73cf96506697b4ac
[ "MIT" ]
null
null
null
src/dune_engine/build_system.ml
hyphenrf/dune
0ecdf454ea4db89453b26a6b73cf96506697b4ac
[ "MIT" ]
null
null
null
src/dune_engine/build_system.ml
hyphenrf/dune
0ecdf454ea4db89453b26a6b73cf96506697b4ac
[ "MIT" ]
null
null
null
open! Stdune open Import open Memo.O module Action_builder = Action_builder0 module Fs : sig (** A memoized version of [mkdir] that avoids calling [mkdir] multiple times in the same directory. *) val mkdir_p : Path.Build.t -> unit Memo.t end = struct let mkdir_p_memo = (* CR-someday amokhov: It's diffi...
36.959448
80
0.629457
44124e78df3b3286f257d13ce11f47e39cf3063f
1,294
ml
OCaml
examples/pprint/test_pprint.ml
MisterDA/crowbar
0061f60605b550c967fd5ccdcc95fcab786b55fa
[ "MIT" ]
158
2017-03-17T13:04:10.000Z
2022-02-18T12:55:24.000Z
examples/pprint/test_pprint.ml
MisterDA/crowbar
0061f60605b550c967fd5ccdcc95fcab786b55fa
[ "MIT" ]
51
2017-04-26T09:20:51.000Z
2022-03-04T12:15:51.000Z
examples/pprint/test_pprint.ml
MisterDA/crowbar
0061f60605b550c967fd5ccdcc95fcab786b55fa
[ "MIT" ]
27
2017-04-25T22:33:05.000Z
2022-02-18T07:17:01.000Z
open PPrint open Crowbar type t = (string * PPrint.document) let doc = fix (fun doc -> choose [ const ("", empty); const ("a", PPrint.char 'a'); const ("123", string "123"); const ("Hello", string "Hello"); const ("awordwhichisalittlebittoolong", string "awordwhichisalittlebittoolong"); const ("", ...
32.35
65
0.574961
8af32ff38c2d42065dde88f0aa5b31b5bd7f43b4
8,292
ml
OCaml
src/jbuild_load.ml
fdopen/jbuilder
a7067f5aa867c4c0d21650491e03793caf734f52
[ "Apache-2.0" ]
null
null
null
src/jbuild_load.ml
fdopen/jbuilder
a7067f5aa867c4c0d21650491e03793caf734f52
[ "Apache-2.0" ]
null
null
null
src/jbuild_load.ml
fdopen/jbuilder
a7067f5aa867c4c0d21650491e03793caf734f52
[ "Apache-2.0" ]
null
null
null
open Import open Jbuild module Jbuilds = struct type script = { dir : Path.t ; scope : Scope.t } type one = | Literal of (Path.t * Scope.t * Stanza.t list) | Script of script type t = one list let generated_jbuilds_dir = Path.(relative root) "_build/.jbuilds" let ensure_parent_dir_e...
33.035857
90
0.570429
8af7827be9a711434b2dcb3f15053365d2e8a822
13,564
mli
OCaml
lib/vscode-jsonrpc/_gen/main.mli
tmattio/js-bindings
109076fe682c84eb1cf01c7f38ee1f4163fb3a9a
[ "MIT" ]
18
2021-04-14T02:52:09.000Z
2021-11-14T17:08:09.000Z
lib/vscode-jsonrpc/_gen/main.mli
tmattio/ocaml-ecmascript
109076fe682c84eb1cf01c7f38ee1f4163fb3a9a
[ "MIT" ]
4
2021-04-14T16:23:13.000Z
2021-05-22T00:00:55.000Z
lib/vscode-jsonrpc/_gen/main.mli
tmattio/ocaml-ecmascript
109076fe682c84eb1cf01c7f38ee1f4163fb3a9a
[ "MIT" ]
1
2021-04-14T15:29:24.000Z
2021-04-14T15:29:24.000Z
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"] ] open Ts2ocaml_baselib (* unknown identifiers: - AbstractMessageReader - AbstractMessageWriter - ChildProcess - ConnectionOptions - ConnectionStrategy - DataCallback - Disposable - Logger - Message - Message...
33.657568
319
0.648629
444b4f5ceebe0dae7b09099e9b1548219933967d
2,385
ml
OCaml
src/Utils.ml
smorimoto/rescript-editor-support
bd15389f017315a1cf4aeb999debd23f05b42495
[ "MIT" ]
null
null
null
src/Utils.ml
smorimoto/rescript-editor-support
bd15389f017315a1cf4aeb999debd23f05b42495
[ "MIT" ]
null
null
null
src/Utils.ml
smorimoto/rescript-editor-support
bd15389f017315a1cf4aeb999debd23f05b42495
[ "MIT" ]
null
null
null
let topLoc fname = { Location.loc_start = {Lexing.pos_fname = fname; pos_lnum = 1; pos_bol = 0; pos_cnum = 0}; Location.loc_end = {Lexing.pos_fname = fname; pos_lnum = 1; pos_bol = 0; pos_cnum = 0}; loc_ghost = false; } (** * `startsWith(string, prefix)` * true if the string starts with t...
26.208791
81
0.646122
4458d5ed17d4f191ad0700161766a4f2b8ac3c79
26,647
ml
OCaml
src/core/texpr.ml
Aurel300/haxe
fbeac98f865bab5a21158117e1aad3b0bba77570
[ "MIT" ]
null
null
null
src/core/texpr.ml
Aurel300/haxe
fbeac98f865bab5a21158117e1aad3b0bba77570
[ "MIT" ]
null
null
null
src/core/texpr.ml
Aurel300/haxe
fbeac98f865bab5a21158117e1aad3b0bba77570
[ "MIT" ]
null
null
null
open Globals open Ast open TType open TFunctions open TUnification open TPrinting open Error let iter f e = match e.eexpr with | TConst _ | TLocal _ | TBreak | TContinue | TTypeExpr _ | TIdent _ -> () | TArray (e1,e2) | TBinop (_,e1,e2) | TFor (_,e1,e2) | TWhile (e1,e2,_) -> f e1; f e2; | TThrow e |...
32.856967
184
0.61339
8aec8ee53aa52902b7f95131efb261d69816c45a
219
mli
OCaml
libraries/rds/lib/deleteDBProxy.mli
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
null
null
null
libraries/rds/lib/deleteDBProxy.mli
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
1
2021-06-22T14:33:23.000Z
2021-06-22T14:33:23.000Z
libraries/rds/lib/deleteDBProxy.mli
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
null
null
null
open Types type input = DeleteDBProxyRequest.t type output = DeleteDBProxyResponse.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
af727726d45c05c827cce004b6ffb6e42f2a0a67
21,505
ml
OCaml
src/ocaml-config/ocaml_config.ml
Niols/dune
6481d0fac8ebf670957de0916b271562f50c954c
[ "MIT" ]
1,056
2018-01-17T23:27:17.000Z
2022-03-28T08:28:13.000Z
src/ocaml-config/ocaml_config.ml
Niols/dune
6481d0fac8ebf670957de0916b271562f50c954c
[ "MIT" ]
3,824
2018-01-17T15:09:57.000Z
2022-03-31T14:46:35.000Z
src/ocaml-config/ocaml_config.ml
Niols/dune
6481d0fac8ebf670957de0916b271562f50c954c
[ "MIT" ]
314
2018-01-21T13:57:15.000Z
2022-03-24T16:17:13.000Z
open! Stdune open Result.O module Prog_and_args = struct type t = { prog : string ; args : string list } end open Prog_and_args module Value = struct type t = | Bool of bool | Int of int | String of string | Words of string list | Prog_and_args of Prog_and_args.t let to_dyn : t...
28.827078
80
0.672216
8ac00444993714f8e8e86894469b78b8d2ffb9d6
1,017
mli
OCaml
src/alias.mli
mlasson/dune
599b7873be67c9798f9fe87979e7fec3b3a6d78b
[ "MIT" ]
null
null
null
src/alias.mli
mlasson/dune
599b7873be67c9798f9fe87979e7fec3b3a6d78b
[ "MIT" ]
2
2018-01-12T08:41:59.000Z
2020-12-30T21:57:31.000Z
src/alias.mli
mlasson/dune
599b7873be67c9798f9fe87979e7fec3b3a6d78b
[ "MIT" ]
null
null
null
open Stdune type t val equal : t -> t -> bool val hash : t -> int val compare : t -> t -> Ordering.t val make : string -> dir:Path.t -> t (** The following always holds: {[ make (name t) ~dir:(dir t) = t ]} *) val name : t -> string val dir : t -> Path.t val to_dyn : t -> Dyn.t val to_sexp : t ->...
18.833333
51
0.597837
8aee730a9a32f1ad4ae169f33c186f5f177dbe00
2,454
ml
OCaml
ocaml_modules/base/src/uniform_array.ml
samoht/opam-monorepo
77309015d51a321f88ee42ecb14af5e31649efd5
[ "0BSD" ]
null
null
null
ocaml_modules/base/src/uniform_array.ml
samoht/opam-monorepo
77309015d51a321f88ee42ecb14af5e31649efd5
[ "0BSD" ]
null
null
null
ocaml_modules/base/src/uniform_array.ml
samoht/opam-monorepo
77309015d51a321f88ee42ecb14af5e31649efd5
[ "0BSD" ]
null
null
null
open! Import (* WARNING: We use non-memory-safe things throughout the [Trusted] module. Most of it is only safe in combination with the type signature (e.g. exposing [val copy : 'a t -> 'b t] would be a big mistake). *) module Trusted : sig type 'a t val empty : 'a t val unsafe_create_uninitialized : l...
26.387097
86
0.642217
441c9cc4e7735db1a784394a7459e9b19fc87fea
1,476
mli
OCaml
lib/preface_specs/traced.mli
xvw/preface
985b8c850d3e15c72c127ba47f7ad74be7143dfa
[ "MIT" ]
109
2021-04-08T18:41:14.000Z
2022-03-26T10:28:45.000Z
lib/preface_specs/traced.mli
xvw/preface
985b8c850d3e15c72c127ba47f7ad74be7143dfa
[ "MIT" ]
35
2021-04-10T06:28:02.000Z
2022-01-31T10:43:36.000Z
lib/preface_specs/traced.mli
xvw/preface
985b8c850d3e15c72c127ba47f7ad74be7143dfa
[ "MIT" ]
3
2021-05-07T21:53:35.000Z
2021-08-28T12:28:12.000Z
(** A [Traced comonad] parametrized over an inner {!module:Comonad} and a tape (which is an arbitrary type). [Traced] is a {e comonad transformer}. [Traced] is [Cowriter] (the dual of [Writer]).*) (** Operation of [Traced] comonad parametrized over an inner comonad and [tape]. *) module type CORE = sig type ...
27.333333
83
0.607046
8a63cfcd85be7430a2d0596e051ea0c12c644abe
5,870
ml
OCaml
src/lib_shell_services/chain_validator_worker_state.ml
blockchain-analysis-study/my-tezos
948eb71a5ee68c0691b011dc17faf523d8c254e9
[ "MIT" ]
null
null
null
src/lib_shell_services/chain_validator_worker_state.ml
blockchain-analysis-study/my-tezos
948eb71a5ee68c0691b011dc17faf523d8c254e9
[ "MIT" ]
null
null
null
src/lib_shell_services/chain_validator_worker_state.ml
blockchain-analysis-study/my-tezos
948eb71a5ee68c0691b011dc17faf523d8c254e9
[ "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> *) ...
43.161765
81
0.552981
8adaa042a35b898fe89c987b8b957888e6f27a00
7,531
mli
OCaml
portaudio/portaudio_c_bindings.mli
wlitwin/ocaml_portaudio
28f555d2e80a7ac24dffdb5d27ef09b6da58ee57
[ "MIT" ]
null
null
null
portaudio/portaudio_c_bindings.mli
wlitwin/ocaml_portaudio
28f555d2e80a7ac24dffdb5d27ef09b6da58ee57
[ "MIT" ]
null
null
null
portaudio/portaudio_c_bindings.mli
wlitwin/ocaml_portaudio
28f555d2e80a7ac24dffdb5d27ef09b6da58ee57
[ "MIT" ]
null
null
null
(** Most functions in this module follow from {{: http://files.portaudio.com/docs/v19-doxydocs/} PortAudio Doxygen} as they are thin wrappers over the base PortAudio C library. *) module C_ffi = Portaudio_ffi module SampleFormat : sig type float32 type int32 type int24 type int16 type int8 t...
33.620536
268
0.604037
8aaac907d5d99af7c8ee7b5cbce4dab8e6450b04
1,372
ml
OCaml
fuzz/fuzz.ml
mirage/conan
8365e9be1d2353202ed5f6bbd1958672b97e5c37
[ "BSD-2-Clause-FreeBSD" ]
10
2021-01-03T13:51:15.000Z
2022-03-29T15:51:13.000Z
fuzz/fuzz.ml
mirage/conan
8365e9be1d2353202ed5f6bbd1958672b97e5c37
[ "BSD-2-Clause-FreeBSD" ]
4
2020-11-25T12:09:57.000Z
2021-10-12T09:36:33.000Z
fuzz/fuzz.ml
mirage/conan
8365e9be1d2353202ed5f6bbd1958672b97e5c37
[ "BSD-2-Clause-FreeBSD" ]
2
2021-03-21T18:26:41.000Z
2021-08-30T20:30:17.000Z
let ( / ) = Filename.concat let conan_database = match Sys.getenv "CONAN" with | path -> path | exception Not_found -> "database" let database = let rec go tree = function | [] -> tree | filename :: rest -> ( let ic = open_in (conan_database / filename) in let rs = Conan.Parse.parse_in...
32.666667
79
0.568513
441f718107ed4df049d0dafa258e34c17fb3e1fa
1,151
mli
OCaml
duniverse/0install/src/support/basedir.mli
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
duniverse/0install/src/support/basedir.mli
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
duniverse/0install/src/support/basedir.mli
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
(* Copyright (C) 2013, Thomas Leonard * See the README file for details, or visit http://0install.net. *) (** XDG Base Directory support, for locating caches, configuration, etc *) open Common type basedirs = { data: filepath list; cache: filepath list; config: filepath list; } (** Get configuration using [...
38.366667
110
0.725456
8afc3c8e0569ebd5b6fd803f7a7d7959cd4661e0
260
mli
OCaml
hphp/hack/src/version/compiler_id/compiler_id.mli
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/version/compiler_id/compiler_id.mli
jeffomatic/hhvm
afd1a0c089aff36a31b8990490366606694a2842
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/version/compiler_id/compiler_id.mli
jeffomatic/hhvm
afd1a0c089aff36a31b8990490366606694a2842
[ "PHP-3.01", "Zend-2.0" ]
1
2019-07-30T11:52:42.000Z
2019-07-30T11:52:42.000Z
(** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) external get_compiler_id : unit -> string = "hh_get_compiler_id"
26
66
0.711538
44599e8891f47347b0760f39248177629137054c
26,647
ml
OCaml
src/lib/interpreter/interpreter.ml
releaselab/tezla
7d09c29ab5ad8482f47a6564b545825012c362ba
[ "MIT" ]
null
null
null
src/lib/interpreter/interpreter.ml
releaselab/tezla
7d09c29ab5ad8482f47a6564b545825012c362ba
[ "MIT" ]
null
null
null
src/lib/interpreter/interpreter.ml
releaselab/tezla
7d09c29ab5ad8482f47a6564b545825012c362ba
[ "MIT" ]
null
null
null
open Core open Adt open Stack_data module Stack_data = Stack_data exception Type_error exception Cast_error exception Runtime_error of string type 'a or_failed = Ok of 'a | Failed type e_t = E : 'a t -> e_t type env = e_t Var.Map.t or_failed type ('param, 'storage) context = { ctx_param : 'param t; ctx_storage :...
36.907202
81
0.514429
443cf2d586580aac21db3732b13506ab4d64f030
3,177
ml
OCaml
hphp/hack/src/typing/tast_check/const_write_check.ml
2BitSalute/hhvm
da549f6612ca8531398a24c44dfc1027707da633
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/tast_check/const_write_check.ml
2BitSalute/hhvm
da549f6612ca8531398a24c44dfc1027707da633
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/tast_check/const_write_check.ml
2BitSalute/hhvm
da549f6612ca8531398a24c44dfc1027707da633
[ "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 Aast open Hh_prelude open Typing_defs module Env = Tast_env (* Requires id to be a property *) let check_stati...
32.090909
78
0.610639
8ad55a05f32bfcec70bff6aa6783ff2a562ba821
45,464
ml
OCaml
hphp/hack/src/hhbc/Hhas_parser_actions.ml
swtaarrs/hhvm
dfb8867363623d7d02d03a64691610f1289ef5ad
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/hhbc/Hhas_parser_actions.ml
swtaarrs/hhvm
dfb8867363623d7d02d03a64691610f1289ef5ad
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/hhbc/Hhas_parser_actions.ml
swtaarrs/hhvm
dfb8867363623d7d02d03a64691610f1289ef5ad
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(** * Copyright (c) 2017, 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 Hhbc_ast open Parsing module TV = Typed_value let check_srcloc = ref false (* TODO: proper...
38.791809
105
0.621305
8add3dd8f4bae33f695ad590a2ee3cb4bd75ddfa
3,447
ml
OCaml
extractionLwt.ml
clarus/coq-extraction-lwt-ocaml
391a00b22f62647fde211f2ba731589d50bc37d7
[ "MIT" ]
null
null
null
extractionLwt.ml
clarus/coq-extraction-lwt-ocaml
391a00b22f62647fde211f2ba731589d50bc37d7
[ "MIT" ]
null
null
null
extractionLwt.ml
clarus/coq-extraction-lwt-ocaml
391a00b22f62647fde211f2ba731589d50bc37d7
[ "MIT" ]
null
null
null
(** * Interface to the Lwt library. *) open Big_int (** Join. *) let join (x : 'a Lwt.t) (y : 'b Lwt.t) : ('a * 'b) Lwt.t = let r_x = ref None in let r_y = ref None in Lwt.bind (Lwt.join [ Lwt.bind x (fun x -> r_x := Some x; Lwt.return ()); Lwt.bind y (fun y -> r_y := Some y; Lwt.return ())]) (fun (_...
37.467391
81
0.630113
8a4cabc16fa39748c9dbdf8d0779a67e4591210a
1,704
ml
OCaml
libraries/ssm/lib/listDocuments.ml
anuragsoni/ocaml-aws
4acdbcdc95449e7c5f08528f472d25986dd4f8a2
[ "BSD-3-Clause" ]
134
2016-01-11T19:35:49.000Z
2022-02-19T15:57:41.000Z
libraries/ssm/lib/listDocuments.ml
anuragsoni/ocaml-aws
4acdbcdc95449e7c5f08528f472d25986dd4f8a2
[ "BSD-3-Clause" ]
66
2016-01-12T00:32:47.000Z
2022-03-31T03:34:49.000Z
libraries/ssm/lib/listDocuments.ml
anuragsoni/ocaml-aws
4acdbcdc95449e7c5f08528f472d25986dd4f8a2
[ "BSD-3-Clause" ]
33
2016-01-11T23:13:26.000Z
2022-03-28T23:49:11.000Z
open Types open Aws type input = ListDocumentsRequest.t type output = ListDocumentsResult.t type error = Errors_internal.t let service = "ssm" 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 ser...
27.047619
90
0.63439
440610d171093b16224d2e2fb2f811592d5c1356
46,197
ml
OCaml
src/ocaml-output/FStar_SMTEncoding_Z3.ml
pnmadelaine/FStar
cd926286b895228447ca15e03e00e7f7509815bb
[ "Apache-2.0" ]
null
null
null
src/ocaml-output/FStar_SMTEncoding_Z3.ml
pnmadelaine/FStar
cd926286b895228447ca15e03e00e7f7509815bb
[ "Apache-2.0" ]
null
null
null
src/ocaml-output/FStar_SMTEncoding_Z3.ml
pnmadelaine/FStar
cd926286b895228447ca15e03e00e7f7509815bb
[ "Apache-2.0" ]
null
null
null
open Prims type unsat_core = Prims.string Prims.list FStar_Pervasives_Native.option type scope_t = FStar_SMTEncoding_Term.decl Prims.list Prims.list type z3status = | UNSAT of unsat_core | SAT of (FStar_SMTEncoding_Term.error_labels * Prims.string FStar_Pervasives_Native.option) | UNKNOWN of (FStar_SMTEncodin...
44.377522
232
0.587094
444bf69ba2c2b1f6599aa5a76c93d20672d03ed8
12,036
ml
OCaml
src-proscript/proscript-messaging/ps2pv/lexer.ml
diskuv/dirsp-exchange
6456faad570de4df60a3a902fa8162ca8cb7e4d5
[ "ECL-2.0", "Apache-2.0" ]
6
2021-06-18T01:05:27.000Z
2021-11-11T16:19:56.000Z
src-proscript/proscript-messaging/ps2pv/lexer.ml
diskuv/dirsp-exchange
6456faad570de4df60a3a902fa8162ca8cb7e4d5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src-proscript/proscript-messaging/ps2pv/lexer.ml
diskuv/dirsp-exchange
6456faad570de4df60a3a902fa8162ca8cb7e4d5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
(** Javascript token syntax (from ECMA 262 rev 5) **) open Parser open Ulexing open Printf open Globals let c b = (lasttok := utf8_lexeme b; col := !col + lexeme_length b) let nl () = lasttok := "\\n"; ln:=!ln+1; col := 0 let subs s i = String.sub s i ((String.length s)-i) (* Whitespace and line breaks *) let rege...
57.865385
250
0.593802
4466b79d3c07f3a4326310ad7f48a86eab9e6737
6,645
ml
OCaml
data/derived/comb/progs/unify/prog2857.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
4
2017-07-04T22:30:05.000Z
2021-03-29T14:44:52.000Z
data/derived/sp14/progs/unify/prog2857.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog2857.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXX *) (*XXXXXXXXXXXXXXXXXXXXXXXXXXX*) let rec sumList xs = match xs with | []-> 0 | h::t -> h+sumList t ;; let _ = sumList [1; 2; 3; 4] let _ = sumList [1; -2; 3; 5] let _ = sumList [1; 3; 5; 7; 9; 11] (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...
23.56383
94
0.62754
443cf28c9999c21d2bbd597969363eaea259f6fb
3,716
ml
OCaml
data/fa15/0908.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/fa15/0908.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/fa15/0908.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 else (clone 0 ((List.length l1) - (List.length l2))) @ l2;; let rec removeZero l = let f a x = if (List.length a) = 0 th...
18.305419
79
0.501615
442deeae93c86120028e5a7177a837317b0948b1
972
ml
OCaml
client/cmd_build_order_sort.ml
Rjected/iron
dfb106cb82abf5d16e548d4ee4f419d0994d3644
[ "Apache-2.0" ]
null
null
null
client/cmd_build_order_sort.ml
Rjected/iron
dfb106cb82abf5d16e548d4ee4f419d0994d3644
[ "Apache-2.0" ]
null
null
null
client/cmd_build_order_sort.ml
Rjected/iron
dfb106cb82abf5d16e548d4ee4f419d0994d3644
[ "Apache-2.0" ]
null
null
null
open! Core open! Async open! Import let sort repo_root ~below = let%bind manifest = Hg.manifest repo_root `Dirstate in let files = List.filter_map manifest ~f:(fun path_in_repo -> match Path_in_repo.chop_prefix ~prefix:below path_in_repo with | Ok relpath -> Some (path_in_repo, relpath) | Err...
32.4
84
0.6893
443e15e437e7be18a02ad4c7da24d280a449ad24
265
mli
OCaml
libraries/ec2/lib/modifyVpcEndpointServiceConfiguration.mli
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
null
null
null
libraries/ec2/lib/modifyVpcEndpointServiceConfiguration.mli
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
1
2021-06-22T14:33:23.000Z
2021-06-22T14:33:23.000Z
libraries/ec2/lib/modifyVpcEndpointServiceConfiguration.mli
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
null
null
null
open Types type input = ModifyVpcEndpointServiceConfigurationRequest.t type output = ModifyVpcEndpointServiceConfigurationResult.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
37.857143
74
0.792453
8aee47052bcc614a9bf74d2b1968451208c7963e
17,657
ml
OCaml
src/graphics.ml
MatiasGoldfeld/Tetris
72030e0acf1cffff985dac971b50d5082ceb315c
[ "MIT" ]
1
2020-04-30T16:11:51.000Z
2020-04-30T16:11:51.000Z
src/graphics.ml
MatiasGoldfeld/Tetris
72030e0acf1cffff985dac971b50d5082ceb315c
[ "MIT" ]
null
null
null
src/graphics.ml
MatiasGoldfeld/Tetris
72030e0acf1cffff985dac971b50d5082ceb315c
[ "MIT" ]
null
null
null
open Tsdl open Tsdl_ttf open Tsdl_image type color = int * int * int type duck_image = (color * Tsdl.Sdl.texture) type t = { window : Sdl.window; renderer : Sdl.renderer; pixel_format : Sdl.pixel_format; duck_mode : bool; duck_images : duck_image list; bg_color : color; font : Ttf.font; } let toggle_du...
40.129545
81
0.648468
8ae4163974d0775369a3dd41022f839fdf0380ea
1,634
ml
OCaml
lib/kernels/covar_matern.ml
struktured/ocaml-covar
84f1d3a2bc3da1b617647b4ddadd75eb1808b06f
[ "MIT" ]
4
2017-12-21T05:16:08.000Z
2019-03-22T10:23:30.000Z
lib/kernels/covar_matern.ml
struktured/ocaml-covar
84f1d3a2bc3da1b617647b4ddadd75eb1808b06f
[ "MIT" ]
null
null
null
lib/kernels/covar_matern.ml
struktured/ocaml-covar
84f1d3a2bc3da1b617647b4ddadd75eb1808b06f
[ "MIT" ]
null
null
null
open !Import module Isotropic = Kernel.Stationary.Isotropic module Matern_optional_args = struct type t = {amplitude:float [@default 1.];bandwidth:float; v:float} [@@deriving make, sexp] let default = {amplitude=1.0;bandwidth=1.0;v=1.5} end module Stationary : Kernel.Stationary.S with module Optional_ar...
28.666667
78
0.721542
442e57db21ecca502fb2c16e5c46add60cf55986
1,384
mli
OCaml
src/bedrock/validation.mli
ludovicdeluna/planet
753a68d96ec7933697e9c6d2b15ee2a494da4ecd
[ "MIT" ]
24
2019-04-13T21:09:47.000Z
2022-03-28T10:43:52.000Z
src/bedrock/validation.mli
ludovicdeluna/planet
753a68d96ec7933697e9c6d2b15ee2a494da4ecd
[ "MIT" ]
5
2019-10-21T08:15:39.000Z
2020-03-12T08:41:58.000Z
src/bedrock/validation.mli
ludovicdeluna/planet
753a68d96ec7933697e9c6d2b15ee2a494da4ecd
[ "MIT" ]
1
2020-03-12T08:24:13.000Z
2020-03-12T08:24:13.000Z
(** Specialization over the type [('a, 'b) result] fixed using [Error.t list] as ['b]. *) (** type for a validation. *) type 'a t = ('a, Error.t list) result (** Extract value of a result *) val pop : (Error.t list -> 'a) -> 'a t -> 'a val is_valid : 'a t -> bool (** {2 Promotion's function} *) (** Promote ['a...
23.066667
80
0.66763
440446a7c89d7102b01e7e9534dbeab75d3d2622
4,951
ml
OCaml
lib/pseudo.ml
AymenQ/herdtools7
9dc22b11334f7c40810349e8223f0bfe5f46326d
[ "CECILL-B" ]
null
null
null
lib/pseudo.ml
AymenQ/herdtools7
9dc22b11334f7c40810349e8223f0bfe5f46326d
[ "CECILL-B" ]
4
2021-06-29T09:31:26.000Z
2021-07-02T15:26:56.000Z
lib/pseudo.ml
AymenQ/herdtools7
9dc22b11334f7c40810349e8223f0bfe5f46326d
[ "CECILL-B" ]
null
null
null
(****************************************************************************) (* the diy toolsuite *) (* *) (* Jade Alglave, University College London, UK. *) (* L...
31.737179
78
0.574631
445a2db31f2439b7e59cc1d643a298287c5742db
308
ml
OCaml
src/base/stats/owl_base_stats_dist_exponential.ml
pvdhove/owl
072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31
[ "MIT" ]
null
null
null
src/base/stats/owl_base_stats_dist_exponential.ml
pvdhove/owl
072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31
[ "MIT" ]
null
null
null
src/base/stats/owl_base_stats_dist_exponential.ml
pvdhove/owl
072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31
[ "MIT" ]
null
null
null
(* * OWL - OCaml Scientific and Engineering Computing * Copyright (c) 2016-2018 Liang Wang <liang.wang@cl.cam.ac.uk> *) let std_exponential_rvs () = let u = Random.float 1. in -.(log1p (-.u)) let exponential_rvs ~lambda = let u = Random.float 1. in let s = -1. /. lambda in s *. log1p (-.u)
19.25
63
0.62987
8ab546c710cf82d9fde8ddec0775f44921274218
424
ml
OCaml
lib/helpers.ml
mxthevs/colors
2aeabe1a55b01a5746c39efdca594adca1a5a204
[ "MIT" ]
null
null
null
lib/helpers.ml
mxthevs/colors
2aeabe1a55b01a5746c39efdca594adca1a5a204
[ "MIT" ]
null
null
null
lib/helpers.ml
mxthevs/colors
2aeabe1a55b01a5746c39efdca594adca1a5a204
[ "MIT" ]
null
null
null
let list_to_option = function | x :: _ -> Some x | _ -> None let uniq_cons x xs = if List.mem x xs then xs else x :: xs let remove_from_right xs = List.fold_right uniq_cons xs [] let dedup = remove_from_right let cat s1 s2 = s1 ^ s2 let round x = floor (x +. 0.5) let round_dfrac d x = if x -. round x = 0. then ...
22.315789
58
0.615566
44476750a024efefc243d9685272cdfd50afba8c
4,404
ml
OCaml
value_set/unit_tests/ai_memmap_test.ml
dbeigi/cbat_tools
ebba824f2a1d217c5a1f12cdce6555676d036099
[ "MIT" ]
91
2018-10-17T13:02:45.000Z
2022-03-11T08:42:00.000Z
value_set/unit_tests/ai_memmap_test.ml
dbeigi/cbat_tools
ebba824f2a1d217c5a1f12cdce6555676d036099
[ "MIT" ]
283
2018-10-23T12:34:01.000Z
2022-02-24T19:53:45.000Z
value_set/unit_tests/ai_memmap_test.ml
dbeigi/cbat_tools
ebba824f2a1d217c5a1f12cdce6555676d036099
[ "MIT" ]
16
2018-10-17T07:54:17.000Z
2021-12-10T15:56:32.000Z
(***************************************************************************) (* *) (* Copyright (C) 2018/2019 The Charles Stark Draper Laboratory, Inc. *) (* *) (* This...
44.484848
77
0.579927
8a39e6858a7ebdd21de6af4e8530ea9270b15b2d
809
ml
OCaml
data/fa15_min/2609.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15/2609.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15_min/2609.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));; let padZero l1 l2 = if (List.length l1) > (List.length l2) then List.append (clone 0 ((List.length l1) - (List.length l2))) l2;; (* fix let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));; let padZero l1 l2 = if (List.length ...
20.74359
71
0.557478
44224f6d9ae1f39a42eabd62f895e621f3c262a0
25,232
ml
OCaml
src/proto_010_PtGRANAD/lib_benchmark/michelson_samplers.ml
selbor28/tezos
57cfc7f42e1312d05b0d7f6742f517edc421aef4
[ "MIT" ]
3
2021-12-16T20:28:56.000Z
2022-01-21T01:37:49.000Z
src/proto_010_PtGRANAD/lib_benchmark/michelson_samplers.ml
selbor28/tezos
57cfc7f42e1312d05b0d7f6742f517edc421aef4
[ "MIT" ]
5
2022-01-20T21:30:24.000Z
2022-03-11T14:43:56.000Z
src/proto_010_PtGRANAD/lib_benchmark/michelson_samplers.ml
selbor28/tezos
57cfc7f42e1312d05b0d7f6742f517edc421aef4
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2021 Nomadic Labs, <contact@nomadic-labs.com> *) ...
35.94302
82
0.578036
afdcc3630ab635c1ea1b8e7d8e9a37319e697c1e
45,666
ml
OCaml
hphp/hack/src/typing/typing_check_service.ml
emptyIIknowledge/hhvm
64834993b347f3d6b1973817a702a8a4ec86b055
[ "PHP-3.01", "Zend-2.0" ]
7
2021-09-20T18:47:18.000Z
2021-09-20T23:02:22.000Z
hphp/hack/src/typing/typing_check_service.ml
cs-joy/hhvm
fcdbf247527cc38186691653dac9b675fb69a5a8
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/typing_check_service.ml
cs-joy/hhvm
fcdbf247527cc38186691653dac9b675fb69a5a8
[ "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. * *) module Hack_bucket = Bucket open Hh_prelude module Bucket = Hack_bucket open Typing_service_types open Typing_check_job (* ##...
36.014196
135
0.675754
442db513338d0d6113f1b7cd7d87bf5c19441a5d
896
ml
OCaml
data/derived/comb/progs/unify/prog3975.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
4
2017-07-04T22:30:05.000Z
2021-03-29T14:44:52.000Z
data/derived/sp14/progs/unify/prog3975.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog3975.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let rec clone x n = match n with | 0 -> [] | a -> if a < 0 then [] else (clone x (n - 1)) @ [x];; let padZero l1 l2 = if (List.length l1) > (List.length l2) then (l1, (List.append (clone 0 ((List.length l1) - (List.length l2))) l2)) else ((List.append (clone 0 ((List.length l2) - (List.length l1))) l1), l2);;...
32
79
0.515625
442d6f14c0a7fad48daa5b3695def186c3061573
1,054
ml
OCaml
infer/src/clang/SwitchCase.ml
seonhoLee-ms/symexec
1e04ee78410e01fcc5346213fbfa13d9d15949a5
[ "MIT" ]
1
2019-09-11T13:16:25.000Z
2019-09-11T13:16:25.000Z
infer/src/clang/SwitchCase.ml
seonhoLee-ms/symexec
1e04ee78410e01fcc5346213fbfa13d9d15949a5
[ "MIT" ]
null
null
null
infer/src/clang/SwitchCase.ml
seonhoLee-ms/symexec
1e04ee78410e01fcc5346213fbfa13d9d15949a5
[ "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 type condition = Case of Clang_ast_t.stmt | Default type t = {condition: condition; stmt_info: Clang_...
27.736842
99
0.711575
8a2fabca6ee51f18f3a2c06397c8cf93f07a8b4a
15,278
ml
OCaml
infer/src/quandary/TaintAnalysis.ml
squaresLab/infer-linux64-v0.9.3
b9d7c23d3556eab55d25584183dc9e1bc40f298f
[ "BSD-3-Clause" ]
null
null
null
infer/src/quandary/TaintAnalysis.ml
squaresLab/infer-linux64-v0.9.3
b9d7c23d3556eab55d25584183dc9e1bc40f298f
[ "BSD-3-Clause" ]
null
null
null
infer/src/quandary/TaintAnalysis.ml
squaresLab/infer-linux64-v0.9.3
b9d7c23d3556eab55d25584183dc9e1bc40f298f
[ "BSD-3-Clause" ]
null
null
null
(* * Copyright (c) 2016 - present Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. *) open! Util...
41.403794
100
0.647794
44621b558b795838a7ec78a0dc6996ad9dfe2a8c
4,233
ml
OCaml
src/common/compile.ml
aantron/embedded_ocaml_templates
4edddc5fcdfcb32a0e93f4946ef0308cffe3ebb5
[ "MIT" ]
null
null
null
src/common/compile.ml
aantron/embedded_ocaml_templates
4edddc5fcdfcb32a0e93f4946ef0308cffe3ebb5
[ "MIT" ]
null
null
null
src/common/compile.ml
aantron/embedded_ocaml_templates
4edddc5fcdfcb32a0e93f4946ef0308cffe3ebb5
[ "MIT" ]
null
null
null
open Core open Template open File_handling let compile_to_expr ((args, elements) : Template.t) = let codes = ref [] in let append e = codes := e :: !codes in if not (String.is_empty args) then append (sprintf {| Stdlib.(fun %s -> let ___elements = ref [] in let ___...
34.696721
81
0.609261
443d4dda629b8e2d359aa4e7f5e750006406fcf4
32,985
ml
OCaml
src/ecCommands.ml
oskgo/easycrypt
38c4947433b1a42896540edfa534f76502fc8f92
[ "MIT" ]
null
null
null
src/ecCommands.ml
oskgo/easycrypt
38c4947433b1a42896540edfa534f76502fc8f92
[ "MIT" ]
null
null
null
src/ecCommands.ml
oskgo/easycrypt
38c4947433b1a42896540edfa534f76502fc8f92
[ "MIT" ]
null
null
null
(* -------------------------------------------------------------------- *) open EcUtils open EcLocation open EcParsetree module Sid = EcIdent.Sid module Mx = EcPath.Mx (* -------------------------------------------------------------------- *) exception Restart (* ----------------------------------------------------...
37.568337
102
0.552069
442478070a626d24ba0cbc58cbfa5e4a0e02799f
3,518
ml
OCaml
src/proto_alpha/lib_protocol/ticket_balance_key.ml
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
null
null
null
src/proto_alpha/lib_protocol/ticket_balance_key.ml
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
null
null
null
src/proto_alpha/lib_protocol/ticket_balance_key.ml
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2021 Trili Tech, <contact@trili.tech> *) ...
48.191781
79
0.583286
8ad3b93203ed7e2d67955f3eb7ff00ecdbd9eddd
1,013
ml
OCaml
ocaml-compiler/src/test/compiler/testClosure.ml
kcvlex/toy-scheme
c271d600a2cc264d46718219ec9caea5d48c8be7
[ "MIT" ]
null
null
null
ocaml-compiler/src/test/compiler/testClosure.ml
kcvlex/toy-scheme
c271d600a2cc264d46718219ec9caea5d48c8be7
[ "MIT" ]
1
2021-03-16T17:50:19.000Z
2021-03-16T17:50:19.000Z
ocaml-compiler/src/test/compiler/testClosure.ml
kcvlex/toy-scheme
c271d600a2cc264d46718219ec9caea5d48c8be7
[ "MIT" ]
null
null
null
open Compiler open Testtool let decorate clo = match clo with | AstType.Let (l, body) -> let call = SymbolType.CommonSym "__call" in let body = AstType.Apply (AstType.Symbol call, [ body ]) in AstType.Let (l, body) | _ -> raise (Invalid_argument "AAA") let add_call s = let call = "(define...
23.55814
65
0.582428
afb303c5576ca2e9875c7bae7de32f7c5dd219f0
3,039
mli
OCaml
tezt/lib_tezos/account.mli
bikallem/tezos
34eb0fd5cb977cc04c3648d91d16e6210de8c8e3
[ "MIT" ]
8
2021-11-02T13:06:58.000Z
2021-11-18T19:07:33.000Z
tezt/lib_tezos/account.mli
bikallem/tezos
34eb0fd5cb977cc04c3648d91d16e6210de8c8e3
[ "MIT" ]
14
2020-05-07T15:51:28.000Z
2022-02-06T10:11:51.000Z
tezt/lib_tezos/account.mli
bikallem/tezos
34eb0fd5cb977cc04c3648d91d16e6210de8c8e3
[ "MIT" ]
3
2021-01-06T00:06:10.000Z
2021-05-31T18:07:55.000Z
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2021 Nomadic Labs <contact@nomadic-labs.com> *) ...
52.396552
79
0.556433
f312cd6eb476a5c5f9274dded97ae2e3bd341dad
1,252
ml
OCaml
test/test_gc.ml
xclerc/bistro
0931db43a146ad7829dff5120161a775f732a878
[ "CECILL-B" ]
44
2016-01-21T20:34:10.000Z
2021-04-30T00:21:34.000Z
test/test_gc.ml
xclerc/bistro
0931db43a146ad7829dff5120161a775f732a878
[ "CECILL-B" ]
37
2016-01-31T12:00:13.000Z
2021-11-13T21:58:41.000Z
test/test_gc.ml
xclerc/bistro
0931db43a146ad7829dff5120161a775f732a878
[ "CECILL-B" ]
11
2016-07-07T14:43:17.000Z
2022-03-29T00:30:31.000Z
open Core open Bistro let append x y : text_file path workflow = Workflow.shell ~descr:(sprintf "append(%s)" x) Shell_dsl.[ cmd "cat" ~stdout:dest [ dep y ] ; cmd "echo" [ string x ; string ">>" ; dest ] ; ] let%pworkflow start x : text_file path workflow = Out_channel.write_all [%dest] ~data:[%param x]...
29.116279
110
0.711661
446ae647f9c62b72ba27a633e29418dd29069412
228
mli
OCaml
libraries/ec2/lib/describeImages.mli
pm-mck/ocaml-aws
7912f94e73941d07d350d7f06c625853298c962c
[ "BSD-3-Clause" ]
null
null
null
libraries/ec2/lib/describeImages.mli
pm-mck/ocaml-aws
7912f94e73941d07d350d7f06c625853298c962c
[ "BSD-3-Clause" ]
null
null
null
libraries/ec2/lib/describeImages.mli
pm-mck/ocaml-aws
7912f94e73941d07d350d7f06c625853298c962c
[ "BSD-3-Clause" ]
null
null
null
open Types_internal type input = DescribeImagesRequest.t type output = DescribeImagesResult.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
32.571429
74
0.758772
44616e407b6bd84cc38815e3840bb4f78ee0fe9b
3,670
ml
OCaml
hphp/hack/src/typing/typing_equality_check.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/typing/typing_equality_check.ml
theovod/hhvm
9c9e0653f825edd4c2db2a6d77cd9b123add7d6b
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/typing_equality_check.ml
theovod/hhvm
9c9e0653f825edd4c2db2a6d77cd9b123add7d6b
[ "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 Typing_defs module Env = Typing_env module TDef = Typing_tdef module N = Nast module TAccess...
37.44898
88
0.638965
afdb7b81154933417a8c2cf1718a53e2f1a9930b
6,384
ml
OCaml
src/prebuild/main.ml
shintiger/haxe
2985c9d8282003a35ade2971cbe0190300417e42
[ "MIT" ]
1
2020-02-10T11:52:11.000Z
2020-02-10T11:52:11.000Z
src/prebuild/main.ml
kLabz/haxe
1e0ac64dbb75f15cbde7036f67bd6edf02b455bc
[ "MIT" ]
null
null
null
src/prebuild/main.ml
kLabz/haxe
1e0ac64dbb75f15cbde7036f67bd6edf02b455bc
[ "MIT" ]
null
null
null
open Json exception Prebuild_error of string let as_string = function | JString s -> Some s | _ -> None let as_params = function | JArray s -> Some (List.map (function | JString s -> s | _ -> raise (Prebuild_error "parameter description should be a string") ) s) | _ -> None let as_platforms = function ...
31.294118
170
0.649436
444fc209ea6bc0f03a58317a645a8d9243f2c0fa
224
mli
OCaml
libraries/s3/lib/createBucket.mli
pm-mck/ocaml-aws
7912f94e73941d07d350d7f06c625853298c962c
[ "BSD-3-Clause" ]
null
null
null
libraries/s3/lib/createBucket.mli
pm-mck/ocaml-aws
7912f94e73941d07d350d7f06c625853298c962c
[ "BSD-3-Clause" ]
null
null
null
libraries/s3/lib/createBucket.mli
pm-mck/ocaml-aws
7912f94e73941d07d350d7f06c625853298c962c
[ "BSD-3-Clause" ]
null
null
null
open Types_internal type input = CreateBucketRequest.t type output = CreateBucketOutput.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
32
74
0.754464
44555a2a621fbc57fb23054f25147f5b55deb4ee
416
mli
OCaml
async/validation.mli
torinnd/ocaml-x509
9303148504e245e42a24efa7a1853938f7dddf1a
[ "BSD-2-Clause" ]
null
null
null
async/validation.mli
torinnd/ocaml-x509
9303148504e245e42a24efa7a1853938f7dddf1a
[ "BSD-2-Clause" ]
null
null
null
async/validation.mli
torinnd/ocaml-x509
9303148504e245e42a24efa7a1853938f7dddf1a
[ "BSD-2-Clause" ]
null
null
null
open! Core open! Async open! Import include module type of struct include X509.Validation end val ca_error_to_string : ca_error -> string val sexp_of_ca_error : ca_error -> Sexp.t val signature_error_to_string : signature_error -> string val sexp_of_signature_error : signature_error -> Sexp.t val validation_error_t...
27.733333
59
0.810096
8ab65a2d44ab34af3f48855003cd931613620a19
491
mli
OCaml
bitstring_lib/bitstring.mli
dankrad/snarky
4f21bb852f759607f1802a7d90301c7e4de83f3c
[ "MIT" ]
1
2022-03-21T15:43:42.000Z
2022-03-21T15:43:42.000Z
bitstring_lib/bitstring.mli
dankrad/snarky
4f21bb852f759607f1802a7d90301c7e4de83f3c
[ "MIT" ]
null
null
null
bitstring_lib/bitstring.mli
dankrad/snarky
4f21bb852f759607f1802a7d90301c7e4de83f3c
[ "MIT" ]
null
null
null
open Core_kernel open Tuple_lib module type S = sig type 'a t = private 'a list include Container.S1 with type 'a t := 'a t val of_list : 'a list -> 'a t val init : int -> f:(int -> 'a) -> 'a t val map : 'a t -> f:('a -> 'b) -> 'b t end module rec Msb_first : sig include S val of_lsb_first : 'a Lsb...
16.931034
66
0.610998
444b88a4e2baf01065f37af4122e1be8d08d0b5d
707
ml
OCaml
example/ocaml/rolling_stone/rolling_stone.ml
dthadi3/bsdowl
edc71faecf5122d756558071ea384241d53d5dac
[ "BSD-3-Clause" ]
113
2015-04-20T11:36:49.000Z
2019-07-26T03:35:57.000Z
example/ocaml/rolling_stone/rolling_stone.ml
dthadi3/bsdowl
edc71faecf5122d756558071ea384241d53d5dac
[ "BSD-3-Clause" ]
45
2015-01-03T13:42:34.000Z
2017-12-14T16:29:22.000Z
example/ocaml/rolling_stone/rolling_stone.ml
dthadi3/bsdowl
edc71faecf5122d756558071ea384241d53d5dac
[ "BSD-3-Clause" ]
8
2015-02-25T09:04:53.000Z
2020-10-07T08:16:41.000Z
(* rolling_stone -- How does it feel? BSD Owl Scripts (https://github.com/michipili/bsdowl) This file is part of BSD Owl Scripts Copyright © 2002–2017 Michael Grünewald. All Rights Reserved. This file must be used under the terms of the BSD license. This source file is licensed as described in the file LICENSE, which...
24.37931
68
0.704385
8a92fdb84a53b5234d47bb486f9ab36a547e07a7
7,123
ml
OCaml
src/nonconsensus/mina_base/account_timing.ml
creativcoder/mina
91d6d536345f7e313b73fcb78bdea657ff584b72
[ "Apache-2.0" ]
929
2020-10-02T07:23:16.000Z
2022-03-31T15:02:09.000Z
src/nonconsensus/mina_base/account_timing.ml
umiterkol/mina
af76cb7980d5e81e704120290a850ea9c6f8522e
[ "Apache-2.0" ]
3,154
2020-09-29T15:47:44.000Z
2022-03-31T16:22:28.000Z
src/nonconsensus/mina_base/account_timing.ml
umiterkol/mina
af76cb7980d5e81e704120290a850ea9c6f8522e
[ "Apache-2.0" ]
216
2020-09-29T19:47:41.000Z
2022-03-27T08:44:29.000Z
[%%import "/src/config.mlh"] open Core_kernel [%%ifdef consensus_mechanism] open Snark_params open Tick [%%else] module Currency = Currency_nonconsensus.Currency module Mina_numbers = Mina_numbers_nonconsensus.Mina_numbers module Random_oracle = Random_oracle_nonconsensus.Random_oracle module Mina_compile_config =...
26.578358
106
0.660396
4464221270a748ce5d5eee9c852f0dbe2247528b
6,810
ml
OCaml
src/dune_rules/scope.ml
marsam/dune
8a3d7f2f2015b71384caa07226d1a89dba9d6c25
[ "MIT" ]
null
null
null
src/dune_rules/scope.ml
marsam/dune
8a3d7f2f2015b71384caa07226d1a89dba9d6c25
[ "MIT" ]
1
2020-11-12T13:27:57.000Z
2020-11-12T13:27:57.000Z
src/dune_rules/scope.ml
marsam/dune
8a3d7f2f2015b71384caa07226d1a89dba9d6c25
[ "MIT" ]
null
null
null
open! Dune_engine open! Stdune open Import type t = { project : Dune_project.t ; db : Lib.DB.t ; coq_db : Coq_lib.DB.t ; root : Path.Build.t } let root t = t.root let project t = t.project let libs t = t.db let coq_libs t = t.coq_db module DB = struct type scope = t type t = { by_dir : scope Path.S...
35.65445
80
0.612188
44594bcc8ad4d82baba62d4a89c7bb554fcafac6
2,987
mli
OCaml
src/core/Unif.mli
Guoyanzeng/zipperposition
cf8ea447d3c19946cfe5f9762deb1c9dcb1c3103
[ "BSD-2-Clause" ]
1
2021-12-04T02:49:56.000Z
2021-12-04T02:49:56.000Z
src/core/Unif.mli
Guoyanzeng/zipperposition
cf8ea447d3c19946cfe5f9762deb1c9dcb1c3103
[ "BSD-2-Clause" ]
null
null
null
src/core/Unif.mli
Guoyanzeng/zipperposition
cf8ea447d3c19946cfe5f9762deb1c9dcb1c3103
[ "BSD-2-Clause" ]
null
null
null
(** {1 Unification and Matching} *) (* This file is free software, part of Logtk. See file "license" for more details. *) type unif_subst = Unif_subst.t type subst = Subst.t type term = InnerTerm.t type ty = InnerTerm.t type 'a sequence = ('a -> unit) -> unit exception Fail (** Raised when a unification/matching a...
32.11828
91
0.656177
44435bc10c78e7d11d24c88f0fc8b29e9929c2d4
4,619
ml
OCaml
lib_test/tests.ml
edwintorok/ocaml-cstruct
d5000d3adf0586de1be1562a09ffcc692ee0bf5a
[ "ISC" ]
2
2015-07-15T05:24:46.000Z
2016-10-08T13:44:48.000Z
lib_test/tests.ml
edwintorok/ocaml-cstruct
d5000d3adf0586de1be1562a09ffcc692ee0bf5a
[ "ISC" ]
null
null
null
lib_test/tests.ml
edwintorok/ocaml-cstruct
d5000d3adf0586de1be1562a09ffcc692ee0bf5a
[ "ISC" ]
null
null
null
open OUnit let _ = Random.self_init () let random_cs ?(len = Random.int 128) () = let cs = Cstruct.create len in for i = 0 to len - 1 do Cstruct.set_uint8 cs i (Random.int 256) done; cs let to_string_as_sexp cs = Sexplib.Sexp.to_string_mach (Cstruct.sexp_of_t cs) let of_string_as_sexp str = Cstruct.t_of_s...
30.189542
86
0.635635
af6905ca7379ffb48efc54b450f1109e39a03373
1,610
mli
OCaml
hphp/hack/src/server/serverIdeUtils.mli
sathvikl/hiphop-php
34fa1033968d6ef243dcdb46eca2289d6ad674d2
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/server/serverIdeUtils.mli
sathvikl/hiphop-php
34fa1033968d6ef243dcdb46eca2289d6ad674d2
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/server/serverIdeUtils.mli
sathvikl/hiphop-php
34fa1033968d6ef243dcdb46eca2289d6ad674d2
[ "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. * *) val oldify_fi...
38.333333
80
0.734161
8a6f1821a2a0441c6d6f8d8437363a1688c04adc
3,812
ml
OCaml
src/bdd.ml
netkat-lang/idds
dd518d17069e62fdc4d5f2b985f7ff6db30863aa
[ "MIT" ]
1
2019-11-27T16:43:04.000Z
2019-11-27T16:43:04.000Z
src/bdd.ml
netkat-lang/idds
dd518d17069e62fdc4d5f2b985f7ff6db30863aa
[ "MIT" ]
null
null
null
src/bdd.ml
netkat-lang/idds
dd518d17069e62fdc4d5f2b985f7ff6db30863aa
[ "MIT" ]
null
null
null
open Base type t = Dd.t let rec eval (t : t) ~(env : Var.t -> bool) : bool = match t with | True -> true | False -> false | Branch { var; hi; lo; _ } -> if env var then eval hi ~env else eval lo ~env let equal = Dd.equal let ctrue = Dd.ctrue let cfalse = Dd.cfalse module Pair = struct type t = int * i...
25.756757
79
0.570304
8a9a242f2120a80c5babe304792015cccc233e92
21,559
ml
OCaml
src/loader/cmt.ml
TristanCacqueray/odoc
fd4605f6c94d61a9dd3cffabc76c712ba246ae4c
[ "ISC" ]
null
null
null
src/loader/cmt.ml
TristanCacqueray/odoc
fd4605f6c94d61a9dd3cffabc76c712ba246ae4c
[ "ISC" ]
null
null
null
src/loader/cmt.ml
TristanCacqueray/odoc
fd4605f6c94d61a9dd3cffabc76c712ba246ae4c
[ "ISC" ]
null
null
null
(* * Copyright (c) 2014 Leo White <lpw25@cl.cam.ac.uk> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND TH...
37.042955
118
0.652257
8abc8576a465f32dbcc4f75956b45b1dbe612b50
1,149
ml
OCaml
src/uarray2.ml
hcarty/ulib
b9bb020c2956d0d75b5220c69c90b13035e57b96
[ "BSD-3-Clause" ]
1
2016-09-07T14:25:46.000Z
2016-09-07T14:25:46.000Z
src/uarray2.ml
hcarty/ulib
b9bb020c2956d0d75b5220c69c90b13035e57b96
[ "BSD-3-Clause" ]
null
null
null
src/uarray2.ml
hcarty/ulib
b9bb020c2956d0d75b5220c69c90b13035e57b96
[ "BSD-3-Clause" ]
null
null
null
(* $Id: uarray2.ml,v 1.1 2007-04-02 17:48:29 weis Exp $ *) (* More two-dimensional bigarray operations. *) open Bigarray;; let dim1 = Array2.dim1 and dim2 = Array2.dim2 and get = Array2.get and set = Array2.set;; let bounds a = let ni = dim1 a in let nj = dim2 a in let l = Array1.layout a in let ifirst = ...
21.679245
58
0.607485
f3cd2eb2d80fe26753ab526feafa2adee871711d
30,096
ml
OCaml
src/analysis/typedtrie.ml
pereb4ik/merlin
f3565d0ef89cf8df9bc3f10a15dc12069658f45b
[ "MIT" ]
4
2020-12-02T04:11:43.000Z
2021-08-09T00:45:21.000Z
src/analysis/typedtrie.ml
pereb4ik/merlin
f3565d0ef89cf8df9bc3f10a15dc12069658f45b
[ "MIT" ]
4
2020-11-18T00:34:48.000Z
2021-09-16T08:55:11.000Z
src/analysis/typedtrie.ml
pereb4ik/merlin
f3565d0ef89cf8df9bc3f10a15dc12069658f45b
[ "MIT" ]
5
2020-01-28T22:20:05.000Z
2022-02-01T18:46:06.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...
35.532468
83
0.594896
afc50c5233b006b081e41effd836fd908079899d
3,255
mly
OCaml
compiler/src/parse.mly
jamesbolden/prime
7bafc5391edc929ae99461125dbfc667035bb183
[ "MIT" ]
null
null
null
compiler/src/parse.mly
jamesbolden/prime
7bafc5391edc929ae99461125dbfc667035bb183
[ "MIT" ]
null
null
null
compiler/src/parse.mly
jamesbolden/prime
7bafc5391edc929ae99461125dbfc667035bb183
[ "MIT" ]
null
null
null
%token EOF %token BACKTICK %token BAR %token DEF %token ELLIPSES %token RIGHT_ARROW %token LEFT_ARROW %token FORALL %token TYPE %token FAT_RIGHT_ARROW %token BACKSLASH %token LEFT_CURLY_BRACKET %token RIGHT_CURLY_BRACKET %token LEFT_SQUARE_BRACKET %token RIGHT_SQUARE_BRACKET %token LEFT_PAREN %token RIGHT_PAREN %token ...
32.878788
134
0.50937
443aad5e1d481c169ac64bd62bccef5688d7406d
7,116
ml
OCaml
lib/client_connection.ml
bogdan2412/httpaf
530a28832fc5f03a963c141510a9d22cf907c11e
[ "BSD-3-Clause" ]
524
2017-06-27T15:48:48.000Z
2022-03-11T16:53:27.000Z
lib/client_connection.ml
bogdan2412/httpaf
530a28832fc5f03a963c141510a9d22cf907c11e
[ "BSD-3-Clause" ]
117
2017-07-04T20:15:07.000Z
2022-03-12T17:49:50.000Z
lib/client_connection.ml
bogdan2412/httpaf
530a28832fc5f03a963c141510a9d22cf907c11e
[ "BSD-3-Clause" ]
50
2017-07-01T18:08:25.000Z
2022-03-08T13:21:27.000Z
(*---------------------------------------------------------------------------- Copyright (c) 2017-2019 Inhabited Type LLC. 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. Red...
32.493151
97
0.673272
446f178f6cc750834809773920be828560f9f150
6,626
ml
OCaml
src/dune_rules/cram_rules.ml
esope/dune
a79a071739b9537da8f9dc236a964793979da849
[ "MIT" ]
null
null
null
src/dune_rules/cram_rules.ml
esope/dune
a79a071739b9537da8f9dc236a964793979da849
[ "MIT" ]
1
2019-09-17T12:49:47.000Z
2019-09-17T12:49:47.000Z
src/dune_rules/cram_rules.ml
staronj/dune
cf0ceccef1e177625b9361323bd7a3401a988d45
[ "MIT" ]
null
null
null
open Import (* cwong: This should probably go in a better place than here, but I'm not sure where. Putting it in [Cram_test] creates dependency cycles. *) let () = Cram_exec.linkme type effective = { loc : Loc.t ; alias : Alias.Name.Set.t ; deps : unit Action_builder.t list ; sandbox : Sandbox_config.t ;...
35.816216
80
0.565047
442be5265e32cd1a6c2bfa924a6ca5dcb276c260
31,136
ml
OCaml
src/typing/context.ml
brett-puddick/flow
0970415dd8f880cbd736c86a37205aff8e5c84ab
[ "MIT" ]
1
2021-03-27T07:05:32.000Z
2021-03-27T07:05:32.000Z
src/typing/context.ml
brett-puddick/flow
0970415dd8f880cbd736c86a37205aff8e5c84ab
[ "MIT" ]
2
2021-05-09T02:43:12.000Z
2021-09-02T14:09:40.000Z
src/typing/context.ml
brett-puddick/flow
0970415dd8f880cbd736c86a37205aff8e5c84ab
[ "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 ALocMap = Loc_collections.ALocMap module Scope_api = Scope_api.With_ALoc exception Props_not_found of Type.Properties.id e...
34.90583
100
0.75061
8acdd4b80888732ef6d75cf9a837ec564c60a876
5,709
ml
OCaml
lib_web/query.ml
timbertson/ocurrent
cb4e55f491038b9bfd9cae4392b2ec74f259c65a
[ "Apache-2.0" ]
null
null
null
lib_web/query.ml
timbertson/ocurrent
cb4e55f491038b9bfd9cae4392b2ec74f259c65a
[ "Apache-2.0" ]
null
null
null
lib_web/query.ml
timbertson/ocurrent
cb4e55f491038b9bfd9cae4392b2ec74f259c65a
[ "Apache-2.0" ]
null
null
null
open Tyxml.Html module Db = Current_cache.Db let render_value = function | Ok _ -> txt "OK" | Error (`Msg m) -> span ~a:[a_class ["error"]] [txt m] let pp_duration f x = Fmt.pf f "%.0fs" x let render_row ~jobs ~need_toggles { Db.job_id; build; value = _; rebuild; ready; running; finished; outcome } = let job...
33.582353
112
0.595726
4461ccc2323874449d9e8958966bcd90a64a3092
444
ml
OCaml
dist/gcc-compatible/lib_gen/Hacl_HMAC_DRBG_gen.ml
victor-dumitrescu/hacl-star
92ca72a2706eec40b8e7fd2f984581e12ac49c0c
[ "Apache-2.0" ]
null
null
null
dist/gcc-compatible/lib_gen/Hacl_HMAC_DRBG_gen.ml
victor-dumitrescu/hacl-star
92ca72a2706eec40b8e7fd2f984581e12ac49c0c
[ "Apache-2.0" ]
null
null
null
dist/gcc-compatible/lib_gen/Hacl_HMAC_DRBG_gen.ml
victor-dumitrescu/hacl-star
92ca72a2706eec40b8e7fd2f984581e12ac49c0c
[ "Apache-2.0" ]
null
null
null
let _ = (((Format.set_formatter_out_channel (open_out_bin "lib/Hacl_HMAC_DRBG_stubs.ml"); Cstubs.write_ml Format.std_formatter ~prefix:"" (module Hacl_HMAC_DRBG_bindings.Bindings)); Format.set_formatter_out_channel (open_out_bin "lib/Hacl_HMAC_DRBG_c_stubs.c")); Format.printf "#include...
40.363636
53
0.736486
afd4eeb0eefad101f340cb57fc0ad5e10ca41f15
313
mli
OCaml
vendor/conduit-async/async/v3_real.mli
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
8
2020-09-16T01:37:52.000Z
2021-12-17T03:01:18.000Z
vendor/conduit-async/async/v3_real.mli
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
2
2020-11-02T15:17:31.000Z
2021-01-08T10:29:59.000Z
vendor/conduit-async/async/v3_real.mli
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
5
2020-10-08T13:26:18.000Z
2021-12-17T03:02:23.000Z
open Async_ssl include S.V3 with type session = Ssl.Session.t and type ssl_version = Ssl.Version.t and type ssl_conn = Ssl.Connection.t and type ssl_opt = Ssl.Opt.t and type verify_mode = Ssl.Verify_mode.t and type allowed_ciphers = [ `Only of string list | `Openssl_default | `Secure ]
31.3
62
0.702875
af885b53dda4b4b1573c48366db0ac822ef88687
6,957
mll
OCaml
src/3d/ocaml/lexer.mll
project-everest/everparse
a08385d5d7cc29377f7a0641cc6175d65d4b56b5
[ "Apache-2.0" ]
148
2019-04-24T00:58:37.000Z
2022-03-23T22:43:57.000Z
src/3d/ocaml/lexer.mll
project-everest/everparse
a08385d5d7cc29377f7a0641cc6175d65d4b56b5
[ "Apache-2.0" ]
43
2019-08-03T01:02:55.000Z
2022-02-08T21:01:34.000Z
src/3d/ocaml/lexer.mll
project-everest/everparse
a08385d5d7cc29377f7a0641cc6175d65d4b56b5
[ "Apache-2.0" ]
3
2019-12-13T20:45:19.000Z
2021-05-14T02:04:23.000Z
{ open Parser open Ast module Option = BatOption module H = BatHashtbl let mk_pos (l:Lexing.position) = let open Lexing in let col = (l.pos_cnum - l.pos_bol + 1) in { filename=l.pos_fname; line=Z.of_int l.pos_lnum; col=Z.of_int col; } let range_of_lexbuf lb = mk_pos (...
31.912844
131
0.583441
446aeb5865a3579523adf1786ae7fac931bf4f53
1,681
mli
OCaml
src/dune_engine/clflags.mli
mndrix/dune
30b84ff370351b13f05db34fd952dfe5d0249bcb
[ "MIT" ]
245
2016-12-02T14:13:32.000Z
2018-01-14T20:00:40.000Z
src/dune_engine/clflags.mli
mndrix/dune
30b84ff370351b13f05db34fd952dfe5d0249bcb
[ "MIT" ]
380
2017-01-28T18:46:52.000Z
2018-01-17T13:34:51.000Z
src/dune_engine/clflags.mli
mndrix/dune
30b84ff370351b13f05db34fd952dfe5d0249bcb
[ "MIT" ]
59
2016-12-02T13:58:19.000Z
2018-01-06T18:23:02.000Z
(** Command line flags *) val report_errors_config : Report_errors_config.t ref (** Debug the findlib implementation *) val debug_findlib : bool ref (** Capture the output of sub-commands *) val capture_outputs : bool ref (** Always print backtraces, to help debugging dune itself *) val debug_backtraces : bool -> u...
26.265625
79
0.747174
8ae5c94c45f6ad005296e76158ee2319414b9f89
441
ml
OCaml
vendors/ocaml-bls12-381/test/test_fq12.ml
d4hines/marigold-tezos
d106ccb9208af16d673aaa4ca48878eeba37527b
[ "MIT" ]
null
null
null
vendors/ocaml-bls12-381/test/test_fq12.ml
d4hines/marigold-tezos
d106ccb9208af16d673aaa4ca48878eeba37527b
[ "MIT" ]
1
2022-02-18T09:54:32.000Z
2022-02-18T09:54:32.000Z
vendors/ocaml-bls12-381/test/test_fq12.ml
Ngoguey42/tezos
68f0f84ed58f3c72b1bf3e732d8ee385461a2d14
[ "MIT" ]
null
null
null
module ValueGeneration = Test_ff_make.MakeValueGeneration (Bls12_381.Fq12) module IsZero = Test_ff_make.MakeIsZero (Bls12_381.Fq12) module Equality = Test_ff_make.MakeEquality (Bls12_381.Fq12) module ECProperties = Test_ff_make.MakeFieldProperties (Bls12_381.Fq12) let () = let open Alcotest in run "Fq12" [...
31.5
74
0.746032
8ae23d8fd754bea18d5b6109039db2f3a0eb8f24
1,159
mli
OCaml
hphp/hack/src/server/diagnostic_subscription.mli
cobbles/hhvm
583f879c7e1be697b1695a4506dd2f7171b921d0
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/server/diagnostic_subscription.mli
cobbles/hhvm
583f879c7e1be697b1695a4506dd2f7171b921d0
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/server/diagnostic_subscription.mli
cobbles/hhvm
583f879c7e1be697b1695a4506dd2f7171b921d0
[ "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 Reordered_argument_collections type id = int type t [@@deriving show] (** Makes a diagnostic subscription wi...
26.953488
88
0.708369
8a72ca0af165549e007bcf775ac89d0151bc370c
34,831
ml
OCaml
hphp/hack/src/parser/ast_visitors_map.ml
thekid/hhvm
3f7d3bdde3cbab3b90dd0f156ae56445738432b1
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/parser/ast_visitors_map.ml
thekid/hhvm
3f7d3bdde3cbab3b90dd0f156ae56445738432b1
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/parser/ast_visitors_map.ml
thekid/hhvm
3f7d3bdde3cbab3b90dd0f156ae56445738432b1
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(* @generated by hphp/hack/tools/visitors/genvisitors *) open Ast_visitors_ancestors class virtual ['self] map = object (self : 'self) inherit [_] map_base method on_Cst_define env = Cst_define method on_Cst_const env = Cst_const method on_cst_kind env this = match this with | Cst_define -...
38.360132
77
0.628779
4422e7fd6f242520d1968429069dadd2b72603c3
394
ml
OCaml
benchmarks/lambda/lambda1/submissions/sub335.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
5
2019-08-26T05:41:41.000Z
2020-05-03T03:58:50.000Z
benchmarks/lambda/lambda1/submissions/sub336.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
null
null
null
benchmarks/lambda/lambda1/submissions/sub336.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
2
2020-02-06T00:36:38.000Z
2020-07-27T09:53:35.000Z
type metro = STATION of name | AREA of name * metro | CONNECT of metro * metro and name = string;; let checkMetro met = let rec areaChecker (lst : string list) m b = match m with | STATION n -> b && (List.mem n lst) | AREA (n, m1) -> b && (areaChecker (n::lst) m1 b) | CONNECT (m1, m2) -> b && (area...
30.307692
80
0.606599
8acccaa9665e23828605932012d7af30658bfe99
23,284
ml
OCaml
src/lib/transition_frontier/full_frontier/full_frontier.ml
jjangg96/coda
f9607eb8536e4a897ca48e1e4fe5a085513cf1ff
[ "Apache-2.0" ]
null
null
null
src/lib/transition_frontier/full_frontier/full_frontier.ml
jjangg96/coda
f9607eb8536e4a897ca48e1e4fe5a085513cf1ff
[ "Apache-2.0" ]
null
null
null
src/lib/transition_frontier/full_frontier/full_frontier.ml
jjangg96/coda
f9607eb8536e4a897ca48e1e4fe5a085513cf1ff
[ "Apache-2.0" ]
null
null
null
open Core_kernel open Coda_base open Coda_state open Coda_transition open Frontier_base module Node = struct type t = {breadcrumb: Breadcrumb.t; successor_hashes: State_hash.t list; length: int} [@@deriving sexp, fields] type display = { length: int ; state_hash: string ; blockchain_state: Block...
38.936455
99
0.683302
afe39cb457374a0a7e49d915f32a7046573c50d3
2,554
ml
OCaml
tests/test-raw/test_raw.ml
fdopen/ocaml-ctypes
7bba07055590101863cc24bd3a22d0926828475b
[ "MIT" ]
null
null
null
tests/test-raw/test_raw.ml
fdopen/ocaml-ctypes
7bba07055590101863cc24bd3a22d0926828475b
[ "MIT" ]
null
null
null
tests/test-raw/test_raw.ml
fdopen/ocaml-ctypes
7bba07055590101863cc24bd3a22d0926828475b
[ "MIT" ]
null
null
null
(* * Copyright (c) 2013 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) open OUnit2 open Memory_stubs open Std_view_stubs (* Tests for the low-level module on which the public high-level interface is based. *) (* Call the C function ...
27.170213
95
0.669538
4452bf690ea437ffb8b768ed2a9177ecf534843d
4,448
mli
OCaml
src/kit/b0_release.mli
fdopen/b0
acf67fe6dcec3477a2093b47c3d1c8ac66a28960
[ "ISC" ]
32
2018-07-24T00:16:14.000Z
2021-11-04T10:04:42.000Z
src/kit/b0_release.mli
shonfeder/b0
ec12b4fbbed6efb99dba5f8f69ecfa03cc2f9478
[ "ISC" ]
8
2019-03-10T16:46:41.000Z
2022-02-08T20:37:54.000Z
src/kit/b0_release.mli
shonfeder/b0
ec12b4fbbed6efb99dba5f8f69ecfa03cc2f9478
[ "ISC" ]
3
2019-12-29T00:14:28.000Z
2021-02-12T18:11:02.000Z
(*--------------------------------------------------------------------------- Copyright (c) 2021 The b0 programmers. All rights reserved. Distributed under the ISC license, see terms at the end of the file. ---------------------------------------------------------------------------*) (** B0 software release he...
40.807339
81
0.640513
442a7b1f344723099037a9b3b6cb314cccff9c9d
189
ml
OCaml
otherlibs/action-plugin/test/one-dependency/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/one-dependency/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/one-dependency/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_dependency") in print_endline data let () = run action
21
67
0.751323
8ad72e1fe0dbf84b784871b4f28472e926820a62
478
ml
OCaml
code/functors/fqueue.ml
msgoff/examples
5771b89374a9399c911a051cb385f295dac32b61
[ "Unlicense" ]
null
null
null
code/functors/fqueue.ml
msgoff/examples
5771b89374a9399c911a051cb385f295dac32b61
[ "Unlicense" ]
null
null
null
code/functors/fqueue.ml
msgoff/examples
5771b89374a9399c911a051cb385f295dac32b61
[ "Unlicense" ]
null
null
null
open Core type 'a t = 'a list * 'a list let empty = ([],[]) let enqueue (in_list, out_list) x = (x :: in_list,out_list) let dequeue (in_list, out_list) = match out_list with | hd :: tl -> Some (hd, (in_list, tl)) | [] -> match List.rev in_list with | [] -> None | hd :: tl -> Some (hd, ([], tl)) ...
22.761905
67
0.59205
44433a7ec7c569eddeca1a18eeebe489a625d4b3
2,341
ml
OCaml
stlc/reduce.ml
rudynicolop/Lambda-Calculi-OCaml
2424f08143b455bf96f45f83674c64c8bdf87766
[ "MIT" ]
null
null
null
stlc/reduce.ml
rudynicolop/Lambda-Calculi-OCaml
2424f08143b455bf96f45f83674c64c8bdf87766
[ "MIT" ]
null
null
null
stlc/reduce.ml
rudynicolop/Lambda-Calculi-OCaml
2424f08143b455bf96f45f83674c64c8bdf87766
[ "MIT" ]
null
null
null
open Core open Option open Syntax open Util open FunUtil open CompUtil open IntComp (** Dynamic Semantics. *) (** Shifts free variables above a cutoff [c] by [i] *) let rec shift (c : int) (i : int) : b_expr -> b_expr = function | Var n -> if n < c then Var n else Var (n + i) | Abs (_,t,e) -> Abs ((), t, shift ...
30.402597
66
0.5566
4450a1d85f17a33853323f8775ece217d5674317
7,585
ml
OCaml
infer/src/base/ResultsDirEntryName.ml
paveon/Looper
0cdc8641f00464d5daadb6b19993ab8c66e7b737
[ "MIT" ]
4
2020-06-16T14:40:24.000Z
2021-07-28T18:02:26.000Z
infer/src/base/ResultsDirEntryName.ml
paveon/Looper
0cdc8641f00464d5daadb6b19993ab8c66e7b737
[ "MIT" ]
25
2021-02-08T13:49:24.000Z
2022-02-28T03:34:19.000Z
infer/src/base/ResultsDirEntryName.ml
paveon/Looper
0cdc8641f00464d5daadb6b19993ab8c66e7b737
[ "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 buck_infer_deps_file_name = "infer-deps.txt" type id = | AllocationTraces | CaptureDB | CaptureDBShm | Cap...
30.708502
98
0.678444
444503774f777787a9ea6f448344733d8fa33dd9
1,996
ml
OCaml
src/termination/dp.ml
ksk/maedmax
487f9a13af6877b50bde6e19b44c959eb5bec813
[ "BSD-3-Clause" ]
null
null
null
src/termination/dp.ml
ksk/maedmax
487f9a13af6877b50bde6e19b44c959eb5bec813
[ "BSD-3-Clause" ]
2
2019-10-08T13:29:12.000Z
2020-12-29T05:49:08.000Z
src/termination/dp.ml
ksk/maedmax
487f9a13af6877b50bde6e19b44c959eb5bec813
[ "BSD-3-Clause" ]
2
2019-09-19T01:23:26.000Z
2021-05-03T09:43:08.000Z
(*** OPENS *******************************************************************) open Rewriting (*** MODULES *****************************************************************) module C = Cache module T = Term module L = Settings.Logic (*** TYPES *******************************************************************) typ...
29.352941
79
0.487475