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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44e476df03ead33d08081a0890cc3a005ac04366 | 14,578 | ml | OCaml | src/lib/mina_base/signed_command_payload.ml | olton/mina | 35a0be706602a3187a21ba757c89d197ff914d7e | [
"Apache-2.0"
] | 929 | 2020-10-02T07:23:16.000Z | 2022-03-31T15:02:09.000Z | src/lib/mina_base/signed_command_payload.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 3,154 | 2020-09-29T15:47:44.000Z | 2022-03-31T16:22:28.000Z | src/lib/mina_base/signed_command_payload.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 216 | 2020-09-29T19:47:41.000Z | 2022-03-27T08:44:29.000Z | (* user_command_payload.ml *)
[%%import "/src/config.mlh"]
open Core_kernel
[%%ifdef consensus_mechanism]
open Snark_params.Tick
open Signature_lib
module Mina_numbers = Mina_numbers
[%%else]
open Signature_lib_nonconsensus
module Mina_numbers = Mina_numbers_nonconsensus.Mina_numbers
module Currency = Currency_no... | 28.142857 | 80 | 0.647208 |
8ac4df380b0b5d81b70302d6e0f6e643e4c707ff | 2,389 | mli | OCaml | fyp_compiler_lib/inlining_query.mli | fyquah95/fyp-worker-dispatcher | 1ebf764e41202d18ccd1013ec2270caa6c44565a | [
"RSA-MD",
"CECILL-B"
] | null | null | null | fyp_compiler_lib/inlining_query.mli | fyquah95/fyp-worker-dispatcher | 1ebf764e41202d18ccd1013ec2270caa6c44565a | [
"RSA-MD",
"CECILL-B"
] | null | null | null | fyp_compiler_lib/inlining_query.mli | fyquah95/fyp-worker-dispatcher | 1ebf764e41202d18ccd1013ec2270caa6c44565a | [
"RSA-MD",
"CECILL-B"
] | null | null | null | module DC = Data_collector
type scope = Current | Outer
type result = {
approx : Simple_value_approx.t;
used_static_exceptions : Static_exception.Set.t;
inlining_threshold : Inlining_cost.Threshold.t option;
benefit : Inlining_cost.Benefit.t;
num_direct_applications : int;
}
type env = {
ro... | 36.19697 | 96 | 0.663876 |
bc338f926cf58ac61634cc43fc3fcee360042936 | 13,764 | ml | OCaml | src/generators/templates/modelica.ml | Techbot/vult | b40a0d352787f7e221cda41199db27f710d5933c | [
"MIT"
] | null | null | null | src/generators/templates/modelica.ml | Techbot/vult | b40a0d352787f7e221cda41199db27f710d5933c | [
"MIT"
] | null | null | null | src/generators/templates/modelica.ml | Techbot/vult | b40a0d352787f7e221cda41199db27f710d5933c | [
"MIT"
] | null | null | null | (*
The MIT License (MIT)
Copyright (c) 2014 Leonardo Laguna Ruiz
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 ... | 33.166265 | 257 | 0.667466 |
d2da5a342b4472df2069b1fe16255d84c64045a9 | 7,805 | ml | OCaml | src/typing/speculation.ml | segmentationfaulter/flow | 3dddd0603fef8034949c3a04b24688125d1a2d71 | [
"MIT"
] | 1 | 2019-03-28T12:09:30.000Z | 2019-03-28T12:09:30.000Z | src/typing/speculation.ml | segmentationfaulter/flow | 3dddd0603fef8034949c3a04b24688125d1a2d71 | [
"MIT"
] | null | null | null | src/typing/speculation.ml | segmentationfaulter/flow | 3dddd0603fef8034949c3a04b24688125d1a2d71 | [
"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.
*)
(* Various data structures and functions used to prepare for and execute
speculative matching. *)
(* First up, a model for flo... | 36.302326 | 80 | 0.686867 |
affc21713dc1406fe8470837675cdba3b53d7d23 | 1,506 | mli | OCaml | presentations/coq-workshop-2014-coq/toplevel/vernac.mli | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/toplevel/vernac.mli | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/toplevel/vernac.mli | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | (************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2015 *)
(* \VV/ **************************************************************)
(* // * Th... | 35.023256 | 79 | 0.579681 |
bc134c4de677069e3e2929297df63f63f2d9253a | 9,460 | ml | OCaml | server/language_server/protocol.ml | KoalaTea/pyre-check | 71de5448f6695b3616a2a985fcbe27da74a3fc44 | [
"MIT"
] | null | null | null | server/language_server/protocol.ml | KoalaTea/pyre-check | 71de5448f6695b3616a2a985fcbe27da74a3fc44 | [
"MIT"
] | null | null | null | server/language_server/protocol.ml | KoalaTea/pyre-check | 71de5448f6695b3616a2a985fcbe27da74a3fc44 | [
"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 Pyre
open Analysis
open Types
module Range = struct
include Types.Range
let create
~start:{ Ast.Location.line = st... | 29.842271 | 100 | 0.610254 |
44c0fdf0deb2eea775ea80099b806c95aa33b560 | 1,720 | ml | OCaml | bin/Score.ml | 597-loop-inv-gen/LoopInvGen | d6ce71599b536bbe9a426cb22d08722e285aadb6 | [
"MIT"
] | 43 | 2017-07-26T00:58:56.000Z | 2022-03-08T21:46:33.000Z | bin/Score.ml | 597-loop-inv-gen/LoopInvGen | d6ce71599b536bbe9a426cb22d08722e285aadb6 | [
"MIT"
] | 11 | 2018-03-13T20:37:26.000Z | 2020-08-13T20:52:43.000Z | bin/Score.ml | 597-loop-inv-gen/LoopInvGen | d6ce71599b536bbe9a426cb22d08722e285aadb6 | [
"MIT"
] | 27 | 2018-01-19T23:03:34.000Z | 2021-04-19T04:10:34.000Z | open Core
open LoopInvGen
let time_pseudolog x =
let open Float in
if x > 3600.0 then 1
else if x >= 1000.0 then 2
else if x >= 300.0 then 3
else if x >= 100.0 then 4
else if x >= 30.0 then 5
else if x >= 10.0 then 6
else if x >= 3.0 then 7
else if x >= 1.0 then 8
else 9
let size_pseudolog x =
... | 33.72549 | 105 | 0.597093 |
bc371e8aeaeaaab133bed3ab1c7cec7b47bf923c | 7,181 | mli | OCaml | Compiler/ast.mli | DawidvC/Cbang | 8fa2c6872b3a66c197316fe58ad28b6efd8b14ee | [
"BSD-3-Clause"
] | null | null | null | Compiler/ast.mli | DawidvC/Cbang | 8fa2c6872b3a66c197316fe58ad28b6efd8b14ee | [
"BSD-3-Clause"
] | null | null | null | Compiler/ast.mli | DawidvC/Cbang | 8fa2c6872b3a66c197316fe58ad28b6efd8b14ee | [
"BSD-3-Clause"
] | 1 | 2021-10-06T19:15:20.000Z | 2021-10-06T19:15:20.000Z | (*
* Copyright (c) 2010-2012, Marwan Burelle, the LSE Team and contributors
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyrig... | 33.872642 | 78 | 0.691408 |
8abf8b3c5c5dd4f9aea301d9c0d17f7d88f7a75c | 5,030 | ml | OCaml | src/stack-unix/tcpv6_socket.ml | jonahbeckford/mirage-tcpip | f8e623a03981aeae95c72fcd31b92e9ec1f07c9a | [
"ISC"
] | null | null | null | src/stack-unix/tcpv6_socket.ml | jonahbeckford/mirage-tcpip | f8e623a03981aeae95c72fcd31b92e9ec1f07c9a | [
"ISC"
] | null | null | null | src/stack-unix/tcpv6_socket.ml | jonahbeckford/mirage-tcpip | f8e623a03981aeae95c72fcd31b92e9ec1f07c9a | [
"ISC"
] | null | null | null | (*
* Copyright (c) 2014 Anil Madhavapeddy <anil@recoil.org>
* Copyright (c) 2014 Nicolas Ojeda Bar <n.oje.bar@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice ... | 37.819549 | 93 | 0.640755 |
4485637817369e192e58f3afa7ea1283f2a295dc | 2,105 | ml | OCaml | data/fa15_min/2445.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15_min/2445.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/2445.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 x :: (clone x (n - 1)) else [];;
let padZero l1 l2 =
let x = List.length l1 in
let y = List.length l2 in
if x = y
then (l1, l2)
else
if x < y
then (((clone 0 (y - x)) @ l1), l2)
else (l1, ((clone 0 (x - y)) @ l2));;
let rec removeZero l =
match l with | [] ->... | 22.880435 | 134 | 0.51734 |
44308ae6d79d247a8dd5fd36674b520aba109e95 | 269 | mli | OCaml | src/lex_fish.mli | tylergreen/bondi | 30d7a1863ee1ea7f05888732d3cc98c54d0027ec | [
"BSD-3-Clause"
] | 11 | 2015-10-15T15:33:03.000Z | 2020-01-29T11:47:25.000Z | src/lex_fish.mli | tylergreen/bondi | 30d7a1863ee1ea7f05888732d3cc98c54d0027ec | [
"BSD-3-Clause"
] | null | null | null | src/lex_fish.mli | tylergreen/bondi | 30d7a1863ee1ea7f05888732d3cc98c54d0027ec | [
"BSD-3-Clause"
] | 2 | 2020-01-27T22:43:22.000Z | 2021-05-14T11:13:40.000Z | val buf_pos : int ref
val last_buf_pos : int ref
val line_number : int ref
val incr_lex_counters : Lexing.lexbuf -> unit
exception SyntaxError of int * int * string
val runParser :
((Lexing.lexbuf -> Parse_fish.token) -> Lexing.lexbuf -> 'a) ->
Lexing.lexbuf -> 'a
| 29.888889 | 65 | 0.713755 |
bc425a5006c00de8dfd2382e9ad3428bfb24d609 | 676 | mli | OCaml | src/server/monitor_listener/workloadStream.mli | technology-studio-forks/flow | 5adcafcd2bc175b1b49535f980ca509244847602 | [
"MIT"
] | null | null | null | src/server/monitor_listener/workloadStream.mli | technology-studio-forks/flow | 5adcafcd2bc175b1b49535f980ca509244847602 | [
"MIT"
] | null | null | null | src/server/monitor_listener/workloadStream.mli | technology-studio-forks/flow | 5adcafcd2bc175b1b49535f980ca509244847602 | [
"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.
*)
type workload = ServerEnv.env -> ServerEnv.env Lwt.t
type parallelizable_workload = ServerEnv.env -> unit Lwt.t
type t
val create: uni... | 24.142857 | 66 | 0.744083 |
bc366c414651c18accae28594f9bc34ab720d780 | 11,965 | ml | OCaml | src/argon2.ml | thangngoc89/ocaml-argon2 | abedc882d4047c157446dfda13c468de94392531 | [
"MIT"
] | null | null | null | src/argon2.ml | thangngoc89/ocaml-argon2 | abedc882d4047c157446dfda13c468de94392531 | [
"MIT"
] | null | null | null | src/argon2.ml | thangngoc89/ocaml-argon2 | abedc882d4047c157446dfda13c468de94392531 | [
"MIT"
] | null | null | null | open Ctypes
open Foreign
external _argon2_typestring: int -> string = "argon2_type2string"
module Kind = struct
type t = D | I | ID
let read = function
| 0 -> D
| 1 -> I
| 2 -> ID
| _ as e -> invalid_arg (Printf.sprintf "%d is not a valid argon2_type" e)
let write = function D -> 0 | I -> 1 | ... | 27.193182 | 80 | 0.665274 |
44e8a32d3eda63bae6afbedcfac5553a765b4469 | 1,645 | mli | OCaml | src/base/Model.mli | c-cube/cdcl | 4cdbaf17bfa60e166f6404a071f520ed15e97ebe | [
"Apache-2.0"
] | 12 | 2019-06-10T22:13:36.000Z | 2022-01-05T08:19:07.000Z | src/base/Model.mli | c-cube/cdcl | 4cdbaf17bfa60e166f6404a071f520ed15e97ebe | [
"Apache-2.0"
] | 10 | 2019-08-20T14:44:03.000Z | 2022-01-06T16:56:14.000Z | src/base/Model.mli | c-cube/cdcl | 4cdbaf17bfa60e166f6404a071f520ed15e97ebe | [
"Apache-2.0"
] | 12 | 2019-07-17T16:00:18.000Z | 2021-12-06T18:24:08.000Z | (* This file is free software. See file "license" for more details. *)
(** Models
A model is a solution to the satisfiability question, created by the
SMT solver when it proves the formula to be {b satisfiable}.
A model gives a value to each term of the original formula(s), in
such a way that the fo... | 23.5 | 76 | 0.63465 |
44ca9abf780fac399a9e7a17e7def08740b7baff | 9,009 | ml | OCaml | tools/verdict-back-ends/aadl2iml/src/AGREEAst.ml | Syrupz-UO/VERDICT-ge-ha | ed2094c083c04f41d2c6614edb5b6c4a77c38244 | [
"BSD-3-Clause"
] | null | null | null | tools/verdict-back-ends/aadl2iml/src/AGREEAst.ml | Syrupz-UO/VERDICT-ge-ha | ed2094c083c04f41d2c6614edb5b6c4a77c38244 | [
"BSD-3-Clause"
] | null | null | null | tools/verdict-back-ends/aadl2iml/src/AGREEAst.ml | Syrupz-UO/VERDICT-ge-ha | ed2094c083c04f41d2c6614edb5b6c4a77c38244 | [
"BSD-3-Clause"
] | null | null | null | (* Copyright (c) 2019-2020, Board of Trustees of the University of Iowa.
All rights reserved.
Use of this source code is governed by a BSD 3-Clause License that
can be found in the LICENSE file.
*)
(** @author Daniel Larraz *)
open CommonAstTypes
type range = numeric_literal * numeric_literal
type data_ty... | 29.634868 | 75 | 0.649018 |
44f5e39a2cb41d4d532c4cfad8af4fd1cb68f635 | 94 | mli | OCaml | src/FunctionHelpers.mli | logiclogue/bs-helpers | 5fd55b24e13f4c290ad9dec9f1e2a4bbd5a050ee | [
"MIT"
] | null | null | null | src/FunctionHelpers.mli | logiclogue/bs-helpers | 5fd55b24e13f4c290ad9dec9f1e2a4bbd5a050ee | [
"MIT"
] | null | null | null | src/FunctionHelpers.mli | logiclogue/bs-helpers | 5fd55b24e13f4c290ad9dec9f1e2a4bbd5a050ee | [
"MIT"
] | null | null | null | val uncurry : ('a -> 'b -> 'c) -> ('a * 'b) -> 'c
val reapply : ('a -> 'a) -> int -> 'a -> 'a
| 31.333333 | 49 | 0.351064 |
44f3a0556349606e58227da4d787aa894f27ad8c | 64,025 | ml | OCaml | src/ocaml/typer_404/typing/short_paths.ml | bluddy/merlin | cdb6b7100dce8f02970d1b69f3a68fe498ec22b4 | [
"MIT"
] | null | null | null | src/ocaml/typer_404/typing/short_paths.ml | bluddy/merlin | cdb6b7100dce8f02970d1b69f3a68fe498ec22b4 | [
"MIT"
] | null | null | null | src/ocaml/typer_404/typing/short_paths.ml | bluddy/merlin | cdb6b7100dce8f02970d1b69f3a68fe498ec22b4 | [
"MIT"
] | null | null | null |
open Short_paths_graph
module Desc = Desc
module Rev_deps : sig
type t
val create : unit -> t
val extend_up_to : t -> Dependency.t -> unit
val get : t -> Dependency.t -> Dependency.Set.t
val add : t -> source:Dependency.t -> target:Dependency.t -> unit
val add_alias : t -> source:Dependency.t -> ta... | 32.044545 | 83 | 0.582398 |
440e2cef5017d81232c6d53798c8791e9ec5e49e | 379 | mli | OCaml | lib/app/vendored/patdiff/kernel/src/should_keep_whitespace.mli | elimisteve/comby | 8ea31dc5a9d9ba22980f2123e679169bcc76622c | [
"Apache-2.0"
] | 1,470 | 2019-04-17T22:51:49.000Z | 2022-03-25T03:04:35.000Z | lib/app/vendored/patdiff/kernel/src/should_keep_whitespace.mli | elimisteve/comby | 8ea31dc5a9d9ba22980f2123e679169bcc76622c | [
"Apache-2.0"
] | 158 | 2019-04-22T03:05:10.000Z | 2022-03-16T22:10:14.000Z | lib/app/vendored/patdiff/kernel/src/should_keep_whitespace.mli | elimisteve/comby | 8ea31dc5a9d9ba22980f2123e679169bcc76622c | [
"Apache-2.0"
] | 42 | 2019-06-24T18:52:04.000Z | 2022-02-22T16:12:26.000Z | open! Core_kernel
open! Import
(** Heuristics for whitespace-sensitive inputs (e.g., if it looks like Python). *)
val for_diff : prev:Diff_input.t -> next:Diff_input.t -> bool
(** Like {!for_diff}, but inputs are passed as a pair of [(file_name, lines)] rather than
{!Diff_input.t}. *)
val for_diff_array : prev:s... | 34.454545 | 89 | 0.701847 |
44ce5d561b850d8cb0e3570364a8cc0540293b43 | 66,324 | ml | OCaml | source/analysis/test/unannotatedGlobalEnvironmentTest.ml | yuhan1212/pyre-check | 37a3fcb4dec517c37f381743bac8f8a269218f8c | [
"MIT"
] | 1 | 2021-10-20T14:36:26.000Z | 2021-10-20T14:36:26.000Z | source/analysis/test/unannotatedGlobalEnvironmentTest.ml | yuhan1212/pyre-check | 37a3fcb4dec517c37f381743bac8f8a269218f8c | [
"MIT"
] | null | null | null | source/analysis/test/unannotatedGlobalEnvironmentTest.ml | yuhan1212/pyre-check | 37a3fcb4dec517c37f381743bac8f8a269218f8c | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Core
open OUnit2
open Ast
open Analysis
open Pyre
open Test
let location (start_line, start_column) (stop_line, stop_column) ... | 31.138028 | 102 | 0.511866 |
afd0c3e1fb1c7d0aa0c247c12e06ab6bc9d1d449 | 218 | ml | OCaml | test/interface/golden/__tests__/product/Card_spec.ml | LumiGuide/ocaml-export | 7f803eb961851ceb4853fae0e741378d86237d2b | [
"BSD-3-Clause"
] | 13 | 2018-02-16T08:30:21.000Z | 2021-06-15T21:38:32.000Z | test/interface/golden/__tests__/product/Card_spec.ml | plow-technologies/reason-export | 752167f5df37d43534d27d9f63bb512eec1e750d | [
"BSD-3-Clause"
] | 10 | 2018-01-17T02:10:28.000Z | 2019-04-23T21:56:43.000Z | test/interface/golden/__tests__/product/Card_spec.ml | plow-technologies/reason-export | 752167f5df37d43534d27d9f63bb512eec1e750d | [
"BSD-3-Clause"
] | 1 | 2021-07-03T20:02:22.000Z | 2021-07-03T20:02:22.000Z | let () =
AesonSpec.goldenDirSpec
Card.decodeSuit
Card.encodeSuit
"suit"
"golden/product/Suit";
AesonSpec.goldenDirSpec
Card.decodeCard
Card.encodeCard
"card"
"golden/product/Card";
| 16.769231 | 26 | 0.665138 |
449b67b60649e3de067dc1527e8bcae4658e4fa0 | 14,287 | ml | OCaml | src/openapi/rpc_openapi.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | src/openapi/rpc_openapi.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | src/openapi/rpc_openapi.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 37.69657 | 89 | 0.588227 |
8a6a7e56cb1bd9f1f9bfc7285dbfa0aa08d99f8d | 2,262 | ml | OCaml | ast/cinaps/shortcut.ml | ceastlund/ppx | e9367353e0ac7f6e1b408be21b01645475eea623 | [
"MIT"
] | 57 | 2019-05-15T14:23:37.000Z | 2021-05-24T19:23:19.000Z | ast/cinaps/shortcut.ml | ceastlund/ppx | e9367353e0ac7f6e1b408be21b01645475eea623 | [
"MIT"
] | 53 | 2019-06-06T16:27:15.000Z | 2020-05-14T18:05:50.000Z | ast/cinaps/shortcut.ml | ceastlund/ppx | e9367353e0ac7f6e1b408be21b01645475eea623 | [
"MIT"
] | 7 | 2019-06-03T15:07:32.000Z | 2020-04-06T14:06:22.000Z | open Stdppx
type t =
{ outer_record : string
; inner_variant : string
; desc_field : string
; attr_field : string option
; loc_field : string option
; other_fields : (string * Astlib.Grammar.ty) list
}
type shortcut = t
let find_field ~suffix record : (string * Astlib.Grammar.ty) option =
List.find r... | 28.632911 | 69 | 0.656057 |
44937f9a40c97a291ef70bcd85c7450862ebc05a | 2,025 | ml | OCaml | src/common.ml | janestreet/core_profiler | f9351c5aaed314b576a79ff4cc4e76eba8a5b363 | [
"MIT"
] | 15 | 2015-02-24T16:52:11.000Z | 2021-12-17T02:50:40.000Z | src/common.ml | janestreet/core_profiler | f9351c5aaed314b576a79ff4cc4e76eba8a5b363 | [
"MIT"
] | 2 | 2015-03-15T19:36:43.000Z | 2015-03-16T14:35:23.000Z | src/common.ml | janestreet/core_profiler | f9351c5aaed314b576a79ff4cc4e76eba8a5b363 | [
"MIT"
] | 3 | 2016-09-22T20:53:31.000Z | 2021-12-17T02:51:42.000Z | open Core
open Poly
type t =
| Online_profiler
| Offline_profiler
| Any_profiler
let now_no_calibrate () =
Time_stamp_counter.now ()
|> Time_stamp_counter.to_time_ns ~calibrator:(force Time_stamp_counter.calibrator)
let%bench "now_no_calibrate" = now_no_calibrate ()
(* When we last ran the slow tasks *)
l... | 32.142857 | 89 | 0.722469 |
44b69411eeab2801f9f53092edfbf65b88e1ebc3 | 944 | ml | OCaml | benchmarks/unrealizable/nested_min_max_mixed.ml | victornicolet/atropos | 86a96d263f49c1eccd8f584d624de119180e0eea | [
"MIT"
] | 3 | 2021-05-03T16:20:32.000Z | 2021-05-14T19:59:51.000Z | benchmarks/unrealizable/nested_min_max_mixed.ml | synduce/Synduce | 11e9eb1d420113ae85ec63399dd493034c51a354 | [
"MIT"
] | null | null | null | benchmarks/unrealizable/nested_min_max_mixed.ml | synduce/Synduce | 11e9eb1d420113ae85ec63399dd493034c51a354 | [
"MIT"
] | 1 | 2021-05-12T15:14:40.000Z | 2021-05-12T15:14:40.000Z | (** @synduce --no-lifting -NB -n 50 *)
type list =
| Elt of int
| Cons of int * list
type nested_list =
| Line of list
| NCons of list * nested_list
type cnlist =
| Sglt of list
| Cat of cnlist * cnlist
let rec clist_to_list = function
| Sglt a -> Line a
| Cat (x, y) -> dec y x
and dec l1 = functio... | 19.666667 | 50 | 0.580508 |
8a2cf4fbb72eb55ac3969117f5a9fac89b0ec4d2 | 464 | ml | OCaml | sihl/src/contract_random.ml | econ-uzh/sihl | a0148d815146b28cd6745d087a976efe8334c5fa | [
"MIT"
] | 330 | 2020-03-18T09:54:39.000Z | 2022-03-02T15:51:38.000Z | sihl/src/contract_random.ml | econ-uzh/sihl | a0148d815146b28cd6745d087a976efe8334c5fa | [
"MIT"
] | 272 | 2020-03-12T18:34:57.000Z | 2022-03-31T15:21:22.000Z | sihl/src/contract_random.ml | econ-uzh/sihl | a0148d815146b28cd6745d087a976efe8334c5fa | [
"MIT"
] | 12 | 2020-06-18T10:55:59.000Z | 2021-09-11T06:43:25.000Z | let name = "random"
module type Sig = sig
(** [base64 n] returns a Base64 encoded string containing [n] random bytes. *)
val base64 : int -> string
(** [bytes n] returns a byte sequence as string with [n] random bytes. In most
cases you want to use {!base64} to get a string that can be used safely in
... | 29 | 80 | 0.685345 |
44fd078f88259324322ce210ca8cd5e2f780a1a0 | 70,893 | ml | OCaml | litmus/preSi.ml | patrick-rivos/herdtools7 | 232b3e0f047c0daa1cbab6fa66cf21598b830811 | [
"CECILL-B"
] | null | null | null | litmus/preSi.ml | patrick-rivos/herdtools7 | 232b3e0f047c0daa1cbab6fa66cf21598b830811 | [
"CECILL-B"
] | null | null | null | litmus/preSi.ml | patrick-rivos/herdtools7 | 232b3e0f047c0daa1cbab6fa66cf21598b830811 | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 35.968037 | 130 | 0.451413 |
44f9171a9ec2943282e511288d3d02abf5e9c36e | 14,442 | ml | OCaml | src/tls/conduit_tls.ml | xclerc/ocaml-conduit | 1ebbd6119b3b580d5e073d553e41ef5140bfc79c | [
"ISC"
] | null | null | null | src/tls/conduit_tls.ml | xclerc/ocaml-conduit | 1ebbd6119b3b580d5e073d553e41ef5140bfc79c | [
"ISC"
] | null | null | null | src/tls/conduit_tls.ml | xclerc/ocaml-conduit | 1ebbd6119b3b580d5e073d553e41ef5140bfc79c | [
"ISC"
] | null | null | null | module Ke = Ke.Rke
let option_fold ~none ~some = function Some x -> some x | None -> none
(* NOTE(dinosaure): we use an unbound queue where TLS can produce
something bigger than the given input. It seems hard to limit
the internal queue and arbitrary limit (like a queue two times
larger than the input) is no... | 38.822581 | 82 | 0.524789 |
448dfabc8026148251ad0bd192dbd8840ccd826f | 14,623 | mli | OCaml | src/core/lwt_stream.mli | charlesetc/lwt | 796e1edcf3a10850cfbde050f562b0d900109749 | [
"MIT"
] | null | null | null | src/core/lwt_stream.mli | charlesetc/lwt | 796e1edcf3a10850cfbde050f562b0d900109749 | [
"MIT"
] | null | null | null | src/core/lwt_stream.mli | charlesetc/lwt | 796e1edcf3a10850cfbde050f562b0d900109749 | [
"MIT"
] | null | null | null | (* This file is part of Lwt, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. *)
(** Data streams *)
type 'a t
(** A stream holding values of type ['a].
Naming convention: in this module, all functions applying a function
to each... | 34.326291 | 116 | 0.646721 |
bc0f12e2aa141c17e4a7ace25e9e9ec86bd09b7e | 1,012 | ml | OCaml | lib/test_trees.ml | nick-chin/dsa_final | 07df8c9d07fd400e6ee71dcc8b3e7c60babf7ca9 | [
"MIT"
] | null | null | null | lib/test_trees.ml | nick-chin/dsa_final | 07df8c9d07fd400e6ee71dcc8b3e7c60babf7ca9 | [
"MIT"
] | null | null | null | lib/test_trees.ml | nick-chin/dsa_final | 07df8c9d07fd400e6ee71dcc8b3e7c60babf7ca9 | [
"MIT"
] | null | null | null | (* One can use these trees to test the Sentinel's in Graphs problem*)
let short_med_long_path =
["14"; "0 1"; "1 2"; "2 3";
"1 4"; "4 5"; "5 6"; "6 3";
"1 7"; "7 8"; "8 9"; "9 10"; "10 11"; "11 12"; "12 13"; "13 3"]
let cycle_tree =
["6"; "0 1"; "1 2"; "2 3"; "3 4"; "4 5"; "5 2"]
(*Graph from Lecture*)
let ... | 27.351351 | 119 | 0.58498 |
bc47d4afb530617af593e947f38a7d28a1a4f008 | 152 | ml | OCaml | libraries/sts/lib_test/test_lwt.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/sts/lib_test/test_lwt.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/sts/lib_test/test_lwt.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Aws_sts_test
module T = TestSuite (struct
type 'a m = 'a Lwt.t
let run_request = Aws_lwt.Runtime.run_request
let un_m = Lwt_main.run
end)
| 15.2 | 47 | 0.717105 |
bc4bbddc32b8b6757b3ff60ecd5a15e7fdfabdbe | 87 | ml | OCaml | tests/main.ml | hellojukay/logger | 92e722cef1f2fe4c3e5427d55128ec72081e5119 | [
"MIT"
] | null | null | null | tests/main.ml | hellojukay/logger | 92e722cef1f2fe4c3e5427d55128ec72081e5119 | [
"MIT"
] | null | null | null | tests/main.ml | hellojukay/logger | 92e722cef1f2fe4c3e5427d55128ec72081e5119 | [
"MIT"
] | null | null | null | open! Logger
let () =
let logger = new Logger.logger in
logger#info "Hello World"
| 14.5 | 35 | 0.678161 |
bc251bdf0b917a0dacb473ee1837da1a89592c05 | 24,246 | mll | OCaml | src/ocaml/preprocess/402/lexer_raw.mll | actionshrimp/merlin | c6b5704417a550caeb9cb9806cc2fb5eda52c454 | [
"MIT"
] | null | null | null | src/ocaml/preprocess/402/lexer_raw.mll | actionshrimp/merlin | c6b5704417a550caeb9cb9806cc2fb5eda52c454 | [
"MIT"
] | null | null | null | src/ocaml/preprocess/402/lexer_raw.mll | actionshrimp/merlin | c6b5704417a550caeb9cb9806cc2fb5eda52c454 | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 33.8159 | 92 | 0.56133 |
445225341497c2d87bd99c608736d37bd37edd9f | 5,870 | ml | OCaml | ocaml-sources/testsuite/tests/lib-dynlink-pr4839/test.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | ocaml-sources/testsuite/tests/lib-dynlink-pr4839/test.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | ocaml-sources/testsuite/tests/lib-dynlink-pr4839/test.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | null | null | null | (* TEST
include dynlink
libraries = ""
set host = "${test_source_directory}/host"
set plugin1 = "${test_source_directory}/plugin1"
set plugin2 = "${test_source_directory}/plugin2"
set plugin3 = "${test_source_directory}/plugin3"
set plugin4 = "${test_source_directory}/plugin4"
* shared-libraries
** setup-ocamlc.byte-... | 22.40458 | 79 | 0.659796 |
44a339a3126f9f1bde08c2d42c5cb1264cb0c40e | 782 | mli | OCaml | src/file_tree.mli | swuecho/dune | 326ca5413adfb560513f8e6b327e8c71fc5293b1 | [
"Apache-2.0"
] | null | null | null | src/file_tree.mli | swuecho/dune | 326ca5413adfb560513f8e6b327e8c71fc5293b1 | [
"Apache-2.0"
] | null | null | null | src/file_tree.mli | swuecho/dune | 326ca5413adfb560513f8e6b327e8c71fc5293b1 | [
"Apache-2.0"
] | null | null | null | open! Import
module Dir : sig
type t
val path : t -> Path.t
val files : t -> String_set.t
val sub_dirs : t -> t String_map.t
(** Whether this directory is ignored by a [jbuild-ignore] file in
one of its ancestor directories. *)
val ignored : t -> bool
val fold
: t
-> traverse_ign... | 19.073171 | 75 | 0.584399 |
bc2474122529c82225d30f51a9802c167500c7b9 | 2,700 | ml | OCaml | hack/client/clientEnv.ml | Shraymonks/flow | 430b1c107e8f299a8895063e551caf063dfe8c5a | [
"BSD-3-Clause"
] | null | null | null | hack/client/clientEnv.ml | Shraymonks/flow | 430b1c107e8f299a8895063e551caf063dfe8c5a | [
"BSD-3-Clause"
] | null | null | null | hack/client/clientEnv.ml | Shraymonks/flow | 430b1c107e8f299a8895063e551caf063dfe8c5a | [
"BSD-3-Clause"
] | 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.
*
*)
type client_... | 32.142857 | 80 | 0.758519 |
bc480a9f365474d2f11676a6cf27528a66875813 | 518 | ml | OCaml | why/extraction/reachability__Reachability.ml | kayceesrk/cubicle | c2fba597da83b9ddc1195f1c8710d5330db24735 | [
"Apache-2.0"
] | 10 | 2017-08-01T16:13:02.000Z | 2022-02-18T10:12:45.000Z | why/extraction/reachability__Reachability.ml | kayceesrk/cubicle | c2fba597da83b9ddc1195f1c8710d5330db24735 | [
"Apache-2.0"
] | 4 | 2018-06-07T05:27:42.000Z | 2022-02-28T09:31:46.000Z | why/extraction/reachability__Reachability.ml | kayceesrk/cubicle | c2fba597da83b9ddc1195f1c8710d5330db24735 | [
"Apache-2.0"
] | 6 | 2018-07-11T15:42:26.000Z | 2022-02-15T17:21:03.000Z | (* This file has been generated from Why3 theory Reachability *)
let pre (x: Fol__FOL.t) : Fol__FOL.t =
let res_cubes =
List.fold_left (fun acc s ->
let ls, post = Bwreach.pre_system s in
ls @ post @ acc
) [] (Fol__FOL.fol_to_cubes x)
in
Fol__FOL.cubes_to_fol res_cubes
let pre_star (x: F... | 23.545455 | 64 | 0.671815 |
44891f9b6a69a1ca521ec0f2888751b39d4dbc9a | 809 | ml | OCaml | data/derived/fa15/progs/cnstr/prog3860.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/cnstr/prog3860.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/cnstr/prog3860.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Square of expr
| Hoi of expr* expr* expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr;;
let rec exprToString e =
let exp = exprToString in
match e with
| VarX -> "x"
| VarY -> "y"
| Sine a -> ... | 26.966667 | 75 | 0.388133 |
449dbc66c8d39acbef5cb7c14577abc530b25145 | 115 | ml | OCaml | benchmarks/C/sigma/sol629.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/sigma/sol629.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/sigma/sol629.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | let rec sigma : (int -> int) -> int -> int -> int
= fun f a b ->
if a == b then f b
else f a + sigma f (a+1) b
| 16.428571 | 49 | 0.495652 |
bc27acd515605e6c7a3f72faa37484b1dd5d8a86 | 7,927 | ml | OCaml | hphp/hack/src/typing/typing_coercion.ml | jeffomatic/hhvm | afd1a0c089aff36a31b8990490366606694a2842 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-07-21T09:08:35.000Z | 2019-07-21T09:08:35.000Z | hphp/hack/src/typing/typing_coercion.ml | jeffomatic/hhvm | afd1a0c089aff36a31b8990490366606694a2842 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_coercion.ml | jeffomatic/hhvm | afd1a0c089aff36a31b8990490366606694a2842 | [
"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 Typing_defs
module Env = Typing_env
module SubType = Typing_subtype
let validator =
l... | 41.721053 | 105 | 0.679324 |
bc164c49f69d43fe107ec2a4c25d81a453dd1c62 | 3,180 | mli | OCaml | game.mli | OrangeApple3/DotsAndBoxes | 71c01620d912329fa7845e16d770f0627c49eaee | [
"MIT"
] | null | null | null | game.mli | OrangeApple3/DotsAndBoxes | 71c01620d912329fa7845e16d770f0627c49eaee | [
"MIT"
] | null | null | null | game.mli | OrangeApple3/DotsAndBoxes | 71c01620d912329fa7845e16d770f0627c49eaee | [
"MIT"
] | null | null | null | (* A player of the game.
* ai=-1 denotes a human player. ai=n for n>=0 denotes the level of the AI. *)
type player = {ai: int; id: int; mutable score: int}
(** A coordinate on the game board, denoted by a row (letter)
* and a column (number). Similar to how Chess boards are labeled.*)
type coord = {row: char; col: i... | 34.193548 | 79 | 0.705975 |
bc399e3a54fadf52e59a756bc7885312b43e5d90 | 5,073 | ml | OCaml | hphp/hack/src/parser/ast_utils.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/ast_utils.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/ast_utils.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"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 Core_kernel
open Ast
(* Given a Ast.program, give me the list of entities it defines *)
let get_defs ast =
... | 32.729032 | 91 | 0.694855 |
44dec4cf5ef4ab8e27b263f486c9d64a5fd1132c | 9,481 | ml | OCaml | src/proto_alpha/lib_protocol/test/double_endorsement.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/test/double_endorsement.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/test/double_endorsement.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 46.24878 | 100 | 0.616813 |
44e16d91c09ec6790338960630c62f07d2b77dee | 894 | ml | OCaml | syntax/tc/pa_deriving_tc.ml | dra27/deriving | 3a49de06d8be4b66ae9232781d24cee9c67e7e48 | [
"MIT"
] | 15 | 2015-02-14T12:06:00.000Z | 2022-03-27T18:50:29.000Z | syntax/tc/pa_deriving_tc.ml | dra27/deriving | 3a49de06d8be4b66ae9232781d24cee9c67e7e48 | [
"MIT"
] | 10 | 2015-05-21T06:19:10.000Z | 2019-08-13T12:27:05.000Z | syntax/tc/pa_deriving_tc.ml | dra27/deriving | 3a49de06d8be4b66ae9232781d24cee9c67e7e48 | [
"MIT"
] | 6 | 2016-06-13T20:38:42.000Z | 2022-03-27T16:20:24.000Z | (* Copyright Grégoire Henry 2010.
This file is free software, distributed under the MIT license.
See the file COPYING for details.
*)
(* Registering type derivers into type-conv. *)
open Camlp4.PreCast
open Pa_deriving_common
let translate_str deriver _ types =
let _loc = Ast.loc_of_ctyp types in
let decl... | 30.827586 | 68 | 0.780761 |
44717ef26040aa602f4210fc708b1afe327a6d5f | 18,323 | ml | OCaml | src/domains/printable.ml | MartinWehking/analyzer | 11789260de08a3b619f1482f9ef2d77d21699265 | [
"MIT"
] | null | null | null | src/domains/printable.ml | MartinWehking/analyzer | 11789260de08a3b619f1482f9ef2d77d21699265 | [
"MIT"
] | 7 | 2022-02-23T17:37:19.000Z | 2022-03-30T16:23:06.000Z | src/domains/printable.ml | MartinWehking/analyzer | 11789260de08a3b619f1482f9ef2d77d21699265 | [
"MIT"
] | null | null | null | (** Some things are not quite lattices ... *)
open Pretty
module type S =
sig
type t
val equal: t -> t -> bool
val hash: t -> int
val compare: t -> t -> int
val show: t -> string
val pretty: unit -> t -> doc
(* These two lets us reuse the short function, and allows some overriding
* possibilities. *)... | 30.136513 | 273 | 0.617421 |
8a275a0120570f4bf33769bd09d9b234489bfabf | 1,916 | mli | OCaml | CodeHawk/CHB/bchlibpower32/bCHDisassemblePower.mli | kestreltechnology/codehawk | e38199ded2b249e6b9d6d98ae7064ed1c887cc0a | [
"MIT"
] | 2 | 2019-12-05T18:50:53.000Z | 2019-12-07T18:47:44.000Z | CodeHawk/CHB/bchlibpower32/bCHDisassemblePower.mli | kestreltechnology/codehawk | e38199ded2b249e6b9d6d98ae7064ed1c887cc0a | [
"MIT"
] | 1 | 2020-03-04T05:04:37.000Z | 2020-03-04T05:04:37.000Z | CodeHawk/CHB/bchlibpower32/bCHDisassemblePower.mli | kestreltechnology/codehawk | e38199ded2b249e6b9d6d98ae7064ed1c887cc0a | [
"MIT"
] | 1 | 2019-12-05T18:51:24.000Z | 2019-12-05T18:51:24.000Z | (* =============================================================================
CodeHawk Binary Analyzer
Author: Henny Sipma
------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2022 Aarno Labs LLC
Permission is hereby granted, free of... | 37.568627 | 83 | 0.66023 |
f32528117e090ef4693ae1e317f24e05b277a3e5 | 470 | mli | OCaml | sledge/src/fol/propositional.mli | yunjeong-lee/infer | bf87088a35ddf3f73564e4d67583411b710aff01 | [
"MIT"
] | 1 | 2021-02-17T06:08:10.000Z | 2021-02-17T06:08:10.000Z | sledge/src/fol/propositional.mli | yunjeong-lee/infer | bf87088a35ddf3f73564e4d67583411b710aff01 | [
"MIT"
] | null | null | null | sledge/src/fol/propositional.mli | yunjeong-lee/infer | bf87088a35ddf3f73564e4d67583411b710aff01 | [
"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.
*)
(** Propositional formulas *)
include module type of Propositional_intf
module Make (Trm : sig
type t [@@deriving compare, equa... | 26.111111 | 75 | 0.7 |
444edf03146680d4d5d588ae6d334671192b03d7 | 2,298 | mli | OCaml | ocaml_typing/407/parser.mli | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 684 | 2018-05-24T14:14:06.000Z | 2022-03-14T21:13:22.000Z | ocaml_typing/407/parser.mli | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 439 | 2018-05-25T21:16:18.000Z | 2021-12-03T11:28:10.000Z | ocaml_typing/407/parser.mli | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 107 | 2018-05-30T23:53:50.000Z | 2022-01-10T10:50:53.000Z | type token =
| AMPERAMPER
| AMPERSAND
| AND
| AS
| ASSERT
| BACKQUOTE
| BANG
| BAR
| BARBAR
| BARRBRACKET
| BEGIN
| CHAR of (char)
| CLASS
| COLON
| COLONCOLON
| COLONEQUAL
| COLONGREATER
| COMMA
| CONSTRAINT
| DO
| DONE
| DOT
| DOTDOT
| DOWNTO
| ELSE
| END
| EOF
... | 16.897059 | 78 | 0.623586 |
446ca4f81bf3ea244f842e156cb9909f5c94f6bd | 17,317 | ml | OCaml | src/proto_006_PsCARTHA/lib_client/operation_result.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/proto_006_PsCARTHA/lib_client/operation_result.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | src/proto_006_PsCARTHA/lib_client/operation_result.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 33.430502 | 80 | 0.569614 |
449609f28207586d320090b043bd8209760a2039 | 3,140 | mli | OCaml | infer/src/absint/Errlog.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | infer/src/absint/Errlog.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | infer/src/absint/Errlog.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 2,225 | 2015-06-11T16:36:10.000Z | 2022-03-31T05:16:59.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
(** Module for error logs. *)
type node_tag =
| Condition of bool
| Exception of Typ.name
| Procedure_start of P... | 30.192308 | 100 | 0.700318 |
445fd0d8de5e6c14598ca1e505a65013104660d7 | 1,151 | ml | OCaml | harp/common.ml | SkyVault/Harp | 62df080c99b96bb9109d178d7149ef4ecef0ab0f | [
"MIT"
] | null | null | null | harp/common.ml | SkyVault/Harp | 62df080c99b96bb9109d178d7149ef4ecef0ab0f | [
"MIT"
] | null | null | null | harp/common.ml | SkyVault/Harp | 62df080c99b96bb9109d178d7149ef4ecef0ab0f | [
"MIT"
] | null | null | null | open Printf
open Tok_info
let (<<) f g x = f(g(x))
let (>>) f g x = g(f(x))
let (>>|) r f = Result.map f r
let (>>=) r f = Result.bind r f
let get_rnd_name_posfix = Random.int 1000
let cat_strings = List.fold_left (fun a b -> a ^ " " ^ b) ""
let rec zip paired_lists =
match paired_lists with
| [], [] -> []
| ... | 22.568627 | 65 | 0.614248 |
4433a7fd662892e20b5bb83a7d9246a55560ea3d | 5,641 | mli | OCaml | lib/acommon.mli | gabrik/apero-core | 23911b7bd4790a97043ad15c7d89a74fc117d8f7 | [
"Apache-2.0"
] | 3 | 2019-07-30T09:00:09.000Z | 2019-08-06T09:03:26.000Z | lib/acommon.mli | gabrik/apero-core | 23911b7bd4790a97043ad15c7d89a74fc117d8f7 | [
"Apache-2.0"
] | null | null | null | lib/acommon.mli | gabrik/apero-core | 23911b7bd4790a97043ad15c7d89a74fc117d8f7 | [
"Apache-2.0"
] | 4 | 2018-12-12T22:20:44.000Z | 2019-12-20T11:24:00.000Z | val identity : 'a -> 'a
val drop : int -> 'a list -> 'a list
val take : int -> 'a list -> 'a list
val compose : ('b -> 'c) -> ('a -> 'b) -> ('a -> 'c)
val some : 'b -> ('a -> 'b) -> 'a option -> 'b
val result : ('a -> 'b) -> ('c -> 'b) -> ('a, 'c) result -> 'b
val apply : ('a -> 'b) -> 'a -> 'b
val apply_n : 'a -> ('a... | 40.582734 | 137 | 0.455593 |
4493f2e1555ab73ae813408c1e38a41d9401a566 | 13,972 | ml | OCaml | examples/idas/serial/idasRoberts_FSA_sps.ml | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 24 | 2015-02-14T17:16:38.000Z | 2021-12-23T16:02:13.000Z | examples/idas/serial/idasRoberts_FSA_sps.ml | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 10 | 2016-03-20T22:14:49.000Z | 2022-03-16T09:54:31.000Z | examples/idas/serial/idasRoberts_FSA_sps.ml | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 5 | 2015-04-14T14:21:54.000Z | 2022-03-10T16:14:55.000Z | (*
* -----------------------------------------------------------------
* $Revision: 1.2 $
* $Date: 2008/04/15 16:37:37 $
* -----------------------------------------------------------------
* Programmer(s): Cosmin Petra and Radu Serban @ LLNL
* Programmer(s): Ting Yan @ SMU
* Based on idasRoberts_ASAi_dns.c ... | 31.11804 | 84 | 0.547452 |
bc49e44b49f667d8601298f2d5f0930e6913a5f0 | 132,439 | ml | OCaml | azure/hol-light-nat/Multivariate/derivatives.ml | fbrausse/flyspeck | 66f4ef0f9252c382333586fc07787e64d8a4bbfb | [
"MIT"
] | 125 | 2016-03-22T22:29:23.000Z | 2022-02-15T05:43:43.000Z | azure/hol-light-nat/Multivariate/derivatives.ml | fbrausse/flyspeck | 66f4ef0f9252c382333586fc07787e64d8a4bbfb | [
"MIT"
] | 4 | 2015-10-13T17:38:34.000Z | 2020-11-26T19:54:19.000Z | azure/hol-light-nat/Multivariate/derivatives.ml | fbrausse/flyspeck | 66f4ef0f9252c382333586fc07787e64d8a4bbfb | [
"MIT"
] | 9 | 2017-06-21T08:48:56.000Z | 2021-05-13T02:07:27.000Z | (* ========================================================================= *)
(* Multivariate calculus in Euclidean space. *)
(* *)
(* (c) Copyright, John Harrison 1998-2008 *)
... | 48.264942 | 81 | 0.621305 |
44e383bf1b2f68f6dd33d22fc2855ac88adc7ca8 | 539 | ml | OCaml | hphp/hack/src/typed_ast/typed_ast_defs.ml | escherlat/hhvm | 7814b9842f3d15876884e6e3b62f2d00821c1c17 | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2016-10-07T21:13:50.000Z | 2016-10-07T21:14:16.000Z | hack/typed_ast/typed_ast_defs.ml | jeffmo/flow | 315903b8a276aad1eb954c0aa5f175a286ce0324 | [
"BSD-3-Clause"
] | null | null | null | hack/typed_ast/typed_ast_defs.ml | jeffmo/flow | 315903b8a276aad1eb954c0aa5f175a286ce0324 | [
"BSD-3-Clause"
] | null | null | null | (** Like Typing_defs.locl ty, but without TVar, and with explicit null type. *)
type tast_ty_ =
(** This type not yet implemented in Typed AST. *)
| TNotImpl
| TAny
(** During typechecking, the null value gives rise to an unresolved optional.
* But we know an expression whose unresolved type hasn't been refi... | 35.933333 | 79 | 0.699443 |
448ec2b6409b602082f1c3ce8cf77e97e312ffc9 | 83 | ml | OCaml | data/fa15/clusters/0043.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/clusters/0043.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15/clusters/0043.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z | TupleG [LitG,VarG]
(0 , depth)
(b , true)
(b , false)
EMPTY
(true , b)
(false , x)
| 10.375 | 18 | 0.566265 |
44e83ac9e5b18390ddd7efeb5894d9a5d1249e43 | 25 | ml | OCaml | vendor/menhir/src/version.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/menhir/src/version.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/menhir/src/version.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | let version = "20190626"
| 12.5 | 24 | 0.72 |
447383163aee3833afac57e59b6fedb36eb450a1 | 2,983 | ml | OCaml | hphp/hack/src/typing/typing_defs_flags.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/src/typing/typing_defs_flags.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/src/typing/typing_defs_flags.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 2,126 | 2015-01-01T11:13:29.000Z | 2022-03-28T19:58:15.000Z | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
type fun_type_flags = int
type fun_param_flags = int
(* Is this bit set in the flags? *)
let is_s... | 25.715517 | 95 | 0.700302 |
af34384436b8e0de3b0ae7bff5f5a21788af5297 | 680 | ml | OCaml | src-ocaml/baijiu_sha3_224.ml | gpetiot/digestif | 4a8e07ee8b936951bd8009d74764532588316540 | [
"MIT"
] | 71 | 2017-05-09T09:36:31.000Z | 2022-03-29T11:35:18.000Z | src-ocaml/baijiu_sha3_224.ml | gpetiot/digestif | 4a8e07ee8b936951bd8009d74764532588316540 | [
"MIT"
] | 91 | 2017-07-05T10:52:32.000Z | 2022-03-29T12:26:36.000Z | src-ocaml/baijiu_sha3_224.ml | gpetiot/digestif | 4a8e07ee8b936951bd8009d74764532588316540 | [
"MIT"
] | 26 | 2017-05-09T10:52:17.000Z | 2022-03-31T15:30:01.000Z | module By = Digestif_by
module Bi = Digestif_bi
module type S = sig
type ctx
type kind = [ `SHA3_224 ]
val init : unit -> ctx
val unsafe_feed_bytes : ctx -> By.t -> int -> int -> unit
val unsafe_feed_bigstring : ctx -> Bi.t -> int -> int -> unit
val unsafe_get : ctx -> By.t
val dup : ctx -> ctx
end... | 16.585366 | 63 | 0.664706 |
bc1c87c628502282440ee95cf9be1cd63130ec1d | 2,092 | mli | OCaml | src/lib_stdlib_unix/systime_os.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_stdlib_unix/systime_os.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_stdlib_unix/systime_os.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2019 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 72.137931 | 79 | 0.479446 |
44f85e708b5d284e30b95407430b625f35735a00 | 24,526 | ml | OCaml | test/test_subtyping.ml | 0x4287/pi4 | 740516e9eedac9f9a69d589e80b765d7c4fca375 | [
"Apache-2.0"
] | null | null | null | test/test_subtyping.ml | 0x4287/pi4 | 740516e9eedac9f9a69d589e80b765d7c4fca375 | [
"Apache-2.0"
] | null | null | null | test/test_subtyping.ml | 0x4287/pi4 | 740516e9eedac9f9a69d589e80b765d7c4fca375 | [
"Apache-2.0"
] | null | null | null | open Alcotest
open Pi4
open Syntax
open Formula
open HeapType
module TestConfig = struct
let verbose = true
let maxlen = ref(32)
end
module Test = Test_utils.TestRunner (TestConfig)
let eth_inst =
Test_utils.mk_inst "eth" [ ("smac", 48) (* "dmac", 48; "type", 16*) ]
let ipv4_inst = Test_utils.mk_inst "ipv4" ... | 31.323116 | 107 | 0.515494 |
bc3e757ef5da0c28042e22c05a5b79f7c8b617e0 | 51 | ml | OCaml | test/blackbox-tests/test-cases/merlin/server.t/not-a-module-name.ml | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | test/blackbox-tests/test-cases/merlin/server.t/not-a-module-name.ml | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | test/blackbox-tests/test-cases/merlin/server.t/not-a-module-name.ml | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | print_endline "I do not bear a valid module name."
| 25.5 | 50 | 0.764706 |
bc317916ab071c568476b011511507353d714f91 | 9,150 | ml | OCaml | hphp/hack/src/server/serverConcatenateAll.ml | xtaofb/hhvm | 5a5d2787039965fa12d36d30820a724a5c0f041d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverConcatenateAll.ml | xtaofb/hhvm | 5a5d2787039965fa12d36d30820a724a5c0f041d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverConcatenateAll.ml | xtaofb/hhvm | 5a5d2787039965fa12d36d30820a724a5c0f041d | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-01-29T08:44:22.000Z | 2021-01-29T08:44:22.000Z | (*
* Copyright (c) 2019, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE fn in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open ServerEnv
module SourceText = Full_fidelity_source_text
module Syntax = Full_fidelity_editable_sy... | 37.044534 | 81 | 0.603279 |
bc50ac81df07d4a3463f16ea00338138778cb91d | 78 | mli | OCaml | lib/Nat.mli | soren-n/cps-toolbox | 3923f1ebdefe8b2dbfa8a2cdac1e103781d4efd1 | [
"MIT"
] | null | null | null | lib/Nat.mli | soren-n/cps-toolbox | 3923f1ebdefe8b2dbfa8a2cdac1e103781d4efd1 | [
"MIT"
] | null | null | null | lib/Nat.mli | soren-n/cps-toolbox | 3923f1ebdefe8b2dbfa8a2cdac1e103781d4efd1 | [
"MIT"
] | null | null | null | val zero : int
val succ : int -> int
val fold : 'r -> ('r -> 'r) -> int -> 'r
| 19.5 | 40 | 0.474359 |
4411f06ad0d6766b145d5adf4a0da2d946317f59 | 2,620 | ml | OCaml | data/sp14_min/3369.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/3369.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/3369.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 x :: (clone x (n - 1)) else [];;
let padZero l1 l2 =
if (List.length l1) < (List.length l2)
then ((List.append (clone 0 ((List.length l2) - (List.length l1))) l1), l2)
else (l1, (List.append (clone 0 ((List.length l1) - (List.length l2))) l2));;
let rec removeZero l =
match ... | 21.47541 | 79 | 0.451908 |
bc37b436f00efc62b1b5cf8cfb945be8bbfae8d9 | 2,793 | ml | OCaml | src/ethif/ethif.ml | well-typed-lightbulbs/mirage-tcpip | 259439ba1ac8f2114a549223ce11d121373671ab | [
"0BSD"
] | 1 | 2021-06-14T11:29:01.000Z | 2021-06-14T11:29:01.000Z | src/ethif/ethif.ml | well-typed-lightbulbs/mirage-tcpip | 259439ba1ac8f2114a549223ce11d121373671ab | [
"0BSD"
] | null | null | null | src/ethif/ethif.ml | well-typed-lightbulbs/mirage-tcpip | 259439ba1ac8f2114a549223ce11d121373671ab | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2010-2011 Anil Madhavapeddy <anil@recoil.org>
* Copyright (c) 2011 Richard Mortier <richard.mortier@nottingham.ac.uk>
*
* 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 pe... | 31.033333 | 91 | 0.665593 |
bc04060127fec2a9b2618c51826722b9390a988b | 4,850 | ml | OCaml | 2nd/compiler/assem.ml | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | null | null | null | 2nd/compiler/assem.ml | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | null | null | null | 2nd/compiler/assem.ml | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | 3 | 2020-10-08T04:16:58.000Z | 2021-10-11T13:19:30.000Z | type id_or_imm = V of Id.t | C of int
type t =
| Nop
| Add of Id.t * Id.t * Id.t
| Addi of Id.t * Id.t * int
(* ラベルの行数をmovする命令. ラベルの位置が判明後Addiに変換する. *)
| Movl of Id.t * string
| Sub of Id.t * Id.t * Id.t
| And of Id.t * Id.t * Id.t
| Or of Id.t * Id.t * Id.t
| Ori of Id.t * Id.t * i... | 39.112903 | 74 | 0.481031 |
bc4cdc832b5200172c4485b21b68fcb6f261e949 | 13,884 | ml | OCaml | src/commands/commandUtils.ml | nkt/flow | 2811b484442cff224a82cae47bbb877caa7ed3de | [
"BSD-3-Clause"
] | 1 | 2018-10-10T01:42:05.000Z | 2018-10-10T01:42:05.000Z | src/commands/commandUtils.ml | nkt/flow | 2811b484442cff224a82cae47bbb877caa7ed3de | [
"BSD-3-Clause"
] | null | null | null | src/commands/commandUtils.ml | nkt/flow | 2811b484442cff224a82cae47bbb877caa7ed3de | [
"BSD-3-Clause"
] | 1 | 2018-10-10T01:42:06.000Z | 2018-10-10T01:42:06.000Z | (**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open ... | 29.987041 | 91 | 0.676318 |
8afadb9572e53038ce4606b08cd26097ad298983 | 44 | ml | OCaml | tests/types/class/additional-class-method.ml | aiverson/amulet | b725df9b1b634b791a47a0bc8056e24f122b57ac | [
"BSD-3-Clause"
] | 1 | 2021-11-23T13:07:37.000Z | 2021-11-23T13:07:37.000Z | tests/types/class/additional-class-method.ml | aiverson/amulet | b725df9b1b634b791a47a0bc8056e24f122b57ac | [
"BSD-3-Clause"
] | null | null | null | tests/types/class/additional-class-method.ml | aiverson/amulet | b725df9b1b634b791a47a0bc8056e24f122b57ac | [
"BSD-3-Clause"
] | null | null | null | let x = 0
class c 'a begin
let x = 0
end
| 7.333333 | 16 | 0.568182 |
8adcfb2bd4183316c38a6abfa22cddb10f957f87 | 107,579 | ml | OCaml | hphp/hack/src/hackfmt/hack_format.ml | smrproject/hhvm | af9f284a02345198a3b42660377c7f5f2734f279 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2019-09-01T19:40:10.000Z | 2019-10-18T13:30:30.000Z | hphp/hack/src/hackfmt/hack_format.ml | symisc/phvm | 2eca3b36b66794ef2fa9fc57ab713c4cca225694 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-12-16T15:39:15.000Z | 2018-12-16T15:39:16.000Z | hphp/hack/src/hackfmt/hack_format.ml | symisc/phvm | 2eca3b36b66794ef2fa9fc57ab713c4cca225694 | [
"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 Core_kernel
module Env = Format_env
module SourceText = Full_fidelity_source_text
module Syntax = Full_fideli... | 31.245716 | 104 | 0.646678 |
447de1c73d3d7595ead6ba79ccb279d5d9ff4e30 | 5,574 | ml | OCaml | pa/matching.ml | nclskoh/duet | bb2e84f8184683cac59b914d5d8f2c959fdf6b0c | [
"MIT"
] | 25 | 2016-10-10T13:52:45.000Z | 2021-12-15T07:49:04.000Z | pa/matching.ml | nclskoh/duet | bb2e84f8184683cac59b914d5d8f2c959fdf6b0c | [
"MIT"
] | 3 | 2016-02-10T14:03:46.000Z | 2019-08-18T13:59:53.000Z | pa/matching.ml | nclskoh/duet | bb2e84f8184683cac59b914d5d8f2c959fdf6b0c | [
"MIT"
] | 20 | 2016-02-10T13:46:19.000Z | 2022-02-18T16:02:16.000Z | open Srk
include Log.Make(struct let name = "BiGraph" end)
module type Vertex = sig
type t
val hash : t -> int
val equal : t -> t -> bool
val compare : t -> t -> int
val pp : Format.formatter -> t -> unit
end
module type S = sig
type t
type vertex
val pp : Format.formatter -> t -> unit
val empty ... | 32.034483 | 117 | 0.58737 |
44cf5f82498c15449b9903b471988ec877ff741d | 764 | ml | OCaml | data/derived/comb/progs/unify/prog8452.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/prog3666.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3666.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
let sizDif = (List.length l1) - (List.length l2) in
if sizDif > 0
then let pad = clone 0 sizDif in (l1, (pad @ l2))
else (let pad = clone 0 (- sizDif) in ((pad @ l1), l2));;
let rec removeZero l =
match l with | [] -> [... | 30.56 | 78 | 0.513089 |
8ac67a462673e55a70f0cd765fecb62e585cd2d9 | 22,354 | ml | OCaml | analysis/test/inferenceTest.ml | HybridDeveloper/pyre-check | 48d1f8bbf19003417e64950561c786e28af1251a | [
"MIT"
] | null | null | null | analysis/test/inferenceTest.ml | HybridDeveloper/pyre-check | 48d1f8bbf19003417e64950561c786e28af1251a | [
"MIT"
] | null | null | null | analysis/test/inferenceTest.ml | HybridDeveloper/pyre-check | 48d1f8bbf19003417e64950561c786e28af1251a | [
"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
open Analysis
open Inference
open Test
let configuration = Configuration.Analysis.create ~infer:true ()
let ... | 27.161604 | 128 | 0.53704 |
bc01c63f1d9d8054b8680c6aed96252d4e58ea65 | 25,555 | ml | OCaml | src/common/config/flowConfig.ml | admmasters/flow | ad94c367b7f016c7ced479d155b6aba71805d002 | [
"BSD-3-Clause"
] | null | null | null | src/common/config/flowConfig.ml | admmasters/flow | ad94c367b7f016c7ced479d155b6aba71805d002 | [
"BSD-3-Clause"
] | 2 | 2021-07-07T23:32:21.000Z | 2022-03-23T16:49:04.000Z | src/common/config/flowConfig.ml | admmasters/flow | ad94c367b7f016c7ced479d155b6aba71805d002 | [
"BSD-3-Clause"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open ... | 29.205714 | 104 | 0.609939 |
bc3d23724f0c0a885914ee03445a270026e3a18e | 251 | mli | OCaml | src/lib/listset.mli | eytans/cyclist | 93e9c2e1bff5caea33582167d0017c6414dbf44a | [
"BSD-3-Clause"
] | 21 | 2015-07-30T10:28:00.000Z | 2022-03-16T00:21:23.000Z | src/lib/listset.mli | eytans/cyclist | 93e9c2e1bff5caea33582167d0017c6414dbf44a | [
"BSD-3-Clause"
] | 7 | 2015-09-25T16:10:52.000Z | 2021-08-10T05:26:23.000Z | src/lib/listset.mli | eytans/cyclist | 93e9c2e1bff5caea33582167d0017c6414dbf44a | [
"BSD-3-Clause"
] | 5 | 2015-10-18T16:20:47.000Z | 2021-04-04T16:11:03.000Z | (** A list-based set container. *)
(** Create an ordered container whose underlying representation is a list.
The [to_list] operation takes constant time. *)
module Make (T : Utilsigs.BasicType) :
Utilsigs.OrderedContainer with type elt = T.t
| 35.857143 | 75 | 0.729084 |
bc11eaa00e89eeed37d464858b89e9606ad0a9e3 | 2,870 | ml | OCaml | legacy/lib/c/src/bandpass_nifti/FFTW/fftw-3.1.2/genfft-k7/nullVectorization.ml | deyingli/Standalone_Ooi2022_MMP | 74fdb28cb1c26a3088144ced720fc69351ffa5ab | [
"MIT"
] | 1 | 2019-04-10T02:50:19.000Z | 2019-04-10T02:50:19.000Z | legacy/lib/c/src/bandpass_nifti/FFTW/fftw-3.1.2/genfft-k7/nullVectorization.ml | deyingli/Standalone_Ooi2022_MMP | 74fdb28cb1c26a3088144ced720fc69351ffa5ab | [
"MIT"
] | null | null | null | legacy/lib/c/src/bandpass_nifti/FFTW/fftw-3.1.2/genfft-k7/nullVectorization.ml | deyingli/Standalone_Ooi2022_MMP | 74fdb28cb1c26a3088144ced720fc69351ffa5ab | [
"MIT"
] | 1 | 2022-03-12T08:21:59.000Z | 2022-03-12T08:21:59.000Z | (*
* Copyright (c) 2000-2001 Stefan Kral
*
* 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 program is d... | 36.329114 | 78 | 0.663415 |
446d08e6d99c17f260762ac69b8a2a6f4711e340 | 1,317 | ml | OCaml | otherlibs/stdune-unstable/top_closure.ml | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | otherlibs/stdune-unstable/top_closure.ml | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | otherlibs/stdune-unstable/top_closure.ml | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | module Make (Keys : Top_closure_intf.Keys) (Monad : Monad_intf.S) = struct
open Monad.O
let top_closure ~key ~deps elements =
let visited = ref Keys.empty in
let res = ref [] in
let rec loop elt ~temporarily_marked =
let key = key elt in
if Keys.mem temporarily_marked key then
Monad... | 35.594595 | 74 | 0.605923 |
448b01ae5e2e7a1e522ce16aa8f5dd0d901d380b | 232 | ml | OCaml | data/derived/comb/progs/unify/prog8066.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/prog3273.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3273.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 exprToString e = match e with | VarX -> Printf.printf "%s" VarX;;
| 19.333333 | 74 | 0.62069 |
446e420aa3ddb6bbcb6bce0c0b1bbed8d6385d2c | 2,791 | mli | OCaml | src/ocaml-3.12.0/bytecomp/dll.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2015-01-27T00:11:26.000Z | 2015-01-27T00:11:26.000Z | src/ocaml-3.12.0/bytecomp/dll.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/bytecomp/dll.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Xavier Ler... | 45.754098 | 75 | 0.58402 |
8adb5cc0deee2b2798a3cf9a63b1bb7c6dfff044 | 169 | ml | OCaml | hackerrank/fp/recursion/gcd.ml | corvinusy/ocaml-toys | 57222fc1e0ca28a49857aab57a587e943081c909 | [
"Apache-2.0"
] | null | null | null | hackerrank/fp/recursion/gcd.ml | corvinusy/ocaml-toys | 57222fc1e0ca28a49857aab57a587e943081c909 | [
"Apache-2.0"
] | null | null | null | hackerrank/fp/recursion/gcd.ml | corvinusy/ocaml-toys | 57222fc1e0ca28a49857aab57a587e943081c909 | [
"Apache-2.0"
] | null | null | null | let rec gcd a b =
match b mod a with
| 0 -> a
| _ -> gcd (b mod a) a
let () =
let input = read_line() in
print_int (Scanf.sscanf input "%d %d" gcd)
| 18.777778 | 46 | 0.526627 |
447e4f01a428686cebbc73b27b593eb31c12fa61 | 4,221 | ml | OCaml | src/file_descr_watcher_intf.ml | bogdan2412/async_unix | 5cb04cfd8ea473a312b10e4c281892f319599fe6 | [
"MIT"
] | 24 | 2015-02-10T21:51:44.000Z | 2022-03-20T23:00:46.000Z | src/file_descr_watcher_intf.ml | bogdan2412/async_unix | 5cb04cfd8ea473a312b10e4c281892f319599fe6 | [
"MIT"
] | 18 | 2015-01-29T03:57:07.000Z | 2021-05-30T05:40:22.000Z | src/file_descr_watcher_intf.ml | bogdan2412/async_unix | 5cb04cfd8ea473a312b10e4c281892f319599fe6 | [
"MIT"
] | 23 | 2015-02-04T18:52:09.000Z | 2022-02-17T20:25:31.000Z | (** [File_descr_watcher_intf.S] provides an API for for watching a set of file descriptors
to see if they are ready for reading or writing.
We have two implementations, one using epoll, and one using select.
None of the functions need to be thread-safe, with the exception of
[thread_safe_check]. So t... | 41.382353 | 90 | 0.68941 |
bc30b0016f48e4bea2cd2b43ad75e727f49a2ede | 2,305 | mli | OCaml | coq/clib/terminal.mli | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq/clib/terminal.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq/clib/terminal.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/ *********... | 30.328947 | 78 | 0.580911 |
448c44d0385fa09d1a87ec95b5346e82048513a8 | 7,450 | ml | OCaml | src_top/top.ml | VarunKoyyalagunta/rmem | 9de95224f6293acb3cd6022471219a0a01b9b260 | [
"BSD-2-Clause"
] | 37 | 2019-01-14T13:08:24.000Z | 2022-02-14T20:57:12.000Z | src_top/top.ml | VarunKoyyalagunta/rmem | 9de95224f6293acb3cd6022471219a0a01b9b260 | [
"BSD-2-Clause"
] | 10 | 2019-07-26T09:34:35.000Z | 2021-12-31T20:17:32.000Z | src_top/top.ml | VarunKoyyalagunta/rmem | 9de95224f6293acb3cd6022471219a0a01b9b260 | [
"BSD-2-Clause"
] | 12 | 2019-02-13T17:50:41.000Z | 2021-12-31T19:08:00.000Z | (*=========================================================================================================*)
(* *)
(* rmem executable model ... | 43.063584 | 115 | 0.510201 |
8a396f24d3986633ca0b05015c5e4bb70e5fbc41 | 4,156 | mli | OCaml | src/proto_alpha/lib_protocol/tx_rollup_commitment_repr.mli | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/tx_rollup_commitment_repr.mli | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/tx_rollup_commitment_repr.mli | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2022 Marigold <contact@marigold.dev> *)
... | 40.745098 | 79 | 0.591915 |
44f60ae1c7c000548bdfefd31bf3229dcb2534b1 | 24,373 | ml | OCaml | src/memo/memo.ml | Julow/dune | 2aac0728daa65780df9187a409a1c166ff9ab6bf | [
"MIT"
] | null | null | null | src/memo/memo.ml | Julow/dune | 2aac0728daa65780df9187a409a1c166ff9ab6bf | [
"MIT"
] | null | null | null | src/memo/memo.ml | Julow/dune | 2aac0728daa65780df9187a409a1c166ff9ab6bf | [
"MIT"
] | null | null | null | open! Stdune
open Fiber.O
let on_already_reported = ref Exn_with_backtrace.reraise
module Code_error_with_memo_backtrace = struct
(* A single memo frame and the OCaml frames it called which lead to the error *)
type frame =
{ ocaml : string
; memo : Dyn.t
}
type t =
{ exn : Code_error.t
; r... | 27.7281 | 82 | 0.590736 |
44e0801e77c4db04c52712a3fdf77191d5f0603a | 2,314 | mli | OCaml | hphp/hack/src/decl/decl_heap.mli | emptyIIknowledge/hhvm | 64834993b347f3d6b1973817a702a8a4ec86b055 | [
"PHP-3.01",
"Zend-2.0"
] | 7 | 2021-09-20T18:47:18.000Z | 2021-09-20T23:02:22.000Z | hphp/hack/src/decl/decl_heap.mli | emptyIIknowledge/hhvm | 64834993b347f3d6b1973817a702a8a4ec86b055 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/decl_heap.mli | emptyIIknowledge/hhvm | 64834993b347f3d6b1973817a702a8a4ec86b055 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Typing_defs
open Decl_defs
module Capacity : sig
val capacity : int
end
module Class : SharedMem.Value with... | 25.711111 | 79 | 0.71694 |
4453ab2bec13b756472023cd2a88a11f4b92329b | 2,858 | ml | OCaml | bin/arg.ml | alexfmpe/dune | 02e794246d25e8af5934ba85c0ca0e630239c054 | [
"MIT"
] | null | null | null | bin/arg.ml | alexfmpe/dune | 02e794246d25e8af5934ba85c0ca0e630239c054 | [
"MIT"
] | null | null | null | bin/arg.ml | alexfmpe/dune | 02e794246d25e8af5934ba85c0ca0e630239c054 | [
"MIT"
] | null | null | null | open Stdune
open Dune
include Cmdliner.Arg
let package_name =
conv ((fun p -> Ok (Package.Name.of_string p)), Package.Name.pp)
module Path = struct
type t = string
let path p = Path.of_filename_relative_to_initial_cwd p
let arg s = s
let conv = conv ((fun p -> Ok p), Format.pp_print_string)
end
let path... | 25.517857 | 78 | 0.636809 |
44f1376665cf08ab07f6f309b85973b70cf43732 | 850 | ml | OCaml | sonar_sweep.ml | theteachr/aoc-2021 | afa5206036d721321205c4e0e02928ebf8178be2 | [
"MIT"
] | null | null | null | sonar_sweep.ml | theteachr/aoc-2021 | afa5206036d721321205c4e0e02928ebf8178be2 | [
"MIT"
] | null | null | null | sonar_sweep.ml | theteachr/aoc-2021 | afa5206036d721321205c4e0e02928ebf8178be2 | [
"MIT"
] | null | null | null | open Base
open Core
type input = int list
type output = int
let string_of_output = Int.to_string
let read path =
In_channel.read_lines path
|> List.map ~f:Int.of_string
let solve_one report =
let rec aux inc_count = function
| [] -> inc_count
| hd :: (hd' :: _ as tl) when hd < hd' -> aux (inc_count +... | 21.794872 | 68 | 0.643529 |
bc304b5380eea0995a278b650df77b7cc88c743e | 309 | ml | OCaml | OCaml from the Very Beginning/Chapter 4/exercise02.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 100 | 2017-09-08T09:49:08.000Z | 2022-03-10T12:12:50.000Z | OCaml from the Very Beginning/Chapter 4/exercise02.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 1 | 2020-01-31T15:47:28.000Z | 2020-02-01T11:54:44.000Z | OCaml from the Very Beginning/Chapter 4/exercise02.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | null | null | null | let rec count_true l =
match l with
[] -> 0
| true::t -> 1 + count_true t
| false::t -> count_true t
let rec count_true_inner n l =
match l with
[] -> n
| true::t -> count_true_inner (n + 1) t
| false::t -> count_true_inner n t
let count_true' l =
count_true_inner 0 l
| 19.3125 | 42 | 0.572816 |
f3fddd2bc8b9b5f86d632bffa0de1b4f3cb4def1 | 2,807 | mli | OCaml | src/lustre/lustreAstHelpers.mli | arjunvish/kind2 | adb70ce68997bf41e1ba097826428683a074929a | [
"Apache-2.0"
] | null | null | null | src/lustre/lustreAstHelpers.mli | arjunvish/kind2 | adb70ce68997bf41e1ba097826428683a074929a | [
"Apache-2.0"
] | null | null | null | src/lustre/lustreAstHelpers.mli | arjunvish/kind2 | adb70ce68997bf41e1ba097826428683a074929a | [
"Apache-2.0"
] | null | null | null | (* This file is part of the Kind 2 model checker.
Copyright (c) 2015 by the Board of Trustees of the University of Iowa
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.a... | 35.987179 | 114 | 0.724973 |
bc16cbc9e8fe06cf2a37f76940b002c37eb841f1 | 1,763 | ml | OCaml | src/lib/coda_lib/config.ml | LukasGerm/coda | 443d87f510f618263a927e1052e1d6a53b0f6264 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_lib/config.ml | LukasGerm/coda | 443d87f510f618263a927e1052e1d6a53b0f6264 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_lib/config.ml | LukasGerm/coda | 443d87f510f618263a927e1052e1d6a53b0f6264 | [
"Apache-2.0"
] | null | null | null | open Async_kernel
open Coda_base
open Auxiliary_database
open Signature_lib
(* TODO: Pass banlist to modules discussed in Ban Reasons issue: https://github.com/CodaProtocol/coda/issues/852 *)
module Snark_worker_config = struct
type t =
{ initial_snark_worker_key: Public_key.Compressed.t option
; shutdown_o... | 37.510638 | 115 | 0.779921 |
af998fc60705ccf4ef7396d2f969a573c538d916 | 5,208 | ml | OCaml | src/lib_benchmark/csv.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/lib_benchmark/csv.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/lib_benchmark/csv.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs. <contact@nomadic-labs.com> *)
... | 42 | 98 | 0.576421 |
44e22c4de344beac5c58a814a329d2694fafd25b | 128 | ml | OCaml | benchmarks/sigma/sigma1/submissions/sub123.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/sigma/sigma1/submissions/sub123.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/sigma/sigma1/submissions/sub123.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | exception ERROR of string
let rec sigma (a, b, f) =
if(a < b) then (f a) + sigma(a+1, b, f) else if (a = b) then (f a) else 0
| 25.6 | 74 | 0.578125 |
bc1dd8668d9f7469710437ebbf6a9ec41550bcea | 2,577 | ml | OCaml | tests/benchmarks/r_type/termination/indirect01.ml | LinerSu/DART_IT | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 7 | 2020-06-12T09:32:16.000Z | 2020-10-05T09:04:07.000Z | tests/benchmarks/r_type/termination/indirect01.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | null | null | null | tests/benchmarks/r_type/termination/indirect01.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 2 | 2021-04-05T12:25:11.000Z | 2021-05-14T09:31:24.000Z |
let rec bot _ = bot ()
let fail _ = assert false
let rec c1_COEFFICIENT_1085 = 0
let rec c0_COEFFICIENT_1084 = 0
let id_1030 set_flag_app_1137 s_app_h_EXPARAM_1128 s_app_v_1130 x_1031 =
x_1031
let rec app_without_checking_1157 x_DO_NOT_CARE_1215 x_DO_NOT_CARE_1216 x_DO_NOT_CARE_1217 h_EXPARAM_1087 x... | 47.722222 | 297 | 0.716725 |
af46dd5c3cf0f3edd785bd3618395fe49639af57 | 6,032 | ml | OCaml | rw_server/sendmail.ml | gbe/repwatcher | 79d07fa32e0b33b7de8ebea79dbdd86ae096c058 | [
"MIT"
] | 2 | 2015-12-15T20:51:40.000Z | 2016-04-28T11:26:40.000Z | rw_server/sendmail.ml | gbe/repwatcher | 79d07fa32e0b33b7de8ebea79dbdd86ae096c058 | [
"MIT"
] | null | null | null | rw_server/sendmail.ml | gbe/repwatcher | 79d07fa32e0b33b7de8ebea79dbdd86ae096c058 | [
"MIT"
] | null | null | null | open Types
open Types_conf
let (|>) x f = f x
exception SMTP_error of int * string list
let ssl_already_init = ref false
type socket =
| Unix_socket of Unix.file_descr
| SSL_socket of Ssl.socket
let create_message html conf_e subject body attachment =
(* This avoids to ask for the recipients's real name in ... | 29.281553 | 103 | 0.607261 |
bc2a2c5e61a5d0e6d8a66b4a0078785a07b101e9 | 1,798 | ml | OCaml | infer/src/nullsafe/IDEnv.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | infer/src/nullsafe/IDEnv.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | infer/src/nullsafe/IDEnv.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
(** Environment for temporary identifiers used in instructions. Lazy implementation: only created
when actually use... | 28.539683 | 97 | 0.667964 |
44c50a6f2715cdc76fd3bb2f53f286c85e8c8e12 | 8,515 | mli | OCaml | lib/type_equal.mli | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | lib/type_equal.mli | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | lib/type_equal.mli | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | (** For representing type equalities otherwise not known by the type-checker.
The purpose of [Type_equal] is to represent type equalities that the type checker
otherwise would not know, perhaps because the type equality depends on dynamic data,
or perhaps because the type system isn't powerful enough.
... | 40.741627 | 90 | 0.630652 |
44cdd57d1c5394e635255a0cf3096d623dc64746 | 5,569 | ml | OCaml | src/server/rechecker/rechecker.ml | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | 1 | 2018-12-18T19:19:16.000Z | 2018-12-18T19:19:16.000Z | src/server/rechecker/rechecker.ml | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | null | null | null | src/server/rechecker/rechecker.ml | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"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.
*)
open ServerEnv
open Utils_js
let get_lazy_stats genv env =
{ ServerProt.Response.
lazy_mode = Options.lazy_mode genv.options;
... | 40.649635 | 98 | 0.74807 |
bc3bd27ed841b8f88708adf837cc205d15537b97 | 796 | ml | OCaml | data/sp14/0854.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/0854.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/0854.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec digitsOfInt n =
let ns = [] in
match n with
| 0 -> 0 :: ns
| n -> (digitsOfInt (n / 10)) :: (n mod 10) :: ns;;
(* fix
let rec digitsOfInt n =
let ns = [] in
match n with | 0 -> 0 :: ns | n -> (n mod 10) :: (digitsOfInt (n / 10));;
*)
(* changed spans
(6,9)-(6,31)
(6,35)-(6,45)
(6,35)-(6,51)
(6... | 13.266667 | 75 | 0.444724 |
44e17fec38d03ae7aab290228ccc4062bc72d426 | 1,375 | mli | OCaml | ocaml/utils/binutils.mli | johnyob/typed-ppxlib | 3870bda5d3d69c9d7153aaf3cd87990aa862b2d9 | [
"MIT"
] | 28 | 2021-04-03T12:50:31.000Z | 2022-03-09T01:30:00.000Z | ocaml/utils/binutils.mli | johnyob/typed-ppxlib | 3870bda5d3d69c9d7153aaf3cd87990aa862b2d9 | [
"MIT"
] | 4 | 2021-07-16T13:28:22.000Z | 2021-09-10T23:51:53.000Z | ocaml/utils/binutils.mli | johnyob/typed-ppxlib | 3870bda5d3d69c9d7153aaf3cd87990aa862b2d9 | [
"MIT"
] | 1 | 2021-07-16T18:23:50.000Z | 2021-07-16T18:23:50.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 44.354839 | 76 | 0.330909 |
bc48bd7696f9e98cebf377f0fd8a626a11d91364 | 1,061 | ml | OCaml | lib/transaction.ml | venator/ocaml-ripple | eae08290c80647222050772812118af358fe650b | [
"MIT"
] | 1 | 2017-10-27T22:37:35.000Z | 2017-10-27T22:37:35.000Z | lib/transaction.ml | venator/ocaml-ripple | eae08290c80647222050772812118af358fe650b | [
"MIT"
] | null | null | null | lib/transaction.ml | venator/ocaml-ripple | eae08290c80647222050772812118af358fe650b | [
"MIT"
] | null | null | null | (* High level transaction types *)
module R = Ripple_api_t
type node_op =
| Created
| Modified
| Deleted
type node =
{ op: node_op;
node_content: R.node
}
let nodes_of_tx t =
let open R in
let affected_nodes = t.tx_msg_meta.tx_meta_affected_nodes in
List.map
(function
| { created_node=... | 29.472222 | 107 | 0.688973 |
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.