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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8a0c0458ad1eaf0996af4bcfe3285611742302e2 | 448 | ml | OCaml | example/b-session/session.ml | tatchi/dream | 3098d0a194369d00fe373474a7d9996988998309 | [
"MIT"
] | null | null | null | example/b-session/session.ml | tatchi/dream | 3098d0a194369d00fe373474a7d9996988998309 | [
"MIT"
] | 1 | 2022-03-28T07:56:40.000Z | 2022-03-28T07:56:40.000Z | example/b-session/session.ml | tatchi/dream | 3098d0a194369d00fe373474a7d9996988998309 | [
"MIT"
] | null | null | null | let () =
Dream.run
@@ Dream.logger
@@ Dream.memory_sessions
@@ fun request ->
match Dream.session_field request "user" with
| None ->
let%lwt () = Dream.invalidate_session request in
let%lwt () = Dream.set_session_field request "user" "alice" in
Dream.html "You weren't logged in; but ... | 28 | 68 | 0.640625 |
8a5ac424f476b0b042568601cdcfe6acd9cd868c | 1,420 | mll | OCaml | src/comm/lexer.mll | vrotaru/plzoo | ae6041c65baf1eebf65a60617819efeb8dcd3420 | [
"MIT"
] | 1,267 | 2015-01-01T18:23:48.000Z | 2022-03-31T06:31:51.000Z | src/comm/lexer.mll | vrotaru/plzoo | ae6041c65baf1eebf65a60617819efeb8dcd3420 | [
"MIT"
] | 20 | 2016-05-19T11:24:40.000Z | 2020-11-11T09:36:21.000Z | src/comm/lexer.mll | vrotaru/plzoo | ae6041c65baf1eebf65a60617819efeb8dcd3420 | [
"MIT"
] | 83 | 2015-07-04T15:28:52.000Z | 2022-03-24T13:11:49.000Z | {
open Lexing
}
let variable = ['_' 'a'-'z' 'A'-'Z'] ['_' 'a'-'z' 'A'-'Z' '0'-'9']*
rule token = parse
"#" [^'\n']* '\n' { Lexing.new_line lexbuf; token lexbuf }
| '\n' { Lexing.new_line lexbuf; token lexbuf }
| [' ' '\t'] { token lexbuf }
| '-'? ['0'-'9']+ { Parser.NUMERAL (int_of_strin... | 32.272727 | 69 | 0.385211 |
8a14ddb62e3790353b7702979e7d797103229b0f | 8,300 | ml | OCaml | assignments/hw1/src/main.ml | cmsc388x/interpreters | d8affe6235eb364e8aff0c57614f0b72821119ce | [
"MIT"
] | 1 | 2022-02-11T18:35:51.000Z | 2022-02-11T18:35:51.000Z | assignments/hw1/src/main.ml | cmsc388x/interpreters | d8affe6235eb364e8aff0c57614f0b72821119ce | [
"MIT"
] | 1 | 2022-02-20T19:35:56.000Z | 2022-02-20T19:38:36.000Z | assignments/hw1/src/main.ml | cmsc388x/interpreters | d8affe6235eb364e8aff0c57614f0b72821119ce | [
"MIT"
] | 2 | 2022-02-11T17:37:04.000Z | 2022-02-21T18:30:36.000Z | open Camlrack
open Camlrack.ListConvenienceFunctions
(** This type represents the available homework problems.
NOTE: DO NOT MODIFY THIS TYPE. *)
type hw_item =
| XOR_and_NAND (* Item 1 *)
| Syntactic_XOR_and_NAND (* Item 2 *)
| Sub_and_Mul (* Item 3 *)
| Short_Circui... | 31.439394 | 86 | 0.568434 |
af529e1c3e3b00d125405df2976e0b58df794b86 | 18,690 | mly | OCaml | src/stan/parser.mly | VMatthijs/Stanc-OCaml | 53134510c41c3e54acd0fcac7a8e2797f7de562e | [
"BSD-3-Clause"
] | 1 | 2018-11-18T18:11:43.000Z | 2018-11-18T18:11:43.000Z | src/stan/parser.mly | VMatthijs/Stanc-OCaml | 53134510c41c3e54acd0fcac7a8e2797f7de562e | [
"BSD-3-Clause"
] | null | null | null | src/stan/parser.mly | VMatthijs/Stanc-OCaml | 53134510c41c3e54acd0fcac7a8e2797f7de562e | [
"BSD-3-Clause"
] | null | null | null | (** The parser for Stan. A Menhir file. *)
%{
open Ast_constructors
open Ast
open Debug
%}
%token FUNCTIONBLOCK DATABLOCK TRANSFORMEDDATABLOCK PARAMETERSBLOCK
TRANSFORMEDPARAMETERSBLOCK MODELBLOCK GENERATEDQUANTITIESBLOCK
%token LBRACE RBRACE LPAREN RPAREN LBRACK RBRACK LABRACK RABRACK COMMA SEMICOLON
B... | 34.41989 | 121 | 0.694543 |
8a6c7dedcf94b56505fb399f3cf4d76ae935a9c4 | 1,961 | ml | OCaml | libraries/ec2/lib/createTransitGatewayRouteTable.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/createTransitGatewayRouteTable.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/ec2/lib/createTransitGatewayRouteTable.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = CreateTransitGatewayRouteTableRequest.t
type output = CreateTransitGatewayRouteTableResult.t
type error = Errors_internal.t
let service = "ec2"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string
(Aws.Uti... | 31.629032 | 110 | 0.587455 |
8a57dae3d700f8b95c2916d5f08483fa0e49b5bb | 20,345 | ml | OCaml | hphp/hack/src/server/serverRpc.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverRpc.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverRpc.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"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 ServerEnv
open ServerCommandTypes
open Utils
let remove_dead_fixme_warning =
"hh_server was ... | 38.605313 | 93 | 0.680462 |
8a2f5ad481667c5ea2ca8da1705d80425a058f61 | 285 | ml | OCaml | benchmarks/wellformedness/wellformedness/submissions/sub33.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 10 | 2018-11-06T00:08:12.000Z | 2019-12-05T11:05:16.000Z | benchmarks/wellformedness/wellformedness/submissions/sub33.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | null | null | null | benchmarks/wellformedness/wellformedness/submissions/sub33.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 2 | 2020-02-06T14:59:50.000Z | 2022-03-16T19:25:43.000Z |
type exp =
| V of var
| P of var * exp
| C of exp * exp
and var = string
let listP = [""]
let rec check : exp -> bool
= fun exp ->
match exp with
| V x -> List.mem x listP
| P (x, e1) -> let listP = listP @ [x] in check e1
| C (e1, e2) -> check e1 && check e2
| 17.8125 | 52 | 0.519298 |
8a5f975b2a391b730784308508f5998991c3b51c | 5,337 | ml | OCaml | test/xlsx.ml | asemio/SZXX | d8c86ddb30a766a0c4368d03faefca78f7506fdb | [
"MIT"
] | 10 | 2020-06-30T12:27:04.000Z | 2022-02-19T17:42:34.000Z | test/xlsx.ml | asemio/SZXX | d8c86ddb30a766a0c4368d03faefca78f7506fdb | [
"MIT"
] | 1 | 2022-03-31T11:18:16.000Z | 2022-03-31T11:18:16.000Z | test/xlsx.ml | asemio/SZXX | d8c86ddb30a766a0c4368d03faefca78f7506fdb | [
"MIT"
] | null | null | null | let flags = Unix.[ O_RDONLY; O_NONBLOCK ]
open! Core_kernel
open Lwt.Syntax
open Lwt.Infix
let extractors =
SZXX.Xlsx.
{
string = (fun _location s -> `String (SZXX.Xml.unescape s));
error = (fun _location s -> `String (sprintf "#ERROR# %s" s));
boolean = (fun _location s -> `Bool String.(s = "... | 34.211538 | 108 | 0.593592 |
d2d71576f09dc1dac0dfac657e071132b1f4a25b | 9,446 | ml | OCaml | stdlib/weak.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 100 | 2017-09-08T09:49:08.000Z | 2022-03-10T12:12:50.000Z | stdlib/weak.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 1 | 2020-01-31T15:47:28.000Z | 2020-02-01T11:54:44.000Z | stdlib/weak.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 30.37299 | 80 | 0.530277 |
8a62b8fb54ae377580cfcec3451b8e18e10ae994 | 1,648 | ml | OCaml | src/core/driver/utils.ml | sm11963/NEAL | 7789fcef09f05c2aff1df7622b8ebed2bfbdb881 | [
"MIT"
] | 432 | 2017-09-26T01:05:40.000Z | 2022-03-28T05:35:31.000Z | src/core/driver/utils.ml | sm11963/NEAL | 7789fcef09f05c2aff1df7622b8ebed2bfbdb881 | [
"MIT"
] | 24 | 2017-10-03T01:22:29.000Z | 2022-03-09T00:49:33.000Z | src/core/driver/utils.ml | sm11963/NEAL | 7789fcef09f05c2aff1df7622b8ebed2bfbdb881 | [
"MIT"
] | 30 | 2017-09-26T17:09:03.000Z | 2021-10-30T00:22:14.000Z | (* Copyright (c) 2017 Uber Technologies, Inc. *)
(* *)
(* Permission is hereby granted, free of charge, to any person obtaining a copy *)
(* of this software and associated documentation files (the "Software"), to deal *)
(* in the Software without restriction, including without limitation the rights *)
(* to use, copy... | 39.238095 | 83 | 0.692961 |
af7729deda269f2fc3b8c9e4c01d46f8a328241b | 17,780 | ml | OCaml | analysis/test/integration/protocolTest.ml | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"MIT"
] | null | null | null | analysis/test/integration/protocolTest.ml | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"MIT"
] | null | null | null | analysis/test/integration/protocolTest.ml | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"MIT"
] | null | null | null | (* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. *)
open OUnit2
open IntegrationTest
let test_check_protocol context =
let assert_type_errors = assert_type_errors ~context in
let assert_de... | 23.151042 | 100 | 0.517829 |
f3f55335ca38665155cf10eef27b9f42edeef172 | 451 | mli | OCaml | hphp/hack/src/errors/parsing_error.mli | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/src/errors/parsing_error.mli | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/src/errors/parsing_error.mli | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | 2,126 | 2015-01-01T11:13:29.000Z | 2022-03-28T19:58:15.000Z | (*
* 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.
*
*)
type t =
| Fixme_format of Pos.t
| Parsing_error of {
pos: Pos.t;
msg: string;
}
| Xhp_parsing_error of ... | 20.5 | 76 | 0.640798 |
8a271d0639110f68ebc3e62f17d03a92949321f7 | 698 | ml | OCaml | data/derived/comb/progs/unify/prog7888.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/prog3093.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3093.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec cloneHelper x n l =
if n <= 0 then l else cloneHelper x (n - 1) (x :: l);;
let rec clone x n = if n < 1 then [] else cloneHelper x n [];;
let padZero l1 l2 =
let diff = (List.length l1) - (List.length l2) in
if diff < 0
then (((clone 0 ((-1) * diff)) @ l1), l2)
else if diff > 0 then (l1, ((clone 0 ... | 30.347826 | 75 | 0.590258 |
8a3e64c7994ef083432f40d4b8b079743f729182 | 3,591 | ml | OCaml | duniverse/ocamlgraph/src/leaderlist.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/ocamlgraph/src/leaderlist.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/ocamlgraph/src/leaderlist.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | (**************************************************************************)
(* *)
(* Ocamlgraph: a generic graph library for OCaml *)
(* Copyright (C) 2004-2010 *)
(* Sylvain ... | 40.348315 | 80 | 0.485102 |
af75e6d56307951778a62c253139448eacb90b8f | 123 | mli | OCaml | lib/mirage/impl/mirage_impl_qubesdb.mli | palainp/mirage | 09d3e17125e782c58aae92c8bb2f849b41fd2037 | [
"ISC"
] | 1,622 | 2015-01-03T13:32:31.000Z | 2022-03-31T23:16:50.000Z | lib/mirage/impl/mirage_impl_qubesdb.mli | palainp/mirage | 09d3e17125e782c58aae92c8bb2f849b41fd2037 | [
"ISC"
] | 739 | 2015-01-08T12:44:35.000Z | 2022-03-30T06:31:27.000Z | lib/mirage/impl/mirage_impl_qubesdb.mli | palainp/mirage | 09d3e17125e782c58aae92c8bb2f849b41fd2037 | [
"ISC"
] | 190 | 2015-01-04T12:20:37.000Z | 2022-03-30T02:57:26.000Z | type qubesdb
val qubesdb : qubesdb Functoria.typ
val default_qubesdb : qubesdb Functoria.impl
val pkg : Functoria.package
| 20.5 | 44 | 0.813008 |
8a8361f5708ac4fb60e8369ef2a4bd2e8da4eb26 | 524 | ml | OCaml | benchmarks/C/lambda/sol632.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/lambda/sol632.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/lambda/sol632.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type lambda =
| V of var
| P of var * lambda
| C of lambda * lambda
and var = string
type env = (var * lambda) list
let rec scan : env -> var -> bool
= fun env var ->
match env with
| [] -> false
| (v, l)::tl -> if v = var then true else scan tl var
let rec check_ : env -> lambda -> bool
= fun env lam... | 22.782609 | 55 | 0.561069 |
afe2c5d02c47ffe00ac45914b9cd3811a59e84d3 | 12,118 | ml | OCaml | nested_profile/test/test_profile.ml | neojski/ecaml | 00adeed63c00e3e52a4a2475c3a8256fd70c66b6 | [
"MIT"
] | null | null | null | nested_profile/test/test_profile.ml | neojski/ecaml | 00adeed63c00e3e52a4a2475c3a8256fd70c66b6 | [
"MIT"
] | null | null | null | nested_profile/test/test_profile.ml | neojski/ecaml | 00adeed63c00e3e52a4a2475c3a8256fd70c66b6 | [
"MIT"
] | null | null | null | open! Core
open! Async
open! Nested_profile
open! Nested_profile.Profile
open! Nested_profile.Profile.Private
open! Expect_test_helpers_core
open! Expect_test_helpers_async
let _ = Profile.should_profile := true
let sec = Time_ns.Span.of_sec
module Sync_or_async = Profile.Sync_or_async
module type Monad = sig
incl... | 26.928889 | 158 | 0.571299 |
af696718d58cb5ac836af974eebfee02b9f83979 | 512 | ml | OCaml | data/derived/comb/progs/unify/prog1284.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/prog1284.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1284.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr;;
let rec eval (e,x,y) =
match e with
| Sine v -> sin (eval (v, x, y))
| Cosine v -> cos (eval (v, x, y))
| Average (v,w) -> ((eval (v, x, y)) +. (eval (w, x... | 24.380952 | 66 | 0.474609 |
8a8c83f1b91f6c8d91ced92983adb2ae98b649be | 477 | ml | OCaml | bootstrap/test/basis/bool/test_int.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 25 | 2020-02-03T20:31:04.000Z | 2022-03-30T17:22:35.000Z | bootstrap/test/basis/bool/test_int.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 152 | 2020-02-03T23:16:05.000Z | 2022-02-24T22:14:04.000Z | bootstrap/test/basis/bool/test_int.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 4 | 2020-02-03T07:36:22.000Z | 2020-10-31T03:44:52.000Z | open! Basis.Rudiments
open! Basis
open Bool
let test () =
let rec fn = function
| [] -> ()
| t :: ts' -> begin
let x = to_uns t in
File.Fmt.stdout
|> Fmt.fmt "to_uns "
|> pp t
|> Fmt.fmt " -> "
|> Uns.pp x
|> Fmt.fmt " ; of_uns "
|> Uns.pp x
... | 17.666667 | 31 | 0.404612 |
af94c20bcac70b6ca2cb1e4d9197c4d38e9c9dab | 7,365 | ml | OCaml | src/macro/eval/evalValue.ml | Aurel300/haxe | fbeac98f865bab5a21158117e1aad3b0bba77570 | [
"MIT"
] | null | null | null | src/macro/eval/evalValue.ml | Aurel300/haxe | fbeac98f865bab5a21158117e1aad3b0bba77570 | [
"MIT"
] | null | null | null | src/macro/eval/evalValue.ml | Aurel300/haxe | fbeac98f865bab5a21158117e1aad3b0bba77570 | [
"MIT"
] | null | null | null | (*
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... | 27.277778 | 138 | 0.707128 |
af31a723358f1f4d26b79d7d52b5a0c6f16eacd3 | 1,606 | ml | OCaml | libraries/elasticache/lib/deleteUser.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/elasticache/lib/deleteUser.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/elasticache/lib/deleteUser.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 = DeleteUserMessage.t
type output = User.t
type error = Errors_internal.t
let service = "elasticache"
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 service regio... | 25.903226 | 87 | 0.617684 |
8a86e028c9647eaefd26247107d09be6316972e2 | 865 | ml | OCaml | tests/benchmarks_call/r_type/array/a-mapi.ml | LinerSu/DART_IT | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 7 | 2020-06-12T09:32:16.000Z | 2020-10-05T09:04:07.000Z | tests/benchmarks_call/r_type/array/a-mapi.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | null | null | null | tests/benchmarks_call/r_type/array/a-mapi.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 mapi_helper (hf: int -> int -> int) hi hn (ha: int -> int) (hb: int -> int) : int -> int =
if (hi < hn) then
let hb2 = update hi... | 24.714286 | 99 | 0.554913 |
8a92138d60f07d40e8c7a100a5017f302cac6790 | 11,566 | ml | OCaml | src/extension.ml | kit-ty-kate/ppxlib | 84be87001b2f0f3883bd40f74034076591107957 | [
"MIT"
] | 2 | 2022-03-03T01:38:24.000Z | 2022-03-03T01:54:36.000Z | src/extension.ml | kit-ty-kate/ppxlib | 84be87001b2f0f3883bd40f74034076591107957 | [
"MIT"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | src/extension.ml | kit-ty-kate/ppxlib | 84be87001b2f0f3883bd40f74034076591107957 | [
"MIT"
] | 1 | 2022-03-02T19:35:36.000Z | 2022-03-02T19:35:36.000Z | open! Import
open Common
type (_, _) equality = Eq : ('a, 'a) equality | Ne : (_, _) equality
module Context = struct
type 'a t =
| Class_expr : class_expr t
| Class_field : class_field t
| Class_type : class_type t
| Class_type_field : class_type_field t
| Core... | 35.919255 | 90 | 0.631074 |
afd04b9a04ed095ce444b2404647bc7f4596909c | 241 | ml | OCaml | data/derived/comb/progs/unify/prog2520.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/prog2520.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2520.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec wwhile (f,b) =
let f' = f b in
match f' with | (b',false ) -> b' | (b',true ) -> wwhile (f, b');;
let fixpoint (f,b) =
wwhile
((let whilesFun f' b' = let fOfB = f' b' in (b', (b' = fOfB)) in
whilesFun (f, b)), b);;
| 24.1 | 68 | 0.481328 |
afb4e4152d0e8c196b45a396a844444db9eb1cdf | 352 | mli | OCaml | lib/p11_load_mode.mli | cryptosense/pkcs11 | 5f4357d235fc8674fa6bc13d03174f9236fabe34 | [
"BSD-2-Clause"
] | 22 | 2016-09-22T13:40:51.000Z | 2021-08-05T10:50:19.000Z | lib/p11_load_mode.mli | cryptosense/pkcs11 | 5f4357d235fc8674fa6bc13d03174f9236fabe34 | [
"BSD-2-Clause"
] | 42 | 2016-10-03T13:10:21.000Z | 2021-08-12T10:04:10.000Z | lib/p11_load_mode.mli | cryptosense/pkcs11 | 5f4357d235fc8674fa6bc13d03174f9236fabe34 | [
"BSD-2-Clause"
] | 5 | 2016-09-28T06:34:29.000Z | 2021-08-05T07:48:52.000Z | (** How the interaction is done with the DLL. *)
type t = private
| Auto
| FFI
[@@deriving eq, ord, show, yojson]
val ffi : t
(** Call directly each symbol using libffi. *)
val auto : t
(**
Call C_GetFunctionList using libffi.
For each symbol, try to access it through the returned function list.
Otherwis... | 22 | 72 | 0.684659 |
8a805f07055c0f7806bb1e47d6099780e87603dd | 494 | mli | OCaml | src/emitType.mli | kkysen/cstar | c853e2dc37120a7b80baaf68cd8cb8ec2dcc5faf | [
"MIT"
] | 1 | 2021-10-20T04:43:41.000Z | 2021-10-20T04:43:41.000Z | src/emitType.mli | kkysen/cstar | c853e2dc37120a7b80baaf68cd8cb8ec2dcc5faf | [
"MIT"
] | null | null | null | src/emitType.mli | kkysen/cstar | c853e2dc37120a7b80baaf68cd8cb8ec2dcc5faf | [
"MIT"
] | null | null | null | open Core
type t =
| Src
| Tokens
| Ast
| DesugaredAst
| TypedAst
| Lir
| Ir
| Bc
| Asm
| Obj
| Exe
[@@deriving show, eq, ord, enum]
val of_enum_exn : int -> t
val all : t list
val to_string : t -> string
val of_string : string -> t
val extension : t -> no_exe_extension:bool -> string
val d... | 14.529412 | 61 | 0.639676 |
8a82ab00f7a8f7e4b2da5ec3ca9d41d9750af028 | 3,178 | ml | OCaml | src/SideEffects.ml | cristianoc/reanalyze | 389dd682223201b42c33e5c444e5c79e0805adad | [
"MIT"
] | 100 | 2020-04-13T07:50:41.000Z | 2020-05-21T13:12:55.000Z | src/SideEffects.ml | cristianoc/reanalyze | 389dd682223201b42c33e5c444e5c79e0805adad | [
"MIT"
] | 50 | 2020-04-14T10:14:32.000Z | 2020-05-28T06:21:53.000Z | src/SideEffects.ml | cristianoc/reanalyze | 389dd682223201b42c33e5c444e5c79e0805adad | [
"MIT"
] | 4 | 2020-04-16T21:42:11.000Z | 2020-05-07T03:14:56.000Z | let whiteListSideEffects =
[
"Pervasives./.";
"Pervasives.ref";
"Int64.mul";
"Int64.neg";
"Int64.sub";
"Int64.shift_left";
"Int64.one";
"String.length";
]
let whiteTableSideEffects =
lazy
(let tbl = Hashtbl.create 11 in
whiteListSideEffects |> List.iter (fun s -> Hashtbl.... | 36.113636 | 80 | 0.669918 |
8a6382c6f36fba36af2faea4fa32865f75108397 | 49,784 | ml | OCaml | src/set_intf.ml | pewulfman/base | 74e760825824ad68d53149cf25a41a9ae0727bc8 | [
"MIT"
] | null | null | null | src/set_intf.ml | pewulfman/base | 74e760825824ad68d53149cf25a41a9ae0727bc8 | [
"MIT"
] | 4 | 2021-05-18T10:06:59.000Z | 2021-10-21T05:48:27.000Z | src/set_intf.ml | diaozheng999/base | fe3aaecd4859c34db32333c278a76c29acb7bb96 | [
"MIT"
] | null | null | null | open! Import
open! T
module type Elt_plain = sig
type t [@@deriving_inline compare, sexp_of]
val compare : t -> t -> int
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
[@@@end]
end
module Without_comparator = Map_intf.Without_comparator
module With_comparator = Map_intf.With_comparator
module With_first_clas... | 31.330396 | 94 | 0.562932 |
afbeea150463ecec66906ecaa4df57ef5e503f2e | 24,862 | ml | OCaml | infer/src/concurrency/RacerDModels.ml | clayne/infer | 291b75d195b4adc2e6624a70aced05f6890f8299 | [
"MIT"
] | 2 | 2021-12-17T13:38:34.000Z | 2021-12-17T14:06:53.000Z | infer/src/concurrency/RacerDModels.ml | clayne/infer | 291b75d195b4adc2e6624a70aced05f6890f8299 | [
"MIT"
] | 7 | 2017-12-03T16:09:45.000Z | 2018-01-08T15:15:34.000Z | infer/src/concurrency/RacerDModels.ml | clayne/infer | 291b75d195b4adc2e6624a70aced05f6890f8299 | [
"MIT"
] | 2 | 2020-06-23T00:43:10.000Z | 2022-03-24T06:24:50.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
open ConcurrencyModels
module AnnotationAliases = struct
let of_json = function
| `List aliase... | 37.107463 | 130 | 0.676977 |
d2d64b80e2490bed82a75268984644a3205a5e96 | 10,156 | ml | OCaml | src/bin/todo/lib.ml | ludovicdeluna/planet | 753a68d96ec7933697e9c6d2b15ee2a494da4ecd | [
"MIT"
] | 24 | 2019-04-13T21:09:47.000Z | 2022-03-28T10:43:52.000Z | src/bin/todo/lib.ml | ludovicdeluna/planet | 753a68d96ec7933697e9c6d2b15ee2a494da4ecd | [
"MIT"
] | 5 | 2019-10-21T08:15:39.000Z | 2020-03-12T08:41:58.000Z | src/bin/todo/lib.ml | ludovicdeluna/planet | 753a68d96ec7933697e9c6d2b15ee2a494da4ecd | [
"MIT"
] | 1 | 2020-03-12T08:24:13.000Z | 2020-03-12T08:24:13.000Z | open Bedrock
open Baremetal
let stamp task action message () =
let filename =
Filename.concat
Glue.(Database.path Task.database)
(Shapes.Task.(task.uuid) ^ ".qube")
in
let open Result.Infix in
let open Shapes.Task in
Glue.Git.stage [ filename ]
>>= fun () ->
Glue.Git.commit ~desc:message ... | 27.523035 | 80 | 0.551694 |
8a9b6c953e05027cf4e49a16a062acd41bcac5eb | 971 | ml | OCaml | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/typing-gadts/gpr1997.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 1 | 2020-09-24T05:03:32.000Z | 2020-09-24T05:03:32.000Z | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/typing-gadts/gpr1997.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/typing-gadts/gpr1997.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | (* TEST
* expect
*)
module M : sig
type 'a t
type _ typ =
| Foo : 'a -> [`Foo of 'a] typ
| Bar : string -> [`Bar] typ
val use_bar : [`Bar] t -> int
val foo : [`Foo of int] t
end = struct
type 'a t = string
type _ typ =
| Foo : 'a -> [`Foo of 'a] typ
| Bar : string -> [`Bar] typ
l... | 17.981481 | 51 | 0.508754 |
af02e6bd4c905f4935c2e65b6aac63ab1f5a06a4 | 567 | ml | OCaml | code/examples/equeue/simple/a-and-b.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/examples/equeue/simple/a-and-b.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/examples/equeue/simple/a-and-b.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | #use "topfind";;
#require "equeue";;
type event =
A of int
| B
let n = ref 1
let source esys =
if !n <= 10 then begin
Equeue.add_event esys (A !n);
incr n
end
let handler_a esys e =
match e with
A n ->
for i = 1 to n do
Equeue.add_event esys B;
done
| _ ->
raise Eq... | 14.538462 | 34 | 0.606702 |
8a62d8bdee6838dbff15adb72f0f46b1c8198121 | 18,840 | ml | OCaml | hphp/hack/src/hh_single_type_check.ml | yaslama/hhvm | 22887df5fd5e3f58652027800b5f4212e0af7c6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hh_single_type_check.ml | yaslama/hhvm | 22887df5fd5e3f58652027800b5f4212e0af7c6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hh_single_type_check.ml | yaslama/hhvm | 22887df5fd5e3f58652027800b5f4212e0af7c6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Core
ope... | 39.579832 | 107 | 0.632113 |
afe45c3ab63850ee33150e20e0982924e69c9fed | 437 | mli | OCaml | src/dune_env.mli | Khady/dune | 9afd3d215759f65d52c74def6992b2771def3363 | [
"MIT"
] | 1 | 2018-09-14T10:47:11.000Z | 2018-09-14T10:47:11.000Z | src/dune_env.mli | nandor/shmap | 6a730de81a1e8568a61ac0f53af3aebabde8e58b | [
"MIT"
] | null | null | null | src/dune_env.mli | nandor/shmap | 6a730de81a1e8568a61ac0f53af3aebabde8e58b | [
"MIT"
] | null | null | null | open Import
type stanza = Stanza.t = ..
module Stanza : sig
type config =
{ flags : Ordered_set_lang.Unexpanded.t
; ocamlc_flags : Ordered_set_lang.Unexpanded.t
; ocamlopt_flags : Ordered_set_lang.Unexpanded.t
}
type pattern =
| Profile of string
| Any
type t =
{ loc :... | 16.807692 | 52 | 0.610984 |
aff9d7c9a9dfc02d6761a9454f6b6fe7938d77ba | 4,012 | mli | OCaml | libraries/s3/lib/putBucketReplication.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/s3/lib/putBucketReplication.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/putBucketReplication.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<p> Creates a replication configuration or replaces an existing one. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html\">Replication</a> in the <i>Amazon S3 Developer Guide</i>. </p> <note> <p>To perform this operation, the user or role performing the operation mu... | 138.344828 | 3,147 | 0.753739 |
af87008e943e999aacc5934d399bb8af698363c2 | 450 | ml | OCaml | benchmarks/formula/formula2/submissions/sub4.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 10 | 2018-11-06T00:08:12.000Z | 2019-12-05T11:05:16.000Z | benchmarks/formula/formula2/submissions/sub4.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | null | null | null | benchmarks/formula/formula2/submissions/sub4.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 2 | 2020-02-06T14:59:50.000Z | 2022-03-16T19:25:43.000Z | type formula =
True
| False
| Neg of formula
| Or of formula * formula
| And of formula * formula
| Imply of formula * formula
| Equiv of formula * formula
let rec eval : formula -> bool
=fun f -> true
let rec eval a =
match a with
|True->true
|False->false
|Neg (n)->not(eval n)
|Or (q,w)->(eval ... | 21.428571 | 42 | 0.595556 |
8a499ad34570e670c8f4fa29612530064e0752e0 | 304 | mli | OCaml | lib/lex/loc.mli | lichenscript/lichenscript | 79dcdb299cb6101dcc48203bb6373834a5539f35 | [
"Apache-2.0"
] | 48 | 2022-02-15T10:16:54.000Z | 2022-03-30T22:00:23.000Z | lib/lex/loc.mli | vincentdchan/LichenScript | 79dcdb299cb6101dcc48203bb6373834a5539f35 | [
"Apache-2.0"
] | 11 | 2022-02-17T10:31:47.000Z | 2022-03-30T04:18:39.000Z | lib/lex/loc.mli | vincentdchan/LichenScript | 79dcdb299cb6101dcc48203bb6373834a5539f35 | [
"Apache-2.0"
] | 2 | 2022-03-02T16:30:32.000Z | 2022-03-30T17:05:10.000Z |
type position = {
line: int;
column: int;
offset: int;
}
type t = {
source : File_key.t option;
start: position;
_end: position;
}
val none : t
val btwn : t -> t -> t
val mk_pos: int -> int -> int -> position
val source : t -> File_key.t option
val pp : Format.formatter -> t -> unit
| 13.217391 | 41 | 0.598684 |
8a920783809f18d903b247573218b3d9f16746cf | 305 | mli | OCaml | plang/jsGen.mli | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | 5 | 2015-01-30T06:16:32.000Z | 2020-04-14T09:08:49.000Z | plang/jsGen.mli | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | plang/jsGen.mli | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | (* © 2013 RunOrg *)
(** Compile all JS source files to a single JavaScript file. *)
(** Receives a list of all JavaScript file contents, in the correct order,
and the list of variables to be inserted. Outputs a concatenated string. *)
val compile : string list -> (string * string) list -> string
| 38.125 | 79 | 0.701639 |
8a751c9d5cf77f6e6da3994a9274219cef771c08 | 134,904 | ml | OCaml | src/facebook_j.ml | rdegnan/ocaml-facebook | a0684159df7843d3dc09c054624ff0ef4176cac4 | [
"BSD-3-Clause"
] | 2 | 2017-03-24T21:10:29.000Z | 2017-03-25T13:37:05.000Z | src/facebook_j.ml | rdegnan/ocaml-facebook | a0684159df7843d3dc09c054624ff0ef4176cac4 | [
"BSD-3-Clause"
] | null | null | null | src/facebook_j.ml | rdegnan/ocaml-facebook | a0684159df7843d3dc09c054624ff0ef4176cac4 | [
"BSD-3-Clause"
] | null | null | null | (* Auto-generated from "facebook.atd" *)
type api_error = Facebook_t.api_error = {
message: string;
kind: string;
code: int
}
type error = Facebook_t.error = { error: api_error }
type graph_object = Facebook_t.graph_object = {
id: string;
name: string option
}
type picture_data = Facebook_t.picture_data ... | 33.466634 | 732 | 0.403561 |
f3e2091df573a96b32263ca0eff722c2491d7de6 | 110 | ml | OCaml | data/derived/comb/progs/unify/prog0738.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/prog0738.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0738.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec digitsOfInt n =
if n < 0
then []
else (match n / 10 with | 0 -> [0] | _ -> digitsOfInt n []);;
| 18.333333 | 63 | 0.518182 |
afb20901338ca5938f128da0e5ae223490c89f99 | 537 | ml | OCaml | src/address.ml | XVilka/prof_spacetime | 230ebc7a635434c7eec1745920b2f1f99ea1668c | [
"MIT"
] | 24 | 2016-11-29T12:15:05.000Z | 2022-01-04T10:51:57.000Z | src/address.ml | XVilka/prof_spacetime | 230ebc7a635434c7eec1745920b2f1f99ea1668c | [
"MIT"
] | 25 | 2016-11-30T14:58:40.000Z | 2021-02-10T15:55:48.000Z | src/address.ml | XVilka/prof_spacetime | 230ebc7a635434c7eec1745920b2f1f99ea1668c | [
"MIT"
] | 7 | 2016-12-11T16:56:35.000Z | 2021-06-16T19:59:36.000Z |
type t = Int64.t
let of_int64 t = t
let to_string = Int64.to_string
let equal = Int64.equal
let compare = Int64.compare
let equal_list l1 l2 =
let rec loop l1 l2 =
match l1, l2 with
| [], [] -> true
| t1 :: rest1, t2 :: rest2 ->
equal t1 t2 && loop rest1 rest2
| _ :: _, [] -> false
|... | 14.513514 | 39 | 0.588454 |
af16626443700ca0f84af92135d34bfcdbaeb0ce | 418 | ml | OCaml | data/sp14/1383.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/1383.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/1383.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec clone x n =
if n <= 0
then []
else (match x with | [] -> x | h::t -> (clone h) :: (x (n - 1)));;
(* fix
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));;
*)
(* changed spans
(5,8)-(5,67)
x :: (clone x (n - 1))
AppG [VarG,AppG [EmptyG,EmptyG]]
*)
(* type error slice
(3,3)-(5,67)
(... | 13.483871 | 68 | 0.461722 |
afbc1ed383d0bf4b65c4b036835125e1834a29e7 | 332 | mli | OCaml | ag_pathanalysis/ocaml/prune_unreachable.mli | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2019-12-05T19:47:42.000Z | 2021-05-05T13:41:16.000Z | ag_pathanalysis/ocaml/prune_unreachable.mli | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | null | null | null | ag_pathanalysis/ocaml/prune_unreachable.mli | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2021-04-20T07:44:02.000Z | 2021-04-20T08:38:41.000Z | (** Code for removing unreachable nodes in a CFG. *)
(** [prune_unreachable_ast g] returns an AST CFG in which nodes
unreachable from BB_Entry are removed. *)
val prune_unreachable_ast : Cfg.AST.G.t -> Cfg.AST.G.t
(** Same as [prune_unreachable_ast] but for SSA CFGs. *)
val prune_unreachable_ssa : Cfg.SSA.G.t -> ... | 36.888889 | 63 | 0.71988 |
8a696d8d351e92df1fca8a4b922a160518151d3b | 9,169 | ml | OCaml | src/hack_forked/utils/string/string_utils.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/hack_forked/utils/string/string_utils.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/hack_forked/utils/string/string_utils.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
exception Incorrect_format
let soi = string_of_int
let string_of_char = String.make 1
let string_before s n = String.sub s 0 n... | 30.062295 | 100 | 0.636165 |
f3fa4ceba37be110b392775db6d69de52fcd3b5c | 4,522 | ml | OCaml | lib/week_10_DynamicProgramming.ml | jansky/ysc2229-part-two | c52902e58b82813c438b55638c1da4c6dd8ee907 | [
"MIT"
] | null | null | null | lib/week_10_DynamicProgramming.ml | jansky/ysc2229-part-two | c52902e58b82813c438b55638c1da4c6dd8ee907 | [
"MIT"
] | null | null | null | lib/week_10_DynamicProgramming.ml | jansky/ysc2229-part-two | c52902e58b82813c438b55638c1da4c6dd8ee907 | [
"MIT"
] | null | null | null | (*
This file is part of teaching material of Yale-NUS College module
"YSC2229: Introductory Data Structures and Algorithms"
Copyright (c) 2019 Ilya Sergey
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the S... | 25.988506 | 78 | 0.553516 |
8a855f3e6327649c3b3042dead05c1fdabff1c83 | 18,283 | ml | OCaml | hphp/hack/src/js/hh_ide.ml | wjywbs/hhvm | 9d44d30ec32618e30a82274923b5842b62a9c0f9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/js/hh_ide.ml | wjywbs/hhvm | 9d44d30ec32618e30a82274923b5842b62a9c0f9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/js/hh_ide.ml | wjywbs/hhvm | 9d44d30ec32618e30a82274923b5842b62a9c0f9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Core
ope... | 35.990157 | 99 | 0.631023 |
afe62ccb86de82e3a2087838db3035f0ea21fd10 | 1,832 | ml | OCaml | libraries/rds/lib/describeExportTasks.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/rds/lib/describeExportTasks.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/rds/lib/describeExportTasks.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DescribeExportTasksMessage.t
type output = ExportTasksMessage.t
type error = Errors_internal.t
let service = "rds"
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.... | 31.050847 | 92 | 0.576419 |
f369e446576a60761098f21f153e60086cb39cd9 | 23,421 | ml | OCaml | src/proto_alpha/lib_protocol/test/helpers/block.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/test/helpers/block.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/test/helpers/block.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 34.956716 | 83 | 0.67828 |
8a3fdc8885d24717df93b7e6d67b29349daac453 | 93 | ml | OCaml | syntax/testdata/external.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 770 | 2017-01-25T13:29:15.000Z | 2022-03-28T01:11:57.000Z | syntax/testdata/external.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 22 | 2017-02-21T03:01:15.000Z | 2020-02-27T15:56:40.000Z | syntax/testdata/external.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 37 | 2017-02-26T07:22:24.000Z | 2022-03-27T18:26:14.000Z | external foo: int = "c_foo";
type myint = int;
external cfun: int -> int -> int = "cfun";
()
| 18.6 | 42 | 0.602151 |
8a9af8743d94a49ef654afd5a07cca896b9b97be | 3,831 | mli | OCaml | src/core/Refiner.mli | RedPRL/cool | af80d9665f0e552537561205566652a77bf3367e | [
"Apache-2.0"
] | 143 | 2020-05-11T19:40:53.000Z | 2022-03-31T14:55:17.000Z | src/core/Refiner.mli | RedPRL/cool | af80d9665f0e552537561205566652a77bf3367e | [
"Apache-2.0"
] | 200 | 2020-05-09T14:32:57.000Z | 2022-03-30T20:03:18.000Z | src/core/Refiner.mli | RedPRL/cool | af80d9665f0e552537561205566652a77bf3367e | [
"Apache-2.0"
] | 11 | 2020-05-12T12:27:57.000Z | 2022-03-17T07:50:52.000Z | (** This is the basis of trusted inference rules for cooltt. This module also contains
some auxiliary tactics, but these don't need to be trusted so they should be moved elsewhere. *)
module D := Domain
module S := Syntax
module RM := Monads.RefineM
open Tactic
type ('a, 'b) quantifier = 'a -> Ident.t * (var -> ... | 25.711409 | 100 | 0.623858 |
8a05e255041cc50f5f18d449743404fc970a1a48 | 2,095 | mli | OCaml | coq/plugins/ssr/ssrfwd.mli | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq/plugins/ssr/ssrfwd.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq/plugins/ssr/ssrfwd.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/ *********... | 34.916667 | 128 | 0.529833 |
8a83a06dc495336f448d58bd2f2242a0a0d9ee0f | 5,391 | ml | OCaml | src_top/lens.ml | VarunKoyyalagunta/rmem | 9de95224f6293acb3cd6022471219a0a01b9b260 | [
"BSD-2-Clause"
] | 37 | 2019-01-14T13:08:24.000Z | 2022-02-14T20:57:12.000Z | src_top/lens.ml | VarunKoyyalagunta/rmem | 9de95224f6293acb3cd6022471219a0a01b9b260 | [
"BSD-2-Clause"
] | 10 | 2019-07-26T09:34:35.000Z | 2021-12-31T20:17:32.000Z | src_top/lens.ml | VarunKoyyalagunta/rmem | 9de95224f6293acb3cd6022471219a0a01b9b260 | [
"BSD-2-Clause"
] | 12 | 2019-02-13T17:50:41.000Z | 2021-12-31T19:08:00.000Z | (*===============================================================================*)
(* *)
(* rmem executable model *)
(* ===================== ... | 26.169903 | 83 | 0.465405 |
8a7205b507051f1482ff85134c40fbbe6a09196d | 1,227 | mli | OCaml | hphp/hack/src/server/serverDocblockAt.mli | modyharshit23/hhvm | dc14931d80a49c60fac2365b92f3648e12d9b0f4 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-11-01T13:46:07.000Z | 2019-11-01T13:46:07.000Z | hphp/hack/src/server/serverDocblockAt.mli | modyharshit23/hhvm | dc14931d80a49c60fac2365b92f3648e12d9b0f4 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverDocblockAt.mli | modyharshit23/hhvm | dc14931d80a49c60fac2365b92f3648e12d9b0f4 | [
"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.
*
*)
(** Returns the documentation comments for the given symbol or expression. *)
val go_comments_for_symbol :
def:'a ... | 26.106383 | 81 | 0.734311 |
8a9a490f45ad4ce4f29fa5d575a92320f1610813 | 24,144 | ml | OCaml | hphp/hack/src/server/serverLazyInit.ml | azjezz/hhvm | bb38fc533db545c1e9be9b5c373c759cd28b0f33 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverLazyInit.ml | azjezz/hhvm | bb38fc533db545c1e9be9b5c373c759cd28b0f33 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverLazyInit.ml | azjezz/hhvm | bb38fc533db545c1e9be9b5c373c759cd28b0f33 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-12-30T13:22:47.000Z | 2020-12-30T13:22:47.000Z | (**
* 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.
*
*)
(* Lazy Initialization:
During Lazy initialization, hh_server tries to do as little work as possible.
If we ... | 39.907438 | 97 | 0.741965 |
8a9a0c5b591518bed6e81ee18d32dfd529372434 | 1,736 | ml | OCaml | examples/common_lwt.ml | patricoferris/notty | 67c602e3b32fdd6f4356c8e6b7537ff811ac14bf | [
"0BSD"
] | 296 | 2015-10-05T18:26:34.000Z | 2022-03-22T21:53:59.000Z | examples/common_lwt.ml | patricoferris/notty | 67c602e3b32fdd6f4356c8e6b7537ff811ac14bf | [
"0BSD"
] | 34 | 2016-02-05T00:01:51.000Z | 2022-02-25T11:02:08.000Z | examples/common_lwt.ml | patricoferris/notty | 67c602e3b32fdd6f4356c8e6b7537ff811ac14bf | [
"0BSD"
] | 19 | 2016-01-31T22:06:43.000Z | 2022-01-22T16:56:16.000Z | (* Copyright (c) 2016-2017 David Kaloper Meršinjak. All rights reserved.
See LICENSE.md. *)
open Notty
open Lwt.Infix
include Common
module T = Notty_lwt.Term
let simpleterm_lwt ~imgf ~f ~s =
let term = T.create () in
let imgf (w, h) s =
I.(string ~attr:A.(fg lightblack) "[ESC quits.]" <-> imgf (w, h - 1... | 32.754717 | 78 | 0.5553 |
8a772e372885b57addc3677413ba91a6809099a8 | 25,886 | mll | OCaml | src/frontc/clexer.mll | faddeenkov/cil_fork | 6f9e7ba04a3e8fdd1cc9fef23a5118fa11ff9e24 | [
"BSD-3-Clause"
] | 1 | 2020-08-27T08:11:01.000Z | 2020-08-27T08:11:01.000Z | src/frontc/clexer.mll | keremc/cil | 2a037839ba6fba735f53cc20788eca24c9a45853 | [
"BSD-3-Clause"
] | null | null | null | src/frontc/clexer.mll | keremc/cil | 2a037839ba6fba735f53cc20788eca24c9a45853 | [
"BSD-3-Clause"
] | null | null | null | (*
*
* Copyright (c) 2001-2003,
* George C. Necula <necula@cs.berkeley.edu>
* Scott McPeak <smcpeak@cs.berkeley.edu>
* Wes Weimer <weimer@cs.berkeley.edu>
* Ben Liblit <liblit@cs.berkeley.edu>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or ... | 36.71773 | 95 | 0.536004 |
af5ff536932e8c5fc4a17a0d86952735f5eefdaa | 3,063 | ml | OCaml | data/sp14_min/0646.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/0646.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/0646.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec clone x n =
match n with | n when n <= 0 -> [] | _ -> x :: (clone x (n - 1));;
let rec padZero l1 l2 =
if (List.length l1) > (List.length l2)
then (l1, ((clone 0 ((List.length l1) - (List.length l2))) @ l2))
else (((clone 0 ((List.length l2) - (List.length l1))) @ l1), l2);;
let rec removeZero l =
... | 26.634783 | 79 | 0.507999 |
8a8f73438b3b22d59aceec08fe5b41ba40541520 | 17,444 | ml | OCaml | src/dune/lib_rules.ml | thierry-martinez/dune | e80c901f767a4f904dbbba18d2b5934f33b18e32 | [
"MIT"
] | null | null | null | src/dune/lib_rules.ml | thierry-martinez/dune | e80c901f767a4f904dbbba18d2b5934f33b18e32 | [
"MIT"
] | null | null | null | src/dune/lib_rules.ml | thierry-martinez/dune | e80c901f767a4f904dbbba18d2b5934f33b18e32 | [
"MIT"
] | null | null | null | open! Stdune
open Import
open! No_io
module Buildable = Dune_file.Buildable
module Library = Dune_file.Library
module Mode_conf = Dune_file.Mode_conf
let msvc_hack_cclibs =
List.map ~f:(fun lib ->
let lib =
match String.drop_prefix lib ~prefix:"-l" with
| None -> lib
| Some l -> l ^ ".l... | 40.37963 | 82 | 0.658278 |
aff96f51711c0e6a05ba9ccdb0675e5a0657f1fd | 1,645 | mli | OCaml | drawing.mli | icefoxen/games-spitting-camel | 648405756d364b591e1645c10f2efb4bd175f3a9 | [
"MIT"
] | null | null | null | drawing.mli | icefoxen/games-spitting-camel | 648405756d364b591e1645c10f2efb4bd175f3a9 | [
"MIT"
] | null | null | null | drawing.mli | icefoxen/games-spitting-camel | 648405756d364b591e1645c10f2efb4bd175f3a9 | [
"MIT"
] | null | null | null | val withMatrix : ('a -> 'b) -> 'a -> 'b
val withPrim : GlDraw.shape -> ('a -> 'b) -> 'a -> 'b
val withAttribs : GlMisc.attrib list -> ('a -> 'b) -> 'a -> 'b
val vertices : Gl.point2 list -> unit
val texturedVertices : (float * float) list -> Gl.point2 list -> unit
val translate : float * float -> unit
val rotate : floa... | 45.694444 | 77 | 0.567173 |
d2e13642808a445412fbb86422fc43a8a4f3c434 | 4,795 | ml | OCaml | src/prover_calculi/eq_encode.ml | dillonhuff/zipperposition | 698ab26a214d1acd059934269424e264ced183bf | [
"BSD-2-Clause"
] | 1 | 2021-12-04T02:49:56.000Z | 2021-12-04T02:49:56.000Z | src/prover_calculi/eq_encode.ml | Guoyanzeng/zipperposition | cf8ea447d3c19946cfe5f9762deb1c9dcb1c3103 | [
"BSD-2-Clause"
] | null | null | null | src/prover_calculi/eq_encode.ml | Guoyanzeng/zipperposition | cf8ea447d3c19946cfe5f9762deb1c9dcb1c3103 | [
"BSD-2-Clause"
] | null | null | null |
(* This file is free software, part of Zipperposition. See file "license" for more details. *)
(** {1 Applicative Encoding} *)
open Logtk
open Libzipperposition
let section = Util.Section.make ~parent:Const.section "eq_encode"
let mode_ : [ `None | `Extensional | `Intensional ] ref = ref `None
module T = TypedSTe... | 33.298611 | 98 | 0.651095 |
8a21062ec3aa0a8d4ab5cc86bd4cf5fde508f233 | 37,719 | ml | OCaml | src/typing/object_kit.ml | gabrielrumiranda/flow | d73947eb839bf591b3f5df817b4e27a6f700a9e9 | [
"MIT"
] | 1 | 2019-10-03T00:45:08.000Z | 2019-10-03T00:45:08.000Z | src/typing/object_kit.ml | dengxiaoning/flow | 3efa6bb38413ff9b4fd823ca294bd70010c85fd5 | [
"MIT"
] | 8 | 2020-04-06T11:23:08.000Z | 2022-03-24T12:41:12.000Z | src/typing/object_kit.ml | dengxiaoning/flow | 3efa6bb38413ff9b4fd823ca294bd70010c85fd5 | [
"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
module type OBJECT = sig
val run: Context.t -> Trace.t -> use_op:Type.use_op -> Reason.t -> Type.Object.r... | 41.49505 | 98 | 0.586733 |
af503820d374f5356df0d0f7c2748764acbe8a42 | 4,399 | mli | OCaml | apak/pathexp.mli | anvayg/duet | b7cadaf486dc81a911189f582a53d4eee8ef69b9 | [
"MIT"
] | 1 | 2021-12-14T06:46:12.000Z | 2021-12-14T06:46:12.000Z | apak/pathexp.mli | anvayg/duet | b7cadaf486dc81a911189f582a53d4eee8ef69b9 | [
"MIT"
] | null | null | null | apak/pathexp.mli | anvayg/duet | b7cadaf486dc81a911189f582a53d4eee8ef69b9 | [
"MIT"
] | null | null | null | (** Path expression algorithms *)
module type G = sig
type t
module V : Graph.Sig.VERTEX
module E : Graph.Sig.EDGE with type vertex = V.t
val fold_vertex : (V.t -> 'a -> 'a) -> t -> 'a -> 'a
val fold_edges_e : (E.t -> 'a -> 'a) -> t -> 'a -> 'a
val fold_succ : (V.t -> 'a -> 'a) -> t -> V.t -> 'a -> 'a
v... | 37.922414 | 89 | 0.582178 |
afb00ff232b2d1c9208d955a3c7709041b23ea4c | 206 | ml | OCaml | result/cafe2/sigma/sub5/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/prog/sigma/sub5/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/prog/sigma/sub5/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | let rec sigma (f : int -> int) (a : int) (b : int) : int =
if a < 0 || b < 0 then raise Invalid_argument "negative argument"
else if a = b then f b
else if a > b then 0
else f a + sigma f (a + 1) b
| 34.333333 | 67 | 0.572816 |
8a52f5d8afb2a8da047c28f055ce409040b19f36 | 2,755 | mli | OCaml | infer/src/bufferoverrun/bufferOverrunField.mli | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"MIT"
] | 4 | 2020-06-16T14:40:24.000Z | 2021-07-28T18:02:26.000Z | infer/src/bufferoverrun/bufferOverrunField.mli | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"MIT"
] | 25 | 2021-02-08T13:49:24.000Z | 2022-02-28T03:34:19.000Z | infer/src/bufferoverrun/bufferOverrunField.mli | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"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
(** {2 Inferbo-specific constant field names} *)
val pp :
pp_lhs:(Format.formatter -> 'a -> unit)
-> sep:string
... | 29.945652 | 102 | 0.668603 |
8a9dd286262b82079f08323d75161979041a4437 | 43,745 | ml | OCaml | src/proto_alpha/lib_client/client_proto_multisig.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | 3 | 2021-12-16T20:28:56.000Z | 2022-01-21T01:37:49.000Z | src/proto_alpha/lib_client/client_proto_multisig.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | 5 | 2022-01-20T21:30:24.000Z | 2022-03-11T14:43:56.000Z | src/proto_alpha/lib_client/client_proto_multisig.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | 1 | 2021-07-19T07:00:37.000Z | 2021-07-19T07:00:37.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2019-2021 Nomadic Labs <contact@nomadic-labs.com> *)
... | 36.093234 | 126 | 0.629283 |
af7049c0f6c5cbcd82eac39847a4cdc7657bb242 | 818 | ml | OCaml | tests/frontend/expect/parsing/bad_expressions_not_terminated.ml | paulocoghi/bolt | a81627f95af6577cd465df09290a51c9d469c667 | [
"MIT"
] | 305 | 2020-05-08T11:09:53.000Z | 2022-03-19T18:43:58.000Z | tests/frontend/expect/parsing/bad_expressions_not_terminated.ml | lqwu/bolt | 1faf19d698852fdb6af2ee005a5f036ee1c76503 | [
"MIT"
] | 53 | 2019-11-10T13:46:46.000Z | 2022-02-04T17:20:15.000Z | tests/frontend/expect/parsing/bad_expressions_not_terminated.ml | lqwu/bolt | 1faf19d698852fdb6af2ee005a5f036ee1c76503 | [
"MIT"
] | 33 | 2020-05-09T00:35:53.000Z | 2022-03-14T21:10:25.000Z | open Core
open Print_parsed_ast
let%expect_test "Comment not terminated" =
print_parsed_ast "
/* This comment hasn't been terminated
" ;
[%expect
{| Line:3 Position:3: Lexer - Unexpected EOF - please terminate your comment. |}]
let%expect_test "Class defn not terminated" =
print_parsed_ast
"
... | 20.45 | 85 | 0.584352 |
afbe61bb9fdc8647156607e1500e0fc281d33ac6 | 4,907 | mli | OCaml | eval/ocaml/stdlib/camlinternalOO.mli | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/ocaml/stdlib/camlinternalOO.mli | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/ocaml/stdlib/camlinternalOO.mli | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Jerome Vouill... | 32.282895 | 74 | 0.571429 |
8a7837bbd0a9555c650e5d103131fab35048dd5b | 2,624 | ml | OCaml | src/ocaml-output/FStar_Format.ml | lastland/FStar | 39429c44c8c581f50bdb8325b52bed7afb99370c | [
"Apache-2.0"
] | 7 | 2017-11-13T18:30:47.000Z | 2020-10-03T16:09:21.000Z | src/ocaml-output/FStar_Format.ml | lastland/FStar | 39429c44c8c581f50bdb8325b52bed7afb99370c | [
"Apache-2.0"
] | 1 | 2018-11-06T18:16:15.000Z | 2018-11-06T18:16:15.000Z | src/ocaml-output/FStar_Format.ml | lastland/FStar | 39429c44c8c581f50bdb8325b52bed7afb99370c | [
"Apache-2.0"
] | 5 | 2017-12-18T10:45:08.000Z | 2021-11-22T12:44:53.000Z | open Prims
type doc =
| Doc of Prims.string
let (uu___is_Doc : doc -> Prims.bool) = fun projectee -> true
let (__proj__Doc__item___0 : doc -> Prims.string) =
fun projectee -> match projectee with | Doc _0 -> _0
let (empty : doc) = Doc ""
let (hardline : doc) = Doc "\n"
let (text : Prims.string -> doc) = fun ... | 36.444444 | 73 | 0.577363 |
8a2cac0751ccc43ed2edfcb5eae80976ca8e5985 | 3,448 | ml | OCaml | src/interp.ml | nopid/gnirut | 0450a48b4e1634b55e697b36439a8862c2c604e2 | [
"CECILL-B"
] | null | null | null | src/interp.ml | nopid/gnirut | 0450a48b4e1634b55e697b36439a8862c2c604e2 | [
"CECILL-B"
] | null | null | null | src/interp.ml | nopid/gnirut | 0450a48b4e1634b55e697b36439a8862c2c604e2 | [
"CECILL-B"
] | null | null | null | open Rtm
open Parsetree
open Instr
type env = (string, frtm) Hashtbl.t
type state = { plvl: int; mutable ilvl: int option; def: (string list * string * string list) option; func: bool; mutable m: rtm; e: env }
type t = env * state list ref
exception Bad_Indent
exception NIY
let create () = Hashtbl.create 97, ref [ {... | 30.785714 | 138 | 0.577436 |
8a40724d9fd8464f689dd4d62587d92b4a716558 | 319 | ml | OCaml | h1/lib/cps.ml | anuragsoni/h1 | 36faaef1f49df50a59e21ab28ca833fae05ce142 | [
"MIT"
] | 7 | 2021-05-06T09:34:38.000Z | 2021-05-30T21:14:49.000Z | h1/lib/cps.ml | anuragsoni/h1 | 36faaef1f49df50a59e21ab28ca833fae05ce142 | [
"MIT"
] | null | null | null | h1/lib/cps.ml | anuragsoni/h1 | 36faaef1f49df50a59e21ab28ca833fae05ce142 | [
"MIT"
] | null | null | null | type 'a t = ('a -> unit) -> unit
let return x on_succ = on_succ x
let map t ~f on_succ = t (fun v -> on_succ (f v))
let bind t ~f on_succ = t (fun v -> (f v) on_succ)
module Syntax = struct
let ( let* ) t f = bind t ~f
let ( let+ ) t f = map t ~f
end
let run t on_succ = t on_succ
let make f on_succ = f on_succ
| 22.785714 | 50 | 0.601881 |
af856d5cd23ac4cecd1139e62c5de2712f2f911d | 8,101 | ml | OCaml | src/Synthesis/Synthesis.ml | generic-group-analyzer/gga | 75d362fb3db4cc34b8e3fc7e6d76d8d31068457f | [
"MIT"
] | 2 | 2016-08-17T11:00:45.000Z | 2019-04-14T14:00:14.000Z | src/Synthesis/Synthesis.ml | generic-group-analyzer/gga | 75d362fb3db4cc34b8e3fc7e6d76d8d31068457f | [
"MIT"
] | null | null | null | src/Synthesis/Synthesis.ml | generic-group-analyzer/gga | 75d362fb3db4cc34b8e3fc7e6d76d8d31068457f | [
"MIT"
] | null | null | null | (* This file is distributed under the MIT License (see LICENSE). *)
(*s Synthesize SPS. *)
(*i*)
open Util
open LPoly
open LStringPoly
open InteractiveAnalyze
module IR = IntRing
(*i*)
type setting = TY1 | TY2 | TY3
let gnames_of_setting = function
| TY1 -> ("G","G")
| TY2 | TY3 -> ("G1","G2")
type sps_... | 30.802281 | 100 | 0.594001 |
8a93fad8cc3e5038e2d98aa9c6dcd2df648fc1e9 | 3,330 | mli | OCaml | coq/engine/nameops.mli | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq/engine/nameops.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq/engine/nameops.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/ *********... | 34.329897 | 97 | 0.536937 |
af458107086a608a63eab0a81a5d42f9800c7061 | 3,428 | ml | OCaml | hphp/hack/src/server/serverGlobalState.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 7 | 2021-09-20T18:47:18.000Z | 2021-09-20T23:02:22.000Z | hphp/hack/src/server/serverGlobalState.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-08-21T07:48:37.000Z | 2021-08-21T07:48:37.000Z | hphp/hack/src/server/serverGlobalState.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-01-29T08:44:22.000Z | 2021-01-29T08:44:22.000Z | (*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
type t = {
saved_root: Path.t;
saved_hhi: Path.t;
saved_tmp: Path.t;
saved_gi_tmp: string;
trace: bool;
... | 29.050847 | 70 | 0.710035 |
8a8dbe83800a2ecfa062664b99a450e292aa629d | 479 | ml | OCaml | posix-uname/src/generator/gen_constants_c.ml | wizeman/ocaml-posix | d712c42aad7fcc40e74230d6146c1b62cfaca811 | [
"MIT"
] | 28 | 2019-12-21T05:45:06.000Z | 2021-11-17T10:48:57.000Z | posix-uname/src/generator/gen_constants_c.ml | wizeman/ocaml-posix | d712c42aad7fcc40e74230d6146c1b62cfaca811 | [
"MIT"
] | 6 | 2020-04-12T22:01:05.000Z | 2021-06-29T13:21:33.000Z | posix-uname/src/generator/gen_constants_c.ml | wizeman/ocaml-posix | d712c42aad7fcc40e74230d6146c1b62cfaca811 | [
"MIT"
] | 2 | 2020-04-12T21:55:33.000Z | 2021-04-30T12:32:00.000Z | module Types = Posix_base.Generators.Types (struct
module Types = Posix_uname_constants.Def
let c_headers =
{|
#include <sys/utsname.h>
#define SYSNAME_LEN (sizeof(((struct utsname*)0)->sysname))
#define NODENAME_LEN (sizeof(((struct utsname*)0)->nodename))
#define RELEASE_LEN (sizeof(((struct utsname*)0)->re... | 28.176471 | 61 | 0.716075 |
8a574b5d8b946d75f87374a7b8ab00d22e73adcf | 1,238 | ml | OCaml | tests/script/match.ml | glampert/moon-lang | 03fae5eb15bd3cdd05d8041303e941e810b28439 | [
"MIT"
] | 43 | 2016-03-12T01:11:45.000Z | 2021-07-12T10:26:36.000Z | tests/script/match.ml | glampert/moon-lang | 03fae5eb15bd3cdd05d8041303e941e810b28439 | [
"MIT"
] | 2 | 2016-03-12T00:57:29.000Z | 2020-09-23T15:42:23.000Z | tests/script/match.ml | glampert/moon-lang | 03fae5eb15bd3cdd05d8041303e941e810b28439 | [
"MIT"
] | null | null | null |
// -----------------------------------------------
// Testing the 'match with' statement
// -----------------------------------------------
let test1 = 1;
match test1 with
case 0 -> println("zero"); end
case 1 -> println("one"); end
case 2 -> println("two"); end
default -> println("default: ", te... | 23.807692 | 57 | 0.51454 |
affdaa3848537a87b13596bd3a09276d7f6b0979 | 5,210 | ml | OCaml | optimizations/lib/fftw-3.3.4/genfft/gen_twidsq_c.ml | albertsgrc/ftdock-opt | 3361d1f18bf529958b78231fdcf139b1c1c1f232 | [
"MIT"
] | 34 | 2019-05-03T14:45:49.000Z | 2022-01-05T17:43:27.000Z | optimizations/lib/fftw-3.3.4/genfft/gen_twidsq_c.ml | albertsgrc/ftdock-opt | 3361d1f18bf529958b78231fdcf139b1c1c1f232 | [
"MIT"
] | 61 | 2017-04-02T05:50:44.000Z | 2017-11-22T02:32:43.000Z | optimizations/lib/fftw-3.3.4/genfft/gen_twidsq_c.ml | albertsgrc/ftdock-opt | 3361d1f18bf529958b78231fdcf139b1c1c1f232 | [
"MIT"
] | 15 | 2019-04-29T14:49:59.000Z | 2021-11-15T13:29:27.000Z | (*
* Copyright (c) 1997-1999 Massachusetts Institute of Technology
* Copyright (c) 2003, 2007-14 Matteo Frigo
* Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publi... | 27.712766 | 82 | 0.634741 |
8a7ebb349c9feb4239f7e77d5510a23632e89b14 | 238 | mli | OCaml | src/lib/Conversion.mli | ecavallo/cooltt | 62af87a69da3da541c03420cf950c2473a947d33 | [
"MIT"
] | null | null | null | src/lib/Conversion.mli | ecavallo/cooltt | 62af87a69da3da541c03420cf950c2473a947d33 | [
"MIT"
] | null | null | null | src/lib/Conversion.mli | ecavallo/cooltt | 62af87a69da3da541c03420cf950c2473a947d33 | [
"MIT"
] | null | null | null | module D := Domain
open CoolBasis
open Monads
module Error :
sig
type t
val pp : t Pp.printer
end
val equal_con : D.tp -> D.con -> D.con -> [`Ok | `Err of Error.t] quote
val equal_tp : D.tp -> D.tp -> [`Ok | `Err of Error.t] quote | 19.833333 | 71 | 0.62605 |
af4ed6eff7d791229809e1033a9d9161f62bd18b | 213 | ml | OCaml | src/common/flow_version.ml | samwgoldman/flow | 2eb5a78d92c167117ba9caae070afd2b9f598599 | [
"MIT"
] | 1 | 2020-02-15T06:37:51.000Z | 2020-02-15T06:37:51.000Z | src/common/flow_version.ml | jahau/flow | 20c5f3de234c4207288d86bc8516caa5b7a2f73a | [
"MIT"
] | null | null | null | src/common/flow_version.ml | jahau/flow | 20c5f3de234c4207288d86bc8516caa5b7a2f73a | [
"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.
*)
let version = "0.118.0"
| 23.666667 | 66 | 0.699531 |
8a3a206bdc5301bcfabd9a93e519777b86751c70 | 52,273 | ml | OCaml | analysis/test/moduleTrackerTest.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | null | null | null | analysis/test/moduleTrackerTest.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | null | null | null | analysis/test/moduleTrackerTest.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | 1 | 2021-02-20T13:09:30.000Z | 2021-02-20T13:09:30.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Core
open Ast
open Pyre
open OUnit2
module ModuleTracker = Analysis.ModuleTracker
let touch path = File.create path ~content:... | 36.100138 | 106 | 0.66717 |
affd453f106d36015a2164a003257ade9c87a4b5 | 7,878 | ml | OCaml | data/derived/comb/progs/unify/prog5335.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/prog0431.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0431.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... | 24.61875 | 148 | 0.612846 |
8a970952df0f7e7699b97a8fccf7b3733b6e293b | 1,329 | mli | OCaml | src/parser_utils/scope_api.mli | Ricardo-Marques/flow | e3983c7a423eefa1678e33e026c453487dd626bc | [
"MIT"
] | 1 | 2021-03-12T10:46:28.000Z | 2021-03-12T10:46:28.000Z | src/parser_utils/scope_api.mli | Ricardo-Marques/flow | e3983c7a423eefa1678e33e026c453487dd626bc | [
"MIT"
] | null | null | null | src/parser_utils/scope_api.mli | Ricardo-Marques/flow | e3983c7a423eefa1678e33e026c453487dd626bc | [
"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 scope = int
type use = Loc.t
type uses = Utils_js.LocSet.t
module Def: sig
type t = {
locs: Loc.t Nel.t;
name: int;
a... | 26.58 | 95 | 0.667419 |
8a9ea4b7036d1bb6ce8553b3023136af31543c14 | 10,758 | ml | OCaml | oldsrc4/server/serverrealms.ml | icefoxen/games-melee | a32ed0a237ea196258856e79c7017041e4a3df91 | [
"MIT"
] | null | null | null | oldsrc4/server/serverrealms.ml | icefoxen/games-melee | a32ed0a237ea196258856e79c7017041e4a3df91 | [
"MIT"
] | null | null | null | oldsrc4/server/serverrealms.ml | icefoxen/games-melee | a32ed0a237ea196258856e79c7017041e4a3df91 | [
"MIT"
] | null | null | null | (* serverrealms.ml
A realm is what we call a level or arena; a gameplay area of a certain
fixed size. We have one object that keeps track of all the things like
collision detection and physics handling.
This is the server-side, so we do no drawing, but instead send
all relevant info to the clients.
... | 29.473973 | 86 | 0.655977 |
8aa5265f1d06b9ac495a8245d10f7d606d1e2cd0 | 1,875 | ml | OCaml | src/third-party/ocaml-vlq/src/vlq.ml | kevinold/flow | ef3393c014ef3dc1e006fd17e16462e3c3acb563 | [
"MIT"
] | 2 | 2018-02-28T06:36:27.000Z | 2018-02-28T06:36:30.000Z | src/third-party/ocaml-vlq/src/vlq.ml | kevinold/flow | ef3393c014ef3dc1e006fd17e16462e3c3acb563 | [
"MIT"
] | null | null | null | src/third-party/ocaml-vlq/src/vlq.ml | kevinold/flow | ef3393c014ef3dc1e006fd17e16462e3c3acb563 | [
"MIT"
] | 1 | 2018-02-28T06:36:11.000Z | 2018-02-28T06:36:11.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.
*)
(* VLQ (variable-length quantity) encoder
https://en.wikipedia.org/wiki/Variable-length_quantity *)
module type Config = sig
val s... | 30.737705 | 81 | 0.685867 |
8a254b2e9e4500732e42346d02596edb83adce73 | 883 | ml | OCaml | libraries/ec2/lib/deleteVpnGateway.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/deleteVpnGateway.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/deleteVpnGateway.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DeleteVpnGatewayRequest.t
type output = unit
type error = Errors_internal.t
let service = "ec2"
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
[ "Vers... | 23.864865 | 90 | 0.638732 |
8a982fb975284105b82e24e5de3d6dc55088a5f1 | 22,369 | ml | OCaml | shredded/shredded_renumber.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | shredded/shredded_renumber.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | shredded/shredded_renumber.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 36.491028 | 123 | 0.626403 |
8a52222ca541d8f9858fc57c239381da16a4f548 | 802 | ml | OCaml | hphp/hack/src/stubs/remoteScheduler.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/stubs/remoteScheduler.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/stubs/remoteScheduler.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"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.
*
*)
type schedule_env = {
bin_root: Path.t;
eden_threshold: int option;
files: (Relative_path.t * FileInfo.names) list optio... | 25.870968 | 70 | 0.736908 |
8a3adb9852100d126f1d8ffe26d998252d80a97f | 1,263 | mli | OCaml | libraries/ec2/lib/createTransitGatewayMulticastDomain.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/ec2/lib/createTransitGatewayMulticastDomain.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/createTransitGatewayMulticastDomain.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<p>Creates a multicast domain using the specified transit gateway.</p> <p>The transit gateway must be in the available state before you create a domain. Use <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGateways.html\">DescribeTransitGateways</a> to see the state of transit ga... | 45.107143 | 334 | 0.747427 |
8a9b461a07dbfbdeb019cb095d936f3e92c2a811 | 14,710 | ml | OCaml | CodeHawk/CHB/bchlibx86/bCHPredefinedProlog4Semantics.ml | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 17 | 2020-08-17T15:35:57.000Z | 2022-03-23T14:40:19.000Z | CodeHawk/CHB/bchlibx86/bCHPredefinedProlog4Semantics.ml | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 6 | 2020-07-17T05:43:51.000Z | 2021-01-06T03:41:46.000Z | CodeHawk/CHB/bchlibx86/bCHPredefinedProlog4Semantics.ml | sipma/codehawk | e4eeb41fdea6a8467d1892b9467ec54ef04953b0 | [
"MIT"
] | 3 | 2020-08-13T23:18:39.000Z | 2021-12-11T11:10:06.000Z | (* =============================================================================
CodeHawk Binary Analyzer
Author: Henny Sipma
------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2005-2020 Kestrel Technology LLC
Permission is hereby gra... | 41.204482 | 91 | 0.615976 |
8a3eee0725893fc4131745033ddbce1bace96a85 | 2,876 | mli | OCaml | src/dune_lang/action.mli | ocaml/jbuilder | bd53904712bf5991d7a02c70a3a1daf7be333c80 | [
"MIT"
] | null | null | null | src/dune_lang/action.mli | ocaml/jbuilder | bd53904712bf5991d7a02c70a3a1daf7be333c80 | [
"MIT"
] | null | null | null | src/dune_lang/action.mli | ocaml/jbuilder | bd53904712bf5991d7a02c70a3a1daf7be333c80 | [
"MIT"
] | null | null | null | (** Actions defined in dune files.
All constructors correspond to actions the user may write in dune files.
Eventually, these are all desugared into [Action.t], which are actions
executed by the build system. *)
open Stdune
open Dune_sexp
module Action_plugin : sig
val syntax : Syntax.t
end
module Dif... | 25.90991 | 77 | 0.667942 |
8a993101b94ba9b9f508b210709f0bf3159158fe | 1,605 | ml | OCaml | data/sp14/0411.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/0411.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/0411.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr
| Sigmoid of expr;;
let pi = 4.0 *. (atan 1.0);;
let rec eval (e,x,y) =
match e with
| VarX -> x
| VarY -> y
| Sine a -> sin (pi *. (eval (a, x, y)))
... | 21.118421 | 65 | 0.460436 |
8a163d2676006e5607a3f27a8468649f649d0663 | 5,734 | mli | OCaml | artifact/monpoly_no_errprobs/src/mqueue.mli | anon467308/hashmon | 1d8fa619097a3fffd7f50600923bb5ce13cd9d0f | [
"MIT"
] | null | null | null | artifact/monpoly_no_errprobs/src/mqueue.mli | anon467308/hashmon | 1d8fa619097a3fffd7f50600923bb5ce13cd9d0f | [
"MIT"
] | null | null | null | artifact/monpoly_no_errprobs/src/mqueue.mli | anon467308/hashmon | 1d8fa619097a3fffd7f50600923bb5ce13cd9d0f | [
"MIT"
] | 1 | 2021-11-02T09:29:23.000Z | 2021-11-02T09:29:23.000Z | (*
* This file is part of MONPOLY.
*
* Copyright (C) 2012 ETH Zurich.
* Contact: ETH Zurich (Eugen Zalinescu: eugen.zalinescu@inf.ethz.ch)
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Softwar... | 40.097902 | 79 | 0.61458 |
af15605131c34784e3bc31e70736f2e551b95b4a | 52,857 | ml | OCaml | x86/proofs/bignum_montredc.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 33 | 2021-03-11T16:12:01.000Z | 2022-03-06T17:01:18.000Z | x86/proofs/bignum_montredc.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 8 | 2021-09-06T12:58:47.000Z | 2022-01-03T16:43:09.000Z | x86/proofs/bignum_montredc.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 4 | 2021-03-11T19:28:16.000Z | 2021-12-12T23:40:44.000Z | (*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "LICENSE" file ... | 48.095541 | 86 | 0.601945 |
8a086086add78bd1b011e092f369d579b9bd3115 | 864 | ml | OCaml | hphp/hack/src/ifc/ifc_utils.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/ifc/ifc_utils.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/ifc/ifc_utils.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.
*
*)
open Hh_prelude
let identity x = x
let rec funpow n ~f ~init =
if n <= 0 then
init
else
funpow (n - 1) ~f ~init:... | 21.073171 | 66 | 0.556713 |
8aa7ce74660b3da69f55eda40f63ea6c58f1ff86 | 128,972 | ml | OCaml | src/ocaml-output/FStar_Syntax_Resugar.ml | richardlford/FStar | f5f307f2904263f34372ad78c7c27488fd7685bf | [
"Apache-2.0"
] | 1 | 2020-02-12T16:11:39.000Z | 2020-02-12T16:11:39.000Z | src/ocaml-output/FStar_Syntax_Resugar.ml | richardlford/FStar | f5f307f2904263f34372ad78c7c27488fd7685bf | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_Syntax_Resugar.ml | richardlford/FStar | f5f307f2904263f34372ad78c7c27488fd7685bf | [
"Apache-2.0"
] | null | null | null | open Prims
let (doc_to_string : FStar_Pprint.document -> Prims.string) =
fun doc ->
FStar_Pprint.pretty_string (FStar_Util.float_of_string "1.0")
(Prims.of_int (100)) doc
let (parser_term_to_string : FStar_Parser_AST.term -> Prims.string) =
fun t ->
let uu___ = FStar_Parser_ToDocument.term_to_document... | 46.061429 | 117 | 0.49265 |
f3d4c5ce083e75824beeb0c2384457ab9ebc74d9 | 1,015 | ml | OCaml | hphp/hack/src/typing/nast_check/const_prohibited_check.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-07-21T09:08:35.000Z | 2019-07-21T09:08:35.000Z | hphp/hack/src/typing/nast_check/const_prohibited_check.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/nast_check/const_prohibited_check.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-07-30T11:52:42.000Z | 2019-07-30T11:52:42.000Z | (**
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Nast
module SN = Naming_special_names
let handler = object
inherit Nast_visitor.handler_b... | 26.025641 | 78 | 0.684729 |
8a60bc6972a9fafd3175f2fd10e1ac51ca8a6468 | 1,895 | ml | OCaml | libraries/ec2/lib/createInstanceExportTask.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/createInstanceExportTask.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/ec2/lib/createInstanceExportTask.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = CreateInstanceExportTaskRequest.t
type output = CreateInstanceExportTaskResult.t
type error = Errors_internal.t
let service = "ec2"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string
(Aws.Util.of_option_... | 31.065574 | 104 | 0.582586 |
af4ad54baee6827ec527f1f3d103cb212d4d0d0d | 2,355 | ml | OCaml | hphp/hack/src/typing/typing_reified_check.ml | jthemphill/hhvm | 29b7fafaeecd83b817e31bbe11a591aa78a6c879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_reified_check.ml | jthemphill/hhvm | 29b7fafaeecd83b817e31bbe11a591aa78a6c879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_reified_check.ml | jthemphill/hhvm | 29b7fafaeecd83b817e31bbe11a591aa78a6c879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Typing_defs
open Type_validator
module Env = Tast_env
module SN = Naming_special_names
module U... | 31.4 | 98 | 0.666242 |
8aa012867a060b64725760e06e5ddb0d59d6fc73 | 2,513 | ml | OCaml | lib/utils/src/frontend.ml | MattWindsor91/c4f | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 7 | 2018-11-27T23:53:58.000Z | 2020-11-22T11:56:16.000Z | lib/utils/src/frontend.ml | MattWindsor91/act | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 235 | 2018-10-03T16:37:36.000Z | 2020-11-22T16:26:51.000Z | lib/utils/src/frontend.ml | MattWindsor91/c4f | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 1 | 2018-11-13T16:43:19.000Z | 2018-11-13T16:43:19.000Z | (* This file is part of c4f.
Copyright (c) 2018-2022 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... | 29.22093 | 77 | 0.691206 |
8a8387800b564f37dbe19cf581a1c51c3f4645cd | 331 | ml | OCaml | test/test.ml | phongphan/reason-jose | 30215c30b0b14907f54a951e7db8d2062cd29774 | [
"MIT"
] | 46 | 2020-01-01T21:33:42.000Z | 2022-01-14T11:28:37.000Z | test/test.ml | phongphan/reason-jose | 30215c30b0b14907f54a951e7db8d2062cd29774 | [
"MIT"
] | 24 | 2020-01-15T10:22:25.000Z | 2022-02-16T20:51:29.000Z | test/test.ml | phongphan/reason-jose | 30215c30b0b14907f54a951e7db8d2062cd29774 | [
"MIT"
] | 5 | 2020-01-15T00:09:26.000Z | 2021-07-17T17:46:45.000Z | let () =
let path = Sys.getenv_opt "REPORT_PATH" in
let report =
Junit.make
[
JWKsTest.jwks_suite;
JWKTest.jwk_suite;
JWTTest.jwt_suite;
JWETest.jwe_suite;
RFC7520.suite;
RFC7638.suite;
]
in
match path with Some path -> Junit.to_file report path | ... | 22.066667 | 69 | 0.583082 |
aff4de3e9f5b38b16ab2350f76e3bb2137938098 | 7,221 | ml | OCaml | data/derived/comb/progs/unify/prog8793.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/prog4011.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog4011.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let rec sumList xs = match xs with
| [] -> 0
| h::t -> h + sumList t
let _ = sumList [1; 2; 3; 4]
let _ = sumList [1; -2; 3; 5]
let _ = sumList [1; 3; 5; 7; 9; 11]
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
X... | 24.231544 | 94 | 0.607949 |
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.