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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aab608be1bdcf029114aec63d9673002aca4fe83 | 2,157 | ml | OCaml | src/interpret/symbolic_inst.ml | Harvard-PRINCESS/Cassiopea-Release | 3fc731463575e9cc6e614f2bcfd11215b7651b5f | [
"BSD-3-Clause"
] | null | null | null | src/interpret/symbolic_inst.ml | Harvard-PRINCESS/Cassiopea-Release | 3fc731463575e9cc6e614f2bcfd11215b7651b5f | [
"BSD-3-Clause"
] | null | null | null | src/interpret/symbolic_inst.ml | Harvard-PRINCESS/Cassiopea-Release | 3fc731463575e9cc6e614f2bcfd11215b7651b5f | [
"BSD-3-Clause"
] | null | null | null | (****************************************************************************************
BSD License
Copyright (c) 2016-2019, Harvard University
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Red... | 35.95 | 89 | 0.711637 |
bcf26a86d36c3fb78a56b1540524e9a2c96856e4 | 27,608 | ml | OCaml | monitor/monitor.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | monitor/monitor.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | monitor/monitor.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 43.205008 | 229 | 0.715807 |
17de8964567e551f5cf125d5cf187b2f383452ae | 8,469 | mli | OCaml | duniverse/opam-core.2.1.0-beta/src/core/opamProcess.mli | djs55/duniverse | ef098fccdd0bcc73b851f1abdf9f9d5111c49e16 | [
"ISC"
] | null | null | null | duniverse/opam-core.2.1.0-beta/src/core/opamProcess.mli | djs55/duniverse | ef098fccdd0bcc73b851f1abdf9f9d5111c49e16 | [
"ISC"
] | null | null | null | duniverse/opam-core.2.1.0-beta/src/core/opamProcess.mli | djs55/duniverse | ef098fccdd0bcc73b851f1abdf9f9d5111c49e16 | [
"ISC"
] | null | null | null | (**************************************************************************)
(* *)
(* Copyright 2012-2018 OCamlPro *)
(* Copyright 2012 INRIA *)
(* ... | 39.02765 | 81 | 0.607274 |
178fdfb8411a647f87a8ef23cdf9a267d7dc1bd3 | 733 | ml | OCaml | library/client_library/Router.ml | anmonteiro/ocaml-oidc | 6af26046459f47864554c6b9cadac89f7fef2506 | [
"BSD-3-Clause"
] | 29 | 2020-08-24T07:52:05.000Z | 2022-03-10T20:14:45.000Z | library/client_library/Router.ml | anmonteiro/ocaml-oidc | 6af26046459f47864554c6b9cadac89f7fef2506 | [
"BSD-3-Clause"
] | 13 | 2020-12-15T07:03:11.000Z | 2022-03-16T20:05:42.000Z | library/client_library/Router.ml | anmonteiro/ocaml-oidc | 6af26046459f47864554c6b9cadac89f7fef2506 | [
"BSD-3-Clause"
] | 4 | 2020-12-14T13:41:45.000Z | 2022-03-10T03:04:50.000Z | let auth_callback_route : (Morph.Server.handler, 'a) Routes.target =
Routes.(s "auth" / s "cb" /? nil)
let auth_route : (string -> 'a, 'b) Routes.target =
Routes.(s "auth" / str /? nil)
let secure_route : (Morph.Server.handler, 'a) Routes.target =
Routes.(s "secure" /? nil)
let routes ~providers =
Routes.(
... | 30.541667 | 69 | 0.634379 |
aaa774dc0d637b8eb8b31bb4ebf5907bd0a14937 | 11,561 | mli | OCaml | hphp/hack/src/utils/errors.mli | ng0ctrinh/hhvm | 3445a26e54faba5828eb6b8f6e74e52b472cf282 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-03-29T13:00:00.000Z | 2022-03-29T13:00:00.000Z | hphp/hack/src/utils/errors.mli | ng0ctrinh/hhvm | 3445a26e54faba5828eb6b8f6e74e52b472cf282 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/errors.mli | ng0ctrinh/hhvm | 3445a26e54faba5828eb6b8f6e74e52b472cf282 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
type error
ty... | 43.958175 | 83 | 0.69302 |
aa88ded2041aad573d11e0015a61016e11e9a65b | 13,165 | ml | OCaml | test/print/print.ml | ulrikstrid/odoc | 05241eb916718d7c59b9c662c1e4ba62c417211f | [
"0BSD"
] | null | null | null | test/print/print.ml | ulrikstrid/odoc | 05241eb916718d7c59b9c662c1e4ba62c417211f | [
"0BSD"
] | null | null | null | test/print/print.ml | ulrikstrid/odoc | 05241eb916718d7c59b9c662c1e4ba62c417211f | [
"0BSD"
] | null | null | null | type sexp = Sexplib.Sexp.t =
| Atom of string
| List of sexp list
module Root_to_sexp =
struct
module Root = Model.Root
let odoc_file : Root.Odoc_file.t -> sexp = function
| Page p ->
List [Atom "page"; Atom p]
| Compilation_unit {name; hidden} ->
let hidden = if hidden then [Atom "hidde... | 35.200535 | 80 | 0.609115 |
17d6ba6e1dc4d5a68ad006d4c71cc33a22f2e053 | 14,430 | ml | OCaml | hphp/hack/src/hh_oxidize/convert_type_decl.ml | gaurav1086/hhvm | 44b0edc7a9186a4ccc04ecbba0f5cf52619d37e0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hh_oxidize/convert_type_decl.ml | gaurav1086/hhvm | 44b0edc7a9186a4ccc04ecbba0f5cf52619d37e0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hh_oxidize/convert_type_decl.ml | gaurav1086/hhvm | 44b0edc7a9186a4ccc04ecbba0f5cf52619d37e0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Asttypes
open Longident
open Parsetree
open Printf
open Utils
open Output
open State
open Convert_longid... | 34.033019 | 85 | 0.601733 |
17dae17d75572bb5e7dbb9dde41a421dd58bef74 | 382 | mli | OCaml | esy-package-config/NpmFormula.mli | mariusschulz/esy | 6dec2d1562e4aa54325368050ead0ff8fe5181ac | [
"BSD-2-Clause"
] | null | null | null | esy-package-config/NpmFormula.mli | mariusschulz/esy | 6dec2d1562e4aa54325368050ead0ff8fe5181ac | [
"BSD-2-Clause"
] | null | null | null | esy-package-config/NpmFormula.mli | mariusschulz/esy | 6dec2d1562e4aa54325368050ead0ff8fe5181ac | [
"BSD-2-Clause"
] | null | null | null | type t = Req.t list
val empty : t
val override : t -> t -> t
val find : name:string -> t -> Req.t option
val pp : t Fmt.t
include S.COMPARABLE with type t := t
include S.JSONABLE with type t := t
module Override : sig
type t = Req.t StringMap.Override.t
include S.COMPARABLE with type t := t
include S.PRINTAB... | 20.105263 | 43 | 0.670157 |
177872334f29a2acb561b59d500f65b22ea2f727 | 1,884 | ml | OCaml | interprocedural_analyses/taint/taint.ml | GreyElaina/pyre-check | abcb5daa64c38a25aed9ab238bb61290444ab06c | [
"MIT"
] | null | null | null | interprocedural_analyses/taint/taint.ml | GreyElaina/pyre-check | abcb5daa64c38a25aed9ab238bb61290444ab06c | [
"MIT"
] | null | null | null | interprocedural_analyses/taint/taint.ml | GreyElaina/pyre-check | abcb5daa64c38a25aed9ab238bb61290444ab06c | [
"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
module AccessPath = AccessPath
module BackwardAnalysis = BackwardAnalysis
module CallGraphBuilder = CallGraphBuilder
modu... | 28.545455 | 87 | 0.729299 |
1716f31221cadc5832961db3364391e31d1c44b4 | 1,376 | ml | OCaml | src/index.ml | argp/oclang | 63a99d696e362a20d185c9bc75a82ccbaeb2014d | [
"BSD-2-Clause"
] | 1 | 2018-04-23T09:47:02.000Z | 2018-04-23T09:47:02.000Z | src/index.ml | invrsi/oclang | 63a99d696e362a20d185c9bc75a82ccbaeb2014d | [
"BSD-2-Clause"
] | null | null | null | src/index.ml | invrsi/oclang | 63a99d696e362a20d185c9bc75a82ccbaeb2014d | [
"BSD-2-Clause"
] | 1 | 2020-09-11T01:27:59.000Z | 2020-09-11T01:27:59.000Z |
(*
Copyright (c) 2013, Sam Thomas All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following di... | 44.387097 | 75 | 0.802326 |
aaa035ea47988b54250bb68ef58bd9b543470cb7 | 746 | ml | OCaml | src/ppx_testify.ml | ghilesZ/Testify | dee21750b6551cbd102c44a40d1153d16fa86a85 | [
"MIT"
] | 5 | 2020-08-17T12:41:49.000Z | 2022-01-23T16:56:23.000Z | src/ppx_testify.ml | ghilesZ/Testify | dee21750b6551cbd102c44a40d1153d16fa86a85 | [
"MIT"
] | 3 | 2022-01-20T12:36:00.000Z | 2022-02-03T20:06:15.000Z | src/ppx_testify.ml | ghilesZ/Testify | dee21750b6551cbd102c44a40d1153d16fa86a85 | [
"MIT"
] | null | null | null | let args =
let open Satisfying in
[ ("-nb", Arg.Int (( := ) number), "Sets the number of runs per test")
; ("-log", Arg.Unit Log.set_output, "Enables the generation of a report")
; ("-seed", Arg.Int gen_set_seed, "Sets the random seed")
; ( "-cover_size"
, Arg.Int Gegen.set_size
, "Sets the maximum si... | 37.3 | 75 | 0.670241 |
aac66b7ed2c5c78e09be7fa9eebb3c0b703c189c | 1,088 | mli | OCaml | lib/candidate.mli | co-dan/dmlenu | dadac183e0f8032957acc4196e65e464f970464f | [
"MIT"
] | null | null | null | lib/candidate.mli | co-dan/dmlenu | dadac183e0f8032957acc4196e65e464f970464f | [
"MIT"
] | null | null | null | lib/candidate.mli | co-dan/dmlenu | dadac183e0f8032957acc4196e65e464f970464f | [
"MIT"
] | null | null | null | (** Type of candidates *)
type t = {
display: string;
(** How to display the candidate to the user. *)
real: string;
(** What information it represents *)
doc : string;
(** Additional information that may be displayed to the user. *)
completion: string;
(** What should become of the inputbox after the ... | 34 | 74 | 0.693015 |
aaab9de2a3f9870c1d0863eb8b8713bb8be8c4ae | 8,093 | ml | OCaml | graphql/test/introspection_test.ml | emillon/ocaml-graphql-server | 940e86f9ff1a017be2ff64b3a35c71804d9a4729 | [
"MIT"
] | null | null | null | graphql/test/introspection_test.ml | emillon/ocaml-graphql-server | 940e86f9ff1a017be2ff64b3a35c71804d9a4729 | [
"MIT"
] | null | null | null | graphql/test/introspection_test.ml | emillon/ocaml-graphql-server | 940e86f9ff1a017be2ff64b3a35c71804d9a4729 | [
"MIT"
] | null | null | null | open Graphql
let test_query schema query = Test_common.test_query schema () query
let suite =
[
( "__schema: not deprecated",
`Quick,
fun () ->
let schema =
Schema.(
schema
[
field "not-deprecated" ~deprecated:NotDeprecated ~typ:string
... | 29.974074 | 79 | 0.266527 |
17a12bcb2c92dfb3b16d0184ad9afea7f5c475b0 | 10,453 | ml | OCaml | src/lib/mina_base/transaction_union_payload.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/mina_base/transaction_union_payload.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/mina_base/transaction_union_payload.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | (* transaction_union_payload.ml *)
[%%import "/src/config.mlh"]
open Core_kernel
open Currency
[%%ifdef consensus_mechanism]
open Snark_params.Tick
[%%endif]
open Signature_lib
module Tag = Transaction_union_tag
module Body = struct
type ('tag, 'public_key, 'token_id, 'amount, 'bool) t_ =
{ tag : 'tag
... | 29.696023 | 80 | 0.655123 |
1792b97db871d17741d10faed2d5b508c9d39fda | 97 | mli | OCaml | test/pure/negative/impure1.mli | n-osborne/gospel | 0e89b4a85620a1ae4164c313b9c5790cfc885db4 | [
"MIT"
] | 42 | 2020-11-20T17:18:32.000Z | 2022-01-17T23:22:55.000Z | test/pure/negative/impure1.mli | n-osborne/gospel | 0e89b4a85620a1ae4164c313b9c5790cfc885db4 | [
"MIT"
] | 63 | 2020-11-23T13:12:17.000Z | 2022-03-31T13:53:17.000Z | test/pure/negative/impure1.mli | christinerose/gospel | 798464c971008bdb6b4ca28ef57299c9848d4d49 | [
"MIT"
] | 7 | 2020-11-23T01:42:06.000Z | 2022-03-17T13:23:53.000Z |
type t
(*@ mutable model view: int *)
val f: t -> int
(*@ y = f x
pure
modifies x *)
| 9.7 | 30 | 0.494845 |
1761fe674e23fad15e1513d86c8266e287a55562 | 1,243 | ml | OCaml | tests/types/class/tyfam-equality-instance.ml | aiverson/amulet | b725df9b1b634b791a47a0bc8056e24f122b57ac | [
"BSD-3-Clause"
] | 1 | 2021-11-23T13:07:37.000Z | 2021-11-23T13:07:37.000Z | tests/types/class/tyfam-equality-instance.ml | aiverson/amulet | b725df9b1b634b791a47a0bc8056e24f122b57ac | [
"BSD-3-Clause"
] | null | null | null | tests/types/class/tyfam-equality-instance.ml | aiverson/amulet | b725df9b1b634b791a47a0bc8056e24f122b57ac | [
"BSD-3-Clause"
] | null | null | null | type id 'a = Id of 'a
type const 'a 'b = Const of 'a
type (:+:) 'f 'g 'a = L of 'f 'a | R of 'g 'a
type (:*:) 'f 'g 'a = P of 'f 'a * 'g 'a
type fix 'f = Fix of 'f (fix 'f)
class functor 'f begin
val (<$>) : ('a -> 'b) -> 'f 'a -> 'f 'b
end
class functor (rep 't) => recursive 't begin
type rep : type -> type
va... | 22.196429 | 61 | 0.507643 |
176680dee46999ca867a1c9c519988a35db5c8cf | 1,296 | ml | OCaml | src/middle/Index.ml | rok-cesnovar/stanc3 | e1406ded3a77eaae20869c7dfee081fe6f0164da | [
"BSD-3-Clause"
] | null | null | null | src/middle/Index.ml | rok-cesnovar/stanc3 | e1406ded3a77eaae20869c7dfee081fe6f0164da | [
"BSD-3-Clause"
] | 3 | 2020-04-02T21:05:43.000Z | 2021-07-12T16:46:50.000Z | src/middle/Index.ml | rok-cesnovar/stanc3 | e1406ded3a77eaae20869c7dfee081fe6f0164da | [
"BSD-3-Clause"
] | 1 | 2020-10-12T23:48:37.000Z | 2020-10-12T23:48:37.000Z | (** Types of indexing operations *)
open Core_kernel
type 'a t =
| All
| Single of 'a
| Upfrom of 'a
| Between of 'a * 'a
| MultiIndex of 'a
[@@deriving sexp, hash, map, compare, fold]
let pp pp_e ppf = function
| All -> Fmt.char ppf ':'
| Single index -> pp_e ppf index
| Upfrom index -> Fmt.pf ppf {... | 28.173913 | 75 | 0.641975 |
aa79c0050e786b945893ba31c7d4eb0aa3359be3 | 393 | ml | OCaml | tests/benchmarks_call/r_type/first/inductive1-1.ml | LinerSu/DART_IT | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 7 | 2020-06-12T09:32:16.000Z | 2020-10-05T09:04:07.000Z | tests/benchmarks_call/r_type/first/inductive1-1.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | null | null | null | tests/benchmarks_call/r_type/first/inductive1-1.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 2 | 2021-04-05T12:25:11.000Z | 2021-05-14T09:31:24.000Z |
let rec loop x i =
if i < 0 then
x
else if x < 1 then (* x <= 0*)
loop (x - 1) (i - 1)
else if x > 2 then (* x >= 3*)
loop x (i - 1)
else (* 1 2 *)
loop (3 - x) (i - 1)
let main_p (n:int) =
assert (loop 3 n >= 3)
let main (w:unit) =
let _ = main_p 15 in
(* let _ =
for i = 1 to... | 16.375 | 32 | 0.455471 |
1787905b49394c462d406dd05b1bf1186afedfd8 | 2,571 | ml | OCaml | src/lib/syntax.ml | jozefg/blott | 9eadd6f1eb3ecb28fd66a25bc56c19041d98f722 | [
"MIT"
] | 115 | 2019-05-16T12:54:10.000Z | 2022-01-12T08:14:22.000Z | src/lib/syntax.ml | jozefg/blott | 9eadd6f1eb3ecb28fd66a25bc56c19041d98f722 | [
"MIT"
] | 3 | 2020-01-13T03:42:59.000Z | 2020-05-09T00:42:37.000Z | src/lib/syntax.ml | jozefg/blott | 9eadd6f1eb3ecb28fd66a25bc56c19041d98f722 | [
"MIT"
] | 8 | 2019-05-16T22:47:49.000Z | 2021-03-07T07:29:44.000Z | type uni_level = int
[@@deriving show{ with_path = false }, eq]
type t =
| Var of int (* DeBruijn indices for variables & ticks *)
| Let of t * (* BINDS *) t | Check of t * t
| Nat | Zero | Suc of t | NRec of (* BINDS *) t * t * (* BINDS 2 *) t * t
| Pi of t * (* BINDS *) t | Lam of (* BINDS *) t | Ap of t * t
... | 30.247059 | 91 | 0.487748 |
1709f23568acd7fe247233c700dada04d5f1f8bf | 6,053 | ml | OCaml | examples/gan/relativistic_dcgan.ml | acaldwell-pixel/ocaml-torch | a6499811f40282a071179d4306afbbb6023dcc4a | [
"Apache-2.0"
] | 354 | 2018-10-03T07:04:53.000Z | 2022-03-21T10:58:08.000Z | examples/gan/relativistic_dcgan.ml | acaldwell-pixel/ocaml-torch | a6499811f40282a071179d4306afbbb6023dcc4a | [
"Apache-2.0"
] | 56 | 2018-12-14T02:07:22.000Z | 2021-11-20T17:26:34.000Z | examples/gan/relativistic_dcgan.ml | acaldwell-pixel/ocaml-torch | a6499811f40282a071179d4306afbbb6023dcc4a | [
"Apache-2.0"
] | 38 | 2019-01-19T20:41:11.000Z | 2022-03-07T03:10:33.000Z | (* Relativistic average LSGAN,
see https://ajolicoeur.wordpress.com/RelativisticGAN/ *)
open Base
open Torch
let image_w = 64
let image_h = 64
let latent_dim = 128
let batch_size = 32
let learning_rate = 1e-4
let batches = 10 ** 8
let create_generator vs =
let tr2d ~stride ~padding ~input_dim n =
Layer.conv_... | 35.397661 | 82 | 0.651743 |
17700a2db81e71ba604d20da410f8d5a53be176c | 1,096 | ml | OCaml | data/fa15_min/1587.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/1587.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/1587.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec digitsOfInt n =
if n <= 0 then [] else (digitsOfInt (n / 10)) @ [n mod 10];;
let rec sumList xs = match xs with | [] -> 0 | h::t -> h + (sumList t);;
let rec additivePersistence n =
let rec recCounter n count =
if n < 10
then count
else recCounter ((sumList (digitsOfInt n)) (count + 1)) in
... | 18.896552 | 72 | 0.569343 |
173c36f74e93dd883f6789911b7515d4053fd939 | 150 | ml | OCaml | 01_letAnd.ml | KanataIZUMIKAWA/BasicOfOcaml | 89322944ebd03cb42373d633199ec52fcecc9b2b | [
"MIT"
] | null | null | null | 01_letAnd.ml | KanataIZUMIKAWA/BasicOfOcaml | 89322944ebd03cb42373d633199ec52fcecc9b2b | [
"MIT"
] | null | null | null | 01_letAnd.ml | KanataIZUMIKAWA/BasicOfOcaml | 89322944ebd03cb42373d633199ec52fcecc9b2b | [
"MIT"
] | null | null | null | let rec even n =
if (n = 0)
then true
else odd(n - 1)
and odd n =
if (n = 0)
then false
else even(n - 1)
;;
even 5;;
even 6;; | 11.538462 | 20 | 0.48 |
177891b3fe4ed437bda21b149ae9e366cc08e875 | 5,513 | ml | OCaml | src/macro/eval/evalValue.ml | shohei909/haxe | 1a7ba9ea20dffe86bdfcdc1424af4952c647cecb | [
"MIT"
] | 4 | 2017-06-12T17:34:18.000Z | 2018-10-13T14:13:22.000Z | src/macro/eval/evalValue.ml | shohei909/haxe | 1a7ba9ea20dffe86bdfcdc1424af4952c647cecb | [
"MIT"
] | null | null | null | src/macro/eval/evalValue.ml | shohei909/haxe | 1a7ba9ea20dffe86bdfcdc1424af4952c647cecb | [
"MIT"
] | null | null | null | (*
The Haxe Compiler
Copyright (C) 2005-2018 Haxe Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This prog... | 27.984772 | 138 | 0.706149 |
bc66c3acfbf54f5bc160c2f4d3c78244895be757 | 945 | ml | OCaml | data/derived/comb/progs/cnstr/prog0583.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/prog0583.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/cnstr/prog0583.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
| Acossin of expr* expr
| XOR3 of expr* expr* expr;;
let rec exprToString e =
match e with
| VarX -> "x"
| VarY -> "y"
| Sine e' -> "sin(pi*" ^ ((exprT... | 27.794118 | 81 | 0.448677 |
17a2492c1a46b5458c14f263faa4011259bcf120 | 12,146 | ml | OCaml | src/process.ml | ejgallego/dune | f2fb4a9ee651270546392ab27be7e0896c287815 | [
"MIT"
] | null | null | null | src/process.ml | ejgallego/dune | f2fb4a9ee651270546392ab27be7e0896c287815 | [
"MIT"
] | null | null | null | src/process.ml | ejgallego/dune | f2fb4a9ee651270546392ab27be7e0896c287815 | [
"MIT"
] | null | null | null | open! Stdune
open Import
open Fiber.O
type accepted_codes =
| These of int list
| All
let code_is_ok accepted_codes n =
match accepted_codes with
| These set -> List.mem n ~set
| All -> true
type ('a, 'b) failure_mode =
| Strict : ('a, 'a) failure_mode
| Accept : accepted_codes -> ('a, ('a, int) result... | 31.795812 | 81 | 0.598963 |
17c4942aaebcf6d242d98a3c5db6b14fd17b46b3 | 3,193 | ml | OCaml | src/reorder.ml | superfunc/ocamlfdo | f87576b1f93e4ca38952f2f152c2bc335d6161ac | [
"MIT"
] | 23 | 2019-10-30T15:21:21.000Z | 2021-11-30T15:04:52.000Z | src/reorder.ml | superfunc/ocamlfdo | f87576b1f93e4ca38952f2f152c2bc335d6161ac | [
"MIT"
] | 3 | 2019-10-31T11:09:18.000Z | 2021-04-26T12:30:45.000Z | src/reorder.ml | superfunc/ocamlfdo | f87576b1f93e4ca38952f2f152c2bc335d6161ac | [
"MIT"
] | 4 | 2019-09-26T14:11:00.000Z | 2021-04-24T21:18:25.000Z | open Core
open Core.Poly
module C = Ocamlcfg.Cfg
module CL = Ocamlcfg.Cfg_with_layout
module AD = Aggregated_decoded_profile
let verbose = ref false
let validate = ref false
type reorder_algo =
| Identity
| Random of Random.State.t
| Profile of AD.t
let print_list msg l = Report.logf !"%s: %{sexp:int list}" m... | 35.087912 | 78 | 0.718447 |
17617cf88836f87244581ae05986efba0ccd38b6 | 7,071 | ml | OCaml | src/lib/module_version/registration.ml | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | 1 | 2020-05-05T07:31:26.000Z | 2020-05-05T07:31:26.000Z | src/lib/module_version/registration.ml | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | null | null | null | src/lib/module_version/registration.ml | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | null | null | null | (* registration.ml -- register module versions *)
(* see RFC 0015 for design discussion; see tests below for usage
*)
open Core_kernel
module type Module_decl_intf = sig
type latest
val name : string
end
module type Versioned_module_intf = sig
type t [@@deriving bin_io]
type latest
val version : int
... | 29.219008 | 79 | 0.660585 |
17b94a83d133fb972067297f8c01fe0117cfb957 | 133,372 | ml | OCaml | hphp/hack/src/parser/full_fidelity_parser_errors.ml | theovod/hhvm | 9c9e0653f825edd4c2db2a6d77cd9b123add7d6b | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-06-19T23:31:58.000Z | 2021-06-19T23:31:58.000Z | hphp/hack/src/parser/full_fidelity_parser_errors.ml | theovod/hhvm | 9c9e0653f825edd4c2db2a6d77cd9b123add7d6b | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_parser_errors.ml | theovod/hhvm | 9c9e0653f825edd4c2db2a6d77cd9b123add7d6b | [
"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.
*
*)
open Core_kernel
module WithSyntax(Syntax : Syntax_sig.Syntax_S) = struct
module WithSmartConstructors(SCI : Smart... | 38.535683 | 104 | 0.697793 |
aaff2022d45053ef434cd70a7d6894cf06ddf537 | 433 | ml | OCaml | src/ocaml-3.12.0/testsuite/tests/tool-ocaml/t120-getstringchar.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/testsuite/tests/tool-ocaml/t120-getstringchar.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/testsuite/tests/tool-ocaml/t120-getstringchar.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | open Lib;;
if "foo".[2] <> 'o' then raise Not_found;;
(**
0 CONSTINT 42
2 PUSHACC0
3 MAKEBLOCK1 0
5 POP 1
7 SETGLOBAL Lib
9 CONSTINT 111
11 PUSHCONST2
12 PUSHGETGLOBAL "foo"
14 GETSTRINGCHAR
15 NEQ
16 BRANCHIFNOT 23
18 GETGLOBAL Not_foun... | 18.826087 | 42 | 0.554273 |
1721d741d859b2ceebad953b2b6c6e548700ea15 | 703 | mli | OCaml | src/time_slot.mli | idkjs/daypack-lib | 63fa5d85007eca73aa6c51874a839636dd0403d3 | [
"MIT"
] | 9 | 2020-05-28T13:54:12.000Z | 2021-01-28T05:57:12.000Z | src/time_slot.mli | daypack-dev/daypack | 63fa5d85007eca73aa6c51874a839636dd0403d3 | [
"MIT"
] | 48 | 2020-01-10T10:33:35.000Z | 2020-04-18T06:26:46.000Z | src/time_slot.mli | daypack-dev/daypack | 63fa5d85007eca73aa6c51874a839636dd0403d3 | [
"MIT"
] | 1 | 2021-07-14T20:07:35.000Z | 2021-07-14T20:07:35.000Z | exception Time_slot_is_invalid
exception Time_slot_is_empty
type t = int64 * int64
val lt : t -> t -> bool
val le : t -> t -> bool
val gt : t -> t -> bool
val ge : t -> t -> bool
val compare : t -> t -> int
val to_string : t -> string
val join : t -> t -> t option
val overlap_of_a_over_b : a:t -> b:t -> t opt... | 17.575 | 75 | 0.635846 |
17de54c768dc229585cb215345a1c065d84893c4 | 1,817 | ml | OCaml | triangle/triangle.ml | dalev/path-tracer-ocaml | 54c26384d60cd12193a5509ed14d712d0c35755e | [
"MIT"
] | 1 | 2021-03-07T19:23:26.000Z | 2021-03-07T19:23:26.000Z | triangle/triangle.ml | dalev/path-tracer-ocaml | 54c26384d60cd12193a5509ed14d712d0c35755e | [
"MIT"
] | null | null | null | triangle/triangle.ml | dalev/path-tracer-ocaml | 54c26384d60cd12193a5509ed14d712d0c35755e | [
"MIT"
] | null | null | null | open Base
open Path_tracer
module Make (Face : sig
type t
val vertices : t -> P3.t * P3.t * P3.t
end) =
struct
include Face
module Hit = struct
type t =
{ t_hit : float
; u : float
; v : float
; tri : Face.t
}
let t_hit t = t.t_hit
let g_normal t =
let a, b, ... | 23.907895 | 59 | 0.536048 |
1774da7302700d5e5d6492e6abcea27070be6ae3 | 1,226 | ml | OCaml | infer/src/checkers/androidFramework.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 4 | 2021-11-19T02:07:46.000Z | 2022-03-24T06:03:50.000Z | infer/src/checkers/androidFramework.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 1 | 2021-04-05T15:19:58.000Z | 2021-12-16T04:22:26.000Z | infer/src/checkers/androidFramework.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 1 | 2019-10-24T14:47:52.000Z | 2019-10-24T14:47:52.000Z | (*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
(** Android lifecycle types and their lifecycle methods that are called by the framework *)
let on_destroy = "onDestroy"
le... | 31.435897 | 97 | 0.765905 |
17975dfb6aa7077191d4e0626d0d9abca385d163 | 5,272 | mli | OCaml | src/posix_semaphore.mli | mwweissmann/ocaml-semaphore | a72e12b88e78f814b9b7521a11dfc0044ffd3ace | [
"MIT"
] | null | null | null | src/posix_semaphore.mli | mwweissmann/ocaml-semaphore | a72e12b88e78f814b9b7521a11dfc0044ffd3ace | [
"MIT"
] | null | null | null | src/posix_semaphore.mli | mwweissmann/ocaml-semaphore | a72e12b88e78f814b9b7521a11dfc0044ffd3ace | [
"MIT"
] | null | null | null | (*
Copyright (c) 2015 Markus W. Weissmann <markus.weissmann@in.tum.de>
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, mo... | 45.843478 | 134 | 0.729325 |
17429569066191d8915b55f4ececc12523e6d9b2 | 5,361 | ml | OCaml | test/typing/gadts/test_pr7230.ml | johnyob/dromedary | e786bc9101e3964db1f02a8f0c0febdce4dd8f64 | [
"MIT"
] | 23 | 2021-11-20T19:42:50.000Z | 2022-03-28T15:34:22.000Z | test/typing/gadts/test_pr7230.ml | johnyob/dromedary | e786bc9101e3964db1f02a8f0c0febdce4dd8f64 | [
"MIT"
] | 18 | 2021-11-05T14:27:25.000Z | 2022-03-19T20:15:06.000Z | test/typing/gadts/test_pr7230.ml | johnyob/dromedary | e786bc9101e3964db1f02a8f0c0febdce4dd8f64 | [
"MIT"
] | null | null | null | open! Import
open Util
let%expect_test "" =
let str =
{|
type 'a t =
| Int constraint 'a = int
;;
external raise : 'a. exn -> 'a = "%raise";;
exception Not_found;;
exception Assert_false;;
let _ =
match (raise Not_found : float t) with ( _ -> raise Assert... | 43.585366 | 83 | 0.358515 |
bcdb8a12f3a46a970c3fa6b4ae3ebbd1d0fcf7d6 | 957 | ml | OCaml | benchmarks/constraints/bst/minmax_separate.ml | victornicolet/atropos | 86a96d263f49c1eccd8f584d624de119180e0eea | [
"MIT"
] | 3 | 2021-05-03T16:20:32.000Z | 2021-05-14T19:59:51.000Z | benchmarks/constraints/bst/minmax_separate.ml | synduce/Synduce | 11e9eb1d420113ae85ec63399dd493034c51a354 | [
"MIT"
] | null | null | null | benchmarks/constraints/bst/minmax_separate.ml | synduce/Synduce | 11e9eb1d420113ae85ec63399dd493034c51a354 | [
"MIT"
] | 1 | 2021-05-12T15:14:40.000Z | 2021-05-12T15:14:40.000Z | (** @synduce -NB --no-lifting *)
type 'a tree =
| Leaf of 'a
| Node of 'a * 'a tree * 'a tree
let rec tree_min = function
| Leaf x -> x
| Node (a, l, r) -> min a (min (tree_min l) (tree_min r))
;;
let rec tree_max = function
| Leaf x -> x
| Node (a, l, r) -> max a (max (tree_max l) (tree_max r))
;;
let ... | 21.266667 | 80 | 0.528736 |
1775ef9fb80e85213013371388683a5277c3b727 | 15,659 | ml | OCaml | cprocs/cfarkaspolo.ml | draperlaboratory/cage-koat | 07956c1ce1206c2c6e730c4d59c5a294d174a66e | [
"Apache-2.0"
] | 4 | 2018-04-25T16:01:18.000Z | 2020-05-06T21:46:22.000Z | cprocs/cfarkaspolo.ml | draperlaboratory/cage-koat | 07956c1ce1206c2c6e730c4d59c5a294d174a66e | [
"Apache-2.0"
] | 2 | 2018-04-06T20:07:17.000Z | 2018-05-02T07:28:35.000Z | cprocs/cfarkaspolo.ml | draperlaboratory/cage-koat | 07956c1ce1206c2c6e730c4d59c5a294d174a66e | [
"Apache-2.0"
] | null | null | null | (*
Polynomial interpretations using Farkas' lemma. Optionally with a minimal element
@author Stephan Falke
Copyright 2010-2014 Stephan Falke
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 Licen... | 47.451515 | 340 | 0.706622 |
1741b20d6d4fc3b8ba0e4a3060b872efabbd6126 | 307 | ml | OCaml | data/derived/comb/progs/unify/prog0348.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/prog0348.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0348.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 rec eval (e,x,y) =
match e with | VarX -> x | VarY -> y | Average (x',y') -> (x + y) / 2;;
let _ = eval ((Average (VarX, VarY)), 0.5, 0.5);;
| 20.466667 | 75 | 0.540717 |
1791f34d16f0f7e95321063b240a57f7a2ea817d | 2,391 | ml | OCaml | example/config.ml | CraigFe/mirage-nat | 472b2cbb76e2ce39757d237ee68f8ac76055e33b | [
"ISC"
] | null | null | null | example/config.ml | CraigFe/mirage-nat | 472b2cbb76e2ce39757d237ee68f8ac76055e33b | [
"ISC"
] | null | null | null | example/config.ml | CraigFe/mirage-nat | 472b2cbb76e2ce39757d237ee68f8ac76055e33b | [
"ISC"
] | null | null | null | open Mirage
(* we need two network interfaces: a public side and a private side *)
(* a bit of magic: currently, multiple networks only work on Unix and Xen
backends, so we can get away with this indexes-as-numbers-as-strings
silliness.
See https://github.com/mirage/mirage/issues/645 *)
let public_netif = net... | 46.882353 | 80 | 0.617315 |
17be77b70d143b4c7767c1842efa0acf376ced76 | 17,123 | ml | OCaml | agreg/public2018_D1.ml | doc22940/notebooks-2 | 6a7bdec5ed2195005d64ca1f9eaf6613d68fb8ca | [
"MIT"
] | 102 | 2016-06-25T09:30:00.000Z | 2022-03-24T21:02:49.000Z | agreg/public2018_D1.ml | Jimmy-INL/notebooks | ccf5ebc11131f56305c484cfd4556f4bcf63c19b | [
"MIT"
] | 34 | 2016-06-26T12:21:30.000Z | 2021-04-06T09:19:49.000Z | agreg/public2018_D1.ml | Jimmy-INL/notebooks | ccf5ebc11131f56305c484cfd4556f4bcf63c19b | [
"MIT"
] | 44 | 2017-05-13T23:54:56.000Z | 2021-07-17T15:34:24.000Z | (*
# Texte d'oral de modélisation - Agrégation Option Informatique
## Préparation à l'agrégation - ENS de Rennes, 2017-18
- Date : 6 décembre 2017
- Auteur : Lilian Besson (https://GitHub.com/Naereen/notebooks/)
- Texte: Annale 2018, "Expressions arithmétiques" (public2018-D1) (http://agreg.org/Textes/public2018-D1.pdf... | 34.944898 | 537 | 0.632541 |
17de2d9106bac8f223a671d8e3956d9712a68905 | 1,192 | mli | OCaml | hphp/hack/src/typing/typing_type_wellformedness.mli | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_type_wellformedness.mli | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_type_wellformedness.mli | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(** This module checks wellformedness of type hints in the decls and bodies.
Wellformedness checks include:
- constrai... | 35.058824 | 84 | 0.693792 |
aa86ca6fa95c0bbab0fd6e085be6a03a728ac4b3 | 19,332 | ml | OCaml | hphp/hack/src/typing/typing_subtype.ml | ng0ctrinh/hhvm | 3445a26e54faba5828eb6b8f6e74e52b472cf282 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-03-29T13:00:00.000Z | 2022-03-29T13:00:00.000Z | hphp/hack/src/typing/typing_subtype.ml | ng0ctrinh/hhvm | 3445a26e54faba5828eb6b8f6e74e52b472cf282 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_subtype.ml | ng0ctrinh/hhvm | 3445a26e54faba5828eb6b8f6e74e52b472cf282 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Utils
op... | 44.441379 | 97 | 0.623215 |
bcfc670e58e0e50cee6346b49793fbfc613eae91 | 30,577 | ml | OCaml | src/app/delegation_compliance/delegation_compliance.ml | quangchinh11t1/mina | 0e9ae499d209f741ef522a8b0ebe4eb55da24b7e | [
"Apache-2.0"
] | 2 | 2021-07-11T21:51:34.000Z | 2021-07-29T14:33:45.000Z | src/app/delegation_compliance/delegation_compliance.ml | quangchinh11t1/mina | 0e9ae499d209f741ef522a8b0ebe4eb55da24b7e | [
"Apache-2.0"
] | null | null | null | src/app/delegation_compliance/delegation_compliance.ml | quangchinh11t1/mina | 0e9ae499d209f741ef522a8b0ebe4eb55da24b7e | [
"Apache-2.0"
] | null | null | null | (* delegation_compliance.ml *)
(* check whether a block producer delegated to from Mina Foundation or
O(1) Labs follows requirements at
https://docs.minaprotocol.com/en/advanced/foundation-delegation-program
*)
open Core_kernel
open Async
open Mina_base
open Signature_lib
type input = {epoch: int; staking_ledg... | 42.001374 | 97 | 0.580109 |
aa678cbe80d19ae1e13a046cd31449793cca86cc | 1,438 | ml | OCaml | Lang1/Token.ml | rinderknecht/Mini-ML | e8e25830d1faa9b812cc18acdb4fd8563db7229d | [
"MIT"
] | 2 | 2018-11-08T14:20:25.000Z | 2020-11-06T14:57:11.000Z | Lang1/Token.ml | rinderknecht/Mini-ML | e8e25830d1faa9b812cc18acdb4fd8563db7229d | [
"MIT"
] | null | null | null | Lang1/Token.ml | rinderknecht/Mini-ML | e8e25830d1faa9b812cc18acdb4fd8563db7229d | [
"MIT"
] | null | null | null | (* Abstract lexical tokens for Mini-ML *)
type t =
(* Symbols *)
ARROW
| VBAR
| CONS
| CAT
| MINUS
| PLUS
| DIV
| MULT
| LPAR
| RPAR
| LBRACK
| RBRACK
| COMMA
| SEMI
| WILD
| EQ
| NE
| LT
| GT
| LE
| GE
| BOOL_OR
| BOOL_AND
(* Identifiers, numbers and strings *)
| Ident of string
| Int of Z.t
| Str of strin... | 13.961165 | 57 | 0.417942 |
1772da699f7417982c241c80d787bfeb83c254b7 | 1,699 | ml | OCaml | Optician-Integrated/lenssynth/typing.ml | optician-tool/Optician-Tool | 4aa9d9d0f0511bf559abdc73dbef3b888d371d3a | [
"MIT"
] | 1 | 2020-02-22T12:30:30.000Z | 2020-02-22T12:30:30.000Z | Optician-Integrated/lenssynth/typing.ml | optician-tool/Optician-Tool | 4aa9d9d0f0511bf559abdc73dbef3b888d371d3a | [
"MIT"
] | null | null | null | Optician-Integrated/lenssynth/typing.ml | optician-tool/Optician-Tool | 4aa9d9d0f0511bf559abdc73dbef3b888d371d3a | [
"MIT"
] | null | null | null | open Stdlib
open Lang
open Lenscontext
open Permutation
let rec type_lens (lc:LensContext.t) (l:Lens.t) : Regex.t * Regex.t =
begin match l with
| Lens.LensConst(s1,s2) -> (Regex.RegExBase s1, Regex.RegExBase s2)
| Lens.LensConcat(l1,l2) ->
let (r1,s1) = type_lens lc l1 in
let (r2,s2) = type_lens... | 32.056604 | 83 | 0.577987 |
17d1185c77c7b8b37159e5140534c208058d8ae8 | 10,065 | mli | OCaml | src/dune/dune_file.mli | CT075/dune | 2f25e4857f39c41236bb3f2fdc90dc5c1b81e57a | [
"MIT"
] | null | null | null | src/dune/dune_file.mli | CT075/dune | 2f25e4857f39c41236bb3f2fdc90dc5c1b81e57a | [
"MIT"
] | null | null | null | src/dune/dune_file.mli | CT075/dune | 2f25e4857f39c41236bb3f2fdc90dc5c1b81e57a | [
"MIT"
] | null | null | null | (** Representation and parsing of Dune files *)
open! Stdune
open Import
module Lint : sig
type t = Preprocess.Without_instrumentation.t Preprocess.Per_module.t
val no_lint : t
end
module Js_of_ocaml : sig
type t =
{ flags : Ordered_set_lang.Unexpanded.t
; javascript_files : string list
}
val d... | 25.610687 | 80 | 0.652558 |
17b59fe6210e4b57b692772304b50be25199c615 | 3,232 | mli | OCaml | test/irmin-pack/common.mli | maiste/irmin | b5b8186ca9eeafb1fb5ea34fea3417d7e8931457 | [
"0BSD"
] | null | null | null | test/irmin-pack/common.mli | maiste/irmin | b5b8186ca9eeafb1fb5ea34fea3417d7e8931457 | [
"0BSD"
] | null | null | null | test/irmin-pack/common.mli | maiste/irmin | b5b8186ca9eeafb1fb5ea34fea3417d7e8931457 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2018-2021 Tarides <contact@tarides.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 IS" AN... | 29.651376 | 83 | 0.686881 |
17b7f9ddd72381f316138d2ce0b9d750d8a25a49 | 1,020 | mli | OCaml | src/resp3.mli | lukepalmer/redis-async | b4a8db0d2ce5f5c22983e65181688a127854a910 | [
"MIT"
] | 13 | 2021-03-21T00:49:51.000Z | 2022-03-30T17:21:11.000Z | src/resp3.mli | lukepalmer/redis-async | b4a8db0d2ce5f5c22983e65181688a127854a910 | [
"MIT"
] | null | null | null | src/resp3.mli | lukepalmer/redis-async | b4a8db0d2ce5f5c22983e65181688a127854a910 | [
"MIT"
] | 2 | 2021-03-21T00:36:35.000Z | 2021-12-17T02:47:46.000Z | (** The RESP3 protocol as specified here:
https://github.com/antirez/RESP3/blob/master/spec.md *)
open Core
exception Protocol_error of string
type t =
| String of string
| Error of string
| Int of int
| Null
| Double of float
| Boolean of bool
| Bignum of Bignum.t
| Array of t array
... | 32.903226 | 67 | 0.620588 |
172e8af5cd1cc1b1fe64c9173b608c4d9b1aadb5 | 3,203 | ml | OCaml | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/middle_end/base_types/id_types.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 1 | 2020-09-24T05:03:32.000Z | 2020-09-24T05:03:32.000Z | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/middle_end/base_types/id_types.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/middle_end/base_types/id_types.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 34.44086 | 76 | 0.497034 |
179cede7fa92f49f021e5794b0168d475be10a9d | 7,507 | ml | OCaml | ocaml-sources/utils/domainstate.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | ocaml-sources/utils/domainstate.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | ocaml-sources/utils/domainstate.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | null | null | null | # 1 "utils/domainstate.ml.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "utils/domainstate.ml.c"
# 17 "utils/domainstate.ml.c"
type t =
# 1 "runtime/caml/domain_state.tbl" 1
# 17 "runtime/caml/domain_state.tbl"
| Domain_young_ptr
| Dom... | 31.410042 | 76 | 0.79326 |
17e0640c032c10f15d9636817a6740e6f22c6fbc | 2,609 | ml | OCaml | src/server/flash.ml | fkrull/dream | 9df46cb32989c853f2280e4ef78d574532e7a48e | [
"MIT"
] | null | null | null | src/server/flash.ml | fkrull/dream | 9df46cb32989c853f2280e4ef78d574532e7a48e | [
"MIT"
] | null | null | null | src/server/flash.ml | fkrull/dream | 9df46cb32989c853f2280e4ef78d574532e7a48e | [
"MIT"
] | null | null | null | (* This file is part of Dream, released under the MIT license. See LICENSE.md
for details, or visit https://github.com/aantron/dream.
Copyright 2021 Joseph Thomas *)
module Dream = Dream_pure.Inmost
let log =
Log.sub_log "dream.flash"
let five_minutes =
5. *. 60.
let storage_field =
Dream.new_field... | 24.847619 | 79 | 0.623994 |
17adb5075b3c0fc899d4da039f71e947b1ecc2de | 146 | ml | OCaml | src/ocaml-3.12.0/testsuite/tests/tool-ocaml/t021-pushconst2.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/testsuite/tests/tool-ocaml/t021-pushconst2.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/testsuite/tests/tool-ocaml/t021-pushconst2.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | let _ = () in 2;;
(**
0 CONST0
1 PUSHCONST2
2 POP 1
4 ATOM0
5 SETGLOBAL T021-pushconst2
7 STOP
**)
| 13.272727 | 34 | 0.445205 |
17d132a236aee2bf9ceac87eb40ac9bfcd0a3205 | 523 | mli | OCaml | src/dune_engine/stanza.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | src/dune_engine/stanza.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | src/dune_engine/stanza.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | (** Stanza in dune/jbuild files *)
open! Stdune
type t = ..
val latest_version : Dune_lang.Syntax.Version.t
module Parser : sig
(** Type of stanza parser.
Each stanza in a configuration file might produce several values of type
[t], hence the [t list] here. *)
type nonrec t = string * t list Dune_l... | 26.15 | 78 | 0.694073 |
17d2c81269f7306a26f2ae2eb83ae59e1b202fe3 | 1,600 | ml | OCaml | hphp/hack/src/utils/findUtils.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-10-03T00:45:08.000Z | 2019-10-03T00:45:08.000Z | hphp/hack/src/utils/findUtils.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | 8 | 2020-04-06T11:23:08.000Z | 2022-03-24T12:41:12.000Z | hphp/hack/src/utils/findUtils.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"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_core
(*****************************************************************************)
(* The file extensions... | 30.188679 | 79 | 0.61375 |
178853c800874020bd56215480c6d246675ed2c3 | 735 | mli | OCaml | frontend/type.mli | jpais/inez | 65e9e5a4665580017c9e5bdf64e24e3ef591b8ae | [
"MIT"
] | 1 | 2015-08-22T04:07:46.000Z | 2015-08-22T04:07:46.000Z | frontend/type.mli | jpais/inez | 65e9e5a4665580017c9e5bdf64e24e3ef591b8ae | [
"MIT"
] | null | null | null | frontend/type.mli | jpais/inez | 65e9e5a4665580017c9e5bdf64e24e3ef591b8ae | [
"MIT"
] | null | null | null | type ibtype = E_Int | E_Bool | E_Real
val ibtype_of_sexp : Sexplib.Sexp.t -> ibtype
val sexp_of_ibtype : ibtype -> Sexplib.Sexp.t
type _ t =
| Y_Int : int t
| Y_Real : float t
| Y_Bool : bool t
| Y_Int_Arrow : 'a t -> (int -> 'a) t
| Y_Real_Arrow : 'a t -> (float -> 'a) t
| Y_Bool_Arrow ... | 23.709677 | 64 | 0.578231 |
174817dac9cb778bedeb47bb5768a5dabf7a4a43 | 14,357 | ml | OCaml | lib/spin/decoders/dec_template.ml | pkel/spin | b2307a7be832589edd91e4894ff2838dcfc184f0 | [
"0BSD"
] | 299 | 2019-12-13T02:23:21.000Z | 2022-02-06T13:28:38.000Z | lib/spin/decoders/dec_template.ml | pkel/spin | b2307a7be832589edd91e4894ff2838dcfc184f0 | [
"0BSD"
] | 90 | 2019-12-13T01:48:30.000Z | 2021-12-21T10:34:43.000Z | lib/spin/decoders/dec_template.ml | pkel/spin | b2307a7be832589edd91e4894ff2838dcfc184f0 | [
"0BSD"
] | 18 | 2020-02-06T15:05:29.000Z | 2021-12-20T08:37:58.000Z | open Dec_common
let decoder_error ~msg sexp = Error (Decoder.Decoder_error (msg, Some sexp))
module Description = struct
type t = string
let decode = Decoder.string
end
module Base_template = struct
module Errors = struct
let invalid_overwite =
{|The overwite does not exist. Supported overwrites are... | 29.359918 | 132 | 0.619071 |
4494e88038653efe3b83686b4505d365729562ce | 2,957 | ml | OCaml | herd/AArch64Arch_herd.ml | csgordon/herdtools7 | 0b068a7e84eff5edcf3ed495c640d525cd65c545 | [
"CECILL-B"
] | null | null | null | herd/AArch64Arch_herd.ml | csgordon/herdtools7 | 0b068a7e84eff5edcf3ed495c640d525cd65c545 | [
"CECILL-B"
] | null | null | null | herd/AArch64Arch_herd.ml | csgordon/herdtools7 | 0b068a7e84eff5edcf3ed495c640d525cd65c545 | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 29.868687 | 83 | 0.477849 |
17be4f0d3a39207fedcdd86d3e934387f298714b | 187 | ml | OCaml | tst10.ml | ontologiae/Ocaml2Lang | 3efcb14de11f7746ec8b62ba471bbb54d237ed2f | [
"MIT"
] | null | null | null | tst10.ml | ontologiae/Ocaml2Lang | 3efcb14de11f7746ec8b62ba471bbb54d237ed2f | [
"MIT"
] | null | null | null | tst10.ml | ontologiae/Ocaml2Lang | 3efcb14de11f7746ec8b62ba471bbb54d237ed2f | [
"MIT"
] | null | null | null | (*type enregistrement = { a : int };;
let e = { a = 8 };;*)
type enregistrement = { a : int ; b : string ; c : char }
let e = { a = 8 ; b = "test contenu chaine dans record" ; c = 'R' }
| 31.166667 | 67 | 0.524064 |
17c119a48246cbab37b4ed4b21dfdcf47e2116ef | 8,867 | ml | OCaml | hphp/hack/src/typing/nastCheck.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/nastCheck.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/nastCheck.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"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.
*
*)
(* This module performs checks after the naming has been done.
Basically any check that doesn't fall in the typin... | 31.003497 | 80 | 0.652757 |
aa0736793e1e0dd57083ecb37035974682115abd | 352 | ml | OCaml | data/derived/comb/progs/unify/prog2922.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/prog2922.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2922.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 buildX () = VarX;;
let buildY () = VarY;;
let rec build (rand,depth) =
match depth with
| 0 ->
let r = rand (0, 1) in
if r = 0 then buildX ()... | 17.6 | 60 | 0.565341 |
177b54019d984729d1d1092d04ce841761958644 | 982 | ml | OCaml | data/fa15_min/0282.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/0282.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/0282.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec cloneHelper x n l =
if n <= 0 then l else cloneHelper x (n - 1) (x :: l);;
let padZero l1 l2 =
let diff = (List.length l1) - (List.length l2) in
if diff < 0
then ((cloneHelper 0) - (1 * diff)) @ l1
else if diff > 0 then (cloneHelper 0 diff) @ l2;;
(* fix
let rec cloneHelper x n l =
if n <= 0 th... | 18.528302 | 67 | 0.560081 |
bcc91b299dbc965d5f3d10d0990f6de16a44f795 | 1,770 | ml | OCaml | hphp/hack/src/typing/typing_generic.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_generic.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2020-10-11T22:54:12.000Z | 2021-07-20T22:12:10.000Z | hphp/hack/src/typing/typing_generic.ml | Jankyboy/hhvm | afae3b129fe51c74d9c169254d1755eec4cb0940 | [
"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 Env = Typing_env
(* Module checking if a type is generic, I like to use an ... | 26.41791 | 81 | 0.557627 |
17bf55fe2a158ca1029ae1cfc3f8c82788502a3a | 3,114 | ml | OCaml | hphp/hack/src/server/serverEnvBuild.ml | lavagetto/hhvm | f9ed7ff466944c533733f3d49dcf6405c22ce57d | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2015-07-05T07:32:31.000Z | 2015-07-13T02:31:10.000Z | hphp/hack/src/server/serverEnvBuild.ml | h4ck3rm1k3/hhvm | 79e045f3ad1cbe079ff15c163131eb184db025f9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverEnvBuild.ml | h4ck3rm1k3/hhvm | 79e045f3ad1cbe079ff15c163131eb184db025f9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(***********... | 34.21978 | 80 | 0.642261 |
17bdce858b51b9567553b0da8e05a25b9554264e | 5,466 | ml | OCaml | infer/src/java/jMain.ml | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"MIT"
] | 1 | 2019-09-11T13:16:25.000Z | 2019-09-11T13:16:25.000Z | infer/src/java/jMain.ml | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"MIT"
] | null | null | null | infer/src/java/jMain.ml | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"MIT"
] | null | null | null | (*
* 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
open PolyVariantEqual
open Javalib_pack
module L = Logging
let init_global_s... | 35.960526 | 101 | 0.733626 |
173c25311d87b40bd4072484626e388aab6473c9 | 11,110 | ml | OCaml | analysis/test/typeConstraintsTest.ml | aspin/pyre-check | fe78b41789ba3ef091b0b021d9a1c6267905a7f8 | [
"MIT"
] | null | null | null | analysis/test/typeConstraintsTest.ml | aspin/pyre-check | fe78b41789ba3ef091b0b021d9a1c6267905a7f8 | [
"MIT"
] | null | null | null | analysis/test/typeConstraintsTest.ml | aspin/pyre-check | fe78b41789ba3ef091b0b021d9a1c6267905a7f8 | [
"MIT"
] | null | null | null | (** Copyright (c) 2016-present, Facebook, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree. *)
open Core
open OUnit2
open Pyre
open Analysis
open TypeConstraints
open Test
let child = Type.Primitive "Child"
let left_parent = Type.P... | 31.384181 | 99 | 0.715032 |
aa9ea4813eaecb88e5b03182f65754d4ef71ddf8 | 1,728 | ml | OCaml | data/fa15/3167.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/3167.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15/3167.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 < 1 then [] else (match n with | _ -> x :: (clone x (n - 1)));;
let padZero l1 l2 =
let s1 = List.length l1 in
let s2 = List.length l2 in
if s1 = s2
then (l1, l2)
else
if s1 > s2
then (l1, ((clone 0 (s1 - s2)) @ l2))
else (((clone 0 (s2 - s1)) @ l1), l2);;
let rec rem... | 20.819277 | 78 | 0.521412 |
17eb7d15b689cfc6a02a3066332cda61be411cf7 | 787 | ml | OCaml | result/cafe/diff/sub136/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/prog/diff/sub136/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/prog/diff/sub136/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type aexp =
| Const of int
| Var of string
| Power of (string * int)
| Times of aexp list
| Sum of aexp list
let rec diff ((e : aexp), (x : string)) : aexp =
match e with
| Const integer -> Const 0
| Var str -> if str = x then Const 1 else Const 0
| Power (str, integer) ->
if integer < 0 then C... | 28.107143 | 80 | 0.500635 |
17ad332eb3e6998e0655abbac451789d187002f1 | 5,719 | ml | OCaml | lib/bap_disasm/bap_disasm_symtab.ml | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | 1,697 | 2015-01-09T07:17:41.000Z | 2022-03-26T17:48:05.000Z | lib/bap_disasm/bap_disasm_symtab.ml | dvntaudio/bap | 5cfc3e584ea32d6c0c33013e050fb1a1e8f260de | [
"MIT"
] | 685 | 2015-01-10T21:32:42.000Z | 2022-03-23T23:44:53.000Z | lib/bap_disasm/bap_disasm_symtab.ml | dvntaudio/bap | 5cfc3e584ea32d6c0c33013e050fb1a1e8f260de | [
"MIT"
] | 294 | 2015-01-10T15:51:57.000Z | 2022-03-20T05:37:22.000Z | open Bap_core_theory
open Core_kernel
open Regular.Std
open Bap_types.Std
open Image_internal_std
open Or_error
open KB.Syntax
open Format
module Block = Bap_disasm_block
module Cfg = Bap_disasm_rec.Cfg
module Insn = Bap_disasm_insn
module Disasm = Bap_disasm_driver
module Callgraph = Bap_disasm_calls
module Symboli... | 28.738693 | 73 | 0.657458 |
175637790c3bbea23110989dc62b54b1b44f5686 | 1,986 | ml | OCaml | test/test_rm.ml | shonfeder/b0 | ec12b4fbbed6efb99dba5f8f69ecfa03cc2f9478 | [
"ISC"
] | 1 | 2022-02-19T04:46:23.000Z | 2022-02-19T04:46:23.000Z | test/test_rm.ml | shonfeder/b0 | ec12b4fbbed6efb99dba5f8f69ecfa03cc2f9478 | [
"ISC"
] | null | null | null | test/test_rm.ml | shonfeder/b0 | ec12b4fbbed6efb99dba5f8f69ecfa03cc2f9478 | [
"ISC"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2019 The b0 programmers. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
---------------------------------------------------------------------------*)
open B00_std
let rm_cmd r... | 40.530612 | 79 | 0.576536 |
17c761ce10f25c38de2367bba56df0303d2896f1 | 1,893 | ml | OCaml | src/binding/bucklescript/main.ml | statechart/statechart.ml | d8243777147e60a46f3ed7c7501e4b023caa2c50 | [
"MIT"
] | null | null | null | src/binding/bucklescript/main.ml | statechart/statechart.ml | d8243777147e60a46f3ed7c7501e4b023caa2c50 | [
"MIT"
] | null | null | null | src/binding/bucklescript/main.ml | statechart/statechart.ml | d8243777147e60a46f3ed7c7501e4b023caa2c50 | [
"MIT"
] | 1 | 2018-04-14T01:30:06.000Z | 2018-04-14T01:30:06.000Z | type datamodels
let prepare_datamodels : datamodels -> (string * Statechart_datamodel.parser) array = [%bs.raw{|
function(datamodels) {
if (!datamodels) return {};
return Object.keys(datamodels).map(function(k) {
return [k, datamodels[k]];
});
}
|}]
type line_column = <
line : int;
column : ... | 22.011628 | 96 | 0.620708 |
1742bd42d25ad9866d9b5dbae9f890d941159919 | 1,222 | ml | OCaml | 2A/S8/VAS/TPs/G14/tp2/tiny/src/domains/dummy.ml | MOUDDENEHamza/ENSEEIHT | a90b1dee0c8d18a9578153a357278d99405bb534 | [
"Apache-2.0"
] | 4 | 2020-05-02T12:32:32.000Z | 2022-01-12T20:20:35.000Z | 2A/S8/VAS/TPs/G14/tp1/tiny/src/domains/dummy.ml | MOUDDENEHamza/ENSEEIHT | a90b1dee0c8d18a9578153a357278d99405bb534 | [
"Apache-2.0"
] | 2 | 2021-01-14T20:03:26.000Z | 2022-01-30T01:10:00.000Z | 2A/S8/VAS/TPs/G14/tp1/tiny/src/_build/domains/dummy.ml | MOUDDENEHamza/ENSEEIHT | a90b1dee0c8d18a9578153a357278d99405bb534 | [
"Apache-2.0"
] | 13 | 2020-11-11T21:28:11.000Z | 2022-02-19T13:54:22.000Z | (* Template to write your own non relational abstract domain. *)
(* To implement your own non relational abstract domain,
* first give the type of its elements, *)
type t = unit
(* a printing function (useful for debuging), *)
let fprint ff = function
| () -> Format.fprintf ff "()"
(* the order of the lattice. *)... | 25.458333 | 75 | 0.648118 |
bcd1c1fd1c34c7148eaa7cb6cfae2b8473a67486 | 12,999 | ml | OCaml | src/lTerm_text_impl.ml | avysk/lambda-term | bcb949e420d97c1aac67f93a95d25aca5ac2cb8d | [
"BSD-3-Clause"
] | 97 | 2018-08-17T14:38:00.000Z | 2022-03-29T16:22:43.000Z | src/lTerm_text_impl.ml | avysk/lambda-term | bcb949e420d97c1aac67f93a95d25aca5ac2cb8d | [
"BSD-3-Clause"
] | 32 | 2018-08-22T22:27:30.000Z | 2022-02-21T19:26:57.000Z | src/lTerm_text_impl.ml | avysk/lambda-term | bcb949e420d97c1aac67f93a95d25aca5ac2cb8d | [
"BSD-3-Clause"
] | 17 | 2018-08-22T21:46:27.000Z | 2022-03-28T15:29:23.000Z | (*
* lTerm_text.ml
* -------------
* Copyright : (c) 2011, Jeremie Dimino <jeremie@dimino.org>
* Licence : BSD3
*
* This file is a part of Lambda-Term.
*)
module Make (LiteralIntf: LiteralIntf.Type) = struct
open CamomileLibraryDefault.Camomile
open LTerm_style
open Result
type t = (Zed_char.t * LTer... | 31.627737 | 118 | 0.523194 |
17cf1fdcfefbedca3565f74da28ac781e7ae662a | 31,910 | ml | OCaml | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/tool-ocaml/t330-compact-3.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-ocaml/t330-compact-3.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-ocaml/t330-compact-3.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | (* TEST
include tool-ocaml-lib
flags = "-w a"
ocaml_script_as_argument = "true"
* setup-ocaml-build-env
** ocaml
*)
open Lib;;
let rec f n =
if n <= 0 then []
else n :: f (n-1)
in
let l = f 300 in
Gc.compact ();
if List.fold_left (+) 0 l <> 301 * 150 then raise Not_found
;;
(**
0 CONSTINT 42
2 PUSHA... | 19.968711 | 59 | 0.641742 |
172362276a43ad657868d3ea6fc2ff7f719c9749 | 9,668 | ml | OCaml | infer/src/scripts/checkCopyright.ml | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | 1 | 2017-09-14T09:03:44.000Z | 2017-09-14T09:03:44.000Z | infer/src/scripts/checkCopyright.ml | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | null | null | null | infer/src/scripts/checkCopyright.ml | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2015 - 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! Core... | 34.65233 | 99 | 0.668804 |
17f12a2566cb1bcd16b8db323201144f5e51141a | 1,871 | ml | OCaml | libraries/autoscaling/lib/detachInstances.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/autoscaling/lib/detachInstances.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/autoscaling/lib/detachInstances.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | open Types_internal
open Aws
type input = DetachInstancesQuery.t
type output = DetachInstancesAnswer.t
type error = Errors_internal.t
let service = "autoscaling"
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))... | 31.711864 | 95 | 0.584714 |
17e0d9f0507a23decbdf10824f257cd10874f873 | 19,750 | ml | OCaml | src/proto_alpha/lib_protocol/test/origination.ml | connectedcustomer/Project1 | e84e4a645bc6f45ba68e023d67274d550231ad03 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/test/origination.ml | connectedcustomer/Project1 | e84e4a645bc6f45ba68e023d67274d550231ad03 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/test/origination.ml | connectedcustomer/Project1 | e84e4a645bc6f45ba68e023d67274d550231ad03 | [
"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> *)
... | 45.612009 | 320 | 0.648658 |
1746a95bcdd4a4a7abda46d43c9554d04436357a | 513 | mli | OCaml | infer/src/checkers/Passthrough.mli | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | 1 | 2017-09-14T09:03:44.000Z | 2017-09-14T09:03:44.000Z | infer/src/checkers/Passthrough.mli | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | 2 | 2020-11-13T19:42:27.000Z | 2020-11-13T19:49:19.000Z | infer/src/checkers/Passthrough.mli | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"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... | 23.318182 | 78 | 0.705653 |
aab5e25dafcf6331a8fa41810d0152745859b819 | 9,995 | ml | OCaml | stats.ml | kayceesrk/cubicle | c2fba597da83b9ddc1195f1c8710d5330db24735 | [
"Apache-2.0"
] | 10 | 2017-08-01T16:13:02.000Z | 2022-02-18T10:12:45.000Z | stats.ml | kayceesrk/cubicle | c2fba597da83b9ddc1195f1c8710d5330db24735 | [
"Apache-2.0"
] | 4 | 2018-06-07T05:27:42.000Z | 2022-02-28T09:31:46.000Z | stats.ml | kayceesrk/cubicle | c2fba597da83b9ddc1195f1c8710d5330db24735 | [
"Apache-2.0"
] | 6 | 2018-07-11T15:42:26.000Z | 2022-02-15T17:21:03.000Z | (**************************************************************************)
(* *)
(* Cubicle *)
(* *)
(* ... | 33.096026 | 84 | 0.537369 |
1755e6342a14d57a5fa60993472dc783dd1aa371 | 1,316 | mli | OCaml | src/app/learnocaml_local_storage.mli | Aleridia/learn-ocaml | 69ebd09c3235813e3cdf1e7762e986c8e067dab1 | [
"MIT"
] | 219 | 2017-09-21T12:24:25.000Z | 2022-03-27T03:02:29.000Z | src/app/learnocaml_local_storage.mli | Aleridia/learn-ocaml | 69ebd09c3235813e3cdf1e7762e986c8e067dab1 | [
"MIT"
] | 355 | 2018-04-18T10:04:03.000Z | 2022-03-31T09:32:28.000Z | src/app/learnocaml_local_storage.mli | Aleridia/learn-ocaml | 69ebd09c3235813e3cdf1e7762e986c8e067dab1 | [
"MIT"
] | 59 | 2018-04-06T12:34:55.000Z | 2022-03-22T12:36:33.000Z | (* This file is part of Learn-OCaml.
*
* Copyright (C) 2019 OCaml Software Foundation.
* Copyright (C) 2016-2018 OCamlPro.
*
* Learn-OCaml is distributed under the terms of the MIT license. See the
* included LICENSE file for details. *)
open Learnocaml_data
type 'a storage_key
val init : unit -> unit
val cle... | 26.32 | 93 | 0.783435 |
17f15e13eab4c22ac627e1eeab41ed957fa3924f | 1,446 | ml | OCaml | vendors/ligo-utils/proto-alpha-utils/trace.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | vendors/ligo-utils/proto-alpha-utils/trace.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | vendors/ligo-utils/proto-alpha-utils/trace.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | include Simple_utils.Trace
module List = Simple_utils.List
module AE = Memory_proto_alpha.Alpha_environment
module TP = Tezos_error_monad.Error_monad
type tezos_alpha_error = [`Tezos_alpha_error of TP.error]
let of_tz_error (err:X_error_monad.error) : tezos_alpha_error =
`Tezos_alpha_error err
let trace_decodin... | 32.133333 | 120 | 0.691563 |
aa75ab9c91607d973bcfcf42cfa303a01a4f59f1 | 46,164 | ml | OCaml | src/typing/slice_utils.ml | hixio-mh/flow-1 | 4ae06a8bb2124da64823142fd6f5391f472cf7b5 | [
"MIT"
] | 1 | 2021-09-20T07:39:05.000Z | 2021-09-20T07:39:05.000Z | src/typing/slice_utils.ml | hixio-mh/flow-1 | 4ae06a8bb2124da64823142fd6f5391f472cf7b5 | [
"MIT"
] | null | null | null | src/typing/slice_utils.ml | hixio-mh/flow-1 | 4ae06a8bb2124da64823142fd6f5391f472cf7b5 | [
"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 Reason
open Type
open TypeUtil
(* Don't use Flow_js directly from here *)
module Flow_js = struct end
let mk_object_type
... | 37.531707 | 109 | 0.581579 |
17b50a9d8eda31205767747c422aadb82f7400d3 | 36,588 | ml | OCaml | src/parser_utils/__tests__/env_builder_refinement_test.ml | dizzydaizy/flow | dddadf96f00e9c85ad6b52ad997d19d8f0977cd7 | [
"MIT"
] | null | null | null | src/parser_utils/__tests__/env_builder_refinement_test.ml | dizzydaizy/flow | dddadf96f00e9c85ad6b52ad997d19d8f0977cd7 | [
"MIT"
] | null | null | null | src/parser_utils/__tests__/env_builder_refinement_test.ml | dizzydaizy/flow | dddadf96f00e9c85ad6b52ad997d19d8f0977cd7 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Test_utils
module LocMap = Loc_collections.LocMap
module LocSet = Loc_collections.LocSet
let print_values refinement_of_id =
... | 45.677903 | 804 | 0.474964 |
178d9eae844aec3fd14d87c2bb8e00852707cc11 | 1,414 | ml | OCaml | data/fa15_min/1860.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/1860.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/1860.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec intToReverseList n =
if n <= 0 then [] else (n mod 10) :: (intToReverseList (n / 10));;
let rec listReverseHelper l =
let rec go i =
function
| [] -> i
| headElement::tailList -> go (headElement :: i) tailList in
go [] l;;
let rec digitsOfInt n = listReverseHelper (intToReverseList n);;
le... | 21.104478 | 68 | 0.611033 |
17a257ea839c804c9df3bcd7a0988e4fb3fe542f | 229 | mli | OCaml | libraries/s3/lib/selectObjectContent.mli | tmattio/ocaml-aws | a49d92a03a9a618dab2dc924aed2b494f9b79ae5 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/selectObjectContent.mli | tmattio/ocaml-aws | a49d92a03a9a618dab2dc924aed2b494f9b79ae5 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/selectObjectContent.mli | tmattio/ocaml-aws | a49d92a03a9a618dab2dc924aed2b494f9b79ae5 | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = SelectObjectContentRequest.t
type output = SelectObjectContentOutput.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 32.714286 | 74 | 0.759825 |
17ac2fd258dbbf0b131abe0955e1a3fb46291c15 | 1,354 | ml | OCaml | data/sp14_min/1104.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/1104.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/1104.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec appendLists (l1,l2) =
match l1 with | [] -> l2 | h::t -> h :: (appendLists (t, l2));;
let rec digitsOfInt n =
match n <= 0 with
| true -> []
| false -> appendLists ((digitsOfInt (n / 10)), [n mod 10]);;
let rec arrayLen l = match l with | [] -> 0 | h::t -> 1 + (arrayLen t);;
let rec digitSum dl = ... | 22.566667 | 74 | 0.567947 |
176c79d357d71ab2707161a5d1c29b5330028f02 | 1,891 | mli | OCaml | src/lib/coda_base/user_command.mli | rahulmutt/coda | 7a7dbb04c4dafea860ac03e5f88e58637e8040d3 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/user_command.mli | rahulmutt/coda | 7a7dbb04c4dafea860ac03e5f88e58637e8040d3 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/user_command.mli | rahulmutt/coda | 7a7dbb04c4dafea860ac03e5f88e58637e8040d3 | [
"Apache-2.0"
] | null | null | null | open Core
open Import
module Payload = User_command_payload
module Poly : sig
module Stable : sig
module V1 : sig
type ('payload, 'pk, 'signature) t =
{payload: 'payload; sender: 'pk; signature: 'signature}
[@@deriving bin_io, eq, sexp, hash, yojson]
end
module Latest = V1
end
end
... | 21.735632 | 69 | 0.650978 |
17533443adf1a1bf19bb816b79ef77a8b6f789e7 | 6,814 | ml | OCaml | data/derived/comb/progs/unify/prog3361.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/prog3361.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3361.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let rec sumList xs = match xs with
| [] -> 0
| (h::t) -> h + sumList t
| _ -> -1
;;
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let _ = sumList [1; 2; 3; 4]
let _ = sumList [1; -2; 3; 5]
let _ = sumList [1; 3; 5;... | 24.335714 | 94 | 0.628412 |
1732c7764a8ae9c035b5269e3c1760c79b7685e0 | 14,146 | ml | OCaml | emmett/actions.ml | vmware-archive/vprobe-toolkit | 81ec188659b3da53e81c2922691fb0a04dd85092 | [
"BSD-3-Clause"
] | 1 | 2020-11-15T07:08:27.000Z | 2020-11-15T07:08:27.000Z | emmett/actions.ml | vmware-archive/vprobe-toolkit | 81ec188659b3da53e81c2922691fb0a04dd85092 | [
"BSD-3-Clause"
] | null | null | null | emmett/actions.ml | vmware-archive/vprobe-toolkit | 81ec188659b3da53e81c2922691fb0a04dd85092 | [
"BSD-3-Clause"
] | 1 | 2020-07-24T07:52:09.000Z | 2020-07-24T07:52:09.000Z | (* **********************************************************
* Copyright 2009 VMware, Inc. All rights reserved.
* **********************************************************)
(*
* Actions module: contains helper functions for the semantic actions
* performed during parsing. All complex manipluations from parser.m... | 34.671569 | 82 | 0.604977 |
17f367c9c626e102b5516b97fa84dc979a3bf933 | 8,899 | ml | OCaml | plugins/thumb/thumb_main.ml | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | 1 | 2021-11-29T09:34:41.000Z | 2021-11-29T09:34:41.000Z | plugins/thumb/thumb_main.ml | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | null | null | null | plugins/thumb/thumb_main.ml | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | null | null | null | let package = "bap"
open Core_kernel
open Bap_core_theory
open Bap.Std
open KB.Syntax
include Bap_main.Loggers()
open Thumb_opcodes
open Thumb_core
module MC = Bap.Std.Disasm_expert.Basic
module Target = Arm_target
type insns = opcode * Op.t array
let string_of_opcode x = Sexp.to_string (sexp_of_opcode x)
let str... | 35.883065 | 76 | 0.538937 |
17bf2206b83dae4d32dad9750d001a26f08042a5 | 3,518 | mli | OCaml | hphp/hack/src/deps/fileInfo.mli | smrproject/hhvm | af9f284a02345198a3b42660377c7f5f2734f279 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2019-09-01T19:40:10.000Z | 2019-10-18T13:30:30.000Z | hphp/hack/src/deps/fileInfo.mli | symisc/phvm | 2eca3b36b66794ef2fa9fc57ab713c4cca225694 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-12-16T15:39:15.000Z | 2018-12-16T15:39:16.000Z | hphp/hack/src/deps/fileInfo.mli | symisc/phvm | 2eca3b36b66794ef2fa9fc57ab713c4cca225694 | [
"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.
*
*)
(*****************************************************************************)
(* This module defines the data str... | 34.831683 | 82 | 0.511086 |
1794eecc5fae1eea0902749031c21358ffa2a279 | 3,834 | ml | OCaml | dist/gcc-compatible/lib/Hacl_NaCl_bindings.ml | victor-dumitrescu/hacl-star | 92ca72a2706eec40b8e7fd2f984581e12ac49c0c | [
"Apache-2.0"
] | null | null | null | dist/gcc-compatible/lib/Hacl_NaCl_bindings.ml | victor-dumitrescu/hacl-star | 92ca72a2706eec40b8e7fd2f984581e12ac49c0c | [
"Apache-2.0"
] | null | null | null | dist/gcc-compatible/lib/Hacl_NaCl_bindings.ml | victor-dumitrescu/hacl-star | 92ca72a2706eec40b8e7fd2f984581e12ac49c0c | [
"Apache-2.0"
] | null | null | null | open Ctypes
module Bindings(F:Cstubs.FOREIGN) =
struct
open F
let hacl_NaCl_crypto_secretbox_detached =
foreign "Hacl_NaCl_crypto_secretbox_detached"
(ocaml_bytes @->
(ocaml_bytes @->
(ocaml_bytes @->
(uint32_t @->
(ocaml_bytes @-> (o... | 36.169811 | 80 | 0.534168 |
177fb0b34224ee543665f31f2f9d74f15f2e20ed | 13,114 | ml | OCaml | src/lib/merkle_ledger_tests/test_mask.ml | ValarDragon/coda | 2a73c37c22c4029fcfb0b2a444115eead94bdb8b | [
"Apache-2.0"
] | 1 | 2018-11-01T06:43:26.000Z | 2018-11-01T06:43:26.000Z | src/lib/merkle_ledger_tests/test_mask.ml | ValarDragon/coda | 2a73c37c22c4029fcfb0b2a444115eead94bdb8b | [
"Apache-2.0"
] | null | null | null | src/lib/merkle_ledger_tests/test_mask.ml | ValarDragon/coda | 2a73c37c22c4029fcfb0b2a444115eead94bdb8b | [
"Apache-2.0"
] | null | null | null | (* test_make.ml -- tests Merkle mask connected to underlying Merkle tree *)
open Core
open Test_stubs
let%test_module "Test mask connected to underlying Merkle tree" =
( module struct
module Database = Merkle_ledger.Database
module type Test_intf = sig
val depth : int
module Location : Merkle_... | 40.475309 | 119 | 0.623303 |
17eafceab964ab74896ffe3b50b68b1299960a8b | 2,216 | ml | OCaml | macro/stdlib/str_bench.ml | nandor/llir-benchmark | 2aceae6afe620db96b0234ab90a0058d88304f53 | [
"MIT"
] | 1 | 2020-02-20T21:29:17.000Z | 2020-02-20T21:29:17.000Z | macro/stdlib/str_bench.ml | nandor/benchmark-genm | f23fe14380db5c715b01d97ad9f574c68c26d823 | [
"MIT"
] | null | null | null | macro/stdlib/str_bench.ml | nandor/benchmark-genm | f23fe14380db5c715b01d97ad9f574c68c26d823 | [
"MIT"
] | null | null | null | let test_regex = {regex|Novum Site|regex}
let test_string =
"In Department condita sicut Laboratory Mathematica in manu Lenard, John \
Jones May XIV MCMXXXVII, quamquam is did non adepto recte statutum usque \
post Belli Orbis Terrarum II. Laboratorium Septentrionalis Nova erat \
proque domo longis Wing est... | 34.092308 | 79 | 0.737365 |
1719815187ead1e815c8a4e3376bfa03000e6ab6 | 3,530 | ml | OCaml | lib/reason.ml | npm-opam/jenga | a2356d38bbe3d5be9cbcd4dae4d5a998521f4f44 | [
"Apache-2.0"
] | null | null | null | lib/reason.ml | npm-opam/jenga | a2356d38bbe3d5be9cbcd4dae4d5a998521f4f44 | [
"Apache-2.0"
] | null | null | null | lib/reason.ml | npm-opam/jenga | a2356d38bbe3d5be9cbcd4dae4d5a998521f4f44 | [
"Apache-2.0"
] | null | null | null |
open Core.Std
include Error_reason_type
let filesystem_related = function
(* filesystem related errors which might resolve, and so we choose not to count as
errors when considering [-stop-on-first-error] *)
| File_read_error _
| Digest_error _
| Undigestable _
| Glob_error _
| Unexpected_directory _... | 33.301887 | 95 | 0.655807 |
17e50e4902d4edeab4cde5eab742c1d56cdb3d63 | 20,555 | ml | OCaml | data/derived/comb/progs/unify/prog1651.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/prog1651.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1651.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 33.975207 | 208 | 0.62992 |
17d26ff3d7671ea037fdefed928c3f7969312361 | 9,646 | ml | OCaml | ocamlscript.html.mlx.ml | mjambon/mjambon2016 | bd644e0a42cacba56d0260982614d1ef5c8305b3 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2020-11-02T04:11:52.000Z | 2020-11-02T04:11:52.000Z | ocamlscript.html.mlx.ml | mjambon/mjambon2016 | bd644e0a42cacba56d0260982614d1ef5c8305b3 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | ocamlscript.html.mlx.ml | mjambon/mjambon2016 | bd644e0a42cacba56d0260982614d1ef5c8305b3 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | let print s = print_string s; flush stdout
module Camlmix =
struct
let source = ref ""
let line = ref 1
let char = ref 1
let printer = ref print
let print_with f =
let saved_printer = !printer in
printer := (fun s -> f s; printer := saved_printer)
let print_if test =
if not test then print_with ... | 26 | 1,606 | 0.628654 |
1783a5f112f53a84e7f2bb7a5978dac4f24a86a5 | 11,576 | mli | OCaml | src/fiber/fiber.mli | nojb/dune | fc4a21a513995d20a6b749ddea690ea491a893ae | [
"MIT"
] | 1 | 2022-03-18T02:24:50.000Z | 2022-03-18T02:24:50.000Z | src/fiber/fiber.mli | nojb/dune | fc4a21a513995d20a6b749ddea690ea491a893ae | [
"MIT"
] | null | null | null | src/fiber/fiber.mli | nojb/dune | fc4a21a513995d20a6b749ddea690ea491a893ae | [
"MIT"
] | 1 | 2021-05-07T18:08:53.000Z | 2021-05-07T18:08:53.000Z | (** Concurrency library
This module implements
{{:https://en.wikipedia.org/wiki/Structured_concurrency} "structured
concurrency"}. *)
open! Stdune
(** {1 Generals} *)
(** Type of fiber. A fiber represent a suspended computation. Note that using
the same fiber twice will execute it twice, which is pr... | 31.11828 | 80 | 0.617657 |
1735da995d2a2489ad1114760275181c2dca852a | 360 | ml | OCaml | src/lib/log.ml | bikallem/popper | af8958a342b388edbcb8a9a10cd9c2048863229b | [
"0BSD"
] | null | null | null | src/lib/log.ml | bikallem/popper | af8958a342b388edbcb8a9a10cd9c2048863229b | [
"0BSD"
] | null | null | null | src/lib/log.ml | bikallem/popper | af8958a342b388edbcb8a9a10cd9c2048863229b | [
"0BSD"
] | null | null | null | (* type t = | Empty | Print of (Format.formatter -> unit -> unit) | Add of t * t *)
type t = Format.formatter -> unit -> unit
let empty _ _ = ()
let of_pp (pp : Format.formatter -> unit) out () =
let pp out () = pp out in
Format.fprintf out "@[<v>%a@,@]" pp ()
let pp out (t : t) = t out ()
let add p1 p2 out () ... | 27.692308 | 83 | 0.569444 |
aab82007b7561bbe8280900840038cf5453482c3 | 11,344 | ml | OCaml | src/usuba/src/normalization/expand_array.ml | pedagand/Tornado | d44d20e1a1d1dc76eb3849d70960afff1de213a9 | [
"MIT"
] | 17 | 2020-05-14T06:31:19.000Z | 2020-12-27T08:25:58.000Z | src/usuba/src/normalization/expand_array.ml | pedagand/Tornado | d44d20e1a1d1dc76eb3849d70960afff1de213a9 | [
"MIT"
] | 4 | 2020-05-17T15:07:08.000Z | 2021-03-14T11:14:04.000Z | src/usuba/src/normalization/expand_array.ml | pedagand/Tornado | d44d20e1a1d1dc76eb3849d70960afff1de213a9 | [
"MIT"
] | 6 | 2020-05-20T05:36:00.000Z | 2021-03-14T10:55:47.000Z | (***************************************************************************** )
expand_array.ml
( *****************************************************************************)
open Usuba_AST
open Basic_utils
open Utils
open Printf
type array_fate = Keep | Remove | Split
(* Precision... | 37.939799 | 87 | 0.573255 |
aa4dbbb5997affc7eaf7d035c212fea69aa01289 | 176,529 | ml | OCaml | setup.ml | npm-opam/ppx_compare | 3ce4445be2ca4e251ab701389e2b683ca0698929 | [
"Apache-2.0"
] | null | null | null | setup.ml | npm-opam/ppx_compare | 3ce4445be2ca4e251ab701389e2b683ca0698929 | [
"Apache-2.0"
] | null | null | null | setup.ml | npm-opam/ppx_compare | 3ce4445be2ca4e251ab701389e2b683ca0698929 | [
"Apache-2.0"
] | null | null | null | (* OASIS_START *)
(* DO NOT EDIT (digest: 8f774b20d5bf032705054fc621ffc9a8) *)
(*
Regenerated by OASIS v0.4.5
Visit http://oasis.forge.ocamlcore.org for more information and
documentation about functions used in this file.
*)
module OASISGettext = struct
(* # 22 "src/oasis/OASISGettext.ml" *)
let ns_ str =... | 25.819658 | 82 | 0.470319 |
1796eca9369667c82c61cbe7a3913f061ca4fda1 | 85 | mli | OCaml | lib/googleTTS.mli | esumii/ocamltter | a2981d1590b1ea06751c43e124999c79ddcd377e | [
"MIT"
] | null | null | null | lib/googleTTS.mli | esumii/ocamltter | a2981d1590b1ea06751c43e124999c79ddcd377e | [
"MIT"
] | null | null | null | lib/googleTTS.mli | esumii/ocamltter | a2981d1590b1ea06751c43e124999c79ddcd377e | [
"MIT"
] | null | null | null | type lang = En | Ja
val say : lang -> string -> unit
val say_ja : string -> unit
| 17 | 35 | 0.6 |
Subsets and Splits
HTML Code Excluding Scripts
The query retrieves a limited set of HTML content entries that are longer than 8 characters and do not contain script tags, offering only basic filtering with minimal analytical value.