_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
f7def806a8d0a426848fea1435adb69eb8f8df6aad7515a27cb671488986f383
korya/efuns
multdef.ml
let f x = x + 1 external g : string -> int = "int_of_string"
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/inliner/perf/Moretest/multdef.ml
ocaml
let f x = x + 1 external g : string -> int = "int_of_string"
0385f9ddebf1d0fa5d47c8eec0e4eb5d5fb48e3c6a19e8e9b47e301424afefec
achirkin/qua-kit
Criteria.hs
{-# OPTIONS_HADDOCK hide, prune #-} module Handler.Mooc.Criteria ( getCriteriaListR , getCriteriaImgR ) where import Import import Text.Blaze as Blaze import Database.Persist.Sql getCriteriaListR :: Handler Html getCriteriaListR = do exId <- getCurrentExercise criteria <- runDB $ currentCriteria exI...
null
https://raw.githubusercontent.com/achirkin/qua-kit/9f859e2078d5f059fb87b2f6baabcde7170d4e95/apps/hs/qua-server/src/Handler/Mooc/Criteria.hs
haskell
# OPTIONS_HADDOCK hide, prune #
module Handler.Mooc.Criteria ( getCriteriaListR , getCriteriaImgR ) where import Import import Text.Blaze as Blaze import Database.Persist.Sql getCriteriaListR :: Handler Html getCriteriaListR = do exId <- getCurrentExercise criteria <- runDB $ currentCriteria exId oldCriteria <- runDB $ otherCr...
d9e5af2d81c85e8193893ddf1f82f986ae16b5fc8a842b775683f4306f22f346
nibbula/yew
basename.lisp
;;; ;;; basename.lisp - Print the file name without the directory. ;;; (defpackage :basename (:documentation "Print the file name without the directory.") (:use :cl :dlib :opsys :collections :lish) (:export #:!basename )) (in-package :basename) (defcommand basename ((all boolean :short-arg #\a :long-arg...
null
https://raw.githubusercontent.com/nibbula/yew/634f4b7b6628efbb62a074ecbbfdf99e13cf93a8/los/basename.lisp
lisp
basename.lisp - Print the file name without the directory. (defcommand za ((a string :rest t)) (apply #'!= "/usr/bin/basename" a) (apply #'!= "basename" a)) @@@ Some of the differences here are things in path-file-name that I think I probably should fix. End
(defpackage :basename (:documentation "Print the file name without the directory.") (:use :cl :dlib :opsys :collections :lish) (:export #:!basename )) (in-package :basename) (defcommand basename ((all boolean :short-arg #\a :long-arg "multiple" :help "All arguments are file names.") (suffix strin...
1b2d2d8f9cb49289293dddc42e06b9d9d19c78444571b0742ea730d17b5593ea
chetmurthy/ensemble
route.mli
(**************************************************************) (* ROUTE.MLI *) Author : , 12/95 (**************************************************************) open Trans open Buf (**************************************************************) type pre_processor = | Unsigned of (rank -> Obj.t option -> seqno...
null
https://raw.githubusercontent.com/chetmurthy/ensemble/8266a89e68be24a4aaa5d594662e211eeaa6dc89/ensemble/server/route/route.mli
ocaml
************************************************************ ROUTE.MLI ************************************************************ ************************************************************ ************************************************************ ************************************************************ Ty...
Author : , 12/95 open Trans open Buf type pre_processor = | Unsigned of (rank -> Obj.t option -> seqno -> Iovecl.t -> unit) | Signed of (bool -> rank -> Obj.t option -> seqno -> Iovecl.t -> unit) type handlers val handlers : unit -> handlers The central delivery functions of Ensemble . All incoming *...
0bf4a07ee9894db991b1444592394e3b29de8f75e7e216591f262f3873a62edb
GrammaticalFramework/gf-core
Concrete.hs
-- | Functions for computing the values of terms in the concrete syntax, in -- | preparation for PMCFG generation. module GF.Compile.Compute.Concrete (GlobalEnv, GLocation, resourceValues, geLoc, geGrammar, normalForm, Value(..), Bind(..), Env, value2term, eval, vapply ) wh...
null
https://raw.githubusercontent.com/GrammaticalFramework/gf-core/667bfd30bd809146327e020f583362f765d15f46/src/compiler/GF/Compile/Compute/Concrete.hs
haskell
| Functions for computing the values of terms in the concrete syntax, in | preparation for PMCFG generation. ,isInfixOf * Main entry points Left i -> fail ("variable #"++show i++" is out of scope") apply env = apply' env ------------------------------------------------------------------------------ * Environments...
module GF.Compile.Compute.Concrete (GlobalEnv, GLocation, resourceValues, geLoc, geGrammar, normalForm, Value(..), Bind(..), Env, value2term, eval, vapply ) where GHC 8.4.1 clash with Text . PrettyPrint import GF.Grammar hiding (Env, VGen, VApp, VRecType) import GF.Gramm...
a693f643b1b8d0cd15cbaf080c46a0e2e525e0edc817add8c2c54c77cdc8e99c
TheLortex/mirage-monorepo
httpaf_server.ml
open Httpaf open Eio.Std let text = "Hello world!" let text = Bigstringaf.of_string ~off:0 ~len:(String.length text) text let headers = Headers.of_list ["content-length", string_of_int (Bigstringaf.length text)] let request_handler _ reqd = let request = Reqd.request reqd in match request.target with | "/" -> ...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/0c29acffaf08dc0008097d36225a14960769f132/example/httpaf_server.ml
ocaml
Wait for clients, and fork off echo servers. Note: really we should dup [ssock] for each domain, but [run_domain] won't close it anyway. Eio_luv.run @@ fun env ->
open Httpaf open Eio.Std let text = "Hello world!" let text = Bigstringaf.of_string ~off:0 ~len:(String.length text) text let headers = Headers.of_list ["content-length", string_of_int (Bigstringaf.length text)] let request_handler _ reqd = let request = Reqd.request reqd in match request.target with | "/" -> ...
bd7148a295caab0963ca7de0bf6a211a8b87d2acea97b95d9bcefd51a6902fc8
puppetlabs/puppetdb
examples.clj
(ns puppetlabs.puppetdb.examples (:require [puppetlabs.puppetdb.utils.string-formatter :as formatter])) (def catalogs {:empty {:certname "empty.catalogs.com" :version "1330463884" :transaction_uuid "aaaaaaaa-1111-aaaa-1111-aaaaaaaaaaaa" :catalog_uuid "aaaaaaaa-1111-aaaa-1111-aaaaaaa...
null
https://raw.githubusercontent.com/puppetlabs/puppetdb/b3d6d10555561657150fa70b6d1e609fba9c0eda/test/puppetlabs/puppetdb/examples.clj
clojure
(ns puppetlabs.puppetdb.examples (:require [puppetlabs.puppetdb.utils.string-formatter :as formatter])) (def catalogs {:empty {:certname "empty.catalogs.com" :version "1330463884" :transaction_uuid "aaaaaaaa-1111-aaaa-1111-aaaaaaaaaaaa" :catalog_uuid "aaaaaaaa-1111-aaaa-1111-aaaaaaa...
9e7e26c1dc2b73cd3d1bf615583c9e313e1e58d5d7af0843c1d1fce91fb098db
DavidAlphaFox/RabbitMQ
rabbit_sasl_report_file_h.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/src/rabbit_sasl_report_file_h.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. rabbit_sasl_rep...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module...
3a62fb4316e4c6457b30e5d6cff4db9c8f448134f024d67e42eeb9c79ce76e26
dselsam/arc
Focus.hs
Copyright ( c ) 2020 Microsoft Corporation . All rights reserved . Released under Apache 2.0 license as described in the file LICENSE . Authors : , , . # LANGUAGE ScopedTypeVariables # {-# LANGUAGE StrictData #-} module Solver.Tactics.Focus where import Util.Imports import qualified Util.List as List impo...
null
https://raw.githubusercontent.com/dselsam/arc/7e68a7ed9508bf26926b0f68336db05505f4e765/src/Solver/Tactics/Focus.hs
haskell
# LANGUAGE StrictData # TODO: new experiment, may be bad TODO: too strong? TODO: guard most? (top, bottom, left, right)
Copyright ( c ) 2020 Microsoft Corporation . All rights reserved . Released under Apache 2.0 license as described in the file LICENSE . Authors : , , . # LANGUAGE ScopedTypeVariables # module Solver.Tactics.Focus where import Util.Imports import qualified Util.List as List import Solver.SolveM import Solv...
87eb60aca0d3798adc94c467da84038a1c031563ea7f1fe799cd49a3afe9fc00
bickfordb/haskell-taglib
example.hs
module Main where import qualified Sound.TagLib as TagLib import Data.Maybe import Control.Monad import System main = do args <- getArgs mapM showFile args withMaybe :: (Maybe j) -> (j -> IO ()) -> IO () withMaybe mebbe action = do case mebbe of Just x -> do action x ret...
null
https://raw.githubusercontent.com/bickfordb/haskell-taglib/e3fce97b0e4d79e94377a81cce7a6022aceab5fd/example.hs
haskell
}
module Main where import qualified Sound.TagLib as TagLib import Data.Maybe import Control.Monad import System main = do args <- getArgs mapM showFile args withMaybe :: (Maybe j) -> (j -> IO ()) -> IO () withMaybe mebbe action = do case mebbe of Just x -> do action x ret...
906671502315e12ed546e3e63dbd0dbd9a57cb91a8cc33fbaffd80382afd6b03
mcorbin/meuse
request.clj
(ns meuse.helpers.request) (defn add-auth ([request] (add-auth request "user2" "tech")) ([request user] (add-auth request "user2" "tech")) ([request user role] (assoc request :auth {:user-name user :role-name role})))
null
https://raw.githubusercontent.com/mcorbin/meuse/d2b74543fce37c8cde770ae6f6097cabb509a804/test/meuse/helpers/request.clj
clojure
(ns meuse.helpers.request) (defn add-auth ([request] (add-auth request "user2" "tech")) ([request user] (add-auth request "user2" "tech")) ([request user role] (assoc request :auth {:user-name user :role-name role})))
3861c357dc9d9642b99555141ccb08f191bf1325505d63cec4f642a2903061da
drewolson/aoc-hs
Day09Spec.hs
module Aoc.Year2021.Day09Spec ( spec, ) where import Aoc.Year2021.Day09 qualified as Day09 import Test.Hspec (Spec, describe, it, shouldBe) import Text.RawString.QQ (r) input :: String input = [r|2199943210 3987894921 9856789892 8767896789 9899965678 |] spec :: Spec spec = do describe "part1" do it "day ...
null
https://raw.githubusercontent.com/drewolson/aoc-hs/b0f06843e1f7d8c2af1da582e59a72d8f2bb73bf/aoc-year2021/test/Aoc/Year2021/Day09Spec.hs
haskell
module Aoc.Year2021.Day09Spec ( spec, ) where import Aoc.Year2021.Day09 qualified as Day09 import Test.Hspec (Spec, describe, it, shouldBe) import Text.RawString.QQ (r) input :: String input = [r|2199943210 3987894921 9856789892 8767896789 9899965678 |] spec :: Spec spec = do describe "part1" do it "day ...
f451ca30459782cc111ce48985bd1ca7ebc7f80565c0e65568d1dfd309b2ae17
marick/Midje
generic.clj
(ns as-documentation.about-defrecord.generic) Here 's a simple protocol . To cover various cases , there 's two arities for ` bump ` and ;; `twice` begs out to use `bump` in its implementation. ;; ;; This namespace is named `generic` because the functions declared by records/types that implement this protocol are ...
null
https://raw.githubusercontent.com/marick/Midje/2b9bcb117442d3bd2d16446b47540888d683c717/test/as_documentation/about_defrecord/generic.clj
clojure
`twice` begs out to use `bump` in its implementation. This namespace is named `generic` because the functions declared by records/types are specialized according to the types of the arguments (in this case, only according See
(ns as-documentation.about-defrecord.generic) Here 's a simple protocol . To cover various cases , there 's two arities for ` bump ` and that implement this protocol are akin to what CLOS calls " generic functions " , which to the first , ` this ` , argument ) . (defprotocol Numerical "A record for some sort ...
b09bef0510b3498a641f9ae3f3107b0ca9ea082f1fbeb58ba2930a14639e8b25
Homas/ioc2rpz
ioc2rpz.erl
Copyright 2017 - 2021 ioc2rpz[at]gmail[.]com % Licensed under the Apache License , Version 2.0 ( the " License " ) ; %you may not use this file except in compliance with the License. %You may obtain a copy of the License at % % -2.0 % %Unless required by applicable law or agreed to in writing, software distributed...
null
https://raw.githubusercontent.com/Homas/ioc2rpz/b46249cd2c5e5106b3a3819810515cd4416eb128/src/ioc2rpz.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 or implied. See the License for the specific language governing permission...
Copyright 2017 - 2021 ioc2rpz[at]gmail[.]com Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(ioc2rpz). -include_lib("eunit/include/eunit.hrl"). -behaviour(gen_server). -include_lib("ioc2rpz.hrl"). -export([init/1, h...
efe6e44adb846c64538cd891cc5c099146aceca639c0761acb5d1fd0d3d506d5
ucsd-progsys/dsolve
hashtbl.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/stdlib/hashtbl.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : hashtbl.mli , v 1.39 2005/05/...
cb99bab94a3c65a4e2501822a13ef6205dd19193e96ef2ad9aa12e0620ca5286
jellelicht/guix
ncdu.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 < > ;;; ;;; 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 ; either version 3 of the Li...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/packages/ncdu.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 © 2014 < > 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 ncdu) #:use-module (gnu packages) #:use-module (gnu packages ncurses) #:use-m...
3cf640c8170fdef6c558569ee1e99a11ce4563bba5690339b1788c205debd0df
sneeuwballen/zipperposition
fool.ml
This file is free software , part of Zipperposition . See file " license " for more details . * { 1 boolean subterms } open Logtk open Libzipperposition module T = Term type term = Term.t let section = Util.Section.make ~parent:Const.section "fool" let stat_fool_param = Util.mk_stat "fool.param_step" let stat_e...
null
https://raw.githubusercontent.com/sneeuwballen/zipperposition/e6105458f9812b38b229d89f407b7f232ccb5c9e/src/prover_calculi/fool.ml
ocaml
* Register rules in the environment replace [sub] by [true/false] in [c], obtaining a new clause TODO: do not perform this under a connective (¬, ∧) or boolean combinator by typing NOTE: -- Relies on the representation of literals -- found var, replace it with [not sign] rewrite some boolean literals: ...
This file is free software , part of Zipperposition . See file " license " for more details . * { 1 boolean subterms } open Logtk open Libzipperposition module T = Term type term = Term.t let section = Util.Section.make ~parent:Const.section "fool" let stat_fool_param = Util.mk_stat "fool.param_step" let stat_e...
3a41ad1203cab0cb93e21cce2f2932a731370f50bfc652c3d197103120ec5855
SqrtMinusOne/channel-q
texlab.scm
(define-module (texlab) #:use-module (gnu packages compression) #:use-module (gnu packages gcc) #:use-module (guix download) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) #:use-module (nonguix build-system binary)) (define-public texlab (package (name "texlab-bin") (...
null
https://raw.githubusercontent.com/SqrtMinusOne/channel-q/effc575846531e3c4493cfda2b784766717cae38/texlab.scm
scheme
(define-module (texlab) #:use-module (gnu packages compression) #:use-module (gnu packages gcc) #:use-module (guix download) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) #:use-module (nonguix build-system binary)) (define-public texlab (package (name "texlab-bin") (...
0e1af4616ca0e792265134690b09f67ece957cf89d30300456d5bb2cbc3842ae
crategus/cl-cffi-gtk
atdoc.lisp
;;; ---------------------------------------------------------------------------- ;;; atdoc.lisp ;;; ;;; Functions for generating the documentation for GObject. ;;; ;;; The documentation of this file has been copied from the GObject Reference Manual Version 2.32.4 . See ;;; Copyright ( C ) 2012 ;;; ;;; This progr...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/22156e3e2356f71a67231d9868abcab3582356f3/gobject/atdoc/atdoc.lisp
lisp
---------------------------------------------------------------------------- atdoc.lisp Functions for generating the documentation for GObject. The documentation of this file has been copied from the This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser Gene...
GObject Reference Manual Version 2.32.4 . See Copyright ( C ) 2012 as published by the Free Software Foundation , either version 3 of the the GNU Lesser General Public License that clarifies the terms for use GNU Lesser General Public License for more details . You should have received a copy of the GNU ...
0b5e935f51be8d71d986ff70005edaa45749e3a4af6a9d333281bb87d8693662
tfeb/tfeb-lisp-toys
fluids.lisp
;;;; Fluids, finally ;;; The Python version of this ( the name of which derived from fluid variables in , I think , ) had fluids as functions : ;;; calling the function with no arguments returned its value and with one argument set its value . An earlier version of this did the same thing , but that 's not...
null
https://raw.githubusercontent.com/tfeb/tfeb-lisp-toys/efd1a2f56dfc1053d3c19ba57b4abd328dfbe07a/fluids.lisp
lisp
Fluids, finally calling the function with no arguments returned its value and with single slot (or as conses, which they formerly were). Symbols would be another option (use SYMBOL-VALUE for the toplevel binding), but I suspect they have more backage as well. For either of these options you don't get FLUIDP, w...
The Python version of this ( the name of which derived from fluid variables in , I think , ) had fluids as functions : one argument set its value . An earlier version of this did the same thing , but that 's not really useful with a Lisp-2 : you need things like FLUID - VALUE & c , and fluids - as - func...
532a7ce696703130d462e607e36e321ebd7d66d673ddcc4f93c857de316c22a9
justinethier/nugget
test2.scm
(define make-adder (lambda (n) (lambda (x) (+ x n)))) ((make-adder 1) 2)
null
https://raw.githubusercontent.com/justinethier/nugget/0c4e3e9944684ea83191671d58b5c8c342f64343/90-min-scc/test2.scm
scheme
(define make-adder (lambda (n) (lambda (x) (+ x n)))) ((make-adder 1) 2)
e44d5ac2ee97c85670843e8dd61cc18f9d04bfe7e3e636c566cdb8972a94085e
erlang/corba
oe_CosEventComm_PullerS_impl.erl
%%-------------------------------------------------------------------- %% %% %CopyrightBegin% %% Copyright Ericsson AB 2001 - 2015 . 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 ...
null
https://raw.githubusercontent.com/erlang/corba/396df81473a386d0315bbba830db6f9d4b12a04f/lib/cosEvent/src/oe_CosEventComm_PullerS_impl.erl
erlang
-------------------------------------------------------------------- %CopyrightBegin% 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...
Copyright Ericsson AB 2001 - 2015 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , File : oe_CosEventComm_PullerS_impl.erl -module(oe_CosEventComm_PullerS_impl). -include_lib("orber/include...
438637e3bea5f9e61ca08a6f147e64e14a7d3281bf5440b85aa6331cfcb61ba8
janestreet/universe
raw_grammar.ml
(** Representation of S-expression grammars *) * This module defines the representation of S - expression grammars produced by [ @@deriving sexp_grammar ] . It introduces an AST to represent these grammars and a notion of " group " to represent the grammars of a mutually recursive set of OCaml type...
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/sexplib0/src/raw_grammar.ml
ocaml
* Representation of S-expression grammars * The label of a field, constructor, or constant. * Variable names. These are used to improve readability of the printed grammars. Internally, we use numerical indices to represent variables; see [Implicit_var] below. * A grammatical type which classifies atoms. * A...
* This module defines the representation of S - expression grammars produced by [ @@deriving sexp_grammar ] . It introduces an AST to represent these grammars and a notion of " group " to represent the grammars of a mutually recursive set of OCaml type declaration . The grammar for a given t...
904973e63ed072bc9032681966ac834368d36c93b63bea6fe74396d4f56c7f51
armstnp/advent-of-code-2019
day4_sketch.clj
(ns advent-of-code-2019.day4-sketch (:require [advent-of-code-2019.day4 :as soln] [quil.core :as q :include-macros true] [quil.middleware :as m])) (def range-count (inc (- soln/input-max soln/input-min))) (def canvas-size (-> range-count Math/sqrt Mat...
null
https://raw.githubusercontent.com/armstnp/advent-of-code-2019/68e21174394d8b0e14433f9f249e995c10ac6d67/src/advent_of_code_2019/day4_sketch.clj
clojure
Hosted at
(ns advent-of-code-2019.day4-sketch (:require [advent-of-code-2019.day4 :as soln] [quil.core :as q :include-macros true] [quil.middleware :as m])) (def range-count (inc (- soln/input-max soln/input-min))) (def canvas-size (-> range-count Math/sqrt Mat...
d9d6edbd4d211a8f91bcb213c59abaefa445231023ed3e25321847a0d2ad8546
LeventErkok/sbv
Floating.hs
----------------------------------------------------------------------------- -- | Module : . Misc . Floating Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- Bench suite for Documentation . SBV.Examples . Misc . Floating -----------------------------...
null
https://raw.githubusercontent.com/LeventErkok/sbv/cfaa40b8c8ff8e1b7ff9ab71304654f6f531ba72/SBVBenchSuite/BenchSuite/Misc/Floating.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Maintainer: Stability : experimental --------------------------------------------------------------------------- # OPTIONS_GHC -Wall -Werror # benchmark suite make sure we do not overflow at the intermediate points
Module : . Misc . Floating Copyright : ( c ) Bench suite for Documentation . SBV.Examples . Misc . Floating # LANGUAGE ScopedTypeVariables # module BenchSuite.Misc.Floating(benchmarks) where import Documentation.SBV.Examples.Misc.Floating import BenchSuite.Bench.Bench import Utils....
52d58c873d8a8f35e17b5e09d8ad0c09901b3c63a20a77d78ccf180310839306
gator1/jepsen
project.clj
(defproject elasticsearch "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [clj-http "3.1.0"] [cheshire "5.6.2"] [jepsen "0.1.3-...
null
https://raw.githubusercontent.com/gator1/jepsen/1932cbd72cbc1f6c2a27abe0fe347ea989f0cfbb/elasticsearch/project.clj
clojure
(defproject elasticsearch "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [clj-http "3.1.0"] [cheshire "5.6.2"] [jepsen "0.1.3-...
8620fa55302a2bda1252dafff70038515df4f83067c689c4e8e3273e2bbdd1c3
ku-fpg/hermit
Kure.hs
# LANGUAGE FlexibleContexts , ScopedTypeVariables , LambdaCase # module HERMIT.Dictionary.Kure * KURE Strategies externals , anyCallR , betweenR , anyCallR_LCore , testQuery , hfocusR , hfocusT ) where import Control.Arrow import Control.Monad (liftM) import HERMIT.Core import HER...
null
https://raw.githubusercontent.com/ku-fpg/hermit/3e7be430fae74a9e3860b8b574f36efbf9648dec/src/HERMIT/Dictionary/Kure.hs
haskell
---------------------------------------------------------------------------------- This list contains reflections of the KURE strategies as ' External 's . ---------------------------------------------------------------------------------- --------------------------------------------------------------------------------...
# LANGUAGE FlexibleContexts , ScopedTypeVariables , LambdaCase # module HERMIT.Dictionary.Kure * KURE Strategies externals , anyCallR , betweenR , anyCallR_LCore , testQuery , hfocusR , hfocusT ) where import Control.Arrow import Control.Monad (liftM) import HERMIT.Core import HER...
5caf86b200547b9ee76039e8dca128e593aee0c1e4a52f3c3b240a9e793427e4
spawnfest/eep49ers
ex_frame_utils.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2009 - 2016 . 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 License at %% %% -2.0 %% %% Unless required by applic...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/wx/examples/demo/ex_frame_utils.erl
erlang
%CopyrightBegin% 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 l...
Copyright Ericsson AB 2009 - 2016 . 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(ex_frame_utils). -behaviour(wx_object). -export([start/1]). -export([init/1, terminate/2, code_change/3,...
5f523d83fe006393ec22d282c73af9eeb3b936e72f1cdc5d5339ad2746061b5c
stephenpascoe/hs-arrow
ResizableBuffer.hs
| Copyright : , and License : LGPL-2.1 Maintainer : ( ) It wraps @arrow::ResizableBuffer@. Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1 Maintainer : Iñaki García Etxebarria () It wraps @arrow::ResizableBuffer@. -} #define ENABLE_OVERLOADING...
null
https://raw.githubusercontent.com/stephenpascoe/hs-arrow/86c7c452a8626b1d69a3cffd277078d455823271/gi-arrow/GI/Arrow/Objects/ResizableBuffer.hs
haskell
* Exported types * Methods ** reserve #method:reserve# # SOURCE # # SOURCE # | Memory-managed wrapper type. # OVERLAPPABLE # | A convenience alias for `Nothing` :: `Maybe` `ResizableBuffer`. method type : OrdinaryMethod Lengths : [] throws : True Skip return : False new_capacity : TBasicType TInt64 error ^ ...
| Copyright : , and License : LGPL-2.1 Maintainer : ( ) It wraps @arrow::ResizableBuffer@. Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1 Maintainer : Iñaki García Etxebarria () It wraps @arrow::ResizableBuffer@. -} #define ENABLE_OVERLOADING...
eab5ed34fb3e8ae03960264540da48c904850bac23a6210e92387e7f14b65dea
geophf/1HaskellADay
Exercise.hs
{-# LANGUAGE OverloadedStrings #-} module Y2020.M12.D15.Exercise where - If you recall from yesterday 's exercise , we saw , in the bonus , that there were quite a few countries that did not have associated capitals . Since I mapped alliances and their countries , anchored by the capitals , that makes the map...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2020/M12/D15/Exercise.hs
haskell
# LANGUAGE OverloadedStrings # } for Country-Node instance } partitions countries into ones without capitals and ones with } - With that Capital-declaration, above, and the CapAt and Capital-types (imported). We should be able to build the relations that add capitals to `foundins`. - } } }
module Y2020.M12.D15.Exercise where - If you recall from yesterday 's exercise , we saw , in the bonus , that there were quite a few countries that did not have associated capitals . Since I mapped alliances and their countries , anchored by the capitals , that makes the mapping exercise unworkable for " some...
8ecd04f28161ccf000728b2edc2a053aaf11014478870e21ed1c27715dd7e4a8
mbj/stratosphere
BatchTransformInputProperty.hs
module Stratosphere.SageMaker.DataQualityJobDefinition.BatchTransformInputProperty ( module Exports, BatchTransformInputProperty(..), mkBatchTransformInputProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOU...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/sagemaker/gen/Stratosphere/SageMaker/DataQualityJobDefinition/BatchTransformInputProperty.hs
haskell
# SOURCE #
module Stratosphere.SageMaker.DataQualityJobDefinition.BatchTransformInputProperty ( module Exports, BatchTransformInputProperty(..), mkBatchTransformInputProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratos...
617b3174635e2cfc03d779abb94120133441c461fd449f11aeef81b93d914b57
PacktWorkshops/The-Clojure-Workshop
query.clj
(ns packt-clj.tennis.query (:require [clojure.java.jdbc :as jdbc])) (defn all-players [db] (jdbc/query db ["select * from player"])) (defn player [db id] (jdbc/query db [(str "select * from player where id = '" id "'")])) (defn player-elo [db id] (jdbc/query db [(str "select e.rating, e.id ...
null
https://raw.githubusercontent.com/PacktWorkshops/The-Clojure-Workshop/3d309bb0e46a41ce2c93737870433b47ce0ba6a2/Chapter14/Activity14.01/packt-clj/src/packt_clj/tennis/query.clj
clojure
(ns packt-clj.tennis.query (:require [clojure.java.jdbc :as jdbc])) (defn all-players [db] (jdbc/query db ["select * from player"])) (defn player [db id] (jdbc/query db [(str "select * from player where id = '" id "'")])) (defn player-elo [db id] (jdbc/query db [(str "select e.rating, e.id ...
fb69061877e418d84d68a795520cc10dcdf4c773a0d86455e181441c10db338f
mikera/core.matrix
inline_benchmark.clj
(ns clojure.core.matrix.inline-benchmark (:require [criterium.core :as c])) ;; benchmark for inline usage (set! *unchecked-math* true) ;; (set! *warn-on-reflection* true) (defn add-fn ([x y] (+ x y))) (defn add-prim (^long [^long x ^long y] (+ x y))) (defn add-inline {:inline (fn ([x y] `(+ ~x ~y))...
null
https://raw.githubusercontent.com/mikera/core.matrix/0a35f6e3d6d2335cb56f6f3e5744bfa1dd0390aa/src/test/clojure/clojure/core/matrix/inline_benchmark.clj
clojure
benchmark for inline usage (set! *warn-on-reflection* true) ======================================================== normal fn - 23.3 ns per call primitive fn - 1.25 ns per call inline fn - 1.19 ns per call ======================================================== fn with type hints - 0.90 ns per call inline fn -...
(ns clojure.core.matrix.inline-benchmark (:require [criterium.core :as c])) (set! *unchecked-math* true) (defn add-fn ([x y] (+ x y))) (defn add-prim (^long [^long x ^long y] (+ x y))) (defn add-inline {:inline (fn ([x y] `(+ ~x ~y)))} ([x y] (+ x y))) (defn length-fn ([x] (.length x))) (...
b02a743b7e066016f15c67303010d8c50124757c446757cb1ebe0366abeeb265
aistrate/Okasaki
BinaryRandomAccessList.hs
-- Source code from -- Purely Functional Data Structures Cambridge University Press , 1998 -- Copyright ( c ) 1998 Cambridge University Press module BinaryRandomAccessList (module RandomAccessList, BinaryList) where import Prelude hiding (head,tail,lookup) import RandomAccessList data Tree a = Lea...
null
https://raw.githubusercontent.com/aistrate/Okasaki/cc1473c81d053483bb5e327409346da7fda10fb4/Original/BinaryRandomAccessList.hs
haskell
Source code from Purely Functional Data Structures
Cambridge University Press , 1998 Copyright ( c ) 1998 Cambridge University Press module BinaryRandomAccessList (module RandomAccessList, BinaryList) where import Prelude hiding (head,tail,lookup) import RandomAccessList data Tree a = Leaf a | Node Int (Tree a) (Tree a) data Digit a = Zero | One (...
1aec315153c56753d9a0e76af1fc6095896bebf361ec39e9c37ee529b965218b
victornicolet/parsynt
InnerFuncs.mli
open Fn val verbose : bool ref val replace_by_join : prob_rep -> prob_rep list -> prob_rep val no_join_inlined_body : prob_rep -> fnExpr val reg_no_join_inlined_body : prob_rep -> fnExpr -> unit val inline_inner : ?index_variable:bool-> ?inline_pick_join:bool -> int -> prob_rep -> prob_rep val update_inners_in_body: ...
null
https://raw.githubusercontent.com/victornicolet/parsynt/d3f530923c0c75537b92c2930eb882921f38268c/src/singleloop/InnerFuncs.mli
ocaml
open Fn val verbose : bool ref val replace_by_join : prob_rep -> prob_rep list -> prob_rep val no_join_inlined_body : prob_rep -> fnExpr val reg_no_join_inlined_body : prob_rep -> fnExpr -> unit val inline_inner : ?index_variable:bool-> ?inline_pick_join:bool -> int -> prob_rep -> prob_rep val update_inners_in_body: ...
062f6cfdf6d97fabc9d30dfd0dc73dd0b5c498577f326acb84cd4c542e0a616b
PJK/haskell-pattern-matching
Main.hs
module Main where import Lib main :: IO () main = patterns
null
https://raw.githubusercontent.com/PJK/haskell-pattern-matching/7ef4a45731beba92ee01614ae563df65be36e8ba/app/Main.hs
haskell
module Main where import Lib main :: IO () main = patterns
e6a128486f4bdf3fa7f29d23ded5e2e10b56c7e618f60320d0cc615c0c66342a
phillord/tawny-tutorial
use_abc.clj
;; == Task {counter:task}: Importing other Ontologies ;; * Understand how to _use_ and _import_ another Tawny-OWL ontology ;; == Importing ;; * Many ontologies import from other ontologies ;; * Allows cross-linking, and reuse of work ;; * Tawny-OWL supports this * Involves two steps , * use * and * import * ;; if...
null
https://raw.githubusercontent.com/phillord/tawny-tutorial/2a3253fe8f4be595957388ca332aab37b8e167a0/src/tawny/tutorial/use_abc.clj
clojure
== Task {counter:task}: Importing other Ontologies * Understand how to _use_ and _import_ another Tawny-OWL ontology == Importing * Many ontologies import from other ontologies * Allows cross-linking, and reuse of work * Tawny-OWL supports this ifndef::backend-slidy[] [NOTE] ==== Ontology (RO) Why import? It...
* Involves two steps , * use * and * import * Many ontologies import from other ontologies e.g. GO and Relations (ns tawny.tutorial.use-abc (:use [tawny.owl]) (:require [tawny.tutorial.abc])) (defontology myABC) (owl-import tawny.tutorial.abc/abc) axioms from the other ` abc ` ontology (...
afc23957a8e11a77ac4956bfc1c47d1daf52cb70c7e140a28b9c60e9fa6ec0a2
hslua/hslua
Module.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # | Module : Test . Tasty . Lua . Module Copyright : © 2019 - 2023 : MIT Maintainer : Lua module , providing the functions necessary to write tasty tests in Lua scripts . Module : Test.Tasty.Lua.Module Copyright ...
null
https://raw.githubusercontent.com/hslua/hslua/ebbc64c5f2584ca2294ee8bbec8983ec71794000/tasty-lua/src/Test/Tasty/Lua/Module.hs
haskell
# LANGUAGE OverloadedStrings # | Tasty Lua script add `arbitrary` table
# LANGUAGE TemplateHaskell # | Module : Test . Tasty . Lua . Module Copyright : © 2019 - 2023 : MIT Maintainer : Lua module , providing the functions necessary to write tasty tests in Lua scripts . Module : Test.Tasty.Lua.Module Copyright : © 2019-2023 Albert Krewinkel Licens...
700bbedc2c1ba1664e2f032191ec00c34d4f7257030a347747b2d1089e1ea0b6
vsedach/Vacietis
test.lisp
;;; The contents of this file are released into the public domain. (in-package #:vacietis.test) (in-readtable vacietis) (def-suite vacietis-reader) (def-suite basic-tests) (def-suite program-tests) (defun run-tests () (format t "Running reader tests:~&") (run! 'vacietis-reader) (format t "Running basic tests:~...
null
https://raw.githubusercontent.com/vsedach/Vacietis/808914a75ea52539a124cc9df729a5296fb37ad4/test/test.lisp
lisp
The contents of this file are released into the public domain.
(in-package #:vacietis.test) (in-readtable vacietis) (def-suite vacietis-reader) (def-suite basic-tests) (def-suite program-tests) (defun run-tests () (format t "Running reader tests:~&") (run! 'vacietis-reader) (format t "Running basic tests:~&") (run! 'basic-tests) (format t "Running program tests:~&") ...
60ff633116aea4259f33d8c1584abe30ad1b9d47f2f96aa95d676d5af8cadc59
haskell/haskell-language-server
DestructAllGADTEvidence.expected.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE GADTs # # LANGUAGE KindSignatures # {-# LANGUAGE TypeOperators #-} import Data.Kind data Nat = Z | S Nat data HList (ls :: [Type]) where HNil :: HList '[] HCons :: t -> HList ts -> HList (t ': ts) data ElemAt (n :: Nat) t (ts :: [Type]) where AtZ :: ElemAt...
null
https://raw.githubusercontent.com/haskell/haskell-language-server/f3ad27ba1634871b2240b8cd7de9f31b91a2e502/plugins/hls-tactics-plugin/new/test/golden/DestructAllGADTEvidence.expected.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE TypeOperators #
# LANGUAGE GADTs # # LANGUAGE KindSignatures # import Data.Kind data Nat = Z | S Nat data HList (ls :: [Type]) where HNil :: HList '[] HCons :: t -> HList ts -> HList (t ': ts) data ElemAt (n :: Nat) t (ts :: [Type]) where AtZ :: ElemAt 'Z t (t ': ts) AtS :: ElemAt k t ts -> ElemAt ('S k) t (u ': ...
a5fd613f6f0e71416bc2a0336f269aa439baa00ed0e8d7f22e82086bcec14272
JacquesCarette/Drasil
SolidMechanics.hs
-- | Assigns symbols and units (quantities) to mechanics-related concepts. module Data.Drasil.Quantities.SolidMechanics where import Language.Drasil import Language.Drasil.ShortHands (cE, cS, cP, cK, lSigma, lNu) import Data.Drasil.Concepts.SolidMechanics as CSM (elastMod, mobShear, nrmStrss, poissnsR, shearRes, ...
null
https://raw.githubusercontent.com/JacquesCarette/Drasil/2178e68e4f62b3210eb2e3a19c2727a4ddf3912a/code/drasil-data/lib/Data/Drasil/Quantities/SolidMechanics.hs
haskell
| Assigns symbols and units (quantities) to mechanics-related concepts. * With Units * Without Units
module Data.Drasil.Quantities.SolidMechanics where import Language.Drasil import Language.Drasil.ShortHands (cE, cS, cP, cK, lSigma, lNu) import Data.Drasil.Concepts.SolidMechanics as CSM (elastMod, mobShear, nrmStrss, poissnsR, shearRes, stffness) import Data.Drasil.SI_Units (newton, pascal) import Data.Drasil.U...
f69085513ff0df9fcdd8c3b795fabc6c86157ea7b28095c96cd658b6ffd83d16
kindista/kindista
search.lisp
Copyright 2012 - 2015 CommonGoods Network , Inc. ;;; This file is part of Kindista . ;;; Kindista 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 you...
null
https://raw.githubusercontent.com/kindista/kindista/60da1325e628841721200aa00e4de5f9687c0adb/src/features/search.lisp
lisp
(at your option) any later version. without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. replace non-words with spaces split on spaces get all requests within distance for each stem get matching requests retur...
Copyright 2012 - 2015 CommonGoods Network , Inc. This file is part of Kindista . Kindista 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 Kindista is distr...
a0822e61bb5c022c3479a4a62d4dc48f06ec6b2ab52092a9af965333eb3057cc
ezyang/reflex-backpack
Base.hs
-- | This module provides 'RequesterT', the standard implementation of -- 'Requester'. # LANGUAGE CPP # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE Rank2Types #-} # LANGUAGE FlexibleContexts # # LANGUAGE Sc...
null
https://raw.githubusercontent.com/ezyang/reflex-backpack/247898fde872d8909392ebe2539f4623c7449067/host/Reflex/Requester/Base.hs
haskell
| This module provides 'RequesterT', the standard implementation of 'Requester'. # LANGUAGE Rank2Types # # OPTIONS_GHC -fplugin=Reflex.Optimizer # | A basic implementation of 'Requester'. | Run a 'RequesterT' action. The resulting 'Event' will fire whenever requests are made, and responses should be provided in t...
# LANGUAGE CPP # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGUAGE StandaloneDeriving # #if...
2c2cad78b04f72259b976c6c92abdd203ce7b7bdef68b14eaf77644fb35e66dc
SecPriv/webspec
wpt.ml
(********************************************************************************) Copyright ( c ) 2022 (* *) (* Permission is hereby granted, free of charge, to any person obtaining a *) (* copy of this software and associated doc...
null
https://raw.githubusercontent.com/SecPriv/webspec/b7ff6b714b3a4b572c108cc3136506da3d263eff/verifier/src/wpt.ml
ocaml
****************************************************************************** Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), th...
Copyright ( c ) 2022 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 , WHETHER IN AN ACTION OF CONTRACT...
9a3477641644aea6275748dd736ac0304b71888d56f38887bb114d3f50071b93
DavidAlphaFox/RabbitMQ
rabbit_guid.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/src/rabbit_guid.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. ----------------...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module...
1f6cfb59e83b6b026c795a4260f5a388ab7fa6909e46deb5f9c33df74f624549
dmvianna/haskellbook
Ch21-httpStuff.hs
module HttpStuff where import Data.ByteString.Lazy hiding (map, head) import Network.Wreq urls :: [String] urls = [ "" , "" ] mappingGet :: [IO (Response ByteString)] mappingGet = map get urls traversedUrls :: IO [Response ByteString] traversedUrls = traverse get urls
null
https://raw.githubusercontent.com/dmvianna/haskellbook/b1fdce66283ccf3e740db0bb1ad9730a7669d1fc/src/Ch21-httpStuff.hs
haskell
module HttpStuff where import Data.ByteString.Lazy hiding (map, head) import Network.Wreq urls :: [String] urls = [ "" , "" ] mappingGet :: [IO (Response ByteString)] mappingGet = map get urls traversedUrls :: IO [Response ByteString] traversedUrls = traverse get urls
e8b5ad2b8c2841f785969159cc38579416f12c0a4f6e157bac5b8cf7f228c33e
Apress/common-lisp-recipes
foo.lisp
(defun test () (print (load-time-value (get-internal-real-time))))
null
https://raw.githubusercontent.com/Apress/common-lisp-recipes/211a8b6eabc48ac906010e8c5a185f03504b3867/code/chapter-10/foo.lisp
lisp
(defun test () (print (load-time-value (get-internal-real-time))))
e7f6f9d97277adf5b8b611ffd92c6ce9712d4d9affd5240235cda4959b6d5773
luizalbertocviana/haskell-experiments
List.hs
module List where import Prelude ( Eq, Num, Int, Char, Bool(True, False), (+), (-), (*), (<=), (==), (/=), error, Functor(fmap), Applicative(pure, (<*>)), seq) import Control.Applicative (Alternative(empty, (<|>))) import Control.Parallel import Bool import Functions import Maybe -- Aula 1 length :...
null
https://raw.githubusercontent.com/luizalbertocviana/haskell-experiments/eee61245316e3d78819f88b0e60e0c3a3374483e/List.hs
haskell
Aula 1 Aula 2 Aula 3
module List where import Prelude ( Eq, Num, Int, Char, Bool(True, False), (+), (-), (*), (<=), (==), (/=), error, Functor(fmap), Applicative(pure, (<*>)), seq) import Control.Applicative (Alternative(empty, (<|>))) import Control.Parallel import Bool import Functions import Maybe length :: [a] -> I...
967faf83ec6387ab886e7ce2db835cf6b3dc25be27e2583b1d1d131c52217c7b
purerl/purerl
REPL.hs
# LANGUAGE DataKinds # {-# LANGUAGE DoAndIfThenElse #-} {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # module Command.REPL (command) where import Prelude () import Prelude.Compat import ...
null
https://raw.githubusercontent.com/purerl/purerl/c18ab88c4884634329b2e4eda11f2613e3b88f31/app/Command/REPL.hs
haskell
# LANGUAGE DoAndIfThenElse # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # | Command line options | Parses the input and returns either a command, or an error as a 'String'. Ctrl-D when input is empty | Get command line options and drop into the REPL
# LANGUAGE DataKinds # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # module Command.REPL (command) where import Prelude () import Prelude.Compat import Control.Applicative (many) import Control.Monad import Control.Mo...
1501b0ecc62d7f2483bae8c6e1d2889ac1ef50861fecd74b874807eeb53d121e
ocaml/dune
fpath.mli
(** Functions on paths that are represented as strings *) type mkdir_result = | Already_exists (** The directory already exists. No action was taken. *) | Created (** The directory was created. *) | Missing_parent_directory (** No parent directory, use [mkdir_p] if you want to create it too. *) val mkdi...
null
https://raw.githubusercontent.com/ocaml/dune/714626f4d408e5c71c24ba91d0d520588702ec52/otherlibs/stdune/src/fpath.mli
ocaml
* Functions on paths that are represented as strings * The directory already exists. No action was taken. * The directory was created. * No parent directory, use [mkdir_p] if you want to create it too. * The directory already exists. No action was taken. * The directory was created. * [follow_symlinks path] retur...
type mkdir_result = | Missing_parent_directory val mkdir : ?perms:int -> string -> mkdir_result type mkdir_p_result = val mkdir_p : ?perms:int -> string -> mkdir_p_result type follow_symlink_error = | Not_a_symlink | Max_depth_exceeded | Unix_error of Dune_filesystem_stubs.Unix_error.Detailed.t val follow...
b2d8d31f27e042c51004fddeee6dc4d21e0dff72aeae18ea33db849b3cd76410
johnwhitington/ocamli
exercise04.ml
type rect = Square of int | Rectangle of int * int let rotate r = match r with Rectangle (w, h) -> if w > h then Rectangle (h, w) else r | Square _ -> r let width_of_rect r = match r with Square s -> s | Rectangle (w, _) -> w let rect_compare a b = width_of_rect a < widt...
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/OCaml%20from%20the%20Very%20Beginning/Chapter%2010/exercise04.ml
ocaml
type rect = Square of int | Rectangle of int * int let rotate r = match r with Rectangle (w, h) -> if w > h then Rectangle (h, w) else r | Square _ -> r let width_of_rect r = match r with Square s -> s | Rectangle (w, _) -> w let rect_compare a b = width_of_rect a < widt...
b102c99b02bda98332610dac95dab868ab485b6b32bb43b3153c89e84b8e4313
facebookarchive/duckling_old
numbers.clj
( ; Context map {} "0" "không" (number 0) "1" "một" (number 1) "2" "hai" (number 2) "33" "ba mươi ba" (number 33) "14" "mười bốn" (number 14) "16" "mười sáu" (number 16) "17" "mười bảy" (number 17) "18" "mười tám" (number 18) "1.1" "1.10" "01.10" (num...
null
https://raw.githubusercontent.com/facebookarchive/duckling_old/bf5bb9758c36313b56e136a28ba401696eeff10b/resources/languages/vi/corpus/numbers.clj
clojure
Context map
( {} "0" "không" (number 0) "1" "một" (number 1) "2" "hai" (number 2) "33" "ba mươi ba" (number 33) "14" "mười bốn" (number 14) "16" "mười sáu" (number 16) "17" "mười bảy" (number 17) "18" "mười tám" (number 18) "1.1" "1.10" "01.10" (number 1.1) "0.7...
34aea2952ceec4a31b97bd8b220145d4d92cd25da02c050112e8631b9809cdab
fossas/fossa-cli
PackageReferenceSpec.hs
module NuGet.PackageReferenceSpec ( spec, ) where import Data.Map.Strict qualified as Map import Data.String.Conversion (toString) import Data.Text.IO qualified as TIO import DepTypes import GraphUtil import Parse.XML import Strategy.NuGet.PackageReference import Test.Hspec dependencyOne :: Dependency dependencyOne...
null
https://raw.githubusercontent.com/fossas/fossa-cli/efc29b4f9c874e338f0b5a7d1c5b13cb9543156f/test/NuGet/PackageReferenceSpec.hs
haskell
module NuGet.PackageReferenceSpec ( spec, ) where import Data.Map.Strict qualified as Map import Data.String.Conversion (toString) import Data.Text.IO qualified as TIO import DepTypes import GraphUtil import Parse.XML import Strategy.NuGet.PackageReference import Test.Hspec dependencyOne :: Dependency dependencyOne...
ad834e7e6689b509df32c86ee913c5f3aac19ff1d4fcccfc82792770f5174984
clojure-interop/java-jdk
MetalInternalFrameTitlePane.clj
(ns javax.swing.plaf.metal.MetalInternalFrameTitlePane "Class that manages a JLF title bar" (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.metal MetalInternalFrameTitlePane])) (defn ->metal-internal-frame-title-pane "Constructor. f - `javax.swing.JInternalFrame`" (^MetalIntern...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/metal/MetalInternalFrameTitlePane.clj
clojure
(ns javax.swing.plaf.metal.MetalInternalFrameTitlePane "Class that manages a JLF title bar" (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.metal MetalInternalFrameTitlePane])) (defn ->metal-internal-frame-title-pane "Constructor. f - `javax.swing.JInternalFrame`" (^MetalIntern...
e7378c8fe65a12e7d31a58c146cb1253fc4fe6a5b7db0b7e1aefb141f14d27c7
AshleyYakeley/Truth
Libs.hs
module Pinafore.Libs where import Pinafore import Pinafore.Language.Library.GNOME import Pinafore.Language.Library.Media import Shapes import System.Directory import System.Environment.XDG.BaseDir getPinaforeDir :: MonadIO m => Maybe FilePath -> m FilePath getPinaforeDir mdirpath = do pinaforedir <- case ...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/9ec79d8f4f3f2925a1c766a5f3f2478be9dcefbe/Pinafore/pinafore-app/lib/Pinafore/Libs.hs
haskell
module Pinafore.Libs where import Pinafore import Pinafore.Language.Library.GNOME import Pinafore.Language.Library.Media import Shapes import System.Directory import System.Environment.XDG.BaseDir getPinaforeDir :: MonadIO m => Maybe FilePath -> m FilePath getPinaforeDir mdirpath = do pinaforedir <- case ...
a38dd033f7df7a735b6f6d83577f9127c25e0740ef6c87e36a65a4d3034d714a
dsorokin/aivika
WorkStationsInSeries.hs
-- Example: Work Stations in Series -- This is a model of two work stations connected in a series and separated by finite queues . -- It is described in different sources [ 1 , 2 ] . So , this is chapter 7 of [ 2 ] and section 5.14 of [ 1 ] . -- The maintenance facility of a large manufacturer performs two opera...
null
https://raw.githubusercontent.com/dsorokin/aivika/7a14f460ab114b0f8cdfcd05d5cc889fdc2db0a4/examples/WorkStationsInSeries.hs
haskell
Example: Work Stations in Series Current company policy is to subcontract the maintenance of a unit if it cannot gain access to the in-house facility. Historical data indicates that the time interval between requests for maintenance station cannot server other units. | The simulation specs. the mean dela...
This is a model of two work stations connected in a series and separated by finite queues . It is described in different sources [ 1 , 2 ] . So , this is chapter 7 of [ 2 ] and section 5.14 of [ 1 ] . The maintenance facility of a large manufacturer performs two operations . These operations must be performed ...
a2472e7c586f30324d4e2dbb6037bef6b8f6103b0de2f0516d74b706f638c978
igorhvr/bedlam
sc4sc3.scm
;"sc4sc3.scm" Implementation of rev4 procedures for rev3. Copyright ( C ) 1991 ; ;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 made of this sof...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/iasylum/slib/3b2/sc4sc3.scm
scheme
"sc4sc3.scm" Implementation of rev4 procedures for rev3. 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 under n...
Copyright ( C ) 1991 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 APPEND , + , * , - , / , = , < , > , < = , > = , MAP , and FOR - EACH need to (define ...
54acfd3698ac8169f114993d8218cbf3ab720ef6b82f8344efc06106c6a38318
tari3x/csec-modex
check.ml
* * Copyright ( c ) 2001 - 2002 , * < > * < > * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * 1 . Redistribution...
null
https://raw.githubusercontent.com/tari3x/csec-modex/5ab2aa18ef308b4d18ac479e5ab14476328a6a50/deps/cil-1.7.3/src/check.ml
ocaml
A few parameters to customize the checking Do not check that the global ids have the proper * hash value Ignore the specified instructions Attributes must be sorted Attribute of a local variable Attribute of a global variable Attribute of a type Keep track of defined types Keep...
* * Copyright ( c ) 2001 - 2002 , * < > * < > * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * 1 . Redistribution...
da2b8f74161051dd0308db2fc355cea74551d915bf277c1032881e76fb219fd1
CloudI/CloudI
bear.erl
%%% Copyright 2011 , Boundary %%% 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 dist...
null
https://raw.githubusercontent.com/CloudI/CloudI/3e45031c7ee3e974ead2612ea7dd06c9edf973c9/src/external/cloudi_x_bear/src/bear.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 or implied. See the License for the specific language governing per...
Copyright 2011 , Boundary Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > -module(bear). -export([ get_statistics/1, get_statistics/2, get_statistics_subset/2, k...
be149583debc9711da23bffa311ec35a7dd1e0d9b00cce5903020508afb680f1
psandahl/hats
Nats.hs
-- | Module : Network . Copyright : ( c ) 2016 License : MIT Maintainer : < > -- Stability: experimental -- Portability: portable -- A client for the messaging system . -- See <> for general information and documentation. module Network.Nats ( -- * Limitations in implementati...
null
https://raw.githubusercontent.com/psandahl/hats/2503edefbda64209d20509b075b3ab90cac39b8d/src/Network/Nats.hs
haskell
| Stability: experimental Portability: portable See <> for general information and documentation. * Limitations in implementation $limitations * Simple messaging example. * Ascyncronous message handling. $async_handling * Convenience API for the request pattern. $request_pattern * Topic structure. $topi...
Module : Network . Copyright : ( c ) 2016 License : MIT Maintainer : < > A client for the messaging system . module Network.Nats ( $ simple_messaging Nats , Msg , Sid , Payload , Topic , QueueGroup , MsgQueue , ManagerSettings (..) , Nat...
272921c7c781cfe2f8af97d6639a4fdc43038cba5a57ddcfd89f29b5b4d6b4fe
snapframework/xmlhtml
XmlHtml.hs
------------------------------------------------------------------------------ | Parsers and renderers for XML and HTML 5 . Although the formats are -- treated differently, the data types used by each are the same, which -- makes it easy to write code that works with the element structure of either XML or H...
null
https://raw.githubusercontent.com/snapframework/xmlhtml/54463f1691c7b31cc3c4c336a6fe328b1f0ebb95/src/Text/XmlHtml.hs
haskell
---------------------------------------------------------------------------- treated differently, the data types used by each are the same, which makes it easy to write code that works with the element structure of Limitations: stored as blocks of text, with minimal scanning done to match quotes an...
| Parsers and renderers for XML and HTML 5 . Although the formats are either XML or HTML 5 documents . * The XML parser does not parse internal DOCTYPE subsets . They are just * Since DTDs are not parsed , the XML parser fails on entity references , parsing XML documents with entity references o...
d7c84c75137d278d96d89e17efdf9718a58e809f2d70b39c605fdd8525277c09
fmi-lab/fp-elective-2017
even-odd.scm
(require rackunit rackunit/text-ui) Изрично връщаме # t или # f (define (even? x) (if (= 0 (remainder x 2)) #t #f)) Просто връщаме стойността на логическия оператор , да е # t или # f (define (odd? x) (not (even? x))) (define even-odd-tests (test-suite "Tests for even and odd" (check-t...
null
https://raw.githubusercontent.com/fmi-lab/fp-elective-2017/e88d5c0319b6d03c0ecd8a12a2856fb1bf5dcbf3/exercises/01/even-odd.scm
scheme
(require rackunit rackunit/text-ui) Изрично връщаме # t или # f (define (even? x) (if (= 0 (remainder x 2)) #t #f)) Просто връщаме стойността на логическия оператор , да е # t или # f (define (odd? x) (not (even? x))) (define even-odd-tests (test-suite "Tests for even and odd" (check-t...
e6142aaf29ffc1daacd8fa7e0ce4ed6f0f64b14bfbc8f3ba70bfaaef648e6ff2
tfausak/factory
JavaScript.hs
{- | JavaScript code for consuming the API. -} module Factory.JavaScript where import qualified Factory.API as API import qualified Servant.JQuery as Servant | Generate some JavaScript that will use jQuery to talk to the API . Generate some JavaScript that will use jQuery to talk to the API. -} java...
null
https://raw.githubusercontent.com/tfausak/factory/27025465dc0045d43d8db1769bcc665fb55ee62e/library/Factory/JavaScript.hs
haskell
| JavaScript code for consuming the API.
module Factory.JavaScript where import qualified Factory.API as API import qualified Servant.JQuery as Servant | Generate some JavaScript that will use jQuery to talk to the API . Generate some JavaScript that will use jQuery to talk to the API. -} javaScript :: String javaScript = Servant.jsForAPI API....
51e2aa4f43b89e43f10c345a1694cf0c4bd32aa181ee27ab6fe00d462ea7250e
typedb-osi/typedb-client-haskell
Types.hs
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE UndecidableInstances # {-# LANGUAGE DeriveAnyClass #-} module Types where import Network.GRPC.HighLevel.Generated import Data.Text import Control.Monad.Trans.Reader import Control.Monad.IO.Class import Control.Monad.IO.Unlift import Cont...
null
https://raw.githubusercontent.com/typedb-osi/typedb-client-haskell/73d5de94c90356251b1d37d6d910079d0e0824aa/lib/Types.hs
haskell
# LANGUAGE DeriveAnyClass #
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE UndecidableInstances # module Types where import Network.GRPC.HighLevel.Generated import Data.Text import Control.Monad.Trans.Reader import Control.Monad.IO.Class import Control.Monad.IO.Unlift import Control.Monad.Conc.Class hiding (thr...
ab0bdaf3a48ac3d3b6a6d4d646626fa63f646c02f62fbcedc8e8ee95bdd550e2
nuprl/gradual-typing-performance
markdown-render.rkt
#lang typed/racket/base (require typed/scribble/core "base-render.rkt" typed/racket/class racket/list racket/string racket/match) (require/typed scribble/text/wrap [wrap-line (String Integer -> (Listof String))]) (require/typed "private/render-utils.rkt" [part-style? (part Any -> (Option (Listof Any))...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/scribble-lib/scribble/markdown-render.rkt
racket
method of render% class, but overridden in render-mixin so it is required Set table-ticks-depth prior to render-block calls something like @racket[(x y)] being treated as multiple more-correct to handle them at that level, I don't easily see how. As a result I'm handling it after-the-fact, at the text/Markdown s...
#lang typed/racket/base (require typed/scribble/core "base-render.rkt" typed/racket/class racket/list racket/string racket/match) (require/typed scribble/text/wrap [wrap-line (String Integer -> (Listof String))]) (require/typed "private/render-utils.rkt" [part-style? (part Any -> (Option (Listof Any))...
4eb80e831527edbb9496641feb1140735fa47498c1177ec247c4bac5f028f65b
glguy/advent2015
Day6.hs
module Main where import Data.Array.ST import Data.Foldable import Control.Monad.ST data Op = On | Off | Toggle type Point = (Int,Int) data Command = Command !Op Point Point main :: IO () main = do cmds <- loadInput print (runST (part1 cmds)) print (runST (part2 cmds)) part1 :: [Command] -> ST s Int par...
null
https://raw.githubusercontent.com/glguy/advent2015/e59b93c41363be85eb7f11396db5c95e79e485ad/Day6.hs
haskell
module Main where import Data.Array.ST import Data.Foldable import Control.Monad.ST data Op = On | Off | Toggle type Point = (Int,Int) data Command = Command !Op Point Point main :: IO () main = do cmds <- loadInput print (runST (part1 cmds)) print (runST (part2 cmds)) part1 :: [Command] -> ST s Int par...
00910e081789b37cc5490bcef1557164d6d441d13ef125a86e66be75362e0929
rayiner/amd64-asm
utilities.lisp
; utilities.lisp ; Utility routines used by assembler. (in-package "AMD64-ASM") (defun prefixsym (pfx s1 &optional package) (let ((str (concatenate 'string pfx (symbol-name s1)))) (if package (intern str package) (intern str)))) (defun catsym (s1 s2) (intern (concatenate 'string (symbol-name s1) (symbol-na...
null
https://raw.githubusercontent.com/rayiner/amd64-asm/27ac3e683557d691cd68472c94d110f32334f61a/utilities.lisp
lisp
utilities.lisp Utility routines used by assembler.
(in-package "AMD64-ASM") (defun prefixsym (pfx s1 &optional package) (let ((str (concatenate 'string pfx (symbol-name s1)))) (if package (intern str package) (intern str)))) (defun catsym (s1 s2) (intern (concatenate 'string (symbol-name s1) (symbol-name s2)))) (defun catsym- (s1 s2) (intern (concatenat...
878d29c6ce8f8d48a6e3199aed32b8fe3dde843938cc845e1acea0e5c5fe5b51
dongcarl/guix
texlive.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2017 < > ;;; ;;; 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 ; either version 3 of the Lice...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/guix/build-system/texlive.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 © 2017 < > 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 (guix build-system texlive) #:use-module (guix store) #:use-module (guix utils) #:use-module ...
7f8663386d755c6b3f2ced468637c1737cfc3dfd1d0b26f2259a1e059adbb2e0
janestreet/universe
logging.ml
open! Core open! Expect_test_helpers_core open Import let%expect_test _ = let log sexp = Printf.printf !"%{sexp:Sexp.t}\n%!" (cleanup_sexp sexp) in Process.Logged.eval ~context ~log (P.with_temp_dir ~prefix:"shexp-debugging" ~suffix:tmpdir_suffix (fun tmpdir -> P.chdir tmpdir ...
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/shexp/process-lib/test/logging.ml
ocaml
open! Core open! Expect_test_helpers_core open Import let%expect_test _ = let log sexp = Printf.printf !"%{sexp:Sexp.t}\n%!" (cleanup_sexp sexp) in Process.Logged.eval ~context ~log (P.with_temp_dir ~prefix:"shexp-debugging" ~suffix:tmpdir_suffix (fun tmpdir -> P.chdir tmpdir ...
6875577cec48af22679ba704516e99faa181175265c932a05ae115225d22865a
ocaml-ppx/ocamlformat
emitter.mli
open MenhirSdk.Cmly_api open Attributes open Synthesis open Recovery_intf module Make (G : GRAMMAR) (A : ATTRIBUTES with module G := G) (S : SYNTHESIZER with module G := G) (R : RECOVERY with module G := G) : sig val emit : Format.formatter -> unit end
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/9324ea439a77b4f3a31e9302b97ce1812cf8f17d/vendor/parser-recovery/menhir-recover/emitter.mli
ocaml
open MenhirSdk.Cmly_api open Attributes open Synthesis open Recovery_intf module Make (G : GRAMMAR) (A : ATTRIBUTES with module G := G) (S : SYNTHESIZER with module G := G) (R : RECOVERY with module G := G) : sig val emit : Format.formatter -> unit end
7037b72412067e63ce6e5f205a01c0f54c5d06ff313b478019719c50e126e798
tezos/tezos-mirror
tezos_regression.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 - 2022 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/8186743321da30b4d69cec66e0e1212ffb4589f1/tezt/lib_tezos/tezos_regression.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 - 2022 Nomadic Labs < > 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 , WHETHER IN ...
f94cd8a5477ccc858e40b93623754ebdd48ebd634c2fdca088a26711575fced4
soegaard/remacs
search.rkt
#lang racket/base (provide looking-at) (require "buffer.rkt" "mark.rkt" "parameters.rkt" "point.rkt" "representation.rkt" "text.rkt") (define (rest-of-line) (define m (get-point)) (define p1 (mark-position m)) (define p2 (line-end-position m)) (subtext->string (bu...
null
https://raw.githubusercontent.com/soegaard/remacs/8681b3acfe93335e2bc2133c6f144af9e0a1289e/search.rkt
racket
#lang racket/base (provide looking-at) (require "buffer.rkt" "mark.rkt" "parameters.rkt" "point.rkt" "representation.rkt" "text.rkt") (define (rest-of-line) (define m (get-point)) (define p1 (mark-position m)) (define p2 (line-end-position m)) (subtext->string (bu...
780b0c9a3e3e1ff6cc85919edbf1724354ba3a0d053f81a71c4d032b13363acb
parsonsmatt/ghc-cache-buster
App.hs
# LANGUAGE QuasiQuotes , TemplateHaskell # module GCB.App where import GCB.Prelude import GCB.Types app :: IO () app = do putStrLn "Hello, World!" let x = [compileQuuz|asdf|] foo = mkFoo "asdf" fooExplicit = mkFooExplicit "asdf" putStrLn "Goodbye, World!" putStrLn "uh what" blargh
null
https://raw.githubusercontent.com/parsonsmatt/ghc-cache-buster/1ee284c4ce1be7818ccec2eea7c12b638c477723/src/GCB/App.hs
haskell
# LANGUAGE QuasiQuotes , TemplateHaskell # module GCB.App where import GCB.Prelude import GCB.Types app :: IO () app = do putStrLn "Hello, World!" let x = [compileQuuz|asdf|] foo = mkFoo "asdf" fooExplicit = mkFooExplicit "asdf" putStrLn "Goodbye, World!" putStrLn "uh what" blargh
874704649de21e495400f739a5b386a8c62be7884eac45b06665b1839700ed19
tomprimozic/type-systems
test_lexer.ml
open OUnit2 open Parser type result = | OK of token list | Fail let test_cases = [ ("", OK []); (" \t\n\n\t\r\n\r", OK []); ("())in,let_ 1Ma->:===++-*>=>><<=!==!=5%/", OK [LPAREN; RPAREN; RPAREN; IN; COMMA; IDENT "let_"; INT 1; IDENT "Ma"; ARROW; COLON; EQ; EQUALS; PLUS; PLUS; MINUS; STAR; GE; GT; GT; LT;...
null
https://raw.githubusercontent.com/tomprimozic/type-systems/4403586a897ee94cb8f0de039aeee8ef1ecef968/refined_types/test_lexer.ml
ocaml
open OUnit2 open Parser type result = | OK of token list | Fail let test_cases = [ ("", OK []); (" \t\n\n\t\r\n\r", OK []); ("())in,let_ 1Ma->:===++-*>=>><<=!==!=5%/", OK [LPAREN; RPAREN; RPAREN; IN; COMMA; IDENT "let_"; INT 1; IDENT "Ma"; ARROW; COLON; EQ; EQUALS; PLUS; PLUS; MINUS; STAR; GE; GT; GT; LT;...
69c8e4ac5a446a40ad984b2f17ff597fabb43eaff5c32f6fc6ef3be48645ae5a
jaspervdj/advent-of-code
16.hs
module Main where import qualified AdventOfCode.NanoParser as NP import qualified Data.Map as Map import qualified System.IO as IO type Analysis = Map.Map String Int type Sue = (Int, Analysis) parseSue :: NP.Parser Char Sue parseSue = (,) <$> (NP.string "Sue" *> NP.spaces *> NP.deci...
null
https://raw.githubusercontent.com/jaspervdj/advent-of-code/bdc9628d1495d4e7fdbd9cea2739b929f733e751/2015/16.hs
haskell
module Main where import qualified AdventOfCode.NanoParser as NP import qualified Data.Map as Map import qualified System.IO as IO type Analysis = Map.Map String Int type Sue = (Int, Analysis) parseSue :: NP.Parser Char Sue parseSue = (,) <$> (NP.string "Sue" *> NP.spaces *> NP.deci...
71c87d5e7162f8ddbbff095aa6d01e0f2730f37adede930fe9116ca5008e7400
flexsurfer/rn-shadow-steroid
list.cljs
(ns steroid.rn.components.list (:require [reagent.core :as reagent] [steroid.rn.components.basic :as basic] ["react-native" :as rn])) (defn- wrap-render-fn [f render-data] (fn [^js data] (reagent/as-element [f (.-item data) (.-index data) (.-separators data) render-data]))) (defn- wrap...
null
https://raw.githubusercontent.com/flexsurfer/rn-shadow-steroid/ed014145327ce9b5063f38bdf048da55ef7ba4ff/src/steroid/rn/components/list.cljs
clojure
FLATLIST SECTION LIST
(ns steroid.rn.components.list (:require [reagent.core :as reagent] [steroid.rn.components.basic :as basic] ["react-native" :as rn])) (defn- wrap-render-fn [f render-data] (fn [^js data] (reagent/as-element [f (.-item data) (.-index data) (.-separators data) render-data]))) (defn- wrap...
f1ff4b612e97848512feeca49598b972e527f18317b96506a019e70b0f027e30
clj-commons/seesaw
cursor.clj
Copyright ( c ) , 2011 . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this ; distribution. ; By using this software in any fashion, you are agreeing to be b...
null
https://raw.githubusercontent.com/clj-commons/seesaw/4ca89d0dcdf0557d99d5fa84202b7cc6e2e92263/src/seesaw/cursor.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remo...
Copyright ( c ) , 2011 . All rights reserved . (ns ^{:doc "Functions for creating Swing cursors." :author "Dave Ray"} seesaw.cursor (:use [seesaw.util :only [constant-map illegal-argument]]) (:import [java.awt Cursor Toolkit])) (def ^{:private true} built-in-cursor-map (constant-map Cursor {:suffi...
d7bbc224d9b4185cd480126118ba9408447c0e15a81080c2ed375b75694e9574
noinia/hgeometry
Internal.hs
# LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # # LANGUAGE InstanceSigs # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE AllowAmbiguousTypes # -------------------------------------------------------------------------------- -- | -- Module : Geometry.Box.Internal Copyright : ( C ) -...
null
https://raw.githubusercontent.com/noinia/hgeometry/187402ff1fbe4988cac2b27700ba8887cc136a22/hgeometry/src/Geometry/Box/Internal.hs
haskell
# LANGUAGE ScopedTypeVariables # ------------------------------------------------------------------------------ | Module : Geometry.Box.Internal License : see the LICENSE file ------------------------------------------------------------------------------ ------------------------------------------------...
# LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # # LANGUAGE InstanceSigs # # LANGUAGE AllowAmbiguousTypes # Copyright : ( C ) Maintainer : Orthogonal \(d\)-dimensiontal boxes ( e.g. rectangles ) module Geometry.Box.Internal where import Control.DeepSeq import ...
21f98475d7b298404c0a4465ba736cdd603fd346a27b5c45bb65047ce2aea99b
HealthSamurai/stresty
textarea.cljc
(ns anti.textarea (:require [anti.util :refer [block parse-int parse-float]] [anti.spin :refer [spin]] [stylo.core :refer [c c?]] [re-frame.core :as rf] [anti.util :refer [class-names]] [clojure.string :as str] [zf.core :as zf])) (def base-class (c :inline-flex :w-full [:items-center...
null
https://raw.githubusercontent.com/HealthSamurai/stresty/130cedde6bf53e07fe25a6b0b13b8bf70846f15a/src-ui/anti/textarea.cljc
clojure
(ns anti.textarea (:require [anti.util :refer [block parse-int parse-float]] [anti.spin :refer [spin]] [stylo.core :refer [c c?]] [re-frame.core :as rf] [anti.util :refer [class-names]] [clojure.string :as str] [zf.core :as zf])) (def base-class (c :inline-flex :w-full [:items-center...
47adaeab2e820106377337ec2074da161d18e86f9032f57d13116bc60ff4bc3c
seereason/logic-classes
FirstOrderPublic.hs
# LANGUAGE CPP # {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE EmptyDataDecls #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # ...
null
https://raw.githubusercontent.com/seereason/logic-classes/819059218027c3ee77bd2ef3a873fcca230d54b4/Data/Logic/Types/FirstOrderPublic.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE EmptyDataDecls # # LANGUAGE RankNTypes # # OPTIONS -Wwarn -fno-warn-orphans # after conversion to normal form. This helps us notice that formula which only differ in ways that preserve identity, e.g. swapped arguments to a commutative operator.
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE ...
f9bb4d46b272d92cc4d77b7ef3a949c5c01e1efb31e8b683c485be6abf892a6a
cwmaguire/zombunity-mud
db_test.clj
(ns zombunity.db.db-test (:use clojure.test) (:require [zombunity.data :as data] [zombunity.db :as db])) (defn rand-str [n] (let [chars (vec (map char (concat (range 48 58) (range 65 91) (range 97 123))))] (apply str (take n (repeatedly #(get chars (int (* (rand) (count chars))))))))) (deftest...
null
https://raw.githubusercontent.com/cwmaguire/zombunity-mud/ec14406f4addac9b9a0742d3043a6e7bccef1fa6/zombunity_server/test/zombunity/db/db_test.clj
clojure
(ns zombunity.db.db-test (:use clojure.test) (:require [zombunity.data :as data] [zombunity.db :as db])) (defn rand-str [n] (let [chars (vec (map char (concat (range 48 58) (range 65 91) (range 97 123))))] (apply str (take n (repeatedly #(get chars (int (* (rand) (count chars))))))))) (deftest...
0c6a79267e91eafba6a21d9031a86dfc049db0b4a0867b9edf949b91dcca8e05
johnmn3/cljs-thread
spawn.cljs
(ns cljs-thread.spawn (:require-macros [cljs-thread.spawn]) (:require [cljs-thread.util :as u] [cljs-thread.state :as s] [cljs-thread.env :as e] [cljs-thread.msg :as m] [cljs-thread.sync :as sync])) (defn after-sw-registration [p afn] (-> p (.then #(if (or (.-active %) (.-installing %)) ...
null
https://raw.githubusercontent.com/johnmn3/cljs-thread/e98edc26ae71d1e17cea96a1f0e978df41b34d3f/src/cljs_thread/spawn.cljs
clojure
(ns cljs-thread.spawn (:require-macros [cljs-thread.spawn]) (:require [cljs-thread.util :as u] [cljs-thread.state :as s] [cljs-thread.env :as e] [cljs-thread.msg :as m] [cljs-thread.sync :as sync])) (defn after-sw-registration [p afn] (-> p (.then #(if (or (.-active %) (.-installing %)) ...
f47bf32f8ee537fc7f936033e1c5d5f1451aeb79f10958e8b894822dc919144b
marick/Midje
ordered_set.clj
(ns midje.util.ordered-set "This code was copied from an earlier version of the ordered library, ``, because of a version conflict. That library is covered by the Eclipse Public License, V1.0, which you can find in Midje's root directory." (:require [clojure.string :as s] [midje.util.ordered-commo...
null
https://raw.githubusercontent.com/marick/Midje/2b9bcb117442d3bd2d16446b47540888d683c717/src/midje/util/ordered_set.clj
clojure
(ns midje.util.ordered-set "This code was copied from an earlier version of the ordered library, ``, because of a version conflict. That library is covered by the Eclipse Public License, V1.0, which you can find in Midje's root directory." (:require [clojure.string :as s] [midje.util.ordered-commo...
a295523f5ba61cbae3f7991b0be420072a8addf7ab0729e8551c0b7e4359c9b1
igorhvr/bedlam
let-optionals.scm
;; (define-syntax let-optionals* ;; (syntax-rules () ;; ((_ opt-ls () body ...) ;; (let () body ...)) ;; ((_ (expr ...) vars body ...) ;; (let ((tmp (expr ...))) ;; (let-optionals* tmp vars body ...))) ;; ((_ tmp ((var default) . rest) body ...) ;; (let ((var (if (pair? tmp) (car tm...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/iasylum/fmt/fmt-0.8.1/let-optionals.scm
scheme
(define-syntax let-optionals* (syntax-rules () ((_ opt-ls () body ...) (let () body ...)) ((_ (expr ...) vars body ...) (let ((tmp (expr ...))) (let-optionals* tmp vars body ...))) ((_ tmp ((var default) . rest) body ...) (let ((var (if (pair? tmp) (car tmp) default)) (...
( ( if ( pair ? tmp ) ( ) ' ( ) ) ) ) ( let - optionals * rest body ... ) ) ) (define-syntax let-optionals* (syntax-rules () ((_ opt-ls () . body) (let () . body)) ((_ (op . args) vars . body) (let ((tmp (op . args))) (let-optionals* tmp vars . body))) ((_ tmp ...
defa460d1616d824c8ad078e9bc2f863ac4c8d0eceef0f352ce95fb2feaea7db
coccinelle/coccinelle
ctl_engine.ml
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/e93f5513629f5e98bb41464d613f1aaaed565d56/ctl/ctl_engine.ml
ocaml
external c_counter : unit -> int = "c_counter" For complement, do something special for the case where the environment and witnesses are empty "Double negate" the arguments of the path operators Only do pre_forall/pre_exists on new elements in fixpoint iteration Filter the result of the label function to drop en...
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
df7331b4e4ac499a35d448169637523328aa93a2265a730bbed68eef4f68490b
jkoppel/ecta
Fixpoint.hs
module Utility.Fixpoint ( fix , fixUnbounded , fixMaybe ) where -------------------------------------------------------------- fix :: (Show a, Eq a) => Int -> (a -> a) -> a -> a fix (-1) _ _ = error "fix: Exceeded maxIters" fix maxIters f x = let x' = f x in if x' == x then ...
null
https://raw.githubusercontent.com/jkoppel/ecta/865cf95fea1c875c2732991db6415d963c5d6189/src/Utility/Fixpoint.hs
haskell
------------------------------------------------------------
module Utility.Fixpoint ( fix , fixUnbounded , fixMaybe ) where fix :: (Show a, Eq a) => Int -> (a -> a) -> a -> a fix (-1) _ _ = error "fix: Exceeded maxIters" fix maxIters f x = let x' = f x in if x' == x then x else fix (...
7880732e271dfff904ea40fd99259072770b394bdff43e64ce1d1fe6ef6ffcf9
clojure-emacs/refactor-nrepl
core_async_usage.clj
(ns core-async-usage "Analyzing this ns used to be problematic, see git.io/Jcd7W" (:require [clojure.core.async :refer [go-loop]]))
null
https://raw.githubusercontent.com/clojure-emacs/refactor-nrepl/c05e692593b70f3efb475566b1bc53c1fd675ec9/test-resources/core_async_usage.clj
clojure
(ns core-async-usage "Analyzing this ns used to be problematic, see git.io/Jcd7W" (:require [clojure.core.async :refer [go-loop]]))
38b1d5f6cd8947c6dcd48e456774ae8c379d6eb5dc2cdea28598b7ebc2af0bae
dbuenzli/ptime
test_rfc3339.ml
--------------------------------------------------------------------------- Copyright ( c ) 2015 The ptime programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c)...
null
https://raw.githubusercontent.com/dbuenzli/ptime/8e5d5564d73af31f6b865ba09805077d93a26224/test/test_rfc3339.ml
ocaml
UTC Unknown
--------------------------------------------------------------------------- Copyright ( c ) 2015 The ptime programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c)...
1cbe94f4818ee70a00a0a2b0158bc8625105fd613f972ae39d2fe97bc0d30b22
HunterYIboHu/htdp2-solution
ex194-new-connect-dots.rkt
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-beginner-abbr-reader.ss" "lang")((modname ex194-new-connect-dots) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor...
null
https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter2/Section12-design-by-composed/ex194-new-connect-dots.rkt
racket
about the language level of this file in a form that our tools can easily process. data difinitions - (cons Posn Polygon) - (cons Posn '()) - (cons Posn NELop) constants a plain background image main functions Image Polygon -> Image renders the given polygon p into img auxiliary functions Image Posn -> Posn...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname ex194-new-connect-dots) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/image) A Polygon is one o...
3a0dd1e67c53c7bda3a88c8a5ff050130f70ca289bb314ab763bf1c8d84afcc9
BitGameEN/bitgamex
cowboy_clear.erl
Copyright ( c ) 2016 - 2017 , < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISC...
null
https://raw.githubusercontent.com/BitGameEN/bitgamex/151ba70a481615379f9648581a5d459b503abe19/src/deps/cowboy/src/cowboy_clear.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2016 - 2017 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(cowboy_clear). -behavior(ranch_protocol). -e...
5113675e32af6932bd680bc2496f48b272e04ae495ab64f5e3b61696cfbb2dbb
basho/data_platform_core
data_platform_console.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2015 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/basho/data_platform_core/a08232c60a82b3f64614fc87b12766cb65248037/src/data_platform_console.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 ) 2015 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...
edfb6c53c89e1608b382d6cd7f8f49fa395ea5e88fd70700161afbca047a6242
dawn-lang/dawn-phase1
Display.hs
Copyright ( c ) 2021 -- This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. module Language.Dawn.Phase1.Display (Display (..)) where import Data.List import qualified Data.Map as Map import...
null
https://raw.githubusercontent.com/dawn-lang/dawn-phase1/823b3dff645c2ee4f5df282a77f371bf7e4a188b/src/Language/Dawn/Phase1/Display.hs
haskell
Copyright ( c ) 2021 This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. module Language.Dawn.Phase1.Display (Display (..)) where import Data.List import qualified Data.Map as Map import qu...
f37b45e0e21a622d7ef23f34f78c0d7d35151abef1341038c707423c9b4ae228
kurtharriger/shadow-cljs-reframe-template
user.clj
(ns user (:require [shadow.cljs.devtools.api :as dapi])) (defn cljs-repl [] (dapi/nrepl-select :browser))
null
https://raw.githubusercontent.com/kurtharriger/shadow-cljs-reframe-template/cfeb1dc2ed89a3e4289aa5dee01f80d2a1e89403/dev/user.clj
clojure
(ns user (:require [shadow.cljs.devtools.api :as dapi])) (defn cljs-repl [] (dapi/nrepl-select :browser))
bb3a8ca1161dcabe1c07712bcad581eb4c928e753d3c5dea0017fbd710d31da0
SimulaVR/godot-haskell
GeometryInstance.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.GeometryInstance (Godot.Core.GeometryInstance._SHADO...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/GeometryInstance.hs
haskell
# NOINLINE bindGeometryInstance_get_cast_shadows_setting # | The selected shadow casting flag. See @enum ShadowCastingSetting@ for possible values. | The selected shadow casting flag. See @enum ShadowCastingSetting@ for possible values. # NOINLINE bindGeometryInstance_get_extra_cull_margin # | Returns the @enum Geom...
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.GeometryInstance (Godot.Core.GeometryInstance._SHADO...
d767d3a9b1465cb6352938b5ee399e56f80d1ba5f3584d2f663308700f9478d9
wangweihao/ProgrammingErlangAnswer
mytimefunc.erl
查看 erlang : now/0、erlang : data/0 和 erlang : % 编写一个名为 my_time_func(F) 的函数,让它执行 fun F 并记下执行时间。 编写一个名为 my_date_string ( ) -module(mytimefunc). -export([my_time_func/1, my_date_string/0]). my_time_func(F) -> { MegaSecs1 , Secs1 , MicroSecs1 } = : now ( ) , {Hour1, Minute1, Second1} = erlang:time(), F, {...
null
https://raw.githubusercontent.com/wangweihao/ProgrammingErlangAnswer/b145b5e6a19cb866ce5d2ceeac116d751f6e2b3d/4/3/mytimefunc.erl
erlang
编写一个名为 my_time_func(F) 的函数,让它执行 fun F 并记下执行时间。
查看 erlang : now/0、erlang : data/0 和 erlang : 编写一个名为 my_date_string ( ) -module(mytimefunc). -export([my_time_func/1, my_date_string/0]). my_time_func(F) -> { MegaSecs1 , Secs1 , MicroSecs1 } = : now ( ) , {Hour1, Minute1, Second1} = erlang:time(), F, { MegaSecs2 , Secs2 , MicroSecs2 } = : now ( ) , ...
76d6e87cdd013ee8f610e6b5b3f5d7a3486f64d362ef8e4032ae2c435ee249c5
fukamachi/uncl
package.lisp
(in-package :cl-user) (sb-ext:unlock-package :cl) (defpackage uncl (:nicknames :ucl) (:use :cl :cl-ppcre :cl-interpol :cl-utilities :named-readtables) (:shadow :cl :sort :require) (:import-from :named-readtables :defreadtable :in-readtable) (:import-from :cl-interpol ...
null
https://raw.githubusercontent.com/fukamachi/uncl/27d8a8bb81613f7de5018f6d4d57504e580e985e/package.lisp
lisp
for debug from COMMON-LISP COMMON-LISP varialbes named-readtable contrib
(in-package :cl-user) (sb-ext:unlock-package :cl) (defpackage uncl (:nicknames :ucl) (:use :cl :cl-ppcre :cl-interpol :cl-utilities :named-readtables) (:shadow :cl :sort :require) (:import-from :named-readtables :defreadtable :in-readtable) (:import-from :cl-interpol ...
e939cf61f8ffb1dc4a26f3fe18f8fbd368d04208ec9f04a0d875fdf1488d847d
REPROSEC/dolev-yao-star
Vale_Transformers_Transform.ml
open Prims type ('s1, 's2) equiv_states = unit let (transformation_result_of_possibly_codes : Vale_X64_Machine_Semantics_s.codes Vale_Def_PossiblyMonad.possibly -> Vale_X64_Machine_Semantics_s.code -> Vale_X64_Decls.va_transformation_result) = fun c -> fun if_fail -> match c with | Vale_...
null
https://raw.githubusercontent.com/REPROSEC/dolev-yao-star/d97a8dd4d07f2322437f186e4db6a1f4d5ee9230/concrete/hacl-star-snapshot/ml/Vale_Transformers_Transform.ml
ocaml
open Prims type ('s1, 's2) equiv_states = unit let (transformation_result_of_possibly_codes : Vale_X64_Machine_Semantics_s.codes Vale_Def_PossiblyMonad.possibly -> Vale_X64_Machine_Semantics_s.code -> Vale_X64_Decls.va_transformation_result) = fun c -> fun if_fail -> match c with | Vale_...
90812ec2dcc3bccd58e27307407ac241394102a5ba749630d3a66d6f9d7b902e
morpheusgraphql/morpheus-graphql
Mutation.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # module Operation.Mutation where import Data.Morpheus.Server.CodeGen.Internal import Data.Morpheus.Server.Types import Globals.GQLScalars (ScalarPower) data Query m = Query { deity :: DeityArgs...
null
https://raw.githubusercontent.com/morpheusgraphql/morpheus-graphql/1d3ab7e3bc723e29ef8bd2a0c818a03ae82ce8ad/examples/code-gen/src/Operation/Mutation.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE TypeFamilies # module Operation.Mutation where import Data.Morpheus.Server.CodeGen.Internal import Data.Morpheus.Server.Types import Globals.GQLScalars (ScalarPower) data Query m = Query { deity :: DeityArgs -> m (Deity m), character :: C...
64d13f49bfa7b859623dc6c3561de3d436bca35d1765ff28a32075a1a7503246
ucsd-progsys/mist
mochi-d3.hs
assume as b:Bool -> {v:Int | b == True} assume = 0 assert as {b:Bool | b == True} -> Int assert = 0 bool as Bool bool = 0 succ :: b:Int ~> ({u:Int | b <= u} -> Int) -> {u:Int | b <= u} -> Int succ = \f x -> f (x + 1) app3 :: a:Int ~> ({u:Int | a <= u} -> Int) -> b:Int ~> (c:Int ~> ({u:Int | a <= u} -> Int) -> Int) ...
null
https://raw.githubusercontent.com/ucsd-progsys/mist/0a9345e73dc53ff8e8adb8bed78d0e3e0cdc6af0/tests/Tests/Integration/todo/mochi-d3.hs
haskell
assume as b:Bool -> {v:Int | b == True} assume = 0 assert as {b:Bool | b == True} -> Int assert = 0 bool as Bool bool = 0 succ :: b:Int ~> ({u:Int | b <= u} -> Int) -> {u:Int | b <= u} -> Int succ = \f x -> f (x + 1) app3 :: a:Int ~> ({u:Int | a <= u} -> Int) -> b:Int ~> (c:Int ~> ({u:Int | a <= u} -> Int) -> Int) ...
35d8ced804a09915f5cc4a9b61d5a9158109669d457e808ce6940e826ed09af6
bakul/s9fes
dirname.scm
Scheme 9 from Empty Space , Function Library By , 2009 ; Placed in the Public Domain ; ( string ) = = > string ; ; Return the directory part of the Unix path name in STRING. Note that performs merely a syntaxical operation without any ; regard to the actual file system structure, i.e. ; ( " /f...
null
https://raw.githubusercontent.com/bakul/s9fes/74c14c0db5f07f5bc6d94131e9e4ee15a29275aa/lib/dirname.scm
scheme
Placed in the Public Domain Return the directory part of the Unix path name in STRING. Note regard to the actual file system structure, i.e. trailing slashes and recognizes some special cases (see examples).
Scheme 9 from Empty Space , Function Library By , 2009 ( string ) = = > string that performs merely a syntaxical operation without any ( " /foo / bar " ) = = > " /foo " even if " bar " is also a directory . also takes care of Example : ( " /foo / bar / baz " ) = = > " /foo / b...