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
afc6d8be12f20678f12068654da9c91fc090a271
7,821
ml
OCaml
src/commands/checkCommands.ml
ollelauribostrom/flow
0eb0133b7ffa67da71aabb4f949cb19200b1973e
[ "MIT" ]
null
null
null
src/commands/checkCommands.ml
ollelauribostrom/flow
0eb0133b7ffa67da71aabb4f949cb19200b1973e
[ "MIT" ]
null
null
null
src/commands/checkCommands.ml
ollelauribostrom/flow
0eb0133b7ffa67da71aabb4f949cb19200b1973e
[ "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 CommandUtils open Utils_js type printer = | Json of { pretty: bool; version: Errors.Json_output.json_version option } | ...
35.38914
114
0.69991
8a38312c72f1759c7c405f28e964dea0f2bedb4e
58,095
ml
OCaml
interprocedural_analyses/taint/test/modelTest.ml
vsiles/pyre-check
a4f5c3fe06d50b6a6a2493dc804996f37bf42e41
[ "MIT" ]
null
null
null
interprocedural_analyses/taint/test/modelTest.ml
vsiles/pyre-check
a4f5c3fe06d50b6a6a2493dc804996f37bf42e41
[ "MIT" ]
null
null
null
interprocedural_analyses/taint/test/modelTest.ml
vsiles/pyre-check
a4f5c3fe06d50b6a6a2493dc804996f37bf42e41
[ "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 Pyre open Core open OUnit2 open Test open TestHelper module Callable = Interprocedural.Callable open Taint open Model.ModelQue...
30.640823
103
0.568328
afe16e4b501f77cef12cab6060b9a9bc425ae704
12,876
ml
OCaml
ocaml-sources/testsuite/tests/typing-misc/injectivity.ml
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
2
2021-03-03T15:31:36.000Z
2021-03-05T16:01:39.000Z
ocaml-sources/testsuite/tests/typing-misc/injectivity.ml
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
2
2021-03-03T16:08:23.000Z
2021-03-03T19:31:03.000Z
ocaml-sources/testsuite/tests/typing-misc/injectivity.ml
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
null
null
null
(* TEST * expect *) (* Syntax *) type ! 'a t = private 'a ref type +! 'a t = private 'a type -!'a t = private 'a -> unit type + !'a t = private 'a type - ! 'a t = private 'a -> unit type !+ 'a t = private 'a type !-'a t = private 'a -> unit type ! +'a t = private 'a type ! -'a t = private 'a -> unit [%%expect{| ty...
29.39726
84
0.547142
afe0a9d57041e6d9b26e3f71d6cc81e19ff2acbc
440
mli
OCaml
code/files-modules-and-programs-freq-with-sig-mismatch/counter.mli
bguil/examples
506e420c23c127430533ca5ee0b04be12278218b
[ "Unlicense" ]
328
2015-01-08T13:55:08.000Z
2022-03-11T12:56:04.000Z
code/files-modules-and-programs-freq-with-sig-mismatch/counter.mli
bguil/examples
506e420c23c127430533ca5ee0b04be12278218b
[ "Unlicense" ]
17
2015-01-04T00:26:01.000Z
2018-05-31T08:16:44.000Z
code/files-modules-and-programs-freq-with-sig-mismatch/counter.mli
bguil/examples
506e420c23c127430533ca5ee0b04be12278218b
[ "Unlicense" ]
83
2015-01-21T15:07:56.000Z
2022-03-11T12:56:08.000Z
open Core.Std (** A collection of string frequency counts *) type t (** The empty set of frequency counts *) val empty : t (* part 1 *) (** Bump the frequency count for the given string. *) val touch : string -> t -> t (* part 2 *) (* Converts the set of frequency counts to an association list. Every strings i...
24.444444
78
0.668182
d2d8668ab8c93834b7f2d70be1e61ab8ce6f2280
6,070
ml
OCaml
tools/odeplink.ml
Machiaweliczny/oppailang
60ddea53e56babcc1e8954b5585150098b0e4d88
[ "MIT" ]
643
2015-01-02T23:57:37.000Z
2022-03-18T18:50:24.000Z
tools/odeplink.ml
Machiaweliczny/oppailang
60ddea53e56babcc1e8954b5585150098b0e4d88
[ "MIT" ]
52
2015-01-17T07:26:16.000Z
2021-03-08T14:16:08.000Z
tools/odeplink.ml
Machiaweliczny/oppailang
60ddea53e56babcc1e8954b5585150098b0e4d88
[ "MIT" ]
58
2015-01-02T23:57:42.000Z
2022-03-02T12:44:42.000Z
(* Copyright © 2011 MLstate This file is part of Opa. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
27.466063
464
0.644646
8a5e161d0ec96224df611f3387496a92df81b2d3
234
mli
OCaml
src/CL_NetGameConnection.mli
fccm/ocaml-clanlib
1929f1c11d4cc9fc19e7da22826238b4cce7a07d
[ "Zlib", "OLDAP-2.2.1" ]
1
2020-10-24T14:48:04.000Z
2020-10-24T14:48:04.000Z
src/CL_NetGameConnection.mli
fccm/ocaml-clanlib
1929f1c11d4cc9fc19e7da22826238b4cce7a07d
[ "Zlib", "OLDAP-2.2.1" ]
null
null
null
src/CL_NetGameConnection.mli
fccm/ocaml-clanlib
1929f1c11d4cc9fc19e7da22826238b4cce7a07d
[ "Zlib", "OLDAP-2.2.1" ]
null
null
null
(** *) (** API documentation for the {{:http://clanlib.org/docs/clanlib-2.3/reference_doxygen/classCL__NetGameConnection.html} class CL_NetGameConnection} *) type t external delete : t -> unit = "caml_CL_NetGameConnection_delete"
26
89
0.75641
afab6213b02dbb37696d4a1425aabebd7ce0297c
3,354
ml
OCaml
src/eva_wrapper/eva_wrapper_instance.ml
TDacik/Deadlock
59c1f101bc40dd96fbc7fe96c47a09bfdc29c10b
[ "MIT" ]
11
2020-12-08T02:30:30.000Z
2022-01-13T17:26:32.000Z
src/eva_wrapper/eva_wrapper_instance.ml
TDacik/Deadlock
59c1f101bc40dd96fbc7fe96c47a09bfdc29c10b
[ "MIT" ]
1
2022-01-12T11:59:03.000Z
2022-03-04T16:11:23.000Z
src/eva_wrapper/eva_wrapper_instance.ml
TDacik/Deadlock
59c1f101bc40dd96fbc7fe96c47a09bfdc29c10b
[ "MIT" ]
null
null
null
(* Instance of wrapper that uses results computed by EVA * * Author: Tomas Dacik (xdacik00@fit.vutbr.cz), 2020 *) open! Deadlock_top open Locations open Cil_types module AI = Abstract_interp (* Cache of results computed by EVA *) module Cache = Map.Make (struct type t = Thread.t let compare = Thr...
27.95
81
0.691115
8a14abafeecb1bce86024379f61af0017ec8ca4d
8,123
ml
OCaml
src/commands/checkCommands.ml
yuhonghong66/flow
147eb3fe43b407fb70506b750d73734e49241b05
[ "MIT" ]
null
null
null
src/commands/checkCommands.ml
yuhonghong66/flow
147eb3fe43b407fb70506b750d73734e49241b05
[ "MIT" ]
null
null
null
src/commands/checkCommands.ml
yuhonghong66/flow
147eb3fe43b407fb70506b750d73734e49241b05
[ "MIT" ]
null
null
null
(** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open CommandUtils open Utils_js type printer = | Json of { pretty: bool; version: Errors.Json_output.json_version option } | Cli of...
36.102222
114
0.699372
8a57e37f24875336157037302a6db46c3de2768c
8,821
ml
OCaml
arm/proofs/bignum_add_p521.ml
SalusaSecondus/s2n-bignum
bf33aba81577a72924a9add994cba61fbb146026
[ "Apache-2.0" ]
33
2021-03-11T16:12:01.000Z
2022-03-06T17:01:18.000Z
arm/proofs/bignum_add_p521.ml
SalusaSecondus/s2n-bignum
bf33aba81577a72924a9add994cba61fbb146026
[ "Apache-2.0" ]
8
2021-09-06T12:58:47.000Z
2022-01-03T16:43:09.000Z
arm/proofs/bignum_add_p521.ml
SalusaSecondus/s2n-bignum
bf33aba81577a72924a9add994cba61fbb146026
[ "Apache-2.0" ]
4
2021-03-11T19:28:16.000Z
2021-12-12T23:40:44.000Z
(* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "LICENSE" file ...
48.467033
196
0.627593
af674a719526bdb479d53d12bce8c94de7e20438
2,208
ml
OCaml
src/util/printBuffer.ml
Techbot/vult
b40a0d352787f7e221cda41199db27f710d5933c
[ "MIT" ]
316
2015-05-05T00:06:06.000Z
2022-01-29T21:25:47.000Z
src/util/printBuffer.ml
shortwavaudio/vult
cb17ef9609019bc476a0527e2f4939fbf682ce7a
[ "MIT" ]
40
2015-10-25T22:24:52.000Z
2021-12-11T07:45:35.000Z
src/util/printBuffer.ml
shortwavaudio/vult
cb17ef9609019bc476a0527e2f4939fbf682ce7a
[ "MIT" ]
25
2015-06-17T05:44:32.000Z
2021-12-11T17:12:49.000Z
(** String buffer with a few useful functions *) type print_buffer = { buffer : Buffer.t ; mutable indent : int ; mutable space : string ; mutable insert : bool } (** Creates a print buffer *) let makePrintBuffer () = { buffer = Buffer.create 100; indent = 0; space = ""; insert = false } (** Inserts a ...
24
95
0.59692
8a5fb71a407ec09e08de84d0d87b026595a6805c
296
ml
OCaml
lib/rock_httpaf/rock_httpaf.ml
tmattio/http-univ
dc5a9c77f031408e976a4b4ccf478551faf20648
[ "MIT" ]
null
null
null
lib/rock_httpaf/rock_httpaf.ml
tmattio/http-univ
dc5a9c77f031408e976a4b4ccf478551faf20648
[ "MIT" ]
null
null
null
lib/rock_httpaf/rock_httpaf.ml
tmattio/http-univ
dc5a9c77f031408e976a4b4ccf478551faf20648
[ "MIT" ]
null
null
null
module App = App module Context = Context module Body = Body module Request = Request module Response = Response module Server_connection = Server_connection module Service = Service module Filter = Filter module Handler = Handler module Router = Middleware_router module Middleware = Middleware
24.666667
44
0.814189
d2f27896cf6d4fdafb6a5dfdedde2029e421072f
106,119
ml
OCaml
src/services/inference/types_js.ml
justingrant/flow
f9afdbc9c5971c2517ce96c64d996325cd6e6405
[ "MIT" ]
null
null
null
src/services/inference/types_js.ml
justingrant/flow
f9afdbc9c5971c2517ce96c64d996325cd6e6405
[ "MIT" ]
4
2021-06-23T23:54:47.000Z
2021-09-01T00:40:08.000Z
src/services/inference/types_js.ml
tbergq/flow
8c866379d12dc32c6a0e129739148c8cd9169db8
[ "MIT" ]
1
2019-05-23T07:00:41.000Z
2019-05-23T07:00:41.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. *) (* This module drives the type checker *) open Utils_js (****************** typecheck job helpers *********************) let cle...
39.361647
103
0.668966
8a674df29e8d750ee0a1e2c14df55254adcd07d0
7,343
ml
OCaml
parser/qd_based/Wasm_Parse_Exportsec.ml
secure-foundations/vWasm
6d9340c94cf0aa39be4173051fc8eeea373bd183
[ "BSD-3-Clause" ]
null
null
null
parser/qd_based/Wasm_Parse_Exportsec.ml
secure-foundations/vWasm
6d9340c94cf0aa39be4173051fc8eeea373bd183
[ "BSD-3-Clause" ]
null
null
null
parser/qd_based/Wasm_Parse_Exportsec.ml
secure-foundations/vWasm
6d9340c94cf0aa39be4173051fc8eeea373bd183
[ "BSD-3-Clause" ]
null
null
null
open Prims type exportsec = { n: Wasm_Parse_Aux_section_const7.aux_section_const7 ; aux_ignore_byte: Wasm_Parse_Aux_constbyte0.aux_constbyte0 ; cont: Wasm_Parse_Exportsec_cont.exportsec_cont } let (__proj__Mkexportsec__item__n : exportsec -> Wasm_Parse_Aux_section_const7.aux_section_const7) = fun projectee ...
40.794444
80
0.618004
f3d828904a2efea1d8fb46e55abe3826077d6e12
57
mli
OCaml
cli/user.mli
tmcgilchrist/ocaml-gitlab
0af123315eaf054060092fe6bafc6ed7a244fbe0
[ "BSD-3-Clause" ]
11
2021-09-16T11:24:57.000Z
2022-03-24T12:03:49.000Z
cli/user.mli
tmcgilchrist/ocaml-gitlab
0af123315eaf054060092fe6bafc6ed7a244fbe0
[ "BSD-3-Clause" ]
9
2021-10-21T23:49:16.000Z
2022-03-31T07:37:35.000Z
cli/user.mli
tmcgilchrist/ocaml-gitlab
0af123315eaf054060092fe6bafc6ed7a244fbe0
[ "BSD-3-Clause" ]
4
2022-01-21T10:02:26.000Z
2022-03-17T00:54:48.000Z
open Cmdliner val cmd : (unit -> Config.t) -> unit Cmd.t
19
42
0.649123
8a42642ae252f163ee3a78a56980830c404e322b
90,285
ml
OCaml
src/parser_utils/flow_ast_differ.ml
bnelo12/flow
65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0
[ "MIT" ]
null
null
null
src/parser_utils/flow_ast_differ.ml
bnelo12/flow
65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0
[ "MIT" ]
null
null
null
src/parser_utils/flow_ast_differ.ml
bnelo12/flow
65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0
[ "MIT" ]
null
null
null
(** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) module Ast_utils = Flow_ast_utils module Ast = Flow_ast open Utils_js type 'a change' = | Replace of 'a * 'a | Insert of (* ...
45.529501
167
0.670056
8a5f50ab6ecd35c59e634e89af0fb694f6ba38f6
41,959
ml
OCaml
lib/core_set.ml
chambart/core_kernel
025f7a0695bf51317b23750c23f7c7824a0f9af1
[ "Apache-2.0" ]
null
null
null
lib/core_set.ml
chambart/core_kernel
025f7a0695bf51317b23750c23f7c7824a0f9af1
[ "Apache-2.0" ]
null
null
null
lib/core_set.ml
chambart/core_kernel
025f7a0695bf51317b23750c23f7c7824a0f9af1
[ "Apache-2.0" ]
null
null
null
(***********************************************************************) (* *) (* Objective Caml *) (* *) (* Xavier Ler...
31.429963
96
0.585452
8a6e680b24eb4d9aa179cad28eee281a11f67f95
3,221
mli
OCaml
lib/nottui/nottui.mli
rgrinberg/lwd
de82afccaca0aef22b8d358191b192942f511be5
[ "MIT" ]
null
null
null
lib/nottui/nottui.mli
rgrinberg/lwd
de82afccaca0aef22b8d358191b192942f511be5
[ "MIT" ]
null
null
null
lib/nottui/nottui.mli
rgrinberg/lwd
de82afccaca0aef22b8d358191b192942f511be5
[ "MIT" ]
null
null
null
open Notty module Focus : sig type handle val make : unit -> handle val request : handle -> unit val release : handle -> unit type status val empty : status val status : handle -> status Lwd.t val has_focus : status -> bool end module Gravity : sig type direction = [ | `Negative | `Neutral ...
24.968992
76
0.599503
8a5d38ee0a9a8fe084b0cf08f3b294720ac87262
1,741
ml
OCaml
data/fa15_min/2725.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15_min/2725.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15_min/2725.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 [x] @ (clone x (n - 1)) else [];; let padZero l1 l2 = let len1 = List.length l1 in let len2 = List.length l2 in if len1 > len2 then (l1, ((clone 0 (len1 - len2)) @ l2)) else (((clone 0 (len2 - len1)) @ l1), l2);; let rec removeZero l = match l with | [] -> [] | h::t -> i...
21.231707
77
0.528432
8a098140267def941ebda905b32be1ccf1bd8a84
452
ml
OCaml
OCaml from the Very Beginning/Chapter 11/exercise03.ml
johnwhitington/ocamli
28da5d87478a51583a6cb792bf3a8ee44b990e9f
[ "BSD-3-Clause" ]
100
2017-09-08T09:49:08.000Z
2022-03-10T12:12:50.000Z
OCaml from the Very Beginning/Chapter 11/exercise03.ml
johnwhitington/ocamli
28da5d87478a51583a6cb792bf3a8ee44b990e9f
[ "BSD-3-Clause" ]
1
2020-01-31T15:47:28.000Z
2020-02-01T11:54:44.000Z
OCaml from the Very Beginning/Chapter 11/exercise03.ml
johnwhitington/ocamli
28da5d87478a51583a6cb792bf3a8ee44b990e9f
[ "BSD-3-Clause" ]
null
null
null
type 'a tree = Lf | Br of 'a * 'a tree * 'a tree let rec equal_shape tr tr2 = match tr, tr2 with Lf, Lf -> true | Br (_, l, r), Br (_, l2, r2) -> equal_shape l l2 && equal_shape r r2 | _, _ -> false let rec tree_map f tr = match tr with Br (x, l, r) -> Br (f x, tree...
19.652174
57
0.511062
8a2afb4fde50ca23f8f17644214d240e0f90a729
3,208
ml
OCaml
hphp/hack/src/parsing/parser_heap.ml
ebernhardson/hiphop-php
c9c4855f07e947d703dc1eb414ec95100e7d63cb
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/parsing/parser_heap.ml
ebernhardson/hiphop-php
c9c4855f07e947d703dc1eb414ec95100e7d63cb
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/parsing/parser_heap.ml
ebernhardson/hiphop-php
c9c4855f07e947d703dc1eb414ec95100e7d63cb
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(** * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the "hack" directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * *) open Core (*...
33.768421
80
0.578242
af57a040fa0279ff5cc1120b6dcef71804ebab7f
2,327
ml
OCaml
otherlibs/stdune-unstable/stdune.ml
Niols/dune
6481d0fac8ebf670957de0916b271562f50c954c
[ "MIT" ]
1
2021-10-05T16:59:09.000Z
2021-10-05T16:59:09.000Z
otherlibs/stdune-unstable/stdune.ml
Niols/dune
6481d0fac8ebf670957de0916b271562f50c954c
[ "MIT" ]
null
null
null
otherlibs/stdune-unstable/stdune.ml
Niols/dune
6481d0fac8ebf670957de0916b271562f50c954c
[ "MIT" ]
null
null
null
module Appendable_list = Appendable_list module Nonempty_list = Nonempty_list module Ansi_color = Ansi_color module Array = Array module Bytes = Bytes module Char = Char module Comparator = Comparator module Console = Console module Either = Either module Exn = Exn module Exn_with_backtrace = Exn_with_backtrace module ...
22.375
80
0.761925
afdc70143f30b4a4a3360cabfbdd83393523a1f9
929
ml
OCaml
data/fa15_min/0454.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15/0454.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15_min/0454.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
let rec wwhile (f,b) = let res = f b in match res with | (x,y) when y = true -> wwhile (f, x) | (x,y) -> x;; let fixpoint (f,b) = let gs x = let isFPoint x = ((f x) - x) < 0 in f b in wwhile (gs, b);; (* fix let rec wwhile (f,b) = let res = f b in match res with | (x,y) when y = true -> wwhile (f, x) | (...
16.589286
73
0.495156
af0a8b308a8390894ba3c2eb9787cce3dcd98651
251
ml
OCaml
t/index_test.ml
MathisTLD/ocaml-grib
8a386e2c5b017a865c7d13679bf56b8b2a45a38e
[ "MIT" ]
1
2019-08-16T21:08:25.000Z
2019-08-16T21:08:25.000Z
t/index_test.ml
MathisTLD/ocaml-grib
8a386e2c5b017a865c7d13679bf56b8b2a45a38e
[ "MIT" ]
1
2017-02-19T12:08:59.000Z
2017-03-13T17:29:57.000Z
t/index_test.ml
MathisTLD/ocaml-grib
8a386e2c5b017a865c7d13679bf56b8b2a45a38e
[ "MIT" ]
2
2015-10-24T15:19:23.000Z
2021-03-18T07:18:39.000Z
open Grib open OUnit2 let iter _ctx = let h = Handle.of_sample "GRIB2" in Iterator.iter ignore h; ignore (Iterator.map ignore h); ignore (Iterator.to_lat_lon_value h); Handle.delete h; () let t = "Index" >::: [ "iter" >:: iter ]
15.6875
39
0.633466
afd7668f54f84dc7ee0c4abc588e796b88462854
837
ml
OCaml
vigfw/dataspec.ml
axelmarmet/vigor
1565149756b67d2bf35d684dd1288d77d4673c8a
[ "MIT" ]
36
2019-09-06T15:33:31.000Z
2022-02-02T21:11:36.000Z
vigfw/dataspec.ml
axelmarmet/vigor
1565149756b67d2bf35d684dd1288d77d4673c8a
[ "MIT" ]
3
2019-10-03T10:33:19.000Z
2020-08-10T13:06:01.000Z
vigfw/dataspec.ml
axelmarmet/vigor
1565149756b67d2bf35d684dd1288d77d4673c8a
[ "MIT" ]
9
2019-09-18T15:12:29.000Z
2021-01-20T12:45:01.000Z
open Data_spec open Core open Ir let containers = ["fm", Map ("FlowId", "max_flows", ""); "fv", Vector ("FlowId", "max_flows", ""); "int_devices", Vector ("uint32_t", "max_flows", "int_dev_bounds"); "heap", DChain "max_flows"; "max_flows", Int; ...
39.857143
101
0.422939
8a2e78eea88774be40e2786e86c25e93e6da682c
84
ml
OCaml
data/derived/comb/progs/unify/prog5683.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/prog0805.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/fa15/progs/unify/prog0805.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let rec sumList n xs = match xs with | [] -> 0 | h::t -> (h n) + (sumList t n);;
21
59
0.488095
8a0cc8dc4a02421f598e67ea0336b96b09ec81de
6,608
ml
OCaml
src/odoc/env.ml
bryphe/odoc
3e1aa0450a53585a93a3336fb5d53e03f845c736
[ "ISC" ]
null
null
null
src/odoc/env.ml
bryphe/odoc
3e1aa0450a53585a93a3336fb5d53e03f845c736
[ "ISC" ]
null
null
null
src/odoc/env.ml
bryphe/odoc
3e1aa0450a53585a93a3336fb5d53e03f845c736
[ "ISC" ]
null
null
null
open Compat (* * Copyright (c) 2014 Leo White <leo@lpw25.net> * * 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...
33.04
80
0.649818
8a3eb380eca84e0e59d3b92b01a14225e75c7ec9
395
ml
OCaml
vendor/base/src/t.ml
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
641
2016-09-16T15:51:06.000Z
2022-03-31T19:30:56.000Z
vendor/base/src/t.ml
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
121
2016-09-17T07:30:00.000Z
2022-03-03T21:00:03.000Z
vendor/base/src/t.ml
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
95
2016-09-16T23:31:38.000Z
2022-03-19T01:35:06.000Z
(** This module defines various abstract interfaces that are convenient when one needs a module that matches a bare signature with just a type. This sometimes occurs in functor arguments and in interfaces. *) open! Import module type T = sig type t end module type T1 = sig type 'a t end module type T2 =...
17.954545
88
0.696203
8a6a54b2d26aeb24320e8cafabc75bc13dcb2c8e
25,213
mli
OCaml
src/prover/lib/smt_deprecated.mli
kupl/MicSE
f23575accb2704cb2bc6f71b91bfed657dd7b9a6
[ "MIT" ]
17
2021-06-16T11:43:15.000Z
2022-03-04T16:47:31.000Z
src/prover/lib/smt_deprecated.mli
kupl/MicSE
f23575accb2704cb2bc6f71b91bfed657dd7b9a6
[ "MIT" ]
26
2020-09-09T05:23:28.000Z
2021-12-10T10:08:54.000Z
src/prover/lib/smt_deprecated.mli
kupl/MicSE
f23575accb2704cb2bc6f71b91bfed657dd7b9a6
[ "MIT" ]
null
null
null
exception ZError of string module CONST : sig val _name_dummy : string val _name_unit : string val _name_map : string val _tmpname_source : string val _tmpname_sender : string val _sort_key : string val _sort_unit : string val _sort_operation : string val _sort_contract : string val _sort_lambd...
33.662216
157
0.363225
8a6551060842a7f60f98d0a0e258b25754706e04
2,033
mll
OCaml
src/fo_lexer.mll
mraszyk/mfotl2ranf
7a1d2b4a0fc2a5f3c5d804f4cb3f4713408508c8
[ "BSD-3-Clause" ]
null
null
null
src/fo_lexer.mll
mraszyk/mfotl2ranf
7a1d2b4a0fc2a5f3c5d804f4cb3f4713408508c8
[ "BSD-3-Clause" ]
null
null
null
src/fo_lexer.mll
mraszyk/mfotl2ranf
7a1d2b4a0fc2a5f3c5d804f4cb3f4713408508c8
[ "BSD-3-Clause" ]
null
null
null
{ open Lexing open Fo_parser } let blank = [' ' '\r' '\n' '\t'] let num = ['0'-'9']+ let alpha = ['a'-'z' 'A'-'Z'] let alphanums = ['a'-'z' 'A'-'Z' '0'-'9']* rule token = parse | blank { token lexbuf } | "," { COM } | "." ...
48.404762
85
0.198721
afcc9fa3a9ceb0721d4526a1892fb164091517d8
6,177
ml
OCaml
hack/server/serverArgs.ml
mcanthony/flow-type
fb50e311cbc4d6b716889419796ff8a8746bd7f1
[ "BSD-3-Clause" ]
1
2015-10-01T01:50:43.000Z
2015-10-01T01:50:43.000Z
hack/server/serverArgs.ml
mcanthony/flow-type
fb50e311cbc4d6b716889419796ff8a8746bd7f1
[ "BSD-3-Clause" ]
null
null
null
hack/server/serverArgs.ml
mcanthony/flow-type
fb50e311cbc4d6b716889419796ff8a8746bd7f1
[ "BSD-3-Clause" ]
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. * *) (************...
38.849057
80
0.521451
8a198b32b7fac65eb6585e0c09e491da42ddcf30
1,306
mli
OCaml
libraries/rds/lib/describeOrderableDBInstanceOptions.mli
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
1
2020-05-21T19:12:04.000Z
2020-05-21T19:12:04.000Z
libraries/rds/lib/describeOrderableDBInstanceOptions.mli
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
null
null
null
libraries/rds/lib/describeOrderableDBInstanceOptions.mli
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
null
null
null
(** "<p>Returns a list of orderable DB instance options for the specified engine.</p>" *) open Types[@@ocaml.warning "-33"] open Aws.BaseTypes[@@ocaml.warning "-33"] module DescribeOrderableDBInstanceOptionsMessage : sig type t = { engine: String.t ; engine_version: String.t option ; d_b_instance_clas...
36.277778
89
0.67611
8a007ade1187a6c411a89a2becbe96351a413c0b
1,152
mli
OCaml
src/hack_forked/utils/buffered_line_reader/buffered_line_reader_sig.mli
mochja/flow
f5351e5ece186468278f5a94a5c59f00315243c1
[ "MIT" ]
20,996
2015-01-01T13:51:47.000Z
2022-03-31T17:44:01.000Z
src/hack_forked/utils/buffered_line_reader/buffered_line_reader_sig.mli
mochja/flow
f5351e5ece186468278f5a94a5c59f00315243c1
[ "MIT" ]
8,315
2015-01-01T19:56:43.000Z
2022-03-31T15:58:10.000Z
src/hack_forked/utils/buffered_line_reader/buffered_line_reader_sig.mli
tbergq/flow
8c866379d12dc32c6a0e129739148c8cd9169db8
[ "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. *) (* This `.mli` file was generated automatically. It may include extra definitions that should not actually be exposed to the cal...
21.735849
79
0.665799
af9fe6d197ed9874ea184013d75f3a11d2a4511e
7,512
ml
OCaml
infer/src/backend/PropUtil.ml
ievans/infer
c483fe101a3bdb3e86c4444a7b8d6197eada67c0
[ "BSD-3-Clause" ]
null
null
null
infer/src/backend/PropUtil.ml
ievans/infer
c483fe101a3bdb3e86c4444a7b8d6197eada67c0
[ "BSD-3-Clause" ]
2
2020-11-13T19:42:27.000Z
2020-11-13T19:49:19.000Z
infer/src/backend/PropUtil.ml
ievans/infer
c483fe101a3bdb3e86c4444a7b8d6197eada67c0
[ "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! IStd ...
38.92228
99
0.648962
8a45089dce0a678bd10cfb566066417e9e9e378f
7,537
ml
OCaml
code/ffi/simple/myocamlbuild.ml
mgttlinger/ocaml-book
09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75
[ "BSD-3-Clause" ]
142
2015-01-12T16:45:40.000Z
2022-01-15T00:47:37.000Z
code/ffi/simple/myocamlbuild.ml
mgttlinger/ocaml-book
09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75
[ "BSD-3-Clause" ]
1
2018-10-09T13:53:43.000Z
2018-12-03T04:15:48.000Z
code/ffi/simple/myocamlbuild.ml
mgttlinger/ocaml-book
09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75
[ "BSD-3-Clause" ]
17
2015-02-10T18:12:15.000Z
2021-06-21T06:57:32.000Z
open Ocamlbuild_plugin open Command open Printf let (^$) f x = f x let (//) = Filename.concat let flip f x y = f y x let prerr_endlinef fmt = ksprintf prerr_endline fmt let run_and_read = Ocamlbuild_pack.My_unix.run_and_read let blank_sep_strings = Ocamlbuild_pack.Lexers.blank_sep_strings let find_packages () = ...
31.535565
85
0.60276
8a2d0a6310afc6e505e61fdca0ed3412dc0c29c5
54,400
ml
OCaml
infer/src/biabduction/Abs.ml
Static-Analysis-Tools/infer
2a920fc3e510384b51daad9e4e81ff7c6785ab4f
[ "MIT" ]
14,499
2015-06-11T16:00:28.000Z
2022-03-31T23:43:54.000Z
infer/src/biabduction/Abs.ml
Static-Analysis-Tools/infer
2a920fc3e510384b51daad9e4e81ff7c6785ab4f
[ "MIT" ]
1,529
2015-06-11T16:55:30.000Z
2022-03-27T15:59:46.000Z
infer/src/biabduction/Abs.ml
Static-Analysis-Tools/infer
2a920fc3e510384b51daad9e4e81ff7c6785ab4f
[ "MIT" ]
2,225
2015-06-11T16:36:10.000Z
2022-03-31T05:16:59.000Z
(* * Copyright (c) 2009-2013, Monoidics ltd. * 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 (** Implementation of Abstraction Functions *) module L = Logging (** {2 A...
39.391745
108
0.667243
8a50268d2060775530092bedacbe1c8abbcbcb83
412
ml
OCaml
ocaml-sources/testsuite/tests/lib-obj/reachable_words_np.ml
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
2
2021-03-03T15:31:36.000Z
2021-03-05T16:01:39.000Z
ocaml-sources/testsuite/tests/lib-obj/reachable_words_np.ml
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
2
2021-03-03T16:08:23.000Z
2021-03-03T19:31:03.000Z
ocaml-sources/testsuite/tests/lib-obj/reachable_words_np.ml
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
null
null
null
(* TEST * naked_pointers ** bytecode ** native *) let native = match Sys.backend_type with | Sys.Native -> true | Sys.Bytecode -> false | Sys.Other s -> print_endline s; assert false let size x = Obj.reachable_words (Obj.repr x) let expect_size s x = let i = size x in if i <> s then Printf.printf ...
18.727273
52
0.631068
af9b1f468eda5ee562a0c4807df21a1bf96ef3b0
911
ml
OCaml
data/derived/comb/progs/unify/prog6879.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/prog2063.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/fa15/progs/unify/prog2063.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));; let padZero l1 l2 = (((clone 0 ((List.length l2) - (List.length l1))) @ l1), ((clone 0 ((List.length l1) - (List.length l2))) @ l2));; let rec removeZero l = match l with | [] -> [] | h::t -> if h = 0 then removeZero t else h :: t;; let big...
31.413793
76
0.545554
af3af1e0470876eba62af889597a41ded91be853
17,181
ml
OCaml
src/extract.ml
timbertson/opam2nix
212ea465a3ced46826b3a9a2c200f848f4daad11
[ "MIT" ]
82
2016-02-05T09:42:05.000Z
2022-02-25T10:50:26.000Z
src/extract.ml
timbertson/opam2nix
212ea465a3ced46826b3a9a2c200f848f4daad11
[ "MIT" ]
70
2016-02-05T09:41:40.000Z
2022-03-29T06:07:49.000Z
src/extract.ml
timbertson/opam2nix
212ea465a3ced46826b3a9a2c200f848f4daad11
[ "MIT" ]
20
2016-07-12T13:29:45.000Z
2022-01-21T20:23:23.000Z
module JSON = Yojson.Safe open Util module Name = OpamPackage.Name module Version = OpamPackage.Version module OPAM = OpamFile.OPAM type package_name = OpamPackage.Name.t let package_name_of_yojson j = [%of_yojson: string] j |> Result.map OpamPackage.Name.of_string let package_name_to_yojson name = `String (Name.to_st...
34.430862
137
0.696758
affa928c3f713c640f9b43b8d270bbca3b9437f0
222
mli
OCaml
libraries/cloudwatch/lib/listTagsForResource.mli
anuragsoni/ocaml-aws
4acdbcdc95449e7c5f08528f472d25986dd4f8a2
[ "BSD-3-Clause" ]
134
2016-01-11T19:35:49.000Z
2022-02-19T15:57:41.000Z
libraries/cloudwatch/lib/listTagsForResource.mli
anuragsoni/ocaml-aws
4acdbcdc95449e7c5f08528f472d25986dd4f8a2
[ "BSD-3-Clause" ]
66
2016-01-12T00:32:47.000Z
2022-03-31T03:34:49.000Z
libraries/cloudwatch/lib/listTagsForResource.mli
anuragsoni/ocaml-aws
4acdbcdc95449e7c5f08528f472d25986dd4f8a2
[ "BSD-3-Clause" ]
33
2016-01-11T23:13:26.000Z
2022-03-28T23:49:11.000Z
open Types type input = ListTagsForResourceInput.t type output = ListTagsForResourceOutput.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
20.181818
85
0.774775
8a5c5f4456f0d4ec042e3f46ef47c847dedc5088
491
ml
OCaml
sem1/wpf/cwiczenia/pazdziernik/17/zad1.ml
abrams27/mimuw
ad8b01b63c05d7903aab29fd145845cf97ac32d9
[ "MIT" ]
3
2021-10-07T18:19:37.000Z
2021-10-07T19:02:14.000Z
sem1/wpf/cwiczenia/pazdziernik/17/zad1.ml
abrams27/mimuw
ad8b01b63c05d7903aab29fd145845cf97ac32d9
[ "MIT" ]
null
null
null
sem1/wpf/cwiczenia/pazdziernik/17/zad1.ml
abrams27/mimuw
ad8b01b63c05d7903aab29fd145845cf97ac32d9
[ "MIT" ]
3
2021-12-02T11:09:09.000Z
2022-01-25T21:31:23.000Z
let lider l = let rec kandydat l kand licz = match l with | [] -> kand | h :: t -> if ( kand = h ) then kandydat t kand ( licz + 1 ) else if licz > 0 then kandydat t kand ( licz - 1 ) else kandydat t h 1 in let rec sprawdz l kand licz = match l with | [] -> if licz > 0 then ( So...
24.55
55
0.527495
8a7e08b68e63be5ffed0e904625be0347ef0f2c0
11,231
ml
OCaml
dist/gcc-compatible/lib/Hacl_Bignum_bindings.ml
lambdaxymox/hacl-star
df52a8d6fadeec6157d09421d9b9ec5c0eabd900
[ "Apache-2.0" ]
null
null
null
dist/gcc-compatible/lib/Hacl_Bignum_bindings.ml
lambdaxymox/hacl-star
df52a8d6fadeec6157d09421d9b9ec5c0eabd900
[ "Apache-2.0" ]
1
2021-06-15T20:33:38.000Z
2021-06-15T20:33:38.000Z
dist/gcc-compatible/lib/Hacl_Bignum_bindings.ml
lambdaxymox/hacl-star
df52a8d6fadeec6157d09421d9b9ec5c0eabd900
[ "Apache-2.0" ]
null
null
null
open Ctypes module Bindings(F:Cstubs.FOREIGN) = struct open F let hacl_Bignum_Convert_bn_from_bytes_be_uint64 = foreign "Hacl_Bignum_Convert_bn_from_bytes_be_uint64" (uint32_t @-> (ocaml_bytes @-> ((ptr uint64_t) @-> (returning void)))) let hacl_Bignum_Convert_bn_to_bytes_be_uint64 = f...
45.840816
82
0.565399
8a31b3b58bc1e1c995352a92b49a0444df9bf2d4
5,270
mli
OCaml
src/proto_alpha/lib_protocol/entrypoint_repr.mli
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
null
null
null
src/proto_alpha/lib_protocol/entrypoint_repr.mli
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
null
null
null
src/proto_alpha/lib_protocol/entrypoint_repr.mli
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2021 Nomadic Labs, <contact@nomadic-labs.com> *) ...
39.924242
79
0.611575
afca412d669578848696c27bcb0312056641e40a
21,029
ml
OCaml
input_widgets/src/vdom_input_widgets.ml
Strikeskids/virtual_dom
ea8b8057387357c94a7bcf43b73e2e707c8ab639
[ "MIT" ]
null
null
null
input_widgets/src/vdom_input_widgets.ml
Strikeskids/virtual_dom
ea8b8057387357c94a7bcf43b73e2e707c8ab639
[ "MIT" ]
null
null
null
input_widgets/src/vdom_input_widgets.ml
Strikeskids/virtual_dom
ea8b8057387357c94a7bcf43b73e2e707c8ab639
[ "MIT" ]
null
null
null
open Core_kernel open Virtual_dom.Vdom include Vdom_input_widgets_intf module Decimal = struct type t = float let invariant t = if not (Float.is_finite t) then failwithf "Cannot represent non-finite float as decimal: %f" t () ;; let of_string s = let t = Float.of_string s in invariant t; ...
27.453003
90
0.591374
af37546a50e8116b14645a030c0a535473a8929d
5,571
ml
OCaml
2020/src/day4.ml
matejbolta/advent-of-code-2020
f6684f482a20ea133bb8a20cc575eaf4e70af154
[ "MIT" ]
null
null
null
2020/src/day4.ml
matejbolta/advent-of-code-2020
f6684f482a20ea133bb8a20cc575eaf4e70af154
[ "MIT" ]
null
null
null
2020/src/day4.ml
matejbolta/advent-of-code-2020
f6684f482a20ea133bb8a20cc575eaf4e70af154
[ "MIT" ]
null
null
null
(* Uporaba knjižnjice Str na WINDOWSU: http://pleac.sourceforge.net/pleac_ocaml/patternmatching.html *) # load "str.cma";; let day = "4" let fields = ["byr"; "iyr"; "eyr"; "hgt"; "hcl"; "ecl"; "pid"; "cid"] (* Note to self: https://stackoverflow.com/questions/39813584/ *) let fix_passport_whitespace list = (* ["ecl:...
33.359281
133
0.621971
afcd4a4f5a78dc3d029c03982120cad247b2f734
383
ml
OCaml
infer/src/go/json.ml
awelc/infer
b1e60a1de12428d2de650310271b688dce5d99b1
[ "MIT" ]
null
null
null
infer/src/go/json.ml
awelc/infer
b1e60a1de12428d2de650310271b688dce5d99b1
[ "MIT" ]
null
null
null
infer/src/go/json.ml
awelc/infer
b1e60a1de12428d2de650310271b688dce5d99b1
[ "MIT" ]
null
null
null
open Go_ast_to_json_t let load_file f = ( let ic = open_in f in let n = in_channel_length ic in (* let s = String.create n in really_input ic s 0 n; *) let s = really_input_string ic n in close_in ic; s) let () = let json = (load_file "/Users/adam.welc/tmp.json") in print_endline (Go_ast_to_json_j.st...
27.357143
100
0.720627
af27a4eb5af6e20995f6a2a70e09355ba2bff720
36,514
ml
OCaml
src/parsing/parsing_service_js.ml
TheJKFever/flow
0891647c93062c25665323c259a8083374ac1348
[ "MIT" ]
null
null
null
src/parsing/parsing_service_js.ml
TheJKFever/flow
0891647c93062c25665323c259a8083374ac1348
[ "MIT" ]
null
null
null
src/parsing/parsing_service_js.ml
TheJKFever/flow
0891647c93062c25665323c259a8083374ac1348
[ "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 open Utils_js open Sys_utils type result = | Parse_ok of { ast: (Loc.t, Loc.t) Flow_ast.Program.t; ...
37.721074
103
0.632689
8a3189d6f24fad27e3dc6d3fdea620ff317d20c6
7,423
ml
OCaml
taint/taintResult.ml
ishaanthakur/pyre-check
b0f12f8a3e6a817a81d87feae301c96d57d167b9
[ "MIT" ]
null
null
null
taint/taintResult.ml
ishaanthakur/pyre-check
b0f12f8a3e6a817a81d87feae301c96d57d167b9
[ "MIT" ]
null
null
null
taint/taintResult.ml
ishaanthakur/pyre-check
b0f12f8a3e6a817a81d87feae301c96d57d167b9
[ "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 Domains open Pyre let json_to_string json = Yojson.Safe.to_string json |> Yojson.Safe.prettify |> String.split ~on:'\n'...
29.456349
98
0.704567
8a24a949bfd7d390e444845fca39dde3a8a1c01a
225
mli
OCaml
libraries/cloudwatch/lib/deleteInsightRules.mli
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
null
null
null
libraries/cloudwatch/lib/deleteInsightRules.mli
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
1
2021-06-22T14:33:23.000Z
2021-06-22T14:33:23.000Z
libraries/cloudwatch/lib/deleteInsightRules.mli
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
null
null
null
open Types type input = DeleteInsightRulesInput.t type output = DeleteInsightRulesOutput.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
32.142857
74
0.755556
8a69cec0cadc194aa2d829d8059bf00920e96536
3,252
mli
OCaml
src/analysis/destruct.mli
keigoi/merlin
bb67b84c3df203ee136a3d9bb3400367c7d6998a
[ "MIT" ]
null
null
null
src/analysis/destruct.mli
keigoi/merlin
bb67b84c3df203ee136a3d9bb3400367c7d6998a
[ "MIT" ]
null
null
null
src/analysis/destruct.mli
keigoi/merlin
bb67b84c3df203ee136a3d9bb3400367c7d6998a
[ "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...
39.658537
80
0.675584
afd58b798bb710ee60f24c53850a84647f7e5d95
6,571
ml
OCaml
hphp/hack/src/hhbc/emit_adata.ml
efiks/hhvm
bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/hhbc/emit_adata.ml
efiks/hhvm
bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/hhbc/emit_adata.ml
efiks/hhvm
bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822
[ "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 module Acc = Mutable_accumulator module SU = Hhbc_string_utils module TV = Typed_value module TVMap...
31.591346
79
0.677218
8a89fe3b6fe21ef409845f585c7626b67a4e5b94
778
ml
OCaml
src/services/inference/__tests__/dep_graph_test_utils.ml
fizker/flow
e1d0038042c2cba942ece36f96a0e1bd7fb138bd
[ "MIT" ]
1
2021-09-08T08:06:58.000Z
2021-09-08T08:06:58.000Z
src/services/inference/__tests__/dep_graph_test_utils.ml
fizker/flow
e1d0038042c2cba942ece36f96a0e1bd7fb138bd
[ "MIT" ]
null
null
null
src/services/inference/__tests__/dep_graph_test_utils.ml
fizker/flow
e1d0038042c2cba942ece36f96a0e1bd7fb138bd
[ "MIT" ]
null
null
null
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open Utils_js let make_fake_file_key filename = File_key.SourceFile ("/tmp/fake/path/" ^ filename ^ ".js") let make_filename_set ...
32.416667
97
0.739075
8a1221f63a5bb7d4fc93f2471e6e7bf82e96b40e
102
ml
OCaml
test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/tool-toplevel/tracing.ml
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
2
2021-03-03T15:31:36.000Z
2021-03-05T16:01:39.000Z
test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/tool-toplevel/tracing.ml
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
2
2021-03-03T16:08:23.000Z
2021-03-03T19:31:03.000Z
test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/tool-toplevel/tracing.ml
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
null
null
null
(* TEST * toplevel *) List.fold_left;; #trace List.fold_left;; 0;; List.fold_left (+) 0 [1;2;3];;
11.333333
30
0.598039
8a68f2d1bf97e505eca85b3bcadf19efad6af829
315
ml
OCaml
99-problems/ocaml/10.ml
Luc-Saccoccio/coding-contests
64a6929b9c053024f1a63b7a442014bfe01ed5a3
[ "WTFPL" ]
1
2021-08-01T09:11:10.000Z
2021-08-01T09:11:10.000Z
99-problems/ocaml/10.ml
Luc-Saccoccio/coding-contests
64a6929b9c053024f1a63b7a442014bfe01ed5a3
[ "WTFPL" ]
null
null
null
99-problems/ocaml/10.ml
Luc-Saccoccio/coding-contests
64a6929b9c053024f1a63b7a442014bfe01ed5a3
[ "WTFPL" ]
null
null
null
let encode = function [] -> [] | (x::xs) -> let rec go n m = function [] -> [(n, m)] | (y::ys) -> if y = m then go (n+1) m ys else (n, m)::go 1 y ys in go 1 x xs;;
31.5
49
0.247619
8a47e0d5fae62c3ccf337c49c1621b6de78b7c01
169
ml
OCaml
bench/simples/odd.ml
lsylvestre/dsml
0f55c8acdc2b959d866610e51bc45db306898231
[ "CECILL-B" ]
null
null
null
bench/simples/odd.ml
lsylvestre/dsml
0f55c8acdc2b959d866610e51bc45db306898231
[ "CECILL-B" ]
null
null
null
bench/simples/odd.ml
lsylvestre/dsml
0f55c8acdc2b959d866610e51bc45db306898231
[ "CECILL-B" ]
null
null
null
circuit s(n) = let rec odd(n) = if n = 0 then false else even(n-1) and even(n) = if n = 0 then true else odd(n-1) in if odd(42) then 2 else 3 ;;;;
15.363636
39
0.532544
8a818b5bf99285873b861a278ef621949b9d0439
303
mll
OCaml
src/lexer.mll
malkiewiczm/polynomial_simplifier
c9f5883c96b0ccf8daa9cfdd8197501efb3dac70
[ "Apache-2.0" ]
null
null
null
src/lexer.mll
malkiewiczm/polynomial_simplifier
c9f5883c96b0ccf8daa9cfdd8197501efb3dac70
[ "Apache-2.0" ]
null
null
null
src/lexer.mll
malkiewiczm/polynomial_simplifier
c9f5883c96b0ccf8daa9cfdd8197501efb3dac70
[ "Apache-2.0" ]
null
null
null
{ open Parser exception Eof } rule token = parse | [' ' '\t'] { token lexbuf } | ['\n'] { EOL } | ['0'-'9']+ as lxm { NUM (int_of_string lxm) } | '+' { PLUS } | '-' { MINUS } | '*' { TIMES } | '(' { LPAR } | ')' { RPAR } | '^' { POW } | ['a'-'z'] as lxm { VAR (lxm) } | eof { raise Eof }
17.823529
48
0.419142
afae3ece63acf7213e4ddea21f243bb849b0bfb0
2,012
ml
OCaml
src/lib/coda_base/fee_transfer.ml
idkjs/coda
bbcd5169b8b09b312c7a62d40f6a17793a6b8611
[ "Apache-2.0" ]
null
null
null
src/lib/coda_base/fee_transfer.ml
idkjs/coda
bbcd5169b8b09b312c7a62d40f6a17793a6b8611
[ "Apache-2.0" ]
null
null
null
src/lib/coda_base/fee_transfer.ml
idkjs/coda
bbcd5169b8b09b312c7a62d40f6a17793a6b8611
[ "Apache-2.0" ]
null
null
null
open Core open Import module Single = struct [%%versioned module Stable = struct module V1 = struct type t = Public_key.Compressed.Stable.V1.t * Currency.Fee.Stable.V1.t [@@deriving sexp, compare, eq, yojson, hash] let to_latest = Fn.id let description = "Fee transfer Single" l...
27.561644
78
0.68837
8a582f389423f127560f2a96b5f4035027a684a9
681
mly
OCaml
src/Matcher_parser.mly
onivim/editor-input
c494950736b15a83330291c99e11c0c77b4acc66
[ "MIT" ]
3
2020-03-19T16:07:04.000Z
2020-03-19T18:43:41.000Z
src/editor-input/Matcher_parser.mly
RMPR/oni2
60b57f1773ebbd730d4ea5a1876d27d0cb644482
[ "MIT" ]
1
2020-04-24T14:14:53.000Z
2020-04-24T14:15:18.000Z
src/editor-input/Matcher_parser.mly
RMPR/oni2
60b57f1773ebbd730d4ea5a1876d27d0cb644482
[ "MIT" ]
null
null
null
%token <Matcher_internal.modifier> MODIFIER %token <Key.t> BINDING %token ALLKEYSRELEASED %token LT GT %token EXCLAMATION %token EOF %start <Matcher_internal.t> main %% main: | ALLKEYSRELEASED { Matcher_internal.AllKeysReleased } | phrase = list(expr) EOF { Matcher_internal.Sequence(phrase) } expr: | EXCLAMATION; L...
24.321429
98
0.735683
d2ffd5394b4065dd2fcd165b8d8c5b5f6c450796
1,112
ml
OCaml
src/owl/stats/owl_stats_extend.ml
pvdhove/owl
072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31
[ "MIT" ]
null
null
null
src/owl/stats/owl_stats_extend.ml
pvdhove/owl
072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31
[ "MIT" ]
null
null
null
src/owl/stats/owl_stats_extend.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> *) external shuffle : 'a array -> unit = "owl_stats_stub_shuffle" external choose : src:'a array -> dst:'a array -> unit = "owl_stats_stub_choose" external sample : src:'a array -> dst:'a array ->...
34.75
91
0.716727
af637b13647e032b223619c84f8b44e1c4f9fd1c
2,633
ml
OCaml
src/core/builtIn.ml
matijapretnar/aeff
3af50c51e452df0a1c40d53e7749fd7f085eff19
[ "MIT" ]
9
2020-03-04T15:05:04.000Z
2022-01-26T10:22:53.000Z
src/core/builtIn.ml
matijapretnar/aeff
3af50c51e452df0a1c40d53e7749fd7f085eff19
[ "MIT" ]
1
2020-12-02T10:14:16.000Z
2020-12-02T12:42:34.000Z
src/core/builtIn.ml
matijapretnar/aeff
3af50c51e452df0a1c40d53e7749fd7f085eff19
[ "MIT" ]
2
2020-08-17T17:40:15.000Z
2021-08-22T10:55:43.000Z
open Utils let binary_function f = function | Ast.Tuple [ expr1; expr2 ] -> f expr1 expr2 | expr -> Error.runtime "Pair expected but got %t" (Ast.print_expression expr) let get_int = function | Ast.Const (Const.Integer n) -> n | expr -> Error.runtime "Integer expected but got %t" (Ast.print_expression e...
29.58427
81
0.577668
afaa83b0916d27b0d8e143c28736f5e97d77a804
50,532
ml
OCaml
src/parser_utils/flow_ast_differ.ml
mxstbr/flow
a0ed2e28278e66add6f963d9c4f2328428c04480
[ "MIT" ]
null
null
null
src/parser_utils/flow_ast_differ.ml
mxstbr/flow
a0ed2e28278e66add6f963d9c4f2328428c04480
[ "MIT" ]
null
null
null
src/parser_utils/flow_ast_differ.ml
mxstbr/flow
a0ed2e28278e66add6f963d9c4f2328428c04480
[ "MIT" ]
null
null
null
(** * Copyright (c) 2014, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) module Ast = Flow_ast open Utils_js type 'a change' = | Replace of 'a * 'a | Insert of (* separator. Defaults to \n *) string option * 'a l...
45.401617
167
0.657405
f35e874bf8cb9784bc5321b9c4c1c423838135d4
1,200
mli
OCaml
src/html/url.mli
bryphe/odoc
3e1aa0450a53585a93a3336fb5d53e03f845c736
[ "ISC" ]
null
null
null
src/html/url.mli
bryphe/odoc
3e1aa0450a53585a93a3336fb5d53e03f845c736
[ "ISC" ]
null
null
null
src/html/url.mli
bryphe/odoc
3e1aa0450a53585a93a3336fb5d53e03f845c736
[ "ISC" ]
null
null
null
open Result open Model.Paths type t = { page : string list; (** [Foo.Bar.lol] becomes [["lol"; "Bar"; "Foo"]]. *) anchor : string; (** Anchor in {!page} where the element is attached *) kind : string; (** What kind of element the path points to. e.g. "module", "module-type", "exception", ... *) } ...
19.047619
56
0.641667
8a9211d67dd3ffb5e78546a5047ac041c5fb439f
335
ml
OCaml
src/lib/pickles/evaluation_lengths.ml
olton/mina
35a0be706602a3187a21ba757c89d197ff914d7e
[ "Apache-2.0" ]
1
2022-02-26T19:05:47.000Z
2022-02-26T19:05:47.000Z
src/lib/pickles/evaluation_lengths.ml
olton/mina
35a0be706602a3187a21ba757c89d197ff914d7e
[ "Apache-2.0" ]
null
null
null
src/lib/pickles/evaluation_lengths.ml
olton/mina
35a0be706602a3187a21ba757c89d197ff914d7e
[ "Apache-2.0" ]
null
null
null
open Core open Pickles_types open Import open Dlog_plonk_types let create (type a) ~(of_int : int -> a) : a Dlog_plonk_types.Evals.t = let one = of_int 1 in { w = Vector.init Columns.n ~f:(fun _ -> one) ; z = one ; s = Vector.init Permuts_minus_1.n ~f:(fun _ -> one) ; generic_selector = one ; poseidon_sele...
23.928571
71
0.662687
8a265c30c29aa1bf90cf5dc1f006c2b8fe33ed62
2,363
ml
OCaml
native/test/AlcoJest.ml
kate-grant/tablecloth
126e8f9d3e10bad823ac7e84740ef46ea89941d4
[ "MIT" ]
null
null
null
native/test/AlcoJest.ml
kate-grant/tablecloth
126e8f9d3e10bad823ac7e84740ef46ea89941d4
[ "MIT" ]
null
null
null
native/test/AlcoJest.ml
kate-grant/tablecloth
126e8f9d3e10bad823ac7e84740ef46ea89941d4
[ "MIT" ]
null
null
null
module AT = Alcotest module Coordinate = struct type t = int * int let compare (x1, y1) (x2, y2) = if x1 = x2 then if y1 = y2 then 0 else if y1 > y2 then 1 else -1 else if x1 > x2 then 1 else -1 end module Eq = struct include AT let coordinate = let eq (a : Coordinate.t) (b : Coordin...
22.941748
80
0.609395
8a6f4a6056c5d1455365929f7448e7767e64fca0
34,318
ml
OCaml
src/lib_protocol_environment/environment_V1.ml
Decentralized-Pictures/T4L3NT
3a9265949d50d2e925b5d6b3df21f283211df6a2
[ "MIT" ]
3
2021-12-16T20:28:56.000Z
2022-01-21T01:37:49.000Z
src/lib_protocol_environment/environment_V1.ml
Decentralized-Pictures/T4L3NT
3a9265949d50d2e925b5d6b3df21f283211df6a2
[ "MIT" ]
5
2022-01-20T21:30:24.000Z
2022-03-11T14:43:56.000Z
src/lib_protocol_environment/environment_V1.ml
Decentralized-Pictures/T4L3NT
3a9265949d50d2e925b5d6b3df21f283211df6a2
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *) ...
29.841739
100
0.583192
8a8d1d2d0dd711558d3561d04ab8f58fe443617f
9,874
ml
OCaml
src/hostnet_test/test_dns.ml
sakai135/vpnkit
16ed722e6dc24307e99aee931ffd0eb80a9487d0
[ "Apache-2.0" ]
671
2017-04-18T16:03:25.000Z
2022-03-23T08:52:21.000Z
src/hostnet_test/test_dns.ml
sakai135/vpnkit
16ed722e6dc24307e99aee931ffd0eb80a9487d0
[ "Apache-2.0" ]
195
2017-04-20T14:06:21.000Z
2022-03-24T16:54:32.000Z
src/hostnet_test/test_dns.ml
sakai135/vpnkit
16ed722e6dc24307e99aee931ffd0eb80a9487d0
[ "Apache-2.0" ]
126
2017-04-19T17:33:16.000Z
2022-03-15T04:50:29.000Z
open Lwt.Infix open Slirp_stack let src = let src = Logs.Src.create "dns" ~doc:"Test the DNS forwarder" in Logs.Src.set_level src (Some Logs.Debug); src module Log = (val Logs.src_log src : Logs.LOG) let pp_ips = Fmt.(list ~sep:(unit ", ") Ipaddr.pp) let pp_ip4s = Fmt.(list ~sep:(unit ", ") Ipaddr.V4.pp) let ...
35.905455
115
0.601175
8a5885ddf65c470ff49f2a4fab23b2006344fdf1
4,073
ml
OCaml
day08/solver.ml
alopezz/advent_of_code-2021
90f0d7e3290a5c8ba5d18b2a5d9240ea6b1682bd
[ "MIT" ]
null
null
null
day08/solver.ml
alopezz/advent_of_code-2021
90f0d7e3290a5c8ba5d18b2a5d9240ea6b1682bd
[ "MIT" ]
null
null
null
day08/solver.ml
alopezz/advent_of_code-2021
90f0d7e3290a5c8ba5d18b2a5d9240ea6b1682bd
[ "MIT" ]
null
null
null
(* --- Day 8: Seven Segment Search --- *) type segment = A | B | C | D | E | F | G type digit = segment list type entry = { pattern: digit list; output: digit list; } let all_segments = [A; B; C; D; E; F; G] let digit_of_string str = String.to_seq str |> Seq.map (function | 'a' -> A ...
26.277419
92
0.625829
af37010ad157fcf5dcce5f47f6e5afe1c9b96ecc
2,727
ml
OCaml
stone/stones.ml
Cow-berry/Ocaml-Programs
b0b1eca894c66cf6e6d4226e17ce86963e893900
[ "MIT" ]
2
2017-01-15T16:03:22.000Z
2017-01-22T09:36:47.000Z
stone/stones.ml
Cow-berry/Ocaml-Programs
b0b1eca894c66cf6e6d4226e17ce86963e893900
[ "MIT" ]
null
null
null
stone/stones.ml
Cow-berry/Ocaml-Programs
b0b1eca894c66cf6e6d4226e17ce86963e893900
[ "MIT" ]
null
null
null
let n1 = read_int();; let n2 = read_int();; let stone_draw n1 n2 = print_string "1) "; for i = 1 to n1 do print_string "O " done; print_string "\n2) "; for i = 1 to n2 do print_string "O " done; print_string "\n";; let rec step n k n1 n2 = if k = 1 then if n <= n1 then st...
31.709302
148
0.525119
8a682a32878508b4a5afa144bacb75ff00563d16
13,014
ml
OCaml
server/query.ml
Mohd4633/pyre-check
7aafc399e6887dfe9f5aeb1e09426460a9796025
[ "MIT" ]
null
null
null
server/query.ml
Mohd4633/pyre-check
7aafc399e6887dfe9f5aeb1e09426460a9796025
[ "MIT" ]
null
null
null
server/query.ml
Mohd4633/pyre-check
7aafc399e6887dfe9f5aeb1e09426460a9796025
[ "MIT" ]
null
null
null
(* Copyright (c) 2016-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open Core open Ast open Expression open Protocol open TypeQuery open Pyre exception InvalidQuery of string let help () = let help = funct...
44.875862
101
0.61042
8a72cd0839dbef52da810196156a0ca803c40373
206
ml
OCaml
ocaml-sources/testsuite/tests/regression/pr9443/pr9443.ml
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
2
2021-03-03T15:31:36.000Z
2021-03-05T16:01:39.000Z
ocaml-sources/testsuite/tests/regression/pr9443/pr9443.ml
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
2
2021-03-03T16:08:23.000Z
2021-03-03T19:31:03.000Z
ocaml-sources/testsuite/tests/regression/pr9443/pr9443.ml
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
null
null
null
(* TEST *) (* Test tail call optimisation with an elided mutable cell *) let rec loop n = if n = 0 then () else begin let last = ref 0 in last := 0; loop (n-1) end let () = loop 1_000_000
17.166667
61
0.592233
8a6551e45f4203d1b9abbbcda9bfb33bbd15da85
24,652
ml
OCaml
src.ml
asdqwe12011/MiniML
8ba4559326ca593b277a8616ec20581c7bb149fa
[ "MIT" ]
null
null
null
src.ml
asdqwe12011/MiniML
8ba4559326ca593b277a8616ec20581c7bb149fa
[ "MIT" ]
null
null
null
src.ml
asdqwe12011/MiniML
8ba4559326ca593b277a8616ec20581c7bb149fa
[ "MIT" ]
null
null
null
(* Q0 : Get familiar with the external syntax of MiniML *) let parse_tests : (string * (string, exp) either) list = [ (* Provide your tests for the parser *) ("1;", Right (Int 1)); ("3*(2+4*4);", Right ( Primop (Times, [Int(3); Primop (Plus, [Int(2); Primop ...
32.015584
99
0.431162
8a4482813eb0eeb4d56e7eaa50565e08c9bd48b1
626
mli
OCaml
src/typing/type_visitor.mli
gaearon/flow
1ffb5bb13b8207c0de6d5b90627f7d2e0a8f52e7
[ "BSD-3-Clause" ]
10
2016-07-28T20:02:37.000Z
2021-01-28T05:48:11.000Z
src/typing/type_visitor.mli
jeffmo/flow
315903b8a276aad1eb954c0aa5f175a286ce0324
[ "BSD-3-Clause" ]
null
null
null
src/typing/type_visitor.mli
jeffmo/flow
315903b8a276aad1eb954c0aa5f175a286ce0324
[ "BSD-3-Clause" ]
5
2017-02-06T11:42:23.000Z
2021-01-11T12:10:08.000Z
(** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the "flow" directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * *) class...
34.777778
80
0.662939
af6d4640b54a979ceacdc901aa4fcedd29e59b1f
554
ml
OCaml
src/mo_types/async_cap.ml
pontagon333/motoko
f8f74ef6747ba89c44f0f0b3a18b5199cf78d7d2
[ "Apache-2.0" ]
1
2021-11-19T18:45:37.000Z
2021-11-19T18:45:37.000Z
src/mo_types/async_cap.ml
pontagon333/motoko
f8f74ef6747ba89c44f0f0b3a18b5199cf78d7d2
[ "Apache-2.0" ]
1
2021-11-01T11:55:59.000Z
2021-11-01T11:55:59.000Z
src/mo_types/async_cap.ml
pontagon333/motoko
f8f74ef6747ba89c44f0f0b3a18b5199cf78d7d2
[ "Apache-2.0" ]
null
null
null
(* Async capabilities *) module T = Type type async_cap = | QueryCap of T.con (* can (query) async (i.e. in a shared query func) *) | ErrorCap (* can try, catch (i.e. in the async body of shared query func) *) | AsyncCap of T.con (* can async, send (i.e. in a func of async type or shared func) *) ...
39.571429
92
0.619134
af72dc5b7a328a366b5202f28bca202eae2a665a
1,271
ml
OCaml
examples/paper/fib.ml
keigoi/jrklib
f3631f6bf3dbc32578a9ed430398cca908cc7fd7
[ "MIT" ]
14
2021-11-05T10:55:55.000Z
2022-03-06T07:40:04.000Z
examples/paper/fib.ml
keigoi/kmclib
f3631f6bf3dbc32578a9ed430398cca908cc7fd7
[ "MIT" ]
null
null
null
examples/paper/fib.ml
keigoi/kmclib
f3631f6bf3dbc32578a9ed430398cca908cc7fd7
[ "MIT" ]
null
null
null
open Kmclib open Printf let KMC (uch,mch,wch) = [%kmc.gen (u,m,w)] let rec fib n = (* omitted expensive function *) if n = 0 then 0 else if n = 1 then 1 else fib (n-2) + fib (n-1) let user () = let uch = send uch#m#compute 42 in let rec loop uch : unit = match receive uch#m with | `wip(x, uch) -> ...
27.630435
112
0.560976
afe554555c1790b8192578e6a7bf31866698b299
97
mli
OCaml
lib/quotes/quotes.mli
xhtmlboi/booba
3808faee3b99bff2d93f0f80ed266a4f80d25680
[ "MIT" ]
3
2022-01-11T12:33:07.000Z
2022-03-28T14:49:24.000Z
lib/quotes/quotes.mli
xhtmlboi/booba
3808faee3b99bff2d93f0f80ed266a4f80d25680
[ "MIT" ]
null
null
null
lib/quotes/quotes.mli
xhtmlboi/booba
3808faee3b99bff2d93f0f80ed266a4f80d25680
[ "MIT" ]
1
2022-01-17T14:47:45.000Z
2022-01-17T14:47:45.000Z
(** Returns a random punchline... BUT... contextualized from B2oba. *) val pick : unit -> string
32.333333
70
0.680412
afa08e868e9f30f761277f86fc354b0de07bc4db
1,015
ml
OCaml
libraries/sqs/lib/changeMessageVisibility.ml
pm-mck/ocaml-aws
7912f94e73941d07d350d7f06c625853298c962c
[ "BSD-3-Clause" ]
null
null
null
libraries/sqs/lib/changeMessageVisibility.ml
pm-mck/ocaml-aws
7912f94e73941d07d350d7f06c625853298c962c
[ "BSD-3-Clause" ]
null
null
null
libraries/sqs/lib/changeMessageVisibility.ml
pm-mck/ocaml-aws
7912f94e73941d07d350d7f06c625853298c962c
[ "BSD-3-Clause" ]
null
null
null
open Types_internal open Aws type input = ChangeMessageVisibilityRequest.t type output = unit type error = Errors_internal.t let service = "sqs" let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region))) (List.app...
30.757576
81
0.640394
afef47b3f6c0ea66117ca51ef2d60a6f36606f46
18,603
ml
OCaml
data/derived/comb/progs/unify/prog3120.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/prog3120.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog3120.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*) (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*) (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*) (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*) (*XXX...
32.636842
208
0.66027
8a543b4072c58a7065fc9f60b6d82902201bd150
664
ml
OCaml
lib/watched_queue.ml
mk270/tcp-server
f5e5ead0da22b9359fa512117f6d87fa5f802eba
[ "Apache-2.0" ]
3
2015-08-19T04:47:23.000Z
2019-05-14T11:54:42.000Z
lib/watched_queue.ml
mk270/tcp-server
f5e5ead0da22b9359fa512117f6d87fa5f802eba
[ "Apache-2.0" ]
null
null
null
lib/watched_queue.ml
mk270/tcp-server
f5e5ead0da22b9359fa512117f6d87fa5f802eba
[ "Apache-2.0" ]
null
null
null
(* Tcp_server, a TCP server generator for OCaml Lwt Copyright (C) 2013 Martin Keegan This programme is free software; you may redistribute and/or modify it under the terms of the Apache License v2.0 *) open Lwt type t = { condition : unit Lwt_condition.t; queue : string Queue.t } let create () = { c...
18.971429
69
0.673193
8a7892def7fd30cb1659214469728e2fbbc0e86b
291,601
ml
OCaml
src/ocaml-output/FStar_TypeChecker_Env.ml
zenprotocol/FStar
d8b4db782b08ecc677eda31ee1bad1933169c80d
[ "Apache-2.0" ]
7
2017-11-13T18:30:47.000Z
2020-10-03T16:09:21.000Z
src/ocaml-output/FStar_TypeChecker_Env.ml
ezrafukss/FStar
d8b4db782b08ecc677eda31ee1bad1933169c80d
[ "Apache-2.0" ]
1
2018-11-06T18:16:15.000Z
2018-11-06T18:16:15.000Z
src/ocaml-output/FStar_TypeChecker_Env.ml
ezrafukss/FStar
d8b4db782b08ecc677eda31ee1bad1933169c80d
[ "Apache-2.0" ]
5
2017-12-18T10:45:08.000Z
2021-11-22T12:44:53.000Z
open Prims type step = | Beta | Iota | Zeta | Exclude of step | Weak | HNF | Primops | Eager_unfolding | Inlining | DoNotUnfoldPureLets | UnfoldUntil of FStar_Syntax_Syntax.delta_depth | UnfoldOnly of FStar_Ident.lid Prims.list | UnfoldFully of FStar_Ident.lid Prims.list | Unfol...
44.526035
125
0.614868
8a2ac36e660ebc8f48bc730f94a4dbb3a6abaf9b
1,944
ml
OCaml
infer/src/backend/Tasks.ml
sjcjoosten/infer
4b69087ad50ad50c43e536351777999e8c256fd4
[ "MIT" ]
null
null
null
infer/src/backend/Tasks.ml
sjcjoosten/infer
4b69087ad50ad50c43e536351777999e8c256fd4
[ "MIT" ]
null
null
null
infer/src/backend/Tasks.ml
sjcjoosten/infer
4b69087ad50ad50c43e536351777999e8c256fd4
[ "MIT" ]
null
null
null
(* * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open! IStd module L = Logging type 'a doer = 'a -> unit let run_sequentially ~(f: 'a doer) (tasks: 'a list) : unit = let task_bar = ...
30.375
108
0.68107
8a8336c301dd105616a316a24f22d4e27e900c66
2,558
ml
OCaml
src/dune_rules/only_packages.ml
esope/dune
a79a071739b9537da8f9dc236a964793979da849
[ "MIT" ]
245
2016-12-02T14:13:32.000Z
2018-01-14T20:00:40.000Z
src/dune_rules/only_packages.ml
esope/dune
a79a071739b9537da8f9dc236a964793979da849
[ "MIT" ]
380
2017-01-28T18:46:52.000Z
2018-01-17T13:34:51.000Z
src/dune_rules/only_packages.ml
staronj/dune
cf0ceccef1e177625b9361323bd7a3401a988d45
[ "MIT" ]
59
2016-12-02T13:58:19.000Z
2018-01-06T18:23:02.000Z
open Import open Memo.O module Clflags = struct type t = | No_restriction | Restrict of { names : Package.Name.Set.t ; command_line_option : string } let to_dyn = function | No_restriction -> Dyn.Variant ("No_restriction", []) | Restrict { names; command_line_option } -> ...
32.379747
80
0.551212
8a944a1eec7ad581258cc386fc74d2378390a585
2,416
mli
OCaml
infer/src/pulse/PulseAbstractValue.mli
aalen9/lfa
355f5f67281d01544dd1e0af4b7177369677edba
[ "MIT" ]
2
2021-12-17T13:38:34.000Z
2021-12-17T14:06:53.000Z
infer/src/pulse/PulseAbstractValue.mli
aalen9/lfa
355f5f67281d01544dd1e0af4b7177369677edba
[ "MIT" ]
7
2017-12-03T16:09:45.000Z
2018-01-08T15:15:34.000Z
infer/src/pulse/PulseAbstractValue.mli
aalen9/lfa
355f5f67281d01544dd1e0af4b7177369677edba
[ "MIT" ]
2
2020-06-23T00:43:10.000Z
2022-03-24T06:24:50.000Z
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open! IStd module F = Format (** An abstract value (or "symbolic variable"), eg an address in memory. *) type t = private int [@@de...
33.555556
103
0.714818
f359009f52eb8a796d719fe657e2f7f7b488ad9a
759
ml
OCaml
data/fa15_min/1496.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15/1496.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15_min/1496.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
let removeDuplicates l = let rec helper (seen,rest) = match rest with | [] -> seen | h::t -> let seen' = if List.mem seen h then seen else seen @ h in let rest' = t in helper (seen', rest') in List.rev (helper ([], l));; (* fix let removeDuplicates l = let rec helper (seen,rest) = ...
15.18
67
0.521739
8a8b155a21ce3cae53495aac12b28a2bc684b3cd
916
mli
OCaml
src/OLinq_vec.mli
c-cube/olinq
58e495f419e396b63d7391571cd0c40749c6c821
[ "BSD-2-Clause" ]
16
2016-01-28T15:09:30.000Z
2020-10-07T22:28:54.000Z
src/OLinq_vec.mli
c-cube/olinq
58e495f419e396b63d7391571cd0c40749c6c821
[ "BSD-2-Clause" ]
1
2016-10-06T09:42:00.000Z
2016-10-06T09:42:00.000Z
src/OLinq_vec.mli
c-cube/olinq
58e495f419e396b63d7391571cd0c40749c6c821
[ "BSD-2-Clause" ]
null
null
null
(* This file is free software, part of OLinq. See file "license" for more details. *) (** {1 Resizable array} *) type 'a iter = ('a -> unit) -> unit type 'a t = private { mutable size: int; mutable vec: 'a array; } val is_empty : _ t -> bool val length : _ t -> int val return : 'a -> 'a t val create : unit ->...
24.756757
85
0.527293
8a2a5984457de1981ef395b00149109397a18338
531
ml
OCaml
src/base/types/owl_types_ndarray_numdiff.ml
Drup/owl
cc2520b2f057d6b7f64d175e97ae810b63d3d14b
[ "MIT" ]
null
null
null
src/base/types/owl_types_ndarray_numdiff.ml
Drup/owl
cc2520b2f057d6b7f64d175e97ae810b63d3d14b
[ "MIT" ]
null
null
null
src/base/types/owl_types_ndarray_numdiff.ml
Drup/owl
cc2520b2f057d6b7f64d175e97ae810b63d3d14b
[ "MIT" ]
null
null
null
(* * OWL - an OCaml numerical library for scientific computing * Copyright (c) 2016-2018 Liang Wang <liang.wang@cl.cam.ac.uk> *) module type Sig = sig include Owl_types_ndarray_basic.Sig val mapi : (int -> elt -> elt) -> arr -> arr (* FIXME *) val ( + ) : arr -> arr -> arr val ( - ) : arr -> arr -> ...
16.59375
63
0.504708
af314232ceb2cf441b7437d21b8c2fa4917b8e98
81
ml
OCaml
data/derived/comb/progs/unify/prog3589.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/prog3589.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog3589.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let decr x = x - 1;; let incr x = x + 1;; let foo = List.map [incr; decr] 9;;
11.571429
35
0.518519
8a7fb4aefaba7c65809c2a974d39339bd032892f
1,741
mli
OCaml
infer/src/pulse/PulseAttribute.mli
babidi-re/infer
8d1a701a4e05da4486f73c4bfeaace4e8ee9b248
[ "MIT" ]
null
null
null
infer/src/pulse/PulseAttribute.mli
babidi-re/infer
8d1a701a4e05da4486f73c4bfeaace4e8ee9b248
[ "MIT" ]
6
2021-06-28T20:43:36.000Z
2022-02-27T11:27:43.000Z
infer/src/pulse/PulseAttribute.mli
babidi-re/infer
8d1a701a4e05da4486f73c4bfeaace4e8ee9b248
[ "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 Invalidation = PulseInvalidation module Trace = PulseTrace module ValueHistory = PulseValueHisto...
27.634921
94
0.713957
afdd24b06641dc06edb785ac1468f8d1b1690005
2,489
ml
OCaml
hphp/hack/src/procs/multiWorker.ml
sepatus/sepatus
48ae001f2082a5335d64b2567941a8271153de05
[ "PHP-3.01", "Zend-2.0" ]
2
2019-01-31T09:33:15.000Z
2019-01-31T09:35:08.000Z
hphp/hack/src/procs/multiWorker.ml
sepatus/sepatus
48ae001f2082a5335d64b2567941a8271153de05
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/procs/multiWorker.ml
sepatus/sepatus
48ae001f2082a5335d64b2567941a8271153de05
[ "PHP-3.01", "Zend-2.0" ]
2
2021-02-02T14:51:26.000Z
2021-02-02T14:52:05.000Z
(** * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_core (* Hide the worker type from our users *) type worker = WorkerController.worker type 'a interrupt_co...
27.351648
92
0.665327
af99fc0dcca949796135958a06d982fec2ec2784
24,811
ml
OCaml
project_v05.ml
AmadouSY/LSystem-Generator
f0c534c3017eba47a0c3680de43712b9eb4fd8f8
[ "MIT" ]
null
null
null
project_v05.ml
AmadouSY/LSystem-Generator
f0c534c3017eba47a0c3680de43712b9eb4fd8f8
[ "MIT" ]
null
null
null
project_v05.ml
AmadouSY/LSystem-Generator
f0c534c3017eba47a0c3680de43712b9eb4fd8f8
[ "MIT" ]
null
null
null
(*#directory "+camlimages";; #use "topfind";; #require "camlimages.all_formats";; #require "camlimages.graphics";; #load "graphics.cma" #load "unix.cma";;*) (* ocamlfind ocamlc -I ./lextest/ parser.cmo lexer.cmo -package camlimages.all_formats -package graphics -package camlimages.graphics unix.cma -linkpkg project_v0...
40.740558
175
0.628431
d2eee4dfc4b80df4bf0f3c0a1eba3c255ab8ce45
2,278
ml
OCaml
test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/tools/profiling.ml
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
2
2021-03-03T15:31:36.000Z
2021-03-05T16:01:39.000Z
test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/tools/profiling.ml
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
2
2021-03-03T16:08:23.000Z
2021-03-03T19:31:03.000Z
test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/tools/profiling.ml
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
null
null
null
(**************************************************************************) (* *) (* OCaml *) (* *) (* Dam...
39.964912
78
0.45259
8a5f49927ceee3b324ec893f8a397c25139cf889
130
ml
OCaml
hollight/test/amc12b-2021-p1.ml
openai/miniF2F
8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7
[ "MIT" ]
102
2021-05-04T09:50:13.000Z
2022-03-27T12:00:05.000Z
hollight/test/amc12b-2021-p1.ml
openai/miniF2F
8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7
[ "MIT" ]
49
2021-05-06T09:36:49.000Z
2022-03-31T18:58:23.000Z
hollight/test/amc12b-2021-p1.ml
openai/miniF2F
8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7
[ "MIT" ]
17
2021-05-06T09:04:02.000Z
2022-03-29T11:25:46.000Z
let amc12b-2021-p1 = `(FINITE {x:int | real_of_int (abs x) < &3 * pi}) ==> (CARD {x:int | real_of_int (abs x) < &3 * pi} = 19)`;;
65
129
0.546154
8a688ec159e6553223e4bbca6884d1693e504f6a
99
ml
OCaml
src/bs_redux.ml
derui/bs-redux
427efe8891a2dc67a93295a746a715d937b727d8
[ "MIT" ]
null
null
null
src/bs_redux.ml
derui/bs-redux
427efe8891a2dc67a93295a746a715d937b727d8
[ "MIT" ]
null
null
null
src/bs_redux.ml
derui/bs-redux
427efe8891a2dc67a93295a746a715d937b727d8
[ "MIT" ]
null
null
null
module Reducer = Bs_redux_reducer module Lift = Bs_redux_lift module Composer = Bs_redux_composer
19.8
35
0.838384
af6b314ed68ca0fb66e3aca95e032fdb71a259b4
1,889
ml
OCaml
penrose/penrose_anime.ml
reDmiE/L3_prog1_projet0
c174ff066cfbf72ffdd11479aad7d55fd3d0405c
[ "Unlicense" ]
null
null
null
penrose/penrose_anime.ml
reDmiE/L3_prog1_projet0
c174ff066cfbf72ffdd11479aad7d55fd3d0405c
[ "Unlicense" ]
null
null
null
penrose/penrose_anime.ml
reDmiE/L3_prog1_projet0
c174ff066cfbf72ffdd11479aad7d55fd3d0405c
[ "Unlicense" ]
null
null
null
#load "api_triangle.cma";; open Api_triangle;; #use "trgraphics.ml";; (* DEFINE const *) let screen_width = 800;; let screen_height = 600;; let fill_screen = false;; let maxgen = 9;; (* DEFINE NUMERICAL CONST *) let phi = (1.0 +. sqrt(5.0))/.2.0 (* DEFINE functions *) let rec divide atriangle= if not(is_acu...
34.345455
115
0.545262
af55c3b8f8fb8d7b5cbb78b4858d849e50e17ffa
2,172
ml
OCaml
data/derived/comb/progs/unify/prog2407.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/prog2407.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog2407.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let rec clone x n = let rec helper a x n = if n <= 0 then a else (let a' = x :: a in helper a' x (n - 1)) in helper [] x n;; let padZero l1 l2 = let length1 = List.length l1 in let length2 = List.length l2 in if length1 > length2 then (l1, (List.append (clone 0 (length1 - length2)) l2)) else if ...
32.41791
75
0.510589
afbc67f5b083760e3694fa6bb108801c7b7061e7
369
mli
OCaml
src/passes/02-parsing/cameligo/Pretty.mli
DiningPhilosophersCo/ligo
31e66141c8a6fc8442769a1b851c73610288281d
[ "MIT" ]
2
2021-03-06T12:11:41.000Z
2021-11-21T13:54:18.000Z
src/passes/02-parsing/cameligo/Pretty.mli
DiningPhilosophersCo/ligo
31e66141c8a6fc8442769a1b851c73610288281d
[ "MIT" ]
4
2021-11-10T15:04:00.000Z
2022-01-14T07:49:14.000Z
src/passes/02-parsing/cameligo/Pretty.mli
DiningPhilosophersCo/ligo
31e66141c8a6fc8442769a1b851c73610288281d
[ "MIT" ]
1
2022-03-30T09:12:37.000Z
2022-03-30T09:12:37.000Z
(* A pretty printer for CameLIGO *) module CST = Cst_cameligo.CST type cst = CST.t type expr = CST.expr type type_expr = CST.type_expr type pattern = CST.pattern val print : cst -> PPrint.document val print_expr : expr -> PPrint.document val print_type_expr : type_expr -> PPrint.document ...
26.357143
50
0.691057
8a5dd07540fae41a4355e8f1645e990cbe0a0d9a
48,115
ml
OCaml
herd/event.ml
jmadiot/herdtools7
b58a26946e2012a40ad280c3a11f2d251824a3ae
[ "CECILL-B" ]
null
null
null
herd/event.ml
jmadiot/herdtools7
b58a26946e2012a40ad280c3a11f2d251824a3ae
[ "CECILL-B" ]
null
null
null
herd/event.ml
jmadiot/herdtools7
b58a26946e2012a40ad280c3a11f2d251824a3ae
[ "CECILL-B" ]
null
null
null
(****************************************************************************) (* the diy toolsuite *) (* *) (* Jade Alglave, University College London, UK. *) (* L...
34.565374
112
0.646805
8a6c2084b53617821818fd3e34415a42ab24b270
12,909
ml
OCaml
src/ocaml/parsing/407/location.ml
brianhempel/merlin
14325f26fc7ffa4a3e8adaa70d405c9d5f31b2a6
[ "MIT" ]
1
2021-06-14T11:08:56.000Z
2021-06-14T11:08:56.000Z
src/ocaml/parsing/407/location.ml
brianhempel/merlin
14325f26fc7ffa4a3e8adaa70d405c9d5f31b2a6
[ "MIT" ]
null
null
null
src/ocaml/parsing/407/location.ml
brianhempel/merlin
14325f26fc7ffa4a3e8adaa70d405c9d5f31b2a6
[ "MIT" ]
1
2021-06-14T11:07:29.000Z
2021-06-14T11:07:29.000Z
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
30.662708
88
0.617321
8a7bea20092d93651fa160435775c2506c255834
4,824
ml
OCaml
duniverse/ocp-indent/src/nstream.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
duniverse/ocp-indent/src/nstream.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
duniverse/ocp-indent/src/nstream.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
(**************************************************************************) (* *) (* Copyright 2011 Jun Furuse *) (* Copyright 2012-2013 OCamlPro *) (* ...
34.956522
76
0.583541
8a2d94eaf8b54171350a169f43dcaf05cb3eeda3
2,028
mli
OCaml
infer/src/pulse/PulseArithmetic.mli
cho-m/infer
a47cf83831cc6f44df5f5af74cdc7d0f0daff862
[ "MIT" ]
14,499
2015-06-11T16:00:28.000Z
2022-03-31T23:43:54.000Z
infer/src/pulse/PulseArithmetic.mli
cho-m/infer
a47cf83831cc6f44df5f5af74cdc7d0f0daff862
[ "MIT" ]
1,529
2015-06-11T16:55:30.000Z
2022-03-27T15:59:46.000Z
infer/src/pulse/PulseArithmetic.mli
cho-m/infer
a47cf83831cc6f44df5f5af74cdc7d0f0daff862
[ "MIT" ]
2,225
2015-06-11T16:36:10.000Z
2022-03-31T05:16:59.000Z
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open! IStd open PulseBasicInterface module AbductiveDomain = PulseAbductiveDomain module AccessResult = PulseAccessResult (** Wrap...
28.971429
98
0.746548
afce91a139728376ec6a5017bf28092d7bd2720a
6,506
ml
OCaml
src/server/protocol/persistent_connection_prot.ml
mourner/flow
8bb9d4ef01786d18b9033f16fb0c6eec21f4b0eb
[ "MIT" ]
null
null
null
src/server/protocol/persistent_connection_prot.ml
mourner/flow
8bb9d4ef01786d18b9033f16fb0c6eec21f4b0eb
[ "MIT" ]
null
null
null
src/server/protocol/persistent_connection_prot.ml
mourner/flow
8bb9d4ef01786d18b9033f16fb0c6eec21f4b0eb
[ "MIT" ]
null
null
null
(** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) type client_id = int type error_kind = ExpectedError | UnexpectedError type error_info = error_kind * string * Utils.callstack (...
45.180556
98
0.740086
8a48df0214e22557a1acb34bb55fcefa633a83a9
12,615
ml
OCaml
test/vectors/test_vectors.ml
mbacarella/ocaml-noise
d5a3e0f634fba1f8d948a91c70a1dad6470722b0
[ "BSD-2-Clause" ]
23
2018-08-10T14:26:25.000Z
2020-09-12T00:18:00.000Z
test/vectors/test_vectors.ml
mbacarella/ocaml-noise
d5a3e0f634fba1f8d948a91c70a1dad6470722b0
[ "BSD-2-Clause" ]
2
2018-10-09T12:16:22.000Z
2021-12-08T10:33:05.000Z
test/vectors/test_vectors.ml
mbacarella/ocaml-noise
d5a3e0f634fba1f8d948a91c70a1dad6470722b0
[ "BSD-2-Clause" ]
1
2021-12-08T00:17:53.000Z
2021-12-08T00:17:53.000Z
open OUnit2 open Noise.Util let err_printf fmt = Printf.ksprintf (fun e -> Error e) fmt let unwrap what x = match x with | Ok y -> Ok y | Error s -> err_printf "Unknown %s: %s" what s let of_yojson_string what of_string json = let%map s = [%of_yojson: string] json in match o...
28.933486
84
0.651447