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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1795164db1f521c80ff252bdb737e5d05cf6c34b | 265 | mli | OCaml | libraries/ec2/lib/describeVpcEndpointServicePermissions.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/describeVpcEndpointServicePermissions.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/ec2/lib/describeVpcEndpointServicePermissions.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = DescribeVpcEndpointServicePermissionsRequest.t
type output = DescribeVpcEndpointServicePermissionsResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 37.857143 | 74 | 0.792453 |
17d51db5dd90ec25941dd876f3d6b97cc8a2f3ba | 780 | mli | OCaml | compiler/libqmlcompil/typer_w/w_OpenRecordDirective.mli | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 643 | 2015-01-02T23:57:37.000Z | 2022-03-18T18:50:24.000Z | compiler/libqmlcompil/typer_w/w_OpenRecordDirective.mli | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 52 | 2015-01-17T07:26:16.000Z | 2021-03-08T14:16:08.000Z | compiler/libqmlcompil/typer_w/w_OpenRecordDirective.mli | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 58 | 2015-01-02T23:57:42.000Z | 2022-03-02T12:44:42.000Z | (*
Copyright © 2011 MLstate
This file is part of Opa.
Opa is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License, version 3, as published by
the Free Software Foundation.
Opa is distributed in the hope that it will be useful, but WI... | 37.142857 | 78 | 0.748718 |
1783b4d06861bd357dc7431479707837f8fb8aa0 | 1,953 | mli | OCaml | lib/libmythtvguide.mli | spencerwi/mythtv-guide | ee852b7faca85817aa9afaa3dc4f21e2a8ceda7e | [
"MIT"
] | null | null | null | lib/libmythtvguide.mli | spencerwi/mythtv-guide | ee852b7faca85817aa9afaa3dc4f21e2a8ceda7e | [
"MIT"
] | null | null | null | lib/libmythtvguide.mli | spencerwi/mythtv-guide | ee852b7faca85817aa9afaa3dc4f21e2a8ceda7e | [
"MIT"
] | null | null | null | type program_recording_preferences = {
status: string ;
priority: string ;
startTs: string ;
endTs: string ;
recordId: string ;
recGroup: string ;
playGroup: string ;
recType: string ;
dupInType: string ;
dupMethod: string ;
encoderId: string ;
profile: string ;
}
val pr... | 32.55 | 186 | 0.71787 |
17783bc2a72131a2201d2730c8dfc4ac08f97c29 | 2,129 | ml | OCaml | src/misc/LeapFile.ml | imdea-software/leap | 5f946163c0f80ff9162db605a75b7ce2e27926ef | [
"Apache-2.0"
] | 7 | 2016-08-31T19:50:12.000Z | 2019-01-21T04:51:07.000Z | src/misc/LeapFile.ml | imdea-software/leap | 5f946163c0f80ff9162db605a75b7ce2e27926ef | [
"Apache-2.0"
] | null | null | null | src/misc/LeapFile.ml | imdea-software/leap | 5f946163c0f80ff9162db605a75b7ce2e27926ef | [
"Apache-2.0"
] | null | null | null |
(***********************************************************************)
(* *)
(* LEAP *)
(* *)
(* Alejan... | 48.386364 | 73 | 0.357915 |
aa0e5e203ac760bde19cf1edf0de079a853b9257 | 20,599 | ml | OCaml | src/ast/analyzing/common/delta_common.ml | petr-bauch/cca | 6011c602e1184fff4fc9a9b880cb59a070746929 | [
"Apache-2.0"
] | null | null | null | src/ast/analyzing/common/delta_common.ml | petr-bauch/cca | 6011c602e1184fff4fc9a9b880cb59a070746929 | [
"Apache-2.0"
] | null | null | null | src/ast/analyzing/common/delta_common.ml | petr-bauch/cca | 6011c602e1184fff4fc9a9b880cb59a070746929 | [
"Apache-2.0"
] | null | null | null | (*
Copyright 2012-2020 Codinuum Software Lab <https://codinuum.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required... | 27.686828 | 90 | 0.482888 |
17f5de0f609924e89b5159e7d039d5bc922252f0 | 6,596 | ml | OCaml | src/lib_info.ml | exced/dune | 559c3f0cb770f08a0a4f4bddd6c9a16eea86caf9 | [
"MIT"
] | null | null | null | src/lib_info.ml | exced/dune | 559c3f0cb770f08a0a4f4bddd6c9a16eea86caf9 | [
"MIT"
] | null | null | null | src/lib_info.ml | exced/dune | 559c3f0cb770f08a0a4f4bddd6c9a16eea86caf9 | [
"MIT"
] | null | null | null | open Stdune
module Status = struct
type t =
| Installed
| Public of Package.t
| Private of Dune_project.Name.t
let pp ppf t =
Format.pp_print_string ppf
(match t with
| Installed -> "installed"
| Public _ -> "public"
| Private name ->
sprintf "private (%s)" (Du... | 29.057269 | 75 | 0.617799 |
17da619afa26a709f31cf10a5b864c2a95a7a4c9 | 2,086 | ml | OCaml | hphp/hack/src/hhbc/hhas_attribute.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/hhas_attribute.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/hhas_attribute.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"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
type t = {
attribute_name : string;
attribute_arguments : Typed_value.t list
}
le... | 31.134328 | 79 | 0.763183 |
17850242c966aef940c90d8e18f380c4976d2591 | 1,274 | mli | OCaml | hphp/hack/src/utils/file_pos_large.mli | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-07-15T20:48:46.000Z | 2019-07-15T20:48:46.000Z | hphp/hack/src/utils/file_pos_large.mli | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/file_pos_large.mli | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"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.
*
*)
(* This `.mli` file was generated automatically. It may include extra
definitions that should not actually be expose... | 21.59322 | 76 | 0.680534 |
aab6aa7dc6c00104c2743abc7ce4839b73547edc | 1,000 | ml | OCaml | lib/bootvar.ml | mirage/mirage-bootvar-unix | 1cd8e5ef1c223f971a952fa45d9de0c12e7927ad | [
"0BSD"
] | 3 | 2018-10-09T12:16:56.000Z | 2021-04-06T02:30:45.000Z | lib/bootvar.ml | mirage/mirage-bootvar-unix | 1cd8e5ef1c223f971a952fa45d9de0c12e7927ad | [
"0BSD"
] | 1 | 2022-02-01T21:14:05.000Z | 2022-02-01T21:14:05.000Z | lib/bootvar.ml | mirage/mirage-bootvar-unix | 1cd8e5ef1c223f971a952fa45d9de0c12e7927ad | [
"0BSD"
] | 2 | 2019-10-11T12:12:30.000Z | 2020-08-16T21:47:12.000Z | (*
* Copyright (c) 2018 Hannes Mehnert <hannes@mehnert.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 43.478261 | 76 | 0.737 |
cd11c8bde47004dacac40670d36e1d6e3ec3d8cd | 14,819 | ml | OCaml | src/monitor/serverStatus.ml | technology-studio-forks/flow | 5adcafcd2bc175b1b49535f980ca509244847602 | [
"MIT"
] | 1 | 2018-12-18T19:19:16.000Z | 2018-12-18T19:19:16.000Z | src/monitor/serverStatus.ml | technology-studio-forks/flow | 5adcafcd2bc175b1b49535f980ca509244847602 | [
"MIT"
] | null | null | null | src/monitor/serverStatus.ml | technology-studio-forks/flow | 5adcafcd2bc175b1b49535f980ca509244847602 | [
"MIT"
] | null | null | null | (**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(* This module tries to model the Flow server's status as a state machine. The current status is
* the state, and it gets updated by ev... | 39.100264 | 100 | 0.72731 |
176e20fdb2d29de08acbfd8541fa68dc8504db86 | 2,934 | mli | OCaml | src/typing/type_table.mli | disnet/flow | f916c6d4300220fda951d123b85b8f05a75a3427 | [
"MIT"
] | null | null | null | src/typing/type_table.mli | disnet/flow | f916c6d4300220fda951d123b85b8f05a75a3427 | [
"MIT"
] | null | null | null | src/typing/type_table.mli | disnet/flow | f916c6d4300220fda951d123b85b8f05a75a3427 | [
"MIT"
] | 2 | 2021-02-02T14:51:26.000Z | 2021-02-02T14:52:05.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.
*)
type id_kind =
| PropertyAccess of Type.t (* receiver type *)
| Import of string (* remote name *) * Type.t (* module type *)
| Ot... | 44.454545 | 100 | 0.706885 |
cd189d06ee3d6fd40786e802ae9fc81c97cc5690 | 31,224 | ml | OCaml | hphp/hack/src/deps/typing_deps.ml | cobbles/hhvm | 583f879c7e1be697b1695a4506dd2f7171b921d0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/deps/typing_deps.ml | cobbles/hhvm | 583f879c7e1be697b1695a4506dd2f7171b921d0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/deps/typing_deps.ml | cobbles/hhvm | 583f879c7e1be697b1695a4506dd2f7171b921d0 | [
"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
module Set = Stdlib.Set
module Format = Stdlib.Format
module Hashtbl = Stdlib.Hashtbl
module Mode = ... | 32.661088 | 86 | 0.661222 |
1724d51ca21cf4792cfeefcab32c4e31d14de98b | 1,304 | ml | OCaml | benchmarks/multicore-numerical/quicksort_multicore.ml | Abdulrahim2567/sandmark | a0557009ca0f4200f5288ca80fce24142f835098 | [
"Unlicense"
] | 48 | 2019-07-24T13:03:03.000Z | 2022-01-25T21:02:32.000Z | benchmarks/multicore-numerical/quicksort_multicore.ml | Abdulrahim2567/sandmark | a0557009ca0f4200f5288ca80fce24142f835098 | [
"Unlicense"
] | 196 | 2019-06-11T10:44:20.000Z | 2022-03-31T17:25:31.000Z | benchmarks/multicore-numerical/quicksort_multicore.ml | Abdulrahim2567/sandmark | a0557009ca0f4200f5288ca80fce24142f835098 | [
"Unlicense"
] | 25 | 2019-06-13T13:40:51.000Z | 2022-03-29T17:18:57.000Z | module T = Domainslib.Task
let num_domains = try int_of_string Sys.argv.(1) with _ -> 1
let n = try int_of_string Sys.argv.(2) with _ -> 2000
let swap arr i j =
let temp = arr.(i) in
arr.(i) <- arr.(j);
arr.(j) <- temp
let partition arr low high =
let x = arr.(high) and i = ref (low-1) in
if (high-low > 0... | 26.08 | 76 | 0.568252 |
bcfa48bb9dc9b1efd309643a43e6eb16958aecde | 19,828 | ml | OCaml | src/lib/coda_transition/external_transition_intf.ml | fakecoinbase/CodaProtocolslashcoda | 12522986fd93008c06665bd3bea5627eac95652d | [
"Apache-2.0"
] | 2 | 2020-11-14T20:16:02.000Z | 2021-08-19T12:44:52.000Z | src/lib/coda_transition/external_transition_intf.ml | fakecoinbase/CodaProtocolslashcoda | 12522986fd93008c06665bd3bea5627eac95652d | [
"Apache-2.0"
] | 11 | 2021-09-02T10:10:36.000Z | 2022-02-27T08:56:41.000Z | src/lib/coda_transition/external_transition_intf.ml | fakecoinbase/CodaProtocolslashcoda | 12522986fd93008c06665bd3bea5627eac95652d | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Async_kernel
open Coda_base
open Coda_state
open Signature_lib
module type External_transition_common_intf = sig
type t
type protocol_version_status =
{valid_current: bool; valid_next: bool; matches_daemon: bool}
val protocol_version_status : t -> protocol_version_status
val protoc... | 30.884735 | 122 | 0.640408 |
cd0c327ce4b7b9ce33371fd53edec091adfd8bb3 | 3,556 | ml | OCaml | src/lib_base/p2p_stat.ml | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | src/lib_base/p2p_stat.ml | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | src/lib_base/p2p_stat.ml | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | 1 | 2021-06-04T09:31:48.000Z | 2021-06-04T09:31:48.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 43.901235 | 79 | 0.556243 |
17bd9d9279ad946c34127459299e2d2888e3f15d | 1,344 | ml | OCaml | lib/binable.ml | vnarek/jude | b1e9387d0242cd83b3b72695bce267c970de1857 | [
"MIT"
] | 6 | 2020-06-14T00:43:31.000Z | 2021-07-28T12:25:07.000Z | lib/binable.ml | vnarek/jude | b1e9387d0242cd83b3b72695bce267c970de1857 | [
"MIT"
] | null | null | null | lib/binable.ml | vnarek/jude | b1e9387d0242cd83b3b72695bce267c970de1857 | [
"MIT"
] | 2 | 2021-05-01T02:35:25.000Z | 2021-07-28T12:25:09.000Z | type 'a m = (module Bin_prot.Binable.S with type t = 'a)
let hash_length = 8
let eval_to_digest_string shape =
let digest =
Bin_prot.Shape.eval_to_digest shape
|> Bin_prot.Shape.Digest.to_md5 |> Md5_lib.to_binary
in
String.sub digest 0 hash_length
let to_bytes (type a) ((module Bin) : a m) msg =
let ... | 33.6 | 71 | 0.697917 |
cd2e573dc11afb400da5525619dab155c9c365d4 | 540 | mli | OCaml | src/phl/ecPhlWp.mli | oskgo/easycrypt | 38c4947433b1a42896540edfa534f76502fc8f92 | [
"MIT"
] | null | null | null | src/phl/ecPhlWp.mli | oskgo/easycrypt | 38c4947433b1a42896540edfa534f76502fc8f92 | [
"MIT"
] | null | null | null | src/phl/ecPhlWp.mli | oskgo/easycrypt | 38c4947433b1a42896540edfa534f76502fc8f92 | [
"MIT"
] | null | null | null | (* -------------------------------------------------------------------- *)
open EcParsetree
open EcCoreGoal.FApi
(* -------------------------------------------------------------------- *)
(* Please, note that WP only operates over assignments and conditional
* statements. Any weakening of this restriction may brea... | 30 | 74 | 0.537037 |
179d429e2b27159612116412b96979d66eebfd92 | 10 | ml | OCaml | test/mod-use/with_mli.ml | b0-system/b0caml | 38d212b61a8080fd8177ab8604c00ec4f5fa599e | [
"0BSD"
] | 15 | 2019-10-02T20:16:46.000Z | 2021-11-04T10:04:54.000Z | test/mod-use/with_mli.ml | b0-system/b0caml | 38d212b61a8080fd8177ab8604c00ec4f5fa599e | [
"0BSD"
] | null | null | null | test/mod-use/with_mli.ml | b0-system/b0caml | 38d212b61a8080fd8177ab8604c00ec4f5fa599e | [
"0BSD"
] | null | null | null | let x = 3
| 5 | 9 | 0.5 |
cd291a5a48aed1f7969a79ba9dae9eda6db4a11a | 15,487 | ml | OCaml | lib/bitvec/bitvec.ml | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | 1 | 2021-11-29T09:34:41.000Z | 2021-11-29T09:34:41.000Z | lib/bitvec/bitvec.ml | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | null | null | null | lib/bitvec/bitvec.ml | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | null | null | null | type t = Z.t
(* Invariant: a bitvector is always normed.
A normed bitvector is always treated by Z as non-negative:
- Z.sign (norm w x) >= 0
We have to enforce this invariant since in Z negative numbers are
not equal to their two complement forms, in other words,
Z.(-1 != 0xFFFFF..FF).
This makes ... | 28.786245 | 70 | 0.598179 |
17e78af3c6d050afdb4ee4782fa0192af4f9d512 | 323 | ml | OCaml | loop.ml | kayceesrk/effects-examples | 0094c7b759c5af2f26f7b1d0a09e11fe33492c70 | [
"ISC"
] | 164 | 2016-11-16T23:27:11.000Z | 2020-04-02T16:49:10.000Z | loop.ml | kayceesrk/effects-examples | 0094c7b759c5af2f26f7b1d0a09e11fe33492c70 | [
"ISC"
] | 8 | 2016-11-06T12:07:32.000Z | 2019-02-14T10:07:40.000Z | loop.ml | kayceesrk/effects-examples | 0094c7b759c5af2f26f7b1d0a09e11fe33492c70 | [
"ISC"
] | 8 | 2016-11-16T14:22:06.000Z | 2019-06-22T17:46:20.000Z | open Effect
open Effect.Deep
type _ Effect.t += Foo : (unit -> 'a) Effect.t
let f () = perform Foo ()
let res : type a. a =
try_with f () {
effc = fun (type a) (e : a Effect.t) ->
match e with
| Foo -> Some (fun (k : (a, _) continuation) -> continue k (fun () -> perform Foo ()))
| _ -> None
... | 21.533333 | 92 | 0.52322 |
aa8972806f3106a07b1ceb04f6a02035029a92cc | 728 | ml | OCaml | utils/generate_hash_to_curve_vectors.ml | ManasJayanth/ocaml-bls12-381 | 44078fbb9961b4e6711876fca72624d183d04933 | [
"MIT"
] | null | null | null | utils/generate_hash_to_curve_vectors.ml | ManasJayanth/ocaml-bls12-381 | 44078fbb9961b4e6711876fca72624d183d04933 | [
"MIT"
] | 6 | 2021-06-25T19:38:26.000Z | 2022-03-14T16:40:21.000Z | utils/generate_hash_to_curve_vectors.ml | ManasJayanth/ocaml-bls12-381 | 44078fbb9961b4e6711876fca72624d183d04933 | [
"MIT"
] | 2 | 2021-12-02T07:42:23.000Z | 2022-02-28T09:20:31.000Z | let () = Random.self_init ()
let () =
let size_dst = 1 + Random.int 48 in
let msg_dst = 1 + Random.int 512 in
let dst = Bytes.init size_dst (fun _i -> char_of_int @@ Random.int 256) in
let msg = Bytes.init msg_dst (fun _i -> char_of_int @@ Random.int 256) in
let output_g1 = Bls12_381.G1.hash_to_curve msg dst... | 40.444444 | 76 | 0.675824 |
aa66a9626ec79e59d3eea3671ebdb9f3f77c55e9 | 80,879 | ml | OCaml | src/services/inference/types_js.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | null | null | null | src/services/inference/types_js.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | null | null | null | src/services/inference/types_js.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(* This module drives the type checker *)
open Utils_js
(****************** typecheck job helpers *********************)
let cl... | 42.036902 | 125 | 0.715513 |
173fdb5eff5c9fb82ffdc3d573f5911742c462ff | 924 | mli | OCaml | src/lib/hash_prefix_states/hash_prefix_states.mli | nireno/coda | 40c1957c788a021c7bc25cf1e0b8ea8d5770d2d9 | [
"Apache-2.0"
] | null | null | null | src/lib/hash_prefix_states/hash_prefix_states.mli | nireno/coda | 40c1957c788a021c7bc25cf1e0b8ea8d5770d2d9 | [
"Apache-2.0"
] | null | null | null | src/lib/hash_prefix_states/hash_prefix_states.mli | nireno/coda | 40c1957c788a021c7bc25cf1e0b8ea8d5770d2d9 | [
"Apache-2.0"
] | null | null | null | open Snark_params
module Random_oracle : sig
open Tick
open Random_oracle
val signature : Field.t State.t
val merkle_tree : Field.t State.t array
val coinbase_merkle_tree : Field.t State.t array
val vrf_message : Field.t State.t
val vrf_output : Field.t State.t
val epoch_seed : Field.t State.t
... | 19.659574 | 53 | 0.768398 |
17edac5f85f642fe45e859042f2f4904e7159b0e | 3,395 | ml | OCaml | src/day14.ml | matej23/Advent_of_code_2021 | b0f7d82b28aaa9d8250ef762c10ddb3ab7bfac5b | [
"MIT"
] | null | null | null | src/day14.ml | matej23/Advent_of_code_2021 | b0f7d82b28aaa9d8250ef762c10ddb3ab7bfac5b | [
"MIT"
] | null | null | null | src/day14.ml | matej23/Advent_of_code_2021 | b0f7d82b28aaa9d8250ef762c10ddb3ab7bfac5b | [
"MIT"
] | null | null | null | let text lst =
List.nth lst 0
let slovar lst = match lst with
|x :: y :: xs -> xs
|_ -> failwith "neki je narobe"
let split_string_in_list str = match (String.split_on_char ' ' (String.trim str)) with
|[a;_;b] -> [a;b]
|_-> failwith "error"
let split_on_all lst =
List.map split_string_in_list lst
(*split ... | 36.117021 | 124 | 0.657437 |
cd2624174a7eb684c74afb7c579b30e706aa32ee | 343 | ml | OCaml | tests/test-dirs/outline.t/foo.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 1,031 | 2016-12-16T19:17:17.000Z | 2022-03-24T06:30:52.000Z | tests/test-dirs/outline.t/foo.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 754 | 2016-12-16T14:01:33.000Z | 2022-03-31T13:21:16.000Z | tests/test-dirs/outline.t/foo.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 177 | 2017-01-04T17:35:53.000Z | 2022-02-18T02:54:14.000Z | module Bar = struct
type t = int
module type S1 = sig
type t
val foo : t -> int
end
end
class type class_type_a = object
method a : int -> int
end
class class_b = object
method b s = s ^ s
end
exception Ex of char
type ('a, 'b) eithery =
| Lefty of 'a
| Righty of 'b
type 'a point =
{ x : 'a
;... | 11.827586 | 32 | 0.571429 |
cd0f9bb44ed870f6760332d233c0e16f32ebea93 | 646 | ml | OCaml | ocaml/basic_of_programming/tsuru_no_ashi.ml | idkjs/til | eee606856ed11d57e96060f62adf0dd072f8bff1 | [
"WTFPL"
] | 2 | 2020-05-11T13:43:27.000Z | 2020-07-31T11:57:19.000Z | ocaml/basic_of_programming/tsuru_no_ashi.ml | idkjs/til | eee606856ed11d57e96060f62adf0dd072f8bff1 | [
"WTFPL"
] | 2 | 2020-09-27T02:35:38.000Z | 2021-03-08T08:33:02.000Z | ocaml/basic_of_programming/tsuru_no_ashi.ml | idkjs/til | eee606856ed11d57e96060f62adf0dd072f8bff1 | [
"WTFPL"
] | 1 | 2020-05-11T13:44:04.000Z | 2020-05-11T13:44:04.000Z | (* 鶴の数を取り、鶴の足の数を返す *)
(* int -> int *)
let tsuru_no_ashi x =
x * 2
;;
(* int -> int *)
let kame_no_ashi x =
x * 4
;;
(* int -> int -> int *)
let tsurukame_no_ashi tsuru kame =
tsuru_no_ashi tsuru + kame_no_ashi kame
;;
(* int -> (int * int) *)
let tsurukame x y =
let rec iter tsuru kame =
if tsuru * 2 + ... | 18.457143 | 42 | 0.595975 |
176aa4f31528b135769046a9a6c9007e5d01b1ab | 79 | ml | OCaml | data/derived/comb/progs/unify/prog3289.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/prog3289.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3289.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let pipe fs = let f a x c = a in let base b = b in List.fold_left f base fs;;
| 26.333333 | 77 | 0.632911 |
17f72ac6d6996456e248495c8944e7c06dba1efa | 373 | mli | OCaml | infer/src/backend/Issue.mli | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"MIT"
] | 1 | 2019-09-11T13:16:25.000Z | 2019-09-11T13:16:25.000Z | infer/src/backend/Issue.mli | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"MIT"
] | null | null | null | infer/src/backend/Issue.mli | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"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
type t =
{ proc_name: Typ.Procname.t
; proc_location: Location.t
; err_key: Errlog.err_key
; err_data: Errlog.e... | 21.941176 | 66 | 0.705094 |
175d205a92a40c06d73cceb3c65314ba0b4f0a74 | 8,896 | ml | OCaml | src/typing/ty_members.ml | justingrant/flow | f9afdbc9c5971c2517ce96c64d996325cd6e6405 | [
"MIT"
] | null | null | null | src/typing/ty_members.ml | justingrant/flow | f9afdbc9c5971c2517ce96c64d996325cd6e6405 | [
"MIT"
] | null | null | null | src/typing/ty_members.ml | justingrant/flow | f9afdbc9c5971c2517ce96c64d996325cd6e6405 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
type 'a member_info = {
ty: 'a;
def_loc: ALoc.t option;
from_proto: bool;
(** Autocomplete ranks members from primitive... | 38.017094 | 106 | 0.58442 |
17ae6fde78ae07dd69783a2c157ba8beb389c148 | 1,714 | mli | OCaml | src/parser_utils/output/js_layout_generator.mli | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"MIT"
] | 1 | 2021-03-12T10:46:28.000Z | 2021-03-12T10:46:28.000Z | src/parser_utils/output/js_layout_generator.mli | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"MIT"
] | null | null | null | src/parser_utils/output/js_layout_generator.mli | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"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.
*)
module LocMap = Utils_js.LocMap
type expression_context = {
left: expression_context_left;
group: expression_context_group;
}
and e... | 29.050847 | 88 | 0.765461 |
17efa27ff0bf6f22da0a8bba4cdde6ccf206f967 | 21,861 | ml | OCaml | otherlibs/dune-rpc/private/dune_rpc_private.ml | CallumMoseley/dune | f3564db95e776f94d3cfcbb1f529f28c8c3b1197 | [
"MIT"
] | null | null | null | otherlibs/dune-rpc/private/dune_rpc_private.ml | CallumMoseley/dune | f3564db95e776f94d3cfcbb1f529f28c8c3b1197 | [
"MIT"
] | null | null | null | otherlibs/dune-rpc/private/dune_rpc_private.ml | CallumMoseley/dune | f3564db95e776f94d3cfcbb1f529f28c8c3b1197 | [
"MIT"
] | null | null | null | open Import
module Conv = Conv
module Versioned = Versioned
module Menu = Menu
module Procedures = Procedures
module Where = Where
module Registry = Registry
include Types
include Exported_types
module Version_error = Versioned.Version_error
module Decl = Decl
module Sub = struct
type 'a t =
{ poll : (Id.t, 'a o... | 30.48954 | 80 | 0.548603 |
17d71f6d9003947064cbaa47d0a76b675a0156bb | 1,617 | ml | OCaml | exercises/08_03-sous_arbre/test.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | exercises/08_03-sous_arbre/test.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | exercises/08_03-sous_arbre/test.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | open Test_lib
open Report
let tex =
Nd (
Nd(
Nd(Feuille, 4, Feuille),
2,
Nd(Feuille, 5, Feuille)),
1,
Nd(
Nd(Feuille, 6, Feuille),
3, Feuille))
let stex1 =
Nd(Feuille, 4, Feuille)
let stex2 =
Nd(
Nd(Feuille, 6, Feuille),
3,
Feuille
)
let nstex =
Nd(
... | 19.481928 | 68 | 0.529375 |
174d796de1733a0a906195b89c8d8e6392b44ef2 | 391 | ml | OCaml | result/cafe2/nat/sub11/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/prog/nat/sub11/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/prog/nat/sub11/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type nat = ZERO | SUCC of nat
let rec natadd (n1 : nat) (n2 : nat) : nat =
let rec s (p : nat) (q : nat) : nat =
match p with ZERO -> q | SUCC r -> s r (SUCC q)
in
s n1 n2
let rec natmul (n1 : nat) (n2 : nat) : nat =
let rec mm (p : nat) (q : nat) : nat =
match p with SUCC ZERO -> q | SUCC r -> mm r ... | 26.066667 | 62 | 0.539642 |
cd2ac807d1af6be1215557a0bb6247954d758bfe | 9,701 | ml | OCaml | infer/src/backend/Summary.ml | sangwoo-joh/infer | 598a4d5a5579a92bf51ee5cad5dbe5a36edfa2d0 | [
"MIT"
] | null | null | null | infer/src/backend/Summary.ml | sangwoo-joh/infer | 598a4d5a5579a92bf51ee5cad5dbe5a36edfa2d0 | [
"MIT"
] | null | null | null | infer/src/backend/Summary.ml | sangwoo-joh/infer | 598a4d5a5579a92bf51ee5cad5dbe5a36edfa2d0 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
module Stats = struct
type t =
{ failure_kind: SymOp... | 33.801394 | 102 | 0.723018 |
177a3d29208cd61d0880e67f84becd2993c70118 | 95 | ml | OCaml | data/derived/comb/progs/unify/prog3549.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/prog3549.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3549.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec sumList xs = match xs with | [] -> 0 | h::t -> h + (sumList t);;
let _ = sumList 1;;
| 19 | 72 | 0.526316 |
cd47a2d0ac3e550d02fac16c6c7bbc227d15ce96 | 3,588 | ml | OCaml | libraries/ssm/lib/describeAssociationExecutions.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/ssm/lib/describeAssociationExecutions.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ssm/lib/describeAssociationExecutions.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | open Types[@@ocaml.warning "-33"]
open Aws.BaseTypes[@@ocaml.warning "-33"]
open Aws
module DescribeAssociationExecutionsRequest =
struct
type t =
{
association_id: String.t
[@ocaml.doc
"<p>The association ID for which you want to view execution history details.</p>"];
filters:... | 40.314607 | 196 | 0.643534 |
174e04a642dfd46ffb47aa47fecda0752356f331 | 42,078 | ml | OCaml | infer/src/IR/Localise.ml | ryoon/infer | 7b8dc59386529801f9a7fb67ead94053dbf53b42 | [
"BSD-3-Clause"
] | null | null | null | infer/src/IR/Localise.ml | ryoon/infer | 7b8dc59386529801f9a7fb67ead94053dbf53b42 | [
"BSD-3-Clause"
] | null | null | null | infer/src/IR/Localise.ml | ryoon/infer | 7b8dc59386529801f9a7fb67ead94053dbf53b42 | [
"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... | 42.162325 | 293 | 0.714697 |
1796f745dc05739e2d8d280347dddbdbb2117dfb | 151 | ml | OCaml | data/derived/comb/progs/unify/prog7352.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/prog2542.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2542.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec mulByDigit i l =
match l with
| [] -> []
| x::x'::x'' ->
[(x * i) / 10] @ ([((x * i) mod 10) + x'] @ ((mulByDigit i x') @ x''));;
| 21.571429 | 78 | 0.370861 |
cd248d574f2bc46b565362c55c6c7c08131d7a71 | 3,868 | ml | OCaml | gen/dont.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | gen/dont.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | gen/dont.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 35.814815 | 83 | 0.540589 |
17b834a6c93d954b5e35a47171b20621303f25ae | 13,624 | mli | OCaml | infer/src/tp/fts/fts.mli | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | 1 | 2016-12-19T07:33:16.000Z | 2016-12-19T07:33:16.000Z | infer/src/tp/fts/fts.mli | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | null | null | null | infer/src/tp/fts/fts.mli | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2013 Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
open Ctypes
(* The fts functions are provided for traversing file hierarchies. A simple
overview is that the fts_open() function returns a "handle" on a file
hiera... | 43.113924 | 81 | 0.72842 |
176f735f86546ffac3f1c44c520c19699bbbf32a | 3,306 | ml | OCaml | hphp/hack/src/server/serverRpc.ml | ASSETLID/Aych.vm | 50efb4c6b162607bb9e277a2d29e641d8509774f | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-10-09T15:14:16.000Z | 2020-10-09T15:14:16.000Z | hphp/hack/src/server/serverRpc.ml | Acidburn0zzz/hhvm | 81d295105e65b7a840f23bb23fea00b0b2f2a53d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverRpc.ml | Acidburn0zzz/hhvm | 81d295105e65b7a840f23bb23fea00b0b2f2a53d | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-10-09T15:14:18.000Z | 2020-10-09T15:14:18.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.
*
*)
open Core
ope... | 45.287671 | 80 | 0.704477 |
cd10702ba509b9209e8e6ad4665a8311191ede4f | 26,132 | ml | OCaml | src/dune_rules/ctypes_rules.ml | rlepigre/dune | cff55b104a0bb7ebf688570ebdeb3833371f1462 | [
"MIT"
] | null | null | null | src/dune_rules/ctypes_rules.ml | rlepigre/dune | cff55b104a0bb7ebf688570ebdeb3833371f1462 | [
"MIT"
] | null | null | null | src/dune_rules/ctypes_rules.ml | rlepigre/dune | cff55b104a0bb7ebf688570ebdeb3833371f1462 | [
"MIT"
] | null | null | null | open! Dune_engine
open! Stdune
(* This module expands either a (library ... (ctypes ...)) rule or an
(executables ... (ctypes ...)) rule into the generated set of .ml and .c
files needed to conveniently write OCaml bindings for C libraries.
Aside from perhaps providing an "header.h" include line, you should ... | 39.714286 | 111 | 0.703314 |
cd506547a2975c7cc538b24865186edd8fc60e4f | 192 | mli | OCaml | src/client.mli | jyc/ocaml-scgi | a1858ca7bfb4d3cf8c3406e4035319aeff4f57fb | [
"BSD-3-Clause"
] | null | null | null | src/client.mli | jyc/ocaml-scgi | a1858ca7bfb4d3cf8c3406e4035319aeff4f57fb | [
"BSD-3-Clause"
] | null | null | null | src/client.mli | jyc/ocaml-scgi | a1858ca7bfb4d3cf8c3406e4035319aeff4f57fb | [
"BSD-3-Clause"
] | null | null | null | (** SCGI client *)
val request_inet :
server_name: string ->
port: int ->
Request.t -> Response.t Lwt.t
val request_sock :
socket_filename: string ->
Request.t -> Response.t Lwt.t
| 17.454545 | 31 | 0.661458 |
17617245d635560cd15ff51772e4d1e1a3c55617 | 284 | ml | OCaml | tests/verify/pmcheck/gadt_01.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | 1 | 2021-11-23T13:07:37.000Z | 2021-11-23T13:07:37.000Z | tests/verify/pmcheck/gadt_01.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | tests/verify/pmcheck/gadt_01.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | type t 'a =
| T1 : t int
| T2 : t bool
(* exhaustive *)
let f1 : forall 'a. t 'a -> t 'a -> bool =
function
| T1 -> fun T1 -> true
| T2 -> fun T2 -> false
(* exhaustive *)
let f2 : forall 'a. t 'a * t 'a -> bool =
function
| T1, T1 -> true
| T2, T2 -> false
| 17.75 | 42 | 0.475352 |
1788c33104c753f5a6fdc52ab306ec7b1b2b28bf | 69,637 | ml | OCaml | src/parser_utils/output/__tests__/js_layout_generator_test.ml | nwoltman/flow | 3f7918a69e09365dbfc4e8b20122bcd4bc2e8616 | [
"MIT"
] | null | null | null | src/parser_utils/output/__tests__/js_layout_generator_test.ml | nwoltman/flow | 3f7918a69e09365dbfc4e8b20122bcd4bc2e8616 | [
"MIT"
] | null | null | null | src/parser_utils/output/__tests__/js_layout_generator_test.ml | nwoltman/flow | 3f7918a69e09365dbfc4e8b20122bcd4bc2e8616 | [
"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.
*)
module Ast = Flow_ast
open OUnit2
open Ast_builder
open Layout_test_utils
open Layout_generator_test_utils
module S = Ast_builder.Stat... | 36.689673 | 110 | 0.574709 |
cd5c5c932d33ba6d9fd78d023f9b9d06fde681e9 | 2,135 | mli | OCaml | src/lib_storage/context_dump.mli | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/lib_storage/context_dump.mli | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | src/lib_storage/context_dump.mli | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 71.166667 | 79 | 0.482904 |
aacffc7d169842f0e67721653bd3ec581951368c | 372,511 | ml | OCaml | src/typing/statement.ml | hixio-mh/flow-1 | 4ae06a8bb2124da64823142fd6f5391f472cf7b5 | [
"MIT"
] | 1 | 2021-09-20T07:39:05.000Z | 2021-09-20T07:39:05.000Z | src/typing/statement.ml | hixio-mh/flow-1 | 4ae06a8bb2124da64823142fd6f5391f472cf7b5 | [
"MIT"
] | null | null | null | src/typing/statement.ml | hixio-mh/flow-1 | 4ae06a8bb2124da64823142fd6f5391f472cf7b5 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast = Flow_ast
module Tast_utils = Typed_ast_utils
(* This module contains the traversal functions which set up subtyping
... | 42.689778 | 112 | 0.570703 |
aa0f075b069c8d7a3c1becca10839020a7b308b1 | 7,996 | ml | OCaml | meja/src/codegen.ml | kunxian-xia/snarky | d2b475c55a15da933a6ddff2e6218b89bacccf57 | [
"MIT"
] | null | null | null | meja/src/codegen.ml | kunxian-xia/snarky | d2b475c55a15da933a6ddff2e6218b89bacccf57 | [
"MIT"
] | null | null | null | meja/src/codegen.ml | kunxian-xia/snarky | d2b475c55a15da933a6ddff2e6218b89bacccf57 | [
"MIT"
] | null | null | null | open Core_kernel
open Ast_types
open Parsetypes
let poly_name name = match name with "t" -> "poly" | name -> name ^ "_poly"
let var_type_name name = match name with "t" -> "var" | name -> name ^ "_var"
let rec var_type_lident =
Longident.(
function
| Lident name ->
Lident (var_type_name name)
|... | 37.539906 | 79 | 0.478614 |
17d156d230e92bb7c8407e9d2d95693050c74e41 | 1,568 | mll | OCaml | source_ocaml/lexer.mll | zapashcanon/New-language-Compiler-in-OCaml | d7fbc2b157d3007a8895ec9cf1884b585d0c037f | [
"MIT"
] | 2 | 2020-02-09T11:05:18.000Z | 2020-02-10T23:35:41.000Z | source_ocaml/lexer.mll | zapashcanon/New-language-Compiler-in-OCaml | d7fbc2b157d3007a8895ec9cf1884b585d0c037f | [
"MIT"
] | 1 | 2020-07-28T09:33:33.000Z | 2020-07-28T09:33:33.000Z | source_ocaml/lexer.mll | zapashcanon/New-language-Compiler-in-OCaml | d7fbc2b157d3007a8895ec9cf1884b585d0c037f | [
"MIT"
] | 1 | 2020-07-27T21:17:33.000Z | 2020-07-27T21:17:33.000Z | {
open Parser ;;
exception Error of char;;
}
let alpha = ['a'-'z' 'A'-'Z']
let digit = '-'?['0'-'9']+
let identifier = alpha (alpha | digit | '-' | '_')*
rule lex = parse
| eof { Leof }
| [ ' ' '\t' ] { lex lexbuf }
| '\n' { Lexing.new_line lexbuf; lex lexbuf }
| "+" { Lplus }
|... | 25.704918 | 55 | 0.419005 |
cd2dbc74316a6bfae6106d57d87abb66632415cb | 10,781 | ml | OCaml | src/bi_traversable.ml | MattWindsor91/travesty | 3f4da33830cc928ad879077e690277088de1f836 | [
"MIT"
] | 10 | 2018-12-13T14:49:44.000Z | 2022-01-25T02:37:35.000Z | src/bi_traversable.ml | MattWindsor91/travesty | 3f4da33830cc928ad879077e690277088de1f836 | [
"MIT"
] | 12 | 2019-02-05T08:59:10.000Z | 2021-07-23T14:06:09.000Z | src/bi_traversable.ml | MattWindsor91/travesty | 3f4da33830cc928ad879077e690277088de1f836 | [
"MIT"
] | 1 | 2020-07-06T01:00:22.000Z | 2020-07-06T01:00:22.000Z | (* This file is part of 'travesty'.
Copyright (c) 2018, 2019 by Matt Windsor
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the r... | 25.426887 | 79 | 0.616733 |
aa9f779396aee6666e974d68427c4b69173c39e6 | 696 | ml | OCaml | benchmarks/formula/formula/submissions/sub15.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 10 | 2018-11-06T00:08:12.000Z | 2019-12-05T11:05:16.000Z | benchmarks/formula/formula/submissions/sub15.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | null | null | null | benchmarks/formula/formula/submissions/sub15.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 2 | 2020-02-06T14:59:50.000Z | 2022-03-16T19:25:43.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 rec getexpr inpt =
match inpt with
| NUM(form) -> form
| PLUS(form, lat) -> gete... | 25.777778 | 56 | 0.636494 |
aacd817213341f9d4084a887a67f911b4e897f5c | 892 | ml | OCaml | src/base/dense/owl_base_dense_ndarray_s.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | 508 | 2018-03-24T12:15:49.000Z | 2022-03-30T11:37:33.000Z | src/base/dense/owl_base_dense_ndarray_s.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | 344 | 2018-03-23T14:01:27.000Z | 2022-03-31T16:14:14.000Z | src/base/dense/owl_base_dense_ndarray_s.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | 68 | 2018-03-28T21:34:12.000Z | 2022-01-23T12:15:33.000Z | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
open Bigarray
module M = Owl_base_dense_ndarray_generic
include M
type elt = float
type arr = (float, float32_elt, c_layout) Genarray.t
let number = Owl_types.F32
let empty dims = M.empty Floa... | 22.871795 | 65 | 0.742152 |
aa57cf432c1bd2690d5bffc8e09d708640b3706d | 2,880 | ml | OCaml | src/server/find_refs/findRefs_js.ml | yuhonghong66/flow | 147eb3fe43b407fb70506b750d73734e49241b05 | [
"MIT"
] | null | null | null | src/server/find_refs/findRefs_js.ml | yuhonghong66/flow | 147eb3fe43b407fb70506b750d73734e49241b05 | [
"MIT"
] | null | null | null | src/server/find_refs/findRefs_js.ml | yuhonghong66/flow | 147eb3fe43b407fb70506b750d73734e49241b05 | [
"MIT"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
let (>>|) = Core_result.(>>|)
open Utils_js
let locmap_of_bindings =
List.fold_left begin fun map (loc, x) ->
LocMap.add loc x m... | 40.56338 | 100 | 0.670833 |
cd36cb3c93f8efacbe048dfaec5c75a99613b2e3 | 2,059 | ml | OCaml | tests/mock/mock_errors.ml | maiste/equinoxe | a96bbc2d5acf8ed9f832d2465f0c00057d0c23c8 | [
"MIT"
] | 16 | 2021-12-21T18:33:52.000Z | 2022-01-06T15:59:02.000Z | tests/mock/mock_errors.ml | maiste/equinoxe | a96bbc2d5acf8ed9f832d2465f0c00057d0c23c8 | [
"MIT"
] | 24 | 2021-12-22T14:27:25.000Z | 2022-03-28T12:43:58.000Z | tests/mock/mock_errors.ml | maiste/equinoxe | a96bbc2d5acf8ed9f832d2465f0c00057d0c23c8 | [
"MIT"
] | 1 | 2022-01-12T10:31:19.000Z | 2022-01-12T10:31:19.000Z | open Mock
let test_wrong_address =
Alcotest.test_case "Auth.get_keys: wrong address" `Quick @@ fun () ->
let module E = (val mock [ (Get "user/api-keys", "") ]) in
let wrong_address = "https://unexpected.com" in
let t = E.create ~address:wrong_address ~token () in
try
let _ = E.Auth.get_keys t in
Alc... | 36.767857 | 81 | 0.684798 |
1779c46690d70f2e7ef18fb041a976704611edf1 | 163 | ml | OCaml | tests/prelude_prepare/input.ml | Eemency/learn-ocaml-autogen | 27f2069da0a74cf11de2a2f7514b6cb8666ea718 | [
"MIT"
] | 4 | 2018-09-07T01:10:59.000Z | 2021-02-17T07:33:47.000Z | tests/prelude_prepare/input.ml | Eemency/learn-ocaml-autogen | 27f2069da0a74cf11de2a2f7514b6cb8666ea718 | [
"MIT"
] | 9 | 2018-07-02T13:38:09.000Z | 2018-08-17T08:17:39.000Z | tests/prelude_prepare/input.ml | Eemency/learn-ocaml-autogen | 27f2069da0a74cf11de2a2f7514b6cb8666ea718 | [
"MIT"
] | 1 | 2020-10-14T20:26:28.000Z | 2020-10-14T20:26:28.000Z | open Test_lib
open Report
let%prepare prep = if true then 3 else 5
let%prelude prel =
let x = [1;3;5] in
List.map (fun _ -> 1) x
let id (x : int) : int = x
| 14.818182 | 40 | 0.619632 |
aa915644c9258a1a1e22057f3ab0a0c4bfe61ab7 | 13,102 | ml | OCaml | test/test.ml | ehirdoy/ocaml-fat | f91e250a9e9a4277bb26a162b1f38d2d726fa4ff | [
"ISC"
] | null | null | null | test/test.ml | ehirdoy/ocaml-fat | f91e250a9e9a4277bb26a162b1f38d2d726fa4ff | [
"ISC"
] | null | null | null | test/test.ml | ehirdoy/ocaml-fat | f91e250a9e9a4277bb26a162b1f38d2d726fa4ff | [
"ISC"
] | null | null | null | (*
* Copyright (C) 2013 Citrix Systems Inc
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DIS... | 34.938667 | 86 | 0.627309 |
17b3f86e114cc6a9d5c13ccbb9397bdcd73ddc12 | 2,538 | ml | OCaml | src/util/deriving.ml | MartinSpiessl/analyzer | aad69262820ebf812b3e2e8ff12d1aede4c2c8fa | [
"MIT"
] | 2 | 2021-04-15T17:38:12.000Z | 2021-06-17T10:09:04.000Z | src/util/deriving.ml | MartinSpiessl/analyzer | aad69262820ebf812b3e2e8ff12d1aede4c2c8fa | [
"MIT"
] | 1 | 2020-09-15T08:49:41.000Z | 2020-09-15T08:49:41.000Z | src/util/deriving.ml | Fayanzar/analyzer | 0610c520ca3fdda91dbc365f44a5e78c76906c6f | [
"MIT"
] | null | null | null | type json = Yojson.Safe.t
module Stdlib = struct (* since ocaml 4.07, Stdlib (which includes Pervasives) is opened by default, since 4.08 Pervasives is deprectated in favor of just Stdlib *)
type 'a ref = [%import: 'a Stdlib.ref] [@@deriving yojson, show]
end
module Map = struct
(* include all of Map but Make *)
... | 40.935484 | 164 | 0.688731 |
cd37ee072199506d75d587c4b5f9d30854586351 | 2,685 | ml | OCaml | test/test_cmd.ml | kit-ty-kate/b0 | f1d40f4c8055bbb1415c4fca08bfb8cf3c242c95 | [
"ISC"
] | null | null | null | test/test_cmd.ml | kit-ty-kate/b0 | f1d40f4c8055bbb1415c4fca08bfb8cf3c242c95 | [
"ISC"
] | null | null | null | test/test_cmd.ml | kit-ty-kate/b0 | f1d40f4c8055bbb1415c4fca08bfb8cf3c242c95 | [
"ISC"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2018 The b0 programmers. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
---------------------------------------------------------------------------*)
open B00_std
let ls p = C... | 41.953125 | 79 | 0.546741 |
cd2a16051585b76b7efd9e402d2235f52f01c40f | 987 | ml | OCaml | infer/src/biabduction/BiabductionModels.ml | octomarat/infer | aa6fe7963cdb6b842adcf7241f5383c30cb1a835 | [
"MIT"
] | 1 | 2020-08-28T14:00:56.000Z | 2020-08-28T14:00:56.000Z | infer/src/biabduction/BiabductionModels.ml | asadrockk1234/infer | 06489dced05bd0e7d19015c0375721885d6f2c1c | [
"MIT"
] | 8 | 2021-05-12T00:06:23.000Z | 2022-02-27T11:21:00.000Z | infer/src/biabduction/BiabductionModels.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.
*)
open! IStd
let scan_models () =
let rec next_entry index dir =
match Unix.readdir_opt dir with
| None ->
Unix.cl... | 28.2 | 93 | 0.687943 |
cd08579290dfca33bdb7ebfbb5bc87ccf4a95461 | 27,778 | ml | OCaml | src/generators/genneko.ml | wiltonlazary/haxe | 4b46713050c78940abf6c1ce19c8337de3744203 | [
"MIT"
] | 4,753 | 2015-01-03T00:45:27.000Z | 2022-03-31T07:41:28.000Z | src/generators/genneko.ml | wiltonlazary/haxe | 4b46713050c78940abf6c1ce19c8337de3744203 | [
"MIT"
] | 6,784 | 2015-01-01T01:06:28.000Z | 2022-03-31T22:12:14.000Z | src/generators/genneko.ml | wiltonlazary/haxe | 4b46713050c78940abf6c1ce19c8337de3744203 | [
"MIT"
] | 641 | 2015-01-02T23:54:43.000Z | 2022-03-30T07:44:13.000Z | (*
The Haxe Compiler
Copyright (C) 2005-2019 Haxe Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This prog... | 33.62954 | 225 | 0.602023 |
17ec91ee1dadec015e2e69387a474b58b19f3e39 | 6,935 | ml | OCaml | src/lib/auxiliary_database/transaction_database.ml | milkey-mouse/mina | ebeee239b923519ff3c10fb5051de8aa2e018639 | [
"Apache-2.0"
] | null | null | null | src/lib/auxiliary_database/transaction_database.ml | milkey-mouse/mina | ebeee239b923519ff3c10fb5051de8aa2e018639 | [
"Apache-2.0"
] | null | null | null | src/lib/auxiliary_database/transaction_database.ml | milkey-mouse/mina | ebeee239b923519ff3c10fb5051de8aa2e018639 | [
"Apache-2.0"
] | null | null | null | open Core
open Async
open Signature_lib
open Coda_base
(* TODO: Remove Transaction functor when we need to query transactions other
than user_commands *)
module Make (Transaction : sig
type t [@@deriving bin_io, compare, sexp, hash, to_yojson]
include Comparable.S with type t := t
include Hashable.S with ty... | 34.849246 | 81 | 0.68522 |
17bf04c8b48d9c8037c5c6541c54c0efe42b7871 | 107 | ml | OCaml | data/derived/comb/progs/unify/prog6342.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/prog1497.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1497.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let pipe fs =
let f a x result = a x in let base = f in List.fold_left f base fs;;
let _ = pipe [] 3;;
| 17.833333 | 70 | 0.598131 |
cd03b75ebee6f598a2f64c0bbf0e70225d741bca | 2,176 | ml | OCaml | evaluation/performance_test/mbox_cli.ml | odnh/gitmaildir | 099b161b0ec13bc4a8448e95ce9737e50d59bbb7 | [
"0BSD"
] | 8 | 2019-10-18T09:26:54.000Z | 2022-03-17T18:05:59.000Z | evaluation/performance_test/mbox_cli.ml | odnh/gitmaildir | 099b161b0ec13bc4a8448e95ce9737e50d59bbb7 | [
"0BSD"
] | null | null | null | evaluation/performance_test/mbox_cli.ml | odnh/gitmaildir | 099b161b0ec13bc4a8448e95ce9737e50d59bbb7 | [
"0BSD"
] | null | null | null | open Core
open Cmdliner
(* deliver command *)
let store_arg =
let doc = "Path of the mbox to deliver to." in
let env = Arg.env_var "MBOX_PATH" ~doc in
let doc = "The mbox path" in
Arg.(value & opt string "." & info ["d"; "dir"] ~env ~docv:"PATH" ~doc)
let deliver_info =
let doc = "Deliver an email to the m... | 27.544304 | 83 | 0.685662 |
1755d1f37c12c85fa18b65b851fc394df0e75c59 | 18,557 | ml | OCaml | data/derived/comb/progs/unify/prog8681.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/prog3897.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3897.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 33.078431 | 208 | 0.673169 |
cd55cd87163ead550f1c093997b2b5557012938d | 478 | ml | OCaml | external/recognized.ml | mzlee/pyre-check | e31eedeedd88aa92890ffe38afdc6063d8b21ef8 | [
"MIT"
] | null | null | null | external/recognized.ml | mzlee/pyre-check | e31eedeedd88aa92890ffe38afdc6063d8b21ef8 | [
"MIT"
] | null | null | null | external/recognized.ml | mzlee/pyre-check | e31eedeedd88aa92890ffe38afdc6063d8b21ef8 | [
"MIT"
] | null | null | null | (** Copyright (c) 2018-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
let classmethod_decorators =
String.Set.of_list [
"classmethod";
]
let property_decorators =
String.Set.of_list [
... | 17.071429 | 67 | 0.675732 |
cd3d3d140ca88950bfed07eaddfd415d87429efa | 617 | ml | OCaml | src/lang/ExpressionSet.ml | synduce/Synduce | 11e9eb1d420113ae85ec63399dd493034c51a354 | [
"MIT"
] | 2 | 2022-01-12T16:50:30.000Z | 2022-01-28T16:14:40.000Z | src/lang/ExpressionSet.ml | synduce/Synduce | 11e9eb1d420113ae85ec63399dd493034c51a354 | [
"MIT"
] | null | null | null | src/lang/ExpressionSet.ml | synduce/Synduce | 11e9eb1d420113ae85ec63399dd493034c51a354 | [
"MIT"
] | null | null | null | open Base
type elt = Expression.t
type t = (Expression.t, Expression.comparator_witness) Set.t
let empty : t = Set.empty (module Expression)
let singleton : elt -> t = Set.singleton (module Expression)
let of_list : elt list -> t = Set.of_list (module Expression)
let compare : t -> t -> int = Set.compare_m__t (module... | 44.071429 | 87 | 0.726094 |
172f25885fe21bf2b9846178de7a235eab0a2309 | 403 | ml | OCaml | controller/main.ml | fyquah95/fyp-worker-dispatcher | 1ebf764e41202d18ccd1013ec2270caa6c44565a | [
"RSA-MD",
"CECILL-B"
] | null | null | null | controller/main.ml | fyquah95/fyp-worker-dispatcher | 1ebf764e41202d18ccd1013ec2270caa6c44565a | [
"RSA-MD",
"CECILL-B"
] | null | null | null | controller/main.ml | fyquah95/fyp-worker-dispatcher | 1ebf764e41202d18ccd1013ec2270caa6c44565a | [
"RSA-MD",
"CECILL-B"
] | null | null | null | [@@@ocaml.warning "+a-4-9-30-40-41-42-44"]
open Core
let () =
Command.group ~summary:"Controller code"
[ ("t-test-search", Command_t_test_search.command);
("simulated-annealing", Command_simulated_annealing.command);
("rl", Command_rl.command);
("random-walk", Command_random.command);
("... | 28.785714 | 67 | 0.674938 |
cd2950da5fdd7207f01ca4a2a7c37e54e670ea35 | 145 | ml | OCaml | benchmarks/iter/iter1/submissions/sub306.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/iter/iter1/submissions/sub306.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/iter/iter1/submissions/sub306.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | let rec iter (x : int * ( 'a -> 'a )) (arg : 'a) : 'a =
let (n, f) = x in
if n <= 0 then arg
else if n == 1 then f arg
else iter(n-1, f)(f arg)
| 24.166667 | 56 | 0.489655 |
cd2b44f9ac0fe3a58490b6dad1d6fdaf32c78380 | 1,470 | mli | OCaml | lib/fuzz_actions/src/var.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 2 | 2021-06-09T22:28:00.000Z | 2021-06-30T18:08:22.000Z | lib/fuzz_actions/src/var.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 13 | 2021-02-10T08:57:29.000Z | 2021-02-16T16:17:25.000Z | lib/fuzz_actions/src/var.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 1 | 2021-06-09T22:28:01.000Z | 2021-06-09T22:28:01.000Z | (* This file is part of c4f.
Copyright (c) 2018-2021 C4 Project
c4t itself is licensed under the MIT License. See the LICENSE file in the
project root for more information.
Parts of c4t are based on code from the Herdtools7 project
(https://github.com/herd/herdtools7) : see the LICENSE.herd file in th... | 35 | 79 | 0.729932 |
cd455ad2602b0bf0a31f6c65a78b5b9237cbc25c | 5,512 | ml | OCaml | lib/rewriter.ml | mariaschett/ppltr | 67f45f9e329800e6c39094d7c3c3af8d168638da | [
"Apache-2.0"
] | 11 | 2020-08-19T13:10:10.000Z | 2021-05-19T05:59:54.000Z | lib/rewriter.ml | mariaschett/ppltr | 67f45f9e329800e6c39094d7c3c3af8d168638da | [
"Apache-2.0"
] | null | null | null | lib/rewriter.ml | mariaschett/ppltr | 67f45f9e329800e6c39094d7c3c3af8d168638da | [
"Apache-2.0"
] | 1 | 2021-05-18T12:24:51.000Z | 2021-05-18T12:24:51.000Z | (* Copyright 2020 Maria A Schett and Julian Nagele
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law... | 36.746667 | 105 | 0.669267 |
aade31137c898d90ebe88a00cf6192b730f572e3 | 10,976 | ml | OCaml | infer/src/checkers/Litho.ml | jesmg/infer | 8ae6b1faf3d72d0bbafe352a3c9e15bc62e9d733 | [
"MIT"
] | null | null | null | infer/src/checkers/Litho.ml | jesmg/infer | 8ae6b1faf3d72d0bbafe352a3c9e15bc62e9d733 | [
"MIT"
] | null | null | null | infer/src/checkers/Litho.ml | jesmg/infer | 8ae6b1faf3d72d0bbafe352a3c9e15bc62e9d733 | [
"MIT"
] | 1 | 2019-05-15T16:25:02.000Z | 2019-05-15T16:25:02.000Z | (*
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
module Domain = LithoDomain
module Payload = SummaryPayload.Make (struct
type t = Domain.t
let field =... | 38.243902 | 100 | 0.663903 |
17093730c6ca5f3550776fdce12df1d0bfa82bec | 5,216 | ml | OCaml | substitutions_and_unification.ml | samarthaggarwal/OCaml-Codes | ac8fdd4f4e13bad039726b0e6a620eeaad239aa1 | [
"MIT"
] | 1 | 2021-05-17T23:54:16.000Z | 2021-05-17T23:54:16.000Z | substitutions_and_unification.ml | samarthaggarwal/Programming-Languages | ac8fdd4f4e13bad039726b0e6a620eeaad239aa1 | [
"MIT"
] | null | null | null | substitutions_and_unification.ml | samarthaggarwal/Programming-Languages | ac8fdd4f4e13bad039726b0e6a620eeaad239aa1 | [
"MIT"
] | null | null | null | type variable = Var of string;;
type symbol = Sym of string;;
type term = V of variable | Node of symbol * (term list);;
type signature = (symbol * int) list;;
let rec map f l = match l with
| []->[]
| x::xs -> (f x)::(map f xs)
;;
let rec foldl f l e = match l with
| [] -> e
| x::xs -> foldl f xs (f x e)
;;
(*fin... | 26.748718 | 180 | 0.592216 |
179aa86bedbccdd28d8c4f9c94f7ca5b3354a4ee | 2,150 | ml | OCaml | src/linked_list/linked_list.ml | yuanqing/code-problems | 30eb34ad616146306cddc50594a47deff111f341 | [
"MIT"
] | 8 | 2017-04-21T17:30:09.000Z | 2020-10-28T21:14:11.000Z | src/linked_list/linked_list.ml | yuanqing/code-problems | 30eb34ad616146306cddc50594a47deff111f341 | [
"MIT"
] | null | null | null | src/linked_list/linked_list.ml | yuanqing/code-problems | 30eb34ad616146306cddc50594a47deff111f341 | [
"MIT"
] | 3 | 2018-01-18T22:45:50.000Z | 2020-10-29T03:04:34.000Z | type 'a node =
| None
| Some of 'a * 'a node
type 'a t = ('a node) ref
let create () : 'a t = ref None
let from_list (xs:'a list) : 'a t =
let rec aux xs =
match xs with
| [] -> None
| y::ys -> (Some (y, aux ys)) in
ref (aux xs)
let to_list (xs:'a t) : 'a list =
let rec aux xs =
match ... | 21.287129 | 53 | 0.447907 |
179bd8afc55a845af18dd3a505aa6e8d9f9192b8 | 1,028 | ml | OCaml | hphp/hack/src/parser/ppl/ppl_rewriter_syntax.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-08-03T16:16:53.000Z | 2021-08-03T16:16:53.000Z | hphp/hack/src/parser/ppl/ppl_rewriter_syntax.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/ppl/ppl_rewriter_syntax.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"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.
*)
module List = Core_list
(* Includes helpful builders *)
module CoroutineSyntax = Coroutine_syntax
open CoroutineSynta... | 30.235294 | 78 | 0.783074 |
aaf1159f7645992084c6b847f3520fb8d704e7cb | 2,644 | ml | OCaml | example/quickcheck/shrinker_example.ml | arenadotio/core | 49dc8358869dfb9cd26c9b4401c9cc76f77ae9b4 | [
"Apache-2.0"
] | null | null | null | example/quickcheck/shrinker_example.ml | arenadotio/core | 49dc8358869dfb9cd26c9b4401c9cc76f77ae9b4 | [
"Apache-2.0"
] | null | null | null | example/quickcheck/shrinker_example.ml | arenadotio/core | 49dc8358869dfb9cd26c9b4401c9cc76f77ae9b4 | [
"Apache-2.0"
] | null | null | null | open Core.Std
module Shrinker = Quickcheck.Shrinker
module Generator = Quickcheck.Generator
module Sorted_list = struct
type t = int list
[@@deriving sexp]
let of_list list =
List.stable_sort ~cmp:Int.compare list
let to_list t = t
let gen elt =
let open Generator.Monad_infix in
List.gen' ... | 26.707071 | 85 | 0.663767 |
cd08ba4173f8a65ebb8e526160572293f03f4cb6 | 2,410 | ml | OCaml | src/config.ml | darrenldl/oali | d5fd4b2da61aa8bc21863af6bf352d1ac63de8f3 | [
"MIT"
] | 6 | 2019-10-02T07:36:29.000Z | 2021-11-14T17:13:39.000Z | src/config.ml | darrenldl/Linux_Laptop_Salt_Hard | d5fd4b2da61aa8bc21863af6bf352d1ac63de8f3 | [
"MIT"
] | 8 | 2019-10-14T14:47:11.000Z | 2020-01-24T07:58:04.000Z | src/config.ml | darrenldl/oali | d5fd4b2da61aa8bc21863af6bf352d1ac63de8f3 | [
"MIT"
] | null | null | null | let root_mount_point = "/mnt"
let root_dir = "/root"
let esp_part_size_MiB = 550.0
let esp_part_max_frac = 0.25
let efi_dir = "/efi"
let esp_mount_point = Misc_utils.concat_file_names [ root_mount_point; efi_dir ]
let boot_part_size_MiB = 500.0
let boot_part_max_frac = 0.75
let boot_dir = "/boot"
let boot_moun... | 23.627451 | 80 | 0.791701 |
cd55c3228f929f39745f283fe8d60eb3535f3475 | 5,373 | ml | OCaml | src/proto_alpha/lib_protocol/test/integration/michelson/test_lazy_storage_diff.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_alpha/lib_protocol/test/integration/michelson/test_lazy_storage_diff.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_alpha/lib_protocol/test/integration/michelson/test_lazy_storage_diff.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 37.838028 | 80 | 0.614554 |
1796bf5959dc5ebb469ea31fc3ea8a45caa7f24e | 305 | mli | OCaml | taint/sources.mli | pwgraham91/pyre-check | 5cb1367e2c6c4792e0e8895fccc5af8af18372db | [
"MIT"
] | null | null | null | taint/sources.mli | pwgraham91/pyre-check | 5cb1367e2c6c4792e0e8895fccc5af8af18372db | [
"MIT"
] | null | null | null | taint/sources.mli | pwgraham91/pyre-check | 5cb1367e2c6c4792e0e8895fccc5af8af18372db | [
"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. *)
type t =
| Cookies
| Test
| Thrift
| UserControlled
[@@deriving compare, sexp, show, hash]
val create: string -> t
| 20.333333 | 67 | 0.681967 |
1779115a93034d8cc94c2636cae167d4e1c18c1f | 4,420 | mli | OCaml | infer/src/istd/PrettyPrintable.mli | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"MIT"
] | null | null | null | infer/src/istd/PrettyPrintable.mli | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"MIT"
] | null | null | null | infer/src/istd/PrettyPrintable.mli | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
(** Wrappers for making pretty-printable modules *)
val pp_collection : pp_item:(F.formatter -> 'a -... | 22.901554 | 97 | 0.6181 |
17afcb7d41cf22f60b33f8438a33a79f1db632f0 | 1,011 | mli | OCaml | normalization/norm_expr.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | normalization/norm_expr.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | normalization/norm_expr.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 37.444444 | 80 | 0.305638 |
175cce3f24410355b48325f613ae043d0c60803d | 2,099 | ml | OCaml | ocaml_typing/407/meta.ml | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 684 | 2018-05-24T14:14:06.000Z | 2022-03-14T21:13:22.000Z | ocaml_typing/407/meta.ml | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 439 | 2018-05-25T21:16:18.000Z | 2021-12-03T11:28:10.000Z | ocaml_typing/407/meta.ml | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 107 | 2018-05-30T23:53:50.000Z | 2022-01-10T10:50:53.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 61.735294 | 76 | 0.444497 |
bc3ac1c5e4791da11f1cfea39d1d22ae78c28958 | 1,721 | mli | OCaml | experiments/ownership-inference/infer/infer/src/biabduction/SymExec.mli | 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/biabduction/SymExec.mli | 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/biabduction/SymExec.mli | SunghoLee/hafnium-verification | 382494a2280a751a1e33f2676e8bbf5d5e2d9dbf | [
"Apache-2.0"
] | 17 | 2019-06-28T14:40:41.000Z | 2021-03-11T19:26:13.000Z | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
(** Symbolic Execution *)
val declare_locals_and_ret : Tenv.t -> Procdesc.t... | 32.471698 | 96 | 0.690877 |
1793791e18221584dbe44bd301c2fa8c4d2c13e0 | 873 | mli | OCaml | compiler/compilerlib/bslKeyMap.mli | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 643 | 2015-01-02T23:57:37.000Z | 2022-03-18T18:50:24.000Z | compiler/compilerlib/bslKeyMap.mli | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 52 | 2015-01-17T07:26:16.000Z | 2021-03-08T14:16:08.000Z | compiler/compilerlib/bslKeyMap.mli | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 58 | 2015-01-02T23:57:42.000Z | 2022-03-02T12:44:42.000Z | (*
Copyright © 2011 MLstate
This file is part of Opa.
Opa is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License, version 3, as published by
the Free Software Foundation.
Opa is distributed in the hope that it will be useful, but WI... | 33.576923 | 78 | 0.722795 |
cd02b3663217505932cb48f75689a5ca4c4e664f | 102 | ml | OCaml | hollight/valid/mathd-algebra-181.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 102 | 2021-05-04T09:50:13.000Z | 2022-03-27T12:00:05.000Z | hollight/valid/mathd-algebra-181.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 49 | 2021-05-06T09:36:49.000Z | 2022-03-31T18:58:23.000Z | hollight/valid/mathd-algebra-181.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 17 | 2021-05-06T09:04:02.000Z | 2022-03-29T11:25:46.000Z | let mathd-algebra-181 = `!n:real.
~(n = &3) /\
((n + &5) / (n - &3) = &2)
==>
n = &11
`;;
| 14.571429 | 33 | 0.323529 |
cd2986ef8c621870be8c1d17ad55759abcc08147 | 19,084 | ml | OCaml | bootstrap/4.07.1/pa_lexing.ml | rlepigre/ocaml-earley-ocaml | 60cf1e63f30b670d0bc4bc22cdff36b453c502e3 | [
"CECILL-B"
] | 2 | 2018-02-12T20:06:48.000Z | 2018-04-09T14:08:38.000Z | bootstrap/4.07.1/pa_lexing.ml | rlepigre/ocaml-earley-ocaml | 60cf1e63f30b670d0bc4bc22cdff36b453c502e3 | [
"CECILL-B"
] | 12 | 2017-08-30T10:44:32.000Z | 2019-08-02T11:33:33.000Z | bootstrap/4.07.1/pa_lexing.ml | rlepigre/ocaml-earley-ocaml | 60cf1e63f30b670d0bc4bc22cdff36b453c502e3 | [
"CECILL-B"
] | 1 | 2020-04-25T05:58:29.000Z | 2020-04-25T05:58:29.000Z | exception Unclosed_comment of bool * Input.buffer * int
let unclosed_comment : type a. (Input.buffer * int) -> a =
fun (buf, pos) -> raise (Unclosed_comment (false, buf, pos))
let unclosed_comment_string : type a. (Input.buffer * int) -> a =
fun (buf, pos) -> raise (Unclosed_comment (true, buf, pos))
let ocamldoc_... | 35.804878 | 82 | 0.536732 |
cd5f43251d140877a85b2bdeab46dec35ee0ff33 | 17,301 | ml | OCaml | infer/src/bufferoverrun/bufferOverrunChecker.ml | fakeNetflix/facebook-repo-infer | 5fa9f8928535a7459265c8f431162a91391b09b4 | [
"MIT"
] | null | null | null | infer/src/bufferoverrun/bufferOverrunChecker.ml | fakeNetflix/facebook-repo-infer | 5fa9f8928535a7459265c8f431162a91391b09b4 | [
"MIT"
] | null | null | null | infer/src/bufferoverrun/bufferOverrunChecker.ml | fakeNetflix/facebook-repo-infer | 5fa9f8928535a7459265c8f431162a91391b09b4 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2016-present, Programming Research Laboratory (ROPAS)
* Seoul National University, Korea
* 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.
... | 37.61087 | 99 | 0.702387 |
4495562845f435bb3b212662906c366801a226d3 | 331 | mli | OCaml | lib/unparser/unparser_cameligo.mli | nobrakal/lint_ligo | 9e115f512e82fb5d49e42e225bbaa651b7292304 | [
"MIT"
] | 1 | 2020-09-10T14:45:28.000Z | 2020-09-10T14:45:28.000Z | lib/unparser/unparser_cameligo.mli | nobrakal/lint_ligo | 9e115f512e82fb5d49e42e225bbaa651b7292304 | [
"MIT"
] | null | null | null | lib/unparser/unparser_cameligo.mli | nobrakal/lint_ligo | 9e115f512e82fb5d49e42e225bbaa651b7292304 | [
"MIT"
] | null | null | null | type cst = Cameligo.CST.t
type node =
| Declarations
| LetDecl | TypeDecl
| Expr
| Par
| Attribute
| Type
| Pattern
| Field | Field_assign | Field_decl
| Path | Clause
| Name
| Keyword
val string_of_node : node -> string
val node_of_string : string -> node option
val unparse_cst : cst -> node ... | 15.761905 | 42 | 0.65861 |
aaace8261903a13f8e44240ca3979a0bb345a1dc | 1,051 | ml | OCaml | src/base/types/owl_types.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | 508 | 2018-03-24T12:15:49.000Z | 2022-03-30T11:37:33.000Z | src/base/types/owl_types.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | 344 | 2018-03-23T14:01:27.000Z | 2022-03-31T16:14:14.000Z | src/base/types/owl_types.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | 68 | 2018-03-28T21:34:12.000Z | 2022-01-23T12:15:33.000Z | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
(** This module defines the types shared by various sub-libraries in Owl.
Note that they just wrappers, to find the exact module signature, please
refer to the definition in the corresponding ... | 20.211538 | 74 | 0.789724 |
cd075e135d4ea5b73ad6722f7011ee0394a60026 | 7,952 | ml | OCaml | hphp/hack/src/typing/typing_local_ops.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_local_ops.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_local_ops.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2020, 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_core
open Typing_env_types
module Env = Typing_env
module SN = Naming_special_names... | 30.584615 | 88 | 0.678068 |
aadd5aada14101000bb17d4341e1a61258de35af | 11,742 | ml | OCaml | code_selection/code/code_nestedloop.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | code_selection/code/code_nestedloop.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | code_selection/code/code_nestedloop.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 32.436464 | 109 | 0.663516 |
cd4f05e672be7c3f6303180555c7c36e5a7a1368 | 1,347 | ml | OCaml | lib/utils/expeq.ml | upenn-cis1xx/camlcheck | 87d9a0bcace974fe5fbe4dc3da2202ee01c17ad4 | [
"Apache-2.0"
] | null | null | null | lib/utils/expeq.ml | upenn-cis1xx/camlcheck | 87d9a0bcace974fe5fbe4dc3da2202ee01c17ad4 | [
"Apache-2.0"
] | null | null | null | lib/utils/expeq.ml | upenn-cis1xx/camlcheck | 87d9a0bcace974fe5fbe4dc3da2202ee01c17ad4 | [
"Apache-2.0"
] | null | null | null |
(** Limited notion of expression equality - trees should look the same
for commonly used expressions eee
*)
let rec exp_eq (el: Parsetree.expression) (er: Parsetree.expression) =
exp_desc_eq el.pexp_desc er.pexp_desc
and exp_desc_eq (el: Parsetree.expression_desc) (er: Parsetree.expression_desc) =
match el, e... | 40.818182 | 99 | 0.674091 |
bc87711dffaa2230aa27835e5f7d9b83475ecc95 | 816 | ml | OCaml | ast/test/identifierTest.ml | stvreumi/pyre-check | 94d13c8df37b53843ae92544b81042347b64315d | [
"MIT"
] | null | null | null | ast/test/identifierTest.ml | stvreumi/pyre-check | 94d13c8df37b53843ae92544b81042347b64315d | [
"MIT"
] | 1 | 2021-05-11T20:40:20.000Z | 2021-05-11T20:40:20.000Z | ast/test/identifierTest.ml | stvreumi/pyre-check | 94d13c8df37b53843ae92544b81042347b64315d | [
"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 Ast
let test_remove_leading_underscores _ =
let assert_removed identifier expected =
let removed =
... | 24 | 67 | 0.713235 |
cd05a24d30fc5dc4188e5fdc7b0f7672a1d08c82 | 1,370 | ml | OCaml | src/bos_base.ml | MisterDA/bos | 5140cd0b463ce02841ce8f380821b1376ea28341 | [
"0BSD"
] | 54 | 2015-02-27T20:11:59.000Z | 2022-01-04T10:59:45.000Z | src/bos_base.ml | MisterDA/bos | 5140cd0b463ce02841ce8f380821b1376ea28341 | [
"0BSD"
] | 91 | 2015-02-27T22:58:59.000Z | 2022-02-11T23:43:37.000Z | src/bos_base.ml | MisterDA/bos | 5140cd0b463ce02841ce8f380821b1376ea28341 | [
"0BSD"
] | 16 | 2016-04-27T00:19:27.000Z | 2021-10-02T21:14:37.000Z | (*---------------------------------------------------------------------------
Copyright (c) 2015 The bos programmers. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
---------------------------------------------------------------------------*)
open Astring
let apply f... | 45.666667 | 79 | 0.578832 |
17c5911ed91df6f09e3f166fbbf8ee726ffd1bfb | 1,350 | mli | OCaml | infer/src/pulse/PulseArithmetic.mli | lequangloc/infer | 6fb5dd5b36ed05d1dcc348565bfb472c42922e90 | [
"MIT"
] | null | null | null | infer/src/pulse/PulseArithmetic.mli | lequangloc/infer | 6fb5dd5b36ed05d1dcc348565bfb472c42922e90 | [
"MIT"
] | null | null | null | infer/src/pulse/PulseArithmetic.mli | lequangloc/infer | 6fb5dd5b36ed05d1dcc348565bfb472c42922e90 | [
"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
(** Wrapper around {!PathCondition} that operate... | 32.142857 | 92 | 0.75037 |
17b335db92fa1937d9d6d72a63129d8dd2f6c279 | 63 | ml | OCaml | src/FloatHelpers.ml | logiclogue/bs-helpers | 5fd55b24e13f4c290ad9dec9f1e2a4bbd5a050ee | [
"MIT"
] | null | null | null | src/FloatHelpers.ml | logiclogue/bs-helpers | 5fd55b24e13f4c290ad9dec9f1e2a4bbd5a050ee | [
"MIT"
] | null | null | null | src/FloatHelpers.ml | logiclogue/bs-helpers | 5fd55b24e13f4c290ad9dec9f1e2a4bbd5a050ee | [
"MIT"
] | null | null | null | let from_string = OptionHelpers.from_exception float_of_string
| 31.5 | 62 | 0.888889 |
aac7041f10e8766d681d8c320445e2bc5e6ea390 | 5,896 | ml | OCaml | infer/src/absint/DataFlow.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | infer/src/absint/DataFlow.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | infer/src/absint/DataFlow.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.
*)
open! IStd
module L = Logging
type throws =
| DontKnow (** May or may not throw an exception. *)
| Throws (** Definitely thr... | 30.549223 | 100 | 0.654512 |
17259bb438ba9359b902496dea52b0fcebc68c8b | 15,777 | mli | OCaml | coq/checker/cic.mli | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq/checker/cic.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq/checker/cic.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 2 | 2021-01-19T17:56:28.000Z | 2022-03-28T04:39:41.000Z | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *)
(* <O___,, * (see CREDITS file for the list of authors) *)
(* \VV/ *********... | 33.568085 | 134 | 0.673068 |
aa1450ea21fb610cb192dab64a5a0be94177542b | 3,040 | ml | OCaml | src/lib_lwt_result_stdlib/test/test_fuzzing_set.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/lib_lwt_result_stdlib/test/test_fuzzing_set.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/lib_lwt_result_stdlib/test/test_fuzzing_set.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs <contact@nomadic-labs.com> *)
... | 39.480519 | 79 | 0.545066 |
cd07488be4732ccaf778e77469201d3469e2aa7c | 4,388 | mli | OCaml | infer/src/istd/PrettyPrintable.mli | GaloisNeko/infer | 55de99b46574050506618acfc2ce9c49df66d27a | [
"MIT"
] | null | null | null | infer/src/istd/PrettyPrintable.mli | GaloisNeko/infer | 55de99b46574050506618acfc2ce9c49df66d27a | [
"MIT"
] | null | null | null | infer/src/istd/PrettyPrintable.mli | GaloisNeko/infer | 55de99b46574050506618acfc2ce9c49df66d27a | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
(** Wrappers for making pretty-printable modules *)
val pp_collection : pp_item:(F.formatter -> 'a -... | 22.973822 | 97 | 0.618049 |
17f2d8cb4de344d4a65a0d9a8d7e477baf6c1a45 | 210 | mli | OCaml | libraries/ec2/lib/createSubnet.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/ec2/lib/createSubnet.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/ec2/lib/createSubnet.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
type input = CreateSubnetRequest.t
type output = CreateSubnetResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| 19.090909 | 85 | 0.761905 |
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.