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
448de8c44b45423e030264f54441d0d5e413b90b
2,868
ml
OCaml
plugins/ocaml/example.ml
gyf304/nbdkit
9fe24cea307d25758db3a6c79beb65b36aecbd3e
[ "TCL", "Ruby" ]
null
null
null
plugins/ocaml/example.ml
gyf304/nbdkit
9fe24cea307d25758db3a6c79beb65b36aecbd3e
[ "TCL", "Ruby" ]
null
null
null
plugins/ocaml/example.ml
gyf304/nbdkit
9fe24cea307d25758db3a6c79beb65b36aecbd3e
[ "TCL", "Ruby" ]
null
null
null
(* Example OCaml plugin. This example can be freely copied and used for any purpose. When building nbdkit this example is compiled as: plugins/ocaml/nbdkit-ocamlexample-plugin.so You can run it from the build directory like this: ./nbdkit -f -v plugins/ocaml/nbdkit-ocamlexample-plugin.so [size=1...
28.68
75
0.686541
bc3a3ee32c5e909c7166972bf62365c1e171c022
7,008
ml
OCaml
examples/rulebot/src/cnl_engine.ml
Bhaskers-Blu-Org1/wcs-ocaml
b237b7057f44caa09d36e466be015e2bc3173dd5
[ "Apache-2.0" ]
26
2017-09-20T17:28:21.000Z
2020-12-11T06:00:21.000Z
examples/rulebot/src/cnl_engine.ml
Bhaskers-Blu-Org1/wcs-ocaml
b237b7057f44caa09d36e466be015e2bc3173dd5
[ "Apache-2.0" ]
6
2017-10-18T19:31:42.000Z
2018-08-29T20:16:45.000Z
examples/rulebot/src/cnl_engine.ml
idkjs/wcs-ocaml
b237b7057f44caa09d36e466be015e2bc3173dd5
[ "Apache-2.0" ]
16
2017-09-16T07:05:24.000Z
2021-08-15T12:37:00.000Z
(* * This file is part of the Watson Conversation Service OCaml API project. * * Copyright 2016-2017 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.a...
29.2
84
0.622289
44fb103f6ceaef7877ff0165c9f88bb3651f0907
15,478
ml
OCaml
src/lib/transaction_snark/test/util.ml
CodaProtocol/coda
bd1c97acd9c3c80e638045e4562dae711efbd28c
[ "Apache-2.0" ]
512
2018-10-24T23:22:35.000Z
2020-09-29T02:54:20.000Z
src/lib/transaction_snark/test/util.ml
CodaProtocol/coda
bd1c97acd9c3c80e638045e4562dae711efbd28c
[ "Apache-2.0" ]
3,150
2018-10-25T00:06:09.000Z
2020-09-29T15:22:14.000Z
src/lib/transaction_snark/test/util.ml
CodaProtocol/coda
bd1c97acd9c3c80e638045e4562dae711efbd28c
[ "Apache-2.0" ]
105
2018-10-25T00:02:43.000Z
2020-09-01T12:31:15.000Z
open Core open Currency open Mina_base open Signature_lib module Tick = Snark_params.Tick module Impl = Pickles.Impls.Step module Parties_segment = Transaction_snark.Parties_segment module Statement = Transaction_snark.Statement let constraint_constants = Genesis_constants.Constraint_constants.compiled let genesis_co...
39.484694
82
0.605117
4465cd6f1407dbed9767902ad13061c5056d8657
2,883
ml
OCaml
src/rmalias.ml
CARV-ICS-FORTH/scoop
9fbd86629a7e1951a392959149bb553fb5611a5f
[ "Apache-2.0" ]
2
2017-02-15T23:36:49.000Z
2018-09-11T09:34:14.000Z
src/rmalias.ml
CARV-ICS-FORTH/scoop
9fbd86629a7e1951a392959149bb553fb5611a5f
[ "Apache-2.0" ]
null
null
null
src/rmalias.ml
CARV-ICS-FORTH/scoop
9fbd86629a7e1951a392959149bb553fb5611a5f
[ "Apache-2.0" ]
2
2015-10-15T07:41:09.000Z
2019-10-08T12:55:13.000Z
(* * * Copyright (c) 2004-2007, * Polyvios Pratikakis <polyvios@cs.umd.edu> * 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. Redistributions of source code must retain the abo...
36.0375
81
0.714533
bc2e80f33d99ebdf62c1ab67032c5daf2239a3a7
5,923
mli
OCaml
code/src/netstring/netmech_spnego_http.mli
UnixJunkie/ocamlnet
81282279d073a85e3ed6e8b7030710ed9b7b2d02
[ "BSD-3-Clause" ]
null
null
null
code/src/netstring/netmech_spnego_http.mli
UnixJunkie/ocamlnet
81282279d073a85e3ed6e8b7030710ed9b7b2d02
[ "BSD-3-Clause" ]
null
null
null
code/src/netstring/netmech_spnego_http.mli
UnixJunkie/ocamlnet
81282279d073a85e3ed6e8b7030710ed9b7b2d02
[ "BSD-3-Clause" ]
null
null
null
(* $Id$ *) (** SPNEGO (GSSAPI) authentication for HTTP *) (** This module enables the [Negotiate] authentication method for HTTP, which is an encapsulation of the SPNEGO protocol. SPNEGO in turn is a layer on top of GSSAPI, and adds mechanism negotiation. This is the usual way of kerberizing HTTP. T...
40.568493
80
0.723282
44ed6318671bc79f0b55d0de094cd12d420373fd
1,763
mll
OCaml
duniverse/opam-core.2.0.7+dune/src/format/opamLineLexer.mll
snowleopard/duniverse
8af7ca1d4043b76d96cfe146926621186a0c75aa
[ "ISC" ]
null
null
null
duniverse/opam-core.2.0.7+dune/src/format/opamLineLexer.mll
snowleopard/duniverse
8af7ca1d4043b76d96cfe146926621186a0c75aa
[ "ISC" ]
null
null
null
duniverse/opam-core.2.0.7+dune/src/format/opamLineLexer.mll
snowleopard/duniverse
8af7ca1d4043b76d96cfe146926621186a0c75aa
[ "ISC" ]
null
null
null
(**************************************************************************) (* *) (* Copyright 2012-2015 OCamlPro *) (* Copyright 2012 INRIA *) (* ...
30.929825
79
0.416903
8adcd73fcc5d30e1c9af50fd3a17c1bf7d7ab51f
8,819
ml
OCaml
x86/proofs/bignum_double_p384.ml
SalusaSecondus/s2n-bignum
bf33aba81577a72924a9add994cba61fbb146026
[ "Apache-2.0" ]
33
2021-03-11T16:12:01.000Z
2022-03-06T17:01:18.000Z
x86/proofs/bignum_double_p384.ml
SalusaSecondus/s2n-bignum
bf33aba81577a72924a9add994cba61fbb146026
[ "Apache-2.0" ]
8
2021-09-06T12:58:47.000Z
2022-01-03T16:43:09.000Z
x86/proofs/bignum_double_p384.ml
SalusaSecondus/s2n-bignum
bf33aba81577a72924a9add994cba61fbb146026
[ "Apache-2.0" ]
4
2021-03-11T19:28:16.000Z
2021-12-12T23:40:44.000Z
(* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "LICENSE" file ...
50.107955
155
0.585667
440ee18202471efbde6e2b87219635b66eb35130
7,391
ml
OCaml
src/gen/gen_ast_builder.ml
sim642/ppxlib
770080baac7184326203974599d48cc2035b525e
[ "MIT" ]
null
null
null
src/gen/gen_ast_builder.ml
sim642/ppxlib
770080baac7184326203974599d48cc2035b525e
[ "MIT" ]
null
null
null
src/gen/gen_ast_builder.ml
sim642/ppxlib
770080baac7184326203974599d48cc2035b525e
[ "MIT" ]
null
null
null
open Import open Ast_helper open Printf let prefix_of_record lds = common_prefix (List.map lds ~f:(fun ld -> ld.pld_name.txt)) module Gen (Fixed_loc : sig val fixed_loc : bool end) = struct open Fixed_loc let gen_combinator_for_constructor ~wrapper:(wpath, wprefix, has_attrs, has_loc_stack) path ~prefi...
32.70354
80
0.521716
8a41c6a75b860590363487181c6b7a8826a2514b
1,368
ml
OCaml
asan/config/discover.ml
onivim/reason-native-crash-utils
a80a9d9a6a64568b8d2b10719e2f08c001147776
[ "MIT" ]
7
2020-02-23T02:07:36.000Z
2020-10-20T12:48:02.000Z
asan/config/discover.ml
onivim/reason-native-crash-utils
a80a9d9a6a64568b8d2b10719e2f08c001147776
[ "MIT" ]
2
2020-05-30T18:28:41.000Z
2021-03-02T01:54:19.000Z
asan/config/discover.ml
onivim/reason-native-crash-utils
a80a9d9a6a64568b8d2b10719e2f08c001147776
[ "MIT" ]
2
2020-05-29T20:21:47.000Z
2020-10-20T05:38:44.000Z
module Configurator = Configurator.V1 type os = | Android | IOS | Linux | Mac | Windows let detect_system_header = {| #if __APPLE__ #include <TargetConditionals.h> #if TARGET_OS_IPHONE #define PLATFORM_NAME "ios" #else #define PLATFORM_NAME "mac" #endif #elif __linux__ #i...
23.186441
64
0.612573
bc675ee0b1a955b27dc5b70da9b4bed0de697e95
1,778
ml
OCaml
duniverse/0install/src/zeroinstall/dbus.with.ml
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
duniverse/0install/src/zeroinstall/dbus.with.ml
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
duniverse/0install/src/zeroinstall/dbus.with.ml
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
(* Copyright (C) 2013, Thomas Leonard * See the README file for details, or visit http://0install.net. *) (** Convenience functions for D-BUS. This file is only compiled when D-BUS support is available. *) open Support open Common module OBus_bus = OBus_bus module OBus_proxy = OBus_proxy module OBus_peer = OBus_pe...
31.192982
105
0.7036
bc4aa47c3613ea94adbf41203682e03f0094ee47
1,921
ml
OCaml
examples/unikernel/services.ml
TheLortex/mirage-tcpip
ccea1404c1c57a1ac12bc3be8b9836fd0f91420a
[ "ISC" ]
290
2015-01-08T14:39:32.000Z
2022-03-30T11:42:58.000Z
examples/unikernel/services.ml
TheLortex/mirage-tcpip
ccea1404c1c57a1ac12bc3be8b9836fd0f91420a
[ "ISC" ]
288
2015-01-01T20:01:51.000Z
2022-03-22T15:58:47.000Z
examples/unikernel/services.ml
TheLortex/mirage-tcpip
ccea1404c1c57a1ac12bc3be8b9836fd0f91420a
[ "ISC" ]
77
2015-03-01T13:13:26.000Z
2022-03-11T20:14:36.000Z
open Lwt.Infix module Main (S: Mirage_stack.V4) = struct let report_and_close flow pp e message = let ip, port = S.TCPV4.dst flow in Logs.warn (fun m -> m "closing connection from %a:%d due to error %a while %s" Ipaddr.V4.pp ip port pp e message); S.TCPV4.close flow let rec chargen flo...
34.303571
105
0.647579
bc7c2e228e6d3e3b45f590a5ce455be830d338b1
10,958
mli
OCaml
srk/src/linear.mli
anvayg/duet
b7cadaf486dc81a911189f582a53d4eee8ef69b9
[ "MIT" ]
1
2021-12-14T06:46:12.000Z
2021-12-14T06:46:12.000Z
srk/src/linear.mli
anvayg/duet
b7cadaf486dc81a911189f582a53d4eee8ef69b9
[ "MIT" ]
null
null
null
srk/src/linear.mli
anvayg/duet
b7cadaf486dc81a911189f582a53d4eee8ef69b9
[ "MIT" ]
null
null
null
(** Various operations for the vector space [int -> QQ] *) open Syntax (** Raised for unsolvable systems of linear equations *) exception No_solution exception Nonlinear (** Sparse vector with integer entries. *) module ZZVector : sig include Ring.Vector with type dim = int and type scalar = ZZ.t val compare : ...
39.135714
88
0.660248
bc8a58ad41b9ef3c46938ae4cb675c5ad5554193
2,098
ml
OCaml
lib/SortUtil.ml
HebeHH/ysc2229-examples
000d8928c960a53ae8138be8a4e059a6aa7a64b7
[ "MIT" ]
null
null
null
lib/SortUtil.ml
HebeHH/ysc2229-examples
000d8928c960a53ae8138be8a4e059a6aa7a64b7
[ "MIT" ]
null
null
null
lib/SortUtil.ml
HebeHH/ysc2229-examples
000d8928c960a53ae8138be8a4e059a6aa7a64b7
[ "MIT" ]
null
null
null
(* This file is part of teaching material of Yale-NUS College module "YSC2229: Introductory Data Structures and Algorithms" Copyright (c) 2019 Ilya Sergey 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 S...
32.276923
78
0.684938
bc18be1e7c14670af0200eedd76d0b01bba2588f
12,248
ml
OCaml
bootstrap.ml
Khady/dune
9afd3d215759f65d52c74def6992b2771def3363
[ "MIT" ]
1
2018-09-14T10:47:11.000Z
2018-09-14T10:47:11.000Z
bootstrap.ml
nandor/shmap
6a730de81a1e8568a61ac0f53af3aebabde8e58b
[ "MIT" ]
null
null
null
bootstrap.ml
nandor/shmap
6a730de81a1e8568a61ac0f53af3aebabde8e58b
[ "MIT" ]
null
null
null
[@@@ocaml.warning "-40"] (* This module is here to build a version of jbuilder that is capable of * building itself. It accomplishes this by concatenating all its source files * into a single .ml file and simply compiling it. The source code of the * vendored libraries are omitted, being replaced by stubs, just to ...
27.400447
92
0.569644
8af145535fbd8d2b732511aa9c27f9b1ac413b36
736
ml
OCaml
data/fa15/1078.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/fa15/1078.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/fa15/1078.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
let pipe fs = let f a x a x = x a in let base x = x in List.fold_left f base fs;; (* fix let pipe fs = let f a x = x in let base x = x in List.fold_left f base fs;; *) (* changed spans (3,12)-(3,21) (3,14)-(3,21) (3,18)-(3,21) (3,20)-(3,21) *) (* type error slice (3,2)-(3,67) (3,8)-(3,21) (3,10)-(3,21) (3,12)-...
13.142857
75
0.474185
f3c8030f0d6e81dac9abdeb34f5dc38cc4c93360
15,134
ml
OCaml
src/effect.ml
li-xin-yi/MoCHi
5fe401323e64ca2dd0235729e705d836f3068751
[ "Apache-2.0" ]
32
2019-10-30T10:09:56.000Z
2022-03-28T07:15:04.000Z
src/effect.ml
li-xin-yi/MoCHi
5fe401323e64ca2dd0235729e705d836f3068751
[ "Apache-2.0" ]
1
2021-04-14T19:19:15.000Z
2021-04-15T02:03:56.000Z
src/effect.ml
li-xin-yi/MoCHi
5fe401323e64ca2dd0235729e705d836f3068751
[ "Apache-2.0" ]
5
2019-11-08T07:49:00.000Z
2022-03-01T18:09:57.000Z
open Syntax open Term_util open Type open Util module Debug = Debug.Make(struct let check = Flag.Debug.make_check __MODULE__ end) type env = {mutable constraints: (effect * effect) list; mutable counter: int; for_cps: bool} let initial_env for_cps = let counter = 0 in let constraints = [] in {counter; ...
31.995772
105
0.595414
bc1dbe0663e039b608063da60663025e5200667e
18,774
ml
OCaml
examples/kinsol/serial/kinKrylovDemo_ls.ml
kit-ty-kate/sundialsml
52cdf008e267aa55373f123866478a6d881d3fee
[ "BSD-3-Clause" ]
24
2015-02-14T17:16:38.000Z
2021-12-23T16:02:13.000Z
examples/kinsol/serial/kinKrylovDemo_ls.ml
kit-ty-kate/sundialsml
52cdf008e267aa55373f123866478a6d881d3fee
[ "BSD-3-Clause" ]
10
2016-03-20T22:14:49.000Z
2022-03-16T09:54:31.000Z
examples/kinsol/serial/kinKrylovDemo_ls.ml
kit-ty-kate/sundialsml
52cdf008e267aa55373f123866478a6d881d3fee
[ "BSD-3-Clause" ]
5
2015-04-14T14:21:54.000Z
2022-03-10T16:14:55.000Z
(* * ----------------------------------------------------------------- * $Revision: 1.2 $ * $Date: 2010/12/01 23:08:49 $ * ----------------------------------------------------------------- * Programmer(s): Allan Taylor, Alan Hindmarsh and * Radu Serban @ LLNL * ------------------------------------...
34.831169
84
0.578619
af7975f3c61aafc5edd97e09bd104a341d39543d
3,179
mli
OCaml
test/parser/integration/definitions/jsig.mli
Raynos/jsig
4ec14c2039924243671d16d8a6c3a5318679cf0e
[ "MIT" ]
103
2015-06-07T05:36:21.000Z
2021-02-27T01:28:42.000Z
test/parser/integration/definitions/jsig.mli
Raynos/jsig
4ec14c2039924243671d16d8a6c3a5318679cf0e
[ "MIT" ]
13
2015-07-08T20:39:30.000Z
2017-01-24T01:31:57.000Z
test/parser/integration/definitions/jsig.mli
Raynos/jsig
4ec14c2039924243671d16d8a6c3a5318679cf0e
[ "MIT" ]
12
2015-07-08T20:37:26.000Z
2018-08-12T14:36:16.000Z
type GenericE : { type: 'genericLiteral', value: TypeExpression, generics: Array<TypeExpression>, label: String | null, optional: Boolean } type FunctionE : { type: 'function', args: Array<TypeExpression>, result: TypeExpression, thisArg: TypeExpression | null, label: String | n...
21.924138
68
0.61749
44e5d4567a15218a5a3ffeca6e34f4e9d8255307
11,768
ml
OCaml
src/lib_crypto/pvss.ml
noclouds/tezos-master
6c31af7ab3ea782f89f988e389e9b0860207a8d6
[ "MIT" ]
null
null
null
src/lib_crypto/pvss.ml
noclouds/tezos-master
6c31af7ab3ea782f89f988e389e9b0860207a8d6
[ "MIT" ]
null
null
null
src/lib_crypto/pvss.ml
noclouds/tezos-master
6c31af7ab3ea782f89f988e389e9b0860207a8d6
[ "MIT" ]
1
2021-06-04T09:31:48.000Z
2021-06-04T09:31:48.000Z
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *) ...
36.546584
104
0.603841
bc64c60ef257a366460b40814d6dd118b96d90fc
12,038
ml
OCaml
hphp/hack/src/parser/schema/token_schema_definition.ml
Nicztin/hhvm
25d78f95e739823350a1a48e0f60d5a05598ad83
[ "PHP-3.01", "Zend-2.0" ]
1
2019-11-01T13:46:07.000Z
2019-11-01T13:46:07.000Z
hphp/hack/src/parser/schema/token_schema_definition.ml
Nicztin/hhvm
25d78f95e739823350a1a48e0f60d5a05598ad83
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/parser/schema/token_schema_definition.ml
Nicztin/hhvm
25d78f95e739823350a1a48e0f60d5a05598ad83
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(* * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) type token_node = { token_kind: string; token_text: string; (* Whether the token is allowed as identifier, i.e...
45.255639
80
0.680678
44dd4cb3affb874a2c7a525c7c310b248eef22f8
5,294
ml
OCaml
ask-integrator/test/test_model.ml
uzh/ask
5ba939c7ccbe20251b26f8d691635d94e65e518f
[ "MIT" ]
12
2021-03-29T17:15:21.000Z
2021-12-04T10:54:06.000Z
ask-integrator/test/test_model.ml
uzh/ask
5ba939c7ccbe20251b26f8d691635d94e65e518f
[ "MIT" ]
2
2021-03-29T14:08:06.000Z
2021-03-29T14:08:56.000Z
ask-integrator/test/test_model.ml
uzh/ask
5ba939c7ccbe20251b26f8d691635d94e65e518f
[ "MIT" ]
null
null
null
module Model = Ask_integrator.Model let create_uuid () = Uuidm.create `V4 |> Uuidm.to_string let testable_handler = Alcotest.testable Model.Handler.pp Model.Handler.equal let testable_service_mapper = Alcotest.testable Model.ServiceMappingRow.pp Model.ServiceMappingRow.equal ;; let testable_questionnaire_mapper = ...
31.891566
90
0.73555
bc8e3bad8640ce42dfed064343558e6796937558
144
ml
OCaml
duniverse/owl/test/unit_algodiff_matrix.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
1
2019-11-17T23:16:15.000Z
2019-11-17T23:16:15.000Z
duniverse/owl/test/unit_algodiff_matrix.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
duniverse/owl/test/unit_algodiff_matrix.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
(** Unit test for Algodiff module matrix oeprations, Dense Ndarray in Core *) include Unit_algodiff_matrix_generic.Make (Owl.Dense.Ndarray.D)
28.8
77
0.791667
44e1dc105ff73d4240d9cc46b389f07cca54a5ba
14,041
ml
OCaml
src/solvers/viasat.ml
tcsprojects/pgsolver
88202c9452ccdcd4092280b4e76c31a16085d14c
[ "BSD-3-Clause" ]
28
2016-04-03T22:53:46.000Z
2022-03-20T20:53:38.000Z
src/solvers/viasat.ml
tcsprojects/pgsolver
88202c9452ccdcd4092280b4e76c31a16085d14c
[ "BSD-3-Clause" ]
17
2015-03-28T15:29:29.000Z
2019-09-22T16:48:34.000Z
src/solvers/viasat.ml
tcsprojects/pgsolver
88202c9452ccdcd4092280b4e76c31a16085d14c
[ "BSD-3-Clause" ]
17
2015-01-06T10:32:50.000Z
2022-03-22T15:58:23.000Z
open Paritygame ;; open Basics ;; open Univsolve ;; open Tcstiming;; open Satwrapper;; open Tcsarray;; module Varencoding = struct let solver = ref (None) let getsolver _ = match !solver with Some s -> s | _ -> failwith "impossible" let number_of_variables = ref 0 let fresh = ref false (* important!!!! *) ...
38.680441
146
0.502671
4453d0c2648bfcbf531dc129901c25597f5ff677
62,917
ml
OCaml
src/app/cli/src/cli_entrypoint/mina_cli_entrypoint.ml
definitiontv/andrea
257efbf08d3844be86d9da67c843e35cc46c846d
[ "Apache-2.0" ]
null
null
null
src/app/cli/src/cli_entrypoint/mina_cli_entrypoint.ml
definitiontv/andrea
257efbf08d3844be86d9da67c843e35cc46c846d
[ "Apache-2.0" ]
null
null
null
src/app/cli/src/cli_entrypoint/mina_cli_entrypoint.ml
definitiontv/andrea
257efbf08d3844be86d9da67c843e35cc46c846d
[ "Apache-2.0" ]
null
null
null
[%%import "/src/config.mlh"] open Core open Async open Mina_base open Cli_lib open Signature_lib open Init module YJ = Yojson.Safe [%%check_ocaml_word_size 64] [%%if record_async_backtraces] let () = Async.Scheduler.set_record_backtraces true [%%endif] let chain_id ~constraint_system_digests ~genesis_state_hash ~...
40.023537
106
0.605083
44e41d2d208d11cf0334a8a877a1f9ca15431d22
545
mli
OCaml
hphp/hack/src/server/hhServerMonitor.mli
SiebelsTim/hhvm
ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c
[ "PHP-3.01", "Zend-2.0" ]
7
2015-08-28T06:20:50.000Z
2021-11-08T09:48:24.000Z
hphp/hack/src/server/hhServerMonitor.mli
SiebelsTim/hhvm
ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c
[ "PHP-3.01", "Zend-2.0" ]
1
2020-01-19T19:06:32.000Z
2020-01-19T19:06:32.000Z
hphp/hack/src/server/hhServerMonitor.mli
SiebelsTim/hhvm
ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c
[ "PHP-3.01", "Zend-2.0" ]
3
2018-01-23T20:44:59.000Z
2021-05-06T12:45:31.000Z
(** * 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 start: un...
32.058824
80
0.726606
bc25a8a5a7b167c5123b7fc12855bd9d9de0cfb3
2,586
ml
OCaml
analysis/coverage.ml
dirn/pyre-check
34b87fd73ae38451843fea37cf27ab951bf7f5ae
[ "MIT" ]
null
null
null
analysis/coverage.ml
dirn/pyre-check
34b87fd73ae38451843fea37cf27ab951bf7f5ae
[ "MIT" ]
null
null
null
analysis/coverage.ml
dirn/pyre-check
34b87fd73ae38451843fea37cf27ab951bf7f5ae
[ "MIT" ]
1
2021-02-20T13:09:30.000Z
2021-02-20T13:09:30.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 Core open Ast open Pyre type t = { full: int; partial: int; untyped: int; crashes: int; } [@@deriving eq, show] let ...
28.417582
99
0.694896
443695084299c0fb3acdeacedff1e8ddf1cff273
5,442
ml
OCaml
primes_faithful_bb.ml
hyphenrf/primes
5a64bed64ee58fa04da6f280e571bc897d11df69
[ "BSD-3-Clause" ]
null
null
null
primes_faithful_bb.ml
hyphenrf/primes
5a64bed64ee58fa04da6f280e571bc897d11df69
[ "BSD-3-Clause" ]
null
null
null
primes_faithful_bb.ml
hyphenrf/primes
5a64bed64ee58fa04da6f280e571bc897d11df69
[ "BSD-3-Clause" ]
null
null
null
(* Solution by @hyphenrf *) type meta = { name : string ; bits : int ; size : int ; threads : int ; faithful : string ; algorithm : string } module Sieve : sig type t val create : int -> t val run : t -> unit end = struct let _BLK_SHIFT = 12 let _BIT_SHIFT = _BLK_SHIFT + 3 let _BLK_SIZE ...
25.669811
75
0.574972
4454f7e0e7ba817e70c0af644bcbe6ace2dd8092
847
mli
OCaml
otherlibs/stdune/user_error.mli
mndrix/dune
30b84ff370351b13f05db34fd952dfe5d0249bcb
[ "MIT" ]
245
2016-12-02T14:13:32.000Z
2018-01-14T20:00:40.000Z
otherlibs/stdune/user_error.mli
mndrix/dune
30b84ff370351b13f05db34fd952dfe5d0249bcb
[ "MIT" ]
380
2017-01-28T18:46:52.000Z
2018-01-17T13:34:51.000Z
otherlibs/stdune/user_error.mli
mndrix/dune
30b84ff370351b13f05db34fd952dfe5d0249bcb
[ "MIT" ]
59
2016-12-02T13:58:19.000Z
2018-01-06T18:23:02.000Z
(** Error meant for humans *) (** User errors are errors that users need to fix themselves in order to make progress. Since these errors are read by users, they should be simple to understand for people who are not familiar with the dune codebase. *) exception E of User_message.t (** Raise a user error. The a...
31.37037
77
0.695396
bc68188468e52de673bf7e73b7bd5c342cd605ee
23,866
ml
OCaml
src/dune/expander.ml
dra27/jbuilder
daea74e5366c8571af8674860a733b0c9e1eaf81
[ "MIT" ]
null
null
null
src/dune/expander.ml
dra27/jbuilder
daea74e5366c8571af8674860a733b0c9e1eaf81
[ "MIT" ]
null
null
null
src/dune/expander.ml
dra27/jbuilder
daea74e5366c8571af8674860a733b0c9e1eaf81
[ "MIT" ]
null
null
null
open Import module Expanded = struct type t = | Value of Value.t list | Deferred of Pform.Expansion.t | Unknown | Error of User_message.t let to_value_opt t ~on_deferred = match t with | Value v -> Some v | Deferred d -> on_deferred d | Error m -> raise (User_error.E m) | Unkno...
34.688953
80
0.639361
bc4f11caecefdc65fe257cb22007f5f4c5898a18
336
ml
OCaml
sihl-token/test/jwt_inmemory.ml
econ-uzh/sihl
a0148d815146b28cd6745d087a976efe8334c5fa
[ "MIT" ]
330
2020-03-18T09:54:39.000Z
2022-03-02T15:51:38.000Z
sihl-token/test/jwt_inmemory.ml
econ-uzh/sihl
a0148d815146b28cd6745d087a976efe8334c5fa
[ "MIT" ]
272
2020-03-12T18:34:57.000Z
2022-03-31T15:21:22.000Z
sihl-token/test/jwt_inmemory.ml
econ-uzh/sihl
a0148d815146b28cd6745d087a976efe8334c5fa
[ "MIT" ]
12
2020-06-18T10:55:59.000Z
2021-09-11T06:43:25.000Z
let services = [ Sihl_token.JwtInMemory.register () ] module Test = Token.Make (Sihl_token.JwtInMemory) let () = Logs.set_level (Sihl.Log.get_log_level ()); Logs.set_reporter (Sihl.Log.cli_reporter ()); Lwt_main.run (let%lwt _ = Sihl.Container.start_services services in Alcotest_lwt.run "jwt in-memory"...
28
58
0.717262
44d048c4e7879feeb3e7dd6a2f00fc203b14c1c4
30,609
ml
OCaml
source/interprocedural_analyses/taint/modelQuery/modelQuery.ml
duruyi/pyre-check
24c40031e37b80de4d40d4bc1eb0ebdd01655388
[ "MIT" ]
1
2022-02-10T10:51:32.000Z
2022-02-10T10:51:32.000Z
source/interprocedural_analyses/taint/modelQuery/modelQuery.ml
duruyi/pyre-check
24c40031e37b80de4d40d4bc1eb0ebdd01655388
[ "MIT" ]
null
null
null
source/interprocedural_analyses/taint/modelQuery/modelQuery.ml
duruyi/pyre-check
24c40031e37b80de4d40d4bc1eb0ebdd01655388
[ "MIT" ]
null
null
null
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open Core open Pyre open Ast open Analysis open Interprocedural open Taint module ModelQuery = ModelParser.Internal.ModelQuery m...
38.74557
105
0.616387
bc7ae3542e0d272024481590fbc2135879f4708b
3,581
mli
OCaml
src/sexp.mli
diaozheng999/sexplib0
3bcfcb48e15858f753942fff236aa76246e13d4b
[ "MIT" ]
null
null
null
src/sexp.mli
diaozheng999/sexplib0
3bcfcb48e15858f753942fff236aa76246e13d4b
[ "MIT" ]
null
null
null
src/sexp.mli
diaozheng999/sexplib0
3bcfcb48e15858f753942fff236aa76246e13d4b
[ "MIT" ]
null
null
null
(** Type of S-expressions *) type t = | Atom of string | List of t list (*_ We don't use [@@deriving sexp] as this would generated references to [Sexplib], creating a circular dependency *) val t_of_sexp : t -> t val sexp_of_t : t -> t val t_sexp_grammar : t Sexp_grammar.t val equal : t -> t -> bool val compare...
30.606838
90
0.670483
bc4134b6e8d1bb4b64b0307e68fe5a41e8918b8e
1,491
ml
OCaml
pug/perceptron/perceptron.ml
eliethewoody/QuasarIO
8b24bb73119d78bcfe0c798cb42538c0866de47d
[ "MIT" ]
1
2017-08-03T20:39:12.000Z
2017-08-03T20:39:12.000Z
pug/perceptron/perceptron.ml
eliethewoody/QuasarIO
8b24bb73119d78bcfe0c798cb42538c0866de47d
[ "MIT" ]
null
null
null
pug/perceptron/perceptron.ml
eliethewoody/QuasarIO
8b24bb73119d78bcfe0c798cb42538c0866de47d
[ "MIT" ]
null
null
null
(*open Core.Std*) type rosenblatt = { rate : float; bias : float; weight : float; errors : int};; let rec initPerceptron rate bias = if rate == 0.0 || rate >= 1.0 then initPerceptron 0.0153 bias else {rate = rate; bias = bias; weight = 0.0; errors = 0};; let g...
36.365854
109
0.625084
443cd8c2a0f45273378e8ab212f14bc6db8a3ae8
2,679
ml
OCaml
presentations/coq-workshop-2014-coq/kernel/nativelibrary.ml
JasonGross/test-broken-tar
6b52b8532879df53386b0f5413485888a1aa886a
[ "MIT" ]
null
null
null
presentations/coq-workshop-2014-coq/kernel/nativelibrary.ml
JasonGross/test-broken-tar
6b52b8532879df53386b0f5413485888a1aa886a
[ "MIT" ]
null
null
null
presentations/coq-workshop-2014-coq/kernel/nativelibrary.ml
JasonGross/test-broken-tar
6b52b8532879df53386b0f5413485888a1aa886a
[ "MIT" ]
null
null
null
(************************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) (* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2015 *) (* \VV/ **************************************************************) (* // * Th...
36.202703
89
0.612169
446449e7d5a3dfc6721565b41306dc77fde598ee
273
ml
OCaml
src/rolib/actor.ml
olrunBottom/calculator
16d7d8e4fdeede77679f2a7ea75222f55011097a
[ "Apache-2.0" ]
null
null
null
src/rolib/actor.ml
olrunBottom/calculator
16d7d8e4fdeede77679f2a7ea75222f55011097a
[ "Apache-2.0" ]
null
null
null
src/rolib/actor.ml
olrunBottom/calculator
16d7d8e4fdeede77679f2a7ea75222f55011097a
[ "Apache-2.0" ]
null
null
null
module Race = struct type raceType = Angel | Animal | Devil | Dragon | Fish | Formless | Insect | Plant | Human | Undead type other = BOSS | Oak | Golem type t = { race: raceType; others : other list } end module Size = struct type t = Small | Middle | Large end
24.818182
101
0.659341
bc5a232b1807c41f6a359fddcf435256eb13dd22
11,651
ml
OCaml
lib/stream.ml
jonahbeckford/ocaml-yaml
342aa9c83d787df6574188bb6812bcb903c6e7b1
[ "ISC" ]
null
null
null
lib/stream.ml
jonahbeckford/ocaml-yaml
342aa9c83d787df6574188bb6812bcb903c6e7b1
[ "ISC" ]
null
null
null
lib/stream.ml
jonahbeckford/ocaml-yaml
342aa9c83d787df6574188bb6812bcb903c6e7b1
[ "ISC" ]
1
2022-02-24T13:06:08.000Z
2022-02-24T13:06:08.000Z
(* Copyright (c) 2017 Anil Madhavapeddy <anil@recoil.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND ...
35.093373
152
0.675307
bc8f1890b56f4f5889758bb5eebef05eca535055
102
ml
OCaml
data/derived/comb/progs/unify/prog1975.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/prog1975.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog1975.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let rec assoc (d,k,l) = match l with | [] -> d | (s,i)::t -> if s = k then true else assoc d k t;;
25.5
76
0.509804
44897e33ab3fc5891e64bcb523aff9c67af300b1
310
mli
OCaml
code/src/equeue/unixqueue_pollset.mli
UnixJunkie/ocamlnet
81282279d073a85e3ed6e8b7030710ed9b7b2d02
[ "BSD-3-Clause" ]
null
null
null
code/src/equeue/unixqueue_pollset.mli
UnixJunkie/ocamlnet
81282279d073a85e3ed6e8b7030710ed9b7b2d02
[ "BSD-3-Clause" ]
null
null
null
code/src/equeue/unixqueue_pollset.mli
UnixJunkie/ocamlnet
81282279d073a85e3ed6e8b7030710ed9b7b2d02
[ "BSD-3-Clause" ]
null
null
null
(* $Id$ *) (** Unixqueue implementation on top of {!Netsys_pollset} *) class pollset_event_system : Netsys_pollset.pollset -> Unixqueue_util.event_system val pollset_event_system : Netsys_pollset.pollset -> Unixqueue_util.event_system_t (** Implements a unixqueue on top of a pollset. *)
25.833333
61
0.725806
bc3664561640882b274881cba97f5afecfcf6fb1
2,018
ml
OCaml
src/utils/ident.ml
daniel-larraz/kind2
168918803d5f834676c1d328573ee32b2bedee6e
[ "Apache-2.0" ]
62
2015-02-04T17:49:51.000Z
2022-03-19T21:52:06.000Z
src/utils/ident.ml
daniel-larraz/kind2
168918803d5f834676c1d328573ee32b2bedee6e
[ "Apache-2.0" ]
110
2015-01-20T14:26:17.000Z
2022-03-22T02:25:49.000Z
src/utils/ident.ml
daniel-larraz/kind2
168918803d5f834676c1d328573ee32b2bedee6e
[ "Apache-2.0" ]
25
2017-02-20T21:13:55.000Z
2021-07-20T19:46:09.000Z
(* This file is part of the Kind 2 model checker. Copyright (c) 2014 by the Board of Trustees of the University of Iowa Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.a...
23.465116
72
0.710605
bc614cc8ecd926a12503f40a197665d982953d7b
1,755
ml
OCaml
hphp/hack/src/heap/config/discover.ml
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "PHP-3.01", "Zend-2.0" ]
1
2019-07-15T20:48:46.000Z
2019-07-15T20:48:46.000Z
hphp/hack/src/heap/config/discover.ml
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/heap/config/discover.ml
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(** This is a dune configurator: https://jbuilder.readthedocs.io/en/latest/configurator.html *) module C = Configurator.V1 (* cmake should have prepared some information for us in the env: EXTRA_INCLUDE_PATHS EXTRA_LIB_PATHS EXTRA_NATIVE_LIBRARIES EXTRA_LINK_OPTS *) let query_env s = match Sys.getenv s with...
30.258621
72
0.607407
bc8ba5aa739868aa49ceedd32dd44c0afe8c200c
5,812
ml
OCaml
hphp/hack/src/decl/decl_instantiate.ml
fyunaz/hhvm
fc52cae6762431395818de9edbb0b918167c4b65
[ "PHP-3.01", "Zend-2.0" ]
1
2021-05-15T22:07:47.000Z
2021-05-15T22:07:47.000Z
hphp/hack/src/decl/decl_instantiate.ml
seanwallawalla-forks/hhvm
4685a57b633609727c9755efe6d647aebf91ea77
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/decl/decl_instantiate.ml
seanwallawalla-forks/hhvm
4685a57b633609727c9755efe6d647aebf91ea77
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Typing_defs module Subst = Decl_subst let make_subst tparams tyl = Subst.make_decl tparams tyl...
33.022727
103
0.617688
bc42277ef1bfdb171cb99bc49830ff5c332aa36a
1,018
ml
OCaml
code/command-line-parsing/cal_append.ml
bguil/examples
506e420c23c127430533ca5ee0b04be12278218b
[ "Unlicense" ]
328
2015-01-08T13:55:08.000Z
2022-03-11T12:56:04.000Z
code/command-line-parsing/cal_append.ml
bguil/examples
506e420c23c127430533ca5ee0b04be12278218b
[ "Unlicense" ]
17
2015-01-04T00:26:01.000Z
2018-05-31T08:16:44.000Z
code/command-line-parsing/cal_append.ml
bguil/examples
506e420c23c127430533ca5ee0b04be12278218b
[ "Unlicense" ]
83
2015-01-21T15:07:56.000Z
2022-03-11T12:56:08.000Z
open Core.Std let add ~common = Command.basic ~summary:"Add [days] to the [base] date" Command.Spec.( empty +> anon ("base" %: date) +> anon ("days" %: int) ++ common ) (fun base span debug verbose () -> Date.add_days base span |> Date.to_string |> print_endli...
23.674419
76
0.551081
44b67c89d213420fee7dd8d1d54deebf2e92f676
1,395
ml
OCaml
xen-4.6.0/tools/ocaml/libs/mmap/xenmmap.ml
StanPlatinum/ROP-detection-outside-VMs
c06987a0dfbe08022b1b1e1581b399cb4c25e4ac
[ "MIT" ]
3
2019-08-31T19:58:24.000Z
2020-10-02T06:50:22.000Z
xen-4.6.0/tools/ocaml/libs/mmap/xenmmap.ml
StanPlatinum/ROP-detection-outside-VMs
c06987a0dfbe08022b1b1e1581b399cb4c25e4ac
[ "MIT" ]
1
2020-10-16T19:13:49.000Z
2020-10-16T19:13:49.000Z
xen-4.6.0/tools/ocaml/libs/mmap/xenmmap.ml
StanPlatinum/ROP-detection-outside-VMs
c06987a0dfbe08022b1b1e1581b399cb4c25e4ac
[ "MIT" ]
1
2018-10-04T18:29:18.000Z
2018-10-04T18:29:18.000Z
(* * Copyright (C) 2006-2007 XenSource Ltd. * Copyright (C) 2008 Citrix Ltd. * Author Vincent Hanquez <vincent.hanquez@eu.citrix.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Fou...
43.59375
82
0.721864
443103ea928d7b738244a4305df92fdc8ba48d51
628
ml
OCaml
test/test_eval.ml
andersfugmann/ecaml
c1bb0fb79f314c4de2e7664d62ad2b0b57b6ad6c
[ "MIT" ]
245
2016-08-29T14:21:13.000Z
2022-03-12T04:08:52.000Z
test/test_eval.ml
andersfugmann/ecaml
c1bb0fb79f314c4de2e7664d62ad2b0b57b6ad6c
[ "MIT" ]
13
2016-08-29T14:55:35.000Z
2021-07-30T04:25:32.000Z
test/test_eval.ml
andersfugmann/ecaml
c1bb0fb79f314c4de2e7664d62ad2b0b57b6ad6c
[ "MIT" ]
13
2016-08-30T00:53:52.000Z
2021-12-17T02:51:25.000Z
open! Core open! Async_kernel open! Import module Q = struct (* An arbitrarily-chosen feature distributed with emacs, but not loaded on emacs startup. *) let array = "array" |> Symbol.intern end let%expect_test _ = print_s [%sexp (Feature.is_provided Q.array : bool)]; [%expect {| false |}]; Eval.after_load ...
28.545455
94
0.646497
8a08f3a5bd2b4a4a3798539352e19921b0b6d444
7,054
ml
OCaml
src/parser_utils/output/printers/__tests__/pretty_printer_test.ml
aryzing/flow
e352b6b3ff135e78b402234dfbfa7e6653580b70
[ "MIT" ]
1
2019-07-15T20:48:46.000Z
2019-07-15T20:48:46.000Z
src/parser_utils/output/printers/__tests__/pretty_printer_test.ml
aryzing/flow
e352b6b3ff135e78b402234dfbfa7e6653580b70
[ "MIT" ]
8
2020-04-06T11:23:08.000Z
2022-03-24T12:41:12.000Z
src/parser_utils/output/printers/__tests__/pretty_printer_test.ml
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. *) open Layout open OUnit2 let space_regex = Str.regexp_string " " let flat_pretty_space = IfBreak (Empty, pretty_space) let asse...
30.145299
100
0.531188
bc915101e8853ea96a250d4be1e8df874ea6d848
424
ml
OCaml
exercises/01_03-increase/test.ml
acamanes/ocaml-public
244d8874b472bb61aef598e06723903eb58bfec0
[ "CC0-1.0" ]
null
null
null
exercises/01_03-increase/test.ml
acamanes/ocaml-public
244d8874b472bb61aef598e06723903eb58bfec0
[ "CC0-1.0" ]
null
null
null
exercises/01_03-increase/test.ml
acamanes/ocaml-public
244d8874b472bb61aef598e06723903eb58bfec0
[ "CC0-1.0" ]
null
null
null
open Test_lib open Report let inform what = Message (what, Informative) let test () = inform [ Text "I first check with "; Code "fun x -> x"; Text "and then with"; Code "fun x -> -x"; ] :: test_function_1_against_solution [%ty: (int -> int) -> bool] "increase_between_0_1" ~ge...
16.307692
45
0.568396
44973cf3c7d98b3a2ddcd33453f487e5bb375558
16
ml
OCaml
duniverse/base/src/ppx_sexp_conv_lib.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
1
2019-09-11T00:04:16.000Z
2019-09-11T00:04:16.000Z
duniverse/base/src/ppx_sexp_conv_lib.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
duniverse/base/src/ppx_sexp_conv_lib.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
include Sexplib
8
15
0.875
afd7694eb94b41674ecde5b5fc2ebd840624e6aa
3,679
ml
OCaml
src/core/toolchain.ml
evilmartians/foundry
ce947c7dcca79ab7a7ce25870e9fc0eb15e9c2bd
[ "MIT" ]
4
2016-08-27T20:13:16.000Z
2019-11-11T00:11:21.000Z
src/core/toolchain.ml
whitequark/foundry
ce947c7dcca79ab7a7ce25870e9fc0eb15e9c2bd
[ "MIT" ]
null
null
null
src/core/toolchain.ml
whitequark/foundry
ce947c7dcca79ab7a7ce25870e9fc0eb15e9c2bd
[ "MIT" ]
4
2015-06-27T06:23:33.000Z
2018-07-26T05:45:23.000Z
open Unicode.Std open Fy_big_int type 'a result = | Success of 'a | Failure of Diagnostic.t list let input_file filename = let content = Io.input_file filename in let file = Location.register (Unicode.assert_utf8s filename) 1 content in let lexbuf = Ulexing.from_utf8_string (content :> latin1s) in file, l...
35.718447
84
0.66567
4409b1b12bd536ec41ac0745d35a40aa54ad83a6
106,062
ml
OCaml
source/analysis/test/integration/typeVariableTest.ml
ddainesefb/pyre-check
dedd67493f4334b6b5bf446260ed364b35b4a6aa
[ "MIT" ]
1
2021-05-17T23:13:52.000Z
2021-05-17T23:13:52.000Z
source/analysis/test/integration/typeVariableTest.ml
gracewgao/pyre-check
7dc72e72c478638c121e415b20a4c76992320e13
[ "MIT" ]
1
2021-08-16T12:11:37.000Z
2021-08-16T12:11:37.000Z
source/analysis/test/integration/typeVariableTest.ml
gracewgao/pyre-check
7dc72e72c478638c121e415b20a4c76992320e13
[ "MIT" ]
null
null
null
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open OUnit2 open IntegrationTest let test_check_bounded_variables context = let assert_type_errors = assert_type_errors ~context...
30.191289
120
0.583366
8a20705367c0c852a9bb4d17c0230e6168f61143
3,438
mli
OCaml
tezt/lib_tezos/tx_rollup_node.mli
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
null
null
null
tezt/lib_tezos/tx_rollup_node.mli
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
null
null
null
tezt/lib_tezos/tx_rollup_node.mli
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2022 Nomadic Labs, <contact@nomadic-labs.com> *) ...
43.518987
79
0.54363
bc8f84af1f5be17fefd94af520f543e931636d3a
90,331
ml
OCaml
CodeHawk/CHJ/jchpre/jCHBcPattern.ml
Databean/codehawk
91bef3806d87d93b4371a4d1c22a7dc8648e2a16
[ "MIT" ]
17
2020-08-17T15:35:57.000Z
2022-03-23T14:40:19.000Z
CodeHawk/CHJ/jchpre/jCHBcPattern.ml
Databean/codehawk
91bef3806d87d93b4371a4d1c22a7dc8648e2a16
[ "MIT" ]
6
2020-07-17T05:43:51.000Z
2021-01-06T03:41:46.000Z
CodeHawk/CHJ/jchpre/jCHBcPattern.ml
sipma/codehawk
e4eeb41fdea6a8467d1892b9467ec54ef04953b0
[ "MIT" ]
3
2020-08-13T23:18:39.000Z
2021-12-11T11:10:06.000Z
(* ============================================================================= CodeHawk Java Analyzer Author: Henny Sipma ------------------------------------------------------------------------------ The MIT License (MIT) Copyright (c) 2005-2020 Kestrel Technology LLC Permission is hereby grante...
48.1252
117
0.567922
af042d6a539b6ed6b0c0665912b82fca84364ead
2,448
mli
OCaml
ocaml-sources/lambda/translmod.mli
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
2
2021-03-03T15:31:36.000Z
2021-03-05T16:01:39.000Z
ocaml-sources/lambda/translmod.mli
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
2
2021-03-03T16:08:23.000Z
2021-03-03T19:31:03.000Z
ocaml-sources/lambda/translmod.mli
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
null
null
null
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
38.25
76
0.531454
bc55280feb199cffc24cab67043a8fa6f7915963
19,692
ml
OCaml
test/test_legacy_bonsai.ml
prekel/bonsai
f346dcc20ae088d5562aa1821e6b0ea64da59dcf
[ "MIT" ]
null
null
null
test/test_legacy_bonsai.ml
prekel/bonsai
f346dcc20ae088d5562aa1821e6b0ea64da59dcf
[ "MIT" ]
null
null
null
test/test_legacy_bonsai.ml
prekel/bonsai
f346dcc20ae088d5562aa1821e6b0ea64da59dcf
[ "MIT" ]
null
null
null
open! Core open! Import (* We need to fake the source-code position because this test is run in two files with different names In particular, we can't just use [print_s ~hide_positions:true] because that only hides line and column numbers, but includes the file name. *) let dummy_source_code_position = Sou...
29.173333
102
0.606541
bc5deb57cb4ec65bc5e08b8f34391e0da9131119
93,582
ml
OCaml
src/parser_utils/flow_ast_differ.ml
jiaweihli/flow
cb9d84618326e0edff4bb2252378e57ef682774c
[ "MIT" ]
null
null
null
src/parser_utils/flow_ast_differ.ml
jiaweihli/flow
cb9d84618326e0edff4bb2252378e57ef682774c
[ "MIT" ]
null
null
null
src/parser_utils/flow_ast_differ.ml
jiaweihli/flow
cb9d84618326e0edff4bb2252378e57ef682774c
[ "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 (* s...
47.049774
100
0.642356
44a4a40950a9bb871f7d562b69155104d0570780
12,848
ml
OCaml
src/Sugar.ml
hhugo/ocamlformat
1c70f7a123d211a087d20af240d4c4a85deaf821
[ "MIT" ]
6
2018-06-26T10:08:18.000Z
2021-12-17T03:01:06.000Z
src/Sugar.ml
hhugo/ocamlformat
1c70f7a123d211a087d20af240d4c4a85deaf821
[ "MIT" ]
1
2022-02-08T19:16:58.000Z
2022-02-09T10:55:37.000Z
src/Sugar.ml
hhugo/ocamlformat
1c70f7a123d211a087d20af240d4c4a85deaf821
[ "MIT" ]
4
2018-04-11T11:35:14.000Z
2021-12-17T03:02:13.000Z
(********************************************************************** * * * OCamlFormat * * * * Copyright (c) 2019-present, ...
37.24058
77
0.563901
44ecf0599f1b63ab21306db0538c4b00b0f283e7
734
mli
OCaml
source/interprocedural_analyses/taint/modelVerifier.mli
mata14/pyre-check
0ba391675e6baafbb6beea4f1809095c53f7a97f
[ "MIT" ]
null
null
null
source/interprocedural_analyses/taint/modelVerifier.mli
mata14/pyre-check
0ba391675e6baafbb6beea4f1809095c53f7a97f
[ "MIT" ]
null
null
null
source/interprocedural_analyses/taint/modelVerifier.mli
mata14/pyre-check
0ba391675e6baafbb6beea4f1809095c53f7a97f
[ "MIT" ]
null
null
null
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open Core open Ast open Analysis (* Exposed for testing. *) val demangle_class_attribute : string -> string val verify_signature ...
25.310345
95
0.726158
bc8f97c63efd7553e084876aea3fd37255647d62
700
mli
OCaml
source/hack_parallel/hack_parallel/utils/hack_path.mli
zhuang-93/pyre-check
460b4c7bd81b152f386d6867c963564e1b20f19c
[ "MIT" ]
5,975
2018-05-11T15:54:32.000Z
2022-03-31T14:38:00.000Z
source/hack_parallel/hack_parallel/utils/hack_path.mli
zhuang-93/pyre-check
460b4c7bd81b152f386d6867c963564e1b20f19c
[ "MIT" ]
524
2018-05-11T16:47:20.000Z
2022-03-22T17:43:06.000Z
source/hack_parallel/hack_parallel/utils/hack_path.mli
zhuang-93/pyre-check
460b4c7bd81b152f386d6867c963564e1b20f19c
[ "MIT" ]
501
2018-05-11T16:46:29.000Z
2022-03-19T04:41:57.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. *) type t = private string val dummy_path: t val make: string -> t val make_unsafe: string -> t val to_string: t -> string val file_...
23.333333
66
0.697143
bc79f910e4e50690bb1724e606f1c5f27f6de207
625
ml
OCaml
data/fa15/1595.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/fa15/1595.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/fa15/1595.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
let rec digitsOfInt n = if n <= 0 then [] else [n mod 10] :: ((digitsOfInt n) / 10);; (* fix let rec digitsOfInt n = if n <= 0 then [] else [n mod 10];; *) (* changed spans (3,25)-(3,61) (3,39)-(3,61) (3,40)-(3,55) (3,41)-(3,52) (3,53)-(3,54) (3,58)-(3,60) *) (* type error slice (2,3)-(3,63) (2,20)-(3,61) (3,2...
12.755102
63
0.4656
bc1ca6e0d0b5e2efeefee3c33a68866cc8b1d75a
411
ml
OCaml
benchmarks/C/sigma/sol161.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
9
2021-06-04T04:38:13.000Z
2021-12-15T05:45:28.000Z
benchmarks/C/sigma/sol161.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
benchmarks/C/sigma/sol161.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
(* sigma(a,b,f) := SIGMA i = a->b with function f(i) *) exception INVALID_RANGE let rec sigma : (int -> int) -> int -> int -> int = let rec sigma_rec : int * int * int * (int -> int) -> int = fun(sum, i, b, f) -> if i < b then sigma_rec(sum + f(i), i + 1, b, f) else if i = b then sum + f(i) else r...
21.631579
60
0.532847
bc625511d0eb10f5ee50e4ba116ca48f7258df2c
778
ml
OCaml
test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/formats-transition/ignored_scan_counters.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/formats-transition/ignored_scan_counters.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/formats-transition/ignored_scan_counters.ml
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
null
null
null
(* TEST * toplevel *) (* Benoit's patch did not support %_[nlNL]; test their behavior *) (* Ignore OCAMLRUNPARAM=b to be reproducible *) Printexc.record_backtrace false;; (* not supported by Printf or Format: fails at runtime *) let () = Printf.printf "%_n" ;; let () = Printf.printf "%_N" ;; let () = Printf.print...
20.473684
66
0.609254
bc0625766cb4926fe6fbf43bf1e0bd82ff68cb56
115,828
ml
OCaml
lib/checker.ml
jckolesar/petr4
e470fb483a18a6135c68ec8b35307a656604a41c
[ "Apache-2.0" ]
null
null
null
lib/checker.ml
jckolesar/petr4
e470fb483a18a6135c68ec8b35307a656604a41c
[ "Apache-2.0" ]
null
null
null
lib/checker.ml
jckolesar/petr4
e470fb483a18a6135c68ec8b35307a656604a41c
[ "Apache-2.0" ]
null
null
null
open Types open Typed open Util open Env (* hack *) module Petr4Error = Error module Petr4Info = Info open Core_kernel open Petr4Error module Error = Petr4Error module Info = Petr4Info let (=) = Stdlib.(=) let (<>) = Stdlib.(<>) let find_decl_opt name decls = let ok decl = match Prog.Declaration.name_opt decl wi...
36.666034
130
0.632956
44e230338cd61cb4ad272cea06d1bad919fc20a3
208
mli
OCaml
libraries/ec2/lib/createImage.mli
skolemlabs/ocaml-aws-pub
50a21c5b825bac43a8cf332b2da405578c416182
[ "BSD-3-Clause" ]
134
2016-01-11T19:35:49.000Z
2022-02-19T15:57:41.000Z
libraries/ec2/lib/createImage.mli
skolemlabs/ocaml-aws-pub
50a21c5b825bac43a8cf332b2da405578c416182
[ "BSD-3-Clause" ]
66
2016-01-12T00:32:47.000Z
2022-03-31T03:34:49.000Z
libraries/ec2/lib/createImage.mli
skolemlabs/ocaml-aws-pub
50a21c5b825bac43a8cf332b2da405578c416182
[ "BSD-3-Clause" ]
33
2016-01-11T23:13:26.000Z
2022-03-28T23:49:11.000Z
open Types type input = CreateImageRequest.t type output = CreateImageResult.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
18.909091
85
0.759615
44ec9519143a3c8c2e707ce7ada5c2e2c76ef569
1,345
mli
OCaml
hphp/hack/src/typing/typing_union.mli
Tiththa/hhvm
d6f984c858544ae716c12413048772f831959307
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/typing_union.mli
Tiththa/hhvm
d6f984c858544ae716c12413048772f831959307
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/typing_union.mli
Tiththa/hhvm
d6f984c858544ae716c12413048772f831959307
[ "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 Typing_defs module Env = Typing_env (** Performs the union of two types. The union is the least upper bound ...
34.487179
76
0.711524
bc20f82610979cfe0fd5bb111e12792d8cb22341
659
ml
OCaml
src/field_intf.ml
kalusao/snarky
262cae8e4271508731479a5821e88e39b5659be3
[ "MIT" ]
null
null
null
src/field_intf.ml
kalusao/snarky
262cae8e4271508731479a5821e88e39b5659be3
[ "MIT" ]
null
null
null
src/field_intf.ml
kalusao/snarky
262cae8e4271508731479a5821e88e39b5659be3
[ "MIT" ]
1
2018-07-02T17:41:20.000Z
2018-07-02T17:41:20.000Z
module type S = sig type t val of_int : int -> t val one : t val zero : t val add : t -> t -> t val sub : t -> t -> t val mul : t -> t -> t val inv : t -> t val square : t -> t val sqrt : t -> t val is_square : t -> bool val equal : t -> t -> bool val size_in_bits : int val print : t -> ...
16.475
44
0.511381
44d11afe84b62c30c4ecf507e816ecd09b8e9f79
26,037
mll
OCaml
hack/parsing/lexer_hack.mll
Shraymonks/flow
430b1c107e8f299a8895063e551caf063dfe8c5a
[ "BSD-3-Clause" ]
null
null
null
hack/parsing/lexer_hack.mll
Shraymonks/flow
430b1c107e8f299a8895063e551caf063dfe8c5a
[ "BSD-3-Clause" ]
null
null
null
hack/parsing/lexer_hack.mll
Shraymonks/flow
430b1c107e8f299a8895063e551caf063dfe8c5a
[ "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. * *) (**********...
34.53183
88
0.348696
bc9cb5945f2a852215272548dd3b67ac58e9563e
6,435
ml
OCaml
test/bin/zone_test.ml
edwintorok/core
2fb1fc69a879006ffaa9ba692cee329291df9ccb
[ "MIT" ]
null
null
null
test/bin/zone_test.ml
edwintorok/core
2fb1fc69a879006ffaa9ba692cee329291df9ccb
[ "MIT" ]
null
null
null
test/bin/zone_test.ml
edwintorok/core
2fb1fc69a879006ffaa9ba692cee329291df9ccb
[ "MIT" ]
null
null
null
open OUnit open Core (* We don't test Feb 29th because generating proper leap year dates is trickier. Also, there are no time zone changes on leap dates. *) let month_limits = Map.Poly.of_alist_exn [ 1, 31; 2, 28; 3, 31; 4, 30; 5, 31; 6, 30; 7, 31; 8, 31; 9, 30; 10, 31; 11, 30; 12, 31 ] le...
32.664975
114
0.646154
bc8376001ee986af68924fc747230287c8e8642c
3,188
mli
OCaml
src/core/Command.mli
reynir/calculon
a49a532ae48f69e0fa3562bddf6f822d28ec9632
[ "MIT" ]
null
null
null
src/core/Command.mli
reynir/calculon
a49a532ae48f69e0fa3562bddf6f822d28ec9632
[ "MIT" ]
null
null
null
src/core/Command.mli
reynir/calculon
a49a532ae48f69e0fa3562bddf6f822d28ec9632
[ "MIT" ]
null
null
null
(** {1 Command Type} A command is a particular rule for reacting to what is said on IRC. Typically, a command takes a {!Core.t} (to be able to answer and perform IRC actions) and an input message, and it decides whether to do something or not based on the message. The command returns a {!res}, whi...
33.208333
104
0.661543
4481664dcab7ac313c95fbcbd20459237049c623
1,575
mli
OCaml
vendor/base_quickcheck/src/bigarray_helpers.mli
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
10
2019-06-25T03:35:58.000Z
2021-12-17T02:52:42.000Z
vendor/base_quickcheck/src/bigarray_helpers.mli
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
3
2018-07-29T20:04:27.000Z
2022-01-03T11:24:59.000Z
vendor/base_quickcheck/src/bigarray_helpers.mli
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
5
2020-10-08T13:26:18.000Z
2021-12-17T03:02:23.000Z
open! Base (** Helpers for working with Bigarrays. These are not in [Base] because it's rare to work with bigarrays other than bigstring. We can move them into a separate library if there is demand. *) module Layout : sig type 'a t = 'a Bigarray.layout (** [offset t] is the index of the lowest-numbered ...
25.819672
90
0.551746
bc6011f99a04987c999e6dea2fb99cb9e5b4e1f8
690
ml
OCaml
data/fa15_min/0241.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15_min/0241.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15_min/0241.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 h t then h else h :: t in let rest' = t in helper (seen', rest') in List.rev (helper ([], l));; (* fix let removeDuplicates l = let rec helper (seen,rest) = matc...
15
66
0.527536
8ab04ff5bd32b87d37c0edf742bff74b77584fed
11,734
ml
OCaml
test/test.ml
leque/ocaml-promise
ad954d463dd31feeac085e46cb7f60e6efbbfa0a
[ "BSD-3-Clause" ]
null
null
null
test/test.ml
leque/ocaml-promise
ad954d463dd31feeac085e46cb7f60e6efbbfa0a
[ "BSD-3-Clause" ]
null
null
null
test/test.ml
leque/ocaml-promise
ad954d463dd31feeac085e46cb7f60e6efbbfa0a
[ "BSD-3-Clause" ]
null
null
null
open OUnit2 let test_construction ctx = let v = 42 in let p1 = Promise.of_val v in let p2 = Promise.of_fun (fun () -> v) in let p3 = Promise.delayed (fun () -> p1) in let p4 = Promise.delayed (fun () -> p2) in let p5 = Promise.delayed (fun () -> p3) in assert_equal v @@ Promise.force p1; assert_equal v...
27.805687
76
0.623317
bc6a83e0e16fe273ee4c29d8f944bbe43c6467aa
2,581
mli
OCaml
src/irmin-unix/resolver.mli
kluvin/irmin
39cf6dcadebe6994b2972cf1f7cf8be31d396eac
[ "0BSD" ]
null
null
null
src/irmin-unix/resolver.mli
kluvin/irmin
39cf6dcadebe6994b2972cf1f7cf8be31d396eac
[ "0BSD" ]
null
null
null
src/irmin-unix/resolver.mli
kluvin/irmin
39cf6dcadebe6994b2972cf1f7cf8be31d396eac
[ "0BSD" ]
null
null
null
(* * Copyright (c) 2013-2021 Thomas Gazagnaire <thomas@gazagnaire.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDE...
31.096386
76
0.692367
bc476b6f50ef3633ad7a25aab27d8e17fcdaea2e
637
ml
OCaml
data/derived/comb/progs/unify/prog6212.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/prog1358.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/fa15/progs/unify/prog1358.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let rec clone x n = if n > 0 then x :: (clone x (n - 1)) else [];; let padZero l1 l2 = let x = List.length l1 in let y = List.length l2 in if x = y then (l1, l2) else if x < y then (((clone 0 (y - x)) @ l1), l2) else (l1, ((clone 0 (x - y)) @ l2));; let rec removeZero l = match l with | [] ->...
26.541667
71
0.536892
bc2e9959f580fcfc55406805f7a971cf4b77d197
2,078
ml
OCaml
source/interprocedural/callResolution.ml
zhuang-93/pyre-check
460b4c7bd81b152f386d6867c963564e1b20f19c
[ "MIT" ]
1
2021-05-17T23:13:52.000Z
2021-05-17T23:13:52.000Z
source/interprocedural/callResolution.ml
zhuang-93/pyre-check
460b4c7bd81b152f386d6867c963564e1b20f19c
[ "MIT" ]
1
2021-08-16T12:11:37.000Z
2021-08-16T12:11:37.000Z
source/interprocedural/callResolution.ml
zhuang-93/pyre-check
460b4c7bd81b152f386d6867c963564e1b20f19c
[ "MIT" ]
1
2021-05-13T13:30:24.000Z
2021-05-13T13:30:24.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 Core open Ast open Analysis open Expression open Pyre let is_local identifier = String.is_prefix ~prefix:"$" identifier let ...
35.220339
100
0.636189
4475d1360bbf1859bf24c0fb51034c385331c644
49,177
ml
OCaml
ag_pathanalysis/batteries/src/batFingerTree.ml
BambooL/AutoGrader
f537d396605d1b943137b1b964c5a2ebecbf2aca
[ "MIT" ]
2
2019-12-05T19:47:42.000Z
2021-05-05T13:41:16.000Z
ag_pathanalysis/batteries/src/batFingerTree.ml
BambooL/AutoGrader
f537d396605d1b943137b1b964c5a2ebecbf2aca
[ "MIT" ]
null
null
null
ag_pathanalysis/batteries/src/batFingerTree.ml
BambooL/AutoGrader
f537d396605d1b943137b1b964c5a2ebecbf2aca
[ "MIT" ]
2
2021-04-20T07:44:02.000Z
2021-04-20T08:38:41.000Z
(* * Copyright (C) 2011 Batteries Included Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ver...
38.813733
144
0.562234
44f45ef49ee7a8bdecf634a96ab925bd6091d8a8
214
ml
OCaml
ocaml-sources/testsuite/tests/typing-modules/normalize_path.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-modules/normalize_path.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-modules/normalize_path.ml
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
null
null
null
(* TEST * expect *) module X = struct module B = List exception B of {x:int} end let _ = X.B {x=2} ;; [%%expect{| module X : sig module B = List exception B of { x : int; } end - : exn = X.B {x = 2} |}]
11.888889
62
0.53271
bc22b232b389c1562ce4fc1df73e7e111236ecc4
4,069
mli
OCaml
vendor/ocaml-lsp-1.4.0/lsp/bin/ocaml/ml.mli
nicobao/caramel
5f77e1db48146ecb69c7ebad72c40c89106b79b6
[ "Apache-2.0" ]
961
2020-09-15T11:01:50.000Z
2022-03-26T00:25:17.000Z
vendor/ocaml-lsp-1.4.0/lsp/bin/ocaml/ml.mli
nicobao/caramel
5f77e1db48146ecb69c7ebad72c40c89106b79b6
[ "Apache-2.0" ]
83
2020-09-27T18:51:24.000Z
2022-03-08T10:57:53.000Z
vendor/ocaml-lsp-1.4.0/lsp/bin/ocaml/ml.mli
nicobao/caramel
5f77e1db48146ecb69c7ebad72c40c89106b79b6
[ "Apache-2.0" ]
26
2020-10-13T10:39:13.000Z
2021-12-07T04:57:33.000Z
open Import module Kind : sig type t = | Intf | Impl type ('intf, 'impl) pair = { intf : 'intf ; impl : 'impl } module Map : sig type 'a t = ('a, 'a) pair type kind val get : 'a t -> kind -> 'a val iter : 'a t -> f:('a -> unit) -> unit val map : 'a t -> f:('a -> 'b) ...
17.538793
63
0.521258
bc4acad0b7f35469013850b5431c96d3964d31ff
347
mli
OCaml
src/dune_rules/utop.mli
marsam/dune
8a3d7f2f2015b71384caa07226d1a89dba9d6c25
[ "MIT" ]
2
2022-03-03T01:38:24.000Z
2022-03-03T01:54:36.000Z
src/dune_rules/utop.mli
marsam/dune
8a3d7f2f2015b71384caa07226d1a89dba9d6c25
[ "MIT" ]
1
2021-11-08T19:54:28.000Z
2021-11-08T19:54:28.000Z
src/dune_rules/utop.mli
marsam/dune
8a3d7f2f2015b71384caa07226d1a89dba9d6c25
[ "MIT" ]
1
2017-12-07T21:21:12.000Z
2017-12-07T21:21:12.000Z
(** Utop rules *) open! Dune_engine open! Stdune (** Return the name of the utop target inside a directory where some libraries are defined. *) val utop_exe : string val is_utop_dir : Path.Build.t -> bool val libs_under_dir : Super_context.t -> db:Lib.DB.t -> dir:Path.t -> Lib.L.t val setup : Super_context.t -...
23.133333
78
0.697406
4470d132c8788b2f7cab767444af6930c6121ad3
1,349
ml
OCaml
src/dash_array.ml
myoshida/bs-dash
72b37a119ee933a421add129c0103fd5138a1206
[ "MIT" ]
null
null
null
src/dash_array.ml
myoshida/bs-dash
72b37a119ee933a421add129c0103fd5138a1206
[ "MIT" ]
null
null
null
src/dash_array.ml
myoshida/bs-dash
72b37a119ee933a421add129c0103fd5138a1206
[ "MIT" ]
null
null
null
external concat: 'a array -> 'a array -> 'a array = "concat" [@@bs.send] external concat3: 'a array -> 'a array -> 'a array -> 'a array = "concat" [@@bs.send] external concat4: 'a array -> 'a array -> 'a array -> 'a array -> 'a array = "concat" [@@bs.send] external every: 'a array -> ('a -> bool [@bs.uncurry])...
28.104167
75
0.555967
4494bc443d2254cb682c4e2ada9a2f178575956a
3,487
ml
OCaml
infer/src/labs/ResourceLeaks.ml
octomarat/infer
aa6fe7963cdb6b842adcf7241f5383c30cb1a835
[ "MIT" ]
null
null
null
infer/src/labs/ResourceLeaks.ml
octomarat/infer
aa6fe7963cdb6b842adcf7241f5383c30cb1a835
[ "MIT" ]
8
2021-05-12T00:06:23.000Z
2022-02-27T11:21:00.000Z
infer/src/labs/ResourceLeaks.ml
octomarat/infer
aa6fe7963cdb6b842adcf7241f5383c30cb1a835
[ "MIT" ]
null
null
null
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open! IStd module F = Format module L = Logging module TransferFunctions (CFG : ProcCfg.S) = struct module CFG = CFG module Do...
37.494624
99
0.721537
bc752e7c7dedc58a62ff8c13719a53435e3f5fe2
2,947
mli
OCaml
source/interprocedural_analyses/taint/issue.mli
0xgpapad/pyre-check
2cdc4ba237753e489fdc809339a212b8b54fdacd
[ "MIT" ]
1
2022-02-10T10:51:32.000Z
2022-02-10T10:51:32.000Z
source/interprocedural_analyses/taint/issue.mli
0xgpapad/pyre-check
2cdc4ba237753e489fdc809339a212b8b54fdacd
[ "MIT" ]
null
null
null
source/interprocedural_analyses/taint/issue.mli
0xgpapad/pyre-check
2cdc4ba237753e489fdc809339a212b8b54fdacd
[ "MIT" ]
null
null
null
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open Core open Ast open Statement open Domains open Interprocedural module Flow : sig type t = { source_taint: ForwardTain...
22.496183
97
0.680353
8ac8e3a6d5e00f6209043edf033fc6149fa68bec
2,543
ml
OCaml
lib/privoxyConnection.ml
avsm/signpostd
b7f43919531626a19f472b180ad4e8dc52955eea
[ "0BSD" ]
1
2017-09-28T10:59:18.000Z
2017-09-28T10:59:18.000Z
lib/privoxyConnection.ml
avsm/signpostd
b7f43919531626a19f472b180ad4e8dc52955eea
[ "0BSD" ]
null
null
null
lib/privoxyConnection.ml
avsm/signpostd
b7f43919531626a19f472b180ad4e8dc52955eea
[ "0BSD" ]
null
null
null
(* * Copyright (c) 2012 Charalampos Rotsos <cr409@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 I...
34.835616
75
0.628392
bc4ed301adbb8113d93cfb5102f3d8431a419f8b
3,836
ml
OCaml
src/ocaml-3.12.0/camlp4/Camlp4/Struct/Grammar/Search.ml
mzp/coq-for-ipad
4fb3711723e2581a170ffd734e936f210086396e
[ "MIT" ]
1
2015-01-27T00:11:26.000Z
2015-01-27T00:11:26.000Z
src/ocaml-3.12.0/camlp4/Camlp4/Struct/Grammar/Search.ml
mzp/coq-for-ipad
4fb3711723e2581a170ffd734e936f210086396e
[ "MIT" ]
null
null
null
src/ocaml-3.12.0/camlp4/Camlp4/Struct/Grammar/Search.ml
mzp/coq-for-ipad
4fb3711723e2581a170ffd734e936f210086396e
[ "MIT" ]
null
null
null
(****************************************************************************) (* *) (* Objective Caml *) (* *) (* ...
39.958333
78
0.429875
8aa05a7f1c4b24aabdadcfdaa99deb4d341b82dd
915
ml
OCaml
libraries/rds/lib/addRoleToDBCluster.ml
UnrealAkama/ocaml-aws
6947ff1acc4c911702d25b462bb6640cd70997d4
[ "BSD-3-Clause" ]
null
null
null
libraries/rds/lib/addRoleToDBCluster.ml
UnrealAkama/ocaml-aws
6947ff1acc4c911702d25b462bb6640cd70997d4
[ "BSD-3-Clause" ]
null
null
null
libraries/rds/lib/addRoleToDBCluster.ml
UnrealAkama/ocaml-aws
6947ff1acc4c911702d25b462bb6640cd70997d4
[ "BSD-3-Clause" ]
null
null
null
open Types open Aws type input = AddRoleToDBClusterMessage.t type output = unit type error = Errors_internal.t let service = "rds" let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region))) (List.append [...
30.5
76
0.622951
4457b9f209130a5c09abeecf93317ca397508a7b
1,586
ml
OCaml
lib_test/create_statuses.ml
dra27/ocaml-github
32e8cd900cc06016996298c92692a2c84832bde1
[ "0BSD" ]
81
2015-05-22T02:19:25.000Z
2022-02-03T03:18:13.000Z
lib_test/create_statuses.ml
tmcgilchrist/ocaml-github
ec44bc14f8d9ebebd050ffba4f6bf01df6ad97cb
[ "0BSD" ]
121
2015-04-26T19:16:03.000Z
2022-01-25T22:36:46.000Z
lib_test/create_statuses.ml
tmcgilchrist/ocaml-github
ec44bc14f8d9ebebd050ffba4f6bf01df6ad97cb
[ "0BSD" ]
42
2015-04-26T19:12:15.000Z
2021-08-24T18:40:15.000Z
open Printf let token = Config.access_token let print_statuses sl = List.iter (fun s -> let open Github_t in eprintf "status %Ld: %s %s %s %s %s\n%!" s.status_id (Github_j.string_of_status_state s.status_state) (match s.status_target_url with None -> "\"\"" | Some x -> x) (match s.st...
32.367347
72
0.654477
bc5b36684057341abcca60550bc1b393cbc74274
6,241
ml
OCaml
hphp/hack/src/typing/tast_check/type_serialization_identity_check.ml
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/tast_check/type_serialization_identity_check.ml
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/tast_check/type_serialization_identity_check.ml
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "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 Core_kernel open Typing_defs (* Replace unserialized information from the type with dummy information. For exa...
36.284884
80
0.612081
443c5b1c3bc42d95058e3a10fc7d389d4ad236c4
4,554
mli
OCaml
src/Cmts.mli
trefis/ocamlformat
42ce8535faa81507991e9d1ca599aafb5d75d9ea
[ "MIT" ]
6
2018-06-26T10:08:18.000Z
2021-12-17T03:01:06.000Z
src/Cmts.mli
trefis/ocamlformat
42ce8535faa81507991e9d1ca599aafb5d75d9ea
[ "MIT" ]
1
2022-02-08T19:16:58.000Z
2022-02-09T10:55:37.000Z
src/Cmts.mli
trefis/ocamlformat
42ce8535faa81507991e9d1ca599aafb5d75d9ea
[ "MIT" ]
4
2018-04-11T11:35:14.000Z
2021-12-17T03:02:13.000Z
(********************************************************************** * * * OCamlFormat * * * * Copyright (c) 2017-present, ...
34.5
76
0.598814
bc3c43ad9519c2cd44f4bcdab4747c82cecccf1c
31,736
ml
OCaml
src/hack_forked/watchman/watchman.ml
Qdigital/flow
4b65aba536a65ed259b7a9ebc202bf0d2a4959aa
[ "MIT" ]
1
2020-06-21T01:14:46.000Z
2020-06-21T01:14:46.000Z
src/hack_forked/watchman/watchman.ml
Qdigital/flow
4b65aba536a65ed259b7a9ebc202bf0d2a4959aa
[ "MIT" ]
2
2021-05-11T22:39:32.000Z
2021-09-02T16:14:18.000Z
src/hack_forked/watchman/watchman.ml
Qdigital/flow
4b65aba536a65ed259b7a9ebc202bf0d2a4959aa
[ "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 Base open Utils module Let_syntax = Lwt.Infix.Let_syntax (* * Module for us to interface with Watchman, a file watching serv...
36.311213
156
0.66549
bc41e5fa37d3f410ef37c57f70037d93d10dd5ef
273
mli
OCaml
tidy_email/src/list_backend.mli
jsthomas/tidy-email
31af351cd333f47d1a6ad2383dc6c404bf604203
[ "MIT" ]
11
2021-08-30T05:50:13.000Z
2021-09-25T09:34:41.000Z
tidy_email/src/list_backend.mli
jsthomas/tidy-email
31af351cd333f47d1a6ad2383dc6c404bf604203
[ "MIT" ]
8
2021-09-24T10:51:43.000Z
2021-09-25T15:18:47.000Z
tidy_email/src/list_backend.mli
jsthomas/tidy_email
31af351cd333f47d1a6ad2383dc6c404bf604203
[ "MIT" ]
1
2021-09-24T11:10:03.000Z
2021-09-24T11:10:03.000Z
(** Clients of tidy_email may want a mock email backend suitable for unit tests. The backend described in this module accumulates messages in a list for later analysis. *) type config = Email.t list ref val send : config -> Email.t -> (unit, string) Lwt_result.t
34.125
68
0.728938
bc985488faa5b7f46385716e35804fc81d6c9ea7
2,844
ml
OCaml
lib_spec/docker.ml
dra27/obuilder
dcaa9d9b82b344e74562755124b1b2afc363fd76
[ "Apache-2.0" ]
null
null
null
lib_spec/docker.ml
dra27/obuilder
dcaa9d9b82b344e74562755124b1b2afc363fd76
[ "Apache-2.0" ]
null
null
null
lib_spec/docker.ml
dra27/obuilder
dcaa9d9b82b344e74562755124b1b2afc363fd76
[ "Apache-2.0" ]
null
null
null
type ctx = { user : Spec.user; } let default_ctx = { user = Spec.root; } (* Note: could do with some escaping here, but the rules are not clear. *) let pp_pair f (k, v) = Fmt.pf f "%s=%s" k v let pp_wrap = Fmt.using (String.split_on_char '\n') Fmt.(list ~sep:(any " \\@\n ") (using String.trim string))...
32.318182
101
0.564346
bc2ab283a489993775ba519cf8e70a8ab0484158
149
ml
OCaml
src/gen/islId_sigs.ml
gaeldeest/ocaml-isl
3a1d941cc7b799b3849381bd2fdc3d20235bc0c9
[ "MIT" ]
6
2015-09-08T23:00:25.000Z
2016-09-04T15:59:52.000Z
src/gen/islId_sigs.ml
gaeldeest/ocaml-isl
3a1d941cc7b799b3849381bd2fdc3d20235bc0c9
[ "MIT" ]
null
null
null
src/gen/islId_sigs.ml
gaeldeest/ocaml-isl
3a1d941cc7b799b3849381bd2fdc3d20235bc0c9
[ "MIT" ]
1
2018-10-21T18:31:35.000Z
2018-10-21T18:31:35.000Z
open Unsigned open Types module type S = sig module Types : Types.SIG val dump : Types.id -> unit val get_name : Types.id -> string end
16.555556
37
0.66443
44d805a0d141b424e1470d37bd75fcb37a3b7b3e
20,180
ml
OCaml
data/derived/comb/progs/unify/prog8852.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
4
2017-07-04T22:30:05.000Z
2021-03-29T14:44:52.000Z
data/derived/fa15/progs/unify/prog4070.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/fa15/progs/unify/prog4070.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*) (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*) (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*) (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*) (*XXX...
33.577371
292
0.644797
bc937a2e7e584324871d8463098df396c9e990bf
721
ml
OCaml
data/derived/comb/progs/cnstr/prog0298.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/cnstr/prog0298.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/cnstr/prog0298.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 | Thresh of expr* expr* expr* expr;; let pi = 4.0 *. (atan 1.0);; let rec eval (e,x,y) = match e with | VarX -> x | VarY -> y | Sine e -> sin (pi *. (eval (e, x, y))) | Cosine e -> cos (p...
26.703704
79
0.456311
bc94ceb33de5b3bda9676c28caaecf656e3efe71
7,765
mli
OCaml
sledge/src/fol.mli
asadrockk1234/infer
06489dced05bd0e7d19015c0375721885d6f2c1c
[ "MIT" ]
1
2020-08-28T14:00:56.000Z
2020-08-28T14:00:56.000Z
sledge/src/fol.mli
asadrockk1234/infer
06489dced05bd0e7d19015c0375721885d6f2c1c
[ "MIT" ]
null
null
null
sledge/src/fol.mli
asadrockk1234/infer
06489dced05bd0e7d19015c0375721885d6f2c1c
[ "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. *) (** Variables *) module Var : sig type t [@@deriving compare, equal, sexp] type strength = t -> [`Universal | `Existential | `A...
25.797342
77
0.578622
bc173c4a20384806bc3c3aea9e103aa06247c596
2,057
ml
OCaml
data_structures/Queue/OCaml/queue.ml
jeremie-gauthier/al-go-rithms
ca7410555704f949fd65bb4d99457546f3fe6c62
[ "CC0-1.0" ]
1,253
2017-06-06T07:19:25.000Z
2022-03-30T17:07:58.000Z
data_structures/Queue/OCaml/queue.ml
jeremie-gauthier/al-go-rithms
ca7410555704f949fd65bb4d99457546f3fe6c62
[ "CC0-1.0" ]
554
2017-09-29T18:56:01.000Z
2022-02-21T15:48:13.000Z
data_structures/Queue/OCaml/queue.ml
jeremie-gauthier/al-go-rithms
ca7410555704f949fd65bb4d99457546f3fe6c62
[ "CC0-1.0" ]
2,226
2017-09-29T19:59:59.000Z
2022-03-25T08:59:55.000Z
(* Data structure signature/interface. *) module type QUEUE = sig (* Queue type *) type 't queue (* Constructor for the empty queue. *) val empty : unit -> 't queue (* Function to check whether the queue is empty. *) val is_empty : 't queue -> bool (* Function to push something to the b...
27.065789
119
0.550802
bc0689fd68f775a0682f3b0be14308508dc903ce
10,719
ml
OCaml
libraries/ec2/lib/describeSpotPriceHistory.ml
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
1
2020-05-21T19:12:04.000Z
2020-05-21T19:12:04.000Z
libraries/ec2/lib/describeSpotPriceHistory.ml
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
null
null
null
libraries/ec2/lib/describeSpotPriceHistory.ml
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
null
null
null
open Types[@@ocaml.warning "-33"] open Aws.BaseTypes[@@ocaml.warning "-33"] open Aws module DescribeSpotPriceHistoryRequest = struct type t = { filters: FilterList.t [@ocaml.doc "<p>One or more filters.</p> <ul> <li> <p> <code>availability-zone</code> - The Availability Zone for whic...
45.807692
990
0.562366
af565ce8dde375c241285ccb3a59e72041be9b33
15,166
ml
OCaml
hphp/hack/src/utils/process/future.ml
tahmidbintaslim/hhvm
64adfea366cfcd3488bddd4b482d5d9963817db8
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/utils/process/future.ml
tahmidbintaslim/hhvm
64adfea366cfcd3488bddd4b482d5d9963817db8
[ "PHP-3.01", "Zend-2.0" ]
2
2020-10-11T22:54:12.000Z
2021-07-20T22:12:10.000Z
hphp/hack/src/utils/process/future.ml
tahmidbintaslim/hhvm
64adfea366cfcd3488bddd4b482d5d9963817db8
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(* * Copyright (c) 2016, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) (** * We shell out hg commands, so its computation is out-of-process, and * return a Future for the result. * * ...
34.784404
81
0.650798
8ae6d176eb2a3d584222d4b38e5a10996b54fbcf
4,144
ml
OCaml
src/masterdb.ml
OlivierNicole/okra
dd115a9ed1c2fcd6d6659bf9ea3d69483db23205
[ "MIT" ]
13
2021-07-15T11:14:24.000Z
2022-01-25T12:17:43.000Z
src/masterdb.ml
OlivierNicole/okra
dd115a9ed1c2fcd6d6659bf9ea3d69483db23205
[ "MIT" ]
72
2021-07-27T17:09:37.000Z
2022-02-21T11:53:34.000Z
src/masterdb.ml
OlivierNicole/okra
dd115a9ed1c2fcd6d6659bf9ea3d69483db23205
[ "MIT" ]
8
2021-07-27T16:08:39.000Z
2022-01-26T16:23:21.000Z
(* * Copyright (c) 2021 Magnus Skjegstad <magnus@skjegstad.com> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS I...
30.925373
83
0.637066
bc26ecb2e8f362e75df28274e2f6b70a477d49c7
474
mli
OCaml
src/dune_lang/atom.mli
mndrix/dune
30b84ff370351b13f05db34fd952dfe5d0249bcb
[ "MIT" ]
1,056
2018-01-17T23:27:17.000Z
2022-03-28T08:28:13.000Z
src/dune_lang/atom.mli
mndrix/dune
30b84ff370351b13f05db34fd952dfe5d0249bcb
[ "MIT" ]
3,824
2018-01-17T15:09:57.000Z
2022-03-31T14:46:35.000Z
src/dune_lang/atom.mli
mndrix/dune
30b84ff370351b13f05db34fd952dfe5d0249bcb
[ "MIT" ]
314
2018-01-21T13:57:15.000Z
2022-03-24T16:17:13.000Z
open Stdune type t = private A of string [@@unboxed] val equal : t -> t -> bool val is_valid : string -> bool val of_string : string -> t val to_string : t -> string (** [parse s] is [Some (a:t)] if [s] can be a valid atom according to [is_valid] otherwise it is [None] *) val parse : string -> t option val o...
16.928571
80
0.626582
441ba0c2cb3c4e7d9b293d62a2bf7d12c1ebfbf4
19,764
ml
OCaml
hphp/hack/src/client/clientArgs.ml
escherlat/hhvm
7814b9842f3d15876884e6e3b62f2d00821c1c17
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/client/clientArgs.ml
escherlat/hhvm
7814b9842f3d15876884e6e3b62f2d00821c1c17
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/client/clientArgs.ml
escherlat/hhvm
7814b9842f3d15876884e6e3b62f2d00821c1c17
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(** * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the "hack" directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * *) open Core ope...
36.873134
106
0.619611
44755faea3a8cb976417f649d64c731a46f486e2
591
ml
OCaml
posix-uname/src/types/posix_uname_types.ml
wizeman/ocaml-posix
d712c42aad7fcc40e74230d6146c1b62cfaca811
[ "MIT" ]
28
2019-12-21T05:45:06.000Z
2021-11-17T10:48:57.000Z
posix-uname/src/types/posix_uname_types.ml
wizeman/ocaml-posix
d712c42aad7fcc40e74230d6146c1b62cfaca811
[ "MIT" ]
6
2020-04-12T22:01:05.000Z
2021-06-29T13:21:33.000Z
posix-uname/src/types/posix_uname_types.ml
wizeman/ocaml-posix
d712c42aad7fcc40e74230d6146c1b62cfaca811
[ "MIT" ]
2
2020-04-12T21:55:33.000Z
2021-04-30T12:32:00.000Z
module Constants = Posix_uname_constants.Def (Posix_uname_generated_constants) include Constants module Def (S : Cstubs.Types.TYPE) = struct module Utsname = struct type t = unit let t = S.structure "utsname" let sysname = S.field t "sysname" (S.array sysname_len S.char) let nodename = S.field t "no...
34.764706
78
0.700508