_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
01ec75000c208bf5d165bbcd951781a435dd43a3575c81097fa7704fc31f2a51
aliaksandr-s/prototyping-with-clojure
project.clj
(defproject visitera "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :dependencies [[buddy "2.0.0"] [ch.qos.logback/logback-classic "1.2.3"] [cheshire "5.8.1"] [cljs-ajax "0.8.0"] [clojure.java-time "0.3.2"] [c...
null
https://raw.githubusercontent.com/aliaksandr-s/prototyping-with-clojure/e1f90bf66c315de1dfa72624895637f1c609c42e/app/chapter-06/end/visitera/project.clj
clojure
(defproject visitera "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :dependencies [[buddy "2.0.0"] [ch.qos.logback/logback-classic "1.2.3"] [cheshire "5.8.1"] [cljs-ajax "0.8.0"] [clojure.java-time "0.3.2"] [c...
8697b0795e8eb1e775c504c8e9b726d36fd0972a51889d7734139872fcd76884
metaocaml/ber-metaocaml
w54.ml
(* TEST flags = "-w A" * setup-ocamlc.byte-build-env ** ocamlc.byte compile_only = "true" *** check-ocamlc.byte-output *) let f = (fun x -> x) [@inline] [@inline never] let g = (fun x -> x) [@inline] [@something_else] [@ocaml.inline] let h x = (g [@inlined] [@ocaml.inlined never]) x let v = ((fun x -> x) [@inline...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/warnings/w54.ml
ocaml
TEST flags = "-w A" * setup-ocamlc.byte-build-env ** ocamlc.byte compile_only = "true" *** check-ocamlc.byte-output accepted
let f = (fun x -> x) [@inline] [@inline never] let g = (fun x -> x) [@inline] [@something_else] [@ocaml.inline] let h x = (g [@inlined] [@ocaml.inlined never]) x let i = ((fun x -> x) [@inline]) [@@inline]
921b1b91983d40264e8a20e81045f7e2332070d5cab8927220ad7d27f2a0f737
davelambert/porky
rdf-inspector.lisp
-*- package : ; Syntax : Common - lisp ; Base : 10 -*- ;;; ;;;; rdf-inspector.lisp ;;; ;;; ;;; -------------------------------------------------------------------------------------- ;;; ;;; The contents of this file are subject to the NOKOS License Version 1.0a (the ;;; "License"); you may not use this file ex...
null
https://raw.githubusercontent.com/davelambert/porky/44a4ff0e791de23f723bfd93072fcef5f8523c8a/src/goodies/rdf-inspector.lisp
lisp
Syntax : Common - lisp ; Base : 10 -*- rdf-inspector.lisp -------------------------------------------------------------------------------------- The contents of this file are subject to the NOKOS License Version 1.0a (the "License"); you may not use this file except in compliance with the License. WA...
Software distributed under the License is distributed on an " AS IS " basis , WITHOUT The Original Software is WILBUR2 : Nokia Semantic Web Toolkit for CLOS Copyright ( c ) 2001 - 2005 Nokia and others . All Rights Reserved . Portions Copyright ( c ) 1989 - 1992 . All Rights Reserved . Cont...
1b4128e63db5c7be5bb02f873c3a6433721d84b4bd45d3b09ff931b74c8cb00f
arttuka/reagent-material-ui
vaping_rooms.cljs
(ns reagent-mui.icons.vaping-rooms "Imports @mui/icons-material/VapingRooms as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def vaping-rooms (create-svg-icon (e...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/c7cd0d7c661ab9df5b0aed0213a6653a9a3f28ea/src/icons/reagent_mui/icons/vaping_rooms.cljs
clojure
(ns reagent-mui.icons.vaping-rooms "Imports @mui/icons-material/VapingRooms as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def vaping-rooms (create-svg-icon (e...
01aec5c9f92d9532a0fbdb1293076ff4f698c4eb467c006263078d4868eff7ce
wireless-net/erlang-nommu
dict_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2013 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/stdlib/test/dict_SUITE.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2008 - 2013 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(dict_SUITE). -export([all/0, sui...
eb75b8ce0e6e9a9b4b937ec87c3b66214e36ae7c9d2f28791e59cfb8fe319719
GaloisInc/saw-script
LLVMCrucibleSetup.hs
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE FlexibleContexts # # LANGUAGE ImplicitParams # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE PartialTypeSignatures # # LANGUAGE Tupl...
null
https://raw.githubusercontent.com/GaloisInc/saw-script/e60aebfe6ac5c16a8b235c973be47c1638105edb/saw-remote-api/src/SAWServer/LLVMCrucibleSetup.hs
haskell
# LANGUAGE DeriveTraversable # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # rule out elsewhere
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE FlexibleContexts # # LANGUAGE ImplicitParams # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PartialTypeSignatures # # LANGUAGE TupleSections # module SAWServer.LLVMCrucibleSetup ( llvmLoadModule , llvmLoadModuleDescr , Cont...
befdfa73d4848a0e5417afb125197c9b4f8941a19f78f9a2995889bdd57e5a9a
esl/erlang-web
e_dispatcher.erl
The contents of this file are subject to the Erlang Web Public License , Version 1.0 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the Erlang Web Public License along with this software . If not , it can be %% retrieved via the world...
null
https://raw.githubusercontent.com/esl/erlang-web/2e5c2c9725465fc5b522250c305a9d553b3b8243/lib/eptic-1.4.1/src/e_dispatcher.erl
erlang
compliance with the License. You should have received a copy of the retrieved via the world wide web at -consulting.com/. 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 Erlang Web Public License , Version 1.0 , ( the " License " ) ; you may not use this file except in Erlang Web Public License along with this software . If not , it can be Software distributed under the License is distributed on an " AS IS " The Initial Developer o...
5ee8f5b3d06d7c6235eb5dedb421bfbe76000db952fd0dd05229158e60ad01d3
openbadgefactory/salava
db.clj
(ns salava.profile.db (:require [yesql.core :refer [defqueries]] [salava.core.util :refer [get-db get-plugins plugin-fun md->html file-from-url-fix url?]] [salava.core.helper :refer [dump private?]] [slingshot.slingshot :refer :all] [clojure.tools.logging :as log] ...
null
https://raw.githubusercontent.com/openbadgefactory/salava/97f05992406e4dcbe3c4bff75c04378d19606b61/src/clj/salava/profile/db.clj
clojure
clean out non existent block order
(ns salava.profile.db (:require [yesql.core :refer [defqueries]] [salava.core.util :refer [get-db get-plugins plugin-fun md->html file-from-url-fix url?]] [salava.core.helper :refer [dump private?]] [slingshot.slingshot :refer :all] [clojure.tools.logging :as log] ...
1761a216ef9a3d08e89aa3bc8a847df512238f0b9a426b83cae8800309d93d36
drewc/druix
gerbil-persist.scm
(define-module (druix packages scheme gerbil gerbil-persist) #:use-module (druix packages scheme gerbil) #:use-module (druix packages scheme gerbil gerbil-utils) #:use-module (druix packages scheme gerbil gerbil-poo) #:use-module (druix packages scheme gerbil gerbil-crypto) #:use-module (druix utils gerbil-pa...
null
https://raw.githubusercontent.com/drewc/druix/5b46c5cab8569f377c7c6c2709012cd7c995549f/druix/packages/scheme/gerbil/gerbil-persist.scm
scheme
(define-module (druix packages scheme gerbil gerbil-persist) #:use-module (druix packages scheme gerbil) #:use-module (druix packages scheme gerbil gerbil-utils) #:use-module (druix packages scheme gerbil gerbil-poo) #:use-module (druix packages scheme gerbil gerbil-crypto) #:use-module (druix utils gerbil-pa...
8b496fc634c49338fd2001ddb11281512d6438fd148e84150af11a7a2c6068bc
static-analysis-engineering/codehawk
cHCilDictionary.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk C Analyzer Parser using CIL Author : ------------------------------------------------------------------------------ The MIT License ( MIT...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/d2e83cef7430defdc4cf30fc1495fe4ff64d9f9d/CodeHawk/CHC/cchcil/cHCilDictionary.ml
ocaml
cil chutil omit entry for empty attributes omit entry for empty attributes
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk C Analyzer Parser using CIL Author : ------------------------------------------------------------------------------ The MIT License ( MIT...
e72644fe023a370dcf486d4d4683013a98cb7e172f90fef0662d5538313c5985
openvnf/kube-vxlan-controller
kube_vxlan_controller_config.erl
-module(kube_vxlan_controller_config). -export([ load/0, load/1, init/0, read/1, build/1, validate/1, version/0 ]). -include_lib("kernel/include/logger.hrl"). -define(App, 'kube-vxlan-controller'). -define(OsEnvPrefix, "KVC_"). -define(ConfigKeys, [ server, ca_cert_file, toke...
null
https://raw.githubusercontent.com/openvnf/kube-vxlan-controller/7bc0576519a20d3cfbf6e06f738ec0b95ace3f8a/src/kube_vxlan_controller_config.erl
erlang
-module(kube_vxlan_controller_config). -export([ load/0, load/1, init/0, read/1, build/1, validate/1, version/0 ]). -include_lib("kernel/include/logger.hrl"). -define(App, 'kube-vxlan-controller'). -define(OsEnvPrefix, "KVC_"). -define(ConfigKeys, [ server, ca_cert_file, toke...
04ea47a1cef33a976f3f68f604902b263ebfbe8922e0ca93e6fdcd3e24cb63f1
Clozure/ccl
l1-boot-lds.lisp
-*-Mode : LISP ; Package : CCL -*- ;;; Copyright 1994 - 2009 Clozure Associates ;;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;;; you may not use this file except in compliance with the License. ;;; You may obtain a copy of the License at ;;; ;;; -2.0 ;;; ;;; Unless required by appli...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/level-1/l1-boot-lds.lisp
lisp
Package : CCL -*- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific la...
Copyright 1994 - 2009 Clozure Associates distributed under the License is distributed on an " AS IS " BASIS , (in-package "CCL") (defun command-line-arguments () *command-line-argument-list*) (defun startup-ccl (&optional init-file) (catch :toplevel (with-simple-restart (abort "Abort startup.") ...
b35ac1721ec9808f842944c8e65188b115727ad41b1cfbb6e17cf4600e2aa861
nodew/haskell-dapr
Common.hs
# LANGUAGE GeneralizedNewtypeDeriving # -- | Module : . Core . Types . Common -- Description : Defines the types used by multiple modules -- Copyright : (c) -- License : Apache-2.0 -- Defines the types used by multiple modules module Dapr.Core.Types.Common where import Control.Exception (Exception) imp...
null
https://raw.githubusercontent.com/nodew/haskell-dapr/7e3a47835b479f5a54f79bbe3fce303428e55c75/dapr-core/src/Dapr/Core/Types/Common.hs
haskell
| Description : Defines the types used by multiple modules Copyright : (c) License : Apache-2.0 Defines the types used by multiple modules | 'DaprConfig' daprConfig | Dapr port | Dapr API version | 'DaprClientError' is the exception for client request | HttpException | JSON decode error | Not found ex...
# LANGUAGE GeneralizedNewtypeDeriving # Module : . Core . Types . Common module Dapr.Core.Types.Common where import Control.Exception (Exception) import Control.Monad.Reader import Dapr.Core.Types.Internal (customParseJSON, customToJSON) import Data.Aeson (FromJSON (parseJSON), FromJSONKey, ToJSON (toJSON), ...
0b3c69afcaffb09a5b5f07f5ec8f996957339fa8e2ac5ac9115bc94d7b5d80bd
chovencorp/erlangzmq
erlangzmq_peer.erl
@copyright 2016 Choven Corp. %% This file is part of erlangzmq . %% erlangzmq is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or %% (at your option) any later v...
null
https://raw.githubusercontent.com/chovencorp/erlangzmq/2be5c3b36dd78b010d1790a8f74ae2e823f5a424/src/erlangzmq_peer.erl
erlang
(at your option) any later version. erlangzmq is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. @doc Peer representation for ZeroMQ ...
@copyright 2016 Choven Corp. This file is part of erlangzmq . erlangzmq 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 You should have received a copy of ...
46d6d0998a3d90bbd5a0b72faf59cb2f9fd8c99d161c76c6e7efb382bdef4c63
fffej/clojure-snippets
minilight.clj
;;;; ;;;; Still very early, so nothing exciting yet! (ns fatvat.minilight (:import (java.io PushbackReader)) (:use clojure.contrib.duck-streams)) / ray tracer in Clojure ;;; Description of algorithm 1 . open model file 2 . create Scene with model file 3 . create Image with model file 4 . create Camera w...
null
https://raw.githubusercontent.com/fffej/clojure-snippets/bf2e04502da88e4ecba8d4e4ffe9012f3984d451/minilight/minilight.clj
clojure
Still very early, so nothing exciting yet! Description of algorithm iterations width height eye-position look-direction view-angle sky-emission ground-reflection triangles Add radiance to image and return new image
(ns fatvat.minilight (:import (java.io PushbackReader)) (:use clojure.contrib.duck-streams)) / ray tracer in Clojure 1 . open model file 2 . create Scene with model file 3 . create Image with model file 4 . create Camera with model file 5 . do progressive render loop 1 . get frame of render from C...
299e0e329b4d3039c74412613b54c8990b62e54fdb76a76ee3c62706bb3abebd
rd--/hsc3
g_new.help.hs
Sound.Sc3.Lang.Help.viewServerHelp "/g_new" The root node of the synthesiser tree is a group with ID zero. By convention there is a group with ID one at the root group, but this is only a convention. We need to make the group. > import Sound.Sc3 {- hsc3 -} > m_01 = g_new [(1,AddToTail,0)] > withSc3 (send ...
null
https://raw.githubusercontent.com/rd--/hsc3/024d45b6b5166e5cd3f0142fbf65aeb6ef642d46/Help/Server/g_new.help.hs
haskell
hsc3
Sound.Sc3.Lang.Help.viewServerHelp "/g_new" The root node of the synthesiser tree is a group with ID zero. By convention there is a group with ID one at the root group, but this is only a convention. We need to make the group. > m_01 = g_new [(1,AddToTail,0)] > withSc3 (send m_00)
b13e17bbb968aefb02c1a02c271c5ad94095a62171d8c2296ec6111d8f8cc18b
NathanReb/ocaml-afl-examples
simple_parser.ml
let parse_int s = match List.init (String.length s) (String.get s) with | [ 'a'; 'b'; 'c' ] -> failwith "secret crash" | _ -> ( match int_of_string_opt s with | None -> Error (`Msg (Printf.sprintf "Not an int: %S" s)) | Some i -> Ok i )
null
https://raw.githubusercontent.com/NathanReb/ocaml-afl-examples/5eaacb4ee765b17378c7addd26426b4057ddc3a1/simple-parser/lib/simple_parser.ml
ocaml
let parse_int s = match List.init (String.length s) (String.get s) with | [ 'a'; 'b'; 'c' ] -> failwith "secret crash" | _ -> ( match int_of_string_opt s with | None -> Error (`Msg (Printf.sprintf "Not an int: %S" s)) | Some i -> Ok i )
6bdda3478ea3c696fbb81091d053db954467f5c86fe806d09bf12406968432d6
ocaml-multicore/lockfree
test_spsc_queue.ml
open Lockfree (** Tests *) let test_empty () = let q = Spsc_queue.create ~size_exponent:3 in assert (Option.is_none (Spsc_queue.pop q)); assert (Spsc_queue.size q == 0); print_string "test_spsc_queue_empty: ok\n" let push_not_full q elt = try Spsc_queue.push q elt; true with Spsc_queue.Full -> fal...
null
https://raw.githubusercontent.com/ocaml-multicore/lockfree/e164bfa497c18d220c7de52cc77445ef2f746e1b/test/spsc_queue/test_spsc_queue.ml
ocaml
* Tests producer consumer
open Lockfree let test_empty () = let q = Spsc_queue.create ~size_exponent:3 in assert (Option.is_none (Spsc_queue.pop q)); assert (Spsc_queue.size q == 0); print_string "test_spsc_queue_empty: ok\n" let push_not_full q elt = try Spsc_queue.push q elt; true with Spsc_queue.Full -> false let test_...
0a7e1273fc81acc7352b5ad37d39b28417d08d17866fc3d784e51ea97adc2af5
catseye/Robin
Concurrent.hs
module Language.Robin.Facilities.Concurrent where import Control.Concurrent (ThreadId, forkIO) import Control.Concurrent.Chan import Language.Robin.Facilities orchestrate :: [IO Facility] -> IO ([FacilityHandler], WaitForEvents) orchestrate facilities = do masterChan <- newChan facilities <- initEach facili...
null
https://raw.githubusercontent.com/catseye/Robin/964ea82edef9f6a9a8e6363ee915ab48b0d2ec50/src/Language/Robin/Facilities/Concurrent.hs
haskell
module Language.Robin.Facilities.Concurrent where import Control.Concurrent (ThreadId, forkIO) import Control.Concurrent.Chan import Language.Robin.Facilities orchestrate :: [IO Facility] -> IO ([FacilityHandler], WaitForEvents) orchestrate facilities = do masterChan <- newChan facilities <- initEach facili...
30075de791c6dfd6c0da41460606f514dd70def734f3ec06b8a00f227dd7f963
TyGuS/hoogle_plus
InternalTypeGen.hs
# LANGUAGE FlexibleInstances # module InternalTypeGen where import Test.QuickCheck.Arbitrary import Test.QuickCheck.Gen import qualified Test.ChasingBottoms as CB import Data.Map (Map) import Data.List (isInfixOf) import Control.Applicative isEqualResult lhs rhs = case (lhs, rhs) of (CB.Value a, CB.Value b) -> a ==...
null
https://raw.githubusercontent.com/TyGuS/hoogle_plus/d02a1466d98f872e78ddb2fb612cb67d4bd0ca18/InternalTypeGen.hs
haskell
# OVERLAPPING # # OVERLAPPING # # OVERLAPPING #
# LANGUAGE FlexibleInstances # module InternalTypeGen where import Test.QuickCheck.Arbitrary import Test.QuickCheck.Gen import qualified Test.ChasingBottoms as CB import Data.Map (Map) import Data.List (isInfixOf) import Control.Applicative isEqualResult lhs rhs = case (lhs, rhs) of (CB.Value a, CB.Value b) -> a ==...
e10b9031a225b660ede429bf855c2b62f64649b519aa6c6d2d41108b5e524a3e
ml4tp/tcoq
nativenorm.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/pretyping/nativenorm.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * This module implements normalizati...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Term open Environ open Ev...
52d7bfd76e5d64c0698b973fafa757541f02bd00245ba811aa08f8d6db2e91ef
erikd/hjsmin
test-cli.hs
{-# LANGUAGE MultiWayIf #-} import Control.Monad (foldM, forM) import Control.Monad.Extra (concatMapM) import System.Directory (canonicalizePath, getCurrentDirectory, listDirectory) import System.Environment (setEnv) import System.FilePath (takeFileName, (</>)) import...
null
https://raw.githubusercontent.com/erikd/hjsmin/b8922b3d27b4b58e94f4564a29768b8040680630/test/test-cli.hs
haskell
# LANGUAGE MultiWayIf # Set an environment variable for all the exectuables we want to test.
import Control.Monad (foldM, forM) import Control.Monad.Extra (concatMapM) import System.Directory (canonicalizePath, getCurrentDirectory, listDirectory) import System.Environment (setEnv) import System.FilePath (takeFileName, (</>)) import System.Exit (Exit...
5427ea73bee59a8dd2c4581bb6c2f979f0db9df78d0f8dc8e7efa8563fc7e0cd
hbr/albatross
builder.ml
open Fmlib open Common open Alba_core open Ast module Algo = Gamma_algo.Make (Gamma) module Parser = Parser_lang type pos = Position.t type range = pos * pos module Located = Character_parser.Located let add_definition (def: Expression.definition) (context: Context.t) : (Context.t, Build_pro...
null
https://raw.githubusercontent.com/hbr/albatross/8f28ef97951f92f30dc69cf94c0bbe20d64fba21/ocaml/albalib/builder.ml
ocaml
open Fmlib open Common open Alba_core open Ast module Algo = Gamma_algo.Make (Gamma) module Parser = Parser_lang type pos = Position.t type range = pos * pos module Located = Character_parser.Located let add_definition (def: Expression.definition) (context: Context.t) : (Context.t, Build_pro...
2aac3c17299de1b3cca0d6632c382986c08c521dd2b8e8febbe738ae2b042b77
haskell/attoparsec
Internal.hs
# LANGUAGE BangPatterns , FlexibleInstances , GADTs , OverloadedStrings , Rank2Types , RecordWildCards , TypeFamilies , TypeSynonymInstances # Rank2Types, RecordWildCards, TypeFamilies, TypeSynonymInstances #-} # OPTIONS_GHC -fno - warn - orphans # -- | Module : Data . . Text . Internal Copyright...
null
https://raw.githubusercontent.com/haskell/attoparsec/8d2765baa343d2160d6b76f60954122c8e384e6d/Data/Attoparsec/Text/Internal.hs
haskell
| License : BSD3 Maintainer : Stability : experimental Portability : unknown Simple, efficient parser combinators for 'Text' strings, loosely * Running parsers * Combinators * Parsing individual characters ** Character classes * Efficient string handling ** Consume all remaining input * Utili...
# LANGUAGE BangPatterns , FlexibleInstances , GADTs , OverloadedStrings , Rank2Types , RecordWildCards , TypeFamilies , TypeSynonymInstances # Rank2Types, RecordWildCards, TypeFamilies, TypeSynonymInstances #-} # OPTIONS_GHC -fno - warn - orphans # Module : Data . . Text . Internal Copyright :...
31e38d037ae2a3c716d23db39ec484df7115706828ec758bdf75914f584cb0ab
karamellpelle/grid
IOS.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid 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 License , or -- (at your optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/MEnv/Keys/IOS.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GN...
grid is a game written in Haskell Copyright ( C ) 2018 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License # LANGUAGE ForeignFunctionInterface # module MEnv.K...
b982ad345e8a2ff54d569b8e1e9b25581aeacb1a90600fa2063e51d7853219c3
mfejzer/knuth-bendix-completion
Tests.hs
module KnuthBendixCompletion.Tests where import KnuthBendixCompletion.Algorithm import KnuthBendixCompletion.Datatypes import Parser runTests = and tests tests = [ reduceTerm ( ReductionRule { rule = translate " f x ( f x y)",translate " g x " ) ) ( translate " a ( f ( f g h ) ) e " ) = = ( Func " a " [ Func " f " ...
null
https://raw.githubusercontent.com/mfejzer/knuth-bendix-completion/585d7fcb86b552d412df0c519c52eb0bd517dfc0/KnuthBendixCompletion/Tests.hs
haskell
, superpose ( translate " + x y " ) ( translate " + ( - x ) x " ) ( translate " + x y " ) = = Func " + " [ Func " - " [ Var " x"],Var " x " ] , createCriticalTerm ( translate " + ( + x y ) z " ) ( translate " + ( - x ) x " ) = = Func " + " [ Func " + " [ Func " - " [ Var " x"],Var " x"],V...
module KnuthBendixCompletion.Tests where import KnuthBendixCompletion.Algorithm import KnuthBendixCompletion.Datatypes import Parser runTests = and tests tests = [ reduceTerm ( ReductionRule { rule = translate " f x ( f x y)",translate " g x " ) ) ( translate " a ( f ( f g h ) ) e " ) = = ( Func " a " [ Func " f " ...
58ba234e63a0eb74109260f677630ec80dbb274b632c3b83d3677ffc87916fcb
dbuenzli/mu
more_music.ml
(* This code is in the public domain *) open Mu open Mu.Syntax let short_par m0 m1 = M.drop (Music.dur m1) m0 @|@ M.drop (Music.dur m0) m1 HSoM 6.8 let rec trill : Pitch.rel -> Music.dur -> Pitch.t Music.t -> Pitch.t Music.t = fun r d -> function | `Prim (`Note (nd, _)) as n when Q.(d >= nd) -> n | `Prim (`Note (...
null
https://raw.githubusercontent.com/dbuenzli/mu/f6028ba4515bd49eb076b7394dee39e8f35e13fa/test/more_music.ml
ocaml
This code is in the public domain
open Mu open Mu.Syntax let short_par m0 m1 = M.drop (Music.dur m1) m0 @|@ M.drop (Music.dur m0) m1 HSoM 6.8 let rec trill : Pitch.rel -> Music.dur -> Pitch.t Music.t -> Pitch.t Music.t = fun r d -> function | `Prim (`Note (nd, _)) as n when Q.(d >= nd) -> n | `Prim (`Note (nd, p)) -> M.note d p ^ trill (-r) d...
ee90fbe7451d555c58fafc2d1b501d5d37fb2ec177c69b694ca784b77cf20ffc
schemeorg-community/index.scheme.org
srfi.4.u32.scm
(((name . "u32vector?") (signature lambda (obj) boolean?) (tags pure predicate)) ((name . "make-u32vector") (signature case-lambda (((integer? size)) u32vector?) (((integer? size) (integer? fill)) u32vector?)) (tags pure)) ((name . "u32vector-length") (signature lambda ((u32vector? vec)) integer?) ...
null
https://raw.githubusercontent.com/schemeorg-community/index.scheme.org/32e1afcfe423a158ac8ce014f5c0b8399d12a1ea/types/srfi.4.u32.scm
scheme
(((name . "u32vector?") (signature lambda (obj) boolean?) (tags pure predicate)) ((name . "make-u32vector") (signature case-lambda (((integer? size)) u32vector?) (((integer? size) (integer? fill)) u32vector?)) (tags pure)) ((name . "u32vector-length") (signature lambda ((u32vector? vec)) integer?) ...
0a0afdb1d99358973650b3517e769df90e280249e0ab0f0ab55b9f857eeeeb33
uwplse/PUMPKIN-PATCH
theorem.ml
(* Updating theorems instead of proofs *) open Constr open Environ open Substitution open Debruijn open Reducers open Specialization open Evd open Zooming open Contextutils open Inference open Convertibility open Envutils open Zooming open Stateutils (* * Get the arguments to a function within a term * Assumes the ...
null
https://raw.githubusercontent.com/uwplse/PUMPKIN-PATCH/73fd77ba49388fdc72702a252a8fa8f071a8e1ea/plugin/src/core/procedures/theorem.ml
ocaml
Updating theorems instead of proofs * Get the arguments to a function within a term * Assumes the function is itself an argument to the term * Assumes the function is a constant * Dumb for now not yet implemented
open Constr open Environ open Substitution open Debruijn open Reducers open Specialization open Evd open Zooming open Contextutils open Inference open Convertibility open Envutils open Zooming open Stateutils let rec args_to env (f : types) (trm : types) sigma = let nonempty (_, a) = Array.length a > 0 in match k...
1b2b5360d68b655afd4c296e90cce2a7a1714b9fa3858dea575f4ef85ed27537
charles-cooper/peregrine
Peregrine.hs
module Language.Peregrine ( module Language.Peregrine.AST, module Language.Peregrine.DSL, module Language.Peregrine.Run, module Language . Peregrine . Compiler , ) where import Language.Peregrine.AST import Language.Peregrine.DSL import Language.Peregrine.Run
null
https://raw.githubusercontent.com/charles-cooper/peregrine/3b670ed437f86993bf1c921381b8e72097a80423/src/Language/Peregrine.hs
haskell
module Language.Peregrine ( module Language.Peregrine.AST, module Language.Peregrine.DSL, module Language.Peregrine.Run, module Language . Peregrine . Compiler , ) where import Language.Peregrine.AST import Language.Peregrine.DSL import Language.Peregrine.Run
de76d467414c9e9cfe966986159a4c851ce4e851eff094894f3849ff4885a211
sulami/spielwiese
Astar.hs
module Astar ( Grid, Coord, Path, PossibleWaysFun, CostFun, flood ) where import Control.Parallel.Strategies (parMap, rpar) type Grid = [String] type Coord = (Int, Int) type Path = [Coord] type PossibleWaysFun = Grid -> Coord -> Path type CostFun = Coord -> Path -> Int flood :: Grid -> Coord -> Coord -> Pos...
null
https://raw.githubusercontent.com/sulami/spielwiese/da354aa112d43d7ec5f258f4b5afafd7a88c8aa8/astar/lib/Astar.hs
haskell
module Astar ( Grid, Coord, Path, PossibleWaysFun, CostFun, flood ) where import Control.Parallel.Strategies (parMap, rpar) type Grid = [String] type Coord = (Int, Int) type Path = [Coord] type PossibleWaysFun = Grid -> Coord -> Path type CostFun = Coord -> Path -> Int flood :: Grid -> Coord -> Coord -> Pos...
ad3d64dc8ad45c6507db5cc97bf148759425713fdcce70d682dbcc8fb73142d7
ClickHouse/metabase-clickhouse-driver
clickhouse.clj
(ns metabase.test.data.clickhouse "Code for creating / destroying a ClickHouse database from a `DatabaseDefinition`." (:require [metabase.driver.ddl.interface :as ddl.i] [metabase.driver.sql.util :as sql.u] [metabase.test.data [interface :as tx] [sql-jdbc :as sql-jdbc.tx]] [metabase.test.data.sq...
null
https://raw.githubusercontent.com/ClickHouse/metabase-clickhouse-driver/844d15c7f889b6ced5aa1592c8bf1b87ee07a35a/test/metabase/test/data/clickhouse.clj
clojure
TODO - fix me
(ns metabase.test.data.clickhouse "Code for creating / destroying a ClickHouse database from a `DatabaseDefinition`." (:require [metabase.driver.ddl.interface :as ddl.i] [metabase.driver.sql.util :as sql.u] [metabase.test.data [interface :as tx] [sql-jdbc :as sql-jdbc.tx]] [metabase.test.data.sq...
e219e7157c63e441eb90d61480b5e1735a5a64c7e17f28f19d3d985c4eccd8cc
mbillingr/lisp-in-small-pieces
interpreter.scm
(import (builtin core) (libs utils)) (define (evaluate e env) (if (atom? e) (cond ((symbol? e) (lookup e env)) ((or (number? e) (string? e) (char? e) (boolean? e)) e) (else (wrong "Cannot evaluate" e))) (case (car e) ((quote) (cadr e)) ((if) (if (not ...
null
https://raw.githubusercontent.com/mbillingr/lisp-in-small-pieces/b2b158dfa91dc95d75af4bd7d93f8df22219047e/01-basics/interpreter.scm
scheme
(set! fib (lambda (n) (if (< n 2) 1 (+ (fib (- n 1)) (fib (- n 2))))))
(import (builtin core) (libs utils)) (define (evaluate e env) (if (atom? e) (cond ((symbol? e) (lookup e env)) ((or (number? e) (string? e) (char? e) (boolean? e)) e) (else (wrong "Cannot evaluate" e))) (case (car e) ((quote) (cadr e)) ((if) (if (not ...
6e06ce0a9eca4c9f6cd2cab51ef32d7d2c3b50d8dd4a82cae8c987e816343455
huiqing/percept2
sim_code_v0.erl
Copyright ( c ) 2011 , , %% All rights reserved. %% %% Redistribution and use in source and binary forms, with or without %% modification, are permitted provided that the following conditions are met: %% %% Redistributions of source code must retain the above copyright %% notice, this list of conditions...
null
https://raw.githubusercontent.com/huiqing/percept2/fa796a730d6727210a71f185e6a39a960c2dcb90/case_studies/par_sim_code/sim_code_v0.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: %% Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. %% Redi...
Copyright ( c ) 2011 , , IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR Incremental similar code detection for Erlang programs . @private -module(sim_code_v0). -export([sim_code_detection/8,sim_code_de...
f668f4be6d2647b2c910e29601207ba25e500ba685400af845213ec911413df5
AshleyYakeley/Truth
Whole.hs
{-# OPTIONS -fno-warn-orphans #-} module Changes.Core.Types.Whole where import Changes.Core.Edit import Changes.Core.Import import Changes.Core.Lens import Changes.Core.Read import Changes.Core.Types.None import Changes.Core.Types.ReadOnly data WholeReader (a :: Type) (t :: Type) where ReadWhole :: forall t. Who...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/7975bccc897546890ecce63307c893409145a8c7/Changes/changes-core/lib/Changes/Core/Types/Whole.hs
haskell
# OPTIONS -fno-warn-orphans # # COMPLETE MkWholeReaderUpdate # # COMPLETE MkWholeUpdate #
module Changes.Core.Types.Whole where import Changes.Core.Edit import Changes.Core.Import import Changes.Core.Lens import Changes.Core.Read import Changes.Core.Types.None import Changes.Core.Types.ReadOnly data WholeReader (a :: Type) (t :: Type) where ReadWhole :: forall t. WholeReader t t instance TestEqualit...
f7f117aa882f520173daa324da149058d44249051898165bc48af12616a65ba2
byorgey/AoC
02.hs
# LANGUAGE FlexibleContexts # # LANGUAGE TemplateHaskell # import Control.Applicative import Control.Lens import Control.Monad.State import Control.Monad.Writer import Data.Char import qualified Data.Set as S import Text.Printf data Dir = L | R...
null
https://raw.githubusercontent.com/byorgey/AoC/30eb51eb41af9ca86b05de598a3a96d25bd428e3/2016/02/02.hs
haskell
validKPLoc :: KPLoc -> Bool Part 1 initKPLoc :: KPLoc Part 1 showKP :: KPLoc -> String showKP (x,y) = show (3*y + x + 1)
# LANGUAGE FlexibleContexts # # LANGUAGE TemplateHaskell # import Control.Applicative import Control.Lens import Control.Monad.State import Control.Monad.Writer import Data.Char import qualified Data.Set as S import Text.Printf data Dir = L | R...
01a0623a0b9020e4cc91322680718ad1a9d1639f44d5da7122da087b7ba8f091
ivanjermakov/wordle
EngineSpec.hs
module EngineSpec where import Data.Time import Engine import Test.Hspec spec :: Spec spec = do describe "guess" $ do let test g t gts = shouldBe (map snd $ guess g t) gts it "abc -> abc" $ do test "abc" "abc" [CorrectSpot, CorrectSpot, CorrectSpot] it "aac -> abc...
null
https://raw.githubusercontent.com/ivanjermakov/wordle/4bdedd73d12b0bd59feeaebfc48e99ceb3d9262e/test/EngineSpec.hs
haskell
module EngineSpec where import Data.Time import Engine import Test.Hspec spec :: Spec spec = do describe "guess" $ do let test g t gts = shouldBe (map snd $ guess g t) gts it "abc -> abc" $ do test "abc" "abc" [CorrectSpot, CorrectSpot, CorrectSpot] it "aac -> abc...
a95e3a8c0e570fa50b32bfa770c445493765ca2693fb6371c4bb801f7c63ea03
jonase/eastwood
warnloc1.clj
(ns testcases.warnloc1) ;; There are many blank lines in this file before the actual code, ;; because I want the line numbers to be larger than any line numbers ;; possible in the namespace testcases.warnloc2 The sole purpose of this namespace and testcases.warnloc2 is to ;; debug, and eventually fix and provide o...
null
https://raw.githubusercontent.com/jonase/eastwood/01fb0b43b0bc10d578af667c5ee9708cbf6a97bc/cases/testcases/warnloc1.clj
clojure
There are many blank lines in this file before the actual code, because I want the line numbers to be larger than any line numbers possible in the namespace testcases.warnloc2 debug, and eventually fix and provide ongoing test cases for, incorrect file/line/column combinations that as of just before name is repor...
(ns testcases.warnloc1) The sole purpose of this namespace and testcases.warnloc2 is to Eastwood 0.1.5 release are still there . That is , sometimes a file Namespace B requires namespace A , then uses the macro in A. The macro invocation , when expanded , causes to issue a When looks for : file : lin...
f0866dad1622b2caf808de90bfcd2414379953cad0326062a37f97d3f5421f6f
jaredly/reason-language-server
ast_iterator.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/jaredly/reason-language-server/ce1b3f8ddb554b6498c2a83ea9c53a6bdf0b6081/ocaml_typing/406/ast_iterator.mli
ocaml
************************************************************************ OCaml ...
, LexiFi Copyright 2012 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * { ! iterator } allows to implement AST inspection using open recursion . A typical mapper would be b...
9c270844bd28697413cc17bc96ffef1a5e30a60a9ff718c520fde1797bf2a51c
alex-hhh/ActivityLog2
edit-dialog-base.rkt
#lang racket/base ;; This file is part of ActivityLog2, an fitness activity tracker Copyright ( C ) 2018 < > ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the Lic...
null
https://raw.githubusercontent.com/alex-hhh/ActivityLog2/35efd751b30592c8fcb2e9b87da93f67554b061e/rkt/widgets/edit-dialog-base.rkt
racket
This file is part of ActivityLog2, an fitness activity tracker This program is free software: you can redistribute it and/or modify it any later version. This program is distributed in the hope that it will be useful, but WITHOUT without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR P...
#lang racket/base Copyright ( C ) 2018 < > under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) (require racket/class racket/gui/base "widget-utilities.rkt") (provide edit-dialog-base%) (def...
6633adcff0af6941e705366a6badad39e74c2e13fbe32f86d6a63b5b4f5c647d
rbkmoney/fistful-server
ff_postings_transfer.erl
%%% Tranfer %%% TODOs %%% %%% - We must synchronise any transfers on wallet machine, as one may request %%% us to close wallet concurrently. Moreover, we should probably check any %%% limits there too. %%% - What if we get rid of some failures in `prepare`, specifically those %%% which related to wallet ...
null
https://raw.githubusercontent.com/rbkmoney/fistful-server/94f1ed9f50d3d26e8e3d32df6104730c96af1047/apps/fistful/src/ff_postings_transfer.erl
erlang
- We must synchronise any transfers on wallet machine, as one may request us to close wallet concurrently. Moreover, we should probably check any limits there too. - What if we get rid of some failures in `prepare`, specifically those which related to wallet blocking / suspension? It would be great t...
Tranfer TODOs -module(ff_postings_transfer). -type final_cash_flow() :: ff_cash_flow:final_cash_flow(). -type clock() :: ff_clock:clock(). -type status() :: created | prepared | committed | cancelled. -type transfer() :: #{ id := id(), final_cash_flow := final_cash_flow(), status => ...
3a98d77678716b7bc2a98140f58c9e9bfad6e66d1d85c632860da08a29ce2c8f
xapi-project/xen-api
posix_channel.ml
let my_domid = 0 (* TODO: figure this out *) exception End_of_file exception Channel_setup_failed module CBuf = struct (** A circular buffer constructed from a string *) type t = { mutable buffer: bytes ; mutable len: int (** bytes of valid data in [buffer] *) * index of first valid byte in [ buffer ]...
null
https://raw.githubusercontent.com/xapi-project/xen-api/47fae74032aa6ade0fc12e867c530eaf2a96bf75/ocaml/xapi-idl/lib/posix_channel.ml
ocaml
TODO: figure this out * A circular buffer constructed from a string * bytes of valid data in [buffer] Offset of the character after the substring Offset of the next empty character [a'] is read from [a] and will be written to [b] [b'] is read from [b] and will be written to [a] If we can't make any progres...
exception End_of_file exception Channel_setup_failed module CBuf = struct type t = { mutable buffer: bytes * index of first valid byte in [ buffer ] * true if no more data can be read due to EOF ; mutable w_closed: bool * true if no more data can be written due to EOF } let empty length = { ...
9afe158a4b74d535eaca24fa3c573c90491b89866bb81c9b2c9da39ce98631a6
rubenbarroso/EOPL
1_22.scm
;A variable x occurs free in a lambda calculus expression E if and only if ; 1 . E is a variable reference and E is the same as x ; or ; 2 . E is of the form ( lambda ( y1 y2 ... yn ) E ' ) , where n>0 and x is different ; from every yi (i=1..n), and x occurs free in E'; or ; 3 . E is of the form ( E1 E2 ) and x occu...
null
https://raw.githubusercontent.com/rubenbarroso/EOPL/f9b3c03c2fcbaddf64694ee3243d54be95bfe31d/src/chapter1/1_22.scm
scheme
A variable x occurs free in a lambda calculus expression E if and only if or from every yi (i=1..n), and x occurs free in E'; or modified A quick verification: A variable x occurs bound in a lambda calculus expression E if and only if bound in E' or x is equal to any yi (i=1..n) and yi occurs free in E'; or ...
2 . E is of the form ( lambda ( y1 y2 ... yn ) E ' ) , where n>0 and x is different 3 . E is of the form ( E1 E2 ) and x occurs free in E1 or E2 (define occurs-free? (lambda (var exp) (cond ((symbol? exp) (eqv? var exp)) ((eqv? (car exp) 'lambda) (occurs-free? var (caddr exp)))) (el...
a3b1301fba2696073afe224175ccfa7b692d48974249ae01b0fbcd072e2f8132
byorgey/AoC
template.hs
#!/usr/bin/env stack -- stack --resolver lts-19.28 script --package containers --package split --package array # LANGUAGE FlexibleContexts # {-# LANGUAGE LambdaCase #-} # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # import Control.Applicative import Control.Arrow ((>>>))...
null
https://raw.githubusercontent.com/byorgey/AoC/e47255f0f2145a6bf6d2f220cc9d536732243166/template.hs
haskell
stack --resolver lts-19.28 script --package containers --package split --package array # LANGUAGE LambdaCase # import Control.Lens ---------------------------------------------------------- toTable :: Ix i => (i, i) -> (i -> a) -> Array i a memo :: Ix i => (i,i) -> (i -> a) -> (i -> a) memo rng = (...
#!/usr/bin/env stack # LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # import Control.Applicative import Control.Arrow ((>>>)) import Control . Monad . State import Control . . Writer import Data.Array.Unboxed imp...
f8325acc4b64cd679e430082d6865c5c895b07e85744af0f90ff7a1bd1afc552
josefs/Gradualizer
other_module.erl
-module(other_module). -compile([export_all, nowarn_export_all]). %% these exported types are used in remote_types module -export_type([my_generic/1, nested_generic/1]). % -type other_module_type() :: other_module. %% v-- Either a local type (my_tuple) to this module or a remote user type -type my_generic(RetType) ...
null
https://raw.githubusercontent.com/josefs/Gradualizer/212db7019c91d66e38be3ae5bc8cf35f52a1b951/test/should_pass/other_module.erl
erlang
these exported types are used in remote_types module -type other_module_type() :: other_module. v-- Either a local type (my_tuple) to this module or a remote user type A type to be shadowed by a type with the same name in a local module. To be used in `user_types:my_generic(my_shadowed_type())`
-module(other_module). -compile([export_all, nowarn_export_all]). -export_type([my_generic/1, nested_generic/1]). -type my_generic(RetType) :: my_shadowed_type() | {ok, RetType}. -type my_shadowed_type() :: other_module. -type nested_generic(RetType) :: nested_generic | my_generic(RetType).
3a65bf43e46d3e4308d4727dc8dac39a3809f87343831a8731f286407ff80f67
racket/typed-racket
base-env-numeric.rkt
#lang typed/racket/shallow (let ((x : Nonnegative-Integer 5)) (= x 0) (* x 1) (+ x 1))
null
https://raw.githubusercontent.com/racket/typed-racket/700506ca01393f211229101c47d8420f6d535de9/typed-racket-test/unit-tests/shallow-rewrite-expansion/base-env-numeric.rkt
racket
#lang typed/racket/shallow (let ((x : Nonnegative-Integer 5)) (= x 0) (* x 1) (+ x 1))
22cab69044a58c387452b0fd5c45a998010aa1a47799f597543c840d5135c7fc
caisah/sicp-exercises-and-examples
list_ref.scm
(define (list-ref items n) (if (= n 0) (car items) (list-ref (cdr items) (- n 1)))) (define squares (list 1 4 9 16 25)) 16
null
https://raw.githubusercontent.com/caisah/sicp-exercises-and-examples/605c698d7495aa3474c2b6edcd1312cb16c5b5cb/2.2.1-representing_sequences/list_ref.scm
scheme
(define (list-ref items n) (if (= n 0) (car items) (list-ref (cdr items) (- n 1)))) (define squares (list 1 4 9 16 25)) 16
0e25b251f8a2c0c16172d1b29e4ba691e2c9e81784c2f22087403c7a1387f422
racket/web-server
templates.rkt
#lang racket/base (require xml scribble/text (for-syntax racket/base racket/list syntax/parse) racket/port) (define-syntax (include-template stx) (syntax-parse stx [(_ (~optional (~seq #:command-char command-char:expr)) p:expr) (quasisynta...
null
https://raw.githubusercontent.com/racket/web-server/f718800b5b3f407f7935adf85dfa663c4bba1651/web-server-lib/web-server/templates.rkt
racket
#lang racket/base (require xml scribble/text (for-syntax racket/base racket/list syntax/parse) racket/port) (define-syntax (include-template stx) (syntax-parse stx [(_ (~optional (~seq #:command-char command-char:expr)) p:expr) (quasisynta...
c61e3958f7e1c2cd3752dd5c9fd9f1b811233f9054a5f62ee28c52e2907673b9
clojure/tools.nrepl
interruptible_eval.clj
(ns ^{:author "Chas Emerick"} clojure.tools.nrepl.middleware.interruptible-eval (:require [clojure.tools.nrepl.transport :as t] clojure.tools.nrepl.middleware.pr-values clojure.main) (:use [clojure.tools.nrepl.misc :only (response-for returning)] [clojure.tools.nrepl.middleware ...
null
https://raw.githubusercontent.com/clojure/tools.nrepl/d4bb14e841b453721f009f4e9e0e9b2742b4bdc2/src/main/clojure/clojure/tools/nrepl/middleware/interruptible_eval.clj
clojure
expression results and errors clojure.main/repl paves over certain vars even if they're already thread-bound this is essentially the same as Executors.newCachedThreadPool, except A little mini-agent implementation. Needed because agents cannot be used to host REPL evaluation: -17 interrupts are inherently racy; w...
(ns ^{:author "Chas Emerick"} clojure.tools.nrepl.middleware.interruptible-eval (:require [clojure.tools.nrepl.transport :as t] clojure.tools.nrepl.middleware.pr-values clojure.main) (:use [clojure.tools.nrepl.misc :only (response-for returning)] [clojure.tools.nrepl.middleware ...
6d3eba02c60f32e98d0b0e88fa22697c364e99a5cf67815d6c090b8b9490844b
ocaml/opam
opamSolver.mli
(**************************************************************************) (* *) Copyright 2012 - 2019 OCamlPro Copyright 2012 INRIA (* ...
null
https://raw.githubusercontent.com/ocaml/opam/c9ab85dec017d0392bffaf7fb238bad8fa8c1285/src/solver/opamSolver.mli
ocaml
************************************************************************ All rights reserved. This file is distributed under the terms of the exception on linking descr...
Copyright 2012 - 2019 OCamlPro Copyright 2012 INRIA GNU Lesser General Public License version 2.1 , with the special * Entry point to the solver , conversion of opam package universes to Cudf , dependencie...
0e1253522e3ab1f3170c993ad7735f815b1cab637b609b1ce9484133fdc48471
haskell-beam/beam
employee1out-agg.hs
# LANGUAGE MultiParamTypeClasses # -- ! BUILD_COMMAND: runhaskell --ghc-arg=-fglasgow-exts -XStandaloneDeriving -XTypeSynonymInstances -XDeriveGeneric -XGADTs -XOverloadedStrings -XFlexibleContexts -XFlexibleInstances -XTypeFamilies -XTypeApplications -XAllowAmbiguousTypes -XPartialTypeSignatures -XCPP -fno-warn-parti...
null
https://raw.githubusercontent.com/haskell-beam/beam/3dc9f47b081384c99b45f3b4264f419ebc6d7b09/docs/beam-templates/employee1out-agg.hs
haskell
! BUILD_COMMAND: runhaskell --ghc-arg=-fglasgow-exts -XStandaloneDeriving -XTypeSynonymInstances -XDeriveGeneric -XGADTs -XOverloadedStrings -XFlexibleContexts -XFlexibleInstances -XTypeFamilies -XTypeApplications -XAllowAmbiguousTypes -XPartialTypeSignatures -XCPP -fno-warn-partial-type-signatures ! BUILD_DIR: beam-...
# LANGUAGE MultiParamTypeClasses # module Main where import Database.Beam hiding (withDatabaseDebug) import qualified Database.Beam as Beam import Database.Beam.Backend.SQL.SQL92 import Database.Beam.Sqlite hiding (runBeamSqliteDebug) import qualified Database.Beam.Sqlite as Sqlite import Database.SQLite.Simple impo...
78883eb3b735c14c1c40cc5ded5ae92cd53fdc33e304c44f05b80239cccd4528
garrigue/lablgtk
message.ml
(**************************************************************************) Lablgtk - Camlirc (* *) (* * You are free to do anything you want with this code as long *) (* as it i...
null
https://raw.githubusercontent.com/garrigue/lablgtk/504fac1257e900e6044c638025a4d6c5a321284c/applications/camlirc/message.ml
ocaml
************************************************************************ * You are free to do anything you want with this code as long as it is for personal use. ...
Lablgtk - Camlirc < > < > $ Id$ exception Unknown_message type irc_message = MSG_DNS | MSG_HASH | MSG_DIE | MSG_CLOSE | MSG_RESTART | MSG_REHASH | MSG_SERVSET | MSG_SERVLIST | MSG_SQU...
43d23cf18f017c89a62da3ff740c0a2bc2febe84fade1577598ce5f783303a29
arttuka/reagent-material-ui
timeline_dot.cljs
(ns reagent-mui.lab.timeline-dot "Imports @mui/lab/TimelineDot as a Reagent component. Original documentation is at -ui/api/timeline-dot/ ." (:require [reagent.core :as r] ["@mui/lab/TimelineDot" :as MuiTimelineDot])) (def timeline-dot (r/adapt-react-class (.-default MuiTimelineDot)))
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/core/reagent_mui/lab/timeline_dot.cljs
clojure
(ns reagent-mui.lab.timeline-dot "Imports @mui/lab/TimelineDot as a Reagent component. Original documentation is at -ui/api/timeline-dot/ ." (:require [reagent.core :as r] ["@mui/lab/TimelineDot" :as MuiTimelineDot])) (def timeline-dot (r/adapt-react-class (.-default MuiTimelineDot)))
221f8f8a14d17a4033a4b1c6078f676f9736e7ef8f8cf18a21ef1fe77a04455f
dpiponi/Moodler
nand.hs
do (x0, y0) <- mouse let (x, y) = quantise2 quantum (x0, y0) root <- currentPlane and0 <- new' "nand" container162 <- container' "panel_nand.png" (x+(0.0), y+(0.0)) (Inside root) in57 <- plugin' (and0 ++ "." ++ "signal1") (x+(-60.0), y+(24.0)) (Outside container162) setColour in57 "#contro...
null
https://raw.githubusercontent.com/dpiponi/Moodler/a0c984c36abae52668d00f25eb3749e97e8936d3/Moodler/scripts/nand.hs
haskell
do (x0, y0) <- mouse let (x, y) = quantise2 quantum (x0, y0) root <- currentPlane and0 <- new' "nand" container162 <- container' "panel_nand.png" (x+(0.0), y+(0.0)) (Inside root) in57 <- plugin' (and0 ++ "." ++ "signal1") (x+(-60.0), y+(24.0)) (Outside container162) setColour in57 "#contro...
8197eaf5e479214e34f1b0f8893914e91fc7892eacabc9206541551c2edf0d76
hasktorch/hasktorch
GSelfAttention.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVaria...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/cf0ed1aba9c41123ba46f7c0788a4df10fbfe1ef/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/GSelfAttention.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # | Generic self-attention layer data type. - @initialLayerNorm@: the initial layer normalization - @mha@: the multi-headed attention layer - @dropout@: the dropout layer - @finalLayerNorm@: the final layer normalization | initial layer normalization of the self-at...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators ...
d79c2bec613ebcbc49206315cc026d36e081db8803b2eba9413097e774f2f17c
bobzhang/fan
patlid.ml
let u : Ast.patt -> string= with patt fun [{|$(lid:x)|} -> x |_ -> "x"];
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/testr/loc/patlid.ml
ocaml
let u : Ast.patt -> string= with patt fun [{|$(lid:x)|} -> x |_ -> "x"];
4b190b1bd5b70f01c9534235d60196df2cfab17fe199a7a5c10bcb0dcc345f88
mirage/ocaml-cow
json.mli
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * Copyright ( c ) 2010 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . ...
null
https://raw.githubusercontent.com/mirage/ocaml-cow/44cdd5bb66c7096ba94aeb311474cd3f3a3cf1fa/src/json.mli
ocaml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * Copyright ( c ) 2010 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . ...
052a0c02ddef6b37d59c0fa8ce3025b64d020fd9e92ac3afd590a251aa5bff9c
brendanhay/gogol
UpdateDdl.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-spanner/gen/Gogol/Spanner/Projects/Instances/Databases/UpdateDdl.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated /See:/ </ Cloud Spanner API Reference> for @spanner.projects.instances.databases.updateDdl@. * Resource ** Constructing a Request 'SpannerProjectsInstancesDatabasesUpdateDdl' request conforms to. /See:/ 'newSpannerProjectsIn...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
edf19f19c8e12e06d288ea4f6724fb3e2347b9a8811427946f72e93522266e2a
OCamlPro/opam-manager
opam_manager_wrapper.ml
(**************************************************************************) (* *) Copyright 2014 - 2015 , (* *) (* All rights reserved.This file is distributed under ...
null
https://raw.githubusercontent.com/OCamlPro/opam-manager/2b5b9cc834c0595c6bf00b07f47f25ab71f21acc/src/opam_manager_wrapper.ml
ocaml
************************************************************************ All rights reserved.This file is distributed under the terms of the exception. ...
Copyright 2014 - 2015 , GNU Lesser General Public License version 3.0 with linking OPAM is distributed in the hope that it will be useful , but WITHOUT or FITNESS FOR A PARTICULAR PURPOSE.See the GNU General Public open ManagerMisc let () = if Array.length Sys.argv >= 2 && ...
01940d38a89d0b72a840d84787eb88a74d4745b600edcaa29e12fb1227a96a2a
aionescu/vec
test.ml
open OUnit2 open Vec.Infix let make _ = let v = Vec.make () in assert_equal 0 (Vec.length v); assert_equal Vec.default_growth_rate (Vec.growth_rate v); let v = Vec.make ~growth_rate:3. () in assert_equal 3. (Vec.growth_rate v) let capacity _ = let v = Vec.make () in Vec.ensure_capacity 30 v; assert_...
null
https://raw.githubusercontent.com/aionescu/vec/d7ff6e8422de5a0ec9d285f3ec87396fee90da9b/test/test.ml
ocaml
open OUnit2 open Vec.Infix let make _ = let v = Vec.make () in assert_equal 0 (Vec.length v); assert_equal Vec.default_growth_rate (Vec.growth_rate v); let v = Vec.make ~growth_rate:3. () in assert_equal 3. (Vec.growth_rate v) let capacity _ = let v = Vec.make () in Vec.ensure_capacity 30 v; assert_...
2d0ee00964d336661c18488ccdddc57a45f65e65dd590778064519b4266fd8f5
batterseapower/parallel-io
Fuzz.hs
module Main where import Data.IORef import qualified Numeric import System.Random import Control.Concurrent import Control.Concurrent.ParallelIO.Local import Control.Monad -- | Range for number of threads to spawn sPAWN_RANGE = (0, 100) -- | Delay range in microseconds dELAY_RANGE = (0, 1000000) | Out of 100 ...
null
https://raw.githubusercontent.com/batterseapower/parallel-io/f605d693956697318a981a692f0d2c44c7d4c071/Control/Concurrent/ParallelIO/Fuzz.hs
haskell
| Range for number of threads to spawn | Delay range in microseconds | Number of threads to have processing work items Birth rate is the rate at which new work items enter the queue Service rate is the rate at which work items are removed from the pool
module Main where import Data.IORef import qualified Numeric import System.Random import Control.Concurrent import Control.Concurrent.ParallelIO.Local import Control.Monad sPAWN_RANGE = (0, 100) dELAY_RANGE = (0, 1000000) | Out of 100 parallel actions , how many should recursively spawn ? sPAWN_PERCENTAGE :: ...
c9e46c392067dacf931c402361ed81a56bff5ff7854379c8eb9202f7a644d085
bufferswap/ViralityEngine
common-structs.lisp
(in-package #:vumbra.common) (defstruct mesh-attrs (mesh/pos :vec3) (mesh/normal :vec3) (mesh/tangent :vec4) (mesh/color :vec4) (mesh/uv1 :vec2) (mesh/uv2 :vec2) (mesh/joints :vec4) (mesh/weights :vec4))
null
https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/support/vumbra/src/common-structs.lisp
lisp
(in-package #:vumbra.common) (defstruct mesh-attrs (mesh/pos :vec3) (mesh/normal :vec3) (mesh/tangent :vec4) (mesh/color :vec4) (mesh/uv1 :vec2) (mesh/uv2 :vec2) (mesh/joints :vec4) (mesh/weights :vec4))
561b535537cd91719e8c1a82be1a62580f4969d41dfca6721367de68f3ee4120
isovector/cornelis
Types.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingStrategies #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # {-# LANGUAGE StandaloneDeriving #-} # LANGUAGE Undecid...
null
https://raw.githubusercontent.com/isovector/cornelis/29d58795bb12ba60cb016e10a790b535a14f00a8/src/Cornelis/Types.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE StandaloneDeriving # TokenBased Agda sometimes takes a while to process. We want to be able to modify the will be out of sync. 'Diff0' data structure (in field ...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -Wno - orphans # module Cornelis.Types ( module Cornelis.Types , InteractionId , Buffer , Window , Text , traceMX , HasCallStack ) where import ...
5d465e7650e59be0438cbf215e768b820bf9bcf1f3e55e877c327d7c940b7899
agentm/project-m36
DatabaseContextFunctionUtils.hs
module ProjectM36.DatabaseContextFunctionUtils where import ProjectM36.RelationalExpression import ProjectM36.Base import ProjectM36.DatabaseContextFunctionError import ProjectM36.Error import ProjectM36.StaticOptimizer executeDatabaseContextExpr :: DatabaseContextExpr -> TransactionId -> TransactionGraph -> DatabaseC...
null
https://raw.githubusercontent.com/agentm/project-m36/57a75b35e84bebf0945db6dae53350fda83f24b6/src/lib/ProjectM36/DatabaseContextFunctionUtils.hs
haskell
module ProjectM36.DatabaseContextFunctionUtils where import ProjectM36.RelationalExpression import ProjectM36.Base import ProjectM36.DatabaseContextFunctionError import ProjectM36.Error import ProjectM36.StaticOptimizer executeDatabaseContextExpr :: DatabaseContextExpr -> TransactionId -> TransactionGraph -> DatabaseC...
be8e73f26eff73aa7bd2cd90bff48a227ce53743e7a125f01e8c3278dbabdd02
scrintal/heroicons-reagent
x_mark.cljs
(ns com.scrintal.heroicons.mini.x-mark) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:d "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/x_mark.cljs
clojure
(ns com.scrintal.heroicons.mini.x-mark) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:d "M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l...
93bc639abb9a7c22001e954baba6f6158a5e7c0ebdf7861f566f62540d54163b
binaryage/chromex
i18n.clj
(ns chromex.ext.i18n "Use the chrome.i18n infrastructure to implement internationalization across your whole app or extension. * available since Chrome 36 * " (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refer [gen-wrap-helper]] [chromex...
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/exts/chromex/ext/i18n.clj
clojure
to get the locale, use for example, messageName is not a string or the substitutions array this method returns undefined. -- convenience ------------------------------------------------------------------------------------------------------------ ---------------------------------------------------------------------...
(ns chromex.ext.i18n "Use the chrome.i18n infrastructure to implement internationalization across your whole app or extension. * available since Chrome 36 * " (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refer [gen-wrap-helper]] [chromex...
79ae9e1f8db7e9cb7d4a2c932c6fbf6b57ca8823ee4c91c112cfbbfa47efc8d9
tsloughter/chatterbox_tiles
chatterbox_tiles_sup.erl
%%%------------------------------------------------------------------- %% @doc chatterbox_tiles top level supervisor. %% @end %%%------------------------------------------------------------------- -module(chatterbox_tiles_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export(...
null
https://raw.githubusercontent.com/tsloughter/chatterbox_tiles/ff1c350e6351b03f3ec25edec3676308827ec2f3/src/chatterbox_tiles_sup.erl
erlang
------------------------------------------------------------------- @doc chatterbox_tiles top level supervisor. @end ------------------------------------------------------------------- API Supervisor callbacks ==================================================================== API functions ======================...
-module(chatterbox_tiles_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). Child : : { Id , StartFunc , Restart , Shutdown , Type , Modules } init([]) -> {ok, { {one_for_all, 0, 1},...
5c2477e713d1fc983eede4ebeadbd853fd1401a1f605bb108204ac6c6d5949a5
cram2/cram
action-designator-server.lisp
;;; Copyright ( c ) 2017 , < > ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this list...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_common/cram_commander/src/action-designator-server.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redi...
Copyright ( c ) 2017 , < > * Neither the name of the Institute for Artificial Intelligence/ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR ...
c8c8f0ee686f64f93fa2da893e75a2724bec353ab375c789a0d96064449d1036
RefactoringTools/HaRe
E5_TokOut.hs
module E5 where --Any type/data constructor name declared in this module can be renamed. --Any type variable can be renamed. Rename type Constructor ' BTree ' to ' MyBTree ' data BTree a = Empty | T a (BTree a) (BTree a) deriving Show buildtree :: Ord a => [a] -> (BTree a) buildtree [] = Empty build...
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/testing/unfoldAsPatterns/E5_TokOut.hs
haskell
Any type/data constructor name declared in this module can be renamed. Any type variable can be renamed. (T val Empty Empty))
module E5 where Rename type Constructor ' BTree ' to ' MyBTree ' data BTree a = Empty | T a (BTree a) (BTree a) deriving Show buildtree :: Ord a => [a] -> (BTree a) buildtree [] = Empty buildtree (x:xs) = head (insert x (buildtree xs)) insert :: Ord a => a -> BTree a -> [BTree a] insert val v2 = ...
bcd5b8e15e183e008eeb3bfb3a11bc7aae3fd8fee3d59857d909e9bea51f4b91
kadena-community/bag-of-holding
Signing.hs
# LANGUAGE DataKinds # {-# LANGUAGE LambdaCase #-} # LANGUAGE TypeApplications # {-# LANGUAGE TypeOperators #-} module BOH.Signing ( signApp ) where import Brick.BChan (BChan, writeBChan) import qualified Kadena.SigningApi as K import Network.Wai.Middleware.Cors import R...
null
https://raw.githubusercontent.com/kadena-community/bag-of-holding/73aa21741b88d8af15e967d93d8cd2ea2605afa1/exec/BOH/Signing.hs
haskell
# LANGUAGE LambdaCase # # LANGUAGE TypeOperators # -
# LANGUAGE DataKinds # # LANGUAGE TypeApplications # module BOH.Signing ( signApp ) where import Brick.BChan (BChan, writeBChan) import qualified Kadena.SigningApi as K import Network.Wai.Middleware.Cors import RIO hiding (Handler) import Servant server :: BChan K.Sig...
9888c16dcb4edcf1e692504e32961f98ae81325cdf590724b661016b5b2fb837
CloudI/CloudI
no_native_parse_test.erl
-*- coding : utf-8 -*- -*- erlang - indent - level : 2 -*- %%% ------------------------------------------------------------------- Copyright 2010 - 2011 < > , < > and < > %%% This file is part of PropEr . %%% %%% PropEr is free software: you can redistribute it a...
null
https://raw.githubusercontent.com/CloudI/CloudI/3e45031c7ee3e974ead2612ea7dd06c9edf973c9/src/external/proper/test/no_native_parse_test.erl
erlang
------------------------------------------------------------------- PropEr is free software: you can redistribute it and/or modify (at your option) any later version. PropEr is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITN...
-*- coding : utf-8 -*- -*- erlang - indent - level : 2 -*- Copyright 2010 - 2011 < > , < > and < > This file is part of PropEr . it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the Licens...
e5ecb49e355bbfe04b55a53353e0d31ddc07866d7474426a484b43d218bb46cf
haskell/win32
Path.hs
#if __GLASGOW_HASKELL__ >= 709 {-# LANGUAGE Safe #-} #else # LANGUAGE Trustworthy # #endif ----------------------------------------------------------------------------- -- | -- Module : Graphics.Win32.GDI.Path Copyright : ( c ) , 1997 - 2003 -- License : BSD-style (see the file libraries/base/LICENS...
null
https://raw.githubusercontent.com/haskell/win32/e6c0c0f44f6dfc2f8255fc4a5017f4ab67cd0242/Graphics/Win32/GDI/Path.hs
haskell
# LANGUAGE Safe # --------------------------------------------------------------------------- | Module : Graphics.Win32.GDI.Path License : BSD-style (see the file libraries/base/LICENSE) Stability : provisional Portability : portable ---------------------------------------------------------------...
#if __GLASGOW_HASKELL__ >= 709 #else # LANGUAGE Trustworthy # #endif Copyright : ( c ) , 1997 - 2003 Maintainer : Vuokko < > A collection of FFI declarations for interfacing with Win32 . module Graphics.Win32.GDI.Path ( beginPath, closeFigure, endPath, fillPath, flattenPath , pathTo...
bfcd1b7970be9d922d2e050ac0475b55b73db6c9776c500e524d92d8b85ce648
brendanhay/amazonka
DeleteMailboxPermissions.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused -...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-workmail/gen/Amazonka/WorkMail/DeleteMailboxPermissions.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Deletes permissions granted to a member (user or group). * Creating a Request * Request Lenses * Destructuring the Response * Response Lenses | /See:/ 'newDeleteMailboxPermissions' smart constructor. | The identifier of the ...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # De...
b100aea658110b39f7e98183c86e41277f74849b4940961fe37de6555f89475a
reborg/clojure-essential-reference
5.clj
< 1 > :analyzer.jvm [:memoize :analyzer :reader :asm] :memoize [:cache] :cache [:priority-map] :priority-map [] :asm []}) < 2 > ;; (:cache)
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/SequentialProcessing/mapcat/5.clj
clojure
(:cache)
< 1 > :analyzer.jvm [:memoize :analyzer :reader :asm] :memoize [:cache] :cache [:priority-map] :priority-map [] :asm []}) < 2 >
579dcc90464b61a6bfad5ea740fa4ab0b089817feb3d8c0f8202c38f5fe04e48
nklein/draw
paths.lisp
(in-package #:draw-backend) (defun close-path (renderer) (multiple-value-bind (x y) (start-of-path renderer) (set-location renderer x y))) (defgeneric %move-to (renderer x y) (:method :before ((renderer renderer) x y) (set-start-of-path renderer x y) (set-location renderer x y)) (:docu...
null
https://raw.githubusercontent.com/nklein/draw/2b7a51fa06c81a46dffc439a35b3b0ac18c94893/src/base/backend/paths.lisp
lisp
(in-package #:draw-backend) (defun close-path (renderer) (multiple-value-bind (x y) (start-of-path renderer) (set-location renderer x y))) (defgeneric %move-to (renderer x y) (:method :before ((renderer renderer) x y) (set-start-of-path renderer x y) (set-location renderer x y)) (:docu...
3f2af9882da3d06276cc37654a270c704f562bebe5023fe4fe2138e2f62ab2d1
alexandroid000/improv
GetMapAction.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Ros.Nav_msgs.GetMapAction where import qualified Prelude as P import Prelude ((.), (+), (*)) import qualified Data.Typeable as T import Control.Applicative import Ros.Internal.RosBinary ...
null
https://raw.githubusercontent.com/alexandroid000/improv/ef0f4a6a5f99a9c7ff3d25f50529417aba9f757c/roshask/msgs/Nav_msgs/Ros/Nav_msgs/GetMapAction.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE DeriveDataTypeable #
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Ros.Nav_msgs.GetMapAction where import qualified Prelude as P import Prelude ((.), (+), (*)) import qualified Data.Typeable as T import Control.Applicative import Ros.Internal.RosBinary import Ros.Internal.Msg.MsgInfo import qualified GHC.Generics as G impo...
d072677d4a2c00ed8969cca2f3b7234bfabc8ba86d30ada0c4100a0ecf07e30e
kostmo/circleci-failure-tracker
Session.hs
{-# LANGUAGE RankNTypes #-} {- mimic server side session store -} module Session where import Control.Concurrent.MVar import qualified Data.HashMap.Strict as Map import Types initCacheStore :: IO CacheStore initCacheStore = newMVar Map.empty removeKey :: CacheStore -> IDPLabel -> IO () r...
null
https://raw.githubusercontent.com/kostmo/circleci-failure-tracker/393d10a72080bd527fdb159da6ebfea23fcd52d1/app/fetcher/src/Session.hs
haskell
# LANGUAGE RankNTypes # mimic server side session store
module Session where import Control.Concurrent.MVar import qualified Data.HashMap.Strict as Map import Types initCacheStore :: IO CacheStore initCacheStore = newMVar Map.empty removeKey :: CacheStore -> IDPLabel -> IO () removeKey store idpKey = do m1 <- takeMVar store let m2 = Map.u...
4c5c20eaa892f796aeec26ea6020cd4692de3c53fc4ad802b7997c8d09d1287f
nick8325/quickspec
Prop.hs
{-# OPTIONS_HADDOCK hide #-} # LANGUAGE DeriveGeneric , TypeFamilies , DeriveFunctor , FlexibleInstances , MultiParamTypeClasses , UndecidableInstances , FlexibleContexts , TypeOperators # module QuickSpec.Internal.Prop where import Data.Bool (bool) import Control.Monad import qualified Data.DList as DList import Data...
null
https://raw.githubusercontent.com/nick8325/quickspec/cb61f719d3d667674431867037ff44dec22ca4f9/src/QuickSpec/Internal/Prop.hs
haskell
# OPTIONS_HADDOCK hide # XXX this is a hack -------------------------------------------------------------------- Making properties look pretty (naming variables, etc.) --------------------------------------------------------------------
# LANGUAGE DeriveGeneric , TypeFamilies , DeriveFunctor , FlexibleInstances , MultiParamTypeClasses , UndecidableInstances , FlexibleContexts , TypeOperators # module QuickSpec.Internal.Prop where import Data.Bool (bool) import Control.Monad import qualified Data.DList as DList import Data.Ord import QuickSpec.Interna...
129d5948cb3d119b439645c09c9ed11e51bc9ea643ef22cc73500761356aeed2
aiya000/haskell-examples
Main.hs
import GHC.Stack main :: IO () main = do bar pure () bar :: IO () bar = foo foo :: HasCallStack => IO () foo = currentCallStack >>= mapM_ putStrLn -- {output} Main.main ( GHC / Stack / Main.hs:(4,1)-(6,9 ) ) Main.bar ( GHC / Stack / Main.hs:9:1 - 9 ) Main.foo ( GHC / Stack / Main.hs:12:1 - 41 )
null
https://raw.githubusercontent.com/aiya000/haskell-examples/a337ba0e86be8bb1333e7eea852ba5fa1d177d8a/GHC/Stack/Main.hs
haskell
{output}
import GHC.Stack main :: IO () main = do bar pure () bar :: IO () bar = foo foo :: HasCallStack => IO () foo = currentCallStack >>= mapM_ putStrLn Main.main ( GHC / Stack / Main.hs:(4,1)-(6,9 ) ) Main.bar ( GHC / Stack / Main.hs:9:1 - 9 ) Main.foo ( GHC / Stack / Main.hs:12:1 - 41 )
1aae0907e3f062bdc6fd3eeadbbf34e4fd1e0cefe75693be86d594bb59f822e8
samcf/ogres
layout.cljs
(ns ogres.app.layout (:require [ogres.app.hooks :refer [use-query create-portal]] [ogres.app.render.canvas :refer [canvas]] [ogres.app.render.panel :refer [container]] [ogres.app.render.tokens :refer [tokens]] [ogres.app.render.toolbar :refer [toolbar]] [ogr...
null
https://raw.githubusercontent.com/samcf/ogres/c6441f6556403b3c4ed4300f38718173c18e8838/src/main/ogres/app/layout.cljs
clojure
(ns ogres.app.layout (:require [ogres.app.hooks :refer [use-query create-portal]] [ogres.app.render.canvas :refer [canvas]] [ogres.app.render.panel :refer [container]] [ogres.app.render.tokens :refer [tokens]] [ogres.app.render.toolbar :refer [toolbar]] [ogr...
93a55dd5afa9902334b446f9bf27c706a57d7adad2fa142b6952f784b28b428d
mbj/stratosphere
DnsConfigProperty.hs
module Stratosphere.ServiceDiscovery.Service.DnsConfigProperty ( module Exports, DnsConfigProperty(..), mkDnsConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.ServiceDiscovery.Service.Dn...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/servicediscovery/gen/Stratosphere/ServiceDiscovery/Service/DnsConfigProperty.hs
haskell
# SOURCE #
module Stratosphere.ServiceDiscovery.Service.DnsConfigProperty ( module Exports, DnsConfigProperty(..), mkDnsConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Val...
3a3ca7ddf33362b82aa2378b97e3ef2fcf323c67d1f841814a35be66f9d8a7e3
gregr/experiments
scratch.rkt
#lang racket ;(write (current-command-line-arguments)) ;(newline) ;(define (rl) ;(display "input a line\n") ;(read-line)) ;;(rl) ;;(rl) ;(define: (something) ;ok) ;'((((((((((((((((((((((((())))))))))))))))))))))))) ( define str10 " 01245678 " ) ;(define l10 ;(list str10 str10 str10 str10 str10 ;s...
null
https://raw.githubusercontent.com/gregr/experiments/cd4c7953f45102539081077bbd6195cf834ba2fa/supercompilation/cog/scratch/scratch.rkt
racket
(write (current-command-line-arguments)) (newline) (define (rl) (display "input a line\n") (read-line)) (rl) (rl) (define: (something) ok) '((((((((((((((((((((((((())))))))))))))))))))))))) (define l10 (list str10 str10 str10 str10 str10 str10 str10 str10 str10 str10)) (define l7 (list str10 str10 str10 str10 str10 st...
#lang racket ( define str10 " 01245678 " ) ( match ( list 3 4 ) [ ( list 1 2 ) ' ok ] [ ' ( 3 x ) x ] ) eof file->lines > ( define server ( tcp - listen 12345 ) ) > ( define - values ( p stdout stdin stderr ) ( subprocess # f # f # f " /usr / bin / wc " " -w " ) ) > ( display " a b c\n " stdin ) > ( close - ou...
f7d8a22e67b40802a59ae0ac2d5b464d87ff2d4dfd11b08f819e3563bd616145
GaloisInc/pate
ReplHelper.hs
{-# LANGUAGE GADTs #-} # OPTIONS_GHC -fno - warn - unused - imports # module ReplHelper ( getLastRunCmd , setLastRunCmd , freshNonce , nonceValid , thePromptFn , loadNonce , anyRef , Anything(..) , fromAnything ) where import qualified System.IO as IO import qualified System.IO.Unsafe as IO im...
null
https://raw.githubusercontent.com/GaloisInc/pate/63cf19c2a67062c4cd3cf018912e39ff22eedf20/tools/pate-repl/ReplHelper.hs
haskell
# LANGUAGE GADTs #
# OPTIONS_GHC -fno - warn - unused - imports # module ReplHelper ( getLastRunCmd , setLastRunCmd , freshNonce , nonceValid , thePromptFn , loadNonce , anyRef , Anything(..) , fromAnything ) where import qualified System.IO as IO import qualified System.IO.Unsafe as IO import qualified Data.IOR...
bbaaa20fc4d0183102a9a378dd8ed26d8154e900930d453082da9910ceb316a2
philipcmonk/phlisped
find.rkt
#lang racket (require "graph.rkt") ; Return all triples for which (pred t) returns true. (define (graph-filter g pred) (filter pred (graph-edges g))) ; Return all triples joined to 'v'. ; This is graph-neighborhood-foward union graph-neighborhood-backward. (define (graph-neighborhood g v) (append (graph-neighborho...
null
https://raw.githubusercontent.com/philipcmonk/phlisped/ded1be5d9e7206cd3c71db49ccd250fa4381cf99/core/find.rkt
racket
Return all triples for which (pred t) returns true. Return all triples joined to 'v'. This is graph-neighborhood-foward union graph-neighborhood-backward. Return all triples with 'v' as the start. Return all triples with 'v' as the end Start at an initial point and return all triples in the tree created by follow...
#lang racket (require "graph.rkt") (define (graph-filter g pred) (filter pred (graph-edges g))) (define (graph-neighborhood g v) (append (graph-neighborhood-forward g v) (graph-neighborhood-backward g v))) (define (graph-neighborhood-forward g v) (graph-filter g (lambda (t) (equal? (triple-start t) v)))) (defin...
251b3550ba2dcf334a093970081f0987f5e3e26ec5ff406fa7a19401092011c0
SamB/coq
cooking.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/kernel/cooking.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i $Id$ i s Cooking the constants. s...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Term open ...
c204b24addc629ba5b369687817e37becd3ff6764753c0e1eb829f01f6bd973d
zcaudate/hara
difference.clj
(ns hara.lib.jgit.api.difference (:require [clojure.java.io :as io] [hara.object :as object] [hara.lib.jgit.api.repository :as repository]) (:import (org.eclipse.jgit.api Git) (org.eclipse.jgit.diff DiffEntry DiffEntry$ChangeType Edit EditList HistogramDiff RawText RawTextComparat...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/src/hara/lib/jgit/api/difference.clj
clojure
=> (\"(defproject zcaudate/lucid \\\"1.4.5\\\"\\\n\") => #modify {:new-id \"c81c8f4e14c252adecd1d983ce161055d253c62e\", :old-id \"356a16f27cd0e66d5d1950252bd6ae57851881a0\", :new-path \"project.clj\", :old-path \"project.clj\", :new-id \"c81c8f4e14c252adecd1d983ce1610...
(ns hara.lib.jgit.api.difference (:require [clojure.java.io :as io] [hara.object :as object] [hara.lib.jgit.api.repository :as repository]) (:import (org.eclipse.jgit.api Git) (org.eclipse.jgit.diff DiffEntry DiffEntry$ChangeType Edit EditList HistogramDiff RawText RawTextComparat...
d074dccfda71653aa961b576761ddca08f1a463a0bd8899cde46cc420c13bbae
nasa/PRECiSA
Paver.hs
-- Notices: -- Copyright 2020 United States Government as represented by the Administrator of the National Aeronautics and Space Administration . All Rights Reserved . -- Disclaimers No Warranty : THE SUBJECT SOFTWARE IS PROVIDED " AS IS " WITHOUT ANY WARRANTY OF ANY KIND , EITHER EXPRESSED , IMPLIED , OR STATUTOR...
null
https://raw.githubusercontent.com/nasa/PRECiSA/4f72e50d75528ce81cf0858ca9bf58b352e4f4b9/PRECiSA/src/Kodiak/Paver.hs
haskell
Notices: Disclaimers
Copyright 2020 United States Government as represented by the Administrator of the National Aeronautics and Space Administration . All Rights Reserved . No Warranty : THE SUBJECT SOFTWARE IS PROVIDED " AS IS " WITHOUT ANY WARRANTY OF ANY KIND , EITHER EXPRESSED , IMPLIED , OR STATUTORY , INCLUDING , BUT NOT LIMITE...
7e6fd25152fee466e5c0cd61ae5d9e85591a7db24b19869243752d917e3d5fbe
macalimlim/programming-in-haskell
Chapter1.hs
module Chapter1 where -- what is functional programming? -- immutability -- highr order functions -- recursion -- purity -- lazy evaluation other fp languages ( or supports fp ) erlang ( elixir ) lisp ( scheme , racket , clojure , elisp ) ml f # scala javascript php perl java 8 python other fp...
null
https://raw.githubusercontent.com/macalimlim/programming-in-haskell/47d7d9b92c3d79eeedc1123e6eb690f96fa8a4fc/Chapter1.hs
haskell
what is functional programming? immutability highr order functions recursion purity lazy evaluation
module Chapter1 where other fp languages ( or supports fp ) erlang ( elixir ) lisp ( scheme , racket , clojure , elisp ) ml f # scala javascript php perl java 8 python other fp languages (or supports fp) erlang (elixir) lisp (scheme, racket, clojure, elisp) ml f# scala javascript php perl java...
3a3d7a349688af31d1256c89f541eb34f519c83b4416e17d3cd4ce8fa5c0954c
Bogdanp/koyo
continuation.rkt
#lang racket/base (require net/url racket/contract racket/string web-server/http web-server/servlet/servlet-structs web-server/servlet/web "contract.rkt" "http.rkt" "profiler.rkt" "random.rkt") ;; The main advantage to using continuation...
null
https://raw.githubusercontent.com/Bogdanp/koyo/830af934756d1605aa3ebbf22622d082cb7b8758/koyo-lib/koyo/continuation.rkt
racket
The main advantage to using continuations in a web context is that they let you avoid the inversion of control problem. However, that continuations then that person can essentially take over their session. The decorators exposed by this module help prevent those sorts of issues by pinning each continuation to a...
#lang racket/base (require net/url racket/contract racket/string web-server/http web-server/servlet/servlet-structs web-server/servlet/web "contract.rkt" "http.rkt" "profiler.rkt" "random.rkt") comes at a price . If someone guesses t...
865e166814347bc191c0086f7af3e654fb1fe736437d33d618e6a783127e6f85
distrap/lambdadrive
ADC.hs
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE QuasiQuotes # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecordWildCards # module LDrive.Tests.ADC where import Ivory.Language im...
null
https://raw.githubusercontent.com/distrap/lambdadrive/2bbf6b173fbc1c6d1f809ee4f95ec0bf737d7064/src/LDrive/Tests/ADC.hs
haskell
setBit adc_cr2_swstart ?? FIXME: hardcoded channels quality jsqr obfuscation UART buffer transmits in buffers. We want to transmit byte-by-byte and let this monitor manage periodically flushing a buffer.
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE QuasiQuotes # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecordWildCards # module LDrive.Tests.ADC where import Ivory.Language im...
664436815aa5922bf14863f1d9a25a72c97328a43d6c4e703b43331c3445be6f
dmiller/clr.core.async
dispatch.clj
Copyright ( c ) and contributors . 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 a...
null
https://raw.githubusercontent.com/dmiller/clr.core.async/bb861242531cdd6ba727283bf3ddee73db1e1c2d/src/clojure/clojure/core/async/impl/dispatch.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 re...
Copyright ( c ) and contributors . All rights reserved . Ported to by (ns ^{:skip-wiki true} clojure.core.async.impl.dispatch (:require [clojure.core.async.impl.protocols :as impl] [clojure.core.async.impl.exec.threadpool :as tp])) (set! *warn-on-reflection* true) We do ...
a21e26c3071548a700dd8e44c875f840fff47855db3032f0c7b427e6630b26fc
slipstream/SlipStreamServer
common_namespaces.cljc
(ns com.sixsq.slipstream.ssclj.resources.spec.common-namespaces "namespaces and URIs for resource attributes and resources") (def cimi-namespace "") (def cimi-uri "") (def slipstream-namespace "") (def slipstream-uri "")
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/src/com/sixsq/slipstream/ssclj/resources/spec/common_namespaces.cljc
clojure
(ns com.sixsq.slipstream.ssclj.resources.spec.common-namespaces "namespaces and URIs for resource attributes and resources") (def cimi-namespace "") (def cimi-uri "") (def slipstream-namespace "") (def slipstream-uri "")
ce8850cbb29b57eb553ef4b29a09142383012e311eff18ef2cf59ad5c1fd0cfa
clojure-interop/aws-api
AWSMediaPackage.clj
(ns com.amazonaws.services.mediapackage.AWSMediaPackage "Interface for accessing MediaPackage. Note: Do not directly implement this interface, new methods are added to it regularly. Extend from AbstractAWSMediaPackage instead. AWS Elemental MediaPackage" (:refer-clojure :only [require comment defn ->]) (...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.mediapackage/src/com/amazonaws/services/mediapackage/AWSMediaPackage.clj
clojure
(ns com.amazonaws.services.mediapackage.AWSMediaPackage "Interface for accessing MediaPackage. Note: Do not directly implement this interface, new methods are added to it regularly. Extend from AbstractAWSMediaPackage instead. AWS Elemental MediaPackage" (:refer-clojure :only [require comment defn ->]) (...
7ff9ebded301087f85914d04af85596e9b49e0175c56bc9c18806fa0de2e6af3
spurious/sagittarius-scheme-mirror
extensions.scm
-*- mode : scheme ; coding : utf-8 ; -*- ;;; ;;; rfc/smtp/extensions.scm - SMTP extensions ;;; Copyright ( c ) 2010 - 2015 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;;...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/sitelib/rfc/smtp/extensions.scm
scheme
coding : utf-8 ; -*- rfc/smtp/extensions.scm - SMTP extensions Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this lis...
Copyright ( c ) 2010 - 2015 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING (library (rfc smtp extensions) (export s...
a5425c1506ccf7208b3abd6a3c5b0354006afaaded9e351b90c273d324c9703b
BradWBeer/clinch
gui.lisp
;; is working file as I test features...please don't use. Use tutorial05 instead. (ql:quickload :clinch) (ql:quickload :clinch-cairo) (ql:quickload :clinch-pango) (ql:quickload :clinch-freeimage) (use-package :clinch) (defparameter *node* nil) (defparameter *projection* nil) (defparameter *q* nil) (defparameter *butt...
null
https://raw.githubusercontent.com/BradWBeer/clinch/421de1e4844a5142e37cb06805bc2d9d13ba048f/examples/gui/gui.lisp
lisp
is working file as I test features...please don't use. Use tutorial05 instead. (add-child *node* *q*) Enable a few opengl features. Set the blending mode. Enable a few opengl features. Set the blending mode. run init once (clinch:render entity :projection *projection*) (format t "win: ~A mouse: ~A x: ~A y: ~A bu...
(ql:quickload :clinch) (ql:quickload :clinch-cairo) (ql:quickload :clinch-pango) (ql:quickload :clinch-freeimage) (use-package :clinch) (defparameter *node* nil) (defparameter *projection* nil) (defparameter *q* nil) (defparameter *buttons* nil) (defclass button () ((node :initform (make-instance 'node) :...
439a4691b8d0258063bbbf5606d1584f0aa9b0c58ddb34ea301699c4e291fa01
marigold-dev/pollinate
peer.mli
* Peers are nodes in the network other than the user . The built - in failure detector maintains the status of any peer as either Alive , Suspicious , or Faulty , in order to maintain a set of active " neighbors " to communicate with . The built-in failure detector maintains the status of any peer as either Alive...
null
https://raw.githubusercontent.com/marigold-dev/pollinate/87a6f05ddf3c46a2ff73434c8de706e9c29cc738/lib/common/peer.mli
ocaml
* The status of a peer as determined and modified by the [failure detector] and the [suspicion detector]. * {1 API} * Constructs a [Peer.t] from an [Address.t]. This is the recommended way to create a Peer {i from scratch}. * Constructs an [Address.t] from a [Unix.sockaddr] * Adds a neighbor to the given peer's nei...
* Peers are nodes in the network other than the user . The built - in failure detector maintains the status of any peer as either Alive , Suspicious , or Faulty , in order to maintain a set of active " neighbors " to communicate with . The built-in failure detector maintains the status of any peer as either Alive...
35ec07ebe67f37ca696cfc1a5f1b5b4c8bee191106de89f1cf127e6ef4a6a6d5
blynn/compiler
barely.hs
Output bare memory dump instead of ION assembly . infixr 9 .; infixl 7 *; infixl 6 + , -; infixr 5 ++; infixl 4 <*> , <$> , <* , *>; infix 4 == , <=; infixl 3 && , <|>; infixl 2 ||; infixr 0 $; class Eq a where { (==) :: a -> a -> Bool }; instance Eq Int where { (==) = intEq }; undefined = undefined; ($) f x = f x; i...
null
https://raw.githubusercontent.com/blynn/compiler/05f0c92d73b219fa245f164833c5d2345b897fbe/barely.hs
haskell
Map. Parsing. Primitives. More principled perhaps: Type checking. instantiate' :: Type -> Int -> [(String, Type)] -> ((Type, Int), [(String, Type)]) instantiate :: Qual -> Int -> (Qual, Int) type SymTab = [(String, (Qual, Ast))]; No instances! prove :: [(String, [Qual])] -> (Type, Ast) -> Subst -> (Qual, Ast) No...
Output bare memory dump instead of ION assembly . infixr 9 .; infixl 7 *; infixl 6 + , -; infixr 5 ++; infixl 4 <*> , <$> , <* , *>; infix 4 == , <=; infixl 3 && , <|>; infixl 2 ||; infixr 0 $; class Eq a where { (==) :: a -> a -> Bool }; instance Eq Int where { (==) = intEq }; undefined = undefined; ($) f x = f x; i...
2946426b5e220da49f135cef7dffb1372de2a035979000b94ea8034e64da98a0
bobbae/gosling-emacs
mh-send.ml
; This autoloaded file implements the "m" command of mhe. We call "comp" to ; compose the message into buffer "draft", and then when we are ready to ; send it we call "send" to do the evil deed. (defun (&mh-send actn exfl (save-window-excursion (&mh-save-killbuffer) (message "Composing a message..."...
null
https://raw.githubusercontent.com/bobbae/gosling-emacs/8fdda532abbffb0c952251a0b5a4857e0f27495a/lib/maclib/stanford/mh-send.ml
ocaml
; This autoloaded file implements the "m" command of mhe. We call "comp" to ; compose the message into buffer "draft", and then when we are ready to ; send it we call "send" to do the evil deed. (defun (&mh-send actn exfl (save-window-excursion (&mh-save-killbuffer) (message "Composing a message..."...
73b0d415fee08eca78451506b93be486f847af5e6f043eed18ad76960c4a00d5
gigasquid/vsa-clj
vsa_base.clj
(ns gigasquid.vsa-base (:require [tech.v3.datatype.functional :as dtype-fn] [tech.v3.tensor :as dtt])) Following examples in " An Introduction to Hyperdimensional Computing for Robotics " ;; -019-00623-z Uses Gaylor Method for HDV Operations big enough for the " Blessing of Dimensionality " (defn b...
null
https://raw.githubusercontent.com/gigasquid/vsa-clj/e11b09d68034b02b7fc9996afe5fb8e9fe0f1fd7/src/gigasquid/vsa_base.clj
clojure
-019-00623-z The cleanup memory stores the hdv without any noise. When a hdv is retrieved from the bundle it has some amount of noise associated with it. It helps to use the cleaned version after retrieving it for futher operations
(ns gigasquid.vsa-base (:require [tech.v3.datatype.functional :as dtype-fn] [tech.v3.tensor :as dtt])) Following examples in " An Introduction to Hyperdimensional Computing for Robotics " Uses Gaylor Method for HDV Operations big enough for the " Blessing of Dimensionality " (defn binary-rand "Ch...
2d0fe49b28b75909c32e22339f2948ffc1b2da8328fa2e21f4c12fcb0e5adacc
ocaml-flambda/ocaml-jst
inline_and_simplify_aux.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/7e5a626e4b4e12f1e9106564e1baba4d0ef6309a/middle_end/flambda/inline_and_simplify_aux.ml
ocaml
************************************************************************ OCaml ...
, OCamlPro and , Copyright 2014 - -2016 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the [@@@ocaml.warning "+a-4-9-30-40-41-42-66"] open! Int_replace_polymor...