_id
stringlengths
64
64
repository
stringlengths
6
84
name
stringlengths
4
110
content
stringlengths
0
248k
license
null
download_url
stringlengths
89
454
language
stringclasses
7 values
comments
stringlengths
0
74.6k
code
stringlengths
0
248k
5d7e7a87982c56aadbf52e7a683fd28003a664e8299bbd529c405a38b87f5f5a
BranchTaken/Hemlock
test_empty_cmper_m_singleton_length.ml
open! Basis.Rudiments open! Basis open Ordset let test () = let e = empty (module Uns) in assert (length e = 0L); File.Fmt.stdout |> fmt e |> Fmt.fmt "\n" |> ignore; let s = singleton (cmper_m e) 0L in assert (length s = 1L); File.Fmt.stdout |> fmt s |> Fmt.fmt "\n" |> ignore let _ = test ()
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/a21b462fe7f70475591d2ffae185c91552bf6372/bootstrap/test/basis/ordset/test_empty_cmper_m_singleton_length.ml
ocaml
open! Basis.Rudiments open! Basis open Ordset let test () = let e = empty (module Uns) in assert (length e = 0L); File.Fmt.stdout |> fmt e |> Fmt.fmt "\n" |> ignore; let s = singleton (cmper_m e) 0L in assert (length s = 1L); File.Fmt.stdout |> fmt s |> Fmt.fmt "\n" |> ignore let _ = test ()
d1d4d6ad335f038bb2c7ad9e28efaf4cd49001b2903e9d6c98bd4a9340dcd79c
foreverbell/project-euler-solutions
561.hs
count :: Int -> Int count 0 = 0 count n = (n `div` 2) + count (n `div` 2) solve ( 4*n ) solve :: Int -> Int solve n = (m + 1) * (n + count (n+1)) where m = 904961 main = print $ solve (10^12 `div` 4)
null
https://raw.githubusercontent.com/foreverbell/project-euler-solutions/c0bf2746aafce9be510892814e2d03e20738bf2b/src/561.hs
haskell
count :: Int -> Int count 0 = 0 count n = (n `div` 2) + count (n `div` 2) solve ( 4*n ) solve :: Int -> Int solve n = (m + 1) * (n + count (n+1)) where m = 904961 main = print $ solve (10^12 `div` 4)
2d5ba398530cd4d46ba82c7cb7908e24b592e474ae23528d1471ae3aacfbddf0
airbus-seclab/bincat
config.ml
This file is part of BinCAT . Copyright 2014 - 2022 - Airbus BinCAT is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your opti...
null
https://raw.githubusercontent.com/airbus-seclab/bincat/7d4a0b90cf950c0f43e252602a348cf9e2f858ba/ocaml/src/utils/config.ml
ocaml
set of values that will not be explored as values of the instruction pointer * no structure ; codes begins at phys_code_addr and is loader at rva_code * uses [sections] to map file in virtual mem name of binary file to analyze PowerPC x64 SystemV risc v without floating point hardware value of the NULL add...
This file is part of BinCAT . Copyright 2014 - 2022 - Airbus BinCAT is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your opti...
5b2f67904eb28877a44786dcce4193d6d5d8a5126d271e44fad06326de8c4ddd
clojure-interop/google-cloud-clients
BucketInfo$NumNewerVersionsDeleteRule.clj
(ns com.google.cloud.storage.BucketInfo$NumNewerVersionsDeleteRule "Deprecated. Use a LifecycleRule with a DeleteLifecycleAction and a condition LifecycleCondition.Builder.setNumberOfNewerVersions instead." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.storage BucketInfo$NumNe...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.storage/src/com/google/cloud/storage/BucketInfo%24NumNewerVersionsDeleteRule.clj
clojure
(ns com.google.cloud.storage.BucketInfo$NumNewerVersionsDeleteRule "Deprecated. Use a LifecycleRule with a DeleteLifecycleAction and a condition LifecycleCondition.Builder.setNumberOfNewerVersions instead." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.storage BucketInfo$NumNe...
315e03900e02cd8192679eba7dfb1d551d7f45ed50475ae71f132ef1df96dd32
ocaml-multicore/tezos
test_voting.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_alpha/lib_protocol/test/integration/operations/test_voting.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETH...
487c12368006b741fad98a0a050d79a5a0ca69a9924f8e4a85ce532d1c091ef0
mfikes/fifth-postulate
ns27.cljs
(ns fifth-postulate.ns27) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (xs...
null
https://raw.githubusercontent.com/mfikes/fifth-postulate/22cfd5f8c2b4a2dead1c15a96295bfeb4dba235e/src/fifth_postulate/ns27.cljs
clojure
(ns fifth-postulate.ns27) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (xs...
570f0952b55cc16a8924f2ff96150abdee0349266bc93ff9b72dc44e9de2eb43
matteobusi/incremental-mincaml
stest.ml
* A module internal to [ Core_bench ] . Please look at { ! Bench } . A [ Test.t ] represents a user specified benchmark . A [Test.t] represents a user specified benchmark. *) open Core module L = FunSpecification.FunSpecification module OriginalFunAlgorithm = Original.TypeAlgorithm(L) module IncrementalFu...
null
https://raw.githubusercontent.com/matteobusi/incremental-mincaml/aebbaf3b918bab4b0398edbf01b43c63d8b7820d/src/fun/tests/stest.ml
ocaml
* A module internal to [ Core_bench ] . Please look at { ! Bench } . A [ Test.t ] represents a user specified benchmark . A [Test.t] represents a user specified benchmark. *) open Core module L = FunSpecification.FunSpecification module OriginalFunAlgorithm = Original.TypeAlgorithm(L) module IncrementalFu...
6437a27d22dcbde0e0fbcd1b7a54cca98afa7121adda7128f25247bb77d5aa9d
ocaml-flambda/ocaml-jst
flambda.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/7e5a626e4b4e12f1e9106564e1baba4d0ef6309a/middle_end/flambda/flambda.mli
ocaml
************************************************************************ OCaml ...
, OCamlPro and , Copyright 2014 - -2016 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the [@@@ocaml.warning "+a-4-9-30-40-41-42"] type call_kind = | Indir...
d13770e8cd57eaedcad998757f8b0fbb5a9cee7aed92107bfbbf9e9356c3d8e4
programaker-project/Programaker-Core
automate_service_registry_mnesia_backend.erl
%%%------------------------------------------------------------------- %% @doc automate_channel_engine_mnesia_backend public API %% @end %%%------------------------------------------------------------------- -module(automate_service_registry_mnesia_backend). -export([ start_link/0 , register/3 , list_...
null
https://raw.githubusercontent.com/programaker-project/Programaker-Core/10625e7f5d639f2b062ff9536d7226f23c005d0d/backend/apps/automate_service_registry/src/automate_service_registry_mnesia_backend.erl
erlang
------------------------------------------------------------------- @doc automate_channel_engine_mnesia_backend public API @end ------------------------------------------------------------------- ==================================================================== API ================================================...
-module(automate_service_registry_mnesia_backend). -export([ start_link/0 , register/3 , list_all_public/0 , get_all_services_for_user/1 , allow_user/2 , get_service_by_id/1 , update_visibility/2 , update_service_module/2 , get_config_for_service/2 ...
82dcc434548ef36309b4a832fec6cad43b388e69bffc337533d75f8972d1fc36
Hendekagon/iiiiioiooooo
template.cljs
(ns dommy.template (:require [clojure.string :as str] [dommy.attrs :as attrs])) (def +svg-ns+ "") (def +svg-tags+ #{"svg" "g" "rect" "circle" "clipPath" "path" "line" "polygon" "polyline" "text" "textPath"}) (defprotocol PElement (-elem [this] "return the element representation of this")) (defn next-css-i...
null
https://raw.githubusercontent.com/Hendekagon/iiiiioiooooo/f7c2ab0468798b2065bdff9c564ca10a966cfa79/public/js/dommy/template.cljs
clojure
(ns dommy.template (:require [clojure.string :as str] [dommy.attrs :as attrs])) (def +svg-ns+ "") (def +svg-tags+ #{"svg" "g" "rect" "circle" "clipPath" "path" "line" "polygon" "polyline" "text" "textPath"}) (defprotocol PElement (-elem [this] "return the element representation of this")) (defn next-css-i...
6ace02b9eed998d96461aa3d4d57c56fc93633b91aace56aff1102e3b87cbb9d
tnelson/Forge
setFormulaOperators.rkt
#lang forge/core (set-option! 'verbose 0) (define Node (make-sig 'Node)) (define edges (make-relation 'edges (list Node Node))) (define In (&&/func (all ([n Node]) (in (join n edges) Node)) (all ([n Node]) (ni Node (join n edges))) ; reflexive (all ([n Node]) (in (join n edges)...
null
https://raw.githubusercontent.com/tnelson/Forge/1687cba0ebdb598c29c51845d43c98a459d0588f/forge/tests/forge-functional/formulas/setFormulaOperators.rkt
racket
reflexive anti-symmetric transitive ni properly defined reflexive symmetric transitive !=, !in, !ni
#lang forge/core (set-option! 'verbose 0) (define Node (make-sig 'Node)) (define edges (make-relation 'edges (list Node Node))) (define In (&&/func (all ([n Node]) (in (join n edges) Node)) (all ([n Node]) (ni Node (join n edges))) (all ([n Node]) (in (join n edges) (join n edges)...
8062a3118063abd1e3adb31aba0f80594521c41c116d1a8707b4f09f58d546b4
ragkousism/Guix-on-Hurd
logging.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2016 < > Copyright © 2016 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU 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 ; ei...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/logging.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2016 < > Copyright © 2016 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages logging) #:use-module ((guix licenses) #:prefix license:)...
c7699a55e9c8759143c153174a0cc9959bf819b9c8b27f31eaa4ea73970d4fc6
gator1/jepsen
project.clj
(defproject jepsen.rabbitmq "0.1.0" :description "RabbitMQ tests for Jepsen" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [jepsen "0.0.5"] [com.novemberain/langohr "2.7.1" ]])
null
https://raw.githubusercontent.com/gator1/jepsen/1932cbd72cbc1f6c2a27abe0fe347ea989f0cfbb/rabbitmq/project.clj
clojure
(defproject jepsen.rabbitmq "0.1.0" :description "RabbitMQ tests for Jepsen" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [jepsen "0.0.5"] [com.novemberain/langohr "2.7.1" ]])
cc1d26e039581681dbb532a0a89cf7c75a313d75c4728594d41032d056251278
GaloisInc/HaNS
Packet.hs
{-# LANGUAGE Rank2Types #-} # LANGUAGE RecordWildCards # # LANGUAGE PatternSynonyms # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # module Hans.Tcp.Packet ( -- * Header TcpHeader(..), TcpPort, putTcpPort, emptyTcpHeader, tcpHeaderSize, -- ** Sequence Numbers TcpSe...
null
https://raw.githubusercontent.com/GaloisInc/HaNS/2af19397dbb4f828192f896b223ed2b77dd9a055/src/Hans/Tcp/Packet.hs
haskell
# LANGUAGE Rank2Types # * Header ** Sequence Numbers ** Header Flags ** Serialization ** Options * Segment Operations Tcp Support Types ----------------------------------------------------------- # INLINE (<) # # INLINE (<=) # # INLINE (>) # # INLINE (>=) # # INLINE withinWindow # -----------------...
# LANGUAGE RecordWildCards # # LANGUAGE PatternSynonyms # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # module Hans.Tcp.Packet ( TcpHeader(..), TcpPort, putTcpPort, emptyTcpHeader, tcpHeaderSize, TcpSeqNum, TcpAckNum, withinWindow, fromTcpSeqNum, tcpNs, tcpCw...
20e706c794ba91e837e18f7f880b1b0d9328e1b3e177b757aac6a8d0c7983283
cloudant/chttpd
chttpd_db.erl
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 % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/cloudant/chttpd/d20e9b66b9e51ac400f468aa442af461fc85a96f/src/chttpd_db.erl
erlang
use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(chttpd_db). -include_lib("couch/include/couch_db.hrl"). -export([handle_request/1, handle_compact_req/2, handle_design_req/2, db_req/2, couch_d...
f1761b002ccb3e0c502f737cb131781a5bb6d3f0600ea6059f88a554b9229b72
souenzzo/souenzzo.github.io
dev_app.cljs
(ns sample.dev-app (:require [sample.app :as app] [reagent.dom :as rd] [goog.dom :as gdom] [re-frame.core :as rf])) (defn after-load [] (rf/clear-subscription-cache!) (rd/render [app/ui] (gdom/getElement "app")))
null
https://raw.githubusercontent.com/souenzzo/souenzzo.github.io/30a811c4e5633ad07bba1d58d19eb091dac222e9/eql-refdb/dev/sample/dev_app.cljs
clojure
(ns sample.dev-app (:require [sample.app :as app] [reagent.dom :as rd] [goog.dom :as gdom] [re-frame.core :as rf])) (defn after-load [] (rf/clear-subscription-cache!) (rd/render [app/ui] (gdom/getElement "app")))
e0fee4d71e315b913f632047a0f3a7918ff14119911caedd8cac51631a3e0313
facebook/flow
codemod_hardcoded_ty_fixes.ml
* 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 . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/9107dc65a33ad61e605dedbabd477971c422902d/src/codemods/utils/codemod_hardcoded_ty_fixes.ml
ocaml
WARNING! Hard-coded fixes ahead! * * The level of inferred types (Ty.t). The advantage here is that we have * access to more information over types than just their structure (e.g. * provenance) A string literal that contains alphabetic characters of underscores is likely * to be a tag Collect information a...
* 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 . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
2ed02894ae59e707477b87e1d027968f467ff6111b23a2ef4159550fc7c300c9
fn-fx/fn-fx
init.clj
(ns fn-fx.init (:import (javafx.application Platform) (javafx.embed.swing JFXPanel))) (def ^:private javafx-initialized (atom false)) Platform / startup is available only starting with JavaFX 9 (defmacro ^:private start-javafx [] (let [version (System/getProperty "javafx.runtime.version") ma...
null
https://raw.githubusercontent.com/fn-fx/fn-fx/36c7659ef3d9b88b8bcf71fecd792c0d829a2d38/src/fn_fx/init.clj
clojure
We need to make it a daemon thread, otherwise compilation will never finish
(ns fn-fx.init (:import (javafx.application Platform) (javafx.embed.swing JFXPanel))) (def ^:private javafx-initialized (atom false)) Platform / startup is available only starting with JavaFX 9 (defmacro ^:private start-javafx [] (let [version (System/getProperty "javafx.runtime.version") ma...
a5495110149052a296e03f6ad0ad4c2f9ea2661cd556158fa4d7ef4e505b2a4f
nedap/speced.def
letfn.cljc
(ns nedap.speced.def.impl.letfn (:require [nedap.speced.def.impl.analysis :refer [process-name-and-tails]] [nedap.utils.spec.api :refer [check!]])) (defn impl [clj? fnspecs body] {:pre [(check! boolean? clj?)]} (let [fnspecs (->> fnspecs (mapv (fn [[fn-name & tail]] ...
null
https://raw.githubusercontent.com/nedap/speced.def/55053e53e749f77753294f3ee8d4639470840f8c/src/nedap/speced/def/impl/letfn.cljc
clojure
(ns nedap.speced.def.impl.letfn (:require [nedap.speced.def.impl.analysis :refer [process-name-and-tails]] [nedap.utils.spec.api :refer [check!]])) (defn impl [clj? fnspecs body] {:pre [(check! boolean? clj?)]} (let [fnspecs (->> fnspecs (mapv (fn [[fn-name & tail]] ...
5dcf6e84461bfb3173b47d65e4ab4cc978a38e83da8f5454e4778a4a0eaa3693
plewto/Cadejo
masa_engine.clj
(println "--> Loading MASA organ") (ns cadejo.instruments.masa.masa-engine (:use [overtone.core]) (:require [cadejo.modules.qugen :as qu]) (:require [cadejo.midi.mono-mode]) (:require [cadejo.midi.poly-mode]) (:require [cadejo.midi.poly-rotate-mode]) (:require [cadejo.midi.mono-exclusive]) (:require [cad...
null
https://raw.githubusercontent.com/plewto/Cadejo/2a98610ce1f5fe01dce5f28d986a38c86677fd67/src/cadejo/instruments/masa/masa_engine.clj
clojure
adds to partial amplitude pflag 0 --> gate NOTE: When drawbar percussion enabled, average amplitude is decreased. pedal-sens 0 only for percussive env cc4 - pedal cc7 - volume ccb - reverb mix
(println "--> Loading MASA organ") (ns cadejo.instruments.masa.masa-engine (:use [overtone.core]) (:require [cadejo.modules.qugen :as qu]) (:require [cadejo.midi.mono-mode]) (:require [cadejo.midi.poly-mode]) (:require [cadejo.midi.poly-rotate-mode]) (:require [cadejo.midi.mono-exclusive]) (:require [cad...
3f98e88b77c57e8b4fd4b768a53b1db385e6ea1e28e67aebb831d640f99b68f7
dyzsr/ocaml-selectml
noev.ml
(* TEST readonly_files = "a.ml b.ml" ocamldebug_script = "${test_source_directory}/input_script" * debugger ** shared-libraries *** setup-ocamlc.byte-build-env **** ocamlc.byte module = "a.ml" flags = "-g -for-pack foo" ***** ocamlc.byte module = "" all_modules = "a.cmo" program = "foo.cmo" flags = "-g -pack" ****** oc...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/tool-debugger/no_debug_event/noev.ml
ocaml
TEST readonly_files = "a.ml b.ml" ocamldebug_script = "${test_source_directory}/input_script" * debugger ** shared-libraries *** setup-ocamlc.byte-build-env **** ocamlc.byte module = "a.ml" flags = "-g -for-pack foo" ***** ocamlc.byte module = "" all_modules = "a.cmo" program = "foo.cmo" flags = "-g -pack" ****** ocam...
0a7aaea43b90e772b65efea5e57c366d036fd094ef4f5e6da9082ef5cf38ca36
jnavila/plotkicadsch
diffTool.ml
open! StdLabels open Kicadsch.Sigs module type Differ = sig val doc : string type pctx module S : SchPainter with type painterContext = pctx val display_diff : from_ctx:pctx -> to_ctx:pctx -> string list -> keep:bool -> bool Lwt.t end
null
https://raw.githubusercontent.com/jnavila/plotkicadsch/a8afb216bf04aeaeb9088ef264407b094553d145/plotkicadsch/src/diffTool.ml
ocaml
open! StdLabels open Kicadsch.Sigs module type Differ = sig val doc : string type pctx module S : SchPainter with type painterContext = pctx val display_diff : from_ctx:pctx -> to_ctx:pctx -> string list -> keep:bool -> bool Lwt.t end
219eb1199c64aa7ce9d91a502925ad71cb310c595071068a43e9181a9379e95a
replikativ/konserve
nio_helpers.clj
(ns konserve.nio-helpers (:import [java.nio.channels Channels ReadableByteChannel] [java.io Reader File InputStream ByteArrayInputStream FileInputStream StringReader] (java.util Arrays) (java.nio ByteBuffer))) (def ^{:doc "Type object for a Java primitive byte array." ...
null
https://raw.githubusercontent.com/replikativ/konserve/da09c0fcc066d0e13d6eded673a83382bb9f9e33/src/konserve/nio_helpers.clj
clojure
(ns konserve.nio-helpers (:import [java.nio.channels Channels ReadableByteChannel] [java.io Reader File InputStream ByteArrayInputStream FileInputStream StringReader] (java.util Arrays) (java.nio ByteBuffer))) (def ^{:doc "Type object for a Java primitive byte array." ...
58f71ca0f9a936311be77cdae8ff72cc723c3df0afc9725e107cde074ecaa6cd
leksah/leksah
VCS.hs
----------------------------------------------------------------------------- -- Module : IDE.Command . VCS Copyright : 2007 - 2011 , -- License : GPL Nothing -- -- Maintainer : -- Stability : provisional -- Portability : -- -- | -- -----------------------------------------------------...
null
https://raw.githubusercontent.com/leksah/leksah/ec95f33af27fea09cba140d7cddd010935a2cf52/src/IDE/Command/VCS.hs
haskell
--------------------------------------------------------------------------- License : GPL Nothing Maintainer : Stability : provisional Portability : | ---------------------------------------------------------------------------
Module : IDE.Command . VCS Copyright : 2007 - 2011 , module IDE.Command.VCS ( ) where
4bda530d0dfcc125f873163005a8a98796a139d655e208bfbc1da99aa51e659f
darkleaf/publicator
create_test.clj
(ns publicator.use-cases.interactors.post.create-test (:require [publicator.use-cases.interactors.post.create :as sut] [publicator.use-cases.abstractions.storage :as storage] [publicator.use-cases.services.user-session :as user-session] [publicator.use-cases.test.fakes :as fakes] [publicator.utils.test...
null
https://raw.githubusercontent.com/darkleaf/publicator/e07eee93d8f3d9c07a15d574619d5ea59c00f87d/core/test/publicator/use_cases/interactors/post/create_test.clj
clojure
(ns publicator.use-cases.interactors.post.create-test (:require [publicator.use-cases.interactors.post.create :as sut] [publicator.use-cases.abstractions.storage :as storage] [publicator.use-cases.services.user-session :as user-session] [publicator.use-cases.test.fakes :as fakes] [publicator.utils.test...
369c58bc0a11b17d2ca78671a6a4dc76056f20586f17419163ab65c1b3b55a75
mark-watson/haskell_tutorial_cookbook_examples
TimerTest.hs
module Main where import Data.Time.Clock.POSIX -- for getPOSIXTime import System.TimeIt -- for timeIt import System.Timeout -- for timeout anyCalculationWillDo n = take n $ sieve [2..] where sieve (x:xs) = x:sieve [y | y <- xs, rem y x > 0] m...
null
https://raw.githubusercontent.com/mark-watson/haskell_tutorial_cookbook_examples/0f46465b67d245fa3853b4e320d79b7d7234e061/Timers/TimerTest.hs
haskell
for getPOSIXTime for timeIt for timeout
module Main where anyCalculationWillDo n = take n $ sieve [2..] where sieve (x:xs) = x:sieve [y | y <- xs, rem y x > 0] main = do startingTime <- getPOSIXTime print startingTime print $ last $ take 20000001 [0..] endingTime <- getPOSIXTime print e...
73c4b97e38d389abd0836e5c24c2d655364dbe02e29d6bd912be99b98398da4d
robert-strandh/SICL
nset-difference-defun.lisp
(cl:in-package #:sicl-cons) ;;; We take advantage of the fact that the standard doesn't require ;;; this function to have any side effects. (defun nset-difference (list1 list2 &key key (test nil test-given) (test-not nil test-not-given)) (when (and test-given test-not-given) (error 'both...
null
https://raw.githubusercontent.com/robert-strandh/SICL/32d995c4f8e7d228e9c0cda6f670b2fa53ad0287/Code/Cons/nset-difference-defun.lisp
lisp
We take advantage of the fact that the standard doesn't require this function to have any side effects.
(cl:in-package #:sicl-cons) (defun nset-difference (list1 list2 &key key (test nil test-given) (test-not nil test-not-given)) (when (and test-given test-not-given) (error 'both-test-and-test-not-given)) (let ((use-hash (> (* (length list1) (length list2)) 1000))) (if key (i...
6fe7672f0b0816cd71125fc102bc5b8c4053eb35b663fd8b6c21f2f109ffe25b
hasktorch/hasktorch
Native9.hs
-- generated by using spec/Declarations.yaml # LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE OverloadedStrings #-} module Torch.Internal.Managed.Native.Native9 where import Foreign.C.String import Foreign.C.Types impo...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/6233c173e1dd9fd7218fd13b104da15fc457f67e/libtorch-ffi/src/Torch/Internal/Managed/Native/Native9.hs
haskell
generated by using spec/Declarations.yaml # LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # module Torch.Internal.Managed.Native.Native9 where import Foreign.C.String import Foreign.C.Types import Foreign import Torch.Internal.Type import Torch.Internal.Class import Torch.I...
edb2ff482ded914fb56cf70b6bc9fcb6d6a9c838ff72602a9540ef1dfc3afba2
ChrisPenner/wave-function-collapse
Types.hs
# LANGUAGE DeriveFoldable # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # module WFC.Types where import WFC.Backtracking import qualified Data.Set.NonEmpty as NE import Control.Lens as L data SuperPos a = Observed a | Unknown (NE.NESet a) deriving (Show, Foldable) makePrisms ''SuperPos type PropFilter...
null
https://raw.githubusercontent.com/ChrisPenner/wave-function-collapse/9ad25912680dc16b5fe0d125b77dd410e3415614/src/WFC/Types.hs
haskell
# LANGUAGE DeriveFoldable # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # module WFC.Types where import WFC.Backtracking import qualified Data.Set.NonEmpty as NE import Control.Lens as L data SuperPos a = Observed a | Unknown (NE.NESet a) deriving (Show, Foldable) makePrisms ''SuperPos type PropFilter...
c887c1724f3a6511a8f2bb93b6caa5ebfd0c710bbcdb1ebdfb692c541c34a48d
piotr-yuxuan/choose-a-new-phone
utils.cljc
(ns choose-a-new-phone.utils #?(:clj (:require [yaml.core :as yaml]) :cljs (:require [cljsjs.js-yaml])) #?(:clj (:import (java.net URLEncoder)))) (defn yaml->map [s] ;; FIXME cljs parser doesn't accept as much as clj one. #?(:clj (yaml/parse-string s) :cljs (try (->> s (.load...
null
https://raw.githubusercontent.com/piotr-yuxuan/choose-a-new-phone/656304e34a41122e515418072c7ebf6524032fc6/src/choose_a_new_phone/utils.cljc
clojure
FIXME cljs parser doesn't accept as much as clj one. too fragile, some device descriptions aren't properly formatted
(ns choose-a-new-phone.utils #?(:clj (:require [yaml.core :as yaml]) :cljs (:require [cljsjs.js-yaml])) #?(:clj (:import (java.net URLEncoder)))) (defn yaml->map [s] #?(:clj (yaml/parse-string s) :cljs (try (->> s (.load js/jsyaml) js->clj ...
735ef68a6698b364d14b5085d4f3cad8b452f2b8640ea5da42964a091dfba420
typedclojure/typedclojure
set.clj
(ns clojure.core.typed.test.set (:require [clojure.core.typed :refer [check-ns ann cf tc-ignore print-env ann-form] :as t]) (:import (clojure.lang APersistentSet))) (ann bubble-max-key (t/All [x] [[x -> Number] (t/I (t/Seqable x) (t/CountRange 2)) -> (t/Seqable x)])) (tc-ignore (...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/013229c0c8fe58af6d04dde985bc0463fa37b0d5/typed/clj.checker/test/clojure/core/typed/test/set.clj
clojure
natural join arbitrary key mapping
(ns clojure.core.typed.test.set (:require [clojure.core.typed :refer [check-ns ann cf tc-ignore print-env ann-form] :as t]) (:import (clojure.lang APersistentSet))) (ann bubble-max-key (t/All [x] [[x -> Number] (t/I (t/Seqable x) (t/CountRange 2)) -> (t/Seqable x)])) (tc-ignore (...
b57193891802a018862cb9373d2315854d929342e984719414be6fc2c5c79995
klutometis/clrs
section.scm
(require-extension syntax-case foof-loop) (module section-8.2 (counting-sort unstable-counting-sort enumerator vector-max) (include "../8.2/counting-sort.scm"))
null
https://raw.githubusercontent.com/klutometis/clrs/f85a8f0036f0946c9e64dde3259a19acc62b74a1/8.2/section.scm
scheme
(require-extension syntax-case foof-loop) (module section-8.2 (counting-sort unstable-counting-sort enumerator vector-max) (include "../8.2/counting-sort.scm"))
e52a075b7b93fcacdfc5c7c4029a3534795068e825ae2552c76fe5b387ebbd57
well-typed/large-records
RowHasField.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE LambdaCase #-} # LANGUAGE RecordWildCards # module Data.Record.Anon.Internal.Plugin.TC.Constraints.RowHasField ( CRowHasField(..) , parseRowHasField , solveRowHasField ) where import Data.Void import GHC.Stack import Data.Record.Anon.Internal.Plugin.TC.Row...
null
https://raw.githubusercontent.com/well-typed/large-records/2e0bdae735c0861436907ed5e30e78afa42eeb9f/large-anon/src/Data/Record/Anon/Internal/Plugin/TC/Constraints/RowHasField.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE LambdaCase # ------------------------------------------------------------------------------ Definition ------------------------------------------------------------------------------ These may be fully or partially known, or completely unknown. | Row kind (@k@) | Row (@...
# LANGUAGE RecordWildCards # module Data.Record.Anon.Internal.Plugin.TC.Constraints.RowHasField ( CRowHasField(..) , parseRowHasField , solveRowHasField ) where import Data.Void import GHC.Stack import Data.Record.Anon.Internal.Plugin.TC.Row.ParsedRow (Fields, FieldLabel(..)) import Data.Record.Anon.Intern...
2ec67392ba372a5632bdd388d2e73200a7e71a84e8bcb0b0762fa12384a66ebb
patricoferris/ocaml-multicore-monorepo
caqti_common_priv.ml
Copyright ( C ) 2019 - -2021 Petter A. Urkedal < > * * 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 Software Foundation , either version 3 of the License , or ( at your * option ) any la...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/ocaml-caqti/lib/caqti_common_priv.ml
ocaml
Copyright ( C ) 2019 - -2021 Petter A. Urkedal < > * * 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 Software Foundation , either version 3 of the License , or ( at your * option ) any la...
765bd0b0145203c5001bd05a40753e53e0bb45185f2a3f223ed1dd6852222e7d
rain-1/single_cream
recursive-mk-list.scm
(define (mk-list e n) (if (= n 0) '() (cons e (mk-list e (- n 1))))) (mk-list 'ufo 5) (mk-list 'ufo 10) (mk-list 'ufo 5) (mk-list 'ufo 10) (mk-list 'ufo 5) (mk-list 'ufo 10) (mk-list 'ufo 5) (mk-list 'ufo 10) (mk-list 'ufo 5) (mk-list 'ufo 10)
null
https://raw.githubusercontent.com/rain-1/single_cream/f8989fde4bfcffe0af7f6ed5916885446bf40124/t/simple/recursive-mk-list.scm
scheme
(define (mk-list e n) (if (= n 0) '() (cons e (mk-list e (- n 1))))) (mk-list 'ufo 5) (mk-list 'ufo 10) (mk-list 'ufo 5) (mk-list 'ufo 10) (mk-list 'ufo 5) (mk-list 'ufo 10) (mk-list 'ufo 5) (mk-list 'ufo 10) (mk-list 'ufo 5) (mk-list 'ufo 10)
936b07381f444abf269c09b157290ea390c227c1c8d8b3ad5954190d6b6b42e4
vdloo/kodictl
attempt.rkt
#!/usr/bin/env racket #lang racket/base (require json) (require json-rpc-client) (require "utils.rkt") (provide forge-payload) (provide kodi-json-rpc-attempt) (define forge-payload (λ (method #:params [params #hash()] #:jsonrpc [jsonrpc "2.0"] #:id [id 1]) (hasheq 'jsonrpc "2.0" 'method method ...
null
https://raw.githubusercontent.com/vdloo/kodictl/31c775a0889c06fcf65a0d91d15937144eb6a30a/kodictl/attempt.rkt
racket
#!/usr/bin/env racket #lang racket/base (require json) (require json-rpc-client) (require "utils.rkt") (provide forge-payload) (provide kodi-json-rpc-attempt) (define forge-payload (λ (method #:params [params #hash()] #:jsonrpc [jsonrpc "2.0"] #:id [id 1]) (hasheq 'jsonrpc "2.0" 'method method ...
533ce6c81908c23acc715901bdad11b7b049d7d779bb4ac09cd464aa87a8528a
garrigue/labltk
tetris.ml
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of OCaml (* *) , , and ...
null
https://raw.githubusercontent.com/garrigue/labltk/c7f50b4faed57f1ac03cb3c9aedc35b10d36bdb6/examples_labltk/tetris.ml
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of OCaml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
e6f1575d241ad84036eed0372f49b0b5ce0d7acb55101a11033dd705f72e91aa
jgrodziski/set-game
project.clj
(defproject set-game "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [ring-server "0.4.0"] [reagent "0.6.0-rc"] [reagent-forms...
null
https://raw.githubusercontent.com/jgrodziski/set-game/4f918f53f26fe1b7744773cf1786ccf7272a121d/backend/project.clj
clojure
(defproject set-game "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [ring-server "0.4.0"] [reagent "0.6.0-rc"] [reagent-forms...
ede5e2cb0fbd397fc64f0da741cc3eb94f878ee6f937e2201a2efef745d18345
emqx/esockd
tcp_window.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2019 EMQ Technologies Co. , Ltd. 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. %% You may obtain a copy of the L...
null
https://raw.githubusercontent.com/emqx/esockd/9b959fc11a1c398a589892f335235be6c5b4a454/examples/tcp_window/tcp_window.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2019 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(tcp_window). -export([start/2]). -export([ start_server/3 , server_init/3 , s...
1babef290a55954e2c37ce45af5a5cc65c6a2f217de6feb52c432d0369ede0bf
mhjort/clj-gatling
raw_reporter_test.clj
(ns clj-gatling.reporters.raw-reporter-test (:require [clojure.test :refer :all] [clj-gatling.simulation-util :refer [eval-if-needed]] [clj-gatling.reporters.raw-reporter :as raw]) (:import (java.nio.file Files) (java.nio.file.attribute FileAttribute))) (def scenario-results [{...
null
https://raw.githubusercontent.com/mhjort/clj-gatling/44078c9e2b548dadb5d9ab937e4bdbf908889da7/test/clj_gatling/reporters/raw_reporter_test.clj
clojure
(ns clj-gatling.reporters.raw-reporter-test (:require [clojure.test :refer :all] [clj-gatling.simulation-util :refer [eval-if-needed]] [clj-gatling.reporters.raw-reporter :as raw]) (:import (java.nio.file Files) (java.nio.file.attribute FileAttribute))) (def scenario-results [{...
a3fdd6bedc7093dffddc38153c6e073c49a1ebe006579e3b9965ebe8977442d7
ananthakumaran/eopl
12.clj
Implement the stack data type of exercise 2.4 using a procedure ;; representation (ns eopl.chap-2.12 (:use clojure.test)) (defn empty-stack [] (fn [type] (cond (= type 'empty?) true :else (throw (IllegalArgumentException.))))) (defn push [s x] (fn [type] (cond (= type 'empty?) false ...
null
https://raw.githubusercontent.com/ananthakumaran/eopl/876d6c2e44865e2c89a05a683d99a289c71f1487/src/eopl/chap_2/12.clj
clojure
representation
Implement the stack data type of exercise 2.4 using a procedure (ns eopl.chap-2.12 (:use clojure.test)) (defn empty-stack [] (fn [type] (cond (= type 'empty?) true :else (throw (IllegalArgumentException.))))) (defn push [s x] (fn [type] (cond (= type 'empty?) false (= type 'top) x...
a6af2bd20b5cdce11fa5631ff0d96debc6ee3b95d1b3044d7b009abc17d9b598
fortytools/holumbus
HayooSnap11.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeSynonymInstances #-} -- ------------------------------------------------------------ module Main where import ...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/Hayoo/HayooSnap/HayooSnap11.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE OverloadedStrings # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeSynonymInstances # ------------------------------------------------------------ ---------------------------------------------------------------------------- -----------...
# LANGUAGE FlexibleInstances # module Main where import Control.Applicative import Control.Exception (SomeException) import Control.Lens import Control.Monad () import qualified Control.Monad.CatchIO as C (catch) import Control.Monad.State impo...
4849e6a31d792cbc4abe399ffd4632704cd5caf67270f3751a95695b4a827019
mirage/alcotest
filter_name.ml
let () = let open Alcotest in let id () = () in run ~argv:[| ""; "test"; "test-a" |] __FILE__ [ ( "test-a", [ test_case "First test case" `Quick id; test_case "Second test case" `Quick id; ] ); ( "test-b", [ test_case "Skipped failing test" `Qu...
null
https://raw.githubusercontent.com/mirage/alcotest/bb3492901dea03c72b4de6b5660852a020283921/test/e2e/alcotest/passing/filter_name.ml
ocaml
let () = let open Alcotest in let id () = () in run ~argv:[| ""; "test"; "test-a" |] __FILE__ [ ( "test-a", [ test_case "First test case" `Quick id; test_case "Second test case" `Quick id; ] ); ( "test-b", [ test_case "Skipped failing test" `Qu...
5739f00d31ab75b9b13374b2c9d412cb10ae11286a320a93926e54416b163c7a
ocurrent/ocaml-ci
local.ml
(* Utility program for testing the CI pipeline on a local repository. *) let setup_log default_level = Unix.putenv "DOCKER_BUILDKIT" "1"; Unix.putenv "PROGRESS_NO_TRUNC" "1"; Prometheus_unix.Logging.init ?default_level () let main () config mode repo : ('a, [ `Msg of string ]) result = let solver = Ocaml_ci.B...
null
https://raw.githubusercontent.com/ocurrent/ocaml-ci/bac90619e2404a4761e8dcd95fe87b64489f7739/gitlab/local.ml
ocaml
Utility program for testing the CI pipeline on a local repository. Command-line parsing
let setup_log default_level = Unix.putenv "DOCKER_BUILDKIT" "1"; Unix.putenv "PROGRESS_NO_TRUNC" "1"; Prometheus_unix.Logging.init ?default_level () let main () config mode repo : ('a, [ `Msg of string ]) result = let solver = Ocaml_ci.Backend_solver.v None in let repo = Current_git.Local.v (Fpath.v repo) i...
af0615b7d88ca0920b9973c17ac2e96f7c890cab40b3c272ce57e61e92fd6f8b
janestreet/bonsai
table_header.ml
open! Core open! Bonsai_web open! Js_of_ocaml open! Incr_map_collate open! Bonsai.Let_syntax let attr_colspan i = match i with | 0 -> Vdom.Attr.style (Css_gen.display `None) | 1 -> Vdom.Attr.empty | i -> Vdom.Attr.create_float "colspan" (Int.to_float i) ;; module Acc = struct type t = { level_map : Vdo...
null
https://raw.githubusercontent.com/janestreet/bonsai/8643e8b3717b035386ac36f2bcfa4a05bca0d64f/web_ui/partial_render_table/src/table_header.ml
ocaml
open! Core open! Bonsai_web open! Js_of_ocaml open! Incr_map_collate open! Bonsai.Let_syntax let attr_colspan i = match i with | 0 -> Vdom.Attr.style (Css_gen.display `None) | 1 -> Vdom.Attr.empty | i -> Vdom.Attr.create_float "colspan" (Int.to_float i) ;; module Acc = struct type t = { level_map : Vdo...
9fe50f89fa464db4ffcfa63837d84998ccc635d8e0d981d0b25de9bec501fa02
ijvcms/chuanqi_dev
map_33003.erl
-module(map_33003). -export([ range/0, data/0 ]). range() -> {124, 84}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/map_data/map_33003.erl
erlang
-module(map_33003). -export([ range/0, data/0 ]). range() -> {124, 84}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,...
9cd215d4f3664404afb653fd3e2d01d1e758411d3ecb31376a869fe55f9b32b4
smallhadroncollider/taskell-2.0
NextID.hs
# LANGUAGE TemplateHaskell # {-# LANGUAGE RankNTypes #-} module Taskell.Data.Types.NextID ( NextID , nextIDs , nextTaskID , nextContributorID , nextListID , nextTagID , setTaskID , setContributorID , setListID , setTagID ) where import RIO import Taskell.Data.Types.ID (Con...
null
https://raw.githubusercontent.com/smallhadroncollider/taskell-2.0/baf2970357665370f1b6f108b79548dfae8dd146/src/Taskell/Data/Types/NextID.hs
haskell
# LANGUAGE RankNTypes # ID tracking exported
# LANGUAGE TemplateHaskell # module Taskell.Data.Types.NextID ( NextID , nextIDs , nextTaskID , nextContributorID , nextListID , nextTagID , setTaskID , setContributorID , setListID , setTagID ) where import RIO import Taskell.Data.Types.ID (ContributorID(..), ListID(..), ...
683ff394cd2ac7721249fbad435ddf963439059e0184cf6e13b4c7a0f3e5ec4a
overtone/overtone
peer.clj
(ns overtone.osc.peer (:import [java.net InetSocketAddress DatagramSocket DatagramPacket] [java.util.concurrent TimeUnit TimeoutException PriorityBlockingQueue] [java.nio.channels DatagramChannel AsynchronousCloseException ClosedChannelException] [java.nio ByteBuffer] [java...
null
https://raw.githubusercontent.com/overtone/overtone/02f8cdd2817bf810ff390b6f91d3e84d61afcc85/src/overtone/osc/peer.clj
clojure
clear resets everything Blocks until
(ns overtone.osc.peer (:import [java.net InetSocketAddress DatagramSocket DatagramPacket] [java.util.concurrent TimeUnit TimeoutException PriorityBlockingQueue] [java.nio.channels DatagramChannel AsynchronousCloseException ClosedChannelException] [java.nio ByteBuffer] [java...
f84b061d60c327fe709edc9980a1365d1a61179193968920b8a54ab502ee90a5
ghc/ghc
Functor.hs
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # ----------------------------------------------------------------------------- -- | -- Module : Data.Functor Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- St...
null
https://raw.githubusercontent.com/ghc/ghc/fa559c28d22888a4ba497daca2c1d5afdebb716c/libraries/base/Data/Functor.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Functor License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : provisional Portability : portable lets you apply any function of type @(a -> b)@ to turn an @f a@ into an @f...
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # Copyright : ( c ) The University of Glasgow 2001 A type @f@ is a Functor if it provides a function @fmap@ which , given any types @a@ and , structure of @f@. Just " 1 " Just " 1 " module Data.Functor ( Functor(..), ($>), (...
55ec971f9f3e1996c0820561d0d4d15242952594bf6c60907e69fae01e95b308
contivero/hasmin
PositionSpec.hs
{-# LANGUAGE OverloadedStrings #-} module Hasmin.Types.PositionSpec where import Data.Text (Text) import Test.Hspec.QuickCheck (modifyMaxSuccess) import Hasmin.Parser.Value import Hasmin.TestUtils import Hasmin.Types.Position positionMinificationTests :: Spec positionMinificationTests = describe "<position> mi...
null
https://raw.githubusercontent.com/contivero/hasmin/2a7604159b51e69c5e9c564dce53cb3ab09ae22b/tests/Hasmin/Types/PositionSpec.hs
haskell
# LANGUAGE OverloadedStrings # Other random tests TODO
module Hasmin.Types.PositionSpec where import Data.Text (Text) import Test.Hspec.QuickCheck (modifyMaxSuccess) import Hasmin.Parser.Value import Hasmin.TestUtils import Hasmin.Types.Position positionMinificationTests :: Spec positionMinificationTests = describe "<position> minification" $ do mapM_ (match...
4f1c8ac58f2cd33294c55148e92fbf40b2d746b318c51e29d65bfa19d848912d
Factual/timely
project.clj
(defproject factual/timely "0.0.3" :main timely.core :description "Timely: A clojure library for defining schedules and running them as an alternative to cron" :dependencies [[clj-time "0.4.1"] [org.clojure/clojure "1.4.0"] [org.clojure/tools.logging "0.2.3"] [or...
null
https://raw.githubusercontent.com/Factual/timely/7fafee2450859e56ec16970937a5e546f0c1fc15/project.clj
clojure
(defproject factual/timely "0.0.3" :main timely.core :description "Timely: A clojure library for defining schedules and running them as an alternative to cron" :dependencies [[clj-time "0.4.1"] [org.clojure/clojure "1.4.0"] [org.clojure/tools.logging "0.2.3"] [or...
1430d948f00833ecbb3cec63b072d56671c1a032a6c8ca0c7ba3bd4d9887c133
rroohhh/guix_packages
python-xyz.scm
(define-module (vup python-xyz) #:use-module (guix utils) #:use-module (gnu packages assembly) #:use-module (gnu packages web) #:use-module (gnu packages xml) #:use-module (gnu packages sphinx) #:use-module (gnu packages mpi) #:use-module (gnu packages pdf) #:use-module (gnu packages time) #:use-modul...
null
https://raw.githubusercontent.com/rroohhh/guix_packages/117480ede867def846fa3120766864ed634e9321/vup/python-xyz.scm
scheme
no tests (propagated-inputs `(("python-funcsigs" ,python-funcsigs) ("python-setuptools-scm" ,python-setuptools-scm) ("python-matplotlib" ,python-matplotlib) ("python-numpy" ,python-numpy) ("python-sparse" ,python-sparse) ("python-xarray" ,python-xarray) ("python-pytest" ,python-pytest))) fa...
(define-module (vup python-xyz) #:use-module (guix utils) #:use-module (gnu packages assembly) #:use-module (gnu packages web) #:use-module (gnu packages xml) #:use-module (gnu packages sphinx) #:use-module (gnu packages mpi) #:use-module (gnu packages pdf) #:use-module (gnu packages time) #:use-modul...
8d48efcbc1313b8a190cd83a68b75f917d75fc5fc49e907a836200208daab3e1
gildor478/ocaml-gettext
discover.ml
module C = Configurator.V1 let gettext_code = {| #include <libintl.h> int main() { gettext("abcd"); return 0; } |} let () = C.main ~name:"gettext" (fun c -> let is_working (c_flags, link_flags) = C.c_test c gettext_code ~link_flags ~c_flags in let c_flags, link_flags = try ...
null
https://raw.githubusercontent.com/gildor478/ocaml-gettext/9b7afc702bccace9a544b8efa2a28bc2b13371ed/src/tools/discover-stub/discover.ml
ocaml
Default that should work on standard Linux distributions.
module C = Configurator.V1 let gettext_code = {| #include <libintl.h> int main() { gettext("abcd"); return 0; } |} let () = C.main ~name:"gettext" (fun c -> let is_working (c_flags, link_flags) = C.c_test c gettext_code ~link_flags ~c_flags in let c_flags, link_flags = try ...
3742996bdd3099bfec03f3a04a3fab7914cd0dd566d8ce25404519f7c014d52b
runtimeverification/haskell-backend
AST.hs
| Module : . Rewrite . SMT.AST Description : Data types involved in declaring and using SMT symbols . Copyright : ( c ) Runtime Verification , 2019 - 2021 License : BSD-3 - Clause Maintainer : Module : Kore.Rewrite.SMT.AST Description : Data types involved in declaring and using SMT...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/a87661036129b72f5031e94f083ee790dde6c09c/kore/src/Kore/Rewrite/SMT/AST.hs
haskell
Smt representations for sorts and a list of sort arguments, returns an S-expression that can be used, say, when declaring symbols of that sort. | Information needed for declaring the sort, also listing all dependencies on other sorts and symbols. Smt representations for sorts and a list of sort arguments, returns...
| Module : . Rewrite . SMT.AST Description : Data types involved in declaring and using SMT symbols . Copyright : ( c ) Runtime Verification , 2019 - 2021 License : BSD-3 - Clause Maintainer : Module : Kore.Rewrite.SMT.AST Description : Data types involved in declaring and using SMT...
e891bd5ec91433d8ac147c5b9f781f9c9088ce410f32fd8694333642ba2ce87d
mariari/Misc-Lisp-Scripts
race-role.lisp
(in-package :slex-test) (def-suite race-role-test :description "Tests the race-role-map package") (in-suite race-role-test) (defparameter *test* (race-role:make-table)) (race-role:insert-race *test* 'yuki '(:bare-handed :ok) '(:cold :inrinsic)) (race-role:insert-role *test* 'undead-slayer '(:bare-handed :good)...
null
https://raw.githubusercontent.com/mariari/Misc-Lisp-Scripts/74525cc4fb8799014ea8dd82cba5d25e45fc9a20/scripts/slex-choice/test/race-role.lisp
lisp
(in-package :slex-test) (def-suite race-role-test :description "Tests the race-role-map package") (in-suite race-role-test) (defparameter *test* (race-role:make-table)) (race-role:insert-race *test* 'yuki '(:bare-handed :ok) '(:cold :inrinsic)) (race-role:insert-role *test* 'undead-slayer '(:bare-handed :good)...
9930ca3ac67bb43a66e21387db2d20e094eac99f56aa025c3887c14bc2ff26ea
smallhadroncollider/taskell
ChecklistItem.hs
# LANGUAGE TemplateHaskell # module Taskell.IO.HTTP.Trello.ChecklistItem ( ChecklistItem , checklistItemToSubTask , checkItems ) where import ClassyPrelude import Control.Lens (makeLenses, (^.)) import qualified Taskell.Data.Subtask as ST (Subtask, new) import Taskell.IO...
null
https://raw.githubusercontent.com/smallhadroncollider/taskell/3c731476e9a58ede300cfa83aba412509b132a3e/src/Taskell/IO/HTTP/Trello/ChecklistItem.hs
haskell
create lenses operations check list wrapper create lenses
# LANGUAGE TemplateHaskell # module Taskell.IO.HTTP.Trello.ChecklistItem ( ChecklistItem , checklistItemToSubTask , checkItems ) where import ClassyPrelude import Control.Lens (makeLenses, (^.)) import qualified Taskell.Data.Subtask as ST (Subtask, new) import Taskell.IO...
65c7981d92557259069ee36cfc3537c7de149c59c5f3968869d356bd80b48e1b
kennknowles/aspcc
regexp.ml
(** ASPCC module with the Tools object *) open VbValues open VbClass open VbTypes open Runtime open Printf class reg_match substrings = object(self) inherit opaque_object method strname = "Match" val submatches = Array.map wrap_string (Pcre.get_substrings ~full_match:false substrings) method m_...
null
https://raw.githubusercontent.com/kennknowles/aspcc/951a91cc21e291b1d3c750bbbca7fa79209edd08/runtime/modules/regexp.ml
ocaml
* ASPCC module with the Tools object TODO: enforce the length of arg lists Properties Methods * {4 Loader Function}
open VbValues open VbClass open VbTypes open Runtime open Printf class reg_match substrings = object(self) inherit opaque_object method strname = "Match" val submatches = Array.map wrap_string (Pcre.get_substrings ~full_match:false substrings) method m_gets name params = match name with...
f64dce33acacfca25c069b7c37f9b214dc290fefc3f82e510b1456d70db2c218
cmsc430/www
compile.rkt
#lang racket (require "test-runner.rkt" "../parse.rkt" "../compile.rkt" "../unload-bits-asm.rkt" "../a86/interp.rkt") link with runtime for IO operations (unless (file-exists? "../runtime.o") (system "make -C .. runtime.o")) (current-objs (list (path->string (normalize-path ".....
null
https://raw.githubusercontent.com/cmsc430/www/3a2cc63191b75e477660961794958cead7cae35a/langs/outlaw/test/compile.rkt
racket
#lang racket (require "test-runner.rkt" "../parse.rkt" "../compile.rkt" "../unload-bits-asm.rkt" "../a86/interp.rkt") link with runtime for IO operations (unless (file-exists? "../runtime.o") (system "make -C .. runtime.o")) (current-objs (list (path->string (normalize-path ".....
a8e135a7c5d0d1d0a2eda899db5f6bc9d9d2014ec83c25341019c6a76609345a
dgrnbrg/piplin
enum.clj
(ns piplin.types.enum "This namespace provides enum support. Enums are a way to represent a constrained set of keywords. They also allow you to define the bit patterns for each keyword. This namespace also adds keywords to the piplin type system so that they can be coerced to enum elements." (:refer-cloj...
null
https://raw.githubusercontent.com/dgrnbrg/piplin/01f3ac72ccc904b7789dfd6e46277c179e11002c/src/piplin/types/enum.clj
clojure
(ns piplin.types.enum "This namespace provides enum support. Enums are a way to represent a constrained set of keywords. They also allow you to define the bit patterns for each keyword. This namespace also adds keywords to the piplin type system so that they can be coerced to enum elements." (:refer-cloj...
cdd90505873f54cacc724bed38086bf0228d0a1fc69f6db6fad19baff4276a19
nikita-volkov/hasql
Errors.hs
-- | -- An API for retrieval of multiple results. -- Can be used to handle: -- -- * A single result, -- -- * Individual results of a multi-statement query with the help of " Applicative " and " Monad " , -- -- * Row-by-row fetching. module Hasql.Private.Errors where import Hasql.Private.Prelude -- | -- An error dur...
null
https://raw.githubusercontent.com/nikita-volkov/hasql/dbbcc7d8adb9b4445df0d1cd6572e6bc5b28fe44/library/Hasql/Private/Errors.hs
haskell
| An API for retrieval of multiple results. Can be used to handle: * A single result, * Individual results of a multi-statement query * Row-by-row fetching. | An error during the execution of a query. Comes packed with the query template and a textual representation of the provided params. | An error of s...
with the help of " Applicative " and " Monad " , module Hasql.Private.Errors where import Hasql.Private.Prelude data QueryError = QueryError ByteString [Text] CommandError deriving (Show, Eq, Typeable) instance Exception QueryError data CommandError ClientError (Maybe ByteString) ResultError ResultErr...
202bd12777d848da9face837802eafd261a2c7daeef93ddbaadabbc54162846e
khotyn/4clojure-answer
121-universal-computation-engine.clj
(fn [form] (letfn [(step [s] (let [formulars (re-seq #"\([^\(\)]*\)" s)] (if (seq formulars) (let [formulars-results (map (fn [formular] (let [formular-seq (re-seq #"[\+\-\*/0-9]+" formular)...
null
https://raw.githubusercontent.com/khotyn/4clojure-answer/3de82d732faedceafac4f1585a72d0712fe5d3c6/121-universal-computation-engine.clj
clojure
(fn [form] (letfn [(step [s] (let [formulars (re-seq #"\([^\(\)]*\)" s)] (if (seq formulars) (let [formulars-results (map (fn [formular] (let [formular-seq (re-seq #"[\+\-\*/0-9]+" formular)...
4f2f746e90cf4d719d3312131a45bd89955edde7cf0384b60bd8fb7012099b62
Incubaid/baardskeerder
store.ml
* This file is part of Baardskeerder . * * Copyright ( C ) 2012 Incubaid BVBA * * Baardskeerder is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , o...
null
https://raw.githubusercontent.com/Incubaid/baardskeerder/3975cb7f0e92e1f35eeab17beeb906344e43dae0/src/store.ml
ocaml
This is a rather ugly hack
* This file is part of Baardskeerder . * * Copyright ( C ) 2012 Incubaid BVBA * * Baardskeerder is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , o...
e1b68d3812bf1067c250ae9282fe2db6f7dab0509d032596b1449b2915584dc0
hiroshi-unno/coar
zipper.ml
open Core open Ext (** Zippers *) * { 6 Constructors } type 'a tree = Node of 'a * 'a tree list type 'a path = Top | Path of 'a path * 'a tree list * 'a * 'a tree list type 'a location = Loc of 'a tree * 'a path * { 6 Constructors for trees } let make nd cs = Node (nd, cs) * { 6 Inspectors for trees } let get (N...
null
https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/lib/common/zipper.ml
ocaml
* Zippers @todo
open Core open Ext * { 6 Constructors } type 'a tree = Node of 'a * 'a tree list type 'a path = Top | Path of 'a path * 'a tree list * 'a * 'a tree list type 'a location = Loc of 'a tree * 'a path * { 6 Constructors for trees } let make nd cs = Node (nd, cs) * { 6 Inspectors for trees } let get (Node (nd, _)) = ...
6520fe1620b296fc9a2d8cb72e4be139b40a9d77b488062276b89da6ea952af3
ocsigen/lwt
lwt_main.mli
This file is part of Lwt , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) (** Main loop and event queue *) (** This module controls the ``main-loop'' of Lwt. *) val run : 'a Lwt.t -> 'a * [ Lwt_main.run p ] calls the Lwt scheduler , performing I / O until...
null
https://raw.githubusercontent.com/ocsigen/lwt/7355895d89e11aed36d2348380029c57d3124aec/src/unix/lwt_main.mli
ocaml
* Main loop and event queue * This module controls the ``main-loop'' of Lwt. * Values of type [hook] represent hooks that have been added, so that they can be removed later (if needed). * Adds a hook to the hook sequence underlying this module, to be run {e last}, after any other hooks already added. * ...
This file is part of Lwt , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) val run : 'a Lwt.t -> 'a * [ Lwt_main.run p ] calls the Lwt scheduler , performing I / O until [ p ] resolves . [ Lwt_main.run p ] returns the value in [ p ] if [ p ] is ful...
c5e91d66c666fc3f787ed11a465983f47b1cf7303c0a80d16a06714e809106a3
sile/evel
evel_name.erl
2016 < > %% This software is released under the MIT License . %% See the LICENSE file in the project root for full license information. %% %% @doc An evel based global name registration facility %% This module is available as a ` via ' callback module for OTP behaviours ( e.g. , supervisor , gen_server , etc ...
null
https://raw.githubusercontent.com/sile/evel/9c3fc77b91ab55c7e3dde3b2325452891e8c43aa/src/evel_name.erl
erlang
See the LICENSE file in the project root for full license information. @doc An evel based global name registration facility ``` %% %% Example %% ''' @end ---------------------------------------------------------------------------------------------------------------------- Exported API --------------------...
2016 < > This software is released under the MIT License . This module is available as a ` via ' callback module for OTP behaviours ( e.g. , supervisor , gen_server , etc ) . gen_server : start_link({via , evel_name , SomeName } , ? MODULE , [ ] , [ ] ) . -module(evel_name). -export([register_name/2]). -ex...
701165487eab2309d0b15c0e4944d1add803f003e2dc36b951500e619cb1906e
lucasdicioccio/deptrack-project
Linux.hs
{-# LANGUAGE OverloadedStrings #-} module Devops.Linux where import Data.Monoid ((<>)) import Data.Text (Text) import qualified Data.Text as Text import Devops.Debian.Commands import Devops.Base import Devops.Utils type Value = T...
null
https://raw.githubusercontent.com/lucasdicioccio/deptrack-project/cd3d59a796815af8ae8db32c47b1e1cdc209ac71/deptrack-devops-recipes/src/Devops/Linux.hs
haskell
# LANGUAGE OverloadedStrings # | Loads a kernel module.
module Devops.Linux where import Data.Monoid ((<>)) import Data.Text (Text) import qualified Data.Text as Text import Devops.Debian.Commands import Devops.Base import Devops.Utils type Value = Text data KernelModule = KernelModul...
87f655ec3f938106081ca75d45abdc7c40e1566d19a53fd8e282ee669edc4a57
alexandergunnarson/quantum
cache.cljc
(ns quantum.untyped.core.cache (:refer-clojure :exclude [memoize]) (:require [quantum.untyped.core.core :as ucore] [quantum.untyped.core.error :as uerr :refer [err!]] [quantum.untyped.core.fn :as ufn :refer [fn1]] [quantum.untyped.core.logic :r...
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src-untyped/quantum/untyped/core/cache.cljc
clojure
===== Memoization ===== ;; Delay: laziness undelays it because usually that's what is wanted override cache only if not present ===== Cached functions ===== ;; to prevent overflow Each potential thread is guaranteed to have different values of `calls` if <= n, and thus to take the correct respective branches On...
(ns quantum.untyped.core.cache (:refer-clojure :exclude [memoize]) (:require [quantum.untyped.core.core :as ucore] [quantum.untyped.core.error :as uerr :refer [err!]] [quantum.untyped.core.fn :as ufn :refer [fn1]] [quantum.untyped.core.logic :r...
6b49da057161fba3f32835f6794530735e9dd3acf96c883d9b58146b96cf2403
helium/plumtree
plumtree_metadata_object.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2013 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may ob...
null
https://raw.githubusercontent.com/helium/plumtree/3ef02920bd1e31dd8d9b5d9ca88f49639036ad9b/src/plumtree_metadata_object.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2013 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(...
21ccd38f046a7b769b86bd36ce16cfcd351f7cf6bf3924dd886be3dbe8a48496
borodust/bodge-ui
spacing.lisp
(cl:in-package :bodge-ui) ;;; ;;; ;;; (defclass spacing (widget) ((columns :initform 1 :initarg :columns))) (defmethod compose ((this spacing)) (with-slots (columns) this (%nuklear:spacing *handle* (floor columns))))
null
https://raw.githubusercontent.com/borodust/bodge-ui/db896ca3be9026444398e0192a48b048aa7db574/src/elements/spacing.lisp
lisp
(cl:in-package :bodge-ui) (defclass spacing (widget) ((columns :initform 1 :initarg :columns))) (defmethod compose ((this spacing)) (with-slots (columns) this (%nuklear:spacing *handle* (floor columns))))
3f9345ae5c804e516d7cdad29e4ff1e7e9aa0d081c4cef7348879dc597cfcc50
davisp/couchdb
couch_replicator_httpc_pool.erl
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 % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/davisp/couchdb/b0420f9006915149e81607615720f32f21c76725/src/couch_replicator/src/couch_replicator_httpc_pool.erl
erlang
use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(couch_replicator_httpc_pool). -behaviour(gen_server). -export([start_link/2, stop/1]). -export([get_worker/1, release_worker/2]). -export([init/1,...
7c5e577304536daf88f1237c489d6eba5fedceadeef1248ac97684e573a7e933
ChicagoBoss/ChicagoBoss
boss_translator_controller.erl
%%------------------------------------------------------------------- @author ChicagoBoss Team and contributors , see file in root directory %% @end This file is part of ChicagoBoss project . See file in root directory %% for license information, see LICENSE file in root directory %% @end %...
null
https://raw.githubusercontent.com/ChicagoBoss/ChicagoBoss/113bac70c2f835c1e99c757170fd38abf09f5da2/src/boss/boss_translator_controller.erl
erlang
------------------------------------------------------------------- @end for license information, see LICENSE file in root directory @end @doc -------------------------------------------------------------------
@author ChicagoBoss Team and contributors , see file in root directory This file is part of ChicagoBoss project . See file in root directory -module(boss_translator_controller). -behaviour(gen_server). -export([start_link/0, start_link/1]). -export([init/1, handle_call/3, handle_cast/2, han...
b6dba7348625840cf904a947a3627724cedc16034fb9ef4f75659db25a77a60d
danieljharvey/mimsa
Expr.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Language.Mimsa.Core.Types.AST.Expr ( Ex...
null
https://raw.githubusercontent.com/danieljharvey/mimsa/e6b177dd2c38e8a67d6e27063ca600406b3e6b56/core/src/Language/Mimsa/Core/Types/AST/Expr.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # ----- | The main expression type that we parse from syntax `var` is the type of variables. When we parse them they are string-based `Name`, but after substitution they become a `Variable` which is either a string or a numbered variable | a named variable ...
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # module Language.Mimsa.Core.Types.AST.Expr ( Expr (..), ) where import qualified Data.Aeson as JSON import Data...
db405e6676d8d603aee9e297474d71dc55cdec8594500ae412d9220b343f14bb
regex-generate/regenerate
ThunkListMemo.ml
module Make (K : Sigs.OrderedMonoid) : Sigs.S with type elt = K.t and type t = ThunkList.Make(K).t = struct open OSeq include ThunkList.Make(K) let memoize f = let r = CCVector.create () in let rec f' i seq () = if i < CCVector.length r then CCVector.get r i else let l...
null
https://raw.githubusercontent.com/regex-generate/regenerate/a616d6c2faf4a55f794ac9b6fbf03acca91fbeb9/segments/ThunkListMemo.ml
ocaml
module Make (K : Sigs.OrderedMonoid) : Sigs.S with type elt = K.t and type t = ThunkList.Make(K).t = struct open OSeq include ThunkList.Make(K) let memoize f = let r = CCVector.create () in let rec f' i seq () = if i < CCVector.length r then CCVector.get r i else let l...
ae3fb00abbb44180cfaec30c9cb04196826fca930bd7220cc1264af896c2d73c
pokepay/paras
parser.lisp
(defpackage #:paras/parser (:use #:cl #:paras/types) (:shadowing-import-from #:paras/special #:quote #:lambda) (:shadowing-import-from #:paras/errors #:parser-error #:end-of-file ...
null
https://raw.githubusercontent.com/pokepay/paras/4809fd49f279aaf06e6e4feb3edc0f2a87371cd4/parser.lisp
lisp
(defpackage #:paras/parser (:use #:cl #:paras/types) (:shadowing-import-from #:paras/special #:quote #:lambda) (:shadowing-import-from #:paras/errors #:parser-error #:end-of-file ...
b5117a697c045ac4203a6ae3153c85768c6a7a64cb164dfda1593a809138280a
ChrisPenner/proton
Absorbent.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # module Data.Profunctor.Absorbent where import Data.Profunctor import Data.Functor.Identity import Control.Monad Similar to , but simpler to implement and less restrictive Represents Profunctors which can run effects . class Profunctor p => A...
null
https://raw.githubusercontent.com/ChrisPenner/proton/4ce22d473ce5bece8322c841bd2cf7f18673d57d/src/Data/Profunctor/Absorbent.hs
haskell
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # module Data.Profunctor.Absorbent where import Data.Profunctor import Data.Functor.Identity import Control.Monad Similar to , but simpler to implement and less restrictive Represents Profunctors which can run effects . class Profunctor p => A...
7ec0bd7871aafd8c58425f2ed118410900aab692b325b85b9e2dec0b77b95d16
dvcrn/proton
core.cljs
(ns proton.layers.frameworks.react.core (:use [proton.layers.base :only [init-layer! register-layer-dependencies]])) (defmethod init-layer! :frameworks/react [] (register-layer-dependencies :lang/javascript [:react :react-snippets]))
null
https://raw.githubusercontent.com/dvcrn/proton/427d83ffdb61d84a04e3d30032b792a9cfbfc53f/src/cljs/proton/layers/frameworks/react/core.cljs
clojure
(ns proton.layers.frameworks.react.core (:use [proton.layers.base :only [init-layer! register-layer-dependencies]])) (defmethod init-layer! :frameworks/react [] (register-layer-dependencies :lang/javascript [:react :react-snippets]))
c1cd0c8adba3dfee1f0a1ab3a8458d1febe98bc1db17e503783cc15e81f92777
lurodrigo/firestore-clj
project.clj
(defproject lurodrigo/firestore-clj "1.2.2" :description "A Firestore API for Clojure. Provides tools for doing single pulls and writes, streaming real-time data, batched writes and transactions." :url "-clj" :license {:name "MIT LICENSE" :url "-clj/blob/master/LICENSE"} :scm {:name "git" :url "-clj...
null
https://raw.githubusercontent.com/lurodrigo/firestore-clj/b535c7d230e1e4d7a965a244c59b32763847bc3a/project.clj
clojure
(defproject lurodrigo/firestore-clj "1.2.2" :description "A Firestore API for Clojure. Provides tools for doing single pulls and writes, streaming real-time data, batched writes and transactions." :url "-clj" :license {:name "MIT LICENSE" :url "-clj/blob/master/LICENSE"} :scm {:name "git" :url "-clj...
1d2f96e3bbbad6e84bea97a6d4c1acfe242647c590a4868c5f6a988eb632281f
Clozure/ccl
systems.lisp
-*-Mode : LISP ; Package : CCL -*- ;;; Copyright 1994 - 2009 Clozure Associates ;;; 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 ;;; ;;; -2.0 ;;; ;;; Unless required by appli...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/lib/systems.lisp
lisp
Package : CCL -*- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific la...
Copyright 1994 - 2009 Clozure Associates distributed under the License is distributed on an " AS IS " BASIS , (in-package "CCL") (defparameter *ccl-system* '( (level-1 "ccl:ccl;level-1" ("ccl:l1;level-1.lisp")) (runtime "ccl:ccl;runtime" ("ccl:l1;runtime.lisp")) (...
a8ecc5b4cbe5b3f245cf72955f0eb67a4e5bd056315de4ea55ef3204d9451feb
tolysz/prepare-ghcjs
Encode.hs
-- | -- Module: Data.Aeson.Encode Copyright : ( c ) 2012 - 2016 ( c ) 2011 MailRank , Inc. License : BSD3 Maintainer : < > -- Stability: experimental -- Portability: portable -- -- This module is left to supply limited backwards-compatibility. # DEPRECATED " Use Data . Aeson o...
null
https://raw.githubusercontent.com/tolysz/prepare-ghcjs/8499e14e27854a366e98f89fab0af355056cf055/spec-lts8/aeson/Data/Aeson/Encode.hs
haskell
| Module: Data.Aeson.Encode Stability: experimental Portability: portable This module is left to supply limited backwards-compatibility.
Copyright : ( c ) 2012 - 2016 ( c ) 2011 MailRank , Inc. License : BSD3 Maintainer : < > # DEPRECATED " Use Data . Aeson or Data . Aeson . Text instead " # ( encode , encodeToTextBuilder ) where import Prelude () import Data.ByteString.Lazy (ByteString) import Dat...
9b9cddad9393eda573d582f4e86e33c8d294d341bc44817cebc64a5f57c88a4e
uwplse/coq-plugin-lib
substitution.mli
(* Substitution auxiliary functions *) open Environ open Constr open Evd open Names TODO clean up so retrieval is easier (* * Note: These substitution functions assume that all of the necessary * constraints for both the source and destination terms are already in the * provided evar_map. Thus, they do not upd...
null
https://raw.githubusercontent.com/uwplse/coq-plugin-lib/b249fc1954e2f1bc0b776e2d06e8ec1fc4d48ad9/src/coq/logicutils/hofs/substitution.mli
ocaml
Substitution auxiliary functions * Note: These substitution functions assume that all of the necessary * constraints for both the source and destination terms are already in the * provided evar_map. Thus, they do not update the evar_map as they recurse. * If the destination type refers to evars or universes tha...
open Environ open Constr open Evd open Names TODO clean up so retrieval is easier type ('a, 'b) substitution = env -> evar_map -> 'a -> types -> evar_map * 'b type 'a comb_substitution = ('a, types list) substitution type 'a type_substitution = ('a, types) substitution val all_conv_substs : (types * types) type_s...
a885a38fc813c32f5eb7820eba32568e1ea31890ceaf18f6e27dd820856bade3
ocaml-sf/learnocaml-cpge-public
test.ml
open Test_lib open Report let success msg = [Message ([Text msg], Success 1)] let fail msg = [Message ([Text msg], Failure)] (******************************************************) (* Some facilities to work with Binary Search Trees **) (******************************************************) let leaf x = Nod...
null
https://raw.githubusercontent.com/ocaml-sf/learnocaml-cpge-public/f903aaa78254c8397c8d138c13bb2976c1d9ef3d/exercises/bst/test.ml
ocaml
**************************************************** Some facilities to work with Binary Search Trees * **************************************************** ******************* Code inspection * ******************* * [expr] is the abstract syntax trees for the body of "mem". * The following predicate detects "whil...
open Test_lib open Report let success msg = [Message ([Text msg], Success 1)] let fail msg = [Message ([Text msg], Failure)] let leaf x = Node (Empty, x, Empty) let rec repeat n f accu = if n = 0 then accu else repeat (n - 1) f (f accu) let rec insert x = function | Empty -> leaf x | (Node (l, y, r)) as...
550d0e68fb450d34bb36db83379ebff9d5c37c2ba5df2210b22dbc56d284d448
0xYUANTI/stdlib2
s2_env.erl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% @doc Environment. %%% @end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%_%%%_* Module declaration =============================================== -module(s2_env). %%%_* Exports ===================...
null
https://raw.githubusercontent.com/0xYUANTI/stdlib2/0c334200fd9c7ddd79f6dcc3a63c0aa5de5d3a33/src/s2_env.erl
erlang
@doc Environment. @end _%%%_* Module declaration =============================================== _* Exports ========================================================== _* Includes ========================================================= _* Code ============================================================= _ * ensur...
-module(s2_env). -export([ ensure_started/1 , get_arg/3 , get_arg/4 , with_sys/2 ]). -include_lib("eunit/include/eunit.hrl"). -include_lib("stdlib2/include/prelude.hrl"). -spec ensure_started(atom() | [atom()]) -> ok | no_return(). ensure_started(App) when is_atom(App) -> ensure_st...
abb9de5920b1ff6899993967672185f3f95a37199a3bba3cfacdd42ee6be406b
ml4tp/tcoq
safe_typing.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/kernel/safe_typing.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * Since we are now able to type term...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names type vodigest = ...
cc0625e226d841a275bc086d006f92689a07447297d0293ded4e166ddf7c91f1
mhallin/graphql_ppx
record.ml
type scalars = { string: string; int: int; } let scalars = ( module struct type t = scalars let pp formatter (obj: scalars) = Format.fprintf formatter "{ string = %a ; int = %a }" Format.pp_print_string obj.string Format.pp_print_int obj.int let equal (a: s...
null
https://raw.githubusercontent.com/mhallin/graphql_ppx/5796b3759bdf0d29112f48e43a2f0623f7466e8a/tests_native/record.ml
ocaml
type scalars = { string: string; int: int; } let scalars = ( module struct type t = scalars let pp formatter (obj: scalars) = Format.fprintf formatter "{ string = %a ; int = %a }" Format.pp_print_string obj.string Format.pp_print_int obj.int let equal (a: s...
202a1a13344e56eecb1e8154fceb588e5b3c5099b681f2d165b20cd4a568ee2b
clojureverse/clojurians-log-app
slack_api_test.clj
(ns clojurians-log.slack-api-test (:require [clojurians-log.slack-api :as slack] [clojurians-log.db.queries :as queries] [clojurians-log.test-helper :as test-helper] [clojure.test :refer :all] [datomic.api :as d])) (deftest import-channels!-test (testing "it handles ...
null
https://raw.githubusercontent.com/clojureverse/clojurians-log-app/d34c9bd715e492c8f1899653548716d32c623fad/test/clojurians_log/slack_api_test.clj
clojure
(ns clojurians-log.slack-api-test (:require [clojurians-log.slack-api :as slack] [clojurians-log.db.queries :as queries] [clojurians-log.test-helper :as test-helper] [clojure.test :refer :all] [datomic.api :as d])) (deftest import-channels!-test (testing "it handles ...
29d4774712acc196c5b69716ae185fe81112996d733ef721dec6979c967df15f
appleby/Lisp-In-Small-Pieces
book.scm
;;;(((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) ;;; This file is derived from the files that accompany the book: LISP Implantation Semantique Programmation ( InterEditions , France ) or Lisp In Small Pieces ( Cambridge University Press ) . By Christian Queinnec < > ;;; The ...
null
https://raw.githubusercontent.com/appleby/Lisp-In-Small-Pieces/af4139232bb7170f32470774a92d647e83254721/mitscheme/book.scm
scheme
(((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) This file is derived from the files that accompany the book: The original sources can be downloaded from the author's website at -systeme.lip6.fr/Christian.Queinnec/WWW/LiSP.html This file may have been altered from the original in order to...
LISP Implantation Semantique Programmation ( InterEditions , France ) or Lisp In Small Pieces ( Cambridge University Press ) . By Christian Queinnec < > (load "mitscheme/mit-book.scm") (load "common/compat/load-relative.scm") (load "common/compat/callcc.scm") (load "common/compat/gensym.scm") (load "co...
08fedf75a223a987a3beeae37b14cf3c9b41cbc2ecdec6dc306230f27073b555
reanimate/reanimate
doc_githubWhiteIcon.hs
#!/usr/bin/env stack -- stack runghc --package reanimate module Main (main) where import Reanimate import Reanimate.Builtin.Images main :: IO () main = reanimate $ staticFrame 1 $ mkGroup [ mkBackground "grey" , githubWhiteIcon ]
null
https://raw.githubusercontent.com/reanimate/reanimate/5ea023980ff7f488934d40593cc5069f5fd038b0/examples/doc_githubWhiteIcon.hs
haskell
stack runghc --package reanimate
#!/usr/bin/env stack module Main (main) where import Reanimate import Reanimate.Builtin.Images main :: IO () main = reanimate $ staticFrame 1 $ mkGroup [ mkBackground "grey" , githubWhiteIcon ]
695405615a767715797a033ddc2d8dfe319f59839517e250a834e9482580a5af
macourtney/Conjure
test_fixture_destroyer.clj
(ns conjure.script.destroyers.test-fixture-destroyer (:use clojure.test conjure.script.destroyers.fixture-destroyer)) (deftest test-usage (usage))
null
https://raw.githubusercontent.com/macourtney/Conjure/1d6cb22d321ea75af3a6abe2a5bc140ad36e20d1/conjure_script_model/test/conjure/script/destroyers/test_fixture_destroyer.clj
clojure
(ns conjure.script.destroyers.test-fixture-destroyer (:use clojure.test conjure.script.destroyers.fixture-destroyer)) (deftest test-usage (usage))
8889e5307575f877ac8f2dd81aceec363667e47f83213349bbb2c27d4a6758f1
binaryage/cljs-devtools
types.cljs
(ns devtools-sample.tests.types (:import [goog.date Date DateTime UtcDateTime]) (:require-macros [devtools-sample.logging :refer [log info]]) (:require [devtools-sample.boot :refer [boot!]])) (boot! "/src/tests/devtools_sample/tests/types.cljs") (enable-console-print!) ; --- MEAT STARTS HERE --> (def showcase...
null
https://raw.githubusercontent.com/binaryage/cljs-devtools/d07fc6d404479b1ddd32cecc105009de77e3cba7/examples/lein/src/tests/devtools_sample/tests/types.cljs
clojure
--- MEAT STARTS HERE --> atoms atoms <-- MEAT STOPS HERE ---
(ns devtools-sample.tests.types (:import [goog.date Date DateTime UtcDateTime]) (:require-macros [devtools-sample.logging :refer [log info]]) (:require [devtools-sample.boot :refer [boot!]])) (boot! "/src/tests/devtools_sample/tests/types.cljs") (enable-console-print!) (def showcase-value {:number 0 ...
1755b85bbc2b2ab2b23b23e4bb2d170046bc945962495941ecf97ce50f9ca0b5
atlas-engineer/nyxt
nyxt-url-security.lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (in-package :nyxt/tests/renderer) (nyxt:define-internal-scheme "iframe-embed" (lambda (url buffer) (declare (ignorable url buffer)) (spinneret:with-html-string (:script (ps:ps (defun check-i...
null
https://raw.githubusercontent.com/atlas-engineer/nyxt/586bd6451441155ee30ca910a64946a987cbe45d/tests/renderer-offline/nyxt-url-security.lisp
lisp
Same settings as HTTPS, imitating it. More than enough time for nyxt:new to load and check-iframe-loaded to fire.
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (in-package :nyxt/tests/renderer) (nyxt:define-internal-scheme "iframe-embed" (lambda (url buffer) (declare (ignorable url buffer)) (spinneret:with-html-string (:script (ps:ps (defun check-i...
c96d82bd55b4911ca4113addae3440f459ac172928ebf53604dc807ae0be966a
janestreet/universe
test.mli
module Normal : sig type t = Foo of int | Bar [@@deriving variants] end module Poly : sig type t = [ `Foo of int | `Bar ] [@@deriving variants] end
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/ppx_variants_conv/example/test.mli
ocaml
module Normal : sig type t = Foo of int | Bar [@@deriving variants] end module Poly : sig type t = [ `Foo of int | `Bar ] [@@deriving variants] end
d20eb3328a16fc25c9a6c002bcbadaab18bc85e514210e39514ba0a532bf5c86
pallet/pallet
crate.clj
(ns pallet.crate "# Pallet Crate Writing API" (:require [clojure.string :as string] [clojure.tools.macro :refer [name-with-attributes]] [pallet.action :refer [declare-action declare-aggregated-crate-action declare-collected-crate-action]] [pallet.argument :refer [delayed-fn]]...
null
https://raw.githubusercontent.com/pallet/pallet/30226008d243c1072dcfa1f27150173d6d71c36d/src/pallet/crate.clj
clojure
The phase pipeline is used in actions and crate functions. The phase context automatically sets up the phase context, which is available (for logging, etc) at phase execution time. if the final function call is recursive, then don't add a phase-context, so that just forwarding different arities only Multi-method ...
(ns pallet.crate "# Pallet Crate Writing API" (:require [clojure.string :as string] [clojure.tools.macro :refer [name-with-attributes]] [pallet.action :refer [declare-action declare-aggregated-crate-action declare-collected-crate-action]] [pallet.argument :refer [delayed-fn]]...
cacef469e84a338ab19527dc1ae66600c118371fa7537096f5a7ae6b6cff9ece
igorhvr/bedlam
lineio.scm
; "lineio.scm", line oriented input/output functions for Scheme. Copyright ( c ) 1992 , 1993 ; ;Permission to copy this software, to modify it, to redistribute it, ;to distribute modified versions, and to use it for any purpose is ;granted, subject to the following restrictions and understandings. ; 1 . Any copy ...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/sisc/sisc-contrib/irc/scheme/sarah/lineio.scm
scheme
"lineio.scm", line oriented input/output functions for Scheme. Permission to copy this software, to modify it, to redistribute it, to distribute modified versions, and to use it for any purpose is granted, subject to the following restrictions and understandings. in full. this software will be error-free, and I am ...
Copyright ( c ) 1992 , 1993 1 . Any copy made of this software must include this copyright notice 2 . I have made no warranty or representation that the operation of 3 . In conjunction with products arising from the use of this @args @args port newline or end of file , updating @var{port } to point to the e...
6296c4a2010f0d7cce04a9e8018be22743715d1d1bbd212a905d10e3de66f828
angavrilov/cl-linux-debug
xml-helper.lisp
;;; -*- mode: Lisp; indent-tabs-mode: nil; -*- (in-package :cl-linux-debug.data-xml) (defparameter global nil) (defmacro fmt (&rest args) `(format nil ,@args)) (defgeneric describe-obj (obj) (:method (obj) obj) (:method ((obj memory-object-ref)) (describe-ref-value obj obj))) (defun get-int (obj offset siz...
null
https://raw.githubusercontent.com/angavrilov/cl-linux-debug/879da2dcd14918bb8ffab003e934f4b01fba12ff/data-info/xml-helper.lisp
lisp
-*- mode: Lisp; indent-tabs-mode: nil; -*-
(in-package :cl-linux-debug.data-xml) (defparameter global nil) (defmacro fmt (&rest args) `(format nil ,@args)) (defgeneric describe-obj (obj) (:method (obj) obj) (:method ((obj memory-object-ref)) (describe-ref-value obj obj))) (defun get-int (obj offset size &key signed?) (get-memory-integer obj offse...
a4e05504e8c5d0dc50509d266dd424bbe2142753e5f88b1c248187c647e7fb51
BoeingX/haskell-programming-from-first-principles
IntermissionExercises.hs
module BasicDatatypes.ComparingValues.IntermissionExercises where Question 1 a = not True && True Question 2 b = not (5 == 6) Question 3 c = (1 * 2) > 5 Question 4 d = "Merry" > "Happy" Question 5 e = ['1', '2', '3'] ++ "look at me!"
null
https://raw.githubusercontent.com/BoeingX/haskell-programming-from-first-principles/ffb637f536597f552a4e4567fee848ed27f3ba74/src/BasicDatatypes/ComparingValues/IntermissionExercises.hs
haskell
module BasicDatatypes.ComparingValues.IntermissionExercises where Question 1 a = not True && True Question 2 b = not (5 == 6) Question 3 c = (1 * 2) > 5 Question 4 d = "Merry" > "Happy" Question 5 e = ['1', '2', '3'] ++ "look at me!"
c0eff4632dff88d3f38b736709349fd0b9bfe430406a125c145825db011df02a
dbuenzli/uucp
examples.ml
(* This code is in the public domain *) Case conversion on UTF-8 strings let cmap_utf_8 cmap s = let b = Buffer.create (String.length s * 2) in let rec add_map _ _ u = let u = match u with `Malformed _ -> Uutf.u_rep | `Uchar u -> u in match cmap u with | `Self -> Uutf.Buffer.add_utf_8 b u | `Uch...
null
https://raw.githubusercontent.com/dbuenzli/uucp/09d2186c0828465dbe37ed976c8d8ab7a5e7eeed/test/examples.ml
ocaml
This code is in the public domain
Case conversion on UTF-8 strings let cmap_utf_8 cmap s = let b = Buffer.create (String.length s * 2) in let rec add_map _ _ u = let u = match u with `Malformed _ -> Uutf.u_rep | `Uchar u -> u in match cmap u with | `Self -> Uutf.Buffer.add_utf_8 b u | `Uchars us -> List.iter (Uutf.Buffer.add_utf...
6d85412e64f1579c4778c62599a4de48e2a2555e8b11f176bbc403baa76ad818
juji-io/datalevin
remote_sutil_test.clj
(ns datalevin.remote-sutil-test (:require [datalevin.search-utils :as sut] [datalevin.core :as d] [datalevin.test.core :as tdc :refer [server-fixture]] [clojure.test :as t :refer [is deftest testing use-fixtures]])) (use-fixtures :each server-fixture) (deftest remote-custom-analyzer-test (let [dir ...
null
https://raw.githubusercontent.com/juji-io/datalevin/71a14c9572de479f418779071a55e91d83c44d5a/test/datalevin/remote_sutil_test.clj
clojure
(ns datalevin.remote-sutil-test (:require [datalevin.search-utils :as sut] [datalevin.core :as d] [datalevin.test.core :as tdc :refer [server-fixture]] [clojure.test :as t :refer [is deftest testing use-fixtures]])) (use-fixtures :each server-fixture) (deftest remote-custom-analyzer-test (let [dir ...
7ca2ff585cd1cf5500b2dc533d0fbdb870f154e280771d5fc23be5fac9a8a1c2
clojure/core.typed
namespaced_specials.clj
(ns clojure.core.typed.test.namespaced-specials (:require [clojure.core.typed.test.test-utils :refer :all] [clojure.test :refer :all])) ;backwards compatibility tests for type syntax (deftest value-test (is-tc-e (ann-form :a ':a)) ;old syntax (is-cf (clojure.core.typed/ann-form :a (Value :a))) (...
null
https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/checker.jvm/test/clojure/core/typed/test/namespaced_specials.clj
clojure
backwards compatibility tests for type syntax old syntax runtime parsing old syntax bare quote should always resolve to clojure.core/quote old syntax new syntax old syntax new syntax old syntax new syntax old syntax new syntax
(ns clojure.core.typed.test.namespaced-specials (:require [clojure.core.typed.test.test-utils :refer :all] [clojure.test :refer :all])) (deftest value-test (is-tc-e (ann-form :a ':a)) (is-cf (clojure.core.typed/ann-form :a (Value :a))) (is-tc-e (ann-form :a (Value :a))) (is-tc-e (ann-form :a (t/...
fb4ceab78197ba7841f8d6f17b7879c313c20d8c56ec8ccd80bd1f3886aad8b6
johnwhitington/ocamli
example04.ml
let cube x = x * x * x
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/OCaml%20from%20the%20Very%20Beginning/Chapter%202/example04.ml
ocaml
let cube x = x * x * x
9f3f6bfc6b3598688146e4973c8b3e6cc2058ec0547659f6d8e12f2e20225d1a
falsetru/htdp
43.3.4.scm
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-advanced-reader.ss" "lang")((modname 43.3.4) (read-case-sensitive #t) (teachpacks ((lib "draw.ss" "teachpack" "htdp") (lib "arrow.ss" "tea...
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/43/43.3.4.scm
scheme
about the language level of this file in a form that our tools can easily process.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-advanced-reader.ss" "lang")((modname 43.3.4) (read-case-sensitive #t) (teachpacks ((lib "draw.ss" "teachpack" "htdp") (lib "arrow.ss" "teachpack" "htdp"))) (htdp-settings #(#t constructor repeating-decimal #t #t none #f ((li...