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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bc1e5ababa8043a0888b1d89bafce18c3e73cfd4 | 13,214 | ml | OCaml | src/irmin-http/irmin_http.ml | djs55/irmin | dc9dc26c18c474663c9af1c3193929e3107564b9 | [
"0BSD"
] | null | null | null | src/irmin-http/irmin_http.ml | djs55/irmin | dc9dc26c18c474663c9af1c3193929e3107564b9 | [
"0BSD"
] | null | null | null | src/irmin-http/irmin_http.ml | djs55/irmin | dc9dc26c18c474663c9af1c3193929e3107564b9 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-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... | 29.429844 | 80 | 0.587256 |
8afb6d5231810273ace67fb8d63e012065afde5c | 5,699 | ml | OCaml | test/test_pipelined_tree_reduce.ml | janestreet/hardcaml_circuits | 0d1c2401767f181933b7cba200a2b7f888591912 | [
"MIT"
] | 10 | 2020-08-18T13:30:02.000Z | 2021-12-17T02:50:20.000Z | test/test_pipelined_tree_reduce.ml | janestreet/hardcaml_circuits | 0d1c2401767f181933b7cba200a2b7f888591912 | [
"MIT"
] | null | null | null | test/test_pipelined_tree_reduce.ml | janestreet/hardcaml_circuits | 0d1c2401767f181933b7cba200a2b7f888591912 | [
"MIT"
] | 1 | 2021-12-17T02:51:12.000Z | 2021-12-17T02:51:12.000Z | open Base
open Hardcaml
open Hardcaml_waveterm
open Hardcaml_circuits
let test ~arity n =
let clock = Signal.input "clock" 1 in
let numbers = List.init n ~f:(fun i -> Signal.input ("x_" ^ Int.to_string i) 32) in
let enable = Signal.input "enable" 1 in
let spec = Reg_spec.create ~clock () in
let output =
... | 44.523438 | 85 | 0.289174 |
bc0c4a0ee9e9bb1337c86e0031c26be000c15577 | 2,459 | ml | OCaml | src/ocaml/utils/408/config.ml | mnxn/merlin | c9761a552380838e9f530b5c47c0ea3c47c33565 | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | src/ocaml/utils/408/config.ml | mnxn/merlin | c9761a552380838e9f530b5c47c0ea3c47c33565 | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | src/ocaml/utils/408/config.ml | mnxn/merlin | c9761a552380838e9f530b5c47c0ea3c47c33565 | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 43.910714 | 76 | 0.387963 |
449d60a9140dc1e5c213198025dc3d3764ab5b29 | 9,100 | ml | OCaml | hphp/hack/src/typing/typing_return.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-03-11T02:25:37.000Z | 2022-03-11T02:25:37.000Z | hphp/hack/src/typing/typing_return.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_return.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"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
open Typing_env_return_info
module Env = Typing_env
module TUtils = Typing_utils
mo... | 36.99187 | 94 | 0.693846 |
8af1b365effe34ee3ee94e2ef7ace9c70d406ddb | 1,817 | ml | OCaml | server.ml | icefoxen/finished-pandemonium | aee4c68ea405b3f5d0ea5f463b12c47a5dffe575 | [
"MIT"
] | null | null | null | server.ml | icefoxen/finished-pandemonium | aee4c68ea405b3f5d0ea5f463b12c47a5dffe575 | [
"MIT"
] | null | null | null | server.ml | icefoxen/finished-pandemonium | aee4c68ea405b3f5d0ea5f463b12c47a5dffe575 | [
"MIT"
] | null | null | null | (* server.ml
Each server thing represents a server.
It is basically metadata, and a bunch of channels.
It should have functions for all the things a server can do,
more or less translating into the IRC protocol messages.
*)
open Unix;;
let getMyIP () =
let myname = gethostname () in
let mydnsentry =... | 18.731959 | 63 | 0.64557 |
bc188374d8dc729137397717572e83367a210c84 | 5,044 | ml | OCaml | hphp/hack/src/parser/ast_utils.ml | azjezz/hhvm | bb38fc533db545c1e9be9b5c373c759cd28b0f33 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2019-09-01T19:40:10.000Z | 2019-10-18T13:30:30.000Z | hphp/hack/src/parser/ast_utils.ml | azjezz/hhvm | bb38fc533db545c1e9be9b5c373c759cd28b0f33 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-12-16T15:39:15.000Z | 2018-12-16T15:39:16.000Z | hphp/hack/src/parser/ast_utils.ml | azjezz/hhvm | bb38fc533db545c1e9be9b5c373c759cd28b0f33 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-11-17T04:11:10.000Z | 2018-11-17T04:11:10.000Z | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Ast
(* Given a Ast.program, give me the list of entities it defines *)
let get_defs ast =
... | 32.753247 | 91 | 0.695282 |
4430a5d602558217ed456d839f5ab0bd6159b339 | 210 | mli | OCaml | libraries/ec2/lib/modifyInstanceAttribute.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/modifyInstanceAttribute.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/ec2/lib/modifyInstanceAttribute.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = ModifyInstanceAttributeRequest.t
type output = unit
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 30 | 74 | 0.742857 |
44e0c3fb3969036e4b891f226811f9e99699eb81 | 3,341 | ml | OCaml | experiments/ownership-inference/infer/infer/src/types/abstractPointsToGraph.ml | SunghoLee/hafnium-verification | 382494a2280a751a1e33f2676e8bbf5d5e2d9dbf | [
"Apache-2.0"
] | 30 | 2019-06-28T15:20:25.000Z | 2021-08-25T11:37:30.000Z | experiments/ownership-inference/infer/infer/src/types/abstractPointsToGraph.ml | SunghoLee/hafnium-verification | 382494a2280a751a1e33f2676e8bbf5d5e2d9dbf | [
"Apache-2.0"
] | 39 | 2019-06-28T15:08:12.000Z | 2020-07-17T01:44:33.000Z | experiments/ownership-inference/infer/infer/src/types/abstractPointsToGraph.ml | SunghoLee/hafnium-verification | 382494a2280a751a1e33f2676e8bbf5d5e2d9dbf | [
"Apache-2.0"
] | 17 | 2019-06-28T14:40:41.000Z | 2021-03-11T19:26:13.000Z | (*
* Copyright (c) 2020 KAIST.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module F = Format
(* Abstract Location *)
module AbstractLocation = struct
type id = int
[@@deriving compare]
type t = NamedLoc of id * Ident.na... | 25.899225 | 115 | 0.656091 |
442152517f7727ee7470069b90c6aa73f2054b5c | 4,970 | ml | OCaml | src/lib/transition_frontier/persistent_frontier/worker.ml | olton/mina | 35a0be706602a3187a21ba757c89d197ff914d7e | [
"Apache-2.0"
] | 1 | 2022-02-26T19:05:47.000Z | 2022-02-26T19:05:47.000Z | src/lib/transition_frontier/persistent_frontier/worker.ml | olton/mina | 35a0be706602a3187a21ba757c89d197ff914d7e | [
"Apache-2.0"
] | null | null | null | src/lib/transition_frontier/persistent_frontier/worker.ml | olton/mina | 35a0be706602a3187a21ba757c89d197ff914d7e | [
"Apache-2.0"
] | null | null | null | open Async
open Core
open Otp_lib
open Mina_base
open Frontier_base
type input = Diff.Lite.E.t list
type create_args =
{ db: Database.t
; logger: Logger.t
; persistent_root_instance: Persistent_root.Instance.t }
module Worker = struct
(* when this is transitioned to an RPC worker, the db argument
* should... | 34.513889 | 80 | 0.632394 |
444cf66385bbbd76d855e4cab7981f3545977809 | 6,582 | ml | OCaml | litmus/option.ml | jmadiot/herdtools7 | b58a26946e2012a40ad280c3a11f2d251824a3ae | [
"CECILL-B"
] | null | null | null | litmus/option.ml | jmadiot/herdtools7 | b58a26946e2012a40ad280c3a11f2d251824a3ae | [
"CECILL-B"
] | null | null | null | litmus/option.ml | jmadiot/herdtools7 | b58a26946e2012a40ad280c3a11f2d251824a3ae | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 28.37069 | 111 | 0.602097 |
448c1a8d1e121ab4e24e05bd6586a6ce532341c2 | 5,656 | ml | OCaml | src/typing/func_params.ml | gajus/flow | 8a475d7b6304297fbb4740d3325e99385c8a4f68 | [
"BSD-3-Clause"
] | 2 | 2019-04-15T09:36:00.000Z | 2021-01-19T15:27:20.000Z | src/typing/func_params.ml | gajus/flow | 8a475d7b6304297fbb4740d3325e99385c8a4f68 | [
"BSD-3-Clause"
] | null | null | null | src/typing/func_params.ml | gajus/flow | 8a475d7b6304297fbb4740d3325e99385c8a4f68 | [
"BSD-3-Clause"
] | null | null | null | module Ast = Spider_monkey_ast
module Anno = Type_annotation
module Flow = Flow_js
open Reason
open Type
open Destructuring
type binding = string * Type.t * Loc.t
type param =
| Simple of Type.t * binding
| Complex of Type.t * binding list
| Rest of Type.t * binding
type t = {
list: param list;
defaults: As... | 32.32 | 81 | 0.620934 |
441330525e2e6a4f0dc0a44ca1fdb7118ead31ef | 975 | ml | OCaml | lib/PCSat/qualifier/union.ml | fahadnayyar/coar | 231ff92d5ce493922c66ec6beaa50c47bedc7295 | [
"Apache-2.0"
] | 5 | 2021-05-01T05:32:32.000Z | 2021-12-18T08:57:13.000Z | lib/PCSat/qualifier/union.ml | fahadnayyar/coar | 231ff92d5ce493922c66ec6beaa50c47bedc7295 | [
"Apache-2.0"
] | null | null | null | lib/PCSat/qualifier/union.ml | fahadnayyar/coar | 231ff92d5ce493922c66ec6beaa50c47bedc7295 | [
"Apache-2.0"
] | 1 | 2021-08-04T22:48:55.000Z | 2021-08-04T22:48:55.000Z | open Core
open Common.Util
open Ast
open Ast.LogicOld
open PCSatCommon
module type Q = sig
val qualifiers_of: Ident.pvar -> Sort.t list -> (ExAtom.t * int) Set.Poly.t -> (SortMap.t * VersionSpace.examples) -> (SortEnv.t * Formula.t) Set.Poly.t
val str_of_domain: string
end
module Make (Config: sig val domains: ((... | 37.5 | 154 | 0.652308 |
8ae300ce78d8335b05a64828af74445e52321b67 | 992 | ml | OCaml | code/functors/foldable.ml | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 328 | 2015-01-08T13:55:08.000Z | 2022-03-11T12:56:04.000Z | code/functors/foldable.ml | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 17 | 2015-01-04T00:26:01.000Z | 2018-05-31T08:16:44.000Z | code/functors/foldable.ml | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 83 | 2015-01-21T15:07:56.000Z | 2022-03-11T12:56:08.000Z | open Core.Std
module type S = sig
type 'a t
val fold : 'a t -> init:'acc -> f:('acc -> 'a -> 'acc) -> 'acc
end
module type Extension = sig
type 'a t
val iter : 'a t -> f:('a -> unit) -> unit
val length : 'a t -> int
val count : 'a t -> f:('a -> bool) -> int
val for_all : 'a t -> f:('a -> bool) -> ... | 23.619048 | 72 | 0.558468 |
44dc695a7e494faca8099b013a77cfbfd26c4699 | 1,922 | mli | OCaml | code/src/netplex/netplex_vexec.mli | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/src/netplex/netplex_vexec.mli | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/src/netplex/netplex_vexec.mli | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | (* $Id$ *)
(** Virtual Execution
*
* The VEXEC protocol allows to invoke a routine over a socket like
* a Unix command. One can pass an environment, a command name, and
* command arguments. One is connected with stdin, stdout and stderr.
*
* VEXEC is only available over Unix domain sockets.
*)
open Netpl... | 29.121212 | 78 | 0.671696 |
bc3a013de138f821e104a63f4b812f38019937ad | 158 | ml | OCaml | lib/ro_array.ml | talex5/capnp-rpc | 058852ebc99d9886baf0170efa368f2278742747 | [
"Apache-2.0"
] | null | null | null | lib/ro_array.ml | talex5/capnp-rpc | 058852ebc99d9886baf0170efa368f2278742747 | [
"Apache-2.0"
] | 1 | 2021-04-23T08:05:36.000Z | 2021-04-23T08:05:36.000Z | lib/ro_array.ml | talex5/capnp-rpc | 058852ebc99d9886baf0170efa368f2278742747 | [
"Apache-2.0"
] | null | null | null | type 'a t = 'a array
let of_list = Array.of_list
let get t i = t.(i)
let length = Array.length
let map = Array.map
let iteri = Array.iteri
let empty = [| |]
| 17.555556 | 27 | 0.658228 |
8a29d60a90e7ec0aae84201b918866e5d9769f0d | 99 | ml | OCaml | 11/test.ml | Daniel-Chin/ocaml-99-problems | 8c36468379e3ba99ce847803689263b9ea9ad862 | [
"CC0-1.0"
] | null | null | null | 11/test.ml | Daniel-Chin/ocaml-99-problems | 8c36468379e3ba99ce847803689263b9ea9ad862 | [
"CC0-1.0"
] | null | null | null | 11/test.ml | Daniel-Chin/ocaml-99-problems | 8c36468379e3ba99ce847803689263b9ea9ad862 | [
"CC0-1.0"
] | null | null | null | #use "main.ml" ;;
encode ["a"; "a"; "a"; "a"; "b"; "c"; "c"; "a"; "a"; "d"; "e"; "e"; "e"; "e"];;
| 24.75 | 79 | 0.292929 |
bc0ef944e41f203de69c9a36c3692242004b893a | 1,050 | mli | OCaml | libraries/ec2/lib/describeIamInstanceProfileAssociations.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/ec2/lib/describeIamInstanceProfileAssociations.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/describeIamInstanceProfileAssociations.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<p>Describes your IAM instance profile associations.</p>" *)
open Types[@@ocaml.warning "-33"]
open Aws.BaseTypes[@@ocaml.warning "-33"]
module DescribeIamInstanceProfileAssociationsRequest :
sig
type t =
{
association_ids: AssociationIdList.t ;
filters: FilterList.t ;
max_results: Integer.t opti... | 36.206897 | 74 | 0.730476 |
44be427fafaf9f5495c8512043429b6b04c52eb4 | 4,951 | ml | OCaml | src/server/monitor_listener/workloadStream.ml | brookemitchell/flow | 2ca328a33dc2cf634a554b5b0c99b0c22369aae3 | [
"MIT"
] | 1 | 2022-02-06T01:14:40.000Z | 2022-02-06T01:14:40.000Z | src/server/monitor_listener/workloadStream.ml | villesau/flow | 81272dd05d96d0c7547eb00859020ebfc6aee4da | [
"MIT"
] | null | null | null | src/server/monitor_listener/workloadStream.ml | villesau/flow | 81272dd05d96d0c7547eb00859020ebfc6aee4da | [
"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.
*)
(* A WorkloadStream.t is a datastructure which keeps track of the workloads (aka commands) that the
* server has queued up to run... | 39.608 | 99 | 0.751161 |
bc216cc7fccc245dd4b99c425edd324e267cbaaf | 7,693 | ml | OCaml | data/derived/comb/progs/unify/prog0140.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/prog0140.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0140.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... | 26.619377 | 148 | 0.675419 |
bc16efb5f4516fe139e653f45e3384935fb947c4 | 4,815 | ml | OCaml | test/driver/test_p11_driver.ml | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | test/driver/test_p11_driver.ml | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | test/driver/test_p11_driver.ml | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | open OUnit2
type get_attribute_value_params =
( P11.Session_handle.t
* P11.Object_handle.t
* P11.Attribute_types.t
)
[@@deriving eq,show]
module type Mock_driver_params = sig
val c_GetAttributeValue :
Pkcs11.CK_SESSION_HANDLE.t ->
Pkcs11.CK_OBJECT_HANDLE.t ->
Pkcs11.CK_ATTRIBUTE.t Ctypes.ptr -... | 32.979452 | 107 | 0.679751 |
44f7ddbc76f1211dcc4550621cf3c88c3b1b1a2e | 4,228 | ml | OCaml | src/server/serverProt.ml | ebarahona/flow | 6d4e123d3122a72f6a603269589f00760bd8e9cf | [
"BSD-3-Clause"
] | null | null | null | src/server/serverProt.ml | ebarahona/flow | 6d4e123d3122a72f6a603269589f00760bd8e9cf | [
"BSD-3-Clause"
] | null | null | null | src/server/serverProt.ml | ebarahona/flow | 6d4e123d3122a72f6a603269589f00760bd8e9cf | [
"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 "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
type ... | 27.277419 | 96 | 0.716178 |
44088ca6e4f3ea83f994d8c536c1cca76900f627 | 11,828 | ml | OCaml | lib/junction.ml | mor1/core-network | ef3102a51d5ea53d7311e06f1cc990d52d3721c3 | [
"MIT"
] | null | null | null | lib/junction.ml | mor1/core-network | ef3102a51d5ea53d7311e06f1cc990d52d3721c3 | [
"MIT"
] | null | null | null | lib/junction.ml | mor1/core-network | ef3102a51d5ea53d7311e06f1cc990d52d3721c3 | [
"MIT"
] | null | null | null | open Lwt.Infix
let junction = Logs.Src.create "junction" ~doc:"Traffic junction"
module Log = (val Logs_lwt.src_log junction : Logs_lwt.LOG)
let hexdump_buf_debug desp buf =
Log.warn (fun m ->
let b = Buffer.create 4096 in
Cstruct.hexdump_to_buffer b buf;
m "%s len:%d pkt:%s" desp (Cstruct.len buf... | 36.171254 | 118 | 0.573132 |
44d50fe584ece545770837c91b30b0ad9565cc1d | 315 | ml | OCaml | data/derived/comb/progs/unify/prog6762.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/prog1942.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1942.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
if (List.length l1) < (List.length l2)
then let n = (List.length l2) - (List.length l1) in clone 0 n
else
if (List.length l2) < (List.length l1)
then (let n = (List.length l1) - (List.length l2) in clone 0 n);;
| 31.5 | 69 | 0.590476 |
44578a0d737ee58152c653fd54e33ce692777bdd | 844 | mli | OCaml | infer/src/pulse/PulseLatentIssue.mli | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | 1 | 2017-02-15T00:44:54.000Z | 2017-02-15T00:44:54.000Z | infer/src/pulse/PulseLatentIssue.mli | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | infer/src/pulse/PulseLatentIssue.mli | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
open PulseBasicInterface
module AbductiveDomain = PulseAbductiveDomain
(** A subset of [PulseDiagnostic] that can be "l... | 32.461538 | 99 | 0.75237 |
440c8877645c2a65a54e51829857cec4eb988ed2 | 463 | mli | OCaml | lib/syntax.mli | patricoferris/hilite | 90055b7aedfcc53ce23ed51415bbe748c11c7c3d | [
"0BSD"
] | 6 | 2020-11-08T21:46:03.000Z | 2021-10-29T20:58:06.000Z | lib/syntax.mli | patricoferris/hilite | 90055b7aedfcc53ce23ed51415bbe748c11c7c3d | [
"0BSD"
] | null | null | null | lib/syntax.mli | patricoferris/hilite | 90055b7aedfcc53ce23ed51415bbe748c11c7c3d | [
"0BSD"
] | null | null | null | type 'a res = ('a, [ `Msg of string ]) result
val src_code_to_tyxml_html :
lang:string -> src:string -> [> Html_types.span ] Tyxml_html.elt list list res
(** [src_code_to_tyxml_html lang code] will highlight [code] in language [lang] producing a Tyxml element *)
val drop_last : 'a list -> 'a list
val src_code_to_h... | 42.090909 | 108 | 0.714903 |
445ebba0f8b54877e05f74e150bd7d0c6162470e | 3,949 | ml | OCaml | source/interprocedural_analyses/taint/test/domainTest.ml | plan-do-break-fix/pyre-check | a3939f90c42cec81994569d0b08c5c95d630f927 | [
"MIT"
] | null | null | null | source/interprocedural_analyses/taint/test/domainTest.ml | plan-do-break-fix/pyre-check | a3939f90c42cec81994569d0b08c5c95d630f927 | [
"MIT"
] | null | null | null | source/interprocedural_analyses/taint/test/domainTest.ml | plan-do-break-fix/pyre-check | a3939f90c42cec81994569d0b08c5c95d630f927 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open OUnit2
open Ast
open Taint
open Domains
open Core
let test_partition_call_map _ =
let taint = ForwardTaint.singleton (Sourc... | 33.184874 | 98 | 0.701443 |
44a873d359377a3cfb5f30380723866db0648549 | 87,326 | ml | OCaml | src/ocaml-output/FStar_Syntax_Syntax.ml | antoniolocascio/FStar | b8b1265a0f98aa7a080d38d4d3c9d523154835d1 | [
"Apache-2.0"
] | 1 | 2021-06-24T15:16:56.000Z | 2021-06-24T15:16:56.000Z | src/ocaml-output/FStar_Syntax_Syntax.ml | antoniolocascio/FStar | b8b1265a0f98aa7a080d38d4d3c9d523154835d1 | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_Syntax_Syntax.ml | antoniolocascio/FStar | b8b1265a0f98aa7a080d38d4d3c9d523154835d1 | [
"Apache-2.0"
] | null | null | null | open Prims
type 'a withinfo_t = {
v: 'a ;
p: FStar_Compiler_Range.range }[@@deriving yojson,show]
let __proj__Mkwithinfo_t__item__v : 'a . 'a withinfo_t -> 'a =
fun projectee -> match projectee with | { v; p;_} -> v
let __proj__Mkwithinfo_t__item__p :
'a . 'a withinfo_t -> FStar_Compiler_Range.range =
fun pro... | 44.015121 | 90 | 0.703513 |
bc1242ae05213328b917f2c6ec1d284054cb0768 | 92 | mli | OCaml | lib/store.mli | marcoonroad/hieroglyphs | 86ea8029704b9984c022532366008810f756c7a5 | [
"MIT"
] | 9 | 2018-11-21T20:30:03.000Z | 2022-01-30T15:31:14.000Z | lib/store.mli | marcoonroad/hieroglyphs | 86ea8029704b9984c022532366008810f756c7a5 | [
"MIT"
] | 13 | 2018-11-18T05:39:05.000Z | 2022-03-10T02:05:52.000Z | lib/store.mli | marcoonroad/hieroglyphs | 86ea8029704b9984c022532366008810f756c7a5 | [
"MIT"
] | 1 | 2019-04-14T22:38:52.000Z | 2019-04-14T22:38:52.000Z | val get : key:string -> string option
val set : msg:string -> key:string -> string -> unit
| 23 | 52 | 0.663043 |
44e423a95ec9e2efdc9ed1ac5c2d62a070fd9afd | 2,260 | ml | OCaml | duniverse/base/src/list0.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | 1 | 2019-09-11T00:04:16.000Z | 2019-09-11T00:04:16.000Z | duniverse/base/src/list0.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/base/src/list0.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (* [List0] defines list functions that are primitives or can be simply defined in terms of
[Caml.List]. [List0] is intended to completely express the part of [Caml.List] that
[Base] uses -- no other file in Base other than list0.ml should use [Caml.List].
[List0] has few dependencies, and so is available earl... | 52.55814 | 90 | 0.561504 |
440134eb958f234f2fb79a73df98a5675761cb3e | 8,408 | ml | OCaml | hphp/hack/src/providers/provider_backend.ml | ayushkumar63123/hhvm | 6a9988cb61bd878f5aa85b18b31a3e1f4a8e2461 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-12-02T18:52:19.000Z | 2021-12-02T18:52:19.000Z | hphp/hack/src/providers/provider_backend.ml | ayushkumar63123/hhvm | 6a9988cb61bd878f5aa85b18b31a3e1f4a8e2461 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/providers/provider_backend.ml | ayushkumar63123/hhvm | 6a9988cb61bd878f5aa85b18b31a3e1f4a8e2461 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2019, 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
module Decl_cache_entry = struct
(* NOTE: we can't simply use a string as a key. In the case of a... | 30.798535 | 116 | 0.695647 |
44f96829c05dd198b9e322882266f591048f72b3 | 12,261 | ml | OCaml | test/ast_test/ast_test.ml | havr/lefunq | afd61807281964e1d0f51fc49516e14041a85c76 | [
"Apache-2.0"
] | 2 | 2021-07-16T12:54:55.000Z | 2021-07-17T17:32:44.000Z | test/ast_test/ast_test.ml | havr/lefunq | afd61807281964e1d0f51fc49516e14041a85c76 | [
"Apache-2.0"
] | null | null | null | test/ast_test/ast_test.ml | havr/lefunq | afd61807281964e1d0f51fc49516e14041a85c76 | [
"Apache-2.0"
] | null | null | null | module TestHelpers = struct
let a = Ast.Parser.block_stmts ()
(* let print_sexp sexp =
let buf = Buffer.create 0 in
let fmt = Format.formatter_of_buffer buf in
let open Core_kernel in
Sexp.pp_hum fmt sexp;
Format.pp_print_flush fmt ();
Buffer.contents buf *)
(* let parse parser ~printer... | 27.186253 | 138 | 0.570427 |
4446c6f87ef22492753888b9f2c5ad3e35a5b91c | 577 | ml | OCaml | exercises/03_04-recherche/test.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | exercises/03_04-recherche/test.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | exercises/03_04-recherche/test.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | open Test_lib
open Report
let exercise_1 =
Section ([ Text "Function: ";
Code "recherche_dichotomique";
Text " with multiple tested input types." ],
test_function_2_against_solution
[%ty: int array -> int -> bool]
"recherche_dichotomique"
~gen:0
... | 23.08 | 57 | 0.473137 |
bc0173fdd58652d7e8505c9565732fbdf2fc5920 | 29,817 | ml | OCaml | interprocedural_analyses/taint/backwardAnalysis.ml | rvantonder/pyre-check-1 | 600ec9656ece5fff21598f4248c55089714bf590 | [
"MIT"
] | null | null | null | interprocedural_analyses/taint/backwardAnalysis.ml | rvantonder/pyre-check-1 | 600ec9656ece5fff21598f4248c55089714bf590 | [
"MIT"
] | null | null | null | interprocedural_analyses/taint/backwardAnalysis.ml | rvantonder/pyre-check-1 | 600ec9656ece5fff21598f4248c55089714bf590 | [
"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 Analysis
open Ast
open Expression
open Pyre
open Statement
open Domains
open AccessPath
module type FixpointState = sig
typ... | 41.240664 | 101 | 0.63665 |
bc082f0730a9d557702beeb23bc0fd9c5950920f | 1,425 | mli | OCaml | presentations/coq-workshop-2014-coq/plugins/funind/functional_principles_types.mli | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/plugins/funind/functional_principles_types.mli | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/plugins/funind/functional_principles_types.mli | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | (************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2015 *)
(* \VV/ **************************************************************)
(* // * Th... | 31.666667 | 90 | 0.54807 |
44ddc89274f3ff81c1690d3790e31f9dd93c0b1f | 145,562 | ml | OCaml | hphp/hack/src/hhbc/emit_expression.ml | gaurav1086/hhvm | 44b0edc7a9186a4ccc04ecbba0f5cf52619d37e0 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-17T02:24:38.000Z | 2020-01-17T02:24:38.000Z | hphp/hack/src/hhbc/emit_expression.ml | gaurav1086/hhvm | 44b0edc7a9186a4ccc04ecbba0f5cf52619d37e0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/emit_expression.ml | gaurav1086/hhvm | 44b0edc7a9186a4ccc04ecbba0f5cf52619d37e0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Hhbc_ast
open Instruction_sequence
open Ast_class_expr
open Emit_pos
module H = Hhbc_ast
modul... | 31.705946 | 96 | 0.610709 |
44ca7381b9d7b0ca5fdce6a1724efaa246a3a003 | 15,143 | ml | OCaml | src/dune/upgrader.ml | vahuja13/dune | 888a64db60b973da5685f8e4f2d9f2b2e1a4f264 | [
"MIT"
] | null | null | null | src/dune/upgrader.ml | vahuja13/dune | 888a64db60b973da5685f8e4f2d9f2b2e1a4f264 | [
"MIT"
] | null | null | null | src/dune/upgrader.ml | vahuja13/dune | 888a64db60b973da5685f8e4f2d9f2b2e1a4f264 | [
"MIT"
] | null | null | null | open! Stdune
open Import
open Fiber.O
(* Return a mapping [Path.t -> Dune_lang.Ast.t list] containing [path] and all
the files in includes, recursiverly *)
let scan_included_files path =
let files = ref Path.Source.Map.empty in
let rec iter path =
if not (Path.Source.Map.mem !files path) then (
let s =... | 34.891705 | 81 | 0.584296 |
44a12a8566c068849180a3d30cbde246038c922a | 1,993 | ml | OCaml | async/faraday_async.ml | ChrisWills/faraday | 423a6623916091a42ac9bd517e04a4962251f22e | [
"BSD-3-Clause"
] | 123 | 2016-08-11T18:28:22.000Z | 2022-01-18T11:05:07.000Z | async/faraday_async.ml | ChrisWills/faraday | 423a6623916091a42ac9bd517e04a4962251f22e | [
"BSD-3-Clause"
] | 36 | 2016-12-29T16:46:42.000Z | 2021-12-19T18:32:43.000Z | async/faraday_async.ml | ChrisWills/faraday | 423a6623916091a42ac9bd517e04a4962251f22e | [
"BSD-3-Clause"
] | 21 | 2017-03-01T19:28:05.000Z | 2022-03-29T18:36:13.000Z | open Core
open Async
module Unix = Core.Unix
let serialize t ~yield ~writev =
let shutdown () =
Faraday.close t;
(* It's necessary to drain the serializer in order to free any buffers that
* be queued up. *)
ignore (Faraday.drain t)
in
let rec loop t =
match Faraday.operation t with
| ... | 28.070423 | 90 | 0.58003 |
44c140cad02619430a16b23ec26eda66c2e6c474 | 1,757 | ml | OCaml | libraries/kms/lib/generateDataKey.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/kms/lib/generateDataKey.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/kms/lib/generateDataKey.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = GenerateDataKeyRequest.t
type output = GenerateDataKeyResponse.t
type error = Errors_internal.t
let service = "kms"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_... | 26.621212 | 89 | 0.61753 |
8ace097b5ad057742c6abb6901cb57039a929502 | 872 | ml | OCaml | data/derived/comb/progs/unify/prog7657.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/prog2857.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2857.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
| NewOp1 of expr* expr* expr
| NewOp2 of expr;;
let pi = 4.0 *. (atan 1.0);;
let rec eval (e,x,y) =
match e with
| VarX -> x
| VarY -> y
| Sine e1 -> ... | 27.25 | 70 | 0.454128 |
8a646035910fefab284eaacfbfff7d6af4745499 | 461 | ml | OCaml | tests/typing-modules-bugs/pr7036_ok.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | 1 | 2016-05-17T14:29:13.000Z | 2016-05-17T14:29:13.000Z | tests/typing-modules-bugs/pr7036_ok.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | tests/typing-modules-bugs/pr7036_ok.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | module M = struct
module type S = sig type a val v : a end
type 'a s = (module S with type a = 'a)
end
module B = struct
class type a = object method a : 'a. 'a M.s -> 'a end
end
module M' = M
module B' = B
class b : B.a = object
method a : 'a. 'a M.s -> 'a = fun (type a) ((module X) : (module M.S with type
a = ... | 20.954545 | 79 | 0.557484 |
8ab1ce0528ef23bad7ad23b234fea157dd051b07 | 633 | mli | OCaml | utilities/lib/location.mli | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | 1 | 2020-05-13T13:51:57.000Z | 2020-05-13T13:51:57.000Z | utilities/lib/location.mli | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | null | null | null | utilities/lib/location.mli | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | null | null | null | (** Locations in source files.
Locations are represented as a starting row/column and ending row/column in
a particular file, and they are interpreted as including all of the
characters between their start and end points. *)
(** {1 Types} *)
(** The type of source-code locations. *)
type t
(** {1 Functi... | 27.521739 | 80 | 0.687204 |
bc23399a2f019b391aad63084715b5262c1b494f | 5,425 | ml | OCaml | src/exe.ml | Khady/dune | 9afd3d215759f65d52c74def6992b2771def3363 | [
"MIT"
] | null | null | null | src/exe.ml | Khady/dune | 9afd3d215759f65d52c74def6992b2771def3363 | [
"MIT"
] | null | null | null | src/exe.ml | Khady/dune | 9afd3d215759f65d52c74def6992b2771def3363 | [
"MIT"
] | null | null | null | open Import
open Build.O
module CC = Compilation_context
module SC = Super_context
module Program = struct
type t =
{ name : string
; main_module_name : Module.Name.t
}
end
module Linkage = struct
type t =
{ mode : Mode.t
; ext : string
; flags : string list
}
let by... | 27.125 | 79 | 0.579171 |
bc24a59d35643b929cbe98c5fbbc38d7a936ef67 | 8,570 | ml | OCaml | lib/nat_packet.ml | CraigFe/mirage-nat | 472b2cbb76e2ce39757d237ee68f8ac76055e33b | [
"ISC"
] | null | null | null | lib/nat_packet.ml | CraigFe/mirage-nat | 472b2cbb76e2ce39757d237ee68f8ac76055e33b | [
"ISC"
] | null | null | null | lib/nat_packet.ml | CraigFe/mirage-nat | 472b2cbb76e2ce39757d237ee68f8ac76055e33b | [
"ISC"
] | null | null | null | [@@@ocaml.warning "-39"]
type t =
[`IPv4 of Ipv4_packet.t * [ `TCP of Tcp.Tcp_packet.t * Cstruct.t
| `UDP of Udp_packet.t * Cstruct.t
| `ICMP of Icmpv4_packet.t * Cstruct.t
]
]
[@@deriving eq]
[@@@ocaml.warning "+39"]
type error ... | 46.075269 | 152 | 0.68133 |
bc3659de11fdb2a731f9f2311cf8a6ef53f3c6da | 1,986 | mli | OCaml | gen/atom.mli | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | gen/atom.mli | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | gen/atom.mli | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 53.675676 | 78 | 0.477845 |
bc3937892f70acf4fbfbe045ed5665f4da3e3f65 | 1,352 | ml | OCaml | old0/syntax.ml | vendamere/pyrgos | 2473a0298ff89afe8d0917f2cd436821350be9d8 | [
"MIT"
] | 2 | 2019-05-21T13:03:09.000Z | 2020-09-01T07:50:54.000Z | old0/syntax.ml | vendamere/pyrgos | 2473a0298ff89afe8d0917f2cd436821350be9d8 | [
"MIT"
] | 6 | 2019-07-20T15:53:59.000Z | 2021-12-27T18:54:54.000Z | old0/syntax.ml | vendamere/pyrgos | 2473a0298ff89afe8d0917f2cd436821350be9d8 | [
"MIT"
] | 2 | 2020-04-09T22:42:40.000Z | 2021-12-18T08:42:52.000Z | open Util
type symbol = string (* TODO make this right *)
type texpr =
| Func of texpr * texpr
| TVar of symbol
type expr =
| Appl of expr * expr
| Atom of symbol
| DataCtr of symbol
| Lambda of (expr * expr) list
| List of symbol list
| Quote of expr
| Symbol of symbol
| TExpr of texpr
type top... | 28.765957 | 81 | 0.599852 |
afed1727296a283172120e8763caa964cd9ec8c5 | 244 | ml | OCaml | data/derived/comb/progs/unify/prog7021.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/prog2205.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2205.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 rec eval (e,x,y) = (buildX 2 let_) = (eval (VarX, 3, 2));;
| 17.428571 | 62 | 0.577869 |
44fcc69ab1bccb0cd730162aea87e6f1463dbda0 | 1,853 | mli | OCaml | vendor/dune/src/package.mli | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/dune/src/package.mli | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/dune/src/package.mli | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | (** Information about a package defined in the workspace *)
open! Stdune
module Name : sig
type t
val of_string : string -> t
val opam_fn : t -> string
val version_fn : t -> string
include Interned.S with type t := t
include Dune_lang.Conv with type t := t
module Infix : Comparator.OPS with type t... | 19.103093 | 68 | 0.54776 |
448d99bbd62acbdf7cf826946e2b7f96ccd5472b | 96,378 | ml | OCaml | src/lsp/flowLsp.ml | TheJKFever/flow | 0891647c93062c25665323c259a8083374ac1348 | [
"MIT"
] | null | null | null | src/lsp/flowLsp.ml | TheJKFever/flow | 0891647c93062c25665323c259a8083374ac1348 | [
"MIT"
] | null | null | null | src/lsp/flowLsp.ml | TheJKFever/flow | 0891647c93062c25665323c259a8083374ac1348 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open CommandUtils
open Lsp
open Lsp_fmt
module List = Base.List
(*****************************************************************... | 42.049738 | 151 | 0.67394 |
448657365d9c050eb7dfe7926d04eaa7958d5cf0 | 5,569 | mli | OCaml | srk/src/wedge.mli | anvayg/duet | b7cadaf486dc81a911189f582a53d4eee8ef69b9 | [
"MIT"
] | 1 | 2021-12-14T06:46:12.000Z | 2021-12-14T06:46:12.000Z | srk/src/wedge.mli | anvayg/duet | b7cadaf486dc81a911189f582a53d4eee8ef69b9 | [
"MIT"
] | null | null | null | srk/src/wedge.mli | anvayg/duet | b7cadaf486dc81a911189f582a53d4eee8ef69b9 | [
"MIT"
] | null | null | null | (** Wedge abstract domain. A wedge corresponds to a conjunction of equations
and inequations over a vocabulary that includes addition, multiplication,
exponentiation, logarithm, division, and modulo. *)
open Syntax
type 'a t
val pp : Format.formatter -> 'a t -> unit
val show : 'a t -> string
val join : ?le... | 35.246835 | 87 | 0.65685 |
44794ca28528c9e312bc9171dc4ed0ba4db1b1b7 | 5,163 | mli | OCaml | hphp/hack/src/deps/typing_deps.mli | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/deps/typing_deps.mli | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/deps/typing_deps.mli | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"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.
*
*)
module Dep : sig
(** A node in the dependency graph that must be rechecked when its dependencies change. *)
type... | 38.244444 | 95 | 0.692233 |
bc3a0e45326ad2d155bdb930e71a13568167218f | 15,844 | ml | OCaml | external/misc/constants.ml | abakst/liquid-fixpoint | 1a9e1aa1d073e4a42cb69f9f5ec46a19d13db2eb | [
"BSD-3-Clause"
] | null | null | null | external/misc/constants.ml | abakst/liquid-fixpoint | 1a9e1aa1d073e4a42cb69f9f5ec46a19d13db2eb | [
"BSD-3-Clause"
] | null | null | null | external/misc/constants.ml | abakst/liquid-fixpoint | 1a9e1aa1d073e4a42cb69f9f5ec46a19d13db2eb | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright © 2009 The Regents of the University of California.
* All rights reserved. Permission is hereby granted, without written
* agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any purpose, provided that the
* above copy... | 39.024631 | 124 | 0.578011 |
44eb518ad1a74d370ef2059a0ed3fb3e12916101 | 1,423 | ml | OCaml | ppx/ppx_unicode.ml | IwanKaramazow/unicode.re | 21a2b26fef83edd1006e19a700d5621cb62690b5 | [
"MIT"
] | 14 | 2018-01-17T01:00:53.000Z | 2021-08-15T10:00:20.000Z | ppx/ppx_unicode.ml | jordwalke/unicode.re | 21a2b26fef83edd1006e19a700d5621cb62690b5 | [
"MIT"
] | null | null | null | ppx/ppx_unicode.ml | jordwalke/unicode.re | 21a2b26fef83edd1006e19a700d5621cb62690b5 | [
"MIT"
] | 2 | 2019-05-20T09:34:05.000Z | 2019-06-21T15:06:36.000Z | exception Death
let compile_constant =
let open Asttypes in
function
| Const_int i -> Const_int(i)
| Const_char c -> Const_int(Char.code c)
| _ -> raise Death
let compile_cases cases =
let open Parsetree in
List.map (function
| ({pc_lhs} as case) ->
let ppat_desc = begin match pc_lhs.ppat_... | 27.901961 | 93 | 0.630358 |
8abae94f86154e47f9674e56401bd69f147653fd | 1,293 | mli | OCaml | herd/dir.mli | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"CECILL-B"
] | null | null | null | herd/dir.mli | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"CECILL-B"
] | null | null | null | herd/dir.mli | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 58.772727 | 78 | 0.41222 |
8ae287e9d39b90906d65cf5d5801aadaed07769d | 4,912 | ml | OCaml | infer/src/backend/SymOp.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | infer/src/backend/SymOp.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | infer/src/backend/SymOp.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2009 - 2013 Monoidics ltd.
* 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... | 28.068571 | 92 | 0.679357 |
bc35ff0da9de731cf63f130eb68d472b6c563d87 | 25,224 | ml | OCaml | src/lib_store/test/alpha_utils.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_store/test/alpha_utils.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_store/test/alpha_utils.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 34.318367 | 80 | 0.677807 |
8aafde01996e2041952e4fbf66ffe72896251a3e | 6,389 | ml | OCaml | src/arlcSolver.ml | ejgallego/HOARe2 | 48d8760696fdf4b8a3eda5a4d2a53eeba53072d8 | [
"BSD-3-Clause"
] | 7 | 2016-03-09T08:41:21.000Z | 2020-10-31T20:30:53.000Z | src/arlcSolver.ml | ejgallego/HOARe2 | 48d8760696fdf4b8a3eda5a4d2a53eeba53072d8 | [
"BSD-3-Clause"
] | 1 | 2018-11-13T12:33:40.000Z | 2018-11-21T19:43:17.000Z | src/arlcSolver.ml | ejgallego/HOARe2 | 48d8760696fdf4b8a3eda5a4d2a53eeba53072d8 | [
"BSD-3-Clause"
] | null | null | null | (* Copyright (c) 2014, The Trustees of the University of Pennsylvania
Copyright (c) 2014, The IMDEA Software Institute
All rights reserved.
LICENSE: 3-clause BSD style.
See the LICENSE file for details on licensing.
*)
module WConf = Why3.Whyconf
module WEnv = Why3.Env
module CP = Why3.Call_provers
o... | 33.450262 | 99 | 0.631241 |
bc3a97638f9968a8daf9771b14923ae63114dab3 | 5,956 | ml | OCaml | src/proto_alpha/lib_protocol/test/saturation_fuzzing.ml | tarides/tezos | aee55d4ea6af39ccd562f9c414429808c35b92ab | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/test/saturation_fuzzing.ml | tarides/tezos | aee55d4ea6af39ccd562f9c414429808c35b92ab | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_012_Psithaca/lib_protocol/test/saturation_fuzzing.ml | tarides/tezos | aee55d4ea6af39ccd562f9c414429808c35b92ab | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 32.369565 | 84 | 0.571021 |
f3b1dc0f2fba4d1f740fad55905a0abe88f4097d | 233 | mli | OCaml | libraries/elasticloadbalancing/lib/setLoadBalancerPoliciesForBackendServer.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/elasticloadbalancing/lib/setLoadBalancerPoliciesForBackendServer.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/elasticloadbalancing/lib/setLoadBalancerPoliciesForBackendServer.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | open Types_internal
type input = SetLoadBalancerPoliciesForBackendServerInput.t
type output = unit
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 33.285714 | 74 | 0.76824 |
44c80718d0ae838be0a15bc90d60a57b784217df | 2,700 | ml | OCaml | data/seminal/20060316-19:34:40-21991f746ce1d63c2b7ecd57ca2fccea.seminal.ml | ucsd-progsys/nanoml | 0de06f2c3a41063b1bf87d5f6dd11ad830be0512 | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/seminal/20060316-19:34:40-21991f746ce1d63c2b7ecd57ca2fccea.seminal.ml | ucsd-progsys/nanoml | 0de06f2c3a41063b1bf87d5f6dd11ad830be0512 | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/seminal/20060316-19:34:40-21991f746ce1d63c2b7ecd57ca2fccea.seminal.ml | ucsd-progsys/nanoml | 0de06f2c3a41063b1bf87d5f6dd11ad830be0512 | [
"BSD-3-Clause"
] | 3 | 2016-10-11T21:36:24.000Z | 2021-12-08T21:52:40.000Z | exception Unimplemented
type exp = Int of int
| Var of string
| Plus of exp * exp
| Times of exp * exp
type stmt = Skip
| Assign of string * exp
| Seq of stmt * stmt
| If of exp * stmt * stmt
| While of exp * stmt
| Saveheap... | 25.233645 | 120 | 0.431111 |
bc2ed0e94ae32aa8e3d30037ab3c071da6a5f25c | 10,438 | ml | OCaml | testgen/syntax_base.ml | btmills/flow | ed6e139582a86cb1a2b517f74b76a5c9d7b5a9c0 | [
"MIT"
] | 1 | 2021-01-26T23:00:15.000Z | 2021-01-26T23:00:15.000Z | testgen/syntax_base.ml | btmills/flow | ed6e139582a86cb1a2b517f74b76a5c9d7b5a9c0 | [
"MIT"
] | null | null | null | testgen/syntax_base.ml | btmills/flow | ed6e139582a86cb1a2b517f74b76a5c9d7b5a9c0 | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast = Flow_ast
module S = Flow_ast.Statement;;
module E = Flow_ast.Expression;;
module T = Flow_ast.Type;;
module P = Flow... | 38.234432 | 116 | 0.590151 |
8ab89f4d582de8239e9617e3252f1ee06e4b2c78 | 956 | ml | OCaml | libraries/cloudformation/lib/recordHandlerProgress.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/cloudformation/lib/recordHandlerProgress.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/cloudformation/lib/recordHandlerProgress.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
open Aws
type input = RecordHandlerProgressInput.t
type output = unit
type error = Errors_internal.t
let service = "cloudformation"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of ser... | 23.9 | 80 | 0.643305 |
bc350baf560c2676a750f2bbc8eac18ce55b540a | 61,910 | ml | OCaml | src/commands/commandUtils.ml | mochja/flow | f5351e5ece186468278f5a94a5c59f00315243c1 | [
"MIT"
] | 1 | 2020-11-02T02:15:55.000Z | 2020-11-02T02:15:55.000Z | src/commands/commandUtils.ml | mochja/flow | f5351e5ece186468278f5a94a5c59f00315243c1 | [
"MIT"
] | null | null | null | src/commands/commandUtils.ml | mochja/flow | f5351e5ece186468278f5a94a5c59f00315243c1 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Utils_js
let run_command command argv =
try
let args = CommandSpec.args_of_argv command argv in
CommandSpec.run com... | 34.053905 | 158 | 0.670732 |
8af31349481a7ed515cbfc02a99b6088d0b8ff98 | 10,026 | ml | OCaml | tests/idempotency/bucklescript/belt/belt_MutableSetString.ml | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 166 | 2020-08-11T15:49:10.000Z | 2022-03-23T17:28:36.000Z | tests/idempotency/bucklescript/belt/belt_MutableSetString.ml | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 305 | 2020-08-12T07:41:01.000Z | 2022-03-25T06:33:14.000Z | tests/idempotency/bucklescript/belt/belt_MutableSetString.ml | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 19 | 2020-08-30T14:25:33.000Z | 2022-03-21T07:58:43.000Z | # 1 "others/setm.cppo.ml"
(* Copyright (C) 2017 Authors of BuckleScript
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any ... | 29.230321 | 111 | 0.614403 |
44fd6804c44e02913851803090070af0969887f3 | 347 | ml | OCaml | result/fixml/nat/sub25/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/nat/sub25/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/nat/sub25/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type nat = ZERO | SUCC of nat
let rec natadd : nat -> nat -> nat =
fun n1 n2 -> match n2 with ZERO -> n1 | SUCC n3 -> SUCC (natadd n1 n3)
let rec subnatmul n1 n2 n3 =
match n1 with
| ZERO -> n2
| SUCC ZERO -> natadd n2 n3
| SUCC n4 -> subnatmul n4 n2 (natadd n2 n3)
let natmul : nat -> nat -> nat = fun n1 ... | 23.133333 | 71 | 0.610951 |
4403f88ad4e6f2abbf0abc2a78d4837764a60b11 | 47,526 | ml | OCaml | src/typing/slice_utils.ml | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | null | null | null | src/typing/slice_utils.ml | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | null | null | null | src/typing/slice_utils.ml | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"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.304553 | 121 | 0.581156 |
8aa1dea869cb6e810ae7df34aef8c911ef5e7a30 | 3,304 | ml | OCaml | hphp/hack/src/server/serverArgs_sig.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverArgs_sig.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverArgs_sig.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
module Abstract_types = struct
type options
end
module type S = sig
include module type of Abstract_types
include modu... | 26.861789 | 80 | 0.579298 |
44c10ddd072a37a2208bdb9184ae69f108775c4f | 264,519 | ml | OCaml | src/ocaml-output/FStar_TypeChecker_Tc.ml | TheoWinterhalter/FStar | 8d0d9083a834432b14d88268aa03dade9c88c2c7 | [
"Apache-2.0"
] | 1 | 2021-06-05T20:19:59.000Z | 2021-06-05T20:19:59.000Z | src/ocaml-output/FStar_TypeChecker_Tc.ml | TheoWinterhalter/FStar | 8d0d9083a834432b14d88268aa03dade9c88c2c7 | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_TypeChecker_Tc.ml | TheoWinterhalter/FStar | 8d0d9083a834432b14d88268aa03dade9c88c2c7 | [
"Apache-2.0"
] | null | null | null | open Prims
let (set_hint_correlator :
FStar_TypeChecker_Env.env ->
FStar_Syntax_Syntax.sigelt -> FStar_TypeChecker_Env.env)
=
fun env ->
fun se ->
let tbl =
FStar_All.pipe_right env.FStar_TypeChecker_Env.qtbl_name_and_index
FStar_Pervasives_Native.fst in
let get_n lid =
... | 56.654316 | 233 | 0.468874 |
446909411e6d37f558ffa501af8df251c6590944 | 228 | mli | OCaml | infer/src/istd/IntSet.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | infer/src/istd/IntSet.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | infer/src/istd/IntSet.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 2,225 | 2015-06-11T16:36:10.000Z | 2022-03-31T05:16:59.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
include Caml.Set.S with type elt = int
| 25.333333 | 66 | 0.714912 |
4499c59459bcda0299a6320e36315d313278246b | 8,940 | ml | OCaml | src/lib/transaction_inclusion_status/transaction_inclusion_status.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | null | null | null | src/lib/transaction_inclusion_status/transaction_inclusion_status.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | null | null | null | src/lib/transaction_inclusion_status/transaction_inclusion_status.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | null | null | null | open Inline_test_quiet_logs
open Core_kernel
open Mina_base
open Mina_transaction
open Pipe_lib
open Network_pool
module State = struct
[%%versioned
module Stable = struct
module V1 = struct
type t = Pending | Included | Unknown [@@deriving equal, sexp, compare]
let to_latest = Fn.id
end
end... | 39.733333 | 97 | 0.636353 |
44f6bda0be9c294d8bac7c4e3be1dedfda7d390b | 2,918 | ml | OCaml | infer/src/backend/Payloads.ml | psibi/infer | b06bb42a02c54770a774acc5ed84c4050943bc19 | [
"MIT"
] | null | null | null | infer/src/backend/Payloads.ml | psibi/infer | b06bb42a02c54770a774acc5ed84c4050943bc19 | [
"MIT"
] | null | null | null | infer/src/backend/Payloads.ml | psibi/infer | b06bb42a02c54770a774acc5ed84c4050943bc19 | [
"MIT"
] | 1 | 2019-05-15T16:25:02.000Z | 2019-05-15T16:25:02.000Z | (*
* 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! IStd
module F = Format
type t =
{ annot_map: AnnotReachabilityDomain.t option
; biabduction: BiabductionSummary.t option
; b... | 36.024691 | 100 | 0.704249 |
44fa7c0d0050bd84d1e3f7017befaffe9ab79c8f | 6,563 | mli | OCaml | src/Ast.mli | picojulien/ocamlformat | 63d4725c5a498d50f2c4ebf0d0bd460670454dd1 | [
"MIT"
] | null | null | null | src/Ast.mli | picojulien/ocamlformat | 63d4725c5a498d50f2c4ebf0d0bd460670454dd1 | [
"MIT"
] | null | null | null | src/Ast.mli | picojulien/ocamlformat | 63d4725c5a498d50f2c4ebf0d0bd460670454dd1 | [
"MIT"
] | null | null | null | (**********************************************************************
* *
* OCamlFormat *
* *
* Copyright (c) 2017-present, ... | 29.831818 | 77 | 0.642542 |
af996aa34d484a6d163e259e930368a638809310 | 453 | mli | OCaml | src/server/find_refs/propertyFindRefs.mli | gabrielrumiranda/flow | d73947eb839bf591b3f5df817b4e27a6f700a9e9 | [
"MIT"
] | null | null | null | src/server/find_refs/propertyFindRefs.mli | gabrielrumiranda/flow | d73947eb839bf591b3f5df817b4e27a6f700a9e9 | [
"MIT"
] | null | null | null | src/server/find_refs/propertyFindRefs.mli | gabrielrumiranda/flow | d73947eb839bf591b3f5df817b4e27a6f700a9e9 | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
val find_refs:
reader: State_reader.t ->
ServerEnv.genv ->
ServerEnv.env ref ->
File_key.t ->
FindRefsUtils.ast_info ->
... | 25.166667 | 67 | 0.701987 |
44c295688173392fff615547a199aaa70d2fdd09 | 20,771 | ml | OCaml | src/framework/analyses.ml | goblint/analyzer | 3a6491aa0fac5a7d136f13febd17ebe8e1d54643 | [
"MIT"
] | 64 | 2015-02-21T12:09:08.000Z | 2022-03-30T14:38:16.000Z | src/framework/analyses.ml | goblint/analyzer | 3a6491aa0fac5a7d136f13febd17ebe8e1d54643 | [
"MIT"
] | 507 | 2015-03-17T14:56:21.000Z | 2022-03-31T12:25:20.000Z | src/framework/analyses.ml | goblint/analyzer | 3a6491aa0fac5a7d136f13febd17ebe8e1d54643 | [
"MIT"
] | 39 | 2015-05-03T19:46:24.000Z | 2022-03-30T14:38:18.000Z | (** Signatures for analyzers, analysis specifications, and result output. *)
open Prelude
open Cil
open Pretty
open GobConfig
module GU = Goblintutil
module M = Messages
(** Analysis starts from lists of functions: start functions, exit functions, and
* other functions. *)
type fundecs = fundec list * fundec lis... | 35.873921 | 240 | 0.631457 |
44df67676c9fa66381f3d9fdc2a13f6a42d33d80 | 48,257 | ml | OCaml | src/c/functions/raylib_functions.ml | sjpgarcia/raylib-ocaml | 82ec6d86423308364016bc68266a72af3a1e34d3 | [
"MIT"
] | 1 | 2021-03-01T21:53:13.000Z | 2021-03-01T21:53:13.000Z | src/c/functions/raylib_functions.ml | Willenbrink/raylib-ocaml | 3ea5f4508a9a882dfd524fb88c2069915d6a0c07 | [
"MIT"
] | null | null | null | src/c/functions/raylib_functions.ml | Willenbrink/raylib-ocaml | 3ea5f4508a9a882dfd524fb88c2069915d6a0c07 | [
"MIT"
] | null | null | null | module Description (F : Ctypes.FOREIGN) = struct
open Ctypes
open F
open Raylib_generated_types
open Raylib_generated_constants
let init_window =
foreign "InitWindow" (int @-> int @-> string @-> returning void)
let window_should_close = foreign "WindowShouldClose" (void @-> returning bool)
let clos... | 33.28069 | 92 | 0.67814 |
bc3c962331e58736f18324c7f1c9556881fd3177 | 610 | ml | OCaml | src/06/ex1/fun_interpret.ml | nicdard/languages-compilers-interpreters-2020 | 9486c58aadf42412517bfc05bd974e6770522a44 | [
"MIT"
] | null | null | null | src/06/ex1/fun_interpret.ml | nicdard/languages-compilers-interpreters-2020 | 9486c58aadf42412517bfc05bd974e6770522a44 | [
"MIT"
] | null | null | null | src/06/ex1/fun_interpret.ml | nicdard/languages-compilers-interpreters-2020 | 9486c58aadf42412517bfc05bd974e6770522a44 | [
"MIT"
] | 1 | 2021-11-15T22:26:11.000Z | 2021-11-15T22:26:11.000Z | let (@) f g x = f (g x)
let interpret lexbuf =
try
let exp = Parser.main (Lexer.get_parser_token @ Lexer.scanner) lexbuf in
let _ = Fun.type_check exp in
let res = Fun.eval exp [] in
Printf.printf "%s\n%!" (Fun.string_of_value res);
with
| Lexer.Error s -> Printf.eprintf "%s\n%!" s
| Parser.Er... | 27.727273 | 76 | 0.614754 |
bc3aaa4b2637b7234ff684e35b400e5e12730c8f | 21,494 | ml | OCaml | src/proto_007_PsDELPH1/lib_protocol/roll_storage.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_007_PsDELPH1/lib_protocol/roll_storage.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_007_PsDELPH1/lib_protocol/roll_storage.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 36.307432 | 83 | 0.646646 |
440854037a22156543cf65540df965b970eae4f4 | 436 | ml | OCaml | Task/Non-decimal-radices-Input/Standard-ML/non-decimal-radices-input.ml | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Non-decimal-radices-Input/Standard-ML/non-decimal-radices-input.ml | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | null | null | null | Task/Non-decimal-radices-Input/Standard-ML/non-decimal-radices-input.ml | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | - Int.fromString "0123459";
val it = SOME 123459 : int option
- StringCvt.scanString (Int.scan StringCvt.HEX) "0xabcf123";
val it = SOME 180154659 : int option
- StringCvt.scanString (Int.scan StringCvt.HEX) "abcf123";
val it = SOME 180154659 : int option
- StringCvt.scanString (Int.scan StringCvt.OCT) "7651";
val it =... | 39.636364 | 60 | 0.738532 |
bc27b3302b804fea2d60bac43da2d7ddca21f25a | 11,044 | ml | OCaml | src/prover/lift_lambdas.ml | Guoyanzeng/zipperposition | cf8ea447d3c19946cfe5f9762deb1c9dcb1c3103 | [
"BSD-2-Clause"
] | 1 | 2021-12-04T02:49:56.000Z | 2021-12-04T02:49:56.000Z | src/prover/lift_lambdas.ml | Guoyanzeng/zipperposition | cf8ea447d3c19946cfe5f9762deb1c9dcb1c3103 | [
"BSD-2-Clause"
] | null | null | null | src/prover/lift_lambdas.ml | Guoyanzeng/zipperposition | cf8ea447d3c19946cfe5f9762deb1c9dcb1c3103 | [
"BSD-2-Clause"
] | null | null | null | open Logtk
module T = Term
let section = Util.Section.make ~parent:Const.section "live_lifting"
let k_live_lifting = Flex_state.create_key ()
let k_post_cnf_lifting = Flex_state.create_key ()
module type S = sig
module Env : Env.S
module C : module type of Env.C
(** {5 Registration} *)
val setup : unit -> u... | 38.615385 | 115 | 0.58774 |
448d33fb3070be617d5bd59b8f7c2bf3e4c3556c | 5,045 | ml | OCaml | src/report_error.ml | bobzhang/dune | 5d690c55085c036b72003f89daec5ad273311a9c | [
"MIT"
] | null | null | null | src/report_error.ml | bobzhang/dune | 5d690c55085c036b72003f89daec5ad273311a9c | [
"MIT"
] | 2 | 2018-01-12T08:41:59.000Z | 2020-12-30T21:57:31.000Z | src/report_error.ml | bobzhang/dune | 5d690c55085c036b72003f89daec5ad273311a9c | [
"MIT"
] | null | null | null | open! Stdune
open Import
type printer =
{ loc : Loc.t option
; pp : Format.formatter -> unit
; hint : string option
; backtrace : bool
}
let make_printer ?(backtrace=false) ?hint ?loc pp =
{ loc
; pp
; hint
; backtrace
}
let set_loc p ~loc =
{p with loc = Some loc}
let set_hi... | 31.141975 | 79 | 0.610505 |
bc227f7d0f16f27089433ccb19853ee5986de136 | 162 | ml | OCaml | data/derived/comb/progs/unify/prog5574.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/prog0688.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0688.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec wwhile (f,b) =
match f b with | (a,b) -> if not b then a else wwhile (f, a);;
let fixpoint (f,b) = wwhile ((let f2 x = f x in ((f x), (3 < 4))), b);;
| 27 | 71 | 0.518519 |
bc030577ce7a7273776baf6ecdb5822aa141ea78 | 632 | ml | OCaml | tests/benchmarks/r_type/array/a-split.ml | LinerSu/DART_IT | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 7 | 2020-06-12T09:32:16.000Z | 2020-10-05T09:04:07.000Z | tests/benchmarks/r_type/array/a-split.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | null | null | null | tests/benchmarks/r_type/array/a-split.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 2 | 2021-04-05T12:25:11.000Z | 2021-05-14T09:31:24.000Z |
let make_array (n:int) (i:int) = assert (0 <= i && i < n); 0
let update (i:int) (n:int) a (x:int) =
a i;
let ap j = assert (0 <= i && i < n); if i = j then x else a j in ap
let rec copy cai can cbi cbn (ca:int -> int) (cb:int -> int) =
if cai < can && cbi < cbn then
(let cbp = update cbi cbn cb (ca cai) in
... | 28.727273 | 70 | 0.528481 |
bc11214d8655724dbcb530ba9734e7e1950cda65 | 699 | ml | OCaml | data/derived/comb/progs/unify/prog5779.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/prog0904.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0904.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
if (List.length l1) > (List.length l2)
then (l1, ((clone 0 ((List.length l1) - (List.length l2))) @ l2))
else
if (List.length l1) < (List.length l2)
then (((clone 0 ((List.length l2) - (List.length l1))) @ l1), l2)
... | 31.772727 | 76 | 0.569385 |
44136bcd3a0aa437d326b83072347ed7e78048aa | 310 | ml | OCaml | test/unit/test_simple_cases.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | test/unit/test_simple_cases.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | test/unit/test_simple_cases.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | 1 | 2020-11-17T11:14:18.000Z | 2020-11-17T11:14:18.000Z | (* This file is part of Bisect_ppx, released under the MIT license. See
LICENSE.md for details, or visit
https://github.com/aantron/bisect_ppx/blob/master/LICENSE.md. *)
open Test_helpers
let tests =
compile_compare (fun () ->
(with_bisect_args " -simple-cases") ^ " -w +A-32-4") "simple-cases" | 28.181818 | 71 | 0.696774 |
443fcfec00d4ed4edc757b6ae2cfa18529c5dbd8 | 3,805 | ml | OCaml | lib/matchers/omega/parser.ml | abitrolly/comby | 7ba7a55f86521e9e32bb729097deeb1a7e1aa203 | [
"Apache-2.0"
] | null | null | null | lib/matchers/omega/parser.ml | abitrolly/comby | 7ba7a55f86521e9e32bb729097deeb1a7e1aa203 | [
"Apache-2.0"
] | null | null | null | lib/matchers/omega/parser.ml | abitrolly/comby | 7ba7a55f86521e9e32bb729097deeb1a7e1aa203 | [
"Apache-2.0"
] | null | null | null | open Core
open Angstrom
let (|>>) p f =
p >>= fun x -> return (f x)
let between left right p =
left *> p <* right
let zero =
fail ""
let cons x xs = x :: xs
let debug = true
let dont_use_any_char_except_parser p =
if debug then Format.printf "Entered@.";
let stop = ref false in
let set_stop v = stop ... | 26.985816 | 164 | 0.592641 |
bc3cb4338c89fd9356c9cd38a4ff90a35d4374cf | 12,064 | ml | OCaml | interpreter.ml | darkf/possum-ocaml | 22a24d9fef442469ace1dd5ce9d7e4892eee8723 | [
"MIT"
] | 1 | 2017-02-14T14:11:17.000Z | 2017-02-14T14:11:17.000Z | interpreter.ml | darkf/possum-ocaml | 22a24d9fef442469ace1dd5ce9d7e4892eee8723 | [
"MIT"
] | null | null | null | interpreter.ml | darkf/possum-ocaml | 22a24d9fef442469ace1dd5ce9d7e4892eee8723 | [
"MIT"
] | null | null | null | open Printf
open Util
open Types
(* global symbol table *)
let genv : env = newEnv None
let _puts = function
| [Str x] -> printf ": %s\n" x; Nil
| _ -> failwith "puts: not an str"
let _print = function
| [Str x] -> printf ": %s\n" x; Nil (* If it's just a string, don't repr it *)
| [x] -> printf ": %s\n" (repr_o... | 34.867052 | 118 | 0.605852 |
bc12b0882db14165f1d3fbc280d9f0f95b98a9fc | 2,751 | ml | OCaml | src/token.ml | erickoskinen/knotical | e3c87ded34aa4f2ff38622174d0b73e9ff160074 | [
"MIT"
] | 3 | 2019-07-08T20:08:28.000Z | 2020-10-09T20:17:36.000Z | src/token.ml | erickoskinen/knotical | e3c87ded34aa4f2ff38622174d0b73e9ff160074 | [
"MIT"
] | null | null | null | src/token.ml | erickoskinen/knotical | e3c87ded34aa4f2ff38622174d0b73e9ff160074 | [
"MIT"
] | 3 | 2019-07-19T22:08:21.000Z | 2021-05-05T18:56:51.000Z | open Camlp4.PreCast
type token =
| ID of string
| INT_LIT of int * string
| FLOAT_LIT of float * string
| STRING of string * string
| TRUE | FALSE
| NONDET
| LT | GT | LE | GE | EQ | EQEQ | NE | COLONEQ
| PLUS | MINUS | DIV | MULT | MOD
| PLUS_ASSIGN | MINUS_ASSIGN | DIV_ASSIGN | MULT_ASSIGN | MOD_AS... | 28.360825 | 73 | 0.522356 |
8ad47c9ef7e6ce410d18e233c252ad3f24348b60 | 3,816 | ml | OCaml | src/dune_engine/format_config.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 11 | 2020-07-14T13:57:02.000Z | 2020-09-05T23:50:25.000Z | src/dune_engine/format_config.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1 | 2020-07-27T17:35:13.000Z | 2020-09-21T11:17:06.000Z | src/dune_engine/format_config.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1 | 2020-11-25T12:01:04.000Z | 2020-11-25T12:01:04.000Z | open! Stdune
open Import
open Dune_lang.Decoder
let syntax =
Dune_lang.Syntax.create ~name:"fmt"
~desc:"integration with automatic formatters"
[ ((1, 0), `Since (1, 4))
; ((1, 1), `Since (1, 7))
; ((1, 2), `Since (1, 11))
]
module Language = struct
type t =
| Dialect of string
| Dune
... | 25.610738 | 80 | 0.644392 |
8a4c42acc8a8faa81831d6c2dce29efe084cff6b | 1,192 | ml | OCaml | src/05/5_mutable_record_fields/Examples05_5.ml | WhatIfWeDigDeeper/ocaml-fun-mooc | 615151316216a4fa255dce919a0ddf2844bb86d6 | [
"MIT"
] | 2 | 2018-12-29T17:00:46.000Z | 2021-12-30T14:35:46.000Z | src/05/5_mutable_record_fields/Examples05_5.ml | WhatIfWeDigDeeper/ocaml-fun-mooc | 615151316216a4fa255dce919a0ddf2844bb86d6 | [
"MIT"
] | null | null | null | src/05/5_mutable_record_fields/Examples05_5.ml | WhatIfWeDigDeeper/ocaml-fun-mooc | 615151316216a4fa255dce919a0ddf2844bb86d6 | [
"MIT"
] | 1 | 2019-12-09T14:27:47.000Z | 2019-12-09T14:27:47.000Z | (* recordReview.ml
https://www.fun-mooc.fr/asset-v1:parisdiderot+56002+session03+type@asset+block/recordreview.ml
*)
(* 2D points *)
type point2D = { x : int; y : int };;
let origin = { x = 0; y = 0 };;
(* create a new point at offset of given one *)
let offset_h p dx = {p with x=p.x+dx};;
let offset_v p dy = {p with... | 24.833333 | 95 | 0.629195 |
44239e38feecd9699501e8f7bcaf06090fe2d5d9 | 446 | ml | OCaml | facebook-clang-plugins/clang-ocaml/clang_ast_types.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | facebook-clang-plugins/clang-ocaml/clang_ast_types.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | facebook-clang-plugins/clang-ocaml/clang_ast_types.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 2,225 | 2015-06-11T16:36:10.000Z | 2022-03-31T05:16:59.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(* Type pointers *)
module TypePtr = struct
(* extensible type to allow users to specify more variants *)
type t = ..
type t ... | 24.777778 | 84 | 0.67713 |
bc02d3fa24fef04bfa961409b52b66e58dcb7319 | 5,685 | ml | OCaml | hphp/hack/test/full_fidelity/full_fidelity_unit_test.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/full_fidelity/full_fidelity_unit_test.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/full_fidelity/full_fidelity_unit_test.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* 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 Source... | 27.731707 | 80 | 0.703254 |
44c81c0a93b6e5cd91928376b404d6e97d606994 | 3,538 | ml | OCaml | vendor/parse-wyc/lib/parse_wyc.ml | bcc32/ocamlformat | 82f23ca353a3780cc67c9d4878c9b4b8ce458c50 | [
"MIT"
] | null | null | null | vendor/parse-wyc/lib/parse_wyc.ml | bcc32/ocamlformat | 82f23ca353a3780cc67c9d4878c9b4b8ce458c50 | [
"MIT"
] | null | null | null | vendor/parse-wyc/lib/parse_wyc.ml | bcc32/ocamlformat | 82f23ca353a3780cc67c9d4878c9b4b8ce458c50 | [
"MIT"
] | null | null | null | module P = Parser
module I = P.MenhirInterpreter
module R =
Merlin_recovery.Make
(I)
(struct
include Parser_recover
let default_value loc x =
Default.default_loc := loc;
default_value x
let guide _ = false
end)
type 'a positioned = 'a * Lexing.position * Lexing.positi... | 27.858268 | 77 | 0.639062 |
bc260f6149b696351528ca4a0cfc2af304cb81bc | 15,421 | mli | OCaml | hack_parallel/hack_parallel.mli | rvantonder/pyre-check-1 | 600ec9656ece5fff21598f4248c55089714bf590 | [
"MIT"
] | null | null | null | hack_parallel/hack_parallel.mli | rvantonder/pyre-check-1 | 600ec9656ece5fff21598f4248c55089714bf590 | [
"MIT"
] | null | null | null | hack_parallel/hack_parallel.mli | rvantonder/pyre-check-1 | 600ec9656ece5fff21598f4248c55089714bf590 | [
"MIT"
] | null | null | null | module Std : sig
module Bucket : sig
(* The general protocol for a next function is to return either Wait (indicating
that workers should wait until more elements are added to the workload), or
Job of a bucket, or Done to indicate there is no more work. *)
type 'a bucket =
| Job of 'a
... | 34.268889 | 84 | 0.524739 |
44a0b06386be1f4ca713ea37f96258600ec6fb1f | 2,252 | ml | OCaml | src/smtexpression.ml | jvillard/llStar | 5b2974bf19671d4efbcefc8f2107bce067389740 | [
"BSD-3-Clause"
] | null | null | null | src/smtexpression.ml | jvillard/llStar | 5b2974bf19671d4efbcefc8f2107bce067389740 | [
"BSD-3-Clause"
] | null | null | null | src/smtexpression.ml | jvillard/llStar | 5b2974bf19671d4efbcefc8f2107bce067389740 | [
"BSD-3-Clause"
] | null | null | null | (*** Smtexpression: from LLVM datatypes to SMT-LIB ones *)
open Format
(* LLVM modules *)
open Llvm
open Llvm_target.DataLayout
open TypeKind
(* coreStar modules *)
open Smt
open Smtsyntax
(* llStar modules *)
open Llutils
let rec sexp_of_lltype t = match (classify_type t) with
| Void
| Float
| Half
| Double... | 31.71831 | 81 | 0.69849 |
44ca32d4482f87465142048c5a94a00def3640e6 | 139,772 | ml | OCaml | hphp/hack/src/typing/typing_subtype.ml | 2BitSalute/hhvm | da549f6612ca8531398a24c44dfc1027707da633 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_subtype.ml | 2BitSalute/hhvm | da549f6612ca8531398a24c44dfc1027707da633 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_subtype.ml | 2BitSalute/hhvm | da549f6612ca8531398a24c44dfc1027707da633 | [
"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 Common
open Utils
open Typing_defs
open Typing_env_types
open Typing_logic_helpers
module Reaso... | 35.958837 | 131 | 0.593195 |
bc20818d9182b69660940558515f3b6c24f52ba9 | 1,544 | ml | OCaml | src/mcl_tokens.ml | AMSUN-Berlin/mcl | 035614fbd2b19ee84ae1f535f60474b717a9b533 | [
"BSD-3-Clause"
] | 2 | 2016-06-19T16:23:42.000Z | 2016-06-19T18:19:07.000Z | src/mcl_tokens.ml | AMSUN-Berlin/mcl | 035614fbd2b19ee84ae1f535f60474b717a9b533 | [
"BSD-3-Clause"
] | null | null | null | src/mcl_tokens.ml | AMSUN-Berlin/mcl | 035614fbd2b19ee84ae1f535f60474b717a9b533 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2014, TU Berlin
* 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... | 55.142857 | 82 | 0.76101 |
44af4f2bc6a10b5ee15a1145d32c0f4a96a71551 | 375 | ml | OCaml | vendor/ocamlformat-stdlib/ocamlformat_stdlib.ml | pmwhite/ocamlformat | 717e7edd5e578e0c0626b23308c3efb60d6822bf | [
"MIT"
] | null | null | null | vendor/ocamlformat-stdlib/ocamlformat_stdlib.ml | pmwhite/ocamlformat | 717e7edd5e578e0c0626b23308c3efb60d6822bf | [
"MIT"
] | null | null | null | vendor/ocamlformat-stdlib/ocamlformat_stdlib.ml | pmwhite/ocamlformat | 717e7edd5e578e0c0626b23308c3efb60d6822bf | [
"MIT"
] | null | null | null | include Base
include Stdio
module Cmdliner = Cmdliner_ext
module Fpath = Fpath_ext
module List = List_ext
module String = String_ext
module Warning = Warning
module Format = Caml.Format
module Filename = Caml.Filename
module Parser = Token_latest
let ( >> ) f g x = g (f x)
let impossible msg = failwith msg
let chec... | 17.045455 | 33 | 0.709333 |
447b2fbf1df4df8fac06b14c402e20f14e196f63 | 61,600 | ml | OCaml | sledge/cli/frontend.ml | krArrow/infer | ae3f1d79c9cec09242239360e459c077bc54a8aa | [
"MIT"
] | 1 | 2020-08-28T14:00:56.000Z | 2020-08-28T14:00:56.000Z | sledge/bin/frontend.ml | asadrockk1234/infer | 06489dced05bd0e7d19015c0375721885d6f2c1c | [
"MIT"
] | null | null | null | sledge/bin/frontend.ml | asadrockk1234/infer | 06489dced05bd0e7d19015c0375721885d6f2c1c | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** Translate LLVM to LLAIR *)
open Llair
let pp_lltype fs t = Format.pp_print_string fs (Llvm.string_of_lltype t)
(* WARNING: S... | 38.938053 | 78 | 0.591282 |
8ae51ff607b9a23ed721221f85bd8d3bdfde98e8 | 866 | mli | OCaml | test/negative/t25.mli | n-osborne/gospel | 0e89b4a85620a1ae4164c313b9c5790cfc885db4 | [
"MIT"
] | 42 | 2020-11-20T17:18:32.000Z | 2022-01-17T23:22:55.000Z | test/negative/t25.mli | n-osborne/gospel | 0e89b4a85620a1ae4164c313b9c5790cfc885db4 | [
"MIT"
] | 63 | 2020-11-23T13:12:17.000Z | 2022-03-31T13:53:17.000Z | test/negative/t25.mli | christinerose/gospel | 798464c971008bdb6b4ca28ef57299c9848d4d49 | [
"MIT"
] | 7 | 2020-11-23T01:42:06.000Z | 2022-03-17T13:23:53.000Z | (**************************************************************************)
(* *)
(* GOSPEL -- A Specification Language for OCaml *)
(* *)
(* Copyrigh... | 48.111111 | 76 | 0.275982 |
44b5e531261f89d53c7a94857da6ec545d4bf89c | 1,960 | ml | OCaml | vendor/core/test/src/test_thread.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/core/test/src/test_thread.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/core/test/src/test_thread.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open! Core
open! Async
open! Import
open! Expect_test_helpers_core
open! Expect_test_helpers_async
let%expect_test "[sexp_of_t]" =
let t = Thread.create ignore () ~on_uncaught_exn:`Print_to_stderr in
print_s [%sexp (t : Thread.t)];
(* We expect thread id [2] to be deterministically printed because we inline test... | 27.605634 | 93 | 0.67449 |
afff9209d260a8e98ee5a07767b8113ff8045724 | 3,553 | mli | OCaml | test_native/_opam/lib/ocaml/queue.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 1 | 2020-09-24T05:03:32.000Z | 2020-09-24T05:03:32.000Z | test_native/_opam/lib/ocaml/queue.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | test_native/_opam/lib/ocaml/queue.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 35.53 | 79 | 0.505488 |
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.