_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
5b9a2e800d60d1e0bd57b2b6884e235785dc74c6d21fe1e904246a187829eaf1
ucsd-progsys/dsolve
embed_constr.ml
type wrapped_int = Nil | Wrap of int let a = Nil let b = Nil let _ = assert (a = b) let c = 3 let z = Wrap c let _ = assert (z = Wrap 3) let d = 3 let y = Wrap d let _ = assert (y = Wrap c) let _ = assert (not (a = y))
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/postests/embed_constr.ml
ocaml
type wrapped_int = Nil | Wrap of int let a = Nil let b = Nil let _ = assert (a = b) let c = 3 let z = Wrap c let _ = assert (z = Wrap 3) let d = 3 let y = Wrap d let _ = assert (y = Wrap c) let _ = assert (not (a = y))
997ac5722719ccbc5444b11a80ccbbe36577c0177cbf193aee162cb41e987116
kupl/LearnML
patch.ml
type formula = | True | False | Not of formula | AndAlso of (formula * formula) | OrElse of (formula * formula) | Imply of (formula * formula) | Equal of (exp * exp) and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp) let rec exp_to_int (e : exp) : int = match e with | Num n -> n | P...
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/formula/sub66/patch.ml
ocaml
type formula = | True | False | Not of formula | AndAlso of (formula * formula) | OrElse of (formula * formula) | Imply of (formula * formula) | Equal of (exp * exp) and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp) let rec exp_to_int (e : exp) : int = match e with | Num n -> n | P...
66d3c62582e3c0be0cadff8d80670b9327d1efcc285a146ec7d095288ff8dd3d
shenxs/about-scheme
33.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname |33|) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "ba...
null
https://raw.githubusercontent.com/shenxs/about-scheme/d458776a62cb0bbcbfbb2a044ed18b849f26fd0f/HTDP/33.rkt
racket
about the language level of this file in a form that our tools can easily process. 回溯算法 [string]==>[list of 1Strings] 将字符串转换为一个字符表 什么时候写在一个文件里省的老是自己写 给定图以及一个节点,给出次节点的相邻的节点 (neighbors 'F graph) finds a path from origination to destination in G if there is no path, the function produces #false [List-of Node] Node G...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname |33|) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "batch-io.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp") (lib "abstra...
b3b9bf6e6cc95f74cfbf33c966437bdcdcddb7041126a71fdeca9d515ad7b2c3
semilin/layoup
Sonne.lisp
(MAKE-LAYOUT :NAME "Sonne" :MATRIX (APPLY #'KEY-MATRIX '("äuom,pdclq" "aiesfghtnr" "ü.öwvzkbxy")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/Sonne.lisp
lisp
(MAKE-LAYOUT :NAME "Sonne" :MATRIX (APPLY #'KEY-MATRIX '("äuom,pdclq" "aiesfghtnr" "ü.öwvzkbxy")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
49f4cf24d94ea533d5815d733a2821dee57d999a5e798b321ffa47ba2c596860
rtoy/cmucl
dep-allegro.lisp
;;; -*- Mode: Lisp; Package: Xlib; Log: clx.log -*- This file contains some of the system dependent code for CLX ;;; TEXAS INSTRUMENTS INCORPORATED ;;; P.O. BOX 2909 AUSTIN , TEXAS 78769 ;;; Copyright ( C ) 1987 Texas Instruments Incorporated . ;;; ;;; Permission is granted to any individual ...
null
https://raw.githubusercontent.com/rtoy/cmucl/263e93982390688b10caead45e494825d10d5966/src/clx/dep-allegro.lisp
lisp
-*- Mode: Lisp; Package: Xlib; Log: clx.log -*- P.O. BOX 2909 Permission is granted to any individual or institution to use, copy, modify, and distribute this software, provided that this complete copyright and permission notice is maintained, intact, in all copies and supporting documentation. express ...
This file contains some of the system dependent code for CLX TEXAS INSTRUMENTS INCORPORATED AUSTIN , TEXAS 78769 Copyright ( C ) 1987 Texas Instruments Incorporated . Texas Instruments Incorporated provides this software " as is " without (in-package :xlib) (proclaim '(declaration array-regist...
9d897de19f67cf1c711f3166c87c7c2e0997a63a7ef337d7b82dcec753dad372
greghendershott/blog
make-preview.rkt
#lang racket/base Copyright 2019 by . ;; 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/greghendershott/blog/f487bda88e4cccad3585623a7e772ffc34f5d73e/rkt/make-preview.rkt
racket
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permis...
#lang racket/base Copyright 2019 by . distributed under the License is distributed on an " AS IS " BASIS , (require racket/require (multi-in racket (match path)) (multi-in web-server (dispatchers/dispatch servlet-env))) (module+ main (main)) (define (main) (match (current-command-line-argu...
a45bc3b5ab776b8506604b1b2528541679e57b951f53308bdaf788e4b07ee177
manuel-serrano/hop
websocket.scm
;*=====================================================================*/ * serrano / prgm / project / hop/3.2.x / runtime / websocket.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/481cb10478286796addd2ec9ee29c95db27aa390/runtime/websocket.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * Hop WebSocket server-side tools */ *===========================...
* serrano / prgm / project / hop/3.2.x / runtime / websocket.scm * / * Author : * / * Creation : We d Aug 15 07:21:08 2012 * / * Last change : Mon Jul 2 17:28:38 2018 ( serrano ) * / * Copy...
3630325c198762b7812bb3cb9dcc4d9b686918169d718f496ea9ec85b55d9e5c
anoma/juvix
test030.hs
import Data.List eratostenes :: [Integer] -> [Integer] eratostenes (h : t) = h : eratostenes (filter (\x -> x `mod` h /= 0) t) primes :: [Integer] primes = eratostenes [2 ..]
null
https://raw.githubusercontent.com/anoma/juvix/3db92fa28668659c61c30986858c7108c2e63647/tests/Core/positive/reference/test030.hs
haskell
import Data.List eratostenes :: [Integer] -> [Integer] eratostenes (h : t) = h : eratostenes (filter (\x -> x `mod` h /= 0) t) primes :: [Integer] primes = eratostenes [2 ..]
d44f32257d6c67872f798e79110dfac8f54180ffd764f0328e241e5338113c14
ujihisa/haskell-workshop-project-eular
prob1.hs
2009 - 03 - 08 09:11:14 main = print $ sum $ filter multi3or5 [1..999] multi3or5 :: Int -> Bool multi3or5 x | x `mod` 3 == 0 = True | x `mod` 5 == 0 = True | otherwise = False
null
https://raw.githubusercontent.com/ujihisa/haskell-workshop-project-eular/96d98133ad42cbacfb83c3a9229410760d7745aa/yoppi/prob1.hs
haskell
2009 - 03 - 08 09:11:14 main = print $ sum $ filter multi3or5 [1..999] multi3or5 :: Int -> Bool multi3or5 x | x `mod` 3 == 0 = True | x `mod` 5 == 0 = True | otherwise = False
2911c6a97c65d85adddf1ad2b27bb3e20b72c4e5006350bd169b6f40f8f87ca2
dimitri/pgloader
command-pgsql.lisp
;;; Parse the pgloader commands grammar ;;; (in-package :pgloader.parser) ;;; ;;; PostgreSQL options ;;; (defrule pgsql-option (or option-on-error-stop option-on-error-resume-next option-workers option-concurrency ...
null
https://raw.githubusercontent.com/dimitri/pgloader/3047c9afe141763e9e7ec05b7f2a6aa97cf06801/src/parsers/command-pgsql.lisp
lisp
PostgreSQL options Including only some tables or excluding some others Allow clauses to appear in any order LOAD DATABASE FROM pgsql://
Parse the pgloader commands grammar (in-package :pgloader.parser) (defrule pgsql-option (or option-on-error-stop option-on-error-resume-next option-workers option-concurrency option-batch-rows ...
f8100c764e04a56d705e4597880d3daecb05ac7cbad22492227ec8d234a0be50
Clojure2D/clojure2d
signal_example.clj
(ns clojure2d.extra.signal-example (:require [metadoc.examples :refer :all] [clojure2d.extra.signal :refer :all] [clojure2d.core :refer :all] [clojure2d.pixels :as p] [clojure2d.color :as c] [fastmath.vector :as v] [fastmath.core :as m] ...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d/26cceb14982a30fa6f867a5e5bf120f270c2b170/metadoc/clojure2d/extra/signal_example.clj
clojure
(ns clojure2d.extra.signal-example (:require [metadoc.examples :refer :all] [clojure2d.extra.signal :refer :all] [clojure2d.core :refer :all] [clojure2d.pixels :as p] [clojure2d.color :as c] [fastmath.vector :as v] [fastmath.core :as m] ...
d8cbc40a560079fed47695acbb7898706d116b3b8cd82fadf95adc9e4b8a1515
haskus/haskus-system
Helper.hs
# LANGUAGE DataKinds # {-# LANGUAGE RankNTypes #-} -- | Helpers for the graphics API module Haskus.System.Linux.Graphics.Helper ( FrameAction (..) , setController , switchFrame ) where import Haskus.System.Linux.Graphics.State import Haskus.System.Linux.Graphics.Mode import Haskus.System.Linux.Graphics.Fr...
null
https://raw.githubusercontent.com/haskus/haskus-system/38b3a363c26bc4d82e3493d8638d46bc35678616/haskus-system/src/lib/Haskus/System/Linux/Graphics/Helper.hs
haskell
# LANGUAGE RankNTypes # | Helpers for the graphics API ^ Use the given Frame ^ Use the current Frame (if any) ^ Release the frame | Configure a controller one is re-used (be sure it is large enough!) | Switch to another frame for the given controller without doing a full mode change
# LANGUAGE DataKinds # module Haskus.System.Linux.Graphics.Helper ( FrameAction (..) , setController , switchFrame ) where import Haskus.System.Linux.Graphics.State import Haskus.System.Linux.Graphics.Mode import Haskus.System.Linux.Graphics.Frame import Haskus.System.Linux.Graphics.Entities import Haskus...
701c4e64202903f6e9a0b232b4a862643886317a1cdc90e1199bcb706cc1d3ae
ailrk/lambda-cube
Test.hs
module Test where import System.IO import Data.Vector import Eval import AST import Syntax v = fromList [1, 2, 3] e0 = (Builtin Add [Lit (VInt 1), Lit (VInt 3)]) e1 = App (Lam (Builtin Add [Lit (VInt 1), Lit (VInt 2)])) (Lit (VInt 3)) e2 = App (Lam (Var 0)) (Lit (VInt 4)) e3e = App (Lam (Var 1)) (Lit (VInt 4)) ...
null
https://raw.githubusercontent.com/ailrk/lambda-cube/eea2ac0fe51ec69f3be18895f4c50974dc565797/UTLC/src/Test.hs
haskell
y g x = g (x + 2) in y f 2)
module Test where import System.IO import Data.Vector import Eval import AST import Syntax v = fromList [1, 2, 3] e0 = (Builtin Add [Lit (VInt 1), Lit (VInt 3)]) e1 = App (Lam (Builtin Add [Lit (VInt 1), Lit (VInt 2)])) (Lit (VInt 3)) e2 = App (Lam (Var 0)) (Lit (VInt 4)) e3e = App (Lam (Var 1)) (Lit (VInt 4)) ...
2a3118d790200eb2f232cffd7f0a114dc062689262e53b146fc08c2599efec79
softlab-ntua/bencherl
class_TestStochasticActor.erl
Copyright ( C ) 2008 - 2014 EDF R&D This file is part of Sim - Diasca . Sim - Diasca is free software : you can redistribute it and/or modify % it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) a...
null
https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/sim-diasca/sim-diasca/src/core/src/random/class_TestStochasticActor.erl
erlang
it under the terms of the GNU Lesser General Public License as but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the If not, see </>. Test of Stochastic Actor class, regarding random management. Note: to be used with randomManagerAndStochastic...
Copyright ( C ) 2008 - 2014 EDF R&D This file is part of Sim - Diasca . Sim - Diasca is free software : you can redistribute it and/or modify published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . Sim - Diasca is distributed in the hope tha...
ef1be5c8f08d5f860049634910996a7c4e5a6bf32e6f7bba3d6b88d535dcee49
cac-t-u-s/om-sharp
osc.lisp
;============================================================================ ; om#: visual programming language for computer-assisted music composition ;============================================================================ ; ; This program is free software. For information on usage ; and redistribution...
null
https://raw.githubusercontent.com/cac-t-u-s/om-sharp/195cea724ecb2cecac81d60e86d8ade2086d3ace/src/packages/osc/osc.lisp
lisp
============================================================================ om#: visual programming language for computer-assisted music composition ============================================================================ This program is free software. For information on usage and redistribution, see ...
File author : (in-package :om) (require-om-package "basic") CL - OSC (load (merge-pathnames "cl-osc/osc.asd" *load-pathname*)) (asdf:operate 'asdf:load-op 'osc) (push :osc *features*) (compile&load (decode-local-path "osc-om/osc-struct")) (compile&load (decode-local-path "osc-om/osc-send-recei...
c96f01a96d60270aff7fdc4a2f950c9d14ee61a0f9bd79c8e2e6f679622b8fd6
mstksg/backprop-learn
Stochastic.hs
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWild...
null
https://raw.githubusercontent.com/mstksg/backprop-learn/59aea530a0fad45de6d18b9a723914d1d66dc222/src/Backprop/Learn/Model/Stochastic.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE FlexibleContexts # # LANGUAGE PatternSynonyms # # LANGUAGE RankNTypes # # LANGUAGE TypeInType # | Dropout layer. Parameterized by dropout percentage (should be between nodes every time. | Inject random noise. Usually used between neura...
# LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGUAGE ViewPatterns # module Backprop.Learn.Model.Stoc...
c94ee0317b875b4347fd8c976a9a465f44b3df12182eab9f2f46a0b71638b11e
eugenehr/erlyconv
iso8859_5.erl
%% THIS FILE WAS AUTOMATICALLY GENERATED BY gen_src.pl FROM mappings / ISO8859/8859 - 5.TXT AT 2016 - 08 - 19 -module(iso8859_5). -vsn(20160819). -export([to_unicode/1, from_unicode/1]). %% Public functions to_unicode(16#A1) -> 16#0401; to_unicode(16#A2) -> 16#0402; to_unicode(16#A3) -> 16#0403; to_unicode(16#A4) ->...
null
https://raw.githubusercontent.com/eugenehr/erlyconv/ecdcd7db8f785c9638cd1ebad37ccd426c050cdf/src/iso8859_5.erl
erlang
THIS FILE WAS AUTOMATICALLY GENERATED BY gen_src.pl Public functions Private functions
FROM mappings / ISO8859/8859 - 5.TXT AT 2016 - 08 - 19 -module(iso8859_5). -vsn(20160819). -export([to_unicode/1, from_unicode/1]). to_unicode(16#A1) -> 16#0401; to_unicode(16#A2) -> 16#0402; to_unicode(16#A3) -> 16#0403; to_unicode(16#A4) -> 16#0404; to_unicode(16#A5) -> 16#0405; to_unicode(16#A6) -> 16#0406; to_un...
f1597f34d3dde55d7092553d4fb726a6638eb11f6398eae08ba3c417a37ed852
tov/dssl2
timeout-slow.rkt
#lang dssl2 assert sleep(2) is None, time < 4
null
https://raw.githubusercontent.com/tov/dssl2/105d18069465781bd9b87466f8336d5ce9e9a0f3/test/dssl2/timeout-slow.rkt
racket
#lang dssl2 assert sleep(2) is None, time < 4
fc828c5016f582099bcd22081dc5dd1c3e00e3f86cfa20abd1a5b64b4bcb56c0
ostinelli/syn
syn_test_suite_helper.erl
%% ========================================================================================================== Syn - A global Process Registry and Process Group manager . %% The MIT License ( MIT ) %% Copyright ( c ) 2015 - 2022 < > and Neato Robotics , Inc. %% %% Permission is hereby granted, free of charge, t...
null
https://raw.githubusercontent.com/ostinelli/syn/0993c938592c6f8a80f6b88bad9168880dde1bf3/test/syn_test_suite_helper.erl
erlang
========================================================================================================== Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, s...
Syn - A global Process Registry and Process Group manager . The MIT License ( MIT ) Copyright ( c ) 2015 - 2022 < > and Neato Robotics , Inc. in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or ...
6b43f786633cd423e7436bf2e7e532ead173d394a7e6720235098dbce03b0051
tolitius/mount
fun_with_values.cljc
(ns mount.test.fun-with-values (:require #?@(:cljs [[cljs.test :as t :refer-macros [is are deftest testing use-fixtures]] [mount.core :as mount :refer-macros [defstate]]] :clj [[clojure.test :as t :refer [is are deftest testing use-fixtures]] [mount.core :as mount :refer [de...
null
https://raw.githubusercontent.com/tolitius/mount/c85da6149ceab96c903c1574106ec56f78338b5f/test/core/mount/test/fun_with_values.cljc
clojure
(ns mount.test.fun-with-values (:require #?@(:cljs [[cljs.test :as t :refer-macros [is are deftest testing use-fixtures]] [mount.core :as mount :refer-macros [defstate]]] :clj [[clojure.test :as t :refer [is are deftest testing use-fixtures]] [mount.core :as mount :refer [de...
1cddc6d3346dc88aa74232127c1c503660692d710413f9318d2613c2c6cfeeb1
chenyukang/eopl
08.scm
(load-relative "../libs/init.scm") (load-relative "./base/test.scm") (load-relative "./base/letrec-cases.scm") add for the lang as 3.21 ;; using data-structure representaion for continuations ;;;;;;;;;;;;;;;;; grammatical specification ;;;;;;;;;;;;;;;; (define the-lexical-spec '((whitespace (whitespace) skip)...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/ch5/08.scm
scheme
using data-structure representaion for continuations grammatical specification ;;;;;;;;;;;;;;;; new stuff sllgen boilerplate ;;;;;;;;;;;;;;;; extractors: continuations ;;;;;;;;;;;;;;;; new stuff procedures ;;;;;;;;;;;;;;;; environment structures ;;;;;;;;;;;;;;;; environment constructors and observers ;;;;;;;;;;...
(load-relative "../libs/init.scm") (load-relative "./base/test.scm") (load-relative "./base/letrec-cases.scm") add for the lang as 3.21 (define the-lexical-spec '((whitespace (whitespace) skip) (comment ("%" (arbno (not #\newline))) skip) (identifier (letter (arbno (or letter digit "_" "-" "?"))) ...
740de147c14569a3dc118f43f3b54b23ad17358aa9de6afd6cca609caf970e99
borgeby/jarl
types.cljc
(ns jarl.types (:require [jarl.exceptions :as errors]) #?(:clj (:import (clojure.lang BigInt)))) From the OPA go docs on ast . Compare : ; ; If a is less than b, the return value is negative. If a is greater than b, the return value is positive . If a is equal to b , the return value is zero . ; ; Different ty...
null
https://raw.githubusercontent.com/borgeby/jarl/2659afc6c72afb961cb1e98b779beb2b0b5d79c6/core/src/main/cljc/jarl/types.cljc
clojure
If a is less than b, the return value is negative. If a is greater than b, Different types are never equal to each other. For comparison purposes, types are sorted as follows: nil < Null < Boolean < Number < String < Var < Ref < Array < Object < Set < ArrayComprehension < ObjectComprehension < SetComprehension ...
(ns jarl.types (:require [jarl.exceptions :as errors]) #?(:clj (:import (clojure.lang BigInt)))) From the OPA go docs on ast . Compare : the return value is positive . If a is equal to b , the return value is zero . (declare rego-compare) #_:clj-kondo/ignore (defn bigint? [x] #?(:clj (instance? BigInt x) ...
30942c3805f4b8218c9b8a04893920bc8b20c1dac0a2aa4da98ce2fc1bc7ec71
soegaard/racket-cas
formula-manipulation.rkt
#lang racket/base (provide together combine QuotientTogether mma-numerator/denominator) ;;; ;;; Formula Manipulation ;;; (require racket/match (for-syntax racket/base racket/syntax syntax/parse) "core.rkt" "math-match.rkt" "runtime-paths.rkt") (module+ test (require ra...
null
https://raw.githubusercontent.com/soegaard/racket-cas/440762257be1f137e34e9c56c31ab2e194b6d522/racket-cas/formula-manipulation.rkt
racket
Formula Manipulation Formula Manipulation Together The `together` operations rewrites a sum into a single fraction. A common denominator the terms in the sum is found. test cases adapted from todo: cancels common factors. Apart acts as a partial inverse of Together: Cancel only cancels common factors betw...
#lang racket/base (provide together combine QuotientTogether mma-numerator/denominator) (require racket/match (for-syntax racket/base racket/syntax syntax/parse) "core.rkt" "math-match.rkt" "runtime-paths.rkt") (module+ test (require rackunit math/bigfloat) (define n...
69b190acc0c088a2d8847b8ec096fa253acd6acf15a7514a73ca364b1b886fc4
AshleyYakeley/Truth
EditContext.hs
module Changes.Core.Model.EditContext ( EditSource , noEditSource , newEditSource , EditContext(..) , editSourceContext , noEditContext ) where import Changes.Core.Import newtype EditSource = MkEditSource (Maybe Unique) deriving (Eq) noEditSource :: EditSource noEditSource = MkEdi...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/d704b8baaa77dac002922eccecdd91018c4b7eef/Changes/changes-core/lib/Changes/Core/Model/EditContext.hs
haskell
module Changes.Core.Model.EditContext ( EditSource , noEditSource , newEditSource , EditContext(..) , editSourceContext , noEditContext ) where import Changes.Core.Import newtype EditSource = MkEditSource (Maybe Unique) deriving (Eq) noEditSource :: EditSource noEditSource = MkEdi...
855f595e5a13e278be5e4a70e60921e336260d5f04c4293f7cac3cfa627282eb
metasoarous/semantic-csv
core_test.clj
(ns semantic-csv.core-test (:require [clojure.test :refer :all] [clojure-csv.core :as csv] [semantic-csv.core :refer :all])) (deftest mappify-test (let [data [["this" "that"] ["x" "y"] ["# some comment"]]] (testing "mappify should work" (is (= (first (...
null
https://raw.githubusercontent.com/metasoarous/semantic-csv/10f436bacf2ca9ed2f22ffbbecea6467ba20c2e4/test/semantic_csv/core_test.clj
clojure
(ns semantic-csv.core-test (:require [clojure.test :refer :all] [clojure-csv.core :as csv] [semantic-csv.core :refer :all])) (deftest mappify-test (let [data [["this" "that"] ["x" "y"] ["# some comment"]]] (testing "mappify should work" (is (= (first (...
0bb16b8b845b9d8d14eca11b7c314cd783244307e737bf44892f62ceb897eacc
stylewarning/formulador
editor.lisp
editor.lisp ;;;; Copyright ( c ) 2014 (in-package #:formulador-editor) ;;; EXAMPLE FORMULA (defparameter *formula* (flet ((pow (a b) (script-box a :superscript b))) (let ((pi-letter (box (code-char #x3C0)))) (tape (frac-box (box "1") pi-letter) (box "=") (frac-box (s...
null
https://raw.githubusercontent.com/stylewarning/formulador/7f3528da88adf8e3debdc5db564077ccd06ef2c5/editor/editor.lisp
lisp
EXAMPLE FORMULA EDITOR Do not echo characters immediately. We will do this ourselves. Do not buffer. Enable non-blocking. Enable function keys, arrow keys, etc. Wait for a character Refresh the screen.
editor.lisp Copyright ( c ) 2014 (in-package #:formulador-editor) (defparameter *formula* (flet ((pow (a b) (script-box a :superscript b))) (let ((pi-letter (box (code-char #x3C0)))) (tape (frac-box (box "1") pi-letter) (box "=") (frac-box (sqrt-box (pow (box "640320...
bab71c8dc693dfd0c85433d0f7a2b167ebdd1dc6ca954442f7688d3592b326cf
JunSuzukiJapan/cl-reex
min.lisp
(in-package :cl-user) (defpackage cl-reex.operator.min (:use :cl) (:import-from :cl-reex.observer :observer :on-next :on-error :on-completed ) (:import-from :cl-reex.observable :observable :dispose :is-active :set-error :set-completed ...
null
https://raw.githubusercontent.com/JunSuzukiJapan/cl-reex/94928c7949c235b41902138d9e4a5654b92d67eb/src/operator/min.lisp
lisp
(in-package :cl-user) (defpackage cl-reex.operator.min (:use :cl) (:import-from :cl-reex.observer :observer :on-next :on-error :on-completed ) (:import-from :cl-reex.observable :observable :dispose :is-active :set-error :set-completed ...
438ee9e46abcccae6f85884c13f4b34dbfb86be1d23e0ce2bc9b41028952659b
dterei/memcache-hs
SASL.hs
# OPTIONS_GHC -fno - warn - unused - binds # | Module : Database . Memcache . SASL Description : SASL Authentication Copyright : ( c ) , 2016 License : BSD Maintainer : Stability : stable Portability : GHC SASL authentication support for Memcached . Module : Database.Memca...
null
https://raw.githubusercontent.com/dterei/memcache-hs/83957ee9c4983f87447b0e7476a9a9155474dc80/Database/Memcache/SASL.hs
haskell
* Types * Operations | Perform SASL authentication with the server. but we'll just assume it is as that's all mainline and other implementations | Perform SASL PLAIN authentication. | List available SASL authentication methods. We could call this but as we only support PLAIN as does the Memcached server, we simp...
# OPTIONS_GHC -fno - warn - unused - binds # | Module : Database . Memcache . SASL Description : SASL Authentication Copyright : ( c ) , 2016 License : BSD Maintainer : Stability : stable Portability : GHC SASL authentication support for Memcached . Module : Database.Memca...
5836194d40239157b8281b034879b1c04770665ad675bc1ed616ea50ccad323b
bgusach/exercises-htdp2e
ex-291.rkt
#lang htdp/isl+ (require test-engine/racket-tests) # # # Functions ; [A B] [A -> B] [List-of A] -> [List-of B] (check-expect (map-via-fold add1 '()) '()) (check-expect (map-via-fold add1 '(1 2 3)) '(2 3 4)) (define (map-via-fold fn l) (foldr (λ (it acc) (cons (fn it) acc)) '() l) ) (test)
null
https://raw.githubusercontent.com/bgusach/exercises-htdp2e/c4fd33f28fb0427862a2777a1fde8bf6432a7690/3-abstraction/ex-291.rkt
racket
[A B] [A -> B] [List-of A] -> [List-of B]
#lang htdp/isl+ (require test-engine/racket-tests) # # # Functions (check-expect (map-via-fold add1 '()) '()) (check-expect (map-via-fold add1 '(1 2 3)) '(2 3 4)) (define (map-via-fold fn l) (foldr (λ (it acc) (cons (fn it) acc)) '() l) ) (test)
7ec893f8d82a6b235aabfb1e268ae17581346be1a998e9d45996bf1278f2001f
danieljharvey/mimsa
Main.hs
module Main (main) where import Test.Hspec import qualified Test.Interpreter.InterpreterSpec import qualified Test.LLVM.LLVMSpec import qualified Test.Parser.ParserSpec main :: IO () main = hspec $ do Test.Parser.ParserSpec.spec Test.Interpreter.InterpreterSpec.spec Test.LLVM.LLVMSpec.spec
null
https://raw.githubusercontent.com/danieljharvey/mimsa/296ab9bcbdbaf682fa76921ce3c80d4bbafb52ae/llvm-calc/test/Main.hs
haskell
module Main (main) where import Test.Hspec import qualified Test.Interpreter.InterpreterSpec import qualified Test.LLVM.LLVMSpec import qualified Test.Parser.ParserSpec main :: IO () main = hspec $ do Test.Parser.ParserSpec.spec Test.Interpreter.InterpreterSpec.spec Test.LLVM.LLVMSpec.spec
11880cd9ef1aad9732a2edb23597851a6bac72f7c6ec614372d799e416916f79
Abhiroop/okasaki
SuboptimalHeaps.hs
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ViewPatterns # module SuboptimalHeaps where import Data.List.Ordered import Prelude as P | These are suboptimal implementations of Heap using Lists and unordered Lists , to demonstrate certain performance characteristics of the various dat...
null
https://raw.githubusercontent.com/Abhiroop/okasaki/b4e8b6261cf9c44b7b273116be3da6efde76232d/src/SuboptimalHeaps.hs
haskell
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ViewPatterns # module SuboptimalHeaps where import Data.List.Ordered import Prelude as P | These are suboptimal implementations of Heap using Lists and unordered Lists , to demonstrate certain performance characteristics of the various dat...
e7c8672da8ac28fe53a72a5fd2e2a209f61dc06304753b82ba72fe5fee1dda5d
Smoltbob/Caml-Est-Belle
typechecking.ml
(** This module is for program type checking*) open Fsyntax;; open Ftype;; (** list of equations , it has a type of (Ftype.t* Ftype.t) list *) let eq = ref [] (** the predefined environment that contains the used predefined functions it has a type of (Fid.t* Ftype.t) list *) let preDefEnv = [("print_int" ,Fun...
null
https://raw.githubusercontent.com/Smoltbob/Caml-Est-Belle/3d6f53d4e8e01bbae57a0a402b7c0f02f4ed767c/compiler/typechecking.ml
ocaml
* This module is for program type checking * list of equations , it has a type of (Ftype.t* Ftype.t) list * the predefined environment that contains the used predefined functions it has a type of (Fid.t* Ftype.t) list *This function is to generate a new type strings for a list of arguments by using Ftype.gentyp()...
open Fsyntax;; open Ftype;; let eq = ref [] let preDefEnv = [("print_int" ,Fun( [Int] , Unit )); ("print_float" ,Fun( [Float] , Unit )); ("float_of_int" ,Fun( [Int] , Float )); ("int_of_float" ,Fun( [Float] , Int )); ("sin" ,Fun( [Float] , Float )); ("cos" ,Fun( [Float] , Float )); ("sqrt" ,Fun( [Float] , Float )...
3dc5f93a357006fab225c2de7e08ae1b5d7d293442453c47914d253587d00406
plundering/plunder-reference
Macro.hs
# OPTIONS_GHC -Wall # # OPTIONS_GHC -Werror # module Sire.Macro ( loadRex , loadRow , rexVal ) where import PlunderPrelude import Rex import Sire.Types import Loot.Types (Val(..)) -------------------------------------------------------------------------------- cordV :: Text -> Val v cordV = NAT ....
null
https://raw.githubusercontent.com/plundering/plunder-reference/4cac3717ed5baf7b0b5fd41837a504f6fd33eab2/lib/Sire/Macro.hs
haskell
------------------------------------------------------------------------------ -------------------------------------------------------------------- TODO Change this to match new representation
# OPTIONS_GHC -Wall # # OPTIONS_GHC -Werror # module Sire.Macro ( loadRex , loadRow , rexVal ) where import PlunderPrelude import Rex import Sire.Types import Loot.Types (Val(..)) cordV :: Text -> Val v cordV = NAT . utf8Nat rowV :: [Val v] -> Val v rowV = ROW . fromList loadRow :: Val Fan -> E...
dd8578197aecc8e09a9af1f866aff0b7b5fbe6814cfb01e2dc5b9d8adf166168
p2pcollab/ocaml-p2p
s.ml
Copyright ( C ) 2019 TG x This program 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 . This program is distributed in the hope that it will be usef...
null
https://raw.githubusercontent.com/p2pcollab/ocaml-p2p/121e86efff0e6edd7c498d17bf4cab7787991888/lib/p2p/s.ml
ocaml
* Node ID * [random] returns a random node ID. * [distance a b] calculates distance between node IDs [a] & [b]. * [distance_ring a b] calculates distance between node IDs [a] & [b]. * [to_string t] returns a string representation of node ID [t] * [pp fmt t] pretty-prints node ID [t] * Group ID * [to_string t] re...
Copyright ( C ) 2019 TG x This program 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 . This program is distributed in the hope that it will be usef...
4f9f65b86f84c33f14a7926087f4358aaaf6548a68ee7c775e552c0fcc6f91d1
mvoidex/hsdev
SQLite.hs
# LANGUAGE OverloadedStrings , TypeOperators , TypeApplications # module HsDev.Database.SQLite ( initialize, purge, privateMemory, sharedMemory, query, query_, queryNamed, execute, execute_, executeMany, executeNamed, withTemporaryTable, updatePackageDb, removePackageDb, insertPackageDb, updateProject, removePro...
null
https://raw.githubusercontent.com/mvoidex/hsdev/016646080a6859e4d9b4a1935fc1d732e388db1a/src/HsDev/Database/SQLite.hs
haskell
* Utils | Open new connection and set some pragmas | Initialize database | Private memory for db | Shared db in memory | Retries for simple queries | Update a bunch of modules | Update symbols of bunch of modules Util
# LANGUAGE OverloadedStrings , TypeOperators , TypeApplications # module HsDev.Database.SQLite ( initialize, purge, privateMemory, sharedMemory, query, query_, queryNamed, execute, execute_, executeMany, executeNamed, withTemporaryTable, updatePackageDb, removePackageDb, insertPackageDb, updateProject, removePro...
c2181b48802cc175c521df6d54b67a2f7a4fd2bde087461b17c02ed17d2be580
b0-system/b0
b00_trace.mli
--------------------------------------------------------------------------- Copyright ( c ) 2017 The b0 programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
null
https://raw.githubusercontent.com/b0-system/b0/2e7fa30e7e565e8edf831ea5e62c578eeca7c626/src/b00/kit/b00_trace.mli
ocaml
* Trace build operations. Converts build operations to trace formats.
--------------------------------------------------------------------------- Copyright ( c ) 2017 The b0 programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
e2ec36b2c1097be215636510b513f74e218d68457f148728342d52dccd3624c3
jarvinet/scheme
section117.scm
Structure and Interpretation of Computer Programs , 1st edition ;------------------------------------------------------------- ; Section 1.1.7 (define (square x) (* x x)) (define (sqrt-iter guess x) (if (good-enough? guess x) guess (sqrt-iter (improve guess x) x))) (define (improve guess x) ...
null
https://raw.githubusercontent.com/jarvinet/scheme/47633d7fc4d82d739a62ceec75c111f6549b1650/Book/Edition1/section117.scm
scheme
------------------------------------------------------------- Section 1.1.7 -------------------------------------------------------------
Structure and Interpretation of Computer Programs , 1st edition (define (square x) (* x x)) (define (sqrt-iter guess x) (if (good-enough? guess x) guess (sqrt-iter (improve guess x) x))) (define (improve guess x) (average guess (/ x guess))) (define (average x y) (/ (+ x y) 2)) (define (...
d3de6d2bfbefc84373b2383a5019473df612fc1ba3737b788c97ea9d0628bbab
nasser/magic
letfn.clj
(ns magic.test.letfn (:require [clojure.test :refer [deftest]] [magic.api :as magic]) (:use magic.test.common)) (deftest invocation (cljclr=magic (letfn [(twice [x] (* x 2)) (six-times [y] (* (twice y) 3))] [(twice 15) (six-times 15)]))) (deftest mutual-r...
null
https://raw.githubusercontent.com/nasser/magic/7a46f773bc7785c82d9527d52c1a8c28ac16e195/test/magic/test/letfn.clj
clojure
(ns magic.test.letfn (:require [clojure.test :refer [deftest]] [magic.api :as magic]) (:use magic.test.common)) (deftest invocation (cljclr=magic (letfn [(twice [x] (* x 2)) (six-times [y] (* (twice y) 3))] [(twice 15) (six-times 15)]))) (deftest mutual-r...
1f0fb180fd66a606ff1fb37525fe8dc93c296df400fce9a6442f616396bea040
bbusching/libgit2
odb.rkt
#lang racket (require ffi/unsafe "define.rkt" "types.rkt" "utils.rkt") (provide (all-defined-out)) ; Types (define _git_odb_foreach_cb (_fun _oid _bytes -> _int)) (define-cstruct _git_odb_expand_id ([id _oid] [length _ushort] [type _git_otype])) (define _odb_expand_id _git_odb_e...
null
https://raw.githubusercontent.com/bbusching/libgit2/6d6a007543900eb7a6fbbeba55850288665bdde5/libgit2/include/odb.rkt
racket
Types Functions
#lang racket (require ffi/unsafe "define.rkt" "types.rkt" "utils.rkt") (provide (all-defined-out)) (define _git_odb_foreach_cb (_fun _oid _bytes -> _int)) (define-cstruct _git_odb_expand_id ([id _oid] [length _ushort] [type _git_otype])) (define _odb_expand_id _git_odb_expand_id...
5982624ec8ec63d46f49d1931f74ed707dfa9192abd992dcb107d437cea3d21d
sebhoss/finj
bootstrap.clj
; Copyright © 2013 < > ; This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License , Version 2 , as published by . See / for more details . ; (require '[bootstrap.repl :refer :all]) ; Load project namespaces (load-ns-in-dir-aliased "src/m...
null
https://raw.githubusercontent.com/sebhoss/finj/7c27cb506528642a6e8a673be1b9a49d68e533e5/src/bootstrap/clojure/bootstrap.clj
clojure
This work is free. You can redistribute it and/or modify it under the Load project namespaces 'clojure.test', 'clojure.repl' and 'clojure.tools.namespace.repl' support Call (rat) to run all tests, or (rat "loan") to run only tests in that namespace
Copyright © 2013 < > terms of the Do What The Fuck You Want To Public License , Version 2 , as published by . See / for more details . (require '[bootstrap.repl :refer :all]) (load-ns-in-dir-aliased "src/main/clojure") (load-ns-in-dir-aliased "src/test/clojure") (load-helpers) (def rat (test-shortcut #"f...
73cab9cdec639e7e1b27ddd7a5ac9a1fbbbb51d94d291a093144dbf5fe9ad500
Peaker/git-mediate
PPDiff.hs
module PPDiff ( ColorEnable(..) , ppDiff ) where import Data.Algorithm.Diff (Diff, PolyDiff(..)) import System.Console.ANSI data ColorEnable = EnableColor | DisableColor wrap :: ColorEnable -> Color -> String -> String wrap DisableColor _ str = str wrap EnableColor color str = setSGRCode [SetColor Foreground V...
null
https://raw.githubusercontent.com/Peaker/git-mediate/2f4c60d959bea1938181d5a89ee78ddef120ad4c/src/PPDiff.hs
haskell
module PPDiff ( ColorEnable(..) , ppDiff ) where import Data.Algorithm.Diff (Diff, PolyDiff(..)) import System.Console.ANSI data ColorEnable = EnableColor | DisableColor wrap :: ColorEnable -> Color -> String -> String wrap DisableColor _ str = str wrap EnableColor color str = setSGRCode [SetColor Foreground V...
d2099c9b1d7496c7828d5165193c15116c187d40a5ecb98e6b12272ec299f0ba
fukamachi/gotanda
core.lisp
(in-package :got) (enable-read-macros) (defun build-where (&rest args) (if args (apply #'clsql:sql-operation 'and (loop for (k v) in (group args 2) unless (null v) collect (clsql:sql-operation '= (intern (string k)) v))))) (defmacro! select-one (table &rest args) ...
null
https://raw.githubusercontent.com/fukamachi/gotanda/d911fed8f839c172e67d17e52e3a913c042178b1/src/core/core.lisp
lisp
(in-package :got) (enable-read-macros) (defun build-where (&rest args) (if args (apply #'clsql:sql-operation 'and (loop for (k v) in (group args 2) unless (null v) collect (clsql:sql-operation '= (intern (string k)) v))))) (defmacro! select-one (table &rest args) ...
3f17ecdd725b8f23eedcd5ec801f0dde3743aa91159bee56b583a91345be38d4
ocurrent/clarke
info.mli
type t val v : ?intensity:float -> Ptime.t -> float -> t val watts : t -> float val timestamp : t -> Ptime.t val intensity : t -> float option val pp : Format.formatter -> t -> unit val to_json : t -> string val of_json : string -> t val to_csv : t -> string
null
https://raw.githubusercontent.com/ocurrent/clarke/521ec17a6c5d9333b7495561a77505adf7e03a0a/src/lib/info.mli
ocaml
type t val v : ?intensity:float -> Ptime.t -> float -> t val watts : t -> float val timestamp : t -> Ptime.t val intensity : t -> float option val pp : Format.formatter -> t -> unit val to_json : t -> string val of_json : string -> t val to_csv : t -> string
6daa224bc7f2ef0a5247b7b6e17a86748f618a59419b5e84781ee5bab7c637d5
opencog/opencog
whichsubjSVQ.scm
This is for which - subjects of SV sentences , as in " Which movie sucks more , " Enemy Mine " or " Event Horizon " ? ; (definitely Enemy Mine) ( AN June 2015 ) (define whichsubjSVQ (BindLink (VariableList (var-decl "$a-parse" "ParseNode") (var-decl "$subj" "WordInstanceNode") (var-decl "$verb" "Wor...
null
https://raw.githubusercontent.com/opencog/opencog/53f2c2c8e26160e3321b399250afb0e3dbc64d4c/opencog/nlp/relex2logic/rules/whichsubjSVQ.scm
scheme
(definitely Enemy Mine)
This is for which - subjects of SV sentences , as in " Which movie sucks more , " Enemy Mine " or " Event Horizon " ? ( AN June 2015 ) (define whichsubjSVQ (BindLink (VariableList (var-decl "$a-parse" "ParseNode") (var-decl "$subj" "WordInstanceNode") (var-decl "$verb" "WordInstanceNode") (var-de...
6a689bc637b6b71c7cb35e9d8322f46e5ee847d3da02015244a6c7d9da394db8
threatgrid/asami
general.cljc
(ns ^{:doc "Common functionality for the entity reader/writer namespaces" :author "Paula Gearon"} asami.entities.general (:require [schema.core :as s :refer [=>]] [clojure.string :as string] [zuko.node :as node] [naga.store :as store :refer [StorageType]])) (def tg-ns "t...
null
https://raw.githubusercontent.com/threatgrid/asami/44445c338adf80e03f840d895d6d159e95ab8d6d/src/asami/entities/general.cljc
clojure
The resolver function takes a single pattern argument, and returns a seq of Result
(ns ^{:doc "Common functionality for the entity reader/writer namespaces" :author "Paula Gearon"} asami.entities.general (:require [schema.core :as s :refer [=>]] [clojure.string :as string] [zuko.node :as node] [naga.store :as store :refer [StorageType]])) (def tg-ns "t...
aeb5e9d39c6fbdb1ef6b76161049c462972f62b50685a9991b822f757c3b0523
smucclaw/dsl
ToProlog.hs
module ToProlog where import Data.Char (isUpper, isLower, toTitle, toLower) import AbsL import Data.List (intercalate) class ToProlog a where toProlog :: a -> String instance ToProlog Rules where toProlog (Toplevel toplevels) = unlines $ toProlog <$> toplevels instance ToProlog Toplevels where toProlog (T...
null
https://raw.githubusercontent.com/smucclaw/dsl/9ee9dd7160c05b773ff20754ba8bbdccf37a5380/bnfc/prolog/ToProlog.hs
haskell
you can take out the plain bit when the xor match in prolog is working properly
module ToProlog where import Data.Char (isUpper, isLower, toTitle, toLower) import AbsL import Data.List (intercalate) class ToProlog a where toProlog :: a -> String instance ToProlog Rules where toProlog (Toplevel toplevels) = unlines $ toProlog <$> toplevels instance ToProlog Toplevels where toProlog (T...
88484a8d640d60781ea208a2aac91b91f65482bd4d3d336176230dd4d59f7fa7
ChrisPenner/trek
Ex1.hs
# LANGUAGE TemplateHaskell # # LANGUAGE DuplicateRecordFields # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE FlexibleInstances # module Examples.Meander.Ex1 where import Control.Lens import Trek import Trek.Lens import qualified Data.Map as M ...
null
https://raw.githubusercontent.com/ChrisPenner/trek/26556b8157b38be94718dce7548f81350772d072/trek-examples/src/Examples/Meander/Ex1.hs
haskell
# LANGUAGE TypeSynonymInstances # -Clojure (m/match {:user user :foods-by-name foods-by-name} {:user {:name ?name :favorite-food {:name ?food}} :foods-by-name {?food {:popularity ?popularity :calories ?calories}}} {:name ?name :favorite {...
# LANGUAGE TemplateHaskell # # LANGUAGE DuplicateRecordFields # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # # LANGUAGE FlexibleInstances # module Examples.Meander.Ex1 where import Control.Lens import Trek import Trek.Lens import qualified Data.Map as M ( defn favorite - food - info [ f...
5d095282e9f1ac43e19752c58a619190fc8182877f968c03787c138fff07c59f
bmeurer/ocamljit2
topstart.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/toplevel/topstart.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 2002 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 . $ Id$ let _ = Topmain.main()
babce2b5c24711234b2f67886022e707b75ebf6e8defa557a5fc6a1f1a6e15a3
jeapostrophe/lux
main.rkt
#lang racket/base (require lux/word) (provide (all-from-out lux/word))
null
https://raw.githubusercontent.com/jeapostrophe/lux/f5d7c1276072f9ea4107b3f8a2d049e0b174c7ba/main.rkt
racket
#lang racket/base (require lux/word) (provide (all-from-out lux/word))
df0905e1b84b9bc222534b933b075b15f144e913dfe04bac3a193bf71a71b098
avsm/mirage-ci
docker_pull.mli
--------------------------------------------------------------------------- Copyright ( c ) 2017 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) 2...
null
https://raw.githubusercontent.com/avsm/mirage-ci/a11ecf203976299fa19337fd9e1794d6ca3fa436/src/docker_pull.mli
ocaml
* [t] is the state of a [Docker_pull] instance
--------------------------------------------------------------------------- Copyright ( c ) 2017 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) 2...
be2e93c97cd179fcbcc175e07e5cb0f849d3852a7f234dc234bf2bb685f4826f
metabase/metabase
password_test.clj
(ns ^:mb/once metabase.util.password-test (:require [clojure.test :refer :all] [metabase.test :as mt] [metabase.test.fixtures :as fixtures] [metabase.util.password :as u.password])) (set! *warn-on-reflection* true) (use-fixtures :once (fixtures/initialize :db)) ;; Password Complexity testing (deftest ...
null
https://raw.githubusercontent.com/metabase/metabase/7e3048bf73f6cb7527579446166d054292166163/test/metabase/util/password_test.clj
clojure
Password Complexity testing are a bit perfunctory
(ns ^:mb/once metabase.util.password-test (:require [clojure.test :refer :all] [metabase.test :as mt] [metabase.test.fixtures :as fixtures] [metabase.util.password :as u.password])) (set! *warn-on-reflection* true) (use-fixtures :once (fixtures/initialize :db)) (deftest ^:parallel count-occurrences-te...
b8eb777e8fdcc1bb0db9889e6631f4d69d2706a0d29a5d40faac126ae799dabd
scrintal/heroicons-reagent
stop_circle.cljs
(ns com.scrintal.heroicons.outline.stop-circle) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/outline/stop_circle.cljs
clojure
(ns com.scrintal.heroicons.outline.stop-circle) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "round" ...
6becc3c343f63424d491448e574902e71641c5ffde52efb36cac0eb502da0b76
melhadad/fuf
control.lisp
;;; -*- Mode:Lisp; Syntax:Common-Lisp; Package: FUG5 -*- ;;; ----------------------------------------------------------------------- ;;; File: control.l ;;; Description: Unification of control and test Author : Created : 22 May 1990 Modified : 15 Jun 1990 : added pair argument to unif...
null
https://raw.githubusercontent.com/melhadad/fuf/57bd0e31afc6aaa03b85f45f4c7195af701508b8/src/control.lisp
lisp
-*- Mode:Lisp; Syntax:Common-Lisp; Package: FUG5 -*- ----------------------------------------------------------------------- File: control.l Description: Unification of control and test 15 Aug 1991: added switch *ignore-control* 04 Sep 1991: changed macro char from @ to #@ (av...
Author : Created : 22 May 1990 Modified : 15 Jun 1990 : added pair argument to unify . 02 Jul 1990 : added arg . Package : FUG5 FUF - a functional unification - based text generation system . ( . 5.4 ) Copyright ( c ) 1987 - 2014 by . all rights reserved . THI...
3723b0e598cdba0f62a512a37041263bf8b311ee03ee7215b07b02180f8852fc
interactive-ssr/issr-server
http.lisp
(in-package #:issr.server) (defmethod hunchentoot:session-cookie-name ((acceptor easy-acceptor)) "") (defun set-hunchentoot-response-cookie (string) (let ((parts (->> string (str:split "; ") (map 'list (curry 'str:split "="))))) (flet ((find-part (part) (find part ...
null
https://raw.githubusercontent.com/interactive-ssr/issr-server/e828e3ea6c6a711f27ceee5a80d3646a89473768/src/http.lisp
lisp
(in-package #:issr.server) (defmethod hunchentoot:session-cookie-name ((acceptor easy-acceptor)) "") (defun set-hunchentoot-response-cookie (string) (let ((parts (->> string (str:split "; ") (map 'list (curry 'str:split "="))))) (flet ((find-part (part) (find part ...
2e3269f7abe35e70d2c93903210fa299ca8f8bdf4b753d3301a615015d68a1d3
TempusMUD/cl-tempus
act-wizard.lisp
(in-package #:tempus) (defun find-target-room (ch roomstr) (cond ((string= "" roomstr) (send-to-char ch "You must supply a room number or name.~%")) ((every #'digit-char-p roomstr) (let ((result (real-room (parse-integer roomstr)))) (prog1 result (unless result (send-to-ch...
null
https://raw.githubusercontent.com/TempusMUD/cl-tempus/c5008c8d782ba44373d89b77c23abaefec3aa6ff/src/actions/act-wizard.lisp
lisp
Now purge the unfortunates count mob stats count mob prototype stats count object stats count object prototype stats count players count room stats objs in zone : ~3d,~3d protos TODO: Add object kind specific value displays Stat tmp object affects here sanctuary oblivity berserk damage control alcohol...
(in-package #:tempus) (defun find-target-room (ch roomstr) (cond ((string= "" roomstr) (send-to-char ch "You must supply a room number or name.~%")) ((every #'digit-char-p roomstr) (let ((result (real-room (parse-integer roomstr)))) (prog1 result (unless result (send-to-ch...
8318a1b5740d83baa59d03fb5bfbae57090c48f535d25786eb1c779f5b94e714
myaosato/clcm
ordered-list-item.lisp
(defpackage :clcm/nodes/ordered-list-item (:use :cl :clcm/utils :clcm/line :clcm/node :clcm/nodes/list-item) (:import-from :cl-ppcre :scan) (:export :ordered-list-item-node :offset :parent-is-tight :attach-ordered-list-item!)) (in-pa...
null
https://raw.githubusercontent.com/myaosato/clcm/fd0390bedf00c5be3f5c2eb8176ff73bede797b0/src/nodes/ordered-list-item.lisp
lisp
(defpackage :clcm/nodes/ordered-list-item (:use :cl :clcm/utils :clcm/line :clcm/node :clcm/nodes/list-item) (:import-from :cl-ppcre :scan) (:export :ordered-list-item-node :offset :parent-is-tight :attach-ordered-list-item!)) (in-pa...
3c96a7f4f25a9728dfb63d8416cc722f34fbc89e94e138e33cc5c4bc1b12265e
typelead/eta
tc026.hs
module ShouldSucceed where g x = f (f True x) x f x y = if x then y else (f x y)
null
https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/tests/suite/typecheck/compile/tc026.hs
haskell
module ShouldSucceed where g x = f (f True x) x f x y = if x then y else (f x y)
2b083a43ced55e184d210544ccbba134caea5e4806024e586166c8a26b98f35f
ftovagliari/ocamleditor
oebuild_table.mli
OCamlEditor Copyright ( C ) 2010 - 2012 This file is part of OCamlEditor . OCamlEditor 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 y...
null
https://raw.githubusercontent.com/ftovagliari/ocamleditor/79669e14163420170e3e2ebb8da54ebe4e5a3dce/src/oebuild/oebuild_table.mli
ocaml
OCamlEditor Copyright ( C ) 2010 - 2012 This file is part of OCamlEditor . OCamlEditor 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 y...
1dda03dc5b646ac0f6d6edbb57b758ec527eb38e829904a01b986899619ec481
adetokunbo/tmp-proc
HttpBin.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # module Test.HttpBin where import qualified Data.ByteString.Char8 as C8 import Data.List ...
null
https://raw.githubusercontent.com/adetokunbo/tmp-proc/157028bc24f4d2ec49ccb482b5cfcb9257067fe1/tmp-proc/test/Test/HttpBin.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE OverloadedStrings # | Run HttpBin as temporary process. | Run HttpBin as temporary process. | Run HttpBin as temporary process. | Make a uri access the http-bin server. | Determine the status from a Get on localhost. | Verify that the compile time type computations ...
# LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # module Test.HttpBin where import qualified Data.ByteString.Char8 as C8 import Data.List (foldl') import Data.Proxy (Proxy (..)) import ...
083a68b2ef5b42dc1922564d58b36a054ce419d7333e75a2acc536750f68955d
DimaSamoz/mezzo
Episode3.hs
# LANGUAGE NoImplicitPrelude , GADTs # module FurElise.Episode3 (episode3) where import Mezzo ------------------------------------------------------------------------------- -- Third episode ------------------------------------------------------------------------------- Repeat a composition 6 times . repeat6 n = ...
null
https://raw.githubusercontent.com/DimaSamoz/mezzo/13365da8907a714e34540f7a1d99898b67816cc9/examples/src/FurElise/Episode3.hs
haskell
----------------------------------------------------------------------------- Third episode -----------------------------------------------------------------------------
# LANGUAGE NoImplicitPrelude , GADTs # module FurElise.Episode3 (episode3) where import Mezzo Repeat a composition 6 times . repeat6 n = n :|: n :|: n :|: n :|: n :|: n ep3Rh1 = pad3 (a en :|: r qr) :|: cs dim7 inv qc' :|: pad (d min inv qc) :|: pad2 (cs' min3 sc :|: d' min3 sc) ...
9e613e4e96032fb0b4f9f9b29e630084d8577bc05ec39342d994d648fb23826c
dongcarl/guix
popt.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2014 , 2016 , 2019 < > Copyright © 2015 , 2016 < > Copyright © 2017 , 2019 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Pub...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/gnu/packages/popt.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 , 2014 , 2016 , 2019 < > Copyright © 2015 , 2016 < > Copyright © 2017 , 2019 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packa...
58300390fcbcddbe5da81af681b2f58200d94ffbc28ca82115cfb34373798e80
metawilm/cl-python
mod-math-test.lisp
;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CLPYTHON.TEST -*- ;; This software is Copyright ( c ) Franz Inc. and . Franz Inc. and grant you the rights to ;; distribute and use this software as governed by the terms of the Lisp Lesser GNU Public License ;; (), ;; known as the LLGPL. (in-package :clpython...
null
https://raw.githubusercontent.com/metawilm/cl-python/bce7f80b0c67d3c9f514556f2d14d098efecdde8/test/mod-math-test.lisp
lisp
-*- Mode: LISP; Syntax: COMMON-LISP; Package: CLPYTHON.TEST -*- distribute and use this software as governed by the terms (), known as the LLGPL.
This software is Copyright ( c ) Franz Inc. and . Franz Inc. and grant you the rights to of the Lisp Lesser GNU Public License (in-package :clpython.test) (defun run-mod-math-test () (with-subtest (:name "module Math") (run-no-error "import math; assert 3.14 < math.pi < 3.15") (run-no-error "impor...
81ee36370d27523367193d30bafe7d8c13b706051ca3aed0aa019d7d77502a45
MarcWeber/hasktags
testcase10.hs
# LANGUAGE CPP # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # to be found MonadThrow module Control.Monad.Trans.Resource.Internal( ExceptionT(..) , InvalidAccess(..) , MonadResource(..) , Mo...
null
https://raw.githubusercontent.com/MarcWeber/hasktags/65bcbecb695f0d2f31c2436958480535b8193b6c/testcases/testcase10.hs
haskell
# LANGUAGE DeriveDataTypeable # | A @Monad@ which allows for safe resource allocation. In theory, any monad transformer stack included a @ResourceT@ can be an instance of @MonadResource@. Note: @runResourceT@ has a requirement for a @MonadBaseControl IO m@ monad, have this requirement. This means that transformer...
# LANGUAGE CPP # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # to be found MonadThrow module Control.Monad.Trans.Resource.Internal( ExceptionT(..) , InvalidAccess(..) , MonadResource(..) , MonadThrow(..) , MonadUnsafeIO(..) ...
fe74ad5db226ce18df0d8976f6810fac71c3d5aeb436fd2fbb28725356894beb
parapluu/Concuerror
many_scheds.erl
-module(many_scheds). -concuerror_options([{ignore_error, deadlock}]). -export([test/0, test_large/0]). test() -> test(6). test_large() -> test(10). test(N) -> ets:new(table, [public, named_table]), Fun = fun() -> ets:insert(table, {key, self()}) end, [spawn(Fun) || _ <- lists:seq(1, N)],...
null
https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests-real/suites/output/src/many_scheds.erl
erlang
-module(many_scheds). -concuerror_options([{ignore_error, deadlock}]). -export([test/0, test_large/0]). test() -> test(6). test_large() -> test(10). test(N) -> ets:new(table, [public, named_table]), Fun = fun() -> ets:insert(table, {key, self()}) end, [spawn(Fun) || _ <- lists:seq(1, N)],...
64a78c23cb59f5325f96eecc5d5566feb8ae306ba2b9087fc514f0fd8226f7e8
microsoft/SLAyer
HeapGraph.mli
Copyright ( c ) Microsoft Corporation . All rights reserved . (** Graph representation of heap structure of symbolic heaps *) open Library open Expression open SYMBOLIC_HEAP open SymbolicHeap module Edge : sig include BIEDGE with type a = Exp.t option val meet : t -> t -> t val append : t -> t -> t o...
null
https://raw.githubusercontent.com/microsoft/SLAyer/6f46f6999c18f415bc368b43b5ba3eb54f0b1c04/src/HeapGraph.mli
ocaml
* Graph representation of heap structure of symbolic heaps
Copyright ( c ) Microsoft Corporation . All rights reserved . open Library open Expression open SYMBOLIC_HEAP open SymbolicHeap module Edge : sig include BIEDGE with type a = Exp.t option val meet : t -> t -> t val append : t -> t -> t option val to_ls : Patn.t -> t -> SH.t end include Set.S wit...
9c3ba13288cc7f1b781615341aeda53b1617e9ccefff160e919579567ff16696
airalab/hs-web3
SingleFilter.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAG...
null
https://raw.githubusercontent.com/airalab/hs-web3/e6719ae384d2371a342f03afa3634921f4a8cd37/packages/ethereum/src/Network/Ethereum/Contract/Event/SingleFilter.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # | Module : Network.Ethereum.Contract.Event.SingleFilter License : Apache-2.0 Maintainer ...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilyDependencies # # LANGUAGE UndecidableInstances # Copyright : FOAM team < > 2018 module Network.Ethereum.Contract.Event.SingleFilter ( event , eventMany , eve...
8a1d1b4d65d8c60b16e2a8053d1ab013eccb18615e7864a4518bcbd270617a58
mx-psi/quantum-algorithms
Deutsch.hs
# LANGUAGE MonoLocalBinds # Title : Deutsch - Jozsa algorithm Author : Title: Deutsch-Jozsa algorithm Author: Pablo Baeyens -} module Algorithms.Deutsch( deutschMain ,deutschJozsa ,getType ,classicalGetType ,OracleType(..) ) where import Oracle (Oracle, shape, circuit, withFilePath, TruthTable, in...
null
https://raw.githubusercontent.com/mx-psi/quantum-algorithms/abc046f877ba0522696278380b4f55a0e43b846b/src/lib/Algorithms/Deutsch.hs
haskell
| The type of an oracle ^ A balanced oracle ^ A constant oracle Apply Hadamard gates to each qubit Apply oracle Apply Hadamard gate again to x Measure and discard Print list of measured results if any of the qubits on the result is True, the oracle is balanced, otherwise it is constant. Get the type of an o...
# LANGUAGE MonoLocalBinds # Title : Deutsch - Jozsa algorithm Author : Title: Deutsch-Jozsa algorithm Author: Pablo Baeyens -} module Algorithms.Deutsch( deutschMain ,deutschJozsa ,getType ,classicalGetType ,OracleType(..) ) where import Oracle (Oracle, shape, circuit, withFilePath, TruthTable, in...
9c542750934f7c486b112fc87e482a8c7d38d37410167e8df82c8abae773cea4
facebookarchive/duckling_old
duration.clj
; Durations / Periods ( "second (unit-of-duration)" #"秒間?" {:dim :unit-of-duration :grain :second} "minute (unit-of-duration)" #"分間?" {:dim :unit-of-duration :grain :minute} "hour (unit-of-duration)" #"時間?" {:dim :unit-of-duration :grain :hour} "day (unit-of-duration)" #"日間?" {:dim ...
null
https://raw.githubusercontent.com/facebookarchive/duckling_old/bf5bb9758c36313b56e136a28ba401696eeff10b/resources/languages/ja/rules/duration.clj
clojure
Durations / Periods duration can't be negative
( "second (unit-of-duration)" #"秒間?" {:dim :unit-of-duration :grain :second} "minute (unit-of-duration)" #"分間?" {:dim :unit-of-duration :grain :minute} "hour (unit-of-duration)" #"時間?" {:dim :unit-of-duration :grain :hour} "day (unit-of-duration)" #"日間?" {:dim :unit-of-duration :...
ce459a41804769fdf58e34425b9c359e806e69a9511775ae6e8a8e3dcd52c056
tallaproject/talla
talla_dir_http_client.erl
%%% Copyright ( c ) 2016 The Talla Authors . All rights reserved . %%% Use of this source code is governed by a BSD-style %%% license that can be found in the LICENSE file. %%% %%% ---------------------------------------------------------------------------- @author < > %%% @doc HTTP Client. %%% @end %%% --------...
null
https://raw.githubusercontent.com/tallaproject/talla/72cfbd8f48705a7a390cac2b8310ab7550c21c15/apps/talla_dir/src/talla_dir_http_client.erl
erlang
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. ---------------------------------------------------------------------------- @doc HTTP Client. @end ---------------------------------------------------------------------------- API. FIXME(ahf): For some reason we...
Copyright ( c ) 2016 The Talla Authors . All rights reserved . @author < > -module(talla_dir_http_client). -behaviour(gen_server). -export([start_link/0, get/3, get/4, post/4, post/5]). Generic Server Behaviour . -export([init/1, handle_call/3, handle_cas...
80e6ffda99c967fb82ec18ecbb969c0bb0a3d31c5d98736f5aa553ed546ff58d
everpeace/programming-erlang-code
shop3.erl
-module(shop3). -export([total/1]). total([{What, N}|T]) -> case (catch shop:cost(What)) of {'EXIT', _} -> io:format("The shop does not sell ~p~n",[What]), total(T); Cost -> Cost * N + total(T) end; total([]) -> 0.
null
https://raw.githubusercontent.com/everpeace/programming-erlang-code/8ef31aa13d15b41754dda225c50284915c29cb48/code/shop3.erl
erlang
-module(shop3). -export([total/1]). total([{What, N}|T]) -> case (catch shop:cost(What)) of {'EXIT', _} -> io:format("The shop does not sell ~p~n",[What]), total(T); Cost -> Cost * N + total(T) end; total([]) -> 0.
96c6aca59710c39651848d8fb3a55d948a5118cec300d840291ada4c8d22cf78
spurious/sagittarius-scheme-mirror
provider.scm
;;; -*- Scheme -*- ;;; oauth.scm - OAuth 1.0 library . ;;; Copyright ( c ) 2010 - 2012 < > ;;; ;;; 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...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/sitelib/net/oauth/provider.scm
scheme
-*- Scheme -*- 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 list of conditions and the following disclaimer. ...
oauth.scm - OAuth 1.0 library . Copyright ( c ) 2010 - 2012 < > " 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 (...
fd37a880d9eb1b537b85a8a9e7146caeb76d9068c0317e6036a2d8a2968159e3
rpav/cl-cairo2
xlib-freetype-example.lisp
;;;; ;;;; This probably seems more complicated than you want for basic font ;;;; rendering. Well, it is. This requires a good bit of custom ;;;; framework, but you can (presumably) get much faster font ;;;; rendering once it's in place. ;;;; ;;;; There are a number of comments below which make things less ;;;; readab...
null
https://raw.githubusercontent.com/rpav/cl-cairo2/41ae45aac86553c46f4bb460f80e1fb620930f5b/tutorial/xlib-freetype-example.lisp
lisp
This probably seems more complicated than you want for basic font rendering. Well, it is. This requires a good bit of custom framework, but you can (presumably) get much faster font rendering once it's in place. There are a number of comments below which make things less readable, but are notable if you're us...
Of special note perhaps is GLYPH - ARRAY . The goal of this is to probably make a single GLYPH - ARRAY of reasonable size , and reuse (eval-when (:compile-toplevel :load-toplevel :execute) (asdf:load-system :cl-freetype2) (asdf:load-system :cl-cairo2-xlib)) (defpackage :cairo-ft2-example (:use :common-lis...
71517c8172f1ed7ec7eadaa9423461504730fe607349e2bdee61b5cd7ee5cf0e
Tavistock/lseq-tree
core.clj
(ns lseq-tree.core (:require [lseq-tree.lseq-node :as n :refer [node add]] [lseq-tree.triple :as t :refer [triple]] [lseq-tree.base :as b] [lseq-tree.identifier :as i] [lseq-tree.strategy :as s] [clojure.zip :as z] [lseq-tree.lseq-tree :as tree] ...
null
https://raw.githubusercontent.com/Tavistock/lseq-tree/4b75e43477fdeb421c5bf56f65be71c108378673/src/lseq_tree/core.clj
clojure
(ns lseq-tree.core (:require [lseq-tree.lseq-node :as n :refer [node add]] [lseq-tree.triple :as t :refer [triple]] [lseq-tree.base :as b] [lseq-tree.identifier :as i] [lseq-tree.strategy :as s] [clojure.zip :as z] [lseq-tree.lseq-tree :as tree] ...
0b3be06777b20fb8fdb2be0036f936f503d3225af3c9bbcd07deae10aece2ba8
SeijiKoide/SWCLOS
infix.lisp
-*- mode : common - lisp ; syntax : common - lisp ; package : gx ; base : 10 -*- ;;; ;;; Infix to Prefix transformation module ;;; This program is borrowed from AIMA 2008 ( c ) ;;; ;;; History ;;; ------- 2008.03.25 File created . (defpackage :swp (:shadowing-import-from :gx "type-of" "subtypep" "typep"...
null
https://raw.githubusercontent.com/SeijiKoide/SWCLOS/49ff46e6c14348fcf2372f90c3d5b8b0bb460b6f/utilities/infix.lisp
lisp
syntax : common - lisp ; package : gx ; base : 10 -*- Infix to Prefix transformation module History ------- end of eval-when Prefix to Infix Conversion each one is in prefix notation . (a + b * c) => (a + (* b c)) => ((+ a (* b c))) by seiji Note we don't worry about nested parens because we search :from-e...
This program is borrowed from AIMA 2008 ( c ) 2008.03.25 File created . (defpackage :swp (:shadowing-import-from :gx "type-of" "subtypep" "typep") (:shadowing-import-from :cl "first" "rest" "nil" "member") (:use :common-lisp :gx) ) (eval-when (:execute :load-toplevel :compile-toplevel) (in-packa...
ddfbd942bbd8488a42711472777eb955196eacd82e2ff672de3e15ff714e8390
zadean/xqerl
fn_distinct_values_SUITE.erl
-module('fn_distinct_values_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['fn-distinct-valuesint1args-1'/1]). -export(['fn-distinct-valuesint1args-2'/...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/fn/fn_distinct_values_SUITE.erl
erlang
-module('fn_distinct_values_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['fn-distinct-valuesint1args-1'/1]). -export(['fn-distinct-valuesint1args-2'/...
4a1e3e7510f9b801c282ec0498aca622f955319b68afc4e618994a436c5e34da
nervous-systems/chemtrack-example
render.cljs
(ns chemtrack.frontend.render (:require [chemtrack.frontend.template :as t] [cljs.core.async :as async] [clojure.string :as str] [cljsjs.moment])) (defn elt [template [sym readable]] (t/substitute {:chem/value sym :chem/name readable} template)) (defn form [sighting {:key...
null
https://raw.githubusercontent.com/nervous-systems/chemtrack-example/b547a0a42c678704a68a9889d22900e5490cdcf0/frontend/chemtrack/frontend/render.cljs
clojure
(ns chemtrack.frontend.render (:require [chemtrack.frontend.template :as t] [cljs.core.async :as async] [clojure.string :as str] [cljsjs.moment])) (defn elt [template [sym readable]] (t/substitute {:chem/value sym :chem/name readable} template)) (defn form [sighting {:key...
ad62f1a6fd6c47747e6caa11a202596c52a4144bb1007e21cce61e471ed89b12
ryanpbrewster/haskell
P115Test.hs
module Problems.P115Test ( test_115 ) where import Problems.P115 import Test.Tasty.Discover test_115 :: [TestTree] test_115 = [ testCase "small 3" $ solveProblem 3 @?= 30 , testCase "small 10" $ solveProblem 10 @?= 57 , testCase "main" $ solve @?= "168" ]
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/tests/Problems/P115Test.hs
haskell
module Problems.P115Test ( test_115 ) where import Problems.P115 import Test.Tasty.Discover test_115 :: [TestTree] test_115 = [ testCase "small 3" $ solveProblem 3 @?= 30 , testCase "small 10" $ solveProblem 10 @?= 57 , testCase "main" $ solve @?= "168" ]
f0e155a54682b414123c1fdb10596b6e523c42876bc1557e1453b34d4ea3b27f
mwotton/judy
B.hs
import Control.Monad import qualified Data.Judy as J main = do j <- J.new forM_ [1..10000000] $ \n -> J.insert n n j J.delete 100 j v <- J.lookup 100 j print v
null
https://raw.githubusercontent.com/mwotton/judy/0fdb8687b39e67bfec21430865ce3611a0c6b266/tests/examples/B.hs
haskell
import Control.Monad import qualified Data.Judy as J main = do j <- J.new forM_ [1..10000000] $ \n -> J.insert n n j J.delete 100 j v <- J.lookup 100 j print v
fd3f7a6c5efd7461fe9f2b001da8a4e465d6f7262477322aac32b5009253c391
mfoemmel/erlang-otp
dets_v8.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2001 - 2009 . 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/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/stdlib/src/dets_v8.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 2001 - 2009 . 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(dets_v8). and including 8(c ) . ...
3b9d6916443a6fbfd9b17bdb69ab3c2394949e67208132b89ec85d6972eab060
andreaslyn/mini-yu
HighLevelIr.hs
{-# LANGUAGE BangPatterns #-} module Ir.HighLevelIr ( highLevelIr , Program , ProgramRoots , irToString , exprToString , lookupConst , Expr (..) , Var , Const (..) , prConst , nameConst , moduleConst , Ctor (..) , prCtor , freeVars ) where import qualified Str import Data.Maybe (fromJu...
null
https://raw.githubusercontent.com/andreaslyn/mini-yu/8934e23842d6e5efe5f235655902ecabd800fbb8/src/Ir/HighLevelIr.hs
haskell
# LANGUAGE BangPatterns # import Debug.Trace (trace) Hidden: Maybe Int = Just a if function/lazy, where a is arity. Maybe Int = Nothing means it is some other value. Bool = True if static. Te ref id -> Const Te var id -> Var Te ctor id -> Ctor Dummy value in the beginning. ------------------- Optimization ---...
module Ir.HighLevelIr ( highLevelIr , Program , ProgramRoots , irToString , exprToString , lookupConst , Expr (..) , Var , Const (..) , prConst , nameConst , moduleConst , Ctor (..) , prCtor , freeVars ) where import qualified Str import Data.Maybe (fromJust) import Data.List (sortOn) ...
52ee65f32f84bd6e224b80f63360f48417c0e869671dfc4e9a5f631659f99676
TrustInSoft/tis-kernel
command.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/libraries/utils/command.mli
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of Frama - C. Copyright ( C ) 2007 - 2015 ...
6c46878cede722d13283375a48e6ba05c3788d93d3653449386f482b678a05b0
kind2-mc/kind2
trie.mli
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License a...
null
https://raw.githubusercontent.com/kind2-mc/kind2/eab15d92d9d5344f5c3dd23269c9dfeafd1fc9bc/src/utils/trie.mli
ocaml
* Output signature is an extended map * Type of keys in the trie * Type of the trie * The empty trie * Return [true] if the trie is empty * Return [true] if there is a value for the key in the trie * Bind a value to the key in the trie Overwrite if the value if the leaf already exists, fail if the se...
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License a...
c8b00ede0d27178629ace320baf935bd0e4985561285f22d53cb9e986992c975
haskell-opengl/OpenGLRaw
SecondaryColor.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.EXT.SecondaryColor Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- -----------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/EXT/SecondaryColor.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.EXT.SecondaryColor License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums * Function...
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.EXT.SecondaryColor ( glGetEXTSecondaryColor, gl_EXT_secondary_color, pattern GL_COLOR_SUM_EXT, pattern GL_CURRENT_SECONDARY_COLOR_EXT, pattern GL_SECONDARY_COLOR_ARRAY_EXT, pattern GL_SECONDARY_COLOR_A...
723cdabe25d34b99727d564162b73df2c25eb064fcc9c92403c263753cd135eb
c-cube/ocaml-containers
CCSexp.mli
(* This file is free software, part of containers. See file "license" for more details. *) * Handling S - expressions @since 3.0 moved into containers - core , previously in [ containers.sexp ] @since 3.0 moved into containers-core, previously in [containers.sexp] *) type 'a or_error = ('a, string) resu...
null
https://raw.githubusercontent.com/c-cube/ocaml-containers/69f2805f1073c4ebd1063bbd58380d17e62f6324/src/core/CCSexp.mli
ocaml
This file is free software, part of containers. See file "license" for more details. * A simple, structural representation of S-expressions. * Build an atom directly from a string.
* Handling S - expressions @since 3.0 moved into containers - core , previously in [ containers.sexp ] @since 3.0 moved into containers-core, previously in [containers.sexp] *) type 'a or_error = ('a, string) result type 'a gen = unit -> 'a option module type SEXP = CCSexp_intf.SEXP * { 2 Abstract repr...
271f765330bf00c68b30399a163938745f5b3f7f5db724738709494692bcbc18
mpenet/eddy
utils.clj
(ns s-exp.eddy.utils (:import (java.util Iterator Enumeration) (clojure.lang IReduceInit))) (defn string-builder ([] (StringBuilder.)) ([^StringBuilder sb x] (.append sb x)) ([^StringBuilder sb] (.toString sb))) (defn iterator-reducible [^Iterator iter] (reify IReduceInit (reduce [_ f init] ...
null
https://raw.githubusercontent.com/mpenet/eddy/0085d597d78dbe9d2a4dbbae8efaa25317f1fe6b/src/s_exp/eddy/utils.clj
clojure
(ns s-exp.eddy.utils (:import (java.util Iterator Enumeration) (clojure.lang IReduceInit))) (defn string-builder ([] (StringBuilder.)) ([^StringBuilder sb x] (.append sb x)) ([^StringBuilder sb] (.toString sb))) (defn iterator-reducible [^Iterator iter] (reify IReduceInit (reduce [_ f init] ...
833d57db490d3631f5ad45e1aded644ddda33d5b89a70602549e35c6c919ab84
ddmcdonald/sparser
ns-unknown-rd-items-phase3-19201-19600.lisp
(IN-PACKAGE :SP) (DEFPARAMETER SPARSER::*NS-RD-PHASE3-19201-19600* 'NIL)
null
https://raw.githubusercontent.com/ddmcdonald/sparser/304bd02d0cf7337ca25c8f1d44b1d7912759460f/Sparser/code/s/tools/ns-stuff/old-unknown/ns-unknown-rd-items-phase3-19201-19600.lisp
lisp
(IN-PACKAGE :SP) (DEFPARAMETER SPARSER::*NS-RD-PHASE3-19201-19600* 'NIL)
56e668a58e1b38176fc9e6d970649a99299b2d4a0219cef93e8eb1d8d167b1c1
digital-asset/ghc
T12947.hs
{-# OPTIONS_GHC -dcore-lint -fdefer-typed-holes #-} module T12947 where import qualified Control.Monad.Fail as Fail newtype P m a = P { unP :: (a -> IO (m ())) -> IO (m ()) } instance Functor (P m) where instance Applicative (P m) where instance Monad (P m) where instance (Fail.MonadFail m) => Fail.MonadFail (P m...
null
https://raw.githubusercontent.com/digital-asset/ghc/323dc6fcb127f77c08423873efc0a088c071440a/testsuite/tests/typecheck/should_fail/T12947.hs
haskell
# OPTIONS_GHC -dcore-lint -fdefer-typed-holes #
module T12947 where import qualified Control.Monad.Fail as Fail newtype P m a = P { unP :: (a -> IO (m ())) -> IO (m ()) } instance Functor (P m) where instance Applicative (P m) where instance Monad (P m) where instance (Fail.MonadFail m) => Fail.MonadFail (P m) where fail msg = ContT $ \ _ -> Fail.fail msg
5581dbab7fab4a9cccce8fedeb5488efde335027a159eb299fb35d11bbc03e36
solomon-b/titan
ArgParser.hs
module Titan.ArgParser where import Control.Lens import Data.X509 (SignedCertificate) import Data.X509.File (readSignedObject) import qualified Network.TLS as T import qualified Network.Socket as NS import System.Console.GetOpt import System.Environment (getProgName) ...
null
https://raw.githubusercontent.com/solomon-b/titan/881d3edd163d5ba50ba965406cf8ea341f58c2e9/src/Titan/ArgParser.hs
haskell
module Titan.ArgParser where import Control.Lens import Data.X509 (SignedCertificate) import Data.X509.File (readSignedObject) import qualified Network.TLS as T import qualified Network.Socket as NS import System.Console.GetOpt import System.Environment (getProgName) ...
4db2e834393c846cbbc36a30d3d2ee73f0088608fdc18d5d7e9491317b0adcd0
TokTok/hs-toxcore
NodeInfoSpec.hs
# LANGUAGE StrictData # # LANGUAGE Trustworthy # module Network.Tox.NodeInfoSpec where import Test.Hspec spec :: Spec spec = return ()
null
https://raw.githubusercontent.com/TokTok/hs-toxcore/647c3070cab29aee3d795a456be534d77c167d81/test/Network/Tox/NodeInfoSpec.hs
haskell
# LANGUAGE StrictData # # LANGUAGE Trustworthy # module Network.Tox.NodeInfoSpec where import Test.Hspec spec :: Spec spec = return ()
3ae006e5132dddd7566fab61130c131d09a42e13391a974893407709d25e16c7
amiller/haskell-saucy
Commitment.hs
# LANGUAGE ImplicitParams , ScopedTypeVariables , RankNTypes , PartialTypeSignatures , FlexibleInstances , FlexibleContexts , UndecidableInstances # PartialTypeSignatures, FlexibleInstances, FlexibleContexts, UndecidableInstances #-} import Control.Concurrent.MonadIO ...
null
https://raw.githubusercontent.com/amiller/haskell-saucy/32b293a01067f4e9753cce90fa90e63479bc2327/Commitment.hs
haskell
Commitment is impossible to realize in the standard model Without debug Receive a value from the sender Debug option: Receive the opening instruction from the sender Flip a random bit ++ show x ++ show x Pick a random bit ++ show x m Marker 1 Marker 2 [Experiment 0] This experiment must output (b,b) ...
# LANGUAGE ImplicitParams , ScopedTypeVariables , RankNTypes , PartialTypeSignatures , FlexibleInstances , FlexibleContexts , UndecidableInstances # PartialTypeSignatures, FlexibleInstances, FlexibleContexts, UndecidableInstances #-} import Control.Concurrent.MonadIO ...
1ad282a5de80f3bed72cf7168c5dcbde9ac24d26e0c122d81e8c2eecb71400c3
tek/ribosome
MenuUiPure.hs
module Ribosome.Menu.Interpreter.MenuUiPure where import Conc (Gate, interpretAtomic, interpretGate, interpretScopedR_, subscribeWhile, withAsync_) import Polysemy.Chronos (ChronosTime) import Polysemy.Conc.Gate (gate, signal) import qualified Time import Time (MilliSeconds (MilliSeconds)) import Ribosome.Menu.Data.M...
null
https://raw.githubusercontent.com/tek/ribosome/ca2e87d262adadc30c72941d3087fff7da97addb/packages/menu/lib/Ribosome/Menu/Interpreter/MenuUiPure.hs
haskell
module Ribosome.Menu.Interpreter.MenuUiPure where import Conc (Gate, interpretAtomic, interpretGate, interpretScopedR_, subscribeWhile, withAsync_) import Polysemy.Chronos (ChronosTime) import Polysemy.Conc.Gate (gate, signal) import qualified Time import Time (MilliSeconds (MilliSeconds)) import Ribosome.Menu.Data.M...
98d1f2d8a26070694339e8ed6e42859fe71f3eaa2bbf64d27794dd4e4b057936
pveber/biotk
vg_text.mli
open Gg open Vg module Font : sig type t val name : t -> string val data : t -> string val ascender : t -> float val descender : t -> float val xmin : t -> float val ymin : t -> float val xmax : t -> float val ymax : t -> float val load_from_string : string -> (t, [> Otfm.error]) result ...
null
https://raw.githubusercontent.com/pveber/biotk/9e6fe7fc6fcda7fd91d4d637b66db5961a4a247e/lib/croquis/vg_text.mli
ocaml
* [cut ?col ?size font text] returns an image displaying [text] with color [col] and size [size] using font [font], as well as a bounding box for the text in the image. The actual bounding box is driver-dependent but the result of this function should provide a reasonable appromixation.
open Gg open Vg module Font : sig type t val name : t -> string val data : t -> string val ascender : t -> float val descender : t -> float val xmin : t -> float val ymin : t -> float val xmax : t -> float val ymax : t -> float val load_from_string : string -> (t, [> Otfm.error]) result ...
17295818bc7d76d9995b1ffcea054d319d7bd4c3eb3723abcac52939ad734a85
hsyl20/haskus-system
Terminal.hs
# LANGUAGE TypeApplications # # LANGUAGE DataKinds # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # -- | Terminal (TTY) -- FIXME : some of the IOCTLs numbers are arch specific . Currently we only -- support x86-64. See ``arch/ARCH/include/uapi/asm/ioctls.h`` module Haskus.System.Linux.Internals.Terminal ...
null
https://raw.githubusercontent.com/hsyl20/haskus-system/2f389c6ecae5b0180b464ddef51e36f6e567d690/haskus-system/src/lib/Haskus/System/Linux/Internals/Terminal.hs
haskell
# LANGUAGE DeriveAnyClass # | Terminal (TTY) support x86-64. See ``arch/ARCH/include/uapi/asm/ioctls.h`` * Get and set terminal attributes * Lock/unlock terminal attributes * Get/Set window size * Sending a break (drain) * Software flow control * Buffer count and flushing * Faking input * Console * Controll...
# LANGUAGE TypeApplications # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # FIXME : some of the IOCTLs numbers are arch specific . Currently we only module Haskus.System.Linux.Internals.Terminal ( TermConfig (..) , TermConfigExt (..) , KTermConfig , ControlChar (..) , InputFlag (..) , InputFlag...
dfc768dcc19e1c16fb21b1e810f705cd09e41b539811a93b956fa900095fad66
binsec/haunted
dwarf_expr.mli
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2019 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/dwarf/dwarf_expr.mli
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
69b49b79a3ecd57d0212c64fee78b8cb912cca80528ece76f0f337bb11933ebc
jeffshrager/biobike
bootstrap.lisp
-*- Package : cl - user ; mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- (in-package :cl-user) ;;; +=========================================================================+ | Copyright ( c ) 2002 , 2003 , 2004 JP , , | ;;; | ...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/bootstrap.lisp
lisp
mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and as...
(in-package :cl-user) | Copyright ( c ) 2002 , 2003 , 2004 JP , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subject t...
0a22c248f1ea7585e0e533fe72eba014467772eaeb6cc4186509a4ed4ea4a79f
patricoferris/ocaml-multicore-monorepo
caqti_driver_sig.mli
Copyright ( C ) 2017 - -2021 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/ocaml-caqti/lib/caqti_driver_sig.mli
ocaml
* {b Internal:} Signature for driver implementation. This interface is unstable and may change between minor versions. If you are developing an external driver, please open an issue to sort out requirements and to announce you need for a stable driver API.
Copyright ( C ) 2017 - -2021 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
ad404c0b4669d79bd194715e397f9b50f6e12e586fd8088254d88c2fe4a144ac
monadbobo/ocaml-core
no_polymorphic_compare.mli
Open this in modules where you do n't want to accidentally use polymorphic comparison . Then , use Pervasives . ( < ) , for example , where needed . Then, use Pervasives.(<), for example, where needed. *) type compare = [`no_polymorphic_compare] -> [`no_polymorphic_compare] -> [`no_polymorphic_compare]...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/lib/no_polymorphic_compare.mli
ocaml
Open this in modules where you do n't want to accidentally use polymorphic comparison . Then , use Pervasives . ( < ) , for example , where needed . Then, use Pervasives.(<), for example, where needed. *) type compare = [`no_polymorphic_compare] -> [`no_polymorphic_compare] -> [`no_polymorphic_compare]...
51ee4bd79660f5e81acb413267947b148d7f03e8ffe2ddc7a2a27ddefff968b8
dzaporozhets/clojure-web-application
profile.clj
(ns sample.routes.profile (:require [compojure.core :refer :all] [sample.crypt :as crypt] [ring.util.response :as response] [clojure.java.io :as io] [sample.helpers :refer :all] [sample.models.user :as db] [sample.models.avatar :as avatar-db] ...
null
https://raw.githubusercontent.com/dzaporozhets/clojure-web-application/bbb57f805759a179ea6ab10a51ed4983b43cbdc5/src/sample/routes/profile.clj
clojure
(ns sample.routes.profile (:require [compojure.core :refer :all] [sample.crypt :as crypt] [ring.util.response :as response] [clojure.java.io :as io] [sample.helpers :refer :all] [sample.models.user :as db] [sample.models.avatar :as avatar-db] ...
78a0b5e19c20d0d3227eacf84be5dba516702c31113a8ecd0c547f9eb2ef31df
clojure-interop/aws-api
core.clj
(ns core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.ecs.core])
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.ecs/src/core.clj
clojure
(ns core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.ecs.core])
f0856fb72444ecdef1d6b3cc410bdb441d80780b1ba4c0ed7b8950ad10bdac23
esl/MongooseIM
mongoose_c2s_socket.erl
-module(mongoose_c2s_socket). -include_lib("public_key/include/public_key.hrl"). -include("mongoose_logger.hrl"). -export([new/3, handle_data/2, activate/1, close/1, is_channel_binding_supported/1, get_tls_last_message/1, get_peer_certificate/2, has_peer_...
null
https://raw.githubusercontent.com/esl/MongooseIM/b9ca80eaf64c75d3afcd6385167a672e0d645ce6/src/c2s/mongoose_c2s_socket.erl
erlang
-module(mongoose_c2s_socket). -include_lib("public_key/include/public_key.hrl"). -include("mongoose_logger.hrl"). -export([new/3, handle_data/2, activate/1, close/1, is_channel_binding_supported/1, get_tls_last_message/1, get_peer_certificate/2, has_peer_...