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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3ab3b56cbe24b87f9f5f34ac3aefde7a89d050f | 3,143 | ml | OCaml | src/mo_idl/idl_to_mo_value.ml | cPlayIt/motoko | dca676ebe6df0f33657ecf33045f0269164c217c | [
"Apache-2.0"
] | 1 | 2021-06-14T11:05:34.000Z | 2021-06-14T11:05:34.000Z | src/mo_idl/idl_to_mo_value.ml | paulyoung/motoko | 1a5501018c64b6af50e6732cffcbb55b69bdc944 | [
"Apache-2.0"
] | null | null | null | src/mo_idl/idl_to_mo_value.ml | paulyoung/motoko | 1a5501018c64b6af50e6732cffcbb55b69bdc944 | [
"Apache-2.0"
] | null | null | null | open Idllib.Syntax
open Idllib.Exception
open Source
module T = Mo_types.Type
(*
This module can translate Candid values (as parsed from the textual
representation) into Motoko values. This is a pragmatic translation which is
only used in the Candid test suite runner, to turn assertions about the
deserialized value in... | 39.2875 | 105 | 0.652243 |
f36a766ca95967c7bcb21757c80196c5a7b83be7 | 7,715 | ml | OCaml | data/derived/comb/progs/unify/prog1216.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/prog1216.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1216.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 25.546358 | 148 | 0.629812 |
af833a64d0337d117dd880fbc2087db2c28db4b3 | 1,068 | ml | OCaml | tools/verdict-back-ends/soteria_pp/examples/andrews-pg-36-example.ml | Syrupz-UO/VERDICT-ge-ha | ed2094c083c04f41d2c6614edb5b6c4a77c38244 | [
"BSD-3-Clause"
] | 22 | 2020-03-02T17:58:26.000Z | 2022-02-02T03:12:01.000Z | tools/verdict-back-ends/soteria_pp/examples/andrews-pg-36-example.ml | Syrupz-UO/VERDICT-ge-ha | ed2094c083c04f41d2c6614edb5b6c4a77c38244 | [
"BSD-3-Clause"
] | 47 | 2020-03-31T23:22:01.000Z | 2022-03-15T15:51:11.000Z | tools/verdict-back-ends/soteria_pp/examples/andrews-pg-36-example.ml | kind2-mc/VERDICT | 8944d6616599246ec88b137ac50e98af3a447d12 | [
"BSD-3-Clause"
] | 11 | 2020-03-03T22:14:22.000Z | 2022-02-02T03:12:03.000Z | (* Example from
http://www.ewp.rpi.edu/hartford/~ernesto/S2008/SMRE/Papers/Andrews-FTA-tutor.pdf
slides 36-37 *)
#use "top.ml";;
let lFromErr err = log(1. /. (1. -. err)) ;;
let ea = Leaf("A", (lFromErr 0.1), 1.);;
let eb = Leaf("B", (lFromErr 0.1), 1.);;
let ec = Leaf("C", (lFromErr 0.1), 1.);;
let ed = Lea... | 33.375 | 83 | 0.66573 |
af8c6c5208c393f593bb80e47a7256590f34b49c | 625 | mli | OCaml | src/nativeint.mli | zenhack/base | c6780dd2c8a4adc76591c11ce1970e230bf737f9 | [
"MIT"
] | null | null | null | src/nativeint.mli | zenhack/base | c6780dd2c8a4adc76591c11ce1970e230bf737f9 | [
"MIT"
] | 1 | 2017-11-08T23:21:19.000Z | 2017-11-08T23:21:19.000Z | src/nativeint.mli | zenhack/base | c6780dd2c8a4adc76591c11ce1970e230bf737f9 | [
"MIT"
] | 2 | 2021-06-16T23:18:39.000Z | 2022-03-01T19:47:33.000Z | (** Processor-native integers. *)
open! Import
include Int_intf.S with type t = nativeint
(** {2 Conversion functions} *)
val of_int : int -> t
val to_int : t -> int option
val of_int32 : int32 -> t
val to_int32 : t -> int32 option
val of_nativeint : nativeint -> t
val to_nativeint : t -> nativeint
val of_int64 : in... | 26.041667 | 82 | 0.7072 |
f3d8f34748e67610435cc57ce5b9a9fdce81d735 | 2,318 | ml | OCaml | examples/realtime.ml | polazarus/oclock | 5f037431ccbd466f221b8637ce235e401e1f3e43 | [
"ISC"
] | 5 | 2015-01-05T10:58:06.000Z | 2015-12-04T20:31:47.000Z | examples/realtime.ml | polazarus/oclock | 5f037431ccbd466f221b8637ce235e401e1f3e43 | [
"ISC"
] | 1 | 2017-06-13T11:05:22.000Z | 2017-06-13T11:05:22.000Z | examples/realtime.ml | polazarus/oclock | 5f037431ccbd466f221b8637ce235e401e1f3e43 | [
"ISC"
] | 1 | 2017-05-16T16:59:05.000Z | 2017-05-16T16:59:05.000Z | (*
Copyright (c) 2011-2013, Mickaël Delahaye, http://micdel.fr
Permission to use, copy, modify, and/or 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 THE AUTH... | 41.392857 | 138 | 0.708801 |
af86f8b00d4314b8ac893169711e15a43242861e | 10,019 | mli | OCaml | lib/functoria_key.mli | TheLortex/functoria | 7e158e6ff9a5a662fdc06723e89135cb1f2751cb | [
"0BSD"
] | 1 | 2021-06-16T22:58:42.000Z | 2021-06-16T22:58:42.000Z | lib/functoria_key.mli | TheLortex/functoria | 7e158e6ff9a5a662fdc06723e89135cb1f2751cb | [
"0BSD"
] | null | null | null | lib/functoria_key.mli | TheLortex/functoria | 7e158e6ff9a5a662fdc06723e89135cb1f2751cb | [
"0BSD"
] | 1 | 2021-06-16T22:58:42.000Z | 2021-06-16T22:58:42.000Z | (*
* Copyright (c) 2015 Nicolas Ojeda Bar <n.oje.bar@gmail.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... | 32.74183 | 83 | 0.649067 |
f363467f07a96c5565b8a0b7592e216bb00dd6e7 | 2,030 | ml | OCaml | sledge/src/fol/var_intf.ml | hakjoooh/infer | 27150cb7d3d0dc3b37b631e023fb3e4ac5e6c14d | [
"MIT"
] | null | null | null | sledge/src/fol/var_intf.ml | hakjoooh/infer | 27150cb7d3d0dc3b37b631e023fb3e4ac5e6c14d | [
"MIT"
] | 6 | 2021-06-28T20:43:36.000Z | 2022-02-27T11:27:43.000Z | sledge/src/fol/var_intf.ml | hakjoooh/infer | 27150cb7d3d0dc3b37b631e023fb3e4ac5e6c14d | [
"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 type REPR = sig
type t [@@deriving compare, equal, sexp]
val make : id:int -> name:string -> t
val id : t -> int
va... | 27.066667 | 75 | 0.601478 |
af1f2ec2e3bf2214e060210e67e84ca9bfd4bc84 | 1,068 | ml | OCaml | source/interprocedural_analyses/taint/test/taintResultTest.ml | ekmixon/pyre-check | bd2475cc0cf4bef941f0aea6df10d674e6c907ab | [
"MIT"
] | 5,975 | 2018-05-11T15:54:32.000Z | 2022-03-31T14:38:00.000Z | source/interprocedural_analyses/taint/test/taintResultTest.ml | yuhan1212/pyre-check | 37a3fcb4dec517c37f381743bac8f8a269218f8c | [
"MIT"
] | 524 | 2018-05-11T16:47:20.000Z | 2022-03-22T17:43:06.000Z | source/interprocedural_analyses/taint/test/taintResultTest.ml | yuhan1212/pyre-check | 37a3fcb4dec517c37f381743bac8f8a269218f8c | [
"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.
*)
open Core
open OUnit2
open Test
open Interprocedural
let test_decorators_to_skip _ =
let normal_model =
{ Taint.Result.empty... | 28.105263 | 86 | 0.694757 |
af79777dd31f021c5ea3b08fd82216e1aedfdc92 | 2,758 | ml | OCaml | hphp/hack/src/typing/tast_check/xhp_required_check.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/xhp_required_check.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/xhp_required_check.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"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 Hh_prelude
open Aast
open Typing_defs
open Utils
module S = Core_kernel.Sequence
module Cls = Decl_provider.Clas... | 28.729167 | 79 | 0.649384 |
af929064b486bfa6f21c03df2189de0b9a6dd3b1 | 1,432 | ml | OCaml | src/mode.ml | fdopen/jbuilder | a7067f5aa867c4c0d21650491e03793caf734f52 | [
"Apache-2.0"
] | null | null | null | src/mode.ml | fdopen/jbuilder | a7067f5aa867c4c0d21650491e03793caf734f52 | [
"Apache-2.0"
] | null | null | null | src/mode.ml | fdopen/jbuilder | a7067f5aa867c4c0d21650491e03793caf734f52 | [
"Apache-2.0"
] | null | null | null | open! Import
type t = Byte | Native
let all = [Byte; Native]
let t =
let open Sexp.Of_sexp in
enum
[ "byte" , Byte
; "native" , Native
]
let choose byte native = function
| Byte -> byte
| Native -> native
let compiled_unit_ext = choose ".cmo" ".cmx"
let compiled_lib_ext = choose ".cma" ".cm... | 18.126582 | 52 | 0.551676 |
af568c55c725a3f28869a94c0702cf2573965883 | 4,646 | ml | OCaml | lib/body.ml | kayceesrk/httpaf | 791593e0f576a54a6eb37534abde2df60a8370e8 | [
"BSD-3-Clause"
] | 8 | 2020-10-15T16:05:25.000Z | 2020-10-23T15:33:12.000Z | lib/body.ml | kayceesrk/httpaf | 791593e0f576a54a6eb37534abde2df60a8370e8 | [
"BSD-3-Clause"
] | null | null | null | lib/body.ml | kayceesrk/httpaf | 791593e0f576a54a6eb37534abde2df60a8370e8 | [
"BSD-3-Clause"
] | null | null | null | (*----------------------------------------------------------------------------
Copyright (c) 2016 Inhabited Type LLC.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistri... | 27.987952 | 80 | 0.658201 |
f3efca25ab850cac95c9bac55e3796d7de775438 | 18,484 | ml | OCaml | src/typing/context.ml | Opportunitylivetv/flow | 38e9a22fc0302893343ef7ebe69ceb44ffa3f763 | [
"MIT"
] | 2 | 2018-02-28T06:36:27.000Z | 2018-02-28T06:36:30.000Z | src/typing/context.ml | martina6hall/flow | 38e9a22fc0302893343ef7ebe69ceb44ffa3f763 | [
"MIT"
] | null | null | null | src/typing/context.ml | martina6hall/flow | 38e9a22fc0302893343ef7ebe69ceb44ffa3f763 | [
"MIT"
] | 1 | 2018-02-28T06:36:11.000Z | 2018-02-28T06:36:11.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.
*)
module LocMap = Utils_js.LocMap
exception Props_not_found of Type.Properties.id
exception Exports_not_found of Type.Exports.id
exceptio... | 36.172211 | 109 | 0.764878 |
f3c92c8c52b6c8dab562033a463fa77479df785e | 20,402 | ml | OCaml | ocaml/utils/binutils.ml | johnyob/typed-ppxlib | 3870bda5d3d69c9d7153aaf3cd87990aa862b2d9 | [
"MIT"
] | 28 | 2021-04-03T12:50:31.000Z | 2022-03-09T01:30:00.000Z | ocaml/utils/binutils.ml | johnyob/typed-ppxlib | 3870bda5d3d69c9d7153aaf3cd87990aa862b2d9 | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | ocaml/utils/binutils.ml | johnyob/typed-ppxlib | 3870bda5d3d69c9d7153aaf3cd87990aa862b2d9 | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 29.568116 | 98 | 0.600578 |
af94bcca89df7079ac1e627a85f0a0ee7182839c | 1,489 | ml | OCaml | command/codexGeneratorCommand.ml | aspin/pyre-check | fe78b41789ba3ef091b0b021d9a1c6267905a7f8 | [
"MIT"
] | null | null | null | command/codexGeneratorCommand.ml | aspin/pyre-check | fe78b41789ba3ef091b0b021d9a1c6267905a7f8 | [
"MIT"
] | null | null | null | command/codexGeneratorCommand.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 Ast
open Pyre
let to_json ~configuration handles =
let get_sources =
List.fold
~init:[]
~f:(fun sources p... | 28.634615 | 90 | 0.683009 |
f3ff3b3913dd1b8c8156fab16d9526cc6a48bf9b | 17,686 | ml | OCaml | myocamlbuild.ml | npm-opam/ppx_type_conv | bc73b4632f4d28dd8bd1b0977cd59f7d78b0ae3e | [
"Apache-2.0"
] | null | null | null | myocamlbuild.ml | npm-opam/ppx_type_conv | bc73b4632f4d28dd8bd1b0977cd59f7d78b0ae3e | [
"Apache-2.0"
] | null | null | null | myocamlbuild.ml | npm-opam/ppx_type_conv | bc73b4632f4d28dd8bd1b0977cd59f7d78b0ae3e | [
"Apache-2.0"
] | null | null | null | (* OASIS_START *)
(* DO NOT EDIT (digest: c560552329fee0118baacd3f23cead06) *)
module OASISGettext = struct
(* # 22 "src/oasis/OASISGettext.ml" *)
let ns_ str =
str
let s_ str =
str
let f_ (str: ('a, 'b, 'c, 'd) format4) =
str
let fn_ fmt1 fmt2 n =
if n = 1 then
fmt1^^""
else
... | 27.677621 | 90 | 0.495872 |
af9b7fd78bf384bc12fed41f2459ea736721ed34 | 3,426 | ml | OCaml | src/server/monitor_listener/serverMonitorListener.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/server/monitor_listener/serverMonitorListener.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/server/monitor_listener/serverMonitorListener.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open ServerEnv
let kill_workers () =
(* TODO - find a way to gracefully kill the workers. At the moment, if the workers are in... | 41.277108 | 99 | 0.714244 |
af85eba6537f151618f8ad4c80ca053dcccfa1f4 | 541 | ml | OCaml | rescript/test/MapOcamlSyntaxSpecificTest.ml | pm5/tablecloth | 76a9bf42cec03b3cd1e940d7441c5c8f7562e847 | [
"MIT"
] | null | null | null | rescript/test/MapOcamlSyntaxSpecificTest.ml | pm5/tablecloth | 76a9bf42cec03b3cd1e940d7441c5c8f7562e847 | [
"MIT"
] | null | null | null | rescript/test/MapOcamlSyntaxSpecificTest.ml | pm5/tablecloth | 76a9bf42cec03b3cd1e940d7441c5c8f7562e847 | [
"MIT"
] | null | null | null | open Tablecloth
open AlcoJest
let suite =
suite "Map - OCaml Syntax" (fun () ->
let animals = Map.String.fromList [ ("Bears", 2) ] in
test ".?{}" (fun () ->
expect (Map.( .?{} ) animals "Bears")
|> toEqual Eq.(option int) (Some 2) ) ;
test ".?{}<-" (fun () ->
let open... | 30.055556 | 59 | 0.473198 |
af36922aa24a134e7d3e61c0bf29e0cf25872d53 | 45,809 | ml | OCaml | test/test.ml | tholiao/pyre-check | f5705fb5dae6a78623a058e5972461e89e283634 | [
"MIT"
] | null | null | null | test/test.ml | tholiao/pyre-check | f5705fb5dae6a78623a058e5972461e89e283634 | [
"MIT"
] | null | null | null | test/test.ml | tholiao/pyre-check | f5705fb5dae6a78623a058e5972461e89e283634 | [
"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 Analysis
open Ast
open Pyre
open PyreParser
open Statement
let initialize () =
Memory.get_heap_handle (Configur... | 33.882396 | 118 | 0.587395 |
af67367d5415f448ec7fd9ed533b15f77e16be77 | 2,022 | mli | OCaml | src/gapi/gapiOAuth1.mli | astrada/gapi-ocaml | e3a6b5c52b25e727bd7d06df1c820f722aff7b2f | [
"MIT"
] | 68 | 2015-01-21T09:19:55.000Z | 2022-02-25T03:17:19.000Z | src/gapi/gapiOAuth1.mli | astrada/gapi-ocaml | e3a6b5c52b25e727bd7d06df1c820f722aff7b2f | [
"MIT"
] | 25 | 2015-05-16T23:44:58.000Z | 2022-01-14T15:13:22.000Z | src/gapi/gapiOAuth1.mli | astrada/gapi-ocaml | e3a6b5c52b25e727bd7d06df1c820f722aff7b2f | [
"MIT"
] | 17 | 2015-05-17T23:35:17.000Z | 2022-02-28T20:45:03.000Z | (** OAuth 1.0a authorization API implementation.
*)
val generate_signature :
GapiCore.HttpMethod.t ->
string ->
(string * string) list ->
GapiCore.SignatureMethod.t ->
string ->
string ->
string
val generate_oauth_header : (string * string) list -> string -> string
val build_oauth_fields_to_sign :
... | 24.658537 | 70 | 0.723541 |
f35c1198a7347d5ec2eaaa388750acb40a43a7de | 696 | ml | OCaml | misc.ml | chetmurthy/ocaml-cppffigen | 82937271c7774ac2d938f5c6573c5c037b02c557 | [
"Apache-2.0"
] | 30 | 2017-01-03T10:34:04.000Z | 2021-05-29T20:30:00.000Z | misc.ml | chetmurthy/ocaml-cppffigen | 82937271c7774ac2d938f5c6573c5c037b02c557 | [
"Apache-2.0"
] | 1 | 2022-01-22T20:45:56.000Z | 2022-01-24T21:19:00.000Z | misc.ml | chetmurthy/ocaml-cppffigen | 82937271c7774ac2d938f5c6573c5c037b02c557 | [
"Apache-2.0"
] | 1 | 2019-08-06T22:29:36.000Z | 2019-08-06T22:29:36.000Z |
let car = List.hd
let cdr = List.tl
let rec sep_last = function
[] -> failwith "sep_last"
| hd::[] -> (hd,[])
| hd::tl ->
let (l,tl) = sep_last tl in (l,hd::tl)
let third3 (a,b,c) = c
let push l x = (l := x :: !l)
let invoked_with ?flag cmdna =
let variant_names = [cmdna; cmdna^".byte"; cmdna^".nat... | 25.777778 | 64 | 0.573276 |
f3c0f79e7629f0773fe63f61f4bd2f10558c0bf2 | 7,631 | mli | OCaml | src/kit/b0_opam.mli | fdopen/b0 | acf67fe6dcec3477a2093b47c3d1c8ac66a28960 | [
"ISC"
] | null | null | null | src/kit/b0_opam.mli | fdopen/b0 | acf67fe6dcec3477a2093b47c3d1c8ac66a28960 | [
"ISC"
] | null | null | null | src/kit/b0_opam.mli | fdopen/b0 | acf67fe6dcec3477a2093b47c3d1c8ac66a28960 | [
"ISC"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2020 The b0 programmers. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
---------------------------------------------------------------------------*)
(** B0 [opam] support.
... | 36.165877 | 79 | 0.609094 |
af976b8fa65d2252ea6472cdf7e8fdb5e8834ec6 | 11,477 | ml | OCaml | src/irmin/type/type_json.ml | anmolsahoo25/irmin | 652ad8029483fa912d5bef34edc3aedda8aa3e6f | [
"ISC"
] | null | null | null | src/irmin/type/type_json.ml | anmolsahoo25/irmin | 652ad8029483fa912d5bef34edc3aedda8aa3e6f | [
"ISC"
] | null | null | null | src/irmin/type/type_json.ml | anmolsahoo25/irmin | 652ad8029483fa912d5bef34edc3aedda8aa3e6f | [
"ISC"
] | null | null | null | (*
* Copyright (c) 2016-2017 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... | 27.588942 | 80 | 0.528622 |
af6dfa0f53f4753a766e227f8e566b7300d82d9d | 1,614 | mli | OCaml | src/equality/eqchk.mli | Andromedans/andromeda | 761b0fd07cab5cbcf68a06e79b7f27301826ca82 | [
"BSD-2-Clause"
] | 210 | 2015-11-10T17:16:02.000Z | 2022-03-31T16:08:42.000Z | src/equality/eqchk.mli | anjapetkovic/andromeda | a5c678450e6c6d4a7cd5eee1196bde558541b994 | [
"BSD-2-Clause"
] | 244 | 2015-11-10T16:20:24.000Z | 2020-09-06T03:55:46.000Z | src/equality/eqchk.mli | anjapetkovic/andromeda | a5c678450e6c6d4a7cd5eee1196bde558541b994 | [
"BSD-2-Clause"
] | 20 | 2015-11-10T16:15:10.000Z | 2022-02-16T08:08:23.000Z | (** The type of equality checkers *)
type checker
(** The initial equality checker which can only handle α-equality *)
val empty_checker : checker
(** Add a type computation rule (also known as β-rule. XXX what about exceptions? *)
val add_type_computation : checker -> Nucleus.derivation -> checker
(** Add a term co... | 39.365854 | 109 | 0.740397 |
f31e0825d2bbaedc75e1b8009b27b21a87cbb605 | 8,340 | mli | OCaml | _build/default/Api.mli | leqaaJamal/tezos-api | 65a837b26f57e1d69195f449a0f29cf1055df515 | [
"BSD-3-Clause"
] | null | null | null | _build/default/Api.mli | leqaaJamal/tezos-api | 65a837b26f57e1d69195f449a0f29cf1055df515 | [
"BSD-3-Clause"
] | null | null | null | _build/default/Api.mli | leqaaJamal/tezos-api | 65a837b26f57e1d69195f449a0f29cf1055df515 | [
"BSD-3-Clause"
] | null | null | null | (** This API provides functions to interact with a Tezos node *)
open Tezos_protocol_007_PsDELPH1.Protocol.Alpha_context
open Tezos_client_007_PsDELPH1
open Api_error
(** A public key of an account (implicit or originated)*)
type puk
(** A public key hash of an account (implicit or originated) *)
type pukh
(** Cont... | 42.335025 | 147 | 0.711871 |
af99dff720737c808e4b4d3e6f03a8fc3893269b | 3,332 | mli | OCaml | gospel/test/positive/basic_functions_axioms.mli | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | null | null | null | gospel/test/positive/basic_functions_axioms.mli | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | null | null | null | gospel/test/positive/basic_functions_axioms.mli | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* GOSPEL -- A Specification Language for OCaml *)
(* *)
(* Copyrigh... | 25.435115 | 92 | 0.451981 |
f3e202b3c3986748c17583e0a2e269ac977becce | 32,603 | ml | OCaml | enfFormula.ml | hobitans/TGHyper | eaf0fe7b80da3d2dd195aef33218b6e94c2af4f8 | [
"0BSD"
] | null | null | null | enfFormula.ml | hobitans/TGHyper | eaf0fe7b80da3d2dd195aef33218b6e94c2af4f8 | [
"0BSD"
] | null | null | null | enfFormula.ml | hobitans/TGHyper | eaf0fe7b80da3d2dd195aef33218b6e94c2af4f8 | [
"0BSD"
] | null | null | null | open Printf
open FormulaHyperCTL
open Functions
(******************************
This module checks if a given HyperCTL* formula is in exist-forall normal form,
thus no universally quantfied path variables scopes direct or indirect over an
existentially quantfied one.
For Formulas in enf, constructs an equisatifiable... | 41.63857 | 210 | 0.531853 |
af98aecde664758689eef75a01b5c4f6f225f756 | 2,891 | ml | OCaml | src/uarray1_with_fortran_layout.ml | hcarty/ulib | b9bb020c2956d0d75b5220c69c90b13035e57b96 | [
"BSD-3-Clause"
] | 1 | 2016-09-07T14:25:46.000Z | 2016-09-07T14:25:46.000Z | src/uarray1_with_fortran_layout.ml | hcarty/ulib | b9bb020c2956d0d75b5220c69c90b13035e57b96 | [
"BSD-3-Clause"
] | null | null | null | src/uarray1_with_fortran_layout.ml | hcarty/ulib | b9bb020c2956d0d75b5220c69c90b13035e57b96 | [
"BSD-3-Clause"
] | null | null | null | (***********************************************************************)
(* *)
(* My_stdlib *)
(* *)
(* projets E... | 32.852273 | 82 | 0.497752 |
af658df3cbf2a06a7e388d638a00cffad45c35fd | 130,553 | ml | OCaml | common/components.ml | jargh/s2n-bignum | 60e0181906811865bec1501e18c1384482585a46 | [
"Apache-2.0"
] | null | null | null | common/components.ml | jargh/s2n-bignum | 60e0181906811865bec1501e18c1384482585a46 | [
"Apache-2.0"
] | null | null | null | common/components.ml | jargh/s2n-bignum | 60e0181906811865bec1501e18c1384482585a46 | [
"Apache-2.0"
] | null | null | null | (*
* 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 ... | 42.888633 | 80 | 0.639748 |
af434186831a4cc0a5d30fb138234f9e5b26aa75 | 907 | mli | OCaml | tbf/tools/crest/cil/_build/src/formatlex.inferred.mli | leostrakosch/testbasedfalsification | 18d08d6cee6fbfbad4d4ebfa7aed235521edec2b | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2018-02-13T17:46:38.000Z | 2022-03-15T06:20:24.000Z | tbf/tools/crest/cil/_build/src/formatlex.inferred.mli | leostrakosch/testbasedfalsification | 18d08d6cee6fbfbad4d4ebfa7aed235521edec2b | [
"ECL-2.0",
"Apache-2.0"
] | 8 | 2018-07-17T22:35:02.000Z | 2019-03-11T07:19:00.000Z | tbf/tools/crest/cil/_build/src/formatlex.inferred.mli | leostrakosch/testbasedfalsification | 18d08d6cee6fbfbad4d4ebfa7aed235521edec2b | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2018-05-05T15:16:28.000Z | 2020-03-23T09:40:28.000Z | exception Eof
exception InternalError of string
module H = Hashtbl
module E = Errormsg
val keywords : (string, Formatparse.token) H.t
val scan_ident : string -> Formatparse.token
val init : prog:string -> Lexing.lexbuf
val finish : unit -> unit
val error : string -> 'a
val scan_escape : string -> string
val get_value :... | 37.791667 | 71 | 0.759647 |
af661ac37455e5a807b83adcad5b91d648b874ca | 113,727 | ml | OCaml | src/ocaml/typing/typemod.ml | ttamttam/merlin | bae1a8726e1309a1b37de9fe72d3b31dd9b4565a | [
"MIT"
] | null | null | null | src/ocaml/typing/typemod.ml | ttamttam/merlin | bae1a8726e1309a1b37de9fe72d3b31dd9b4565a | [
"MIT"
] | null | null | null | src/ocaml/typing/typemod.ml | ttamttam/merlin | bae1a8726e1309a1b37de9fe72d3b31dd9b4565a | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 36.840622 | 92 | 0.590036 |
af07cdbbc3cdc56d7b0e0560a95999e8eddc76da | 1,572 | mli | OCaml | duniverse/menhir/src/StackSymbols.mli | pitag-ha/ppx_universe | 4d7dab337767961e346e4bfe1596f38370581dee | [
"MIT"
] | 2 | 2022-03-03T01:38:24.000Z | 2022-03-03T01:54:36.000Z | duniverse/menhir/src/StackSymbols.mli | pitag-ha/ppx_universe | 4d7dab337767961e346e4bfe1596f38370581dee | [
"MIT"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | duniverse/menhir/src/StackSymbols.mli | pitag-ha/ppx_universe | 4d7dab337767961e346e4bfe1596f38370581dee | [
"MIT"
] | 1 | 2022-03-02T19:35:36.000Z | 2022-03-02T19:35:36.000Z | (******************************************************************************)
(* *)
(* Menhir *)
(* ... | 46.235294 | 80 | 0.39313 |
f3e2254961c85f943c3ee9131a94b098cfd9b797 | 3,577 | mli | OCaml | projects/miragesdk/src/sdk/init.mli | ijc/linuxkit | f2d6752751318477ec86e4677514d5a4890249c1 | [
"Apache-2.0"
] | 1 | 2021-04-25T19:23:03.000Z | 2021-04-25T19:23:03.000Z | projects/miragesdk/src/sdk/init.mli | ijc/linuxkit | f2d6752751318477ec86e4677514d5a4890249c1 | [
"Apache-2.0"
] | null | null | null | projects/miragesdk/src/sdk/init.mli | ijc/linuxkit | f2d6752751318477ec86e4677514d5a4890249c1 | [
"Apache-2.0"
] | 2 | 2017-05-04T05:53:43.000Z | 2020-09-27T00:24:31.000Z | (** Init functions.
[Init] contains funcitons to initialise the state of the
privileged container.
{ul
{- fowrard and filter the network traffic using BPF (for instance
to allow only DHCP traffic).}
{- open pipes for forwarding the calf's stdout and stderr
to the privileged containe... | 29.561983 | 74 | 0.640201 |
af937a2755cacfe312317599dadff968af71bc38 | 5,075 | ml | OCaml | infer/src/base/SymOp.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 4 | 2021-11-19T02:07:46.000Z | 2022-03-24T06:03:50.000Z | infer/src/base/SymOp.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 1 | 2021-04-05T15:19:58.000Z | 2021-12-16T04:22:26.000Z | infer/src/base/SymOp.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 1 | 2019-10-24T14:47:52.000Z | 2019-10-24T14:47:52.000Z | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* 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.
*)
(** Symbolic Operations and Failures: the units in which analysis work is measured *)
open! I... | 31.71875 | 100 | 0.683547 |
af8d64a85f33796d63c1afb5d36f14f11dc7ff1e | 6,123 | mli | OCaml | src/monocypher.mli | vbmithr/ocaml-monocypher | f2ef9d59d9e716108e32ca88923e3fe90ad402a3 | [
"CC0-1.0"
] | 7 | 2018-04-18T10:45:00.000Z | 2020-07-15T23:32:45.000Z | src/monocypher.mli | vbmithr/ocaml-monocypher | f2ef9d59d9e716108e32ca88923e3fe90ad402a3 | [
"CC0-1.0"
] | 1 | 2020-01-22T22:02:02.000Z | 2020-01-24T14:19:43.000Z | src/monocypher.mli | vbmithr/ocaml-monocypher | f2ef9d59d9e716108e32ca88923e3fe90ad402a3 | [
"CC0-1.0"
] | 2 | 2018-09-30T01:47:08.000Z | 2019-06-13T17:51:52.000Z | (*---------------------------------------------------------------------------
Copyright (c) 2017 Vincent Bernardoff. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
---------------------------------------------------------------------------*)
(** {1 Memory Wipe} *)
va... | 30.311881 | 88 | 0.615711 |
af05b3e1b4ab2be22cc62b26e6fb122e0488aa7a | 2,136 | ml | OCaml | src/dockerfile_opam_cmdliner.ml | avsm/ocaml-dockerfile-opam | c869da56f18234e8e319bed316eb0cc3911d6bf9 | [
"0BSD"
] | 1 | 2016-06-07T15:35:31.000Z | 2016-06-07T15:35:31.000Z | src/dockerfile_opam_cmdliner.ml | avsm/ocaml-dockerfile-opam | c869da56f18234e8e319bed316eb0cc3911d6bf9 | [
"0BSD"
] | null | null | null | src/dockerfile_opam_cmdliner.ml | avsm/ocaml-dockerfile-opam | c869da56f18234e8e319bed316eb0cc3911d6bf9 | [
"0BSD"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2016 Anil Madhavapeddy. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)
ope... | 43.591837 | 83 | 0.601124 |
f34d1230aaac31359a7f7b0790dc49565dcb2698 | 5,474 | mli | OCaml | src/validate.mli | samoht/base | 1620ee58db669b95c2427052f70953c2d56b811b | [
"MIT"
] | 2 | 2022-03-03T01:38:24.000Z | 2022-03-03T01:54:36.000Z | src/validate.mli | samoht/base | 1620ee58db669b95c2427052f70953c2d56b811b | [
"MIT"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | src/validate.mli | samoht/base | 1620ee58db669b95c2427052f70953c2d56b811b | [
"MIT"
] | 2 | 2021-06-16T23:18:39.000Z | 2022-03-01T19:47:33.000Z | (** A module for organizing validations of data structures.
Allows standardized ways of checking for conditions, and keeps track of the location
of errors by keeping a path to each error found. Thus, if you were validating the
following datastructure:
{[
{ foo = 3;
bar = { snoo = 34.5;
... | 30.752809 | 90 | 0.626233 |
af9f70a399ed466f252372196c57a75b1d4b3df2 | 629 | ml | OCaml | data/sp14/1980.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/1980.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/1980.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 (digitsOfInt (n / 10)) :: (n mod 10);;
(* fix
let rec digitsOfInt n =
if n < 0
then []
else (match n with | 0 -> [] | _ -> (digitsOfInt (n / 10)) @ [n mod 10]);;
*)
(* changed spans
(3,24)-(3,46)
(3,24)-(3,60)
(3,50)-(3,60)
*)
(* type error slice
(2,3)-(3,62)... | 13.104167 | 76 | 0.464229 |
f34256af98eca2f1a0074065974439c72d52465c | 10,216 | ml | OCaml | infer/src/backend/ondemand.ml | JamesBrace/infer | bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15 | [
"MIT"
] | null | null | null | infer/src/backend/ondemand.ml | JamesBrace/infer | bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15 | [
"MIT"
] | null | null | null | infer/src/backend/ondemand.ml | JamesBrace/infer | bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
(** Module for on-demand analysis. *)
module L = Logging
module F = Format
type analyze_ondemand = Summary.t -> Procdesc.t ... | 38.119403 | 99 | 0.731989 |
f367f8a979b54c963e3d9b8333ae7264977db7f4 | 207 | mli | OCaml | plugins/thumb/thumb_bits.mli | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | 1 | 2021-11-29T09:34:41.000Z | 2021-11-29T09:34:41.000Z | plugins/thumb/thumb_bits.mli | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | null | null | null | plugins/thumb/thumb_bits.mli | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | null | null | null | open Bap_core_theory
open Thumb_core
open Thumb_opcodes
module Make(CT : Theory.Core) : sig
open Theory
val sx : r32 reg -> _ reg -> cond -> unit eff
val ux : r32 reg -> _ reg -> cond -> unit eff
end
| 20.7 | 47 | 0.676329 |
af1b3e7b745b48309f8d9d8fc21b2ad479a31e3e | 12,041 | ml | OCaml | source/ast/test/sourceTest.ml | PulkitMishra/pyre-check | 44a9707d4a43ec98ea1833ce42e36998e41bca68 | [
"MIT"
] | null | null | null | source/ast/test/sourceTest.ml | PulkitMishra/pyre-check | 44a9707d4a43ec98ea1833ce42e36998e41bca68 | [
"MIT"
] | 2 | 2021-08-21T07:50:23.000Z | 2022-02-27T21:33:33.000Z | source/ast/test/sourceTest.ml | PulkitMishra/pyre-check | 44a9707d4a43ec98ea1833ce42e36998e41bca68 | [
"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 OUnit2
open Ast
open Statement
open Ignore
open Test
let create_ignore ignored_line codes kind start_line start_col... | 38.10443 | 100 | 0.653351 |
d2e663c1fb71162f2cd4851e94b1f540c06ed63e | 608 | mly | OCaml | tests/bodin.mly | vbgl/Obelisk | ab8ab94f1974caca8a164768634fa171cfe47503 | [
"MIT"
] | 39 | 2017-07-06T09:41:44.000Z | 2022-02-09T17:01:07.000Z | tests/bodin.mly | vbgl/Obelisk | ab8ab94f1974caca8a164768634fa171cfe47503 | [
"MIT"
] | 12 | 2017-07-07T11:14:24.000Z | 2022-03-21T19:31:02.000Z | tests/bodin.mly | Lelio-Brun/MenhirBrav | ab8ab94f1974caca8a164768634fa171cfe47503 | [
"MIT"
] | 4 | 2020-03-13T11:08:08.000Z | 2022-03-14T13:16:00.000Z | (* Submitted by Martin Bodin.
https://gitlab.inria.fr/fpottier/menhir/issues/4
This file was rejected by Menhir prior to 2017/12/06
because expr_or_assign(el) invokes expr(el)
which invokes expr_or_assign(cr). *)
%token NEW_LINE
%token LPAR RPAR
%token UNIT
%start<unit> main
%%
main:
| e = expr_or_ass... | 18.424242 | 61 | 0.532895 |
f31bfe16c701ff1ed4d7b672555146bad3bd81ae | 10,264 | ml | OCaml | test/commandTest.ml | bennyrubin/Ocaml_Todo_List | ef929d7fc1de40e14f939d7a253852e94e67633d | [
"MIT"
] | null | null | null | test/commandTest.ml | bennyrubin/Ocaml_Todo_List | ef929d7fc1de40e14f939d7a253852e94e67633d | [
"MIT"
] | 11 | 2022-03-03T03:26:45.000Z | 2022-03-25T01:39:30.000Z | test/commandTest.ml | bennyrubin/Ocaml_Todo_List | ef929d7fc1de40e14f939d7a253852e94e67633d | [
"MIT"
] | null | null | null | open OUnit2
open TodoList
open Command
let parse_test
(name : string)
(expected_output : Command.t)
(input : string) =
name >:: fun _ -> assert_equal expected_output (Command.parse input)
let assertion_sets_test (name : string) expected_exception input_command
=
name >:: fun _ ->
assert_raises e... | 34.099668 | 73 | 0.649942 |
f36cdb4c918e5541778bdab3407330b4bf3de1d6 | 103,428 | ml | OCaml | src/lib/consensus/proof_of_stake.ml | johnwu93/coda | 7423f8d943faed91c4372012be3af57b2a7fafb3 | [
"Apache-2.0"
] | null | null | null | src/lib/consensus/proof_of_stake.ml | johnwu93/coda | 7423f8d943faed91c4372012be3af57b2a7fafb3 | [
"Apache-2.0"
] | null | null | null | src/lib/consensus/proof_of_stake.ml | johnwu93/coda | 7423f8d943faed91c4372012be3af57b2a7fafb3 | [
"Apache-2.0"
] | null | null | null | open Async_kernel
open Core_kernel
open Signed
open Unsigned
open Coda_numbers
open Currency
open Fold_lib
open Signature_lib
open Module_version
module Time = Coda_base.Block_time
let name = "proof_of_stake"
let uint32_of_int64 x = x |> Int64.to_int64 |> UInt32.of_int64
let int64_of_uint32 x = x |> UInt32.to_int64 ... | 35.73877 | 105 | 0.617492 |
f34a176c53362c86da4acf0c2b3f67bf4e7c2a09 | 20,780 | ml | OCaml | src/core/ssa.ml | evilmartians/foundry | ce947c7dcca79ab7a7ce25870e9fc0eb15e9c2bd | [
"MIT"
] | 4 | 2016-08-27T20:13:16.000Z | 2019-11-11T00:11:21.000Z | src/core/ssa.ml | whitequark/foundry | ce947c7dcca79ab7a7ce25870e9fc0eb15e9c2bd | [
"MIT"
] | null | null | null | src/core/ssa.ml | whitequark/foundry | ce947c7dcca79ab7a7ce25870e9fc0eb15e9c2bd | [
"MIT"
] | 4 | 2015-06-27T06:23:33.000Z | 2018-07-26T05:45:23.000Z | open Unicode.Std
open ExtList
module rec NameType :
sig
type name = {
mutable id : string;
mutable ty : Rt.ty;
mutable opcode : opcode;
mutable location : Location.t;
(* Internal fields *)
mutable n_parent : name_parent;
mutable n_uses : name list;
n_has... | 29.517045 | 82 | 0.635996 |
af2f510d4b4f7b3a01d3a4ab7a99cafd86f6cd71 | 23,564 | ml | OCaml | src/base/neural/owl_neural_graph.ml | gbaydin/owl | 2cd67547543cd7fdd54bbbfbf5a094e0c92ef399 | [
"MIT"
] | null | null | null | src/base/neural/owl_neural_graph.ml | gbaydin/owl | 2cd67547543cd7fdd54bbbfbf5a094e0c92ef399 | [
"MIT"
] | null | null | null | src/base/neural/owl_neural_graph.ml | gbaydin/owl | 2cd67547543cd7fdd54bbbfbf5a094e0c92ef399 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
(** Neural network: Graphical neural network *)
open Owl_types
(* Make functor starts *)
module Make (Neuron : Owl_neural_neuron_sig.Sig) = struct
module Neuron = Neuron
open Neuron
open ... | 29.752525 | 90 | 0.621202 |
f3f425c0245796280ec0c6479f1023c110f2a4c6 | 12,229 | ml | OCaml | hphp/hack/src/parsing/searchService.ml | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2017-09-13T22:07:37.000Z | 2017-09-13T22:07:37.000Z | hphp/hack/src/parsing/searchService.ml | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parsing/searchService.ml | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"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
t... | 34.840456 | 80 | 0.633739 |
af7af0859526dcc9a7f2ebcf8efb353ab95d7652 | 619 | mli | OCaml | src/backend/smt.mli | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | 31 | 2016-08-16T14:58:40.000Z | 2022-02-19T18:38:07.000Z | src/backend/smt.mli | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | 49 | 2020-03-04T18:13:13.000Z | 2022-02-07T17:43:24.000Z | src/backend/smt.mli | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | 12 | 2020-02-26T19:58:37.000Z | 2021-11-12T22:18:25.000Z | (************************************************************************
* smt3.mli
*
*
* Created by Hernán Vanzetto on 9 Dec 2013.
* Copyright (c) 2013 __MyCompanyName__. All rights reserved.
************************************************************************)
val encode_smtlib : ?solver:string -> Format.f... | 28.136364 | 110 | 0.53958 |
f3000a1727ef079c0fd635439aa394211cede636 | 9,684 | ml | OCaml | hack/procs/worker.ml | teresy/flow | a5f42ccf2b581f5fc7d3f3fed23cba0840688548 | [
"MIT"
] | 1 | 2021-06-19T23:31:58.000Z | 2021-06-19T23:31:58.000Z | hphp/hack/src/procs/worker.ml | theovod/hhvm | 9c9e0653f825edd4c2db2a6d77cd9b123add7d6b | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/procs/worker.ml | theovod/hhvm | 9c9e0653f825edd4c2db2a6d77cd9b123add7d6b | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(*****************************************************************************
* The job executed by the worker.
... | 38.891566 | 98 | 0.66202 |
f3fe5bf0e656c347715b74217d75caaaf823ea82 | 108 | ml | OCaml | data/derived/comb/progs/unify/prog2335.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/prog2335.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2335.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec fold_l f base xs =
match xs with | [] -> base | h::t -> let temp = fold_l f base t in temp f h;;
| 27 | 79 | 0.583333 |
af9719017ba6d50138f541a6b330afa6dea57efe | 19,013 | ml | OCaml | data/derived/comb/progs/unify/prog8842.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/prog4060.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog4060.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 33.123693 | 208 | 0.651133 |
af1adf5275a6470df1241f5a6d0e69ac41dea7ca | 200 | ml | OCaml | benchmarks/I/max/sub35.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/I/max/sub35.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/I/max/sub35.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | (*********************)
(* Problem 1 *)
(*********************)
let rec max : int list -> int
= fun lst -> match lst with
| [] -> 0
| hd::tl -> if hd < max tl && tl == [] then max tl else hd | 28.571429 | 59 | 0.38 |
af4f63227c23ec41cb769205f2336df392bc08b2 | 3,266 | ml | OCaml | infer/src/clang/cFrontend_config.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | infer/src/clang/cFrontend_config.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | infer/src/clang/cFrontend_config.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2013 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Util... | 36.696629 | 87 | 0.799449 |
f396bae3554cfabb0b7ef9a4cdaa2e4a122a35cf | 18,135 | ml | OCaml | backend/cn/logicalPredicates.ml | talsewell/cerberus | c8c6d25f0cb8d4cd2672ffd0790fb0de3f2a51e3 | [
"BSD-2-Clause"
] | 12 | 2020-09-03T09:57:26.000Z | 2022-01-28T04:28:00.000Z | backend/cn/logicalPredicates.ml | talsewell/cerberus | c8c6d25f0cb8d4cd2672ffd0790fb0de3f2a51e3 | [
"BSD-2-Clause"
] | 182 | 2021-02-26T23:07:40.000Z | 2022-02-10T12:33:45.000Z | backend/cn/logicalPredicates.ml | talsewell/cerberus | c8c6d25f0cb8d4cd2672ffd0790fb0de3f2a51e3 | [
"BSD-2-Clause"
] | 4 | 2020-09-02T11:54:39.000Z | 2022-03-16T23:23:11.000Z | module Loc = Locations
module IT = IndexTerms
module BT = BaseTypes
module AT = ArgumentTypes
open IndexTerms
open Sctypes
open BaseTypes
type definition = {
loc : Locations.t;
args : (Sym.t * LogicalSorts.t) list;
(* If the predicate is supposed to get used in a quantified form,
one of the argume... | 39.338395 | 120 | 0.573808 |
f365b3e41dca358b76717701dbf0679970fc6766 | 961 | ml | OCaml | benchmarks/formula/formula1/submissions/sub260.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/formula/formula1/submissions/sub260.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/formula/formula1/submissions/sub260.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type formula = TRUE
| FALSE
| NOT of formula
| ANDALSO of formula * formula
| ORELSE of formula * formula
| IMPLY of formula * formula
| LESS of expr * expr
and expr = NUM of int
| PLUS of expr * expr
| MINUS of expr * expr
let r... | 28.264706 | 54 | 0.418314 |
af71d1da98ea96c8eb64fccc115361f2f4a61b8c | 283 | mli | OCaml | lib/parser_stream.mli | stevebleazard/jsonxt | 0b84beb77fc0924c4bd707708882b175230182e5 | [
"MIT"
] | 6 | 2018-05-16T04:17:40.000Z | 2021-07-03T03:47:53.000Z | lib/parser_stream.mli | stevebleazard/jsonxt | 0b84beb77fc0924c4bd707708882b175230182e5 | [
"MIT"
] | null | null | null | lib/parser_stream.mli | stevebleazard/jsonxt | 0b84beb77fc0924c4bd707708882b175230182e5 | [
"MIT"
] | 1 | 2021-08-14T13:47:30.000Z | 2021-08-14T13:47:30.000Z | module type Parser = sig
module Compliance : Compliance.S
type t
val create : reader : (unit -> Tokens.token) -> t
val decode : t -> (Compliance.json_stream option, string) result
end
module Make (Compliance : Compliance.S) : Parser
with module Compliance = Compliance
| 23.583333 | 66 | 0.710247 |
f33674889968f47ba6825aeb382e2c73fee41597 | 14,410 | ml | OCaml | src/current_buffer.ml | neojski/ecaml | 00adeed63c00e3e52a4a2475c3a8256fd70c66b6 | [
"MIT"
] | null | null | null | src/current_buffer.ml | neojski/ecaml | 00adeed63c00e3e52a4a2475c3a8256fd70c66b6 | [
"MIT"
] | null | null | null | src/current_buffer.ml | neojski/ecaml | 00adeed63c00e3e52a4a2475c3a8256fd70c66b6 | [
"MIT"
] | null | null | null | open! Core_kernel
open! Import
module Q = struct
include Q
let add_text_properties = "add-text-properties" |> Symbol.intern
let put_text_property = "put-text-property" |> Symbol.intern
let replace_buffer_contents = "replace-buffer-contents" |> Symbol.intern
let set_text_properties = "set-text-properties" |>... | 33.433875 | 91 | 0.719153 |
f35cffe6cd23b8ab44c8e761150cf3e5522b736a | 2,119 | ml | OCaml | lib/dedupe.ml | novemberkilo/dedupe_ml | 826ad82adcd073034b258d8dda453ca85d743f82 | [
"Unlicense"
] | null | null | null | lib/dedupe.ml | novemberkilo/dedupe_ml | 826ad82adcd073034b258d8dda453ca85d743f82 | [
"Unlicense"
] | null | null | null | lib/dedupe.ml | novemberkilo/dedupe_ml | 826ad82adcd073034b258d8dda453ca85d743f82 | [
"Unlicense"
] | null | null | null | module D = Data.Lookup
open Base
open Stdio
let rec lookup_by_size' directory size_map =
let contents = Array.to_list (Caml.Sys.readdir directory) in
let go size_map_accumulator file =
if Caml.Sys.is_directory (directory ^ "/" ^ file) then
let size_map' =
lookup_by_size' (directory ^ "/" ^ file) ... | 34.177419 | 76 | 0.68051 |
af7f0ad573b824fe194060567fa4e6c4e9972426 | 1,247 | mli | OCaml | src/socket.mli | tcoopman/dream-channels | ecd5d85b7c3c58baf9cb92ad098757e877658077 | [
"MIT"
] | 13 | 2021-07-08T07:46:46.000Z | 2022-03-25T00:59:05.000Z | src/socket.mli | tcoopman/dream-channels | ecd5d85b7c3c58baf9cb92ad098757e877658077 | [
"MIT"
] | null | null | null | src/socket.mli | tcoopman/dream-channels | ecd5d85b7c3c58baf9cb92ad098757e877658077 | [
"MIT"
] | null | null | null | (** A channel
- topic: the topic you want to listen to. This can be an exact topic, like "users" or a topic
with a wildcard, for example: "chat:*" that would match "chat:public_room"
- intercept: messages that you send to `broadcast` or `broadcast_from` will be checked if they
need to be intercepte... | 29 | 100 | 0.681636 |
f32b5a7ccd2697e8c4687e9f21c235bcd0e4afdd | 1,689 | ml | OCaml | data/sp14/3447.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/3447.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/3447.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 List.rev ((n mod 10) :: (List.rev (digitsOfInt (n / 10))));;
let rec sumList xs =
match xs with | [] -> 0 | h::t -> h + (sumList t) | _ -> (-1);;
let rec additivePersistence n =
let count = [0] in
if (sumList (digitsOfInt n)) > 9 then 1 :: count else sumList... | 16.085714 | 71 | 0.506809 |
af5eeff00f0914d5266fc35a159301a21316be1b | 7,653 | ml | OCaml | src/common.ml | LexiFi/ppxlib | b3d7bca1e72cf2767de8d6cee6b0e1cf7a0b08cd | [
"MIT"
] | 179 | 2018-03-13T16:22:57.000Z | 2022-03-23T20:30:12.000Z | src/common.ml | LexiFi/ppxlib | b3d7bca1e72cf2767de8d6cee6b0e1cf7a0b08cd | [
"MIT"
] | 222 | 2018-03-13T15:44:22.000Z | 2022-03-26T08:56:14.000Z | src/common.ml | LexiFi/ppxlib | b3d7bca1e72cf2767de8d6cee6b0e1cf7a0b08cd | [
"MIT"
] | 52 | 2018-03-15T19:14:22.000Z | 2022-03-22T14:40:58.000Z | open! Import
open Ast_builder.Default
module Buffer = Caml.Buffer
module Format = Caml.Format
let lident x = Longident.Lident x
let core_type_of_type_declaration td =
let loc = td.ptype_name.loc in
ptyp_constr ~loc
(Located.map lident td.ptype_name)
(List.map td.ptype_params ~f:fst)
let strip_gen_symbol_... | 32.987069 | 88 | 0.640925 |
af178666e1cad931dec40baa0ac75166fd1546e1 | 16,620 | ml | OCaml | src/ppx_optcomp.ml | mt-caret/ppx_optcomp | 6d6012c6dad12a01e0104e8314420cd401fc245d | [
"MIT"
] | null | null | null | src/ppx_optcomp.ml | mt-caret/ppx_optcomp | 6d6012c6dad12a01e0104e8314420cd401fc245d | [
"MIT"
] | null | null | null | src/ppx_optcomp.ml | mt-caret/ppx_optcomp | 6d6012c6dad12a01e0104e8314420cd401fc245d | [
"MIT"
] | null | null | null | open Base
open Stdio
open Ppxlib
open Ast_builder.Default
module Filename = Caml.Filename
module Env = Interpreter.Env
module Value = Interpreter.Value
module Of_item = struct
(* boilerplate code to pull extensions out of different ast nodes *)
open Token
let directive_or_block_of_ext ~item ({ txt = ext_name;... | 34.769874 | 101 | 0.594164 |
f3c3dd2a527657c23f5314c73c06b4fb45191a1a | 25,579 | ml | OCaml | upstream/ocaml_410/typing/btype.ml | mnxn/merlin | c9761a552380838e9f530b5c47c0ea3c47c33565 | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | upstream/ocaml_410/typing/btype.ml | mnxn/merlin | c9761a552380838e9f530b5c47c0ea3c47c33565 | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | upstream/ocaml_410/typing/btype.ml | mnxn/merlin | c9761a552380838e9f530b5c47c0ea3c47c33565 | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier L... | 31.23199 | 80 | 0.597717 |
f3e1a6314c5b93ca4cab1b5b68108c1e5415bc93 | 447 | ml | OCaml | data/derived/comb/progs/unify/prog5161.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/prog0253.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0253.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 a -> sin (pi *. (eval (a, x, y)))
| Cosine b -> cos (p... | 20.318182 | 44 | 0.472036 |
af2fef157ba8c0630213399bb0e32c083f0c9f72 | 7,583 | ml | OCaml | rw_server/main.ml | gbe/repwatcher | 79d07fa32e0b33b7de8ebea79dbdd86ae096c058 | [
"MIT"
] | 2 | 2015-12-15T20:51:40.000Z | 2016-04-28T11:26:40.000Z | rw_server/main.ml | gbe/repwatcher | 79d07fa32e0b33b7de8ebea79dbdd86ae096c058 | [
"MIT"
] | null | null | null | rw_server/main.ml | gbe/repwatcher | 79d07fa32e0b33b7de8ebea79dbdd86ae096c058 | [
"MIT"
] | null | null | null | open Unix
open Printf
open Types
open Types_conf
open Config
open Files_progress
let usage = "usage: rw_server [-f Configuration file path]" ;;
(* Configuration file fullpath *)
let config_file = ref "repwatcher.conf" ;;
let is_sql_activated_and_working = ref false ;;
let clean_exit () =
Unix.close InotifyCaller.c... | 29.165385 | 83 | 0.670579 |
afa62c278ce703966f825c08565f65a1bce4ae04 | 654 | ml | OCaml | duniverse/core_kernel/src/type_equal_intf.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_kernel/src/type_equal_intf.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_kernel/src/type_equal_intf.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (*_ This is just to extend Uid with the standard hashability and binability primitives *)
module type Uid = sig
include module type of struct
include Base.Type_equal.Id.Uid
end
include Comparable.S with type t := t and type comparator_witness := comparator_witness
include Hashable.S with type t := t
end
modu... | 20.4375 | 89 | 0.720183 |
f3873d795502c2362431ce610b01000beb309cd1 | 6,132 | ml | OCaml | src/proto_alpha/lib_protocol/seed_repr.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/seed_repr.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/seed_repr.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 36.939759 | 80 | 0.617417 |
af1fe011c7de1531219d6b38b8b7859f8ad991b9 | 15,026 | ml | OCaml | hack_parallel/hack_parallel/utils/timeout.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | 35 | 2019-03-01T19:12:21.000Z | 2020-03-14T14:42:34.000Z | hack_parallel/hack_parallel/utils/timeout.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | 11 | 2019-03-11T02:17:18.000Z | 2020-04-28T22:37:03.000Z | hack_parallel/hack_parallel/utils/timeout.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | 4 | 2020-07-09T10:34:00.000Z | 2022-03-22T20:58:09.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.
*
*)
exception Time... | 31.700422 | 80 | 0.635166 |
af5750a2f31877868192a933882d8c671151ffe7 | 3,432 | ml | OCaml | Unpacker/RealLive/rldev/src/vaconv/pdt.ml | CATION-M/X-moe | 2bac3bb45ff21e50921aac8422f2e00839f546e5 | [
"MIT"
] | 2 | 2020-02-25T15:18:53.000Z | 2020-08-24T13:30:34.000Z | Unpacker/RealLive/rldev/src/vaconv/pdt.ml | CATION-M/X-moe | 2bac3bb45ff21e50921aac8422f2e00839f546e5 | [
"MIT"
] | null | null | null | Unpacker/RealLive/rldev/src/vaconv/pdt.ml | CATION-M/X-moe | 2bac3bb45ff21e50921aac8422f2e00839f546e5 | [
"MIT"
] | 1 | 2019-11-25T05:29:30.000Z | 2019-11-25T05:29:30.000Z | (*
vaconv: PDT bitmap format
Copyright (C) 2006 Haeleth
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.
T... | 32.074766 | 99 | 0.682692 |
d2eebb79d1ecec698b5ac1ff0dbb30cc52636fd6 | 159 | mli | OCaml | lib/smyth/post_parse.mli | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 15 | 2020-08-27T10:51:14.000Z | 2021-12-24T08:17:28.000Z | lib/smyth/post_parse.mli | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 18 | 2020-06-28T18:13:20.000Z | 2021-03-12T16:18:05.000Z | lib/smyth/post_parse.mli | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 5 | 2021-02-23T16:22:25.000Z | 2022-01-24T18:36:45.000Z | (** Functions to be called after the corresponding functions in {!Parse}.
(Ensures proper invariants are maintained.) *)
open Lang
val exp : exp -> exp
| 19.875 | 73 | 0.704403 |
af7cf6dc5d535fdc3df04d4e813874560fdc557e | 8,872 | ml | OCaml | src/frontend/Ast.ml | adamhaber/stanc3 | a4650e45ec7ff1be8bc27ab06b27ddf272914ea9 | [
"BSD-3-Clause"
] | null | null | null | src/frontend/Ast.ml | adamhaber/stanc3 | a4650e45ec7ff1be8bc27ab06b27ddf272914ea9 | [
"BSD-3-Clause"
] | null | null | null | src/frontend/Ast.ml | adamhaber/stanc3 | a4650e45ec7ff1be8bc27ab06b27ddf272914ea9 | [
"BSD-3-Clause"
] | null | null | null | (** Abstract syntax tree *)
open Core_kernel
(** Our type for identifiers, on which we record a location *)
type identifier =
{name: string; id_loc: Middle.location_span sexp_opaque [@compare.ignore]}
[@@deriving sexp, hash, compare]
(** Indices for array access *)
type 'e index =
| All
| Single of 'e
| Upfro... | 32.028881 | 112 | 0.703111 |
f389786ea74bea7f2ae0fc51fec55909c7696085 | 249 | ml | OCaml | titanic/src/genero.ml | tautologico/opfp | 74ef9ed97b0ab6b78c147c3edf7e0b69f2acf9d1 | [
"MIT"
] | 10 | 2015-01-20T11:07:14.000Z | 2022-01-06T18:35:37.000Z | titanic/src/genero.ml | tautologico/opfp | 74ef9ed97b0ab6b78c147c3edf7e0b69f2acf9d1 | [
"MIT"
] | 1 | 2015-02-05T19:48:17.000Z | 2015-02-16T19:41:36.000Z | titanic/src/genero.ml | tautologico/opfp | 74ef9ed97b0ab6b78c147c3edf7e0b69f2acf9d1 | [
"MIT"
] | null | null | null | (*
*
* genero.ml
* Classificador baseado em genero
*
* Andrei de A. Formiga, 2014-10-02
*
*)
let () =
Printf.printf "Lendo arquivo de teste e escrevendo genero.csv\n";
Titanic.classifica_teste_por_genero "data/test.csv" "genero.csv"
| 16.6 | 67 | 0.678715 |
f341d1f8401583250a7c59804abb049007900504 | 486 | ml | OCaml | result/fixml/lambda/sub78/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/lambda/sub78/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/lambda/sub78/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type lambda = V of var | P of (var * lambda) | C of (lambda * lambda)
and var = string
let rec check : lambda -> bool =
fun e ->
let rec remove_var lambda var =
match lambda with
| P (v, ex) -> P (v, remove_var ex var)
| C (ex, ex') -> C (remove_var ex var, remove_var ex' var)
| V v -> if v = var t... | 27 | 69 | 0.561728 |
af9869050872b1c384210e80e18187c9e1b65666 | 4,944 | ml | OCaml | src/dune_rules/coq_lib.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1 | 2020-09-18T13:10:03.000Z | 2020-09-18T13:10:03.000Z | src/dune_rules/coq_lib.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1 | 2020-11-12T13:27:57.000Z | 2020-11-12T13:27:57.000Z | src/dune_rules/coq_lib.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | null | null | null | open! Dune_engine
(* This file is licensed under The MIT License *)
(* (c) MINES ParisTech 2018-2019 *)
(* Written by: Emilio Jesús Gallego Arias *)
open! Stdune
(* At some point we may want to reify this into resolved status, for example:
; libraries : Lib.t list Or_exn.t
etc.. *)
type t =
{... | 29.428571 | 80 | 0.639765 |
af7e1640d1686fa4f0ea92a80c8c84562d52752e | 7,255 | ml | OCaml | data/derived/comb/progs/cnstr/prog3086.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/cnstr/prog3086.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/cnstr/prog3086.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let rec sumList xs =
match xs with
| [] -> 0
| a :: b -> a + sumList b ;;
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let _ = sumList [1; 2; 3; 4]
let _ = sumList [1; -2; 3; 5]
let _ = sumList [1; 3; 5; 7; 9... | 24.676871 | 94 | 0.620951 |
f30763aae302d58d3c490ba0978822e4c4e23685 | 2,860 | ml | OCaml | hack/watchman/watchman_sig.ml | prodo-dev/flow | e1a2c0beb9b7b23bb35f8a96d36d965595c6da7a | [
"BSD-3-Clause"
] | 1 | 2020-06-21T06:21:13.000Z | 2020-06-21T06:21:13.000Z | hack/watchman/watchman_sig.ml | enterstudio/flow | 46bab025aa1c9caa6d7108596290f1e01d0b42c1 | [
"BSD-3-Clause"
] | null | null | null | hack/watchman/watchman_sig.ml | enterstudio/flow | 46bab025aa1c9caa6d7108596290f1e01d0b42c1 | [
"BSD-3-Clause"
] | 1 | 2020-06-21T06:21:18.000Z | 2020-06-21T06:21:18.000Z | (**
* Copyright (c) 2016, 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.
*
*)
module Types ... | 31.777778 | 80 | 0.719231 |
f300e6b791660f6628ff0987e5f7d8bf8167ad86 | 4,696 | ml | OCaml | src/typing/abnormal.ml | mxstbr/flow | a0ed2e28278e66add6f963d9c4f2328428c04480 | [
"MIT"
] | 2 | 2019-01-31T09:33:15.000Z | 2019-01-31T09:35:08.000Z | src/typing/abnormal.ml | mxstbr/flow | a0ed2e28278e66add6f963d9c4f2328428c04480 | [
"MIT"
] | null | null | null | src/typing/abnormal.ml | mxstbr/flow | a0ed2e28278e66add6f963d9c4f2328428c04480 | [
"MIT"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(* we model abnormal control flows using exceptions during traversal *)
(* control directives encountered during traversal *)
type t =
... | 32.164384 | 82 | 0.701022 |
f3b2d9975edfe8a57a28210e476cca55b034dbfc | 3,336 | ml | OCaml | hphp/hack/src/hhbc/emit_attribute.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/hhbc/emit_attribute.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/emit_attribute.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
module TV = Typed_value
module A = Aast
let from_attribute_base namespace ((_, attr_name) as attri... | 32.38835 | 80 | 0.71193 |
f3e141ecdf108e9626b4698c7169a8d603393dfe | 81,735 | ml | OCaml | src/typing/errors/error_message.ml | oonsamyi/flow | 9739400610f400ed50b6b921a79642563642b7fe | [
"MIT"
] | null | null | null | src/typing/errors/error_message.ml | oonsamyi/flow | 9739400610f400ed50b6b921a79642563642b7fe | [
"MIT"
] | null | null | null | src/typing/errors/error_message.ml | oonsamyi/flow | 9739400610f400ed50b6b921a79642563642b7fe | [
"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 Type
open Reason
open Utils_js
exception EDebugThrow of ALoc.t
exception EMergeTimeout of float
exception ECheckTimeout of f... | 40.68442 | 138 | 0.662225 |
f39064229501404b26ceef61b6e715dcf1f840c7 | 1,457 | mli | OCaml | src/sundials/sundials_top.mli | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 24 | 2015-02-14T17:16:38.000Z | 2021-12-23T16:02:13.000Z | src/sundials/sundials_top.mli | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 10 | 2016-03-20T22:14:49.000Z | 2022-03-16T09:54:31.000Z | src/sundials/sundials_top.mli | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 5 | 2015-04-14T14:21:54.000Z | 2022-03-10T16:14:55.000Z | (*---------------------------------------------------------------------*)
(* *)
(* OCaml interface to Sundials *)
(* *)
(* Timothy B... | 47 | 73 | 0.432395 |
af408b92fea5ea96d0de55918df51556f5136f64 | 7,807 | ml | OCaml | infer/src/checkers/printfArgs.ml | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | 1 | 2016-12-19T07:33:16.000Z | 2016-12-19T07:33:16.000Z | infer/src/checkers/printfArgs.ml | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | null | null | null | infer/src/checkers/printfArgs.ml | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2013 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the 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... | 34.39207 | 123 | 0.606763 |
af971162b59c6ff74d3bdec6354500be5f14ae01 | 5,943 | ml | OCaml | analysis/test/integration/varianceTest.ml | ishaanthakur/pyre-check | b0f12f8a3e6a817a81d87feae301c96d57d167b9 | [
"MIT"
] | null | null | null | analysis/test/integration/varianceTest.ml | ishaanthakur/pyre-check | b0f12f8a3e6a817a81d87feae301c96d57d167b9 | [
"MIT"
] | null | null | null | analysis/test/integration/varianceTest.ml | ishaanthakur/pyre-check | b0f12f8a3e6a817a81d87feae301c96d57d167b9 | [
"MIT"
] | null | null | null | (* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. *)
open OUnit2
open IntegrationTest
let test_check_variance _ =
assert_type_errors
{|
def narnia(): pass
def foo() -> None:
... | 29.567164 | 97 | 0.563015 |
d2fcd386c4383aa83a16e4c4c0352965e92cac55 | 6,585 | mli | OCaml | wp/lib/bap_wp/src/compare.mli | whst/cbat_tools | 6c2d659881e6b694f97258115aac25f6c2622db4 | [
"MIT"
] | null | null | null | wp/lib/bap_wp/src/compare.mli | whst/cbat_tools | 6c2d659881e6b694f97258115aac25f6c2622db4 | [
"MIT"
] | null | null | null | wp/lib/bap_wp/src/compare.mli | whst/cbat_tools | 6c2d659881e6b694f97258115aac25f6c2622db4 | [
"MIT"
] | null | null | null | (***************************************************************************)
(* *)
(* Copyright (C) 2018/2019 The Charles Stark Draper Laboratory, Inc. *)
(* *)
(* This... | 45.413793 | 86 | 0.69552 |
f360594ccbd13a1a0d051101f8a8d98a06d157e7 | 92 | ml | OCaml | ocaml/src/main.ml | ubnt-intrepid/make-a-brainfuck | c17edc0e670a4387b1d52a5cd7b4f85f958df6cc | [
"MIT"
] | 1 | 2019-09-25T11:36:24.000Z | 2019-09-25T11:36:24.000Z | ocaml/src/main.ml | ubnt-intrepid/make-a-brainfuck | c17edc0e670a4387b1d52a5cd7b4f85f958df6cc | [
"MIT"
] | null | null | null | ocaml/src/main.ml | ubnt-intrepid/make-a-brainfuck | c17edc0e670a4387b1d52a5cd7b4f85f958df6cc | [
"MIT"
] | null | null | null | let () =
let i = new Brainfuck.interpreter in
i#eval "++>5+[<+>-]++++++++[<++++++>-]<."
| 23 | 43 | 0.413043 |
f3947a714e4a3f9b678d1f1e202c7739b4000189 | 4,105 | ml | OCaml | src/misc/LeapTable.ml | imdea-software/leap | 5f946163c0f80ff9162db605a75b7ce2e27926ef | [
"Apache-2.0"
] | 7 | 2016-08-31T19:50:12.000Z | 2019-01-21T04:51:07.000Z | src/misc/LeapTable.ml | imdea-software/leap | 5f946163c0f80ff9162db605a75b7ce2e27926ef | [
"Apache-2.0"
] | null | null | null | src/misc/LeapTable.ml | imdea-software/leap | 5f946163c0f80ff9162db605a75b7ce2e27926ef | [
"Apache-2.0"
] | null | null | null |
(***********************************************************************)
(* *)
(* LEAP *)
(* *)
(* Alejan... | 34.788136 | 73 | 0.367113 |
d2f66270059e799cc753f693eaf98cae232effbf | 2,358 | mli | OCaml | src/lwt/metrics_lwt.mli | kit-ty-kate/metrics | 92a6b33503338927be4a22f8052de37f5c1066f8 | [
"ISC"
] | 22 | 2018-10-19T08:59:40.000Z | 2022-02-02T17:42:41.000Z | src/lwt/metrics_lwt.mli | kit-ty-kate/metrics | 92a6b33503338927be4a22f8052de37f5c1066f8 | [
"ISC"
] | 18 | 2018-11-03T23:37:44.000Z | 2022-02-17T00:40:09.000Z | src/lwt/metrics_lwt.mli | kit-ty-kate/metrics | 92a6b33503338927be4a22f8052de37f5c1066f8 | [
"ISC"
] | 10 | 2018-10-19T08:28:33.000Z | 2022-01-28T17:58:26.000Z | (*
* Copyright (c) 2018 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 PROVIDED "AS... | 40.655172 | 80 | 0.665818 |
f3558b1a198548993524bde2373b0a8f531d48ed | 6,070 | ml | OCaml | src/proto_alpha/lib_delegate/test/tenderbrute/tenderbrute_main.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_delegate/test/tenderbrute/tenderbrute_main.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_delegate/test/tenderbrute/tenderbrute_main.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 35.705882 | 79 | 0.562438 |
af4b036c7cca81ee84688e9881714f454bdc39fe | 7,542 | ml | OCaml | src/csexp_rpc/csexp_rpc.ml | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | 1 | 2022-03-18T02:24:50.000Z | 2022-03-18T02:24:50.000Z | src/csexp_rpc/csexp_rpc.ml | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | null | null | null | src/csexp_rpc/csexp_rpc.ml | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | 1 | 2021-05-07T18:08:53.000Z | 2021-05-07T18:08:53.000Z | open Stdune
open Fiber.O
module Scheduler = struct
type t =
{ create_thread_safe_ivar : 'a. unit -> 'a Fiber.Ivar.t * ('a -> unit)
; spawn_thread : (unit -> unit) -> unit
}
end
module Async : sig
type t
val create : Scheduler.t -> t
val task : t -> f:(unit -> 'a) -> 'a Or_exn.t Fiber.t
val ta... | 26.096886 | 74 | 0.583665 |
af9eb0bd7c26ef8785b76597e81e862bff54d0db | 2,632 | ml | OCaml | hphp/hack/test/integration_ml/ide/test_ide_diagnostic_subscription.ml | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration_ml/ide/test_ide_diagnostic_subscription.ml | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration_ml/ide/test_ide_diagnostic_subscription.ml | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"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 Integration_test_base_types
module Test = Integration_test_base
let diagnostic_subscription_id = 223
let f... | 30.964706 | 114 | 0.731383 |
f342f10404494f6232c2fef5e785c2be14ce4c5c | 393 | mli | OCaml | packages/gintonic/src/js_utils.mli | mitoai/graphql-transformer | 25c0ebc4f492cac40f71de8dee4565f0d89bfa4b | [
"MIT"
] | 25 | 2018-12-17T12:43:07.000Z | 2019-09-03T10:24:07.000Z | packages/gintonic/src/js_utils.mli | strise/gintonic | 25c0ebc4f492cac40f71de8dee4565f0d89bfa4b | [
"MIT"
] | 7 | 2018-12-14T15:04:04.000Z | 2018-12-19T17:02:15.000Z | packages/gintonic/src/js_utils.mli | mitoai/graphql-transformer | 25c0ebc4f492cac40f71de8dee4565f0d89bfa4b | [
"MIT"
] | null | null | null |
val document_to_js: Gql_ast.document -> Js.Json.t
val schema_document_to_js: Gql_ast.schema_document -> Js.Json.t
val js_to_executable_document: Js.Json.t -> Gql_ast.executable_document
val executable_document_to_js: Gql_ast.executable_document -> Js.Json.t
val print: Js.Json.t -> unit
val js_to_vars: Js.Json.t ... | 24.5625 | 71 | 0.78626 |
af02df9739515786798e9ab309e9e0091f461b95 | 5,371 | ml | OCaml | src/common/timebis.ml | pstlGameEngine/gameEngine | 45df74efcb79164ab35f7a000544a64ab732ab3b | [
"CECILL-B"
] | 1 | 2017-03-20T11:30:35.000Z | 2017-03-20T11:30:35.000Z | src/common/timebis.ml | pstlGameEngine/gameEngine | 45df74efcb79164ab35f7a000544a64ab732ab3b | [
"CECILL-B"
] | null | null | null | src/common/timebis.ml | pstlGameEngine/gameEngine | 45df74efcb79164ab35f7a000544a64ab732ab3b | [
"CECILL-B"
] | null | null | null | open Keyboard
module type GAME =
sig
type state
type param
val init : Mjwindow.t -> state
val isOver : state -> bool
val tick : state -> state
val print_state : state -> unit (* for debugging purpose *)
val changeStateWithEvent : state -> Mjwindow.t -> state
val compare : state -> s... | 28.876344 | 78 | 0.598585 |
af749637e4b78aa4c03e56b5c406d0e7ca4b280c | 1,808 | ml | OCaml | src/lib/snarky_log/snarky_log.ml | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | 2 | 2020-11-14T20:16:02.000Z | 2021-08-19T12:44:52.000Z | src/lib/snarky_log/snarky_log.ml | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | 11 | 2021-09-02T10:10:36.000Z | 2022-02-27T08:56:41.000Z | src/lib/snarky_log/snarky_log.ml | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | null | null | null | open Snarky
open Webkit_trace_event
open Webkit_trace_event.Output.JSON
open Yojson
let to_string ?buf ?len ?std events =
to_string ?buf ?len ?std @@ json_of_events events
let to_channel ?buf ?len ?std out_channel events =
to_channel ?buf ?len ?std out_channel @@ json_of_events events
let to_file ?buf ?len ?std ... | 34.769231 | 80 | 0.681416 |
f3ef6a0f1a42d468598da9dab3f4461a98db8f9d | 3,807 | ml | OCaml | infer/src/integration/Diff.ml | ievans/infer | c483fe101a3bdb3e86c4444a7b8d6197eada67c0 | [
"BSD-3-Clause"
] | null | null | null | infer/src/integration/Diff.ml | ievans/infer | c483fe101a3bdb3e86c4444a7b8d6197eada67c0 | [
"BSD-3-Clause"
] | 2 | 2020-11-13T19:42:27.000Z | 2020-11-13T19:49:19.000Z | infer/src/integration/Diff.ml | ievans/infer | c483fe101a3bdb3e86c4444a7b8d6197eada67c0 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2017 - 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
... | 43.758621 | 340 | 0.733911 |
af33cde749f7c26f6eb56ecd564923e8354c7320 | 3,000 | ml | OCaml | obuild/utils.ml | rgrinberg/obuild | c172203339988bfbcbe23e8fa32ef9df4dc46bf3 | [
"BSD-2-Clause"
] | null | null | null | obuild/utils.ml | rgrinberg/obuild | c172203339988bfbcbe23e8fa32ef9df4dc46bf3 | [
"BSD-2-Clause"
] | null | null | null | obuild/utils.ml | rgrinberg/obuild | c172203339988bfbcbe23e8fa32ef9df4dc46bf3 | [
"BSD-2-Clause"
] | null | null | null | open Ext.Fugue
open Ext.Filepath
open Ext
open Types
let read_file_with f filename =
let lines = ref [] in
let chan = open_in filename in
try
while true; do
let z = f (input_line chan) in
match z with
| None -> ()
| Some z' -> lines := z' :: !line... | 32.258065 | 105 | 0.599667 |
f3e19bd0d8b8843b9df50ac2d34e60e7517d94c6 | 19,313 | ml | OCaml | lib_test/test_arp.ml | balrajsingh/mirage-tcpip | a7d3dbd23fe97450366ccf0c256f29af7e3330eb | [
"0BSD"
] | null | null | null | lib_test/test_arp.ml | balrajsingh/mirage-tcpip | a7d3dbd23fe97450366ccf0c256f29af7e3330eb | [
"0BSD"
] | null | null | null | lib_test/test_arp.ml | balrajsingh/mirage-tcpip | a7d3dbd23fe97450366ccf0c256f29af7e3330eb | [
"0BSD"
] | null | null | null | open Lwt.Infix
let time_reduction_factor = 60
module Time = Vnetif_common.Time
module Fast_clock = struct
type error = unit
type t = unit
type 'a io = 'a Lwt.t
let last_read = ref 0L
let connect () = Lwt.return (`Ok ())
let advance_clock ns =
last_read := Int64.add !last_read ns
let elapsed_ns _... | 38.319444 | 191 | 0.661938 |
afa33a5f553278db55758d70fa5835fe5af2960b | 68,659 | ml | OCaml | src/app/archive/archive_lib/processor.ml | bettery-io/mina | 691840a42c3efe7e14bf5f8c94fe49244f1377cc | [
"Apache-2.0"
] | 1 | 2021-03-29T18:24:14.000Z | 2021-03-29T18:24:14.000Z | src/app/archive/archive_lib/processor.ml | cashlimited/mina | 691840a42c3efe7e14bf5f8c94fe49244f1377cc | [
"Apache-2.0"
] | null | null | null | src/app/archive/archive_lib/processor.ml | cashlimited/mina | 691840a42c3efe7e14bf5f8c94fe49244f1377cc | [
"Apache-2.0"
] | 1 | 2021-12-18T20:29:13.000Z | 2021-12-18T20:29:13.000Z | (* processor.ml -- database processing for archive node *)
module Archive_rpc = Rpc
open Async
open Core
open Caqti_async
open Mina_base
open Mina_state
open Mina_transition
open Pipe_lib
open Signature_lib
open Pickles_types
module Caqti_type_spec = struct
type (_, _) t =
| [] : (unit, unit) t
| ( :: ) : '... | 36.794748 | 101 | 0.587702 |
f3ab2c9adf91aeaaf5c768d8f62176e4b4cba106 | 7,709 | ml | OCaml | src/lib/staged_ledger/diff_creation_log.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | 2 | 2021-07-11T21:51:34.000Z | 2021-07-29T14:33:45.000Z | src/lib/staged_ledger/diff_creation_log.ml | yusuftrl/mina | 42bbe89e0e84366fd1673672750eb6041462e449 | [
"Apache-2.0"
] | 1 | 2021-03-06T14:52:32.000Z | 2021-03-06T14:52:32.000Z | src/lib/staged_ledger/diff_creation_log.ml | obazl/mina | 0612b142738c68155e9a9bba16cd3787bba4feed | [
"Apache-2.0"
] | 3 | 2021-03-14T18:19:04.000Z | 2021-03-25T16:37:07.000Z | open Core_kernel
open Mina_base
type count_and_fee = int * Currency.Fee.t [@@deriving sexp, to_yojson]
module Fee_Summable = struct
open Currency
type t = Fee.t
let zero = Fee.zero
let ( + ) (x : Fee.t) (x' : Fee.t) = Fee.add x x' |> Option.value_exn
end
module Summary = struct
type resources =
{ co... | 35.200913 | 99 | 0.675574 |
d2f7ef47fc6479cbef247c0a6a0605a8ad1b9109 | 5,009 | mli | OCaml | src/ppx_conv_func.mli | janestreet/ppx_conv_func | b5c01b4971f7fcd97b97c6566b73c85f7696b13b | [
"MIT"
] | 2 | 2016-01-13T19:23:17.000Z | 2021-12-17T02:57:48.000Z | src/ppx_conv_func.mli | janestreet/ppx_conv_func | b5c01b4971f7fcd97b97c6566b73c85f7696b13b | [
"MIT"
] | null | null | null | src/ppx_conv_func.mli | janestreet/ppx_conv_func | b5c01b4971f7fcd97b97c6566b73c85f7696b13b | [
"MIT"
] | 1 | 2021-12-17T02:58:36.000Z | 2021-12-17T02:58:36.000Z | open Ppxlib
(* DO NOT USE THIS LIBRARY IN NEW CODE!!!
This was ported from the old camlp4 world but it doesn't follow our ppx guidelines and
will disappear at some point.
*)
val raise_unsupported : loc:Location.t -> string -> 'a
(** A simple processor that takes a field name and generates an expression for th... | 27.674033 | 90 | 0.67199 |
af867f199074add25fa25ce30ba9e0b39361ec88 | 8,293 | ml | OCaml | herd/modelUtils.ml | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | null | null | null | herd/modelUtils.ml | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | null | null | null | herd/modelUtils.ml | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 38.393519 | 101 | 0.583504 |
af413254a8bb97572d4901ba5aef1d1533e68b47 | 1,587 | ml | OCaml | src/gdriver.ml | pascutto/why3gospel | 2a04d534ed271c2114e137c8db43f63629672d20 | [
"MIT"
] | null | null | null | src/gdriver.ml | pascutto/why3gospel | 2a04d534ed271c2114e137c8db43f63629672d20 | [
"MIT"
] | null | null | null | src/gdriver.ml | pascutto/why3gospel | 2a04d534ed271c2114e137c8db43f63629672d20 | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* GOSPEL -- A Specification Language for OCaml *)
(* *)
(* Copyrigh... | 44.083333 | 80 | 0.461248 |
af61f85a19531a9763982997125dacb9817940e7 | 6,436 | ml | OCaml | src/ocamldep.ml | rvantonder/dune | d9fcb622f6f497f5393b7003aa6613c8e5d74277 | [
"MIT"
] | 1 | 2018-09-14T10:47:11.000Z | 2018-09-14T10:47:11.000Z | src/ocamldep.ml | nandor/shmap | 6a730de81a1e8568a61ac0f53af3aebabde8e58b | [
"MIT"
] | null | null | null | src/ocamldep.ml | nandor/shmap | 6a730de81a1e8568a61ac0f53af3aebabde8e58b | [
"MIT"
] | null | null | null | open Import
open Build.O
module CC = Compilation_context
module SC = Super_context
module Dep_graph = struct
type t =
{ dir : Path.t
; per_module : (unit, Module.t list) Build.t Module.Name.Map.t
}
let deps_of t (m : Module.t) =
match Module.Name.Map.find t.per_module m.name with
| Som... | 33.34715 | 80 | 0.594313 |
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.