_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
2cd87f134dfb14b109b08e4d3cb7236d3b10377f88f575e08d8cae7ab7f40b6e
suhdonghwi/nuri
Decl.hs
module Nuri.Parse.Decl where import qualified Data.Text as T import Nuri.Expr ( Decl (..), DeclType (..), Expr, FuncKind (..), FuncVariation (Antonym, Synonym), ) import Nuri.Parse ( MonadParser, lexeme, reserved, sc, scn, symbol, ) import Nuri.Parse.PartTable (MonadPartTabl...
null
https://raw.githubusercontent.com/suhdonghwi/nuri/337550e3d50c290144df905ea3f189e9af6123c2/src/Nuri/Parse/Decl.hs
haskell
module Nuri.Parse.Decl where import qualified Data.Text as T import Nuri.Expr ( Decl (..), DeclType (..), Expr, FuncKind (..), FuncVariation (Antonym, Synonym), ) import Nuri.Parse ( MonadParser, lexeme, reserved, sc, scn, symbol, ) import Nuri.Parse.PartTable (MonadPartTabl...
e12fdca1a92f8b06f40494707158b1f69375786dbaa11d56107e8e1642ebca57
robert-strandh/CLIMatis
polygon-rendering.lisp
(cl:in-package #:clim3-rendering) (defun render-polygons (polygons) (render-trapezoids (trapezoids-from-polygons polygons))) (defun print-mask (mask) (loop for c from 0 below (array-dimension mask 0) do (loop for r from 0 below (array-dimension mask 1) do (format t "~5,3f " (aref mask c r))) (format t "~%...
null
https://raw.githubusercontent.com/robert-strandh/CLIMatis/4949ddcc46d3f81596f956d12f64035e04589b29/Drawing/polygon-rendering.lisp
lisp
(cl:in-package #:clim3-rendering) (defun render-polygons (polygons) (render-trapezoids (trapezoids-from-polygons polygons))) (defun print-mask (mask) (loop for c from 0 below (array-dimension mask 0) do (loop for r from 0 below (array-dimension mask 1) do (format t "~5,3f " (aref mask c r))) (format t "~%...
02c43b126bc1fb0aaaacfa2175791dbeed81d41531e7b5c34cb3d8cbad00aeb2
symbiont-io/detsys-testkit
Worker.hs
{-# LANGUAGE OverloadedStrings #-} module Dumblog.ZeroCopy.Worker where import Control.Concurrent (threadDelay) import Data.ByteString (ByteString) import qualified Data.ByteString.Char8 as BS import Data.Int (Int32, Int64) import Foreign (sizeOf) import Foreign.C.Types (CInt(CInt)) import Network.Socket (mkSocket) i...
null
https://raw.githubusercontent.com/symbiont-io/detsys-testkit/0c46216b1aadef5a65537b6ed7c7c21efb66ab72/src/sut/dumblog/src/zero-copy/Dumblog/ZeroCopy/Worker.hs
haskell
# LANGUAGE OverloadedStrings # ---------------------------------------------------------------------- XXX: We should probably add a variant of readJournal that returns a bytebuffer instead of converting the bytestring to a bytebuffer...
module Dumblog.ZeroCopy.Worker where import Control.Concurrent (threadDelay) import Data.ByteString (ByteString) import qualified Data.ByteString.Char8 as BS import Data.Int (Int32, Int64) import Foreign (sizeOf) import Foreign.C.Types (CInt(CInt)) import Network.Socket (mkSocket) import Network.Socket.ByteString (se...
46eae8a7b32885e8160b0c14dbc6ec13f6b6de2ca1186ee545223a885b5bad39
alexander-yakushev/defprecated
core.clj
(ns defprecated.core (:refer-clojure :exclude [defn defmacro]) (:require [clojure.core :as core])) (core/defn- make-warning-msg [sym ns depr-map] (format "WARNING: %s is deprecated%s." (str "#'" ns "/" sym) (if-let [instead (:use-instead depr-map)] (format ", use %s instead" ...
null
https://raw.githubusercontent.com/alexander-yakushev/defprecated/90627f896ba745fa0bd3079fcedce26091fc68b8/src/defprecated/core.clj
clojure
(ns defprecated.core (:refer-clojure :exclude [defn defmacro]) (:require [clojure.core :as core])) (core/defn- make-warning-msg [sym ns depr-map] (format "WARNING: %s is deprecated%s." (str "#'" ns "/" sym) (if-let [instead (:use-instead depr-map)] (format ", use %s instead" ...
6c958d0e47cad85756af6c0623e5de180d61302be44cf97ef5f86fc95ff42430
theodormoroianu/SecondYearCourses
LambdaChurch_20210415165505.hs
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415165505.hs
haskell
alpha-equivalence subst u x t defines [u/x]t, i.e., substituting u for x in t This substitution avoids variable captures so it is safe to be used when reducing terms with free variables (e.g., if evaluating inside lambda abstractions) ^ substitution term ^ variable to be substitutes ^ term in which the substit...
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
5f7862e7ab7e71d4ebb8d37febe8aed0b23752284ee5f09a7fd9f70201ab90d2
yallop/ocaml-ctypes
test_roots.ml
* Copyright ( c ) 2013 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2013 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) open OUnit2 open Ctypes open ...
null
https://raw.githubusercontent.com/yallop/ocaml-ctypes/cc3ccdd574b0deeec1dc20850a6515881db0f1ae/tests/test-roots/test_roots.ml
ocaml
Test root lifetime. Check that values not registered as roots are collected. Check that values registered as roots are not collected. Check that values unregistered as roots are collected. Check that values assigned to roots are not collected. Check that values registered as roots and then overwritten are ...
* Copyright ( c ) 2013 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2013 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) open OUnit2 open Ctypes open ...
0239849570d37d145ca93a98088f4d7b178984b6825141d4842a17a443b257a6
VictorNicollet/Ohm
action_Server.ml
Ohm is © 2012 open Util open BatPervasives module BS = BatString open Action_Common class type ['param] server = object method protocol : 'param -> [`HTTP|`HTTPS] method domain : 'param -> string method port : 'param -> int method cookie_domain : 'param -> string option method matc...
null
https://raw.githubusercontent.com/VictorNicollet/Ohm/ca90c162f6c49927c893114491f29d44aaf71feb/src/action_Server.ml
ocaml
Ohm is © 2012 open Util open BatPervasives module BS = BatString open Action_Common class type ['param] server = object method protocol : 'param -> [`HTTP|`HTTPS] method domain : 'param -> string method port : 'param -> int method cookie_domain : 'param -> string option method matc...
aea50aec3085bd825c584210bb93c5b8bf7fcec8823dd1fce07edcad7cd8cb7e
vrnithinkumar/ETC
stlc.erl
-module(stlc). -compile(export_all). -type lterm() :: tuple(). Term Constructors ident (Name) -> {ident, Name}. int (N) -> {int, N}. lam (X, Exp) -> {lam, ident (X), Exp}. app (E1, E2) -> {app, E1, E2}. lets (X, E1, E2) -> {lets, ident (X), E1, E2}. % Example idtype ( A ) - > funt(A , A ) . ...
null
https://raw.githubusercontent.com/vrnithinkumar/ETC/5e5806975fe96a902dab830a0c8caadc5d61e62b/src/stlc.erl
erlang
Example Inference algorithm principal type for X
-module(stlc). -compile(export_all). -type lterm() :: tuple(). Term Constructors ident (Name) -> {ident, Name}. int (N) -> {int, N}. lam (X, Exp) -> {lam, ident (X), Exp}. app (E1, E2) -> {app, E1, E2}. lets (X, E1, E2) -> {lets, ident (X), E1, E2}. idtype ( A ) - > funt(A , A ) . idterm (X)...
4a01e5ebc15a802834c25eaa1f4db1124cbb55f918b66dd41213777aeb9a2fa2
langston-barrett/CoverTranslator
Main.hs
import System import System.Cmd import System.Console.GetOpt import System.Posix.Files import Data.Maybe ( fromMaybe ) import qualified Text.PrettyPrint.HughesPJ as Pretty(Doc, render) import Control.Monad import Prelude hiding (catch) import Control.Exception (catch) import IO (writeFile, hPutStr, st...
null
https://raw.githubusercontent.com/langston-barrett/CoverTranslator/4172bef9f4eede7e45dc002a70bf8c6dd9a56b5c/src/Main.hs
haskell
import PprExternalCore() | Parse input flags, do main job (using loadFile), splitAndSlice, write output files | parseCore, caseAbstract, lambdaLift, core2cl, cl2fol | parseCore, caseAbstract, lambdaLift caseA = caseAbstract AllTopLevel core
import System import System.Cmd import System.Console.GetOpt import System.Posix.Files import Data.Maybe ( fromMaybe ) import qualified Text.PrettyPrint.HughesPJ as Pretty(Doc, render) import Control.Monad import Prelude hiding (catch) import Control.Exception (catch) import IO (writeFile, hPutStr, st...
06d62d0a4371814f0bb96f9d35d28b37114a2aefbf4fce9acc81ee3c624656ae
erlyaws/yaws
throwtest.erl
-module(throwtest). -export([out/1]). out(_Arg) -> throw({status, 200}).
null
https://raw.githubusercontent.com/erlyaws/yaws/da198c828e9d95ca2137da7884cddadd73941d13/testsuite/main_SUITE_data/throwtest.erl
erlang
-module(throwtest). -export([out/1]). out(_Arg) -> throw({status, 200}).
c6bc9b34c1146392973de6ffa050cad1b9fce49317c4746c534138fe1746e42c
tanakh/ICFP2011
KRYHomu.hs
# LANGUAGE CPP # {-# OPTIONS -Wall #-} import Control.Applicative import qualified Control.Exception.Control as E import Control.Monad import Control.Monad.State import Data.Maybe import LTG getFirstWorthEnemy :: Int -> LTG (Maybe Int) getFirstWorthEnemy dmg = do alives <- filterM (\ix -> do ...
null
https://raw.githubusercontent.com/tanakh/ICFP2011/db0d670cdbe12e9cef4242d6ab202a98c254412e/ai/KRYHomu.hs
haskell
# OPTIONS -Wall # dec S (K f) (K g) lprint $ "Reusing " ++ show f lprint $ "Failed reusing " ++ show f ++ " [expected " ++ show lval ++ " but was " ++ show ff ++ "]" f1, f2, f3: temp f4, f5 target: zombie target next = v[f2] <- S (lazy_apply Copy f4) succ f = v[f4] <- S (lazy_apply Copy f5) I S (S h...
# LANGUAGE CPP # import Control.Applicative import qualified Control.Exception.Control as E import Control.Monad import Control.Monad.State import Data.Maybe import LTG getFirstWorthEnemy :: Int -> LTG (Maybe Int) getFirstWorthEnemy dmg = do alives <- filterM (\ix -> do al <- isAlive ...
6828b656f8bb6f872ea139f9878f447f79663a41abf1c001ac030d75f2984e28
erlang/otp
my_behaviour.erl
-module(my_behaviour). -callback foo() -> #{ {{{f,f}, f}, f} => x }.
null
https://raw.githubusercontent.com/erlang/otp/de2a455b752258236eb764cb4c8368c6d9f20114/lib/dialyzer/test/behaviour_SUITE_data/src/otp_6221/my_behaviour.erl
erlang
-module(my_behaviour). -callback foo() -> #{ {{{f,f}, f}, f} => x }.
1c036a0d52ddb0b2a164f4bb4405218cbb20d6b7520086e7b6f558118cc02a84
m4dc4p/haskelldb
hardcoded-layout-simple-query.hs
import Database.HaskellDB import Database.HaskellDB.DBLayout import TestConnect import Random create table test_tb1 ( c11 int not null , c12 int null ) ; --------------------------------------------------------------------------- -- Tables -------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/m4dc4p/haskelldb/a1fbc8a2eca8c70ebe382bf4c022275836d9d510/test/old/hardcoded-layout-simple-query.hs
haskell
------------------------------------------------------------------------- Tables ------------------------------------------------------------------------- ----------------------------------- Table test_tb1 ----------------------------------- ------------------------------------------------------------------------- F...
import Database.HaskellDB import Database.HaskellDB.DBLayout import TestConnect import Random create table test_tb1 ( c11 int not null , c12 int null ) ; test_tb1 :: Table (RecCons C11 (Expr Int) (RecCons C12 (Expr (Maybe Int)) RecNil)) test_tb1 = baseTable "test_tb1" $ hdbMakeEntry C11 # ...
88ff2f3a9e223db4fd5d2d6fd992142a6b133d8bd89d24c5d6aab04709b9c2a8
alexbiehl/postie
Postie.hs
# LANGUAGE ScopedTypeVariables # module Network.Mail.Postie ( run, -- | Runs server with a given application on a specified port runSettings, -- | Runs server with a given application and settings runSettingsSocket, -- * Application module Network.Mail.Postie.Types, -- * Settings mo...
null
https://raw.githubusercontent.com/alexbiehl/postie/6a4edf104e09940e8df8a559dfbc827ba2c4dde0/src/Network/Mail/Postie.hs
haskell
| Runs server with a given application on a specified port | Runs server with a given application and settings * Application * Settings * Address * Exceptions * Re-exports
# LANGUAGE ScopedTypeVariables # module Network.Mail.Postie ( run, runSettings, runSettingsSocket, module Network.Mail.Postie.Types, module Network.Mail.Postie.Settings, module Network.Mail.Postie.Address, UnexpectedEndOfInputException, TooMuchDataException, P.Producer, P.Con...
9e25ba8cfdd3ca56621be52984fd075f2aed938a91382928148d6d3386a10c60
juspay/atlas
App.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/public-transport-search-consumer/src/App.hs
haskell
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
c07b342c6159142101738ee00b7880757511ae03c40120a16d05b37ccc77be71
bobeff/playground
017.rkt
Exercise 17 . Define the function image - classify , which consumes an image and ; conditionally produces "tall" if the image is taller than wide, "wide" if it ; is wider than tall, or "square" if its width and height are the same. #lang racket (require 2htdp/image rackunit) (include "../data/cat-image.rkt") (def...
null
https://raw.githubusercontent.com/bobeff/playground/7072dbd7e0acd690749abe1498dd5f247cc21637/htdp-second-edition/exercises/017.rkt
racket
conditionally produces "tall" if the image is taller than wide, "wide" if it is wider than tall, or "square" if its width and height are the same.
Exercise 17 . Define the function image - classify , which consumes an image and #lang racket (require 2htdp/image rackunit) (include "../data/cat-image.rkt") (define (image-classify image) (let ((width (image-width image)) (height (image-height image))) (cond ((< width height) "tall") ((> wid...
334cffe7d99bf2f915c2cb55a9f8cdbb1ece760f421b98991513f26c43f26a6b
Decentralized-Pictures/T4L3NT
client_proto_programs.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_012_Psithaca/lib_client/client_proto_programs.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c ) 2019 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITH...
bdf17fcd555de5dc1c226a7fda95d58081039086a0ff840af0df609c56194553
mirage/shared-block-ring
journal.mli
* Copyright ( C ) 2013 - 2015 Citrix Systems Inc * * 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 . * * THE SOFTWARE IS PROVIDED "...
null
https://raw.githubusercontent.com/mirage/shared-block-ring/e780fd9ed2186c14dd49f9e8d00211be648aa762/lib/journal.mli
ocaml
* Create a journal from a block device. Descriptions of idempotent operations may be pushed to the journal, and we guarantee to perform them at-least-once in the order they were pushed provided the block device is available. If the program crashes, the journal replay will be started when the program res...
* Copyright ( C ) 2013 - 2015 Citrix Systems Inc * * 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 . * * THE SOFTWARE IS PROVIDED "...
71ef64ba268a972d801fc76140fddc47651d3dde3826757a8a2ba092dc2b27a8
lemmaandrew/CodingBatHaskell
endUp.hs
From Given a string , return a new string where the last 3 chars are now in upper case . If the string has less than 3 chars , uppercase whatever is there . Note that str.toUpperCase ( ) returns the uppercase version of a string . Given a string, return a new string where the last 3 chars are now in upper ca...
null
https://raw.githubusercontent.com/lemmaandrew/CodingBatHaskell/d839118be02e1867504206657a0664fd79d04736/CodingBat/Warmup-1/endUp.hs
haskell
From Given a string , return a new string where the last 3 chars are now in upper case . If the string has less than 3 chars , uppercase whatever is there . Note that str.toUpperCase ( ) returns the uppercase version of a string . Given a string, return a new string where the last 3 chars are now in upper ca...
5ed6fb4bc67b31ef0ca7fe4530b102c47b5a03a825af5d7a19eb19c487ebc188
korya/efuns
env.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/ocamlsrc/compat/3.01/include/env.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : env.mli , v 1.1 2001/03/09 13...
87fcb5ecd36737257304972be59747961a610aa30b7a7a02fc6815be43d792df
seckcoder/course-compiler
r4_17.rkt
(define (big [a : Integer] [b : Integer] [c : Integer] [d : Integer] [e : Integer] [f : Integer] [g : Integer] [h : Integer] [i : Integer] [j : Integer]) : Integer (+ d j)) (big 1 2 3 20 5 6 7 8 9 22)
null
https://raw.githubusercontent.com/seckcoder/course-compiler/4363e5b3e15eaa7553902c3850b6452de80b2ef6/tests/student-tests/r4_17.rkt
racket
(define (big [a : Integer] [b : Integer] [c : Integer] [d : Integer] [e : Integer] [f : Integer] [g : Integer] [h : Integer] [i : Integer] [j : Integer]) : Integer (+ d j)) (big 1 2 3 20 5 6 7 8 9 22)
b48e056b21011562d82c16817b776d25ae0e9b56d5d3f833b878967a7ad9f324
cyverse-archive/DiscoveryEnvironmentBackend
privileges.clj
(ns iplant_groups.routes.domain.privileges (:use [common-swagger-api.schema :only [describe]]) (:require [iplant_groups.routes.domain.subject :as subject] [iplant_groups.routes.domain.group :as group] [iplant_groups.routes.domain.folder :as folder] [schema.core :as s])) (s/defsc...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/iplant-groups/src/iplant_groups/routes/domain/privileges.clj
clojure
(ns iplant_groups.routes.domain.privileges (:use [common-swagger-api.schema :only [describe]]) (:require [iplant_groups.routes.domain.subject :as subject] [iplant_groups.routes.domain.group :as group] [iplant_groups.routes.domain.folder :as folder] [schema.core :as s])) (s/defsc...
c793f32d513223e811ca55694f9d3addda00c7bed906d801dd78d6753abe38f0
wasamasa/libui
calculator.scm
(use (prefix libui ui:)) (ui:margined? #t) (ui:padded? #t) (ui:init!) (define out #f) (define cur-val 0) (define cur-op #f) (define last-op #f) (define (do-operation button) (let ((op (car (string->list (ui:button-text button))))) (if (and (char<=? #\0 op) (char<=? op #\9)) (begin (if (and l...
null
https://raw.githubusercontent.com/wasamasa/libui/d9b61bc650e5ee5981e78dedfca345466a9f5fe6/examples/calculator/calculator.scm
scheme
(use (prefix libui ui:)) (ui:margined? #t) (ui:padded? #t) (ui:init!) (define out #f) (define cur-val 0) (define cur-op #f) (define last-op #f) (define (do-operation button) (let ((op (car (string->list (ui:button-text button))))) (if (and (char<=? #\0 op) (char<=? op #\9)) (begin (if (and l...
05a25e9339a1627416583afa6f355532eb1af8155769dad3dda30c9ccd71a136
ndmitchell/neil
Todo.hs
module Paper.Todo(todo) where import Control.Monad import Data.Char import Data.List.Extra import Paper.Util.Error todo :: [FilePath] -> IO () todo files = do errs <- liftM concat $ mapM readTodos files sequence_ errs when (not $ null errs) $ error $ "Error: " ++ show (length errs) ++ " todo com...
null
https://raw.githubusercontent.com/ndmitchell/neil/b06624fe697c23375222856d538cb974e96da048/src/Paper/Todo.hs
haskell
module Paper.Todo(todo) where import Control.Monad import Data.Char import Data.List.Extra import Paper.Util.Error todo :: [FilePath] -> IO () todo files = do errs <- liftM concat $ mapM readTodos files sequence_ errs when (not $ null errs) $ error $ "Error: " ++ show (length errs) ++ " todo com...
d6aa0f722f372d486d1df9f92bd79b2fe667be6a83debaf077bd76f1d5ac212e
digital-asset/ghc
T9999.hs
# LANGUAGE PolyKinds , TypeFamilies , StandaloneDeriving # module T9999 where import Data.Typeable data family F a class C a where data F1 a type F2 a main = typeRep (Proxy :: Proxy F) == typeRep (Proxy :: Proxy F1)
null
https://raw.githubusercontent.com/digital-asset/ghc/323dc6fcb127f77c08423873efc0a088c071440a/testsuite/tests/typecheck/should_fail/T9999.hs
haskell
# LANGUAGE PolyKinds , TypeFamilies , StandaloneDeriving # module T9999 where import Data.Typeable data family F a class C a where data F1 a type F2 a main = typeRep (Proxy :: Proxy F) == typeRep (Proxy :: Proxy F1)
160e8adc880f49681c9a94d16afdf34753aaf71866cb97bc93bb8eea57fa196e
JohnnyJayJay/ring-discord-auth
core_test.clj
(ns ring-discord-auth.core-test (:require [clojure.test :refer [deftest is testing]] [ring-discord-auth.core :as core] [ring-discord-auth.test-helpers :as test-helpers]) (:import (org.bouncycastle.crypto.params Ed25519PublicKeyParameters) (org.bouncycastle.crypto.signers Ed25519Si...
null
https://raw.githubusercontent.com/JohnnyJayJay/ring-discord-auth/4a050f6ba6b7a9f6a08c79819f5260f836ee36d6/test/ring_discord_auth/core_test.clj
clojure
(ns ring-discord-auth.core-test (:require [clojure.test :refer [deftest is testing]] [ring-discord-auth.core :as core] [ring-discord-auth.test-helpers :as test-helpers]) (:import (org.bouncycastle.crypto.params Ed25519PublicKeyParameters) (org.bouncycastle.crypto.signers Ed25519Si...
f808d4866a9ff6edd1008588d808d8d056ea6b69b1cef074940c86c979221e79
jesperes/aoc_erlang
aoc2018_day21.erl
-module(aoc2018_day21). %% %% We are given a program (input.txt) in ElfCode (see days 16 and 19 ) , and we are to determine certain properties of it . I %% started out by "emulating" it only to discover that it was far to %% inefficient to get anything done. I then translated the program %% more or less directly to ...
null
https://raw.githubusercontent.com/jesperes/aoc_erlang/ec0786088fb9ab886ee57e17ea0149ba3e91810a/src/2018/aoc2018_day21.erl
erlang
We are given a program (input.txt) in ElfCode (see days 16 started out by "emulating" it only to discover that it was far to inefficient to get anything done. I then translated the program more or less directly to C and got the solution that way. The program was the input, and it has been hand-converted into ...
-module(aoc2018_day21). and 19 ) , and we are to determine certain properties of it . I The code below ( outer_loop/3 ) is roughly this C program translated to erlang . -behavior(aoc_puzzle). -export([parse/1, solve1/1, solve2/1, info/0]). -include("aoc_puzzle.hrl"). -spec info() -> aoc_puzzle(). info() -> ...
68ccd86270873fee0c04ae3addcedf9af8922bae208ec268d2144393dc56c7e7
jesperes/aoc_erlang
aoc2019_day06.erl
Advent of Code solution for 2019 day 06 . Created : 2019 - 12 - 06T06:41:22 + 00:00 -module(aoc2019_day06). -behavior(aoc_puzzle). -export([parse/1, solve1/1, solve2/1, info/0]). -include("aoc_puzzle.hrl"). -spec info() -> aoc_puzzle(). info() -> #aoc_puzzle{module = ?MODULE, year = 2019, ...
null
https://raw.githubusercontent.com/jesperes/aoc_erlang/ec0786088fb9ab886ee57e17ea0149ba3e91810a/src/2019/aoc2019_day06.erl
erlang
Advent of Code solution for 2019 day 06 . Created : 2019 - 12 - 06T06:41:22 + 00:00 -module(aoc2019_day06). -behavior(aoc_puzzle). -export([parse/1, solve1/1, solve2/1, info/0]). -include("aoc_puzzle.hrl"). -spec info() -> aoc_puzzle(). info() -> #aoc_puzzle{module = ?MODULE, year = 2019, ...
365cd49107d030fbc2c0cf98ee006ef10f3257d60b9a848afeea72a71e8888c5
I3ck/HGE2D
Example3.hs
module Main where import HGE2D.Types import HGE2D.Datas import HGE2D.Colors import HGE2D.Classes import HGE2D.Instances () import HGE2D.Shapes import HGE2D.Render import HGE2D.Engine {- Example showing dynamic changes by moving the rectanlge -} -------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/I3ck/HGE2D/7ab789964013d8f24cd0be9fbad967d41d00a4bb/src/examples/Example3.hs
haskell
Example showing dynamic changes by moving the rectanlge ------------------------------------------------------------------------------ in here we are going to store all data of the game current size of the entire game in pixels current time of the game whether the rectangle has been clicked whether the rectangle ...
module Main where import HGE2D.Types import HGE2D.Datas import HGE2D.Colors import HGE2D.Classes import HGE2D.Instances () import HGE2D.Shapes import HGE2D.Render import HGE2D.Engine data GameState = GameState } gs3 = GameState { time = 0 , gsSize = (0, 0) , pos = (0, 0) , isClicked = False , mov...
3741a3df6dbdcce0f883e4c2e3458397dcef3ac48b49c6ce18a75b7eef7fdea8
SergeTupchiy/socks_er
socks_er.erl
-module(socks_er). -behaviour(application). -behaviour(supervisor). api for starting with erl -s socks_er -export([start/2, stop/1]). %% application -export([start_link/0, init/1]). %% supervisor dev / testing defaults to be used with upstream server run locally via -define(UNAME, <<"test">>). -define(PASSWD, <...
null
https://raw.githubusercontent.com/SergeTupchiy/socks_er/254d84ead928b02bd345054d7af1dacfa9a4ee97/src/socks_er.erl
erlang
application supervisor the same as ranch default value application supervisor
-module(socks_er). -behaviour(application). -behaviour(supervisor). api for starting with erl -s socks_er dev / testing defaults to be used with upstream server run locally via -define(UNAME, <<"test">>). -define(PASSWD, <<"test1">>). -define(DEFAULT_UPSTREAM_HOST, "localhost"). -define(DEFAULT_UPSTREAM_PORT, "...
91aef44b0b76309bd541e13e70a3bc2296ed0db7cf1b6b542d7e42668a9050e0
Soostone/instrument
Counter.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # {-# OPTIONS_GHC -Wno-name-shadowing #-} module Instrument.Tests.Counter ( tests, ) where import Instrument.Counter import Test.Tasty import Test.Tasty.HUnit import Test.Tasty.QuickCheck import Control.Monad tests :: TestTree tests = testGroup ...
null
https://raw.githubusercontent.com/Soostone/instrument/9be4002ddd035b960f2f7439e876e268308db89c/instrument/test/src/Instrument/Tests/Counter.hs
haskell
# LANGUAGE OverloadedStrings # # OPTIONS_GHC -Wno-name-shadowing #
# LANGUAGE ScopedTypeVariables # module Instrument.Tests.Counter ( tests, ) where import Instrument.Counter import Test.Tasty import Test.Tasty.HUnit import Test.Tasty.QuickCheck import Control.Monad tests :: TestTree tests = testGroup "Instrument.Counter" [ testCase "is zero after initialized" $ do ...
f76bd37087eadf09fc8e540cd38c030e9478a0b65156f2b5c0e7d5a48d643082
lamdu/lamdu
Codec.hs
| JSON encoder / decoder for types # LANGUAGE TemplateHaskell , TypeFamilies , TypeApplications , FlexibleInstances # module Lamdu.Data.Export.JSON.Codec ( TagOrder , Version(..) , Entity(..), _EntitySchemaVersion, _EntityDef, _EntityTag, _EntityNominal, _EntityLamVar ) where import qualified Contro...
null
https://raw.githubusercontent.com/lamdu/lamdu/e9e54b0e37cb121fe4bd761ba555b841011fd60b/src/Lamdu/Data/Export/JSON/Codec.hs
haskell
| Parse object based on containing some traversal We only encode top-level types, no skolem escape considerations...
| JSON encoder / decoder for types # LANGUAGE TemplateHaskell , TypeFamilies , TypeApplications , FlexibleInstances # module Lamdu.Data.Export.JSON.Codec ( TagOrder , Version(..) , Entity(..), _EntitySchemaVersion, _EntityDef, _EntityTag, _EntityNominal, _EntityLamVar ) where import qualified Contro...
c7e9a607bd3381fedf27680b9b20ef2662245e567884b153d745f2027125cd16
imrehg/ypsilon
tree.scm
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon gtk tree) (export gtk_tree_drag_dest_drag_data_received gtk_tree_drag_dest_get_type gtk_tree_drag_dest_row_drop_possib...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/ypsilon/gtk/tree.scm
scheme
gboolean gtk_tree_drag_dest_drag_data_received (GtkTreeDragDest* drag_dest, GtkTreePath* dest, GtkSelectionData* selection_data) gboolean gtk_tree_drag_dest_row_drop_possible (GtkTreeDragDest* drag_dest, GtkTreePath* dest_path, GtkSelectionData* selection_data) gboolean gtk_tree_drag_source_drag_data_get (GtkTreeDra...
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon gtk tree) (export gtk_tree_drag_dest_drag_data_received gtk_tree_drag_dest_get_type gtk_tree_drag_dest_row_drop_possib...
0ebd37d80d2811a2ec22d17553f7ff2462c438bc0e8a815946aa0deae0025a5a
mokus0/junkbox
CodeMetric.hs
module CodeMetric where import Data.List class CodeMetric a where measure :: a -> String -> Int data SymbolCount = SymbolCount [Char] deriving (Read, Show) instance Eq SymbolCount where (SymbolCount l1) == (SymbolCount l2) = (sort l1) == (sort l2) a /= b = not (a == b) instance CodeMetric ...
null
https://raw.githubusercontent.com/mokus0/junkbox/151014bbef9db2b9205209df66c418d6d58b0d9e/Projects/one-offs/CodeMetric.hs
haskell
module CodeMetric where import Data.List class CodeMetric a where measure :: a -> String -> Int data SymbolCount = SymbolCount [Char] deriving (Read, Show) instance Eq SymbolCount where (SymbolCount l1) == (SymbolCount l2) = (sort l1) == (sort l2) a /= b = not (a == b) instance CodeMetric ...
75096f188ed46aa9b0f70ab3206fadc86a5d0eefbc86930659f2e32c3b150550
bos/rwh
Overlap.hs
# LANGUAGE FlexibleInstances # {-- snippet Borked --} class Borked a where bork :: a -> String instance Borked Int where bork = show instance Borked (Int, Int) where bork (a, b) = bork a ++ ", " ++ bork b instance (Borked a, Borked b) => Borked (a, b) where bork (a, b) = ">>" ++ bork a ++ " " ++ bor...
null
https://raw.githubusercontent.com/bos/rwh/7fd1e467d54aef832f5476ebf5f4f6a898a895d1/examples/ch06/Overlap.hs
haskell
- snippet Borked - - /snippet Borked - - snippet wimply - - /snippet wimply -
# LANGUAGE FlexibleInstances # class Borked a where bork :: a -> String instance Borked Int where bork = show instance Borked (Int, Int) where bork (a, b) = bork a ++ ", " ++ bork b instance (Borked a, Borked b) => Borked (a, b) where bork (a, b) = ">>" ++ bork a ++ " " ++ bork b ++ "<<" instance B...
e445fe4d5ea13b5bf4cccf4eab0c7a51a59ee8352b20495ab9f2794e28984588
klutometis/clrs
section.scm
(require-extension syntax-case foof-loop array-lib array-lib-sub) (module section-15.1 (fastest-way stations stations/recursive fastest-way/compact) (include "../15.1/fastest-way.scm"))
null
https://raw.githubusercontent.com/klutometis/clrs/f85a8f0036f0946c9e64dde3259a19acc62b74a1/15.1/section.scm
scheme
(require-extension syntax-case foof-loop array-lib array-lib-sub) (module section-15.1 (fastest-way stations stations/recursive fastest-way/compact) (include "../15.1/fastest-way.scm"))
506cf1bc89a6e3d226674d12484e80f1b24a7415dc1e56251e9d59332e1cf93d
haskellfoundation/error-message-index
NoHeader.hs
module NoHeader where f = $(static)
null
https://raw.githubusercontent.com/haskellfoundation/error-message-index/26c5c12c279eb4a997b1ff17eea46f1e86b046ab/message-index/messages/GHC-58481/example3/before/NoHeader.hs
haskell
module NoHeader where f = $(static)
35aad6820248350db5da90900b72f505f634655cb94934929fb6b6695d7ffed5
jordwalke/rehp
url.ml
Js_of_ocaml library * / * Copyright ( C ) 2010 * Laboratoire PPS - CNRS Université Paris Diderot * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking ex...
null
https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/lib/js_of_ocaml/url.ml
ocaml
Url tampering. url (AKA percent) encoding/decoding * The type for HTTP url. * The host part of the url. * The port for the connection if any. * The path splitted on ['/'] characters. * The original entire path. * Arguments as a field-value association list. * The fr...
Js_of_ocaml library * / * Copyright ( C ) 2010 * Laboratoire PPS - CNRS Université Paris Diderot * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking ex...
85ec75360bdb09773cf9264816e4159b37608ea12b58c372b63e8a1dae2b6cb5
incanter/incanter
cubic_spline.clj
(ns ^{:skip-wiki true} incanter.interp.cubic-spline (:require [incanter.interp.utils :refer (find-segment)])) (defn- map-pairs [fn coll] (mapv #(apply fn %) (partition 2 1 coll))) (defn- get-hs [xs] (map-pairs #(- %2 %1) xs)) (defn- transpose [grid] (apply map vector grid)) (defn- calc-coefs [hs ys type] ...
null
https://raw.githubusercontent.com/incanter/incanter/e0a03aac237fcc60587278a36bd2e76266fc6356/modules/incanter-core/src/incanter/interp/cubic_spline.clj
clojure
(ns ^{:skip-wiki true} incanter.interp.cubic-spline (:require [incanter.interp.utils :refer (find-segment)])) (defn- map-pairs [fn coll] (mapv #(apply fn %) (partition 2 1 coll))) (defn- get-hs [xs] (map-pairs #(- %2 %1) xs)) (defn- transpose [grid] (apply map vector grid)) (defn- calc-coefs [hs ys type] ...
6a5df811f6ca06c3ea8a80e1a45a73c28c1ff89031f01fe74efde27af5900458
plewto/Cadejo
envelope_panel.clj
(ns cadejo.instruments.algo.editor.envelope-panel (:use [cadejo.instruments.algo.algo-constants]) (:require [cadejo.ui.util.lnf :as lnf]) (:require [cadejo.ui.util.sgwr-factory :as sfactory]) (:require [cadejo.util.math :as math]) (:require [sgwr.components.drawing :as drw]) (:require [sgwr.components.line...
null
https://raw.githubusercontent.com/plewto/Cadejo/2a98610ce1f5fe01dce5f28d986a38c86677fd67/src/cadejo/instruments/algo/editor/envelope_panel.clj
clojure
buttons: gate preset percussion preset dice copy paste zoom-in zoom-out zoom-restore attack time p1 decay2, sustain sustain release time rules
(ns cadejo.instruments.algo.editor.envelope-panel (:use [cadejo.instruments.algo.algo-constants]) (:require [cadejo.ui.util.lnf :as lnf]) (:require [cadejo.ui.util.sgwr-factory :as sfactory]) (:require [cadejo.util.math :as math]) (:require [sgwr.components.drawing :as drw]) (:require [sgwr.components.line...
fea12a3cb487891b8316d789e077d5044f923b5b38222ae275a882034be693db
techwhizbang/bluecollar
redis_test.clj
(ns bluecollar.redis-test (:use clojure.test bluecollar.test-helper) (:require [bluecollar.redis :as redis] [bluecollar.keys-and-queues :as keys-qs])) (use-fixtures :each (fn [f] (redis-setup) (keys-qs/register-keys) (keys-qs/register-queues nil) (f))) (deftest redis-conn-test (testi...
null
https://raw.githubusercontent.com/techwhizbang/bluecollar/10269249a686c4e92daefd7cecd6c7c5934db81c/test/bluecollar/redis_test.clj
clojure
(ns bluecollar.redis-test (:use clojure.test bluecollar.test-helper) (:require [bluecollar.redis :as redis] [bluecollar.keys-and-queues :as keys-qs])) (use-fixtures :each (fn [f] (redis-setup) (keys-qs/register-keys) (keys-qs/register-queues nil) (f))) (deftest redis-conn-test (testi...
2887485c7922f02549255db6388937f3b7369411ebd7a6f0d65ffed99e5fee02
tek/ribosome
Scratch.hs
-- |Interpreters for 'Scratch' module Ribosome.Interpreter.Scratch where import Conc (interpretAtomic) import qualified Data.Map.Strict as Map import Exon (exon) import Ribosome.Data.PluginName (PluginName) import Ribosome.Data.ScratchId (ScratchId (ScratchId)) import Ribosome.Data.ScratchState (ScratchState) import ...
null
https://raw.githubusercontent.com/tek/ribosome/f801aca3a7ff9a178e05a03d7874a06e88f4ac2b/packages/ribosome/lib/Ribosome/Interpreter/Scratch.hs
haskell
|Interpreters for 'Scratch'
module Ribosome.Interpreter.Scratch where import Conc (interpretAtomic) import qualified Data.Map.Strict as Map import Exon (exon) import Ribosome.Data.PluginName (PluginName) import Ribosome.Data.ScratchId (ScratchId (ScratchId)) import Ribosome.Data.ScratchState (ScratchState) import Ribosome.Effect.Scratch (Scratc...
2f36176e631e0183e2d631c6ca59101a707b1be18b49129269e50f5a5d609656
s-expressionists/Eclector
package.lisp
(cl:defpackage #:eclector.readtable.simple (:use #:common-lisp) (:shadow . #1=(#:readtable)) (:import-from #:eclector.base #:recovery-description-using-language) (:export . #1#))
null
https://raw.githubusercontent.com/s-expressionists/Eclector/0469fef9bde28ac16f5de6964b189534c152fafa/code/readtable/simple/package.lisp
lisp
(cl:defpackage #:eclector.readtable.simple (:use #:common-lisp) (:shadow . #1=(#:readtable)) (:import-from #:eclector.base #:recovery-description-using-language) (:export . #1#))
0c73148c2b436dc0cfb78c8013c3f60fce37ed0572b6997626d890c8410bfff8
montelibero-org/veche
ApiSpec.hs
# LANGUAGE BlockArguments # # LANGUAGE ImportQualifiedPost # # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedRecordDot # {-# LANGUAGE OverloadedStrings #-} module ApiSpec (spec) where -- prelude import TestImport -- global import Data.ByteString (breakSubstring) import Data.ByteString.Base64 qualified as Base64 ...
null
https://raw.githubusercontent.com/montelibero-org/veche/60f79ef4afba55475196a86a26b3ea0a972a4b17/veche-web/test/ApiSpec.hs
haskell
# LANGUAGE OverloadedStrings # prelude global successful authentication important! clear session successful authentication
# LANGUAGE BlockArguments # # LANGUAGE ImportQualifiedPost # # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedRecordDot # module ApiSpec (spec) where import TestImport import Data.ByteString (breakSubstring) import Data.ByteString.Base64 qualified as Base64 import Network.Stellar.Keypair (KeyPair, encodePublicKey...
ac15b4d9b16162c8fe7fa366708c8a41c62b188e5dec840208d364170495a057
edbutler/nonograms-rule-synthesis
bindings.rkt
#lang rosette/safe (provide gaps-of-line blocks-of-line) (require (only-in racket error) "../core/core.rkt" "symbolic.rkt" "rules.rkt") ( cell ? - > bool ? ) , line ? - > ( listof segment ? ) (define (segments-of-concrete-line partition-fn ctx) (when (symbolic? ctx) (error "only concrete lines suppor...
null
https://raw.githubusercontent.com/edbutler/nonograms-rule-synthesis/16f8dacb17bd77c9d927ab9fa0b8c1678dc68088/src/nonograms/bindings.rkt
racket
#lang rosette/safe (provide gaps-of-line blocks-of-line) (require (only-in racket error) "../core/core.rkt" "symbolic.rkt" "rules.rkt") ( cell ? - > bool ? ) , line ? - > ( listof segment ? ) (define (segments-of-concrete-line partition-fn ctx) (when (symbolic? ctx) (error "only concrete lines suppor...
e0e21b9754ed8320d9176ae533090993b7ddb02fe6622ee5ae4a51ca8a7b6575
mbj/stratosphere
StoppingConditionProperty.hs
module Stratosphere.SageMaker.MonitoringSchedule.StoppingConditionProperty ( StoppingConditionProperty(..), mkStoppingConditionProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stra...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/sagemaker/gen/Stratosphere/SageMaker/MonitoringSchedule/StoppingConditionProperty.hs
haskell
module Stratosphere.SageMaker.MonitoringSchedule.StoppingConditionProperty ( StoppingConditionProperty(..), mkStoppingConditionProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stra...
39a4eb1b5811f6431ad402d8013f5e7aa240f9a930a3866b3ca62ac2d575cbd2
leksah/leksah
Setup.hs
{-# LANGUAGE OverloadedStrings #-} import Data.GI.CodeGen.CabalHooks (setupBinding, TaggedOverride(..)) import qualified GI.GLib.Config as GLib main :: IO () main = setupBinding name version pkgName pkgVersion verbose overridesFile inheritedOverrides outputDir where name = "GObject" version = "2.0" ...
null
https://raw.githubusercontent.com/leksah/leksah/fd9c1d80993fb1ee5fd299a16bf373d8c789e737/vendor/gi-gobject/Setup.hs
haskell
# LANGUAGE OverloadedStrings #
import Data.GI.CodeGen.CabalHooks (setupBinding, TaggedOverride(..)) import qualified GI.GLib.Config as GLib main :: IO () main = setupBinding name version pkgName pkgVersion verbose overridesFile inheritedOverrides outputDir where name = "GObject" version = "2.0" pkgName = "gi-gobject" pk...
7bd5ca35c6a6f89743af96f8efb8a018bb10460f4a47f3f2350b09fac532c323
informatimago/lisp
dll.lisp
-*- coding : utf-8 -*- ;;;;**************************************************************************** FILE : dll.lisp ;;;;LANGUAGE: Common-Lisp ;;;;SYSTEM: Common-Lisp USER - INTERFACE : ;;;;DESCRIPTION ;;;; ;;;; A doubly-linked list. ;;;; < PJB > < > MODIFICA...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/common-lisp/cesarum/dll.lisp
lisp
**************************************************************************** LANGUAGE: Common-Lisp SYSTEM: Common-Lisp DESCRIPTION A doubly-linked list. LEGAL This program is free software: you can redistribute it and/or modify (at your option) any later version. This program ...
-*- coding : utf-8 -*- FILE : dll.lisp USER - INTERFACE : < PJB > < > MODIFICATIONS 2011 - 06 - 22 < PJB > Corrected a bug in DLL . 2005 - 04 - 28 < PJB > Clean - up . 2004 - 03 - 01 < PJB > Created . AGPL3 Copyright 2004 - 2016 it under the terms of th...
89b960d066bbba1c23a48bd29cd02938eadbdfe26950f323196343436998893d
jgertm/lang
typeclasses_test.clj
(ns lang.desugar.typeclasses-test (:require [clojure.test :refer [deftest is testing]] [lang.test-prelude :refer :all] matcher-combinators.test)) (deftest desugar-simple-typeclass (let [[class instance is-it-true? nope] (-> (run :desugar (defmodule lang.desugar.t...
null
https://raw.githubusercontent.com/jgertm/lang/5a4d73f01d93d7615e44f8ce2dfe8a237dd80766/test/lang/desugar/typeclasses_test.clj
clojure
(ns lang.desugar.typeclasses-test (:require [clojure.test :refer [deftest is testing]] [lang.test-prelude :refer :all] matcher-combinators.test)) (deftest desugar-simple-typeclass (let [[class instance is-it-true? nope] (-> (run :desugar (defmodule lang.desugar.t...
dbb11b2138e9624129508b4da9ae40c3fb5cdb68ce44d25f0c1deebcff3014a8
hurryabit/pukeko
Dict.hs
# LANGUAGE TemplateHaskell # module Pukeko.AST.Dict ( NoDict (..) , Dict (..) , DxBinder , dict2type ) where import Pukeko.Prelude import Pukeko.Pretty import Data.Aeson.TH import Pukeko.AST.Name import Pukeko.AST.Type data NoDict = NoDict data Dict = DVar DxVar | DDer DxVar [Type] [Dict] | DSub Dx...
null
https://raw.githubusercontent.com/hurryabit/pukeko/d11a101a41123c5151bcdd7dd2d0ef53c65483c2/src/Pukeko/AST/Dict.hs
haskell
# LANGUAGE TemplateHaskell # module Pukeko.AST.Dict ( NoDict (..) , Dict (..) , DxBinder , dict2type ) where import Pukeko.Prelude import Pukeko.Pretty import Data.Aeson.TH import Pukeko.AST.Name import Pukeko.AST.Type data NoDict = NoDict data Dict = DVar DxVar | DDer DxVar [Type] [Dict] | DSub Dx...
36df360444113afea643102e3667c8e8a5143fb36aa57a627c377bcdde7bd684
ryukzak/nitta
Types.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE FunctionalDependencies # {-# LANGUAGE GADTs #-} # LANGUAGE QuasiQuotes # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # | Module : NITTA.Model . ProcessorUnits . Types Description : Set of types for process unit description Copyright : ( c ) , 2...
null
https://raw.githubusercontent.com/ryukzak/nitta/1e1e571fd73b2cb9bea4e5781bf658e7edd264c0/src/NITTA/Model/ProcessorUnits/Types.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # * Processor unit * Process description * Control * IO | Class for processor unit tag or "name" | Whether the value can be used as a template or not | Create tag from the template and index | Processor unit parallelism type | All operations can be performed in par...
# LANGUAGE FunctionalDependencies # # LANGUAGE QuasiQuotes # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # | Module : NITTA.Model . ProcessorUnits . Types Description : Set of types for process unit description Copyright : ( c ) , 2021 License : : Stability : experiment...
966bf37e9161863274729b84a526172632e812e12fd7e8b19d59047d959f3f6a
thma/PolysemyCleanArchitecture
AppServer.hs
# LANGUAGE TemplateHaskell # module ExternalInterfaces.AppServer where import InterfaceAdapters.Config import Network.Wai (Application) import Polysemy (makeSem) This module defines an AppServer effect that allows to host a WAI Application . This mod...
null
https://raw.githubusercontent.com/thma/PolysemyCleanArchitecture/3bb375a30bcbf35c9df62802902e0faa03e3f03d/src/ExternalInterfaces/AppServer.hs
haskell
^ create a WAI Application from Config and then serve it
# LANGUAGE TemplateHaskell # module ExternalInterfaces.AppServer where import InterfaceAdapters.Config import Network.Wai (Application) import Polysemy (makeSem) This module defines an AppServer effect that allows to host a WAI Application . This mod...
e37948a9fb6faa95f9ab538cff04603e9bb7465a089cf3c872e6ff27da354a18
input-output-hk/project-icarus-importer
Types.hs
-- | Module containing blockchainImporter-specific datatypes module Pos.BlockchainImporter.Core.Types ( TxExtra (..) ) where import Universum import Pos.Core (Timestamp) import Pos.Core.Txp (TxUndo) data TxExtra = TxExtra { teTimestamp :: !(Maybe Timestamp) non -...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/blockchain-importer/src/Pos/BlockchainImporter/Core/Types.hs
haskell
| Module containing blockchainImporter-specific datatypes
module Pos.BlockchainImporter.Core.Types ( TxExtra (..) ) where import Universum import Pos.Core (Timestamp) import Pos.Core.Txp (TxUndo) data TxExtra = TxExtra { teTimestamp :: !(Maybe Timestamp) non - strict on purpose , see comment in ` processTxDo ` in Pos . ...
6ce5df9693ffaf1bf19f00702f462045555b6e4a50ee878db5a726c30712d17a
objectionary/try-phi
Main.hs
# LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # module Main(main) where import Test(test, test') main :: IO () main = do test' test "./test/data/snippet.eo" print "ok"
null
https://raw.githubusercontent.com/objectionary/try-phi/9eb9879c46decc4eb1e6f34beaa6a2736224b649/back/language-utils/app/Main.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE CPP # # LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # module Main(main) where import Test(test, test') main :: IO () main = do test' test "./test/data/snippet.eo" print "ok"
7fa42b7378661bf23ccf4c148702a0c7cfe9239047be773b9fd09b302562fea3
replikativ/replikativ
meta.cljc
(ns replikativ.crdt.cdvcs.meta "Operation on metadata and commit-graph (directed acyclic graph) of a CDVCS. Metadata CDVCS-format for automatic server-side synching (p2p-web). Have a look at the documentation for more information." (:require [clojure.set :as set] [replikativ.environ :refer [*dat...
null
https://raw.githubusercontent.com/replikativ/replikativ/1533a7e43e46bfb70e8c8eb34dc5708e611a478d/src/replikativ/crdt/cdvcs/meta.cljc
clojure
adapted from clojure.set, but is faster if the intersection is small where intersection in clojure.set is faster when the intersection is large already done short circuit intersection as long as we don't match any new heads-b in visited-a count new-heads = count intersection new-heads-b visited-a this intersecti...
(ns replikativ.crdt.cdvcs.meta "Operation on metadata and commit-graph (directed acyclic graph) of a CDVCS. Metadata CDVCS-format for automatic server-side synching (p2p-web). Have a look at the documentation for more information." (:require [clojure.set :as set] [replikativ.environ :refer [*dat...
704085e57ef1ef8e2536617822a76701816a5cd11454245363d2bd99e40e81cf
skanev/playground
38.scm
EOPL exercise 3.38 ; ; Extend the lexical address translator and interpreter to handle cond from exercise 3.12 . (load-relative "cases/nameless/env.scm") ; The parser (define-datatype expression expression? (const-exp (num number?)) (diff-exp (minuend expression?) (subtrahend expression?)) (zer...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/eopl/03/38.scm
scheme
Extend the lexical address translator and interpreter to handle cond from The parser The evaluator
EOPL exercise 3.38 exercise 3.12 . (load-relative "cases/nameless/env.scm") (define-datatype expression expression? (const-exp (num number?)) (diff-exp (minuend expression?) (subtrahend expression?)) (zero?-exp (expr expression?)) (if-exp (predicate expression?) (consequent expres...
0f3cbf7c922737668c92e7d6263221fa614a96f88a9a98cee19d9a374c765130
tokenmill/timewords
core.clj
(ns timewords.core (:require [clojure.string :as s] [clj-time.core :as joda] [clj-time.coerce :as jco] [timewords.standard.standard :as standard] [timewords.fuzzy.fuzzy :as fuzzy]) (:import (java.util Date) (org.joda.time DateTime)) (:gen-class :name ...
null
https://raw.githubusercontent.com/tokenmill/timewords/431ef3aa9eb899f2abd47cebc20a232f8c226b4a/src/timewords/core.clj
clojure
(ns timewords.core (:require [clojure.string :as s] [clj-time.core :as joda] [clj-time.coerce :as jco] [timewords.standard.standard :as standard] [timewords.fuzzy.fuzzy :as fuzzy]) (:import (java.util Date) (org.joda.time DateTime)) (:gen-class :name ...
53ebeb497b3486e48073ce4c1e5910b7498a3a32038b20a67fa9fa280857c410
rwmjones/guestfs-tools
resize.mli
virt - resize * Copyright ( C ) 2010 - 2023 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any lat...
null
https://raw.githubusercontent.com/rwmjones/guestfs-tools/57423d907270526ea664ff15601cce956353820e/resize/resize.mli
ocaml
Nothing is exported.
virt - resize * Copyright ( C ) 2010 - 2023 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any lat...
54204cd45c59485b42926ce04785f4487a0527b6c3284e4c7e38b1e30b0e296e
ejgallego/coq-lsp
stats.ml
(************************************************************************) (* Coq Language Server Protocol *) Copyright 2019 MINES ParisTech -- Dual License LGPL 2.1 / GPL3 + Copyright 2022 -- Dual License LGPL 2.1 / GPL3 + Written by : ...
null
https://raw.githubusercontent.com/ejgallego/coq-lsp/f72982922d55689f9397283c525485ad26e952de/fleche/stats.ml
ocaml
********************************************************************** Coq Language Server Protocol ********************************************************************** Status: Experimental ************************************...
Copyright 2019 MINES ParisTech -- Dual License LGPL 2.1 / GPL3 + Copyright 2022 -- Dual License LGPL 2.1 / GPL3 + Written by : module Kind = struct type t = | Hashing | Parsing | Exec end let stats = Hashtbl.create 1000 let find kind = ...
73444676ae838994aa09e2161639d1fc3c59b6cdc3ccebfed9a7fd38507d7d21
mzp/coq-ide-for-ios
ratio.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet Crista...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/CoqIDE/ocaml-3.12.0/lib/ocaml/ratio.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : ratio.mli 9547 2010 - 01 - 22 12:48:24Z...
f9e60921fd76f31fbc16ecabc896ef555cfbe05d055d269713b48b5180ea0ec8
kdltr/chicken-core
embedded4.scm
;;; x.scm (import (chicken gc) (chicken platform)) (define (bar x) (gc) (* x x)) (define-external (baz (int i)) double (sqrt i)) (return-to-host)
null
https://raw.githubusercontent.com/kdltr/chicken-core/b2e6c5243dd469064bec947cb3b49dafaa1514e5/tests/embedded4.scm
scheme
x.scm
(import (chicken gc) (chicken platform)) (define (bar x) (gc) (* x x)) (define-external (baz (int i)) double (sqrt i)) (return-to-host)
f4decd191a75e46fff8f1a4659e30151d578cbf1c2386f9b497c6b5ce6069960
svdm/ClojureGP
test_breeding.clj
Copyright ( c ) . All rights reserved . The use and distribution terms for this software are covered by the Eclipse ;; Public License 1.0 (-1.0.php) which ;; can be found in the file epl-v10.html at the root of this distribution. By ;; using this software in any fashion, you are agreeing to be bound by t...
null
https://raw.githubusercontent.com/svdm/ClojureGP/266e501411b37297bdeb082913df63ececa8515c/test/cljgp/test_breeding.clj
clojure
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 remove this notice, or any other, from this software. test for a regression in typed cross...
Copyright ( c ) . All rights reserved . The use and distribution terms for this software are covered by the Eclipse (ns test.cljgp.test-breeding (:use clojure.test cljgp.generate cljgp.breeding cljgp.evaluation cljgp.util) (:refer test.helpers)) (deftest tes...
7681a74aadfad55b6e33ce9ed072597e1c74b5d092a99e9242fee59c57c45732
pstephens/kingjames.bible
unittests.cljs
Copyright 2015 . All Rights Reserved . ;;;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . ;;;; You may obtain a copy of the License at ;;;; ;;;; -2.0 ;;;; ;;;; Unless required by applicable law o...
null
https://raw.githubusercontent.com/pstephens/kingjames.bible/a2c2a7324176a829df6ebf50976d81c65c35eb02/src/test/node/unittests.cljs
clojure
You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License....
Copyright 2015 . All Rights Reserved . you may not use this file except in compliance with the License . distributed under the License is distributed on an " AS IS " BASIS , (ns test.node.unittests (:require [cljs.nodejs :as nodejs] [cljs.test :refer-macros [run-tests] :refer [success...
d56c4e3d14a84fa99460af3cf2fc539c53aee6e73611d1daf6e8eab74d1d5fb0
typelead/eta
tc073.hs
module ShouldSucceed where f [] = [] f (x:xs) = x : (f xs)
null
https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/tests/suite/typecheck/compile/tc073.hs
haskell
module ShouldSucceed where f [] = [] f (x:xs) = x : (f xs)
f932e51d25beb301bfe186ed4a190f905a26f5102314d0e36b65ff96908462d5
ygrek/ocaml-extlib
extHashtbl.ml
* , extra functions over hashtables . * Copyright ( C ) 2003 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at you...
null
https://raw.githubusercontent.com/ygrek/ocaml-extlib/69b77f0f0500c98371aea9a6f2abb56c946cdab0/src/extHashtbl.ml
ocaml
no seed * this is a hack in order to keep an O(1) enum constructor * copied from stdlib :( compatibility with old hash tables
* , extra functions over hashtables . * Copyright ( C ) 2003 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at you...
d649e53c987b46a877531e1965ef00f300c9e2c5ae4e380ff5b309aaa569ce77
GaloisInc/ivory
Array.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # module Ivory.Language.Array ( Ix(), IxRep, ixRep, fromIx, toIx, ixSize, arrayLen, (!), ) where import Ivory....
null
https://raw.githubusercontent.com/GaloisInc/ivory/53a0795b4fbeb0b7da0f6cdaccdde18849a78cd6/ivory/src/Ivory/Language/Array.hs
haskell
------------------------------------------------------------------------------ Indexes Note: it is assumed in ivory-opts and the ivory-backend that the associated modifying the other packages. | The representation type of a @TyIndex@, this is fixed to @Int32@ for the time being. | Values in the range @0 .. n-1@. ...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # module Ivory.Language.Array ( Ix(), IxRep, ixRep, fromIx, toIx, ixSize, arrayLen, (!), ) where import Ivory....
5a522d13ca1c65c5400b917c5cb9c1f3e926b96c77d1536deb899cff57caffb9
ocaml/oasis
Main.ml
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/cli/Main.ml
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
OASIS : architecture for building OCaml libraries and applications Copyright ( C ) 2011 - 2016 , Copyright ( C ) 2008 - 2011 , OCamlCore SARL the Free Software Foundation ; either version 2.1 of the License , or ( at You s...
aabad1152dc3b6d0350a2e158246cd24deb4c6e7891b223a2c34b16eec425133
Martoon-00/toy-compiler
Util.hs
| Some utility functions on SM instructions analysis module Toy.SM.Util where import Data.Foldable (Foldable, foldMap) import qualified Data.Set as S import Universum hiding (Foldable, foldMap) import Toy.Base (Var) import Toy.SM.Data (Inst (..)) gatherLocal...
null
https://raw.githubusercontent.com/Martoon-00/toy-compiler/a325d56c367bbb673608d283197fcd51cf5960fa/src/Toy/SM/Util.hs
haskell
| Some utility functions on SM instructions analysis module Toy.SM.Util where import Data.Foldable (Foldable, foldMap) import qualified Data.Set as S import Universum hiding (Foldable, foldMap) import Toy.Base (Var) import Toy.SM.Data (Inst (..)) gatherLocal...
652311fe1283c339a05b6f38d6a5520a9c838a1b5a229ed0d4e87ff6692ab3b6
monadfix/ormolu-live
ForeignSrcLang.hs
# OPTIONS_GHC -fno - warn - orphans # -- | See @GHC.LanguageExtensions@ for an explanation -- on why this is needed module GHC.ForeignSrcLang ( module GHC.ForeignSrcLang.Type ) where import Data.Binary import GHC.ForeignSrcLang.Type instance Binary ForeignSrcLang
null
https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/ghc-lib-parser-8.10.1.20200412/libraries/ghc-boot/GHC/ForeignSrcLang.hs
haskell
| See @GHC.LanguageExtensions@ for an explanation on why this is needed
# OPTIONS_GHC -fno - warn - orphans # module GHC.ForeignSrcLang ( module GHC.ForeignSrcLang.Type ) where import Data.Binary import GHC.ForeignSrcLang.Type instance Binary ForeignSrcLang
d7292de9030d66d27534fd23216251d14aed6a52d218cdc8fe48e3070e6cc45e
litxio/ptghci
PtgResponse.hs
module Language.Haskell.PtGhci.PtgResponse where import Language.Haskell.PtGhci.Prelude import GHC.Generics import Data.Aeson import Data.Text import Language.Haskell.Ghcid.Types import Language.Haskell.PtGhci.Orphans data PtgResponse = ExecCaptureResponse { success :: Bool ...
null
https://raw.githubusercontent.com/litxio/ptghci/bbb3c5fdf2e73a557864b6b1e26833fffb34fc84/src/Language/Haskell/PtGhci/PtgResponse.hs
haskell
module Language.Haskell.PtGhci.PtgResponse where import Language.Haskell.PtGhci.Prelude import GHC.Generics import Data.Aeson import Data.Text import Language.Haskell.Ghcid.Types import Language.Haskell.PtGhci.Orphans data PtgResponse = ExecCaptureResponse { success :: Bool ...
3fad363221eb7ddd901c999a4170889dd81fb1ddccda48b78fc4a1ded5605eaa
jrm-code-project/LISP-Machine
command-loop.lisp
-*- Mode : LISP ; Package:(SUBDEBUG USE GLOBAL ) ; : CL ; -*- (defvar *command-prefix*) (defvar *get-next-command-unget* nil) (defun unget-command (blip) (setq *get-next-command-unget* (append *get-next-command-unget* (list blip)))) (defconst *activation-list* '(#\/ #\tab #\space #\: #\altmode ...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/pace/command-loop.lisp
lisp
Package:(SUBDEBUG USE GLOBAL ) ; : CL ; -*- (update-display)
(defvar *command-prefix*) (defvar *get-next-command-unget* nil) (defun unget-command (blip) (setq *get-next-command-unget* (append *get-next-command-unget* (list blip)))) (defconst *activation-list* '(#\/ #\tab #\space #\: #\altmode #\@ #\linefeed #\^ #\= #\page #\: ...
582d1e52c45b0e4421917afe6e6260c74ac46424592df7aac0c22c624392733c
dannypsnl/racket-llvm
info.rkt
#lang info (define collection "racket-llvm") (define deps '("base" "scribble-lib")) (define build-deps '("scribble-lib" "racket-doc" "rackunit-lib" "at-exp-lib")) (define scribblings '(("scribblings/racket-llvm.scrbl" (multi-page)))) (define ...
null
https://raw.githubusercontent.com/dannypsnl/racket-llvm/37392dcf7a48744eceac700c89d7dffb4122a36a/info.rkt
racket
#lang info (define collection "racket-llvm") (define deps '("base" "scribble-lib")) (define build-deps '("scribble-lib" "racket-doc" "rackunit-lib" "at-exp-lib")) (define scribblings '(("scribblings/racket-llvm.scrbl" (multi-page)))) (define ...
5715f84b49d4e8d7c38ea1dce6e284f934f98859ba3792f329b7a9021c857190
coccinelle/coccinelle
pycaml.ml
type pyobject = Py.Object.t type pyobject_type = | TupleType | BytesType | UnicodeType | BoolType | IntType | FloatType | ListType | NoneType | CallableType | ModuleType | ClassType | TypeType | DictType | NullType | CamlpillType | OtherType Signifies that either of BytesType or Unico...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/57cbff0c5768e22bb2d8c20e8dae74294515c6b3/bundles/pyml/pyml-current/pycaml.ml
ocaml
type pyobject = Py.Object.t type pyobject_type = | TupleType | BytesType | UnicodeType | BoolType | IntType | FloatType | ListType | NoneType | CallableType | ModuleType | ClassType | TypeType | DictType | NullType | CamlpillType | OtherType Signifies that either of BytesType or Unico...
14cbcf4da5a139dd75687182143c451d2d7be705ad0e4899465ecf26095f2070
emillon/ocaml-zeit
scale.ml
type t = { current : int ; min : int ; max : int } [@@deriving eq, show, of_yojson]
null
https://raw.githubusercontent.com/emillon/ocaml-zeit/cdcdd0b155d406d1b8c8947e3c620527c3c9ecf7/lib/scale.ml
ocaml
type t = { current : int ; min : int ; max : int } [@@deriving eq, show, of_yojson]
966b545de8df789a696b67d3863c3ad769dc32b172184bcbd1b9f4e91cced85f
nibbula/yew
options.lisp
;;; ;;; options.lisp - Options “pattern”. ;;; ;;; I'm not sure this is actually useful. ;;; ;;; Why would I want some fake Javascript/Smalltalk like prototyping? ;;; Perhaps it's just paranoia about having to reboot my nonexistent Lisp ;;; machine when class versioning somehow fails? ;;; ;;; Options look like a slot, ...
null
https://raw.githubusercontent.com/nibbula/yew/1a6c0e950574048838ec416a828a0e37c762be6f/lib/options.lisp
lisp
options.lisp - Options “pattern”. I'm not sure this is actually useful. Why would I want some fake Javascript/Smalltalk like prototyping? Perhaps it's just paranoia about having to reboot my nonexistent Lisp machine when class versioning somehow fails? Options look like a slot, but you're not supposed to real...
(defpackage :options (:documentation "Options “pattern”. For when you might want a new slot in your class, but maybe you don't really want to commit to it, or you'd like it to fail in a different way when you change your mind. To use this, define a subclass of options-mixin, then define your options with: (de...
2a550265cd2b035b7d7cd594da5f46c7bfa03e3b9df98fe494960c6a77e7da97
esb-lwb/lwb
feature_model.clj
(ns lwb.prop.examples.feature-model (:require [lwb.prop :refer :all] [lwb.prop.cardinality :refer :all] [lwb.prop.sat :refer (sat sat? valid?)] [lwb.prop.cardinality :refer (max-kof)])) ;; Feature Modeling ;; Feature Modeling is a technique to analyze and manage the variability i...
null
https://raw.githubusercontent.com/esb-lwb/lwb/bba51ada7f7316341733d37b0dc4848c4891ef3a/src/lwb/prop/examples/feature_model.clj
clojure
Feature Modeling Feature Modeling is a technique to analyze and manage the variability in a product line. In a product line concrete products share certain properties (or features) and differ in other properties. A feature model comprises a feature diagram together with additional constraints. The feature diagra...
(ns lwb.prop.examples.feature-model (:require [lwb.prop :refer :all] [lwb.prop.cardinality :refer :all] [lwb.prop.sat :refer (sat sat? valid?)] [lwb.prop.cardinality :refer (max-kof)])) For groups of subfeatures there are four types of relationships : 1 . The subfeatures are ...
160c01784620321be56e9216465be350bebfdd2cf9eddf1296637f2051e71d90
avsm/platform
comment_in_empty.ml
module M = struct (* this module is empty *) end module type M = sig (* this module type is empty *) end class type m = object (* this class type is empty *) end let x = object (* this object is empty *) end let _ = [ (* this list is empty *) ] let _ = (* this list is empty2 *) [] let _ = (* this list is empt...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/ocamlformat.0.12/test/passing/comment_in_empty.ml
ocaml
this module is empty this module type is empty this class type is empty this object is empty this list is empty this list is empty2 this list is empty2 this array is empty comment in unit empty list pat empty array pat unit pat comment this override is empty this variant is empty this obje...
module M = struct end module type M = sig end te""st let x = function () let x = object end let x = ipsum dolor sit amet , adipiscing elit . risus . Suspendisse lectus tortor , dignissim sit amet , adipiscing nec , ultricies sed , dolor . risus. Suspendisse lect...
8c55c21a1814240b10160544c664f401cae5fb9d3821edfd50ca82624c9fb535
dannywillems/RML
typer.mli
(** [type_of context term] returns the type of terms with the typing derivation tree. *) val type_of : ?context:ContextType.context -> Grammar.nominal_term -> DerivationTree.typing_node DerivationTree.t * Grammar.nominal_typ
null
https://raw.githubusercontent.com/dannywillems/RML/357be3ddac1f6d38b638248d37a877b4f6f802ea/src/typing/typer.mli
ocaml
* [type_of context term] returns the type of terms with the typing derivation tree.
val type_of : ?context:ContextType.context -> Grammar.nominal_term -> DerivationTree.typing_node DerivationTree.t * Grammar.nominal_typ
ef310abdc051896e150db2b78fbe6d20abcd5454a5b7a9602115a4e82b1c1da6
tebello-thejane/bitx.hs
LensSpec.hs
# LANGUAGE OverloadedStrings , module Network.Bitcoin.BitX.Spec.Specs.LensSpec ( spec ) where import Test.Hspec import Lens.Micro import qualified Network.Bitcoin.BitX as BitX import Network.Bitcoin.BitX.Types import Data.Time.Clock.POSIX # ANN module ( " HLint : ignore Reduce duplication " : : String ...
null
https://raw.githubusercontent.com/tebello-thejane/bitx.hs/d5b1211656192b90381732ee31ca631e5031041b/test/Network/Bitcoin/BitX/Spec/Specs/LensSpec.hs
haskell
If this file compiles, then (hopefully) all the Has* classes have been created and exported properly
# LANGUAGE OverloadedStrings , module Network.Bitcoin.BitX.Spec.Specs.LensSpec ( spec ) where import Test.Hspec import Lens.Micro import qualified Network.Bitcoin.BitX as BitX import Network.Bitcoin.BitX.Types import Data.Time.Clock.POSIX # ANN module ( " HLint : ignore Reduce duplication " : : String ...
b04f55707cf61b0c7e8df066b1593f58f763ffff739db542628983e7c751534f
fpco/ide-backend
TestPkgE.hs
module Testing.TestPkgE where testPkgE :: String testPkgE = "This is test package E-0.2"
null
https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend/test-packages/testpkg-E-0.2/Testing/TestPkgE.hs
haskell
module Testing.TestPkgE where testPkgE :: String testPkgE = "This is test package E-0.2"
181134f96d57d03d7f46f16f23322efdb6e7ba3f94eb84e3b8e284e1985f77b5
LonoCloud/step.async
pschema.clj
(ns lonocloud.step.async.pschema (:refer-clojure :exclude [defn defn- fn]) (:require [clojure.pprint :as pprint :refer [pprint]] [schema.core :as s] [schema.utils :as schema-utils]) (:import [schema.core OptionalKey])) (def eq s/eq) (def enum s/enum) (def Int s/Int) (ns-unmap *ns* 'Num...
null
https://raw.githubusercontent.com/LonoCloud/step.async/31dc58f72cb9719a11a97dc36992c67cf3efb766/src/lonocloud/step/async/pschema.clj
clojure
NOTE: Keyword is shadowed above, so must fully qualify here typed functions
(ns lonocloud.step.async.pschema (:refer-clojure :exclude [defn defn- fn]) (:require [clojure.pprint :as pprint :refer [pprint]] [schema.core :as s] [schema.utils :as schema-utils]) (:import [schema.core OptionalKey])) (def eq s/eq) (def enum s/enum) (def Int s/Int) (ns-unmap *ns* 'Num...
a1641af477df5a3acf7cd71ed2fb94358726a92ec6c42c6d863584c0fe9138a5
michaelballantyne/multiscope
main.rkt
#lang racket/base (require (for-syntax racket/base syntax/parse) (for-meta 2 racket/base syntax/parse syntax/id-table)) ; because we want to add scopes to absolutely everything we import, ; we don't provide any initial bindings through the module language ; other than #%module-begin and forms for require. The for...
null
https://raw.githubusercontent.com/michaelballantyne/multiscope/58af714ee263b3a34006b0aa810d0c6e34ba93f7/main.rkt
racket
because we want to add scopes to absolutely everything we import, we don't provide any initial bindings through the module language other than #%module-begin and forms for require. The forms for require will unfortunately be accessible to all the scopes, but may be overridden. for require don't add any scopes to ...
#lang racket/base (require (for-syntax racket/base syntax/parse) (for-meta 2 racket/base syntax/parse syntax/id-table)) (provide (rename-out [module-begin #%module-begin]) #%top-interaction #%top #%app #%datum require only-in except-in prefix-in rename-in combine-in relative-in only-meta-in for-syntax for-te...
79b96fb5db9b53a200879c9a157eef1f0781bb831934910874ee981e3ed48c9c
acl2/acl2
smtp@useless-runes.lsp
(ABNF::UNTRANSLATE-PREPROCESS-*SMTP-GRAMMAR-RULES*) (ABNF::RULELIST-WFP-OF-*SMTP-GRAMMAR-RULES*) (ABNF::SMTP-CST-MATCHP$) (ABNF::BOOLEANP-OF-SMTP-CST-MATCHP$) (ABNF::SMTP-CST-MATCHP$-OF-TREE-FIX-TREE (12 1 (:REWRITE ABNF::TREE-FIX-WHEN-TREEP)) (6 6 (:REWRITE ABNF::TREE-TERMINATEDP-WHEN-MEMBER-EQUAL-OF-TREE-LIST-TERMI...
null
https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/kestrel/abnf/examples/.sys/smtp%40useless-runes.lsp
lisp
(ABNF::UNTRANSLATE-PREPROCESS-*SMTP-GRAMMAR-RULES*) (ABNF::RULELIST-WFP-OF-*SMTP-GRAMMAR-RULES*) (ABNF::SMTP-CST-MATCHP$) (ABNF::BOOLEANP-OF-SMTP-CST-MATCHP$) (ABNF::SMTP-CST-MATCHP$-OF-TREE-FIX-TREE (12 1 (:REWRITE ABNF::TREE-FIX-WHEN-TREEP)) (6 6 (:REWRITE ABNF::TREE-TERMINATEDP-WHEN-MEMBER-EQUAL-OF-TREE-LIST-TERMI...
cbb3cfb6566299fc08bc8edf9f37406b724851d2e5c47523f53f1dbfd98ae605
funimagej/fun.imagej
filters.clj
(ns fun.imagej.filters (:require [clojure.string :as string]) (:import [net.imglib2.img ImagePlusAdapter Img] [net.imglib2.img.display.imagej ImageJFunctions] [net.imglib2.type NativeType] [net.imglib2.type.numeric NumericType] [net.imglib2.type.numeric.real FloatType] ...
null
https://raw.githubusercontent.com/funimagej/fun.imagej/dcbe14581ba9394d8ecc6e254e02fac8130a942d/src/fun/imagej/filters.clj
clojure
(ns fun.imagej.filters (:require [clojure.string :as string]) (:import [net.imglib2.img ImagePlusAdapter Img] [net.imglib2.img.display.imagej ImageJFunctions] [net.imglib2.type NativeType] [net.imglib2.type.numeric NumericType] [net.imglib2.type.numeric.real FloatType] ...
849b3f6842cfa5bca4ca40686c47dbafef02f557e155454f1c76c65b10665c5d
metabase/metabase
security.clj
(ns metabase.server.middleware.security "Ring middleware for adding security-related headers to API responses." (:require [clojure.java.io :as io] [clojure.string :as str] [java-time :as t] [metabase.analytics.snowplow :as snowplow] [metabase.config :as config] [metabase.models.setting :refer [def...
null
https://raw.githubusercontent.com/metabase/metabase/7e3048bf73f6cb7527579446166d054292166163/src/metabase/server/middleware/security.clj
clojure
inline script in init.html if sent in response to an HTTP request, this is simply ignored)" TODO - we keep working towards removing this entirely for webpack hot reloading Webpack dev server TODO - it would be nice if we could make this a proper link in the UI; consider enabling markdown parsing Tell browsers ...
(ns metabase.server.middleware.security "Ring middleware for adding security-related headers to API responses." (:require [clojure.java.io :as io] [clojure.string :as str] [java-time :as t] [metabase.analytics.snowplow :as snowplow] [metabase.config :as config] [metabase.models.setting :refer [def...
948ee1408aec5673249fb84d39306c04168b4fe2fb33d580ea72d567ab19e3a2
mpenet/commons
jvm.clj
(ns qbits.commons.jvm) (defn add-shutdown-hook! [f] (.addShutdownHook (Runtime/getRuntime) (Thread. ^Runnable f))) (defn set-uncaught-ex-handler! [f] (Thread/setDefaultUncaughtExceptionHandler (reify Thread$UncaughtExceptionHandler (uncaughtException [_ thread ex] (f thread ...
null
https://raw.githubusercontent.com/mpenet/commons/a377fed3a5ef00ba26f704e39ca60ad4039870cb/src/clj/qbits/commons/jvm.clj
clojure
(ns qbits.commons.jvm) (defn add-shutdown-hook! [f] (.addShutdownHook (Runtime/getRuntime) (Thread. ^Runnable f))) (defn set-uncaught-ex-handler! [f] (Thread/setDefaultUncaughtExceptionHandler (reify Thread$UncaughtExceptionHandler (uncaughtException [_ thread ex] (f thread ...
e463a2a2f30c118daf1dd4c96643eae55acbb7331d45b192261cdfafb3c25908
input-output-hk/plutus-apps
Server.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE MonoLocalBinds #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeApplications # {-# LANGUAGE TypeOperators #-} module Plutus.ChainIndex.Emulator.Server( serveChainIndexQueryServer, serveChainIndex) where import Control.Concurrent...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/21d96e5908558a4c3b3234f6a2b63b4b6f7fdee6/plutus-chain-index-core/src/Plutus/ChainIndex/Emulator/Server.hs
haskell
# LANGUAGE MonoLocalBinds # # LANGUAGE RankNTypes # # LANGUAGE TypeOperators # ^ Port
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # module Plutus.ChainIndex.Emulator.Server( serveChainIndexQueryServer, serveChainIndex) where import Control.Concurrent.STM (TVar) import Control.Concurrent.STM qualified as STM import Control.Monad.Except qualified as E ...
7c1ebbdf373bc33754daf074b75a4f7eda822f154fe79341cdfeb93f546e9b02
biegunka/biegunka
OK8.hs
# LANGUAGE DataKinds # -- | -- Chaining tests -- Checks you declare tasks prerequisites of another module Chaining where import Control.Biegunka import Control.Biegunka.Source.Directory chained_script_0 :: Script 'Sources () chained_script_0 = directory "/" pass `prerequisiteOf` directory "/" pass chained_s...
null
https://raw.githubusercontent.com/biegunka/biegunka/74fc93326d5f29761125d7047d5418899fa2469d/test/typecheck/should_compile/OK8.hs
haskell
| Chaining tests
# LANGUAGE DataKinds # Checks you declare tasks prerequisites of another module Chaining where import Control.Biegunka import Control.Biegunka.Source.Directory chained_script_0 :: Script 'Sources () chained_script_0 = directory "/" pass `prerequisiteOf` directory "/" pass chained_script_1 :: Script 'Sources...
54f8c78e9bf27bcb38075beef29db1e94ec9636a95c18b25d558791621edda72
facebookincubator/hsthrift
CallStack.hs
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . This source code is licensed under the BSD - style license found in the LICENSE file in the root directory of this source tree . Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. This source code...
null
https://raw.githubusercontent.com/facebookincubator/hsthrift/18e247ee96a036fa3c159709e78178a2ceb7b8d0/common/util/Util/Control/Exception/CallStack.hs
haskell
| Adds support to work with exceptions that pack a rendered call stack.
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . This source code is licensed under the BSD - style license found in the LICENSE file in the root directory of this source tree . Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. This source code...
f3d08c42ad6cc8248813ae6d7f228961d7e843aac0a1d4c2b2219156caf38c58
tnelson/Forge
extendingSigs.rkt
#lang forge/core (set-option! 'verbose 0) (sig ToExtend) (sig Extension1 #:extends ToExtend) (sig Extension2 #:extends ToExtend) (sig Extension3 #:extends Extension2) (test extensionEnforced #:preds [(in (+ Extension1 Extension2) ToExtend)] #:expect theorem) (test multipleExtensions #:preds [(&& ...
null
https://raw.githubusercontent.com/tnelson/Forge/1687cba0ebdb598c29c51845d43c98a459d0588f/forge/tests/forge-core/sigs/extendingSigs.rkt
racket
#lang forge/core (set-option! 'verbose 0) (sig ToExtend) (sig Extension1 #:extends ToExtend) (sig Extension2 #:extends ToExtend) (sig Extension3 #:extends Extension2) (test extensionEnforced #:preds [(in (+ Extension1 Extension2) ToExtend)] #:expect theorem) (test multipleExtensions #:preds [(&& ...
4ab21858f02acacebc378bf226c390ea4f158a41efccf98800fa2fbffedde39e
dom96/ElysiaBot
AMI.hs
{-# LANGUAGE OverloadedStrings #-} import Prelude hiding (lookup) import PluginUtils import Network.SimpleIRC.Messages import qualified Data.ByteString.Char8 as B import Network.AMI import Control.Monad (forever) import Control.Monad.IO.Class (liftIO) import Data.ByteString (ByteString, empty, append) import Data.Lis...
null
https://raw.githubusercontent.com/dom96/ElysiaBot/3accf5825e67880c7f1696fc81e3fc449efe3294/src/Plugins/AMI/AMI.hs
haskell
# LANGUAGE OverloadedStrings # this should be much better
import Prelude hiding (lookup) import PluginUtils import Network.SimpleIRC.Messages import qualified Data.ByteString.Char8 as B import Network.AMI import Control.Monad (forever) import Control.Monad.IO.Class (liftIO) import Data.ByteString (ByteString, empty, append) import Data.List (intercalate) import Data.Map (fr...
e0825f737da43924c62d7b37dd863f7ef031371e6be77f356ba3e79a819c6add
fulcrologic/guardrails
config.cljc
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the Eclipse Public License 2.0 ( -2.0/ ) ;; which can be found in the file LICENSE at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;; the terms of ...
null
https://raw.githubusercontent.com/fulcrologic/guardrails/17b47a7869314efbffe5dbe0c0daea7c30ed9006/src/main/com/fulcrologic/guardrails/config.cljc
clojure
The use and distribution terms for this software are covered by the which can be found in the file LICENSE 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 remove this notice, or any other, from this software. This isn...
Copyright ( c ) . All rights reserved . Eclipse Public License 2.0 ( -2.0/ ) (ns ^:no-doc com.fulcrologic.guardrails.config #?(:cljs (:require-macros com.fulcrologic.guardrails.config)) (:require [com.fulcrologic.guardrails.utils :as utils] #?@(:clj [[clojure.edn :as edn]] :cljs [[cljs.env :...
3e6ee09e6b6b4a9576654a571a3045d4fdc68f6484986ef54c4f5a0223fd0807
pa-ba/compdata-param
Injections.hs
# LANGUAGE TemplateHaskell # -------------------------------------------------------------------------------- -- | Module : Data . Comp . . Multi . Derive . Injections Copyright : ( c ) 2011 , -- License : BSD3 Maintainer : < > -- Stability : experimental Portability : non - p...
null
https://raw.githubusercontent.com/pa-ba/compdata-param/5d6b0afa95a27fd3233f86e5efc6e6a6080f4236/src/Data/Comp/Param/Multi/Derive/Injections.hs
haskell
------------------------------------------------------------------------------ | License : BSD3 Stability : experimental Derive functions for signature injections. ------------------------------------------------------------------------------
# LANGUAGE TemplateHaskell # Module : Data . Comp . . Multi . Derive . Injections Copyright : ( c ) 2011 , Maintainer : < > Portability : non - portable ( GHC Extensions ) module Data.Comp.Param.Multi.Derive.Injections ( injn, injectn, deepInjectn ) where impo...
733c2ec26a4bc9c3e994148cd902cba02f6360c632385872a45fc5779ced5a2a
lispbuilder/lispbuilder
library.lisp
;;; -*- lisp -*- (in-package #:lispbuilder-opengl) (cffi:define-foreign-library GL (:darwin (:framework "OpenGL")) (:windows "OPENGL32.dll") (:unix (:or "libGL" "libGL.so.2" "libGL.so.1"))) (cffi:use-foreign-library GL)
null
https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-opengl/opengl/library.lisp
lisp
-*- lisp -*-
(in-package #:lispbuilder-opengl) (cffi:define-foreign-library GL (:darwin (:framework "OpenGL")) (:windows "OPENGL32.dll") (:unix (:or "libGL" "libGL.so.2" "libGL.so.1"))) (cffi:use-foreign-library GL)
fd47e1afc1259cdb565a3ec621dcd18efac7fc8d25ba729f89df09b595a16ecf
TyOverby/mono
attr.mli
open Virtual_dom.Vdom.Attr open Core type align_options = | None | X_max_y_max | X_max_y_mid | X_max_y_min | X_mid_y_max | X_mid_y_mid | X_mid_y_min | X_min_y_max | X_min_y_mid | X_min_y_min type units = | Object_bounding_box | User_space_on_use type angle = | Deg of float | Grad of float...
null
https://raw.githubusercontent.com/TyOverby/mono/7666c0328d194bf9a569fb65babc0486f2aaa40d/vendor/janestreet-virtual_dom/svg/src/attr.mli
ocaml
* nothing for <defs> * shares cx and cy with circle * nothing for <g> * shares href with <a>, x1, x2, y1, y2 with <line> * shares width, height, x, and y with <image> * shares points with <polygon> * nothing to do for <style> * x and y is shared with <image>
open Virtual_dom.Vdom.Attr open Core type align_options = | None | X_max_y_max | X_max_y_mid | X_max_y_min | X_mid_y_max | X_mid_y_mid | X_mid_y_min | X_min_y_max | X_min_y_mid | X_min_y_min type units = | Object_bounding_box | User_space_on_use type angle = | Deg of float | Grad of float...
c3223d1ff2dbeec8413fa55500014ee0225139ed08f9d794bfed9473ea30bd10
atdixon/me.untethr.nostr-relay
fulfill_test.clj
(ns test.fulfill-test (:require [clojure.test :refer :all] [me.untethr.nostr.common.domain :as domain] [me.untethr.nostr.fulfill :as fulfill] [me.untethr.nostr.app :as app] [next.jdbc :as jdbc] [test.support :as support] [test.test-data :as test-...
null
https://raw.githubusercontent.com/atdixon/me.untethr.nostr-relay/f02c644d8c09dc41703b4ce9e99e1e4a30fda8e9/test/test/fulfill_test.clj
clojure
cause test to swap! if inc the async work and even if index query doesn't de-duplicate the kv lookup will de-dupe for the single fulfillment page verify the results are json strings that can be parsed ensure cancellation -- a no-op, now that we're done -- leaves us with an empty registry cause test to swap! ...
(ns test.fulfill-test (:require [clojure.test :refer :all] [me.untethr.nostr.common.domain :as domain] [me.untethr.nostr.fulfill :as fulfill] [me.untethr.nostr.app :as app] [next.jdbc :as jdbc] [test.support :as support] [test.test-data :as test-...
d70987cd85315260ea87289226e72535e422cfaaeabca3c49b8535e0481d25fe
mirage/functoria
functoria_misc.mli
* Copyright ( c ) 2013 < > * Copyright ( c ) 2013 Anil Madhavapeddy < > * * 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/functoria/d15603d5e32d335cd075d426aee7038f786eb497/lib/functoria_misc.mli
ocaml
* Utility module. * Generation of fresh names * Universal map
* Copyright ( c ) 2013 < > * Copyright ( c ) 2013 Anil Madhavapeddy < > * * 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 . * ...
201d3526a6788bffd8ee7ace1a2f89d8d3c242c43ec80fc5691ccd016ed4733e
AustinRochford/99-problems-clojure
lists.clj
(ns ninety-nine-problems.lists (:require [clojure.contrib.core :refer :all] [ninety-nine-problems.core :refer :all]) (:gen-class)) Problem 1 (defn last' "Get the last element of a list" [coll] (let [[head & tail] coll] (if (empty? tail) head ...
null
https://raw.githubusercontent.com/AustinRochford/99-problems-clojure/bdc0c6ddcbcce58c2d6575a74c7263d84077958d/src/ninety_nine_problems/lists.clj
clojure
Problem 28b
(ns ninety-nine-problems.lists (:require [clojure.contrib.core :refer :all] [ninety-nine-problems.core :refer :all]) (:gen-class)) Problem 1 (defn last' "Get the last element of a list" [coll] (let [[head & tail] coll] (if (empty? tail) head ...
502b9400d1ce1d6d5df75bbe54219410a817b8b7b58949356e38ce24c43cc07d
emqx/emqx
emqx_authn_http.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2021 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/emqx/emqx/73d5592b5af0cbbf347e5dc2b9b865b41228249f/apps/emqx_authn/src/simple_authn/emqx_authn_http.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2021 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_authn_http). -include("emqx_authn.hrl"). -include_lib("emqx/include/logger.hrl"). ...
bcb1c130feab4ca37ae6859f27fffcc5b845dd17923bb7b4a8f600c67054f666
MichaelBurge/pyramid-scheme
types.rkt
#lang typed/racket (provide (all-defined-out)) ;; (require typed/racket/unsafe) ;; (unsafe-provide (all-defined-out)) ; These submodules should be in the original file, but this issue prevents that: ; ; (module common typed/racket (require typed/racket/unsafe) (provide (all-defined-out) register-va...
null
https://raw.githubusercontent.com/MichaelBurge/pyramid-scheme/d38ba194dca8eced474fb26956864ea30f9e23ce/types.rkt
racket
(require typed/racket/unsafe) (unsafe-provide (all-defined-out)) These submodules should be in the original file, but this issue prevents that: codegen.rkt compiler.rkt ast.rkt simulator.rkt EVM spec Additional fields Account currently executing An individual account's storage All accounts' storages Al...
#lang typed/racket (provide (all-defined-out)) (module common typed/racket (require typed/racket/unsafe) (provide (all-defined-out) register-value?) (define-type Offset Natural) (define-type Counter Natural) (define-type Size Natural) (define-type Anys (Listof Any)) (define-type Symbols (L...