_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
c1d2fd3889becea200526098f89bcafb09e9a8392cc2ad7b2f5e835e9ec7f604
ocsigen/ocaml-eliom
marshal.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocsigen/ocaml-eliom/497c6707f477cb3086dc6d8124384e74a8c379ae/stdlib/marshal.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1997 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * Marshaling of data structures . This module provides functions to encode arbitrary data structure...
c27bd5ca983fd0aabea1f7299c3f57340a575ed317bf28eb31e57b3a099f74de
cfpb/qu
main.clj
(ns qu.main (:require [com.stuartsierra.component :as component] [qu.app :refer [new-qu-system]] [qu.env :refer [env]] [qu.project :refer [project]] [qu.util :refer [->bool ->int]] [taoensso.timbre :as log]) (:gen-class :main true)) (defn- print-live-thre...
null
https://raw.githubusercontent.com/cfpb/qu/f460d9ab2f05ac22f6d68a98a9641daf0f7c7ba4/src/qu/main.clj
clojure
(ns qu.main (:require [com.stuartsierra.component :as component] [qu.app :refer [new-qu-system]] [qu.env :refer [env]] [qu.project :refer [project]] [qu.util :refer [->bool ->int]] [taoensso.timbre :as log]) (:gen-class :main true)) (defn- print-live-thre...
62b7f019fc9f639675ad13e7ec135dba25accf547dd9c1982fff9caf4883e990
stylewarning/cl-permutation
rubik-like.lisp
;;;; examples/rubik-like.lisp ;;;; Copyright ( c ) 2014 (in-package #:cl-permutation-examples) Order : 3674160 ;; +--+--+ ;; |5 |6 | ;; +--+--+ ;; |7 |8 | ;; +--+--+--+--+--+--+--+--+ ;; |19|20|1 |2 |9 |10|13|14| ;; +--+--+--+--+--+--+--+--+ |xx|21|3 |4 |11|12|15|xx| ;; +--+--+--+--+--...
null
https://raw.githubusercontent.com/stylewarning/cl-permutation/631b17541ad9fb5e2fbf89b09bc0d5a98d718e1c/examples/rubik-like.lisp
lisp
examples/rubik-like.lisp +--+--+ |5 |6 | +--+--+ |7 |8 | +--+--+--+--+--+--+--+--+ |19|20|1 |2 |9 |10|13|14| +--+--+--+--+--+--+--+--+ +--+--+--+--+--+--+--+--+ |16|17| +--+--+ |xx|18| +--+--+ R U +--------------+ | ...
Copyright ( c ) 2014 (in-package #:cl-permutation-examples) Order : 3674160 |xx|21|3 |4 |11|12|15|xx| (defun make-rubik-2x2 () (group-from-cycles F (make-cycle 7 9 17 21) (make-cycle 8 11 16 20)) (make-cycle 2 6 15 17) (make-cycle 4 8 13 18)) ...
6772ca816c696628fe0f14937b2b7532a31d0118865c2ddb04cbfa2da5e70fed
cbaggers/varjo
metadata.lisp
(in-package :varjo.tests) (5am:in-suite metadata-tests) ;;------------------------------------------------------------ ;; Helper data (eval-when (:compile-toplevel :load-toplevel :execute) (varjo:v-deftype some-shadow-g () :vec4 :valid-metadata-kinds some-meta) (varjo:add-al...
null
https://raw.githubusercontent.com/cbaggers/varjo/9e77f30220053155d2ef8870ceba157f75e538d4/tests/metadata.lisp
lisp
------------------------------------------------------------ Helper data ------------------------------------------------------------ ------------------------------------------------------------ Tests this is to text #'inject-implicit-uniform which is used by the metadata api
(in-package :varjo.tests) (5am:in-suite metadata-tests) (eval-when (:compile-toplevel :load-toplevel :execute) (varjo:v-deftype some-shadow-g () :vec4 :valid-metadata-kinds some-meta) (varjo:add-alternate-type-name 'some-shadow 'some-shadow-g)) (varjo:define-metadata-kind s...
3aec58ad9451cdf5e692b8f3c5d22df75877689ee4210fee0bb725a6ffea2121
tallaproject/onion
onion_rsa.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 Onion RSA API %%% This module contains utilities ...
null
https://raw.githubusercontent.com/tallaproject/onion/d0c3f86c726c302744d3cfffa2de21f85c190cf0/src/onion_rsa.erl
erlang
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. ----------------------------------------------------------- @doc Onion RSA API and crypto applications for our specific use cases. @end ----------------------------------------------------------- API. Types. ...
Copyright ( c ) 2016 The Talla Authors . All rights reserved . @author < > This module contains utilities for working with RSA . It 's made to simplify the use of Erlang 's public_key -module(onion_rsa). -export([keypair/1, keypair/2, secret_key_to_public_key/1, der_encode/1, ...
4e794bc20471d116ac3f37d20f8114d8833703ad0a80c591145b4ecf4a125cef
janestreet/async_smtp
simplemail.ml
open Core open Async open Async_smtp_types module Envelope_status = Client.Envelope_status include ( Email.Simple : module type of Email.Simple with module Expert := Email.Simple.Expert) let default_server = Host_and_port.create ~host:"localhost" ~port:25 let client_log = Lazy.map Async.Log.Global.log ~f:(fun lo...
null
https://raw.githubusercontent.com/janestreet/async_smtp/72c538d76f5c7453bbc89af44d93931cd499a912/src/simplemail.ml
ocaml
open Core open Async open Async_smtp_types module Envelope_status = Client.Envelope_status include ( Email.Simple : module type of Email.Simple with module Expert := Email.Simple.Expert) let default_server = Host_and_port.create ~host:"localhost" ~port:25 let client_log = Lazy.map Async.Log.Global.log ~f:(fun lo...
fdc0534f5df1ef38a18f0ba557cd286c0438f19f221479ef63c642c64af179bc
Clozure/ccl
tty-screen.lisp
-*- Log : hemlock.log ; Package : Hemlock - Internals -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; #+CMU (ext:file-comment "$Header$")...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/cocoa-ide/hemlock/unused/archive/tty/tty-screen.lisp
lisp
Package : Hemlock - Internals -*- ********************************************************************** ********************************************************************** Terminal device screen management functions. Terminal screen initialization -1 for echo modeline. also main-modeline-pos. Make echo...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . #+CMU (ext:file-comment "$Header$") Written by , except for the code that implements random typeout , which was done by and . The code for splitting windows was rew...
8a4b32639d1731238858a9c050475782c98cbc92d3d040509d04340cb7c9d340
reborg/clojure-essential-reference
2.clj
(require '[clojure.core.reducers :as r]) (def input (r/map inc (into [] (range 1000)))) < 1 > ;; (1 2 3 4 5) < 2 > ;; (1 2 3 4 5)
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/ReducersandTransducers/Reducers/foldcat%2Ccatandappend!/2.clj
clojure
(1 2 3 4 5) (1 2 3 4 5)
(require '[clojure.core.reducers :as r]) (def input (r/map inc (into [] (range 1000)))) < 1 > < 2 >
2dc08c4d27c0b5c74b75bdf022383229913e81bf5279e1d15760bf23172affc9
jbracker/supermonad
TypeChecker.hs
# LANGUAGE RebindableSyntax # -- NOTE: Required for 'zipWith3M' # LANGUAGE ScopedTypeVariables # * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * H M T C ...
null
https://raw.githubusercontent.com/jbracker/supermonad/2595396a225a65b1dce6ed9a1ce59960f392a55b/examples/monad/hmtc/monad-param/TypeChecker.hs
haskell
NOTE: Required for 'zipWith3M' :: A.AST -> D MTIR :: String -> [(Name,Type)] -> IO () Standard library imports NOTE: Required because of RebindableSyntax ==> NoImplicitPrelude and reports any errors. Hence a computation in the diagnostics monad 'D'. Additionally, translates the program into the type-annotated, i...
# LANGUAGE RebindableSyntax # # LANGUAGE ScopedTypeVariables # * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * H M T C * * ...
73ca60ac41c37704fc008a8abe3c59c018c99cfe4320840415150d7ad50e3d22
matijapretnar/eff
location.mli
(** Source code locations To show the user what piece of code is causing errors, we tag each construct with a corresponding location in the source. This consists of the name of the file and starting and ending position in the file (i.e. line and column number). *) type t (** Type of locations. *) val...
null
https://raw.githubusercontent.com/matijapretnar/eff/0b0ec7a83e7db4d040ed8fdfc1ac6e3c0f344be1/src/00-utils/location.mli
ocaml
* Source code locations To show the user what piece of code is causing errors, we tag each construct with a corresponding location in the source. This consists of the name of the file and starting and ending position in the file (i.e. line and column number). * Type of locations. * Print a location.
type t val print : t -> Format.formatter -> unit val make : Lexing.position -> Lexing.position -> t * Make a location from two lexing positions . val union : t -> t -> t * Computes the smallest location containing the two given locations . val of_lexeme : Lexing.lexbuf -> t * Get the location of the current lexeme...
369e23fb66a2c978960b5ee71d1a2e4355556c5c6daa9b760173140acb7ce2ad
haskell-works/hw-prim
DoctestDriver.hs
# LANGUAGE CPP # #if MIN_VERSION_GLASGOW_HASKELL(8,4,4,0) # OPTIONS_GHC -F -pgmF doctest - discover # #else module Main where import qualified System.IO as IO main :: IO () main = IO.putStrLn "WARNING: doctest will not run on GHC versions earlier than 8.4.4" #endif
null
https://raw.githubusercontent.com/haskell-works/hw-prim/aff74834cd2d3fb0eb4994b24b2d1cdef1e3e673/doctest/DoctestDriver.hs
haskell
# LANGUAGE CPP # #if MIN_VERSION_GLASGOW_HASKELL(8,4,4,0) # OPTIONS_GHC -F -pgmF doctest - discover # #else module Main where import qualified System.IO as IO main :: IO () main = IO.putStrLn "WARNING: doctest will not run on GHC versions earlier than 8.4.4" #endif
706a05335c193e1ed924083564825df527a6be57dff6e5c721572b88d3e9c775
herbelin/coq-hh
functional_principles_proofs.ml
open Printer open Util open Term open Namegen open Names open Declarations open Pp open Entries open Hiddentac open Evd open Tacmach open Proof_type open Tacticals open Tactics open Indfun_common open Libnames let msgnl = Pp.msgnl let observe strm = if do_observe () then Pp.msgnl strm else () let observennl s...
null
https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/plugins/funind/functional_principles_proofs.ml
ocaml
let tclTRYD tac = then (fun g -> try (\* do_observe_tac "" *\)tac g with _ -> tclIDTAC g) else tac observe (str "is_trivial_eq " ++ Printer.pr_lconstr t ++ (if res then str " true" else str " false")); observe_tac msg observe_tac "change_hyp_with_using thin" observe_tac "change_hyp_with_using renam...
open Printer open Util open Term open Namegen open Names open Declarations open Pp open Entries open Hiddentac open Evd open Tacmach open Proof_type open Tacticals open Tactics open Indfun_common open Libnames let msgnl = Pp.msgnl let observe strm = if do_observe () then Pp.msgnl strm else () let observennl s...
0ea1d2c0397ef4b1001ff965720a512fc156a8d5ed8e0b0c373eefaa2bf087c3
haskell-graphql/graphql-api
Tests.hs
# LANGUAGE DataKinds # module Main where import Protolude import Network.Wai.Test import GraphQL.API import GraphQL.Wai import GraphQL.Resolver type Cat = Object "Cat" '[] '[Field "name" Text] catHandler :: Handler IO Cat catHandler = pure (returns "Felix") test1 :: Session () test1 = do r <- request $ setPath d...
null
https://raw.githubusercontent.com/haskell-graphql/graphql-api/8ced344485cd638cee50eeb6b653baecea359406/graphql-wai/tests/Tests.hs
haskell
# LANGUAGE DataKinds # module Main where import Protolude import Network.Wai.Test import GraphQL.API import GraphQL.Wai import GraphQL.Resolver type Cat = Object "Cat" '[] '[Field "name" Text] catHandler :: Handler IO Cat catHandler = pure (returns "Felix") test1 :: Session () test1 = do r <- request $ setPath d...
c7b779f94e39bc67509e728ac704bb03dda7b90c2c52bb40cf4848c42d2dda74
fortytools/holumbus
PrefixMem.hs
-- ---------------------------------------------------------------------------- | Module : Holumbus . Index . Inverted . PrefixMem Copyright : Copyright ( C ) 2007 - 2009 , , License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version ...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/searchengine/source/Holumbus/Index/Inverted/PrefixMem.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- # OPTIONS -XTypeSynonymInstances -XFlexibleInstances -XMultiParamTypeClasses # * Inverted index types * Construction --------------------------------------------...
| Module : Holumbus . Index . Inverted . PrefixMem Copyright : Copyright ( C ) 2007 - 2009 , , License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.3 A variant of the Inverted . Memory index with an optimized pref...
50922c8c0532483ff9f91af75afa81e03b6e03db189e7fba6e080c80073930d3
rcherrueau/APE
lam+ref-test.rkt
#lang s-exp "lam+ref.rkt" ;; Lambda Tests ;; True (λ t (λ f t)) ;; False (λ t (λ f f)) IFTHENESLE (λ test (λ if-true (λ if-false ((test if-true) if-false)))) ;; Y Combinator (λ g ((λ x (g (x x))) (λ x (g (x x))))) ISZERO (λ n (n ((λ x (λ t (λ f f))) (λ t (λ f t))))) SEQ (λ x (λ y ((λ _ y) x))) ;; ;; LOO...
null
https://raw.githubusercontent.com/rcherrueau/APE/8b5302709000bd043b64d46d55642acb34ce5ba7/racket/pan/attic/lam%2Bref-test.rkt
racket
Lambda Tests True False Y Combinator ;; LOOP ((λ x (x x)) (λ x (x x))) Mutable Reference Tests DEREF SET ; DEREF ( hygienic on ` v ` )
#lang s-exp "lam+ref.rkt" (λ t (λ f t)) (λ t (λ f f)) IFTHENESLE (λ test (λ if-true (λ if-false ((test if-true) if-false)))) (λ g ((λ x (g (x x))) (λ x (g (x x))))) ISZERO (λ n (n ((λ x (λ t (λ f f))) (λ t (λ f t))))) SEQ (λ x (λ y ((λ _ y) x))) (λ v (ref v)) (λ r (deref r)) (λ r (λ v (set! r v)))...
d07a495f6bddfd2efc47cbad46f70d0ad9604e174c7f5af4eb9a0d985e34166f
gcv/appengine-magic
memcache.clj
(ns test.appengine-magic.services.memcache (:use clojure.test) (:require [appengine-magic.testing :as ae-testing] [appengine-magic.services.memcache :as memcache])) (use-fixtures :each (ae-testing/local-services :all)) (deftest stats (is (= (appengine_magic.services.memcache.Statistics. 0 0 0 0 0 ...
null
https://raw.githubusercontent.com/gcv/appengine-magic/facc9fe4945b3becd772d6b053844e572dcc1c73/test/test/appengine_magic/services/memcache.clj
clojure
(ns test.appengine-magic.services.memcache (:use clojure.test) (:require [appengine-magic.testing :as ae-testing] [appengine-magic.services.memcache :as memcache])) (use-fixtures :each (ae-testing/local-services :all)) (deftest stats (is (= (appengine_magic.services.memcache.Statistics. 0 0 0 0 0 ...
1ae7805609fb3526f1135b5159b644dcf6d6e9c7cdc7bffb4e7d31fe731c8a00
bozsahin/ccglab
testsuite.lisp
;; testing cecm.ccg (defparameter *db* '( (1 (john persuaded mary to buy the car)) (2 (john promised mary to buy the car)) (3 (john wanted mary to buy the car)) (4 (john expected mary to buy the car)) (5 (mary considered john handsome)) (6 (it seemed john bought the car)) (7 (john seemed to have bought t...
null
https://raw.githubusercontent.com/bozsahin/ccglab/15def13c76e562a053ff92d61353549818d2a7e3/examples/control-ecm/testsuite.lisp
lisp
testing cecm.ccg it means eliminate these types during parsing for demo. show the derivations onto saves the combined grammar
(defparameter *db* '( (1 (john persuaded mary to buy the car)) (2 (john promised mary to buy the car)) (3 (john wanted mary to buy the car)) (4 (john expected mary to buy the car)) (5 (mary considered john handsome)) (6 (it seemed john bought the car)) (7 (john seemed to have bought the car)) (8bad (th...
99ce1cd32114b9aca9ececa3e6b212cccd04f3e3b09a9f73790fe61c0487ca2b
ghc/packages-Cabal
setup-no-tix.test.hs
import Test.Cabal.Prelude import Distribution.Simple.Hpc -- When -fhpc is manually provided, but --enable-coverage is not, the desired behavior is that we pass on -fhpc to GHC , but do NOT attempt to do anything with the tix file ( i.e. , do not change -- where it gets output, do not attempt to run hpc on it.) -- ...
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/TestSuiteTests/ExeV10/setup-no-tix.test.hs
haskell
When -fhpc is manually provided, but --enable-coverage is not, where it gets output, do not attempt to run hpc on it.) coverage manually. Unfortunately, this behavior is (not yet) documented in the manual. (In fact, coverage is not documented at all.)
import Test.Cabal.Prelude import Distribution.Simple.Hpc the desired behavior is that we pass on -fhpc to GHC , but do NOT attempt to do anything with the tix file ( i.e. , do not change This was requested in # 1945 , by a user who wanted to handle the main = setupAndCabalTest $ do Source copy is necessary as ...
74b0d9b5acaa53b35ec00f948a604466d97d1b36ca67f3da5f1a89cd5e22c89c
yellowbean/Hastructure
Revolving.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE TemplateHaskell # # LANGUAGE DeriveGeneric # module Revolving (LiquidationMethod(..)) where import GHC.Generics import Language.Haskell.TH import Data.Aeson hiding (json) import qualified Data.Text as T import Data.Aeson.TH import Data....
null
https://raw.githubusercontent.com/yellowbean/Hastructure/6b8fe40b304f0fa74bd0eba4224b125f404c61cc/src/Revolving.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE DeriveAnyClass # by performing/delinq/default factor only liquidate defaulted balance discount factor, recovery on default custom amount
# LANGUAGE TemplateHaskell # # LANGUAGE DeriveGeneric # module Revolving (LiquidationMethod(..)) where import GHC.Generics import Language.Haskell.TH import Data.Aeson hiding (json) import qualified Data.Text as T import Data.Aeson.TH import Data.Aeson.Types import Data.Hashable import Data.Fixed import Types imp...
f1502112f683596c31a107706a933fdb07595333034dab0ac0bc415a7427728c
kubernetes-client/haskell
Scheduling.hs
Kubernetes No description provided ( generated by Openapi Generator -generator ) OpenAPI Version : 3.0.1 Kubernetes API version : release-1.20 Generated by OpenAPI Generator ( -generator.tech ) Kubernetes No description provided (generated by Openapi Generator -generator) OpenAPI...
null
https://raw.githubusercontent.com/kubernetes-client/haskell/edfb4744a40be1d6a4b9d4a7d060069f2367884a/kubernetes/lib/Kubernetes/OpenAPI/API/Scheduling.hs
haskell
| Module : Kubernetes.OpenAPI.API.Scheduling # LANGUAGE OverloadedStrings # * Operations ** Scheduling *** getAPIGroup | @GET \/apis\/scheduling.k8s.io\/@ get information of a group | @application/json@ | @application/vnd.kubernetes.protobuf@ | @application/yaml@
Kubernetes No description provided ( generated by Openapi Generator -generator ) OpenAPI Version : 3.0.1 Kubernetes API version : release-1.20 Generated by OpenAPI Generator ( -generator.tech ) Kubernetes No description provided (generated by Openapi Generator -generator) OpenAPI...
42fa4678140eaabce6a98ba1dd7e9224743f1fe179f0b7cc98cf69cf60ef0054
clj-commons/seesaw
cursor.clj
Copyright ( c ) , 2011 . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this ; distribution. ; By using this software in any fashion, you are agreeing to be ...
null
https://raw.githubusercontent.com/clj-commons/seesaw/4ca89d0dcdf0557d99d5fa84202b7cc6e2e92263/test/seesaw/test/cursor.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not rem...
Copyright ( c ) , 2011 . All rights reserved . (ns seesaw.test.cursor (:use seesaw.cursor) (:use seesaw.graphics) (:use [lazytest.describe :only (describe it testing)] [lazytest.expect :only (expect)]) (:import [java.awt Cursor])) (defmacro test-built-ins [] `(testing "creating a built-in curs...
0230e0df29cd62e3e0c312ed71a6233b84786ad09d3aab5a40bbcae7f253fe0d
corecursive/sicp-study-group
ex03_02.scm
* Exercise 3.2 :* In software - testing applications , it is useful to ;; be able to count the number of times a given procedure is called ;; during the course of a computation. Write a procedure ;; `make-monitored' that takes as input a procedure, `f', that itself takes one input . The result returned by ` make...
null
https://raw.githubusercontent.com/corecursive/sicp-study-group/e0d0030683bba2603d30918436813ba2bb5102c9/plundaahl/exercises/ex03_02.scm
scheme
be able to count the number of times a given procedure is called during the course of a computation. Write a procedure `make-monitored' that takes as input a procedure, `f', that itself it has been called by maintaining an internal counter. If the input to `mf' is the special symbol `how-many-calls?', then `mf' ...
* Exercise 3.2 :* In software - testing applications , it is useful to takes one input . The result returned by ` make - monitored ' is a third procedure , say ` mf ' , that keeps track of the number of times symbol ` reset - count ' , then ` mf ' resets the counter to zero . For ( s 100 ) 10 ...
ecd99feac3b1572c35b1af1a17f2e23d119a25a693c7916aab66ea9bad8538d1
pink-gorilla/pinkie
style.clj
(ns pinkie.style (:require [clojure.string :as str] [clojure.walk :refer [prewalk]])) accepts Style as string , but Reagent does not . Example : [: rect { : width " 100 % " , : height " 100 % " , : style " stroke : none ; fill : # FFFFFF ; " } ] (defn to-map-style [s] (let [style-vec (map #(str/split ...
null
https://raw.githubusercontent.com/pink-gorilla/pinkie/32a98d8ce97e95bbe92bf4948e95d21f6a0e11f3/src/pinkie/style.clj
clojure
(println "is-style? " x) (println "pinkie replacing string style: " x)
(ns pinkie.style (:require [clojure.string :as str] [clojure.walk :refer [prewalk]])) accepts Style as string , but Reagent does not . Example : [: rect { : width " 100 % " , : height " 100 % " , : style " stroke : none ; fill : # FFFFFF ; " } ] (defn to-map-style [s] (let [style-vec (map #(str/split ...
3dd8024030cfd7fe81a9cd80f8848b270526621ea0607592116b425dad62ee45
mejgun/haskell-tdlib
GetAutosaveSettings.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.GetAutosaveSettings where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | -- Returns autosave settings for the current user data GetAutosaveSettings = GetAutosaveSettings { } deriving (Eq) instance...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/b088f5062023fa201a68ebda128ab2fc489329ab/src/TD/Query/GetAutosaveSettings.hs
haskell
# LANGUAGE OverloadedStrings # | | Returns autosave settings for the current user
module TD.Query.GetAutosaveSettings where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U data GetAutosaveSettings = GetAutosaveSettings { } deriving (Eq) instance Show GetAutosaveSettings where show GetAutosaveSettings = "GetAutosaveSettings" ++...
2c0bc43016c81c81e6715ef55655bd981c1ba9ed0533f7d4c1aa445aee97b110
ekmett/reactive
PairMonad.hs
# OPTIONS_GHC -Wall -fno - warn - orphans # ---------------------------------------------------------------------- -- | Module : Data . PairMonad Copyright : ( c ) Conal Elliott 2008 -- License : GNU AGPLv3 (see COPYING) -- -- Maintainer : -- Stability : experimental -- Writer monad as a...
null
https://raw.githubusercontent.com/ekmett/reactive/61b20b7a2e92af372b5bd9a2af294db0fbdfa9d8/src/Data/PairMonad.hs
haskell
-------------------------------------------------------------------- | License : GNU AGPLv3 (see COPYING) Maintainer : Stability : experimental -------------------------------------------------------------------- Orphan instance: Equivalent to the Monad Writer instance. Alternatively, where ...
# OPTIONS_GHC -Wall -fno - warn - orphans # Module : Data . PairMonad Copyright : ( c ) Conal Elliott 2008 Writer monad as a pair . Until it 's in Control . Monad . Instances . Use @import Data . PairMonad ( ) @ module Data.PairMonad () where import Data.Monoid import Control.Applicative ins...
800d9e00c3e4d36ee020877edf3bf761b555000bf8f5475385906e6fd7338d1e
openbadgefactory/salava
db_test.clj
(ns salava.user.db-test (:require [salava.user.db :as db] [clojure.test :refer :all] [salava.core.migrator :as migrator] [salava.core.test-utils :as t])) (def test-user {:id 1 :role "user" :private false}) (def registration-data {:first_name "Testing" :last_name "Registrati...
null
https://raw.githubusercontent.com/openbadgefactory/salava/97f05992406e4dcbe3c4bff75c04378d19606b61/test/clj/salava/user/db_test.clj
clojure
(migrator/run-test-reset)
(ns salava.user.db-test (:require [salava.user.db :as db] [clojure.test :refer :all] [salava.core.migrator :as migrator] [salava.core.test-utils :as t])) (def test-user {:id 1 :role "user" :private false}) (def registration-data {:first_name "Testing" :last_name "Registrati...
9cfe7eabff612d95db563b881b0604486e433b17a0a09080387d1b739b531ad4
js-choi/fnparse
test_parse_json.clj
(ns name.choi.joshua.fnparse.test-parse-json (:use clojure.test) (:require [name.choi.joshua.fnparse.json :as j])) (defstruct node-s :kind :content) (defstruct state-s :remainder :column :line) (def make-node (partial struct node-s)) (def make-state (partial struct state-s)) (deftest number-lit (is (= (j/number...
null
https://raw.githubusercontent.com/js-choi/fnparse/88074049697da93d286290774347618bcc7a2492/test/name/choi/joshua/fnparse/test_parse_json.clj
clojure
(is (thrown-with-msg? Exception (j/number-lit (make-state "-123.9ee3]" 3 4))))) (is (thrown-with-msg? Exception #"an array is unclosed; \"]\" expected where \"}\" is" "loading an improperly closed array")
(ns name.choi.joshua.fnparse.test-parse-json (:use clojure.test) (:require [name.choi.joshua.fnparse.json :as j])) (defstruct node-s :kind :content) (defstruct state-s :remainder :column :line) (def make-node (partial struct node-s)) (def make-state (partial struct state-s)) (deftest number-lit (is (= (j/number...
2adb90f5616c703940ec803ecebb8ba382806d11ae0e51ac2581366a056530cc
carp-lang/Carp
TypesToC.hs
module TypesToC ( tyToC, tyToCLambdaFix, tyToCRawFunctionPtrFix, ) where import Data.List import Data.Text (pack, splitOn, unpack) import SymPath import Types import Util tyToC :: Ty -> String tyToC = tyToCManglePtr False tyToCLambdaFix :: Ty -> String tyToCLambdaFix FuncTy {} = "Lambda" tyToCLambdaFix (...
null
https://raw.githubusercontent.com/carp-lang/Carp/380945bf320b193e171f04898e599f2ffce84bb7/src/TypesToC.hs
haskell
TODO: More cases needed?! What's a better way to do it..? Literal C; we shouldn't emit anything.
module TypesToC ( tyToC, tyToCLambdaFix, tyToCRawFunctionPtrFix, ) where import Data.List import Data.Text (pack, splitOn, unpack) import SymPath import Types import Util tyToC :: Ty -> String tyToC = tyToCManglePtr False tyToCLambdaFix :: Ty -> String tyToCLambdaFix FuncTy {} = "Lambda" tyToCLambdaFix (...
10361ca17a0a235a2b322dc3873065d990f7150a9a5d3a4635a69f2d8cf3cf16
kupl/FixML
sub10.ml
let abs n = if(n<0) then -(n) else n let rec sigma : (int -> int) -> int -> int -> int = fun f a b -> let n = abs b in if a <= n then sigma f a (n-1) + f n else 0;;
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/sigma/sigma1/submissions/sub10.ml
ocaml
let abs n = if(n<0) then -(n) else n let rec sigma : (int -> int) -> int -> int -> int = fun f a b -> let n = abs b in if a <= n then sigma f a (n-1) + f n else 0;;
eb4987d243454745749a4825da727b9e00fe5094e6f5dc77e787f23725413a42
PeterDWhite/Osker
Buffer.hs
Copyright ( C ) , 2002 , 2003 Copyright ( c ) OHSU , 2002 , 2003 module Buffer ( Buffer (..) ) where ---------------------------------------------------------------------- -- A buffer is a currently a String, with a maximum length ---------------------------------------------------------------------- data Buf...
null
https://raw.githubusercontent.com/PeterDWhite/Osker/301e1185f7c08c62c2929171cc0469a159ea802f/Posix/Buffer.hs
haskell
-------------------------------------------------------------------- A buffer is a currently a String, with a maximum length --------------------------------------------------------------------
Copyright ( C ) , 2002 , 2003 Copyright ( c ) OHSU , 2002 , 2003 module Buffer ( Buffer (..) ) where data Buffer = Buffer { bufDat :: String , bufLen :: Int } deriving (Show)
154da401fab4ee7f5b16d634a16cf73dc256a946674268b6acfa5288daa8a5c9
irccloud/eidentd
eidentd_sup.erl
-module(eidentd_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). %% Helper macro for declaring children of supervisor -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). %% ==========================================================...
null
https://raw.githubusercontent.com/irccloud/eidentd/e764a3426d51e44c97be927b4d522a7c7ca375cd/src/eidentd_sup.erl
erlang
API Supervisor callbacks Helper macro for declaring children of supervisor =================================================================== API functions =================================================================== =================================================================== Supervisor callback...
-module(eidentd_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> Children = [ ?CHILD(eidentd_regi...
f81b8744d29e294e56ed0a7ef6854ac2b187826e365944adc9d537682269df3f
tweag/HaskellR
Interactive.hs
-- | Copyright : ( C ) 2013 Amgen , Inc. -- -- This class is not meant to be imported in any other circumstance than in -- a GHCi session. # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - orphans # module H.Prelude.Interactive ( module H.Prelude , PrintR(..) , p , printQuote ) where import qualifi...
null
https://raw.githubusercontent.com/tweag/HaskellR/e6b4ba0ddea32975df644fa1f9581881575ee7dc/inline-r/src/H/Prelude/Interactive.hs
haskell
| This class is not meant to be imported in any other circumstance than in a GHCi session. | A form of the 'printR' function that is more convenient in an interactive session. | A form of the 'printR' function that is more convenient in an interactive session.
Copyright : ( C ) 2013 Amgen , Inc. # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - orphans # module H.Prelude.Interactive ( module H.Prelude , PrintR(..) , p , printQuote ) where import qualified Foreign.R as R import H.Prelude hiding (withEmbeddedR) instance MonadR IO where io = id data Ex...
11dc8119b5d0f9428c6070ba0a4013109932c372a9ba8f8609ddbf6185cf641f
trivial-features/trivial-features
tf-openmcl.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; tf-openmcl.lisp --- OpenMCL trivial-features implementation. ;;; Copyright ( C ) 2007 , ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to ...
null
https://raw.githubusercontent.com/trivial-features/trivial-features/f6e8dd7268ae0137dbde4be469101a7f735f6416/src/tf-openmcl.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- tf-openmcl.lisp --- OpenMCL trivial-features implementation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, pub...
Copyright ( C ) 2007 , files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , (in-package :cl-user) ...
d5deab40a76dbaa861be916ce39fd232e199d7943e67d6eebac8ab7013d5b30a
emina/rosette
numerics.rkt
#lang racket (require "term.rkt" "polymorphic.rkt" "real.rkt" "bool.rkt" "merge.rkt" "safe.rkt") (provide @number? @positive? @negative? @zero? @even? @odd? @add1 @sub1 @sgn @truncate @floor @ceiling @min @max @exact->inexact @inexact->exact @expt extreme) (define (@nu...
null
https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/rosette/base/core/numerics.rkt
racket
#lang racket (require "term.rkt" "polymorphic.rkt" "real.rkt" "bool.rkt" "merge.rkt" "safe.rkt") (provide @number? @positive? @negative? @zero? @even? @odd? @add1 @sub1 @sgn @truncate @floor @ceiling @min @max @exact->inexact @inexact->exact @expt extreme) (define (@nu...
0d3a80d56818c2e17fd5c18b1c5b4a5bd7cf363d2e6ca39b72d07c5b2e4eed8e
racket/handin
guess.rkt
#lang racket/gui (require htdp/error lang/prim) (provide guess-with-gui guess-with-gui-3 guess-with-gui-list) (define-higher-order-primitive guess-with-gui guess-with-gui/proc (check-guess)) (define-higher-order-primitive guess-with-gui-3 guess-with-gui-3/proc (check-guess)) (define-higher-order-primitive guess-...
null
https://raw.githubusercontent.com/racket/handin/a01b9cce0c2397d3e1049d4e6932b48b51e65b13/handin-server/overridden-collects/teachpack/htdp/guess.rkt
racket
#lang racket/gui (require htdp/error lang/prim) (provide guess-with-gui guess-with-gui-3 guess-with-gui-list) (define-higher-order-primitive guess-with-gui guess-with-gui/proc (check-guess)) (define-higher-order-primitive guess-with-gui-3 guess-with-gui-3/proc (check-guess)) (define-higher-order-primitive guess-...
56d450bcdb0f1978476fabe019685af16383619cde104f56c9084c39d2aed5aa
larcenists/larceny
fft.scm
FFT - Fast Fourier Transform , translated from " Numerical Recipes in C " (import (scheme base) (scheme inexact) (scheme read) (scheme write) (scheme time)) ;(define flsin sin) (define (four1 data) (let ((n (vector-length data)) (pi*2 6.28318530717959)) ; to compute the ...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/test/Benchmarking/R7RS/src/fft.scm
scheme
(define flsin sin) to compute the inverse, negate this value bit-reversal section ***)) ******
FFT - Fast Fourier Transform , translated from " Numerical Recipes in C " (import (scheme base) (scheme inexact) (scheme read) (scheme write) (scheme time)) (define (four1 data) (let ((n (vector-length data)) (let loop1 ((i 0) (j 0)) (if (< i n) (begin ...
d2ebd52d3267b5e5ac62c53210e1a64ce5d18ec06808b2b69b79e65a70dab20f
MyDataFlow/ttalk-server
ejabberdctl_helper.erl
%%%------------------------------------------------------------------- @author ( C ) 2015 , Erlang Solutions %%% @doc %%% %%% @end Created : 12 . Nov 2015 14:39 %%%------------------------------------------------------------------- -module(ejabberdctl_helper). -author("ludwikbukowski"). -include_lib("escalus/in...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/test/ejabberd_tests/tests/ejabberdctl_helper.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API
@author ( C ) 2015 , Erlang Solutions Created : 12 . Nov 2015 14:39 -module(ejabberdctl_helper). -author("ludwikbukowski"). -include_lib("escalus/include/escalus.hrl"). -export([ejabberdctl/3, rpc_call/3]). ejabberdctl(Cmd, Args, Config) -> CtlCmd = escalus_config:get_config(ctl_path, Config), run(stri...
f49def2ae7a60d112b93f2426322236561a9f4ee6e3bdab3e75cf090a813e56e
LeventErkok/sbv
LinearOpt.hs
----------------------------------------------------------------------------- -- | Module : Documentation . SBV.Examples . Optimization . LinearOpt Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- -- Simple linear optimization example, as found in operations research texts....
null
https://raw.githubusercontent.com/LeventErkok/sbv/0d791d9f4d1de6bd915b6d7d3f9a550385cb27a5/Documentation/SBV/Examples/Optimization/LinearOpt.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Maintainer: Stability : experimental Simple linear optimization example, as found in operations research texts. --------------------------------------------------------------------------- # OPTIONS_GHC -Wall -Werror # ...
Module : Documentation . SBV.Examples . Optimization . LinearOpt Copyright : ( c ) module Documentation.SBV.Examples.Optimization.LinearOpt where import Data.SBV | Taken from < /~mastjjb/jeb/or/morelp.html > * maximize 5x1 + 6x2 1 . x1 + x2 < = 10 2 . x1 - x2 > = 3 ...
ef1e4dd8ef9a8e9dac9e475cf61b0ce83f23230922e985cc4e2b4dd2e089b382
frictionlessdata/tableschema-clj
validate_test.clj
(ns tableschema-clj.validate-test (:require [tableschema-clj.validate :as sut] [clojure.test :as t]))
null
https://raw.githubusercontent.com/frictionlessdata/tableschema-clj/c907da7eabe752eb47a0b18064c0de23937474d1/test/tableschema_clj/validate_test.clj
clojure
(ns tableschema-clj.validate-test (:require [tableschema-clj.validate :as sut] [clojure.test :as t]))
2dff9031ae38a2f59c825391acda580958885d8dedd2c597e47b01cf85363ee7
Mishio595/disml
user_id.ml
include User_id_t
null
https://raw.githubusercontent.com/Mishio595/disml/cbb1e47a6d358eace03790c07a1b85641f4ca366/lib/models/id/user_id.ml
ocaml
include User_id_t
99effdc56a711753589a6f2763bca4d1c6a3df11038a7d63cd1f10ec918c5eea
ocurrent/ocaml-ci
badges.ml
type schema = { * always : 1 label : string; message : string; * default : " " label_color : string option; [@key "labelColor"] [@default None] (** default: "grey" *) is_error : bool option; [@key "isError"] [@default None] (** default: false *) named_logo : string option; [@key "namedLogo"] [@de...
null
https://raw.githubusercontent.com/ocurrent/ocaml-ci/00c4dfca082ffc6f5cd4491c2857b277d0f4ca6a/web-ui/controller/badges.ml
ocaml
* default: "grey" * default: false * default: "flat" * Extracted from .
type schema = { * always : 1 label : string; message : string; * default : " " label_color : string option; [@key "labelColor"] [@default None] is_error : bool option; [@key "isError"] [@default None] named_logo : string option; [@key "namedLogo"] [@default None] logo_svg : string option; [@key "logoSvg"] ...
fe78f52f96f4e559020bce1a3fdba957a033eeda4bbbed7b5e525aa26628f13c
avsm/platform
get_tests.ml
#!/usr/bin/env ocaml #use "topfind" #require "topkg" open Topkg let tests_file kind = strf "test/%sBreakTest.txt" kind FIXME this should source from % % UNICODE_VERSION%% strf "" kind let get_tests kind = let tests_file = tests_file kind in let tests_uri = tests_uri kind in OS.File.exists tests_file >>= fun...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/uuseg.12.0.0%2Bdune/pkg/get_tests.ml
ocaml
We only want the nicer OS API.
#!/usr/bin/env ocaml #use "topfind" #require "topkg" open Topkg let tests_file kind = strf "test/%sBreakTest.txt" kind FIXME this should source from % % UNICODE_VERSION%% strf "" kind let get_tests kind = let tests_file = tests_file kind in let tests_uri = tests_uri kind in OS.File.exists tests_file >>= fun...
29d2a45b13009e705b9a3e3240b884873f585ab38d78a67c32e556b64cab7133
cau-placc/ghc-language-plugin
ClsInst.hs
| Module : Plugin . Trans . ClsInst Description : Functions to handle lifting of instance information Copyright : ( c ) ( 2020 - 2023 ) Maintainer : This module contains a function to lift the information that GHC has collected about a given instance . The instance functions itself are no...
null
https://raw.githubusercontent.com/cau-placc/ghc-language-plugin/5b4de152e8f96d69b6bf2bad1caf76082608d452/src/Plugin/Trans/ClsInst.hs
haskell
| Lift a given class instance. Lookup new class Update type constructors Include any shareable constraints that are required by the type variables bound in the instance head. Split the lifted type into invisible pi-types (forall, constraints) # and the rest. Get named binders (e.g., foralls). Extract variables...
| Module : Plugin . Trans . ClsInst Description : Functions to handle lifting of instance information Copyright : ( c ) ( 2020 - 2023 ) Maintainer : This module contains a function to lift the information that GHC has collected about a given instance . The instance functions itself are no...
2001ba215767eb2f461e6dc32b771c151ed8b195d8aa9fa13517beab7ff149d9
dbuenzli/remat
cmd_browser.mli
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the BSD3 license , see license at the end of the file . % % NAME%% release % % --------------------------------------------------------------------------- Cop...
null
https://raw.githubusercontent.com/dbuenzli/remat/28d572e77bbd1ad46bbfde87c0ba8bd0ab99ed28/src-remat/cmd_browser.mli
ocaml
* Remat [browser] command. * The [browser] command.
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the BSD3 license , see license at the end of the file . % % NAME%% release % % --------------------------------------------------------------------------- Cop...
587e4be508c9fa56cb347a0323c4978226f3486f8c289bb71b594f98c7d907e8
fogfish/pts
pts.erl
%% Copyright ( c ) 2012 , %% All Rights Reserved. %% %% This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License , version 3.0 as published by the Free Software Foundation ( the " License " ) . %% Software distributed under the Li...
null
https://raw.githubusercontent.com/fogfish/pts/f98c594f1e596f81b5e54c9791bf69568327fba2/src/pts.erl
erlang
All Rights Reserved. This library is free software; you can redistribute it and/or modify basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. License along with this library; if not, write to the ...
Copyright ( c ) 2012 , it under the terms of the GNU Lesser General Public License , version 3.0 as published by the Free Software Foundation ( the " License " ) . Software distributed under the License is distributed on an " AS IS " You should have received a copy of the GNU Lesser General Public ...
efa90a1c855e6e5cbcda78bbf2f718915d6e5e505bc61877855f2fb6a7a3341d
metawilm/cl-python
mod-operator-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-operator-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-operator-test () (with-subtest (:name "module Operator") (run-no-error "import operator; assert operator.floordiv(20, 3) == 6") ...
0b0dd280497eebf5592aead927322bb934d35d2e4768553a16baaf14f3a5fefc
hypernumbers/hypernumbers
excel.erl
%%%------------------------------------------------------------------- %%% File excel.erl @author < > Copyright ( C ) 2007 - 2014 Hypernumbers Ltd @doc This module parses the specific Excel components of %%% a file. The structure of this process is shown %%% schematically below: %%% ...
null
https://raw.githubusercontent.com/hypernumbers/hypernumbers/281319f60c0ac60fb009ee6d1e4826f4f2d51c4e/lib/read_excel-1.0/src/excel.erl
erlang
------------------------------------------------------------------- File excel.erl a file. The structure of this process is shown schematically below: @end ------------------------------------------------------------------- %...
@author < > Copyright ( C ) 2007 - 2014 Hypernumbers Ltd @doc This module parses the specific Excel components of < img src="./diagram2.png " / > Created : 6 Apr 2007 by < gordonguthrie@gg - laptop > This module is licensed under the Erlang Public License V1.0 -module(excel). -expor...
9d1ab7db89dd326d43fbf18942bc6759b3e0acedcb225c102f879de2aed5fb4e
MichaelXavier/cron
SpecHelper.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DefaultSignatures #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE TypeOperators #-} # OPTIONS_GHC -fno - warn - orphans # module SpecHelper ( module X , module SpecHelper ) where -------------------...
null
https://raw.githubusercontent.com/MichaelXavier/cron/4e0db74b626ba10279c1761834cfa9814642e595/test/SpecHelper.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DefaultSignatures # # LANGUAGE FlexibleContexts # # LANGUAGE TypeOperators # ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- ------------------------...
# LANGUAGE MultiParamTypeClasses # # OPTIONS_GHC -fno - warn - orphans # module SpecHelper ( module X , module SpecHelper ) where import Control.Applicative as X import Data.Attoparsec.Text as X (Parser, parseOnly) import qualified Data.List.NonEmpty as NE import Data....
50f3fad10e28acfe78f6886ed4745b90104677672116862c46229e032c5f65f8
haskell-repa/repa
Fold.hs
module Data.Array.Repa.Stream.Fold (foldSegs) where import Data.Array.Repa.Stream.Base import Prelude hiding (map, zipWith) -- | Segmented Stream fold. Take segments from the given stream and fold each -- using the supplied function and initial element. -- -- @ foldSegs ( + ) 0 [ 2 , 3 , 2 ] [ 10 , 20 ...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/icebox/abandoned/repa-stream/Data/Array/Repa/Stream/Fold.hs
haskell
| Segmented Stream fold. Take segments from the given stream and fold each using the supplied function and initial element. @ @ ^ Function to perform the fold. ^ Initial element of each fold. ^ Stream of segment lengths. ^ Stream of input data. ^ Stream of fold results. NEVER ENTERED (See Note) Note: [N...
module Data.Array.Repa.Stream.Fold (foldSegs) where import Data.Array.Repa.Stream.Base import Prelude hiding (map, zipWith) foldSegs ( + ) 0 [ 2 , 3 , 2 ] [ 10 , 20 , 30 , 40 , 50 , 60 , 70 ] = [ 30,120,130 ] foldSegs f z (Stream sz ss0 nexts) (Stream _ vs0 nextv) = Stream sz (Nothing, z, ss...
0294b77a6ee0ad476db8c0583d2487183ddf0d699ec74a4be0b8078f122c5952
aphyr/salesfear
client.clj
(ns salesfear.client (:refer-clojure :exclude (get find)) (:use [clojure.string :only [join split escape]] [slingshot.slingshot :only [throw+ try+]]) (:import (java.net URL) (com.teamlazerbeez.crm.sf.core SObject Id) (com.teamlazerbeez.crm.sf...
null
https://raw.githubusercontent.com/aphyr/salesfear/608bf1dd493350b1100b61faa61b66abfe6fb6a0/src/salesfear/client.clj
clojure
Fuck mutability Misc stuff Meat n potatoes Cached all accounts
(ns salesfear.client (:refer-clojure :exclude (get find)) (:use [clojure.string :only [join split escape]] [slingshot.slingshot :only [throw+ try+]]) (:import (java.net URL) (com.teamlazerbeez.crm.sf.core SObject Id) (com.teamlazerbeez.crm.sf...
ae220221c806b75f42ef49330c7b0eea436d99eb8d749362dad6b059b4e987ce
noinia/hgeometry
DouglasPeucker.hs
-------------------------------------------------------------------------------- -- | Module : Algorithms . Geometry . PolyLineSimplification . DouglasPeucker Copyright : ( C ) -- License : see the LICENSE file Maintainer : ----------------------------------------------------------------...
null
https://raw.githubusercontent.com/noinia/hgeometry/815d332ea3306c794ceb227cc35d6aa0834e5dcc/hgeometry/src/Algorithms/Geometry/PolyLineSimplification/DouglasPeucker.hs
haskell
------------------------------------------------------------------------------ | License : see the LICENSE file ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ value eps and a polyline pl, constructs a ...
Module : Algorithms . Geometry . PolyLineSimplification . DouglasPeucker Copyright : ( C ) Maintainer : module Algorithms.Geometry.PolyLineSimplification.DouglasPeucker where import Control.Lens hiding (only) import Data.Ext import qualified Data.Foldable as F import ...
e4ad94703a5e23613e0acd8581a61c695c3d4e2f8eb4c61fae2626202322baeb
huangz1990/real-world-haskell-cn
myDropX.hs
file : ch02 / myDropX.hs myDropX n xs = if n <= 0 || null xs then xs else myDropX (n - 1) (tail xs)
null
https://raw.githubusercontent.com/huangz1990/real-world-haskell-cn/f67b07dd846b1950d17ff941d650089fcbbe9586/code/ch02/myDropX.hs
haskell
file : ch02 / myDropX.hs myDropX n xs = if n <= 0 || null xs then xs else myDropX (n - 1) (tail xs)
90c4b0ae73a5551c803d8b636ce2b12035474e74a5698bdaae34777f9fedd0c9
unclebob/more-speech
relay.clj
(ns more-speech.relay (:refer-clojure :exclude [send])) (defmulti open ::type) (defmulti send (fn [relay _messge] (::type relay))) (defmulti close ::type)
null
https://raw.githubusercontent.com/unclebob/more-speech/05f1eee30780d17c11b30bb595f6f0580b05e062/src/more_speech/relay.clj
clojure
(ns more-speech.relay (:refer-clojure :exclude [send])) (defmulti open ::type) (defmulti send (fn [relay _messge] (::type relay))) (defmulti close ::type)
adfeae9e5378747fa4204e70e59ce18b5ee86c67ad286fd4d2235fae0b7d950b
bhaskara/programmable-reinforcement-learning
decomposed-crl-q-function.lisp
(in-package dec-q-fn) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; class def ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defclass <decomposed-crl-q-function> (<decomposed-q-function> crlq:<crl-q-function>) ((decomposed-templates :reader decomposed-templates :writer set-...
null
https://raw.githubusercontent.com/bhaskara/programmable-reinforcement-learning/8afc98116a8f78163b3f86076498d84b3f596217/lisp/rl-functions/q-function/decomposed/decomposed-crl-q-function.lisp
lisp
class def creation the around method parses the :decomposed-template-descs argument, if provided have a set of feature templates, so next compute the set of templates from the set of decomposed feature templates and set the slot appropriately. and decomposed-q-function internal operations
(in-package dec-q-fn) (defclass <decomposed-crl-q-function> (<decomposed-q-function> crlq:<crl-q-function>) ((decomposed-templates :reader decomposed-templates :writer set-decomposed-templates :initarg :decomposed-templates) ) (:documentation "Class <decomposed-crl-q-function> (<decomposed-q-...
7efc045dc1a1ad64535c45be61469f9e3d09a07c6b02a61eb3ff936cb4d85ef6
ikoloki/ltpl
object-write-stream.lisp
(in-package :object-stream) (defclass object-write-stream (object-stream) ()) (defun make-object-write-stream (objects) (make-instance 'object-write-stream :objects objects)) (defmethod read-object ((object-stream object-write-stream)) (error "UNABLE TO READ FROM OBJECT-WRITE-STREAM OBJECTS MUST BE OF TYPE OBJ...
null
https://raw.githubusercontent.com/ikoloki/ltpl/032a103b1effbb616987c8f0e77d780cd4d2d9f7/object-stream/object-write-stream.lisp
lisp
(in-package :object-stream) (defclass object-write-stream (object-stream) ()) (defun make-object-write-stream (objects) (make-instance 'object-write-stream :objects objects)) (defmethod read-object ((object-stream object-write-stream)) (error "UNABLE TO READ FROM OBJECT-WRITE-STREAM OBJECTS MUST BE OF TYPE OBJ...
3304ea9d6f36eb1af2d8d7ac1ef2137dcf366c033b0a33e5f8c17d6496f9278a
coccinelle/coccinelle
digest.mli
type t = string val compare : t -> t -> int val equal : t -> t -> bool val string : string -> t val bytes : bytes -> t val substring : string -> int -> int -> t val subbytes : bytes -> int -> int -> t external channel : in_channel -> int -> t = "caml_md5_chan" val file : string -> t val output : out_channel -> t -> uni...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/5448bb2bd03491ffec356bf7bd6ddcdbf4d36bc9/bundles/stdcompat/stdcompat-current/interfaces/4.14/digest.mli
ocaml
type t = string val compare : t -> t -> int val equal : t -> t -> bool val string : string -> t val bytes : bytes -> t val substring : string -> int -> int -> t val subbytes : bytes -> int -> int -> t external channel : in_channel -> int -> t = "caml_md5_chan" val file : string -> t val output : out_channel -> t -> uni...
fda0e7958095aae9c2f3015c921bbf0228e308c828d444d5c8750826a2cd378d
aeternity/aesophia
aeso_aci.erl
%%%------------------------------------------------------------------- @author ( C ) 2019 , Aeternity Anstalt %%% @doc ACI interface %%% @end Created : 12 Jan 2019 %%%------------------------------------------------------------------- -module(aeso_aci). -export([ file/2 , file/3 , contr...
null
https://raw.githubusercontent.com/aeternity/aesophia/4ca90feea0f70b6a06e811ab5b7892518e97ff65/src/aeso_aci.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- External API Encode a function definition. Currently we are only interested in the interface and type. Encode type decode_func(#{name := init}) -> []; General constr...
@author ( C ) 2019 , Aeternity Anstalt ACI interface Created : 12 Jan 2019 -module(aeso_aci). -export([ file/2 , file/3 , contract_interface/2 , contract_interface/3 , from_typed_ast/2 , render_aci_json/1 , json_encode_expr/1 , json_encode_type...
4560a7185e7ad14df750eef3f0695ea8606d14a28c05a83e58e7803ceb5e5294
arttuka/reagent-material-ui
sos_two_tone.cljs
(ns reagent-mui.icons.sos-two-tone "Imports @mui/icons-material/SosTwoTone as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def sos-two-tone (create-svg-icon (e ...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/c7cd0d7c661ab9df5b0aed0213a6653a9a3f28ea/src/icons/reagent_mui/icons/sos_two_tone.cljs
clojure
(ns reagent-mui.icons.sos-two-tone "Imports @mui/icons-material/SosTwoTone as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def sos-two-tone (create-svg-icon (e ...
6cabbc57543f6ffde8faf1ea8a9980ae3c5501b12d5ee2b6d6ab7d1def6fb7d0
unisonweb/unison
Exception.hs
module Unison.Util.Exception where import Control.Concurrent.Async (waitCatch, withAsync) import Unison.Prelude These are adapted from : License is MIT : -prelude/blob/ccd19f2c62882c69d5dcdd3da5c0df1031334c5a/classy-prelude/LICENSE -- Catch all exceptions except asynchronous exceptions. tryAny :: (MonadIO m) =>...
null
https://raw.githubusercontent.com/unisonweb/unison/cf278f9fb66ccb9436bf8a2eb4ab03fc7a92021d/parser-typechecker/src/Unison/Util/Exception.hs
haskell
Catch all exceptions except asynchronous exceptions. Catch all exceptions except asynchronous exceptions.
module Unison.Util.Exception where import Control.Concurrent.Async (waitCatch, withAsync) import Unison.Prelude These are adapted from : License is MIT : -prelude/blob/ccd19f2c62882c69d5dcdd3da5c0df1031334c5a/classy-prelude/LICENSE tryAny :: (MonadIO m) => IO a -> m (Either SomeException a) tryAny action = lift...
6fef68fbb85994f94c588f3e158fbfccbbbfeb6bae970de569b7b754bb9bd24d
tarides/ocaml-jit
jit.dummy.ml
let init_top () = () let can_enable_jit = false
null
https://raw.githubusercontent.com/tarides/ocaml-jit/fe2fce1a5bb89acf5f7239917f6098d53c2c14ec/lib/jit.dummy.ml
ocaml
let init_top () = () let can_enable_jit = false
194b265da08b7412bb58c31e6e3488f13db8ac23b441dc4d62fc6ee2ac021531
mpickering/apply-refact
Structure18.hs
{-# LANGUAGE BangPatterns #-} foo = case v of !(Just x) -> x
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Structure18.hs
haskell
# LANGUAGE BangPatterns #
foo = case v of !(Just x) -> x
fd9b893ce4be6af4f72429fe8be5544fbdc351fa88cc2b030ec3b052e67297b2
Elzair/nazghul
gwen.scm
;;---------------------------------------------------------------------------- ;; Constants ;;---------------------------------------------------------------------------- (define trigrave-inn-room-price 10) ;;---------------------------------------------------------------------------- ;; Schedule ;; ;; The schedule be...
null
https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.001/gwen.scm
scheme
---------------------------------------------------------------------------- Constants ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Schedule The schedule below is for the place "Trigrave" -------------------...
(define trigrave-inn-room-price 10) (kern-mk-sched 'sch_gwen (list 0 0 trigrave-gwens-bed "sleeping") (list 8 0 trigrave-tavern-table-1a "eating") (list 9 0 trigrave-inn-counter "working") (list 13 0 trigrave-tavern-table-1d "eating") ...
576cf40ecd83fa508388ac56ce8c7903415b9b54b8408fb3299081211ebdc971
kind2-mc/kind2
modelElement.ml
This file is part of the Kind 2 model checker . Copyright ( c ) 2020 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/f353437dc4f4f9f0055861916e5cbb6e564cfc65/src/modelElement.ml
ocaml
Represents an equation of the transition system. It is not specific to the 'equation' model elements of the source lustre program (any model element can be represented by this 'equation' type) ---------- PRETTY PRINTING ---------- Only for MCSs Only for MCSs Filter out duplicate positions Build map ...
This file is part of the Kind 2 model checker . Copyright ( c ) 2020 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...
def9490d10f5e34164fde3e08fd07608731e7aebecaef2754e2339079aac69be
adobe/Chronikis
StanAST.hs
Copyright 2019 Adobe . All rights reserved . This file is licensed to you under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , sof...
null
https://raw.githubusercontent.com/adobe/Chronikis/b83b9e38341cdc1539fc7625c6355c6fd176d8a3/compiler/src/StanAST.hs
haskell
Copyright 2019 Adobe . All rights reserved . This file is licensed to you under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , sof...
3a97060e3585267ca782685777a0c2f42f4c86d9e869f1cd258183d0321cc910
vikram/lisplibraries
isearch.lisp
(in-package :weblocks) (export '(render-isearch *isearch-input-delay* *isearch-max-input-length*)) (defparameter *isearch-input-delay* 0.4 "Delay in seconds after keystrokes a client should wait before it sends an isearch request.") (defparameter *isearch-max-input-length* 80 "Maximum input length allowed in an...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/weblocks-stable/src/snippets/isearch.lisp
lisp
"
(in-package :weblocks) (export '(render-isearch *isearch-input-delay* *isearch-max-input-length*)) (defparameter *isearch-input-delay* 0.4 "Delay in seconds after keystrokes a client should wait before it sends an isearch request.") (defparameter *isearch-max-input-length* 80 "Maximum input length allowed in an...
534705fc157d02215d84a9c5851735a1834ef9fe8efdc7a76130c8b75fb9820a
mishadoff/project-euler
problem057.clj
(ns project-euler) (defn num-greater? [rat] (> (count (str (numerator rat))) (count (str (denominator rat))))) (defn sqroot-next [rat] (+ 1 (/ 1 (+ 2 (- rat 1))))) Elapsed time : 496.012248 msecs (defn euler-057 [] (count (filter true? (map num-greater? (take 1000 (iterate sqroot-next 3/2...
null
https://raw.githubusercontent.com/mishadoff/project-euler/45642adf29626d3752227c5a342886b33c70b337/src/project_euler/problem057.clj
clojure
(ns project-euler) (defn num-greater? [rat] (> (count (str (numerator rat))) (count (str (denominator rat))))) (defn sqroot-next [rat] (+ 1 (/ 1 (+ 2 (- rat 1))))) Elapsed time : 496.012248 msecs (defn euler-057 [] (count (filter true? (map num-greater? (take 1000 (iterate sqroot-next 3/2...
dfcf3e0eb51b86fbcbe131903490b71d195b2ba6ba1ee1a360694c64440dd7cd
huangz1990/SICP-answers
p119-attach-tag-and-type-tag-and-contents.scm
;;; p119-attach-tag-and-type-tag-and-contents.scm (define (attach-tag type-tag contents) (cons type-tag contents)) (define (type-tag datum) (if (pair? datum) (car datum) (error "Bad tagged datum -- TYPE-TAG" datum))) (define (contents datum) (if (pair? datum) (cdr datum) (...
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/old_chp2/code/p119-attach-tag-and-type-tag-and-contents.scm
scheme
p119-attach-tag-and-type-tag-and-contents.scm
(define (attach-tag type-tag contents) (cons type-tag contents)) (define (type-tag datum) (if (pair? datum) (car datum) (error "Bad tagged datum -- TYPE-TAG" datum))) (define (contents datum) (if (pair? datum) (cdr datum) (error "Bad tagged datum -- CONTENTS" datum)))
b02f09a1a3f9a67bb44d2af1a1c5f6feb68386567130217c88ebc90480048b81
LexiFi/ocaml-vdom
counters.ml
This file is part of the ocaml - vdom package , released under the terms of an MIT - like license . (* See the attached LICENSE file. *) Copyright 2016 by LexiFi . Insp...
null
https://raw.githubusercontent.com/LexiFi/ocaml-vdom/9c5e42888ba72e69d5a018e38a4633e400913bfb/examples/counters/counters.ml
ocaml
See the attached LICENSE file.
This file is part of the ocaml - vdom package , released under the terms of an MIT - like license . Copyright 2016 by LexiFi . Inspired from open Vdom module IntMap = Map.Make(struct type t = int let compare : int -> int -> int = co...
f97561dc19803e67dacf007104fed06bf8f0274279bbecd842d2a94c9a25f899
rubenbarroso/EOPL
3-6-basis.scm
(let ((time-stamp "Time-stamp: <2001-05-10 16:13:11 dfried>")) (eopl:printf "3-6.scm - basis for interps with letrec ~a~%" (substring time-stamp 13 29))) ;;;;;;;;;;;;;;;; top level and tests ;;;;;;;;;;;;;;;; (define run (lambda (string) (eval-program (scan&parse string)))) (define run-all (lambda () ...
null
https://raw.githubusercontent.com/rubenbarroso/EOPL/f9b3c03c2fcbaddf64694ee3243d54be95bfe31d/src/interps/3-6-basis.scm
scheme
top level and tests ;;;;;;;;;;;;;;;; needed for testing grammatical specification ;;;;;;;;;;;;;;;; the interpreter ;;;;;;;;;;;;;;;; ^ exp x env -> expval & \new3 booleans ;;;;;;;;;;;;;;;; procedures ;;;;;;;;;;;;;;;; environments ;;;;;;;;;;;;;;;;
(let ((time-stamp "Time-stamp: <2001-05-10 16:13:11 dfried>")) (eopl:printf "3-6.scm - basis for interps with letrec ~a~%" (substring time-stamp 13 29))) (define run (lambda (string) (eval-program (scan&parse string)))) (define run-all (lambda () (run-experiment run use-execution-outcome '(l...
d24cc8bdeb29c6619eaac9decce6a4bc0d4b8ffbd6862742fd9291c9675578ec
andrejbauer/repl-in-browser
main.mli
(** Create a language from its definition. *) module Make : functor (L : Zoo.LANGUAGE) -> sig (** The main program *) val main : unit -> unit end
null
https://raw.githubusercontent.com/andrejbauer/repl-in-browser/71a38349d67e0c0017adac6f7cd93b8ffea81249/src/main.mli
ocaml
* Create a language from its definition. * The main program
module Make : functor (L : Zoo.LANGUAGE) -> sig val main : unit -> unit end
7f96a8c9991c41d8ca65458b5a00c1f1f82ec0113a8100bb93282d3c60bb3e8e
janestreet/merlin-jst
oprint.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/janestreet/merlin-jst/980b574405617fa0dfb0b79a84a66536b46cd71b/upstream/ocaml_flambda/typing/oprint.ml
ocaml
************************************************************************ OCaml ...
Projet Cristal , INRIA Rocquencourt Copyright 2002 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Format open Outcometree exception Ellipsis let cautious f ppf arg = try f ppf arg with...
0cb7cc0393e6aaf80f16d873ce0fd1401383fe60354b6efbbdc83a6fc1dd862e
ocsigen/js_of_ocaml
change_layout.ml
(* TEST *) * Test the various change_layout for Genarray and the various Array[n ] open Bigarray let pp_sep ppf () = Format.fprintf ppf ";@ " let print_array pp ppf a = Format.fprintf ppf "@[<hov>[|%a|]@]" Format.(pp_print_list ~pp_sep pp) (Array.to_list a) let print_index = print_array Format.pp_print_int l...
null
https://raw.githubusercontent.com/ocsigen/js_of_ocaml/58210fabc947c4839b6e71ffbbf353a4ede0dbb7/compiler/tests-ocaml/lib-bigarray/change_layout.ml
ocaml
TEST * Test for generic biggarray Vector Rank 3
* Test the various change_layout for Genarray and the various Array[n ] open Bigarray let pp_sep ppf () = Format.fprintf ppf ";@ " let print_array pp ppf a = Format.fprintf ppf "@[<hov>[|%a|]@]" Format.(pp_print_list ~pp_sep pp) (Array.to_list a) let print_index = print_array Format.pp_print_int let do_test ...
c29b286801be3dde3a44be9511b3c7a07a6ca2fa6c9532a1b271cbed2a44a536
agda/agda
Issue2217.hs
# LANGUAGE RecordWildCards # import RunAgda file = "Issue2217.agda" A command that is intended to make Agda loop . loop = command "give" file Nothing (Just "WithoutForce 0 noRange \"A\"") One variant of the abort command . abort = command "abort" file Nothing Nothing main :: IO () main = runAgda [] $ ...
null
https://raw.githubusercontent.com/agda/agda/f50c14d3a4e92ed695783e26dbe11ad1ad7b73f7/test/interaction/Issue2217.hs
haskell
Abort all currently running commands. There are none, so printed after an abort command. Load the code. Invoke a looping command. Abort all currently running commands. A prompt is printed after the looping command has been aborted. Load the file again. This and the following load commands should use the "decode...
# LANGUAGE RecordWildCards # import RunAgda file = "Issue2217.agda" A command that is intended to make Agda loop . loop = command "give" file Nothing (Just "WithoutForce 0 noRange \"A\"") One variant of the abort command . abort = command "abort" file Nothing Nothing main :: IO () main = runAgda [] $ ...
85662fcded88d8fd6e93d80916c798b9dd7dc441289b1174dc77089f2a09caaa
mbutterick/typesetting
pointer-test.rkt
#lang racket/base (require rackunit racket/dict racket/class "../base.rkt" "../pointer.rkt" "../number.rkt" "../dict.rkt" "../base.rkt" racket/promise sugar/unstable/dict) #| approximates |# (test-case "pointer: decode should handle nu...
null
https://raw.githubusercontent.com/mbutterick/typesetting/6f7a8bbc422a64d3a54cbbbd78801a01410f5c92/xenomorph/xenomorph/test/pointer-test.rkt
racket
approximates skipping 'should support offsets relative to a property on the parent'
#lang racket/base (require rackunit racket/dict racket/class "../base.rkt" "../pointer.rkt" "../number.rkt" "../dict.rkt" "../base.rkt" racket/promise sugar/unstable/dict) (test-case "pointer: decode should handle null pointers" (param...
4a9dac8e367c1647982f2dac1f04ae2abfb705a74d462541e63c2957384b222e
mmontone/cl-xul
dialogs.lisp
(in-package :xul-test) (define-component dialogs-showcase () () (:render (comp) (<:vbox (<:button (<:label= "Open dialog") (<:on-command= (with-open-dialog ("Dialog test" '(:modal "yes" :resizable "no")) (<:dialog (<:id= "mydialog") (<:title= "My d...
null
https://raw.githubusercontent.com/mmontone/cl-xul/049c8664bb58d177c71d93ac5b5e1a2ba9b9469b/test/showcase/dialogs.lisp
lisp
(in-package :xul-test) (define-component dialogs-showcase () () (:render (comp) (<:vbox (<:button (<:label= "Open dialog") (<:on-command= (with-open-dialog ("Dialog test" '(:modal "yes" :resizable "no")) (<:dialog (<:id= "mydialog") (<:title= "My d...
b69d495cb10f2380c3dacac36ceb5dc382650085190e2c9ccd57236aaecaff99
namin/propagators
premises.scm
;;; ---------------------------------------------------------------------- Copyright 2009 Massachusetts Institute of Technology . ;;; ---------------------------------------------------------------------- This file is part of Propagator Network Prototype . ;;; Propagator Network Prototype is free software ; you ...
null
https://raw.githubusercontent.com/namin/propagators/ae694dfe680125e53a3d49e5e91c378f2d333937/core/premises.scm
scheme
---------------------------------------------------------------------- ---------------------------------------------------------------------- you can redistribute it and/or modify it under the terms of the GNU any later version. will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of M...
Copyright 2009 Massachusetts Institute of Technology . This file is part of Propagator Network Prototype . General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) Propagator Network Prototype is distributed in the hope that it You should ...
d84a8212674ca11dfe2af159d028eb5f5a3e9edd2a3b0ac48a30f195c6b8411e
sylane/erod
erdom_document_group.erl
%%% ========================================================================== Copyright ( c ) 2014 < > %%% %%% This file is part of erdom. %%% Erdom is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , ei...
null
https://raw.githubusercontent.com/sylane/erod/b0c435f8546ea38b1501d3e22614fe7951c61c9a/apps/erdom/src/erdom_document_group.erl
erlang
========================================================================== This file is part of erdom. (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR P...
Copyright ( c ) 2014 < > Erdom 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 You should have received a copy of the GNU General Public License 2014 < > ...
15caa988c8d608e16510229b5402c3b755dbcfb1766b2d2892834bc75e38791f
japerk/elib
datetime.erl
` ` 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 Public License along with this software. If not, it can be %% retrieved via the world wide...
null
https://raw.githubusercontent.com/japerk/elib/40fc61f5503db3e823f61aada53d4f38d2405e7f/src/datetime.erl
erlang
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 via the world wide web at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations ...
` ` 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 " The Initial Developer of the Original Code is . Portions created by are Copyright 2009 , Mr...
b992537d20314a9d6622a76230f7c19de1b455c4df5471b1348bf8766f0fb6d1
8c6794b6/haskell-sc-scratch
Dup.hs
# LANGUAGE FlexibleContexts # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE TemplateHaskell # {-# LANGUAGE Rank2Types #-} | Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable Data type to duplicate expression . Module ...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/hsc3-lepton/src/lib/Sound/SC3/Lepton/Pattern/Old/Interpreter/Dup.hs
haskell
# LANGUAGE Rank2Types # fixing type. liftD :: (forall p. (p a -> p b)) -> Dup l1 r1 a -> Dup l1 r1 b liftD f (Dup a b) = Dup (f a) (f b) prandom = Dup prandom prandom instance (Pval a, Pval b) => Pval (Dup a b) where pval a = Dup (pval a) (pval a) prepeat a = Dup (prepeat a) (prepeat a) plist a = Dup (p...
# LANGUAGE FlexibleContexts # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE TemplateHaskell # | Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable Data type to duplicate expression . Module : $Header$ CopyRight ...
61b2d900b687f8e53f0de4801cdc942198fc520a96c342c7b4b108faa112fb19
coq/coq
wg_ScriptView.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/47ad43b361960f2bb9c5149cfb732cdf8b04e411/ide/coqide/wg_ScriptView.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
ddb15e3ab0e1f275b904bfe947912c97a52d167a9f4c91b5fb9a27d38d10b379
opencog/pln
sumo-test1-pm.scm
Execute step by step inference to prove that a SUMO Organization has at least one member . ;; ;; The reasoning goes as follows ;; 1 . An Organization is a Group , Org1 - 1 is an instance of an Organization , therefore it is an instance of a Group . ;; 2 . A Group is a Collection , from 1 . Org1 - 1 is an inst...
null
https://raw.githubusercontent.com/opencog/pln/ea6c9bbe47cb315aded20db0fa765c3a9de82461/examples/pln/sumo/sumo-test1-pm.scm
scheme
The reasoning goes as follows Warning: if each step takes too long start guile loading only Merge.scm instead all-sumo-labeled-kb.scm (don't forget to copy Merge.scm from`<EXTERNAL_TOOLS>/SUMO_importer/sumo/output` to the current directory). inheritance KB-16125, to obtain the target (TypedVariableLi...
Execute step by step inference to prove that a SUMO Organization has at least one member . 1 . An Organization is a Group , Org1 - 1 is an instance of an Organization , therefore it is an instance of a Group . 2 . A Group is a Collection , from 1 . Org1 - 1 is an instance of a Group , therefore it is an ins...
634b82fc8046a7b9c885aa1f1a68c1f0cd1d9dc064b7be248d34b1d28cd71c5e
dgiot/dgiot
dgiot_tdengine_select.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2021 DGIOT 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...
null
https://raw.githubusercontent.com/dgiot/dgiot/a6b816a094b1c9bd024ce40b8142375a0f0289d8/apps/dgiot_tdengine/src/utils/dgiot_tdengine_select.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 ) 2020 - 2021 DGIOT 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(dgiot_tdengine_select). -author("jonliu"). -include("dgiot_tdengine.hrl"). -include_li...
bc82ed1f268a25d778c9f4d32a461d354135428df6f92cf40e89c04d1690429e
SamB/coq
g_intsyntax.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/parsing/g_intsyntax.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i $Id$ i ** Constants for locating t...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * digit - based syntax for...
d4ccfc42837432ce4087385f4df67c27b45ea5a92cd69a68219e982cab67107b
polyfy/polylith
interface.clj
(ns polylith.clj.core.validator.interface (:require [polylith.clj.core.validator.core :as core] [polylith.clj.core.validator.datashape.dispatcher :as dispatch] [polylith.clj.core.validator.datashape.toolsdeps2 :as toolsdeps2] [polylith.clj.core.validator.message-printer :as message...
null
https://raw.githubusercontent.com/polyfy/polylith/f54afe3e4e38f41eae8c29d4fe65616eba79c7a6/components/validator/src/polylith/clj/core/validator/interface.clj
clojure
(ns polylith.clj.core.validator.interface (:require [polylith.clj.core.validator.core :as core] [polylith.clj.core.validator.datashape.dispatcher :as dispatch] [polylith.clj.core.validator.datashape.toolsdeps2 :as toolsdeps2] [polylith.clj.core.validator.message-printer :as message...
9af3e7cd5025085b1cf19d55947dbde754a6fbdae6b332be6b0f3f461f87dd96
roguh/CORE
Compiler.hs
# LANGUAGE NoImplicitPrelude , NoMonomorphismRestriction , OverloadedStrings # module Core.Compiler where import Data.Text import Data.Text.IO as TIO import Prelude hiding (readFile, appendFile, writeFile, putStrLn) import Control.Monad import Core.Types import Core.Parser import Core.PrettyPrint import Core.Util.He...
null
https://raw.githubusercontent.com/roguh/CORE/1c566ee637b662e7a7e9dea465f62d89eb121fb8/Core/Compiler.hs
haskell
The last state in the result of compiler is expected to hold the final output
# LANGUAGE NoImplicitPrelude , NoMonomorphismRestriction , OverloadedStrings # module Core.Compiler where import Data.Text import Data.Text.IO as TIO import Prelude hiding (readFile, appendFile, writeFile, putStrLn) import Control.Monad import Core.Types import Core.Parser import Core.PrettyPrint import Core.Util.He...
97c3d105f34123ba12690d040d94abefd849de7f73fdc642ac61f576595e68ea
jimcrayne/jhc
Recursive2.hs
a = b b = a main :: IO () main = return ()
null
https://raw.githubusercontent.com/jimcrayne/jhc/1ff035af3d697f9175f8761c8d08edbffde03b4e/regress/tests/0_parse/2_pass/Recursive2.hs
haskell
a = b b = a main :: IO () main = return ()
53b20c6eda9eb6a016651515a75489d20c8fb44b6e24a47a8352b13d81fe0079
VisionsGlobalEmpowerment/webchange
course_data.cljc
(ns webchange.utils.course-data (:require [webchange.utils.list :as l])) (def empty-level-data {:lessons []}) (def empty-lesson-data {:activities []}) (defn get-levels-data [course-data] (get course-data :levels [])) (defn get-level-data [course-data level-idx] (-> (get-levels-data course-data) (...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/2c730989b3ef3a4064faa544ef1ace52f40fa32a/src/cljc/webchange/utils/course_data.cljc
clojure
(ns webchange.utils.course-data (:require [webchange.utils.list :as l])) (def empty-level-data {:lessons []}) (def empty-lesson-data {:activities []}) (defn get-levels-data [course-data] (get course-data :levels [])) (defn get-level-data [course-data level-idx] (-> (get-levels-data course-data) (...
a1d76158a792f77831772386cef10ba54a622e88ac03532cfa314c34c23b9dbf
emqx/emqx
emqx_connector_jwt_sup.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2022 - 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/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_connector/src/emqx_connector_jwt_sup.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 ) 2022 - 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_connector_jwt_sup). -behaviour(supervisor). -include_lib("emqx_connector/include/...
f9e2b3a44153641408bdcd0a18f2c6e379dad7c206a8b6355b2d86c7d73a0d92
selwynsimsek/trial-vr
main.lisp
(defpackage trial-vr/tests/main (:use :cl :trial-vr :rove)) (in-package :trial-vr/tests/main) ;; NOTE: To run this test file, execute `(asdf:test-system :trial-vr)' in your Lisp. (deftest test-target-1 (testing "should (= 1 1) to be true" (ok (= 1 1))))
null
https://raw.githubusercontent.com/selwynsimsek/trial-vr/1c3e862f087bdcea215e9f53f26ae7f78232cacb/tests/main.lisp
lisp
NOTE: To run this test file, execute `(asdf:test-system :trial-vr)' in your Lisp.
(defpackage trial-vr/tests/main (:use :cl :trial-vr :rove)) (in-package :trial-vr/tests/main) (deftest test-target-1 (testing "should (= 1 1) to be true" (ok (= 1 1))))
23b07558bf3ae117fc2e4d08146ddc4f062c8f0801744b3652305d6eff42c93e
dyzsr/ocaml-selectml
t110-mulint.ml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; if 2 * 2 <> 4 then raise Not_found;; * 0 CONSTINT 42 ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/tool-ocaml/t110-mulint.ml
ocaml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; if 2 * 2 <> 4 then raise Not_found;; * 0 CONSTINT 42 ...
c92c59d6eb4507327fa49db7ae020a4ab4ae2f14c3796dc69a7c5fdfc2528378
zotonic/zotonic
action_mailinglist_mailinglist_confirm.erl
@author < > 2009 Date : 2009 - 11 - 29 %% @doc Confirm a mailing list subscription. Copyright 2009 %% 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 %% ...
null
https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_mod_mailinglist/src/actions/action_mailinglist_mailinglist_confirm.erl
erlang
@doc Confirm a mailing list subscription. 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 Licen...
@author < > 2009 Date : 2009 - 11 - 29 Copyright 2009 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(action_mailinglist_mailinglist_confirm). -author("Marc Worrell <"). -export([ render_action/...
17fc38e21e9b569810e10dde599878ad425c4efc819cd4da8d20a6afb5114008
jabber-at/ejabberd
mod_muc_mnesia.erl
%%%------------------------------------------------------------------- %%% File : mod_muc_mnesia.erl Author : < > Created : 13 Apr 2016 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2018 ProcessOne %%% %%% This program is free software; you can redistribute it and/or modify it under the terms o...
null
https://raw.githubusercontent.com/jabber-at/ejabberd/7bfec36856eaa4df21b26e879d3ba90285bad1aa/src/mod_muc_mnesia.erl
erlang
------------------------------------------------------------------- File : mod_muc_mnesia.erl This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even t...
Author : < > Created : 13 Apr 2016 by < > ejabberd , Copyright ( C ) 2002 - 2018 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License along ...
e1b71c89aa343dc0fe6dd70e4a4ef5a576bfbb362ee49d124ec8bddef0e47341
umutgokbayrak/ozlusozler
categories.clj
(ns ozlusozler.services.categories (:require [ozlusozler.db.schema :refer :all] [ozlusozler.util :as util] [yesql.core :refer [defqueries]])) (defqueries "sql/categories.sql") (def all-quote-categories (get-all-quote-categories db-spec)) (defn id-by-name [category] (let [id (:id (first (...
null
https://raw.githubusercontent.com/umutgokbayrak/ozlusozler/9c2a20aaf0b66ec033efae20c35ba620b4dde9c4/src/ozlusozler/services/categories.clj
clojure
(ns ozlusozler.services.categories (:require [ozlusozler.db.schema :refer :all] [ozlusozler.util :as util] [yesql.core :refer [defqueries]])) (defqueries "sql/categories.sql") (def all-quote-categories (get-all-quote-categories db-spec)) (defn id-by-name [category] (let [id (:id (first (...
8d984f0d3c1905848fb5fb1cf5400b4f321f5aa6c922ef9749cb4fbb9ce8b202
webyrd/miniKanren-uncourse
symbolo-tests.scm
(load "mk.scm") (test "symbolo-1" (run* (q) (symbolo q)) '((_.0 (sym _.0)))) (test "symbolo-2" (run* (q) (symbolo q) (== 'x q)) '(x)) (test "symbolo-3" (run* (q) (== 'x q) (symbolo q)) '(x)) (test "symbolo-4" (run* (q) (== 5 q) (symbolo q)) '()) (test "symbolo-5" (run* (q) (symbolo q) (== 5 q)) ...
null
https://raw.githubusercontent.com/webyrd/miniKanren-uncourse/19bc2903266197d6ba6c6b818e0a196ea620377b/mk-implementations/scheme/symbolo-tests.scm
scheme
(load "mk.scm") (test "symbolo-1" (run* (q) (symbolo q)) '((_.0 (sym _.0)))) (test "symbolo-2" (run* (q) (symbolo q) (== 'x q)) '(x)) (test "symbolo-3" (run* (q) (== 'x q) (symbolo q)) '(x)) (test "symbolo-4" (run* (q) (== 5 q) (symbolo q)) '()) (test "symbolo-5" (run* (q) (symbolo q) (== 5 q)) ...
2bb1b7ec658fda2d3f806590cb9758194ac2b366ba1ecc0762f50c0553bca2f0
anjensan/azql
connection_test.clj
(ns azql.connection-test (:use azql.connection) (:use clojure.test) (:require [clojure.java.jdbc :as jdbc]) (:use azql.test-database)) (comment use-fixtures :each #(try (%) (finally (close-global-connection)))) (comment deftest test-global-connection (open-global-connection database-connection) (is (not (...
null
https://raw.githubusercontent.com/anjensan/azql/026ed6da36a41478b54dc7761747ea84e6083edf/test/azql/connection_test.clj
clojure
(ns azql.connection-test (:use azql.connection) (:use clojure.test) (:require [clojure.java.jdbc :as jdbc]) (:use azql.test-database)) (comment use-fixtures :each #(try (%) (finally (close-global-connection)))) (comment deftest test-global-connection (open-global-connection database-connection) (is (not (...
2ee09e91bc7c6888b0adb7251c3f346b8fe96b8340a91543e36552e08c4894ad
clj-easy/graal-build-time
build_shared.clj
(ns build-shared (:require [clojure.string :as str])) (def version-file "resources/clj-easy/graal-build-time-version.txt") (def version nil) (defn refresh-version [] (alter-var-root #'version (constantly (str/trim (slurp version-file))))) (refresh-version) (def target "target") (def lib 'com.github.clj-easy/graal...
null
https://raw.githubusercontent.com/clj-easy/graal-build-time/48d9d6b2dad9b5c4ba97b59ca4de7f178ce15245/build_shared.clj
clojure
(ns build-shared (:require [clojure.string :as str])) (def version-file "resources/clj-easy/graal-build-time-version.txt") (def version nil) (defn refresh-version [] (alter-var-root #'version (constantly (str/trim (slurp version-file))))) (refresh-version) (def target "target") (def lib 'com.github.clj-easy/graal...
002d6faf6dc1209983a1d4f474328efddfdf48e0c6965a6924510512eb4685f4
sthilaid/space-invaders
opengl-header.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; filename : opengl-header.scm ;; ;; description: Constant and type declarations for opengl.scm ;; author : ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (c-declare "#include <gl.h>") (c-defin...
null
https://raw.githubusercontent.com/sthilaid/space-invaders/42baab45e3f477c630f782cd93d2d1f0b3f00bf6/opengl-header.scm
scheme
description: Constant and type declarations for opengl.scm /* Boolean values* / /* Data types* / /* Primitives* / /* Arrays* / /* Matrix Mode* / /* Points* / /* Lines* / /* Polygons* / /* Display Lists* / /* Depth buffer* / /* Lighting* / /* User clipping planes* / /* Accumulation buffer* / /* Alph...
filename : opengl-header.scm author : (c-declare "#include <gl.h>") (c-define-type GLenum unsigned-int) (c-define-type GLboolean unsigned-char) (c-define-type GLbitfield unsigned-int) (c-define-type GLvoid void) (c-define-type GLbyte signed-char) (c-define-type GLshort short) (c-define-type GLint int) (c-defi...
91eddf97ce9d5bd12b972c0af2e113de1417316c31656df9741c3f21d5690d3f
generateme/metadoc
examples.clj
(ns metadoc.examples "Attach unit examples to your vars. Unit examples are small executable code snippets, images, urls or any data which can illustrate usage of your functions. Term \"unit\" means that example should be connected directly to given function. ### Usage There are several types of e...
null
https://raw.githubusercontent.com/generateme/metadoc/9feb083b828e0d4283c42a71da31d1189304a929/src/metadoc/examples.clj
clojure
examples format result, double dispatch
(ns metadoc.examples "Attach unit examples to your vars. Unit examples are small executable code snippets, images, urls or any data which can illustrate usage of your functions. Term \"unit\" means that example should be connected directly to given function. ### Usage There are several types of e...
1ea203ac0396e3d778c300d074d2bedd0a29ab20168f67e25ef54837d7bdb3d5
hikettei/cl-waffe
shaping.lisp
(in-package :cl-waffe) (defnode ReshapeTensor (shape) :optimize t :parameters ((prev-shape T) (shape shape)) :forward ((x) (setf (self prev-shape) (!shape x)) (with-searching-calc-node :reshape x (self shape))) :backward ((dy) (list (!reshape dy (self prev-shape))))) (defun !reshape (x dim) "Return...
null
https://raw.githubusercontent.com/hikettei/cl-waffe/c52a840f77c236e30f84b8785d7121d6e752f0ad/source/shaping.lisp
lisp
... ... ... ... ... (error "!expands: ~a and ~a aren't compatiable. Their dims and length must be the same" tensor expand-times)) ... ... #Const((((0.685...) ......
(in-package :cl-waffe) (defnode ReshapeTensor (shape) :optimize t :parameters ((prev-shape T) (shape shape)) :forward ((x) (setf (self prev-shape) (!shape x)) (with-searching-calc-node :reshape x (self shape))) :backward ((dy) (list (!reshape dy (self prev-shape))))) (defun !reshape (x dim) "Return...
79ef013224b2c5a5fa8f505ae610025c56484c86231cc89d70c9d89f53f5b204
racket/racket7
box.rkt
#lang racket/base (require "error.rkt" "wrap.rkt" "config.rkt" "parameter.rkt") (provide read-box) (define (read-box read-one dispatch-c in config) (unless (check-parameter read-accept-box config) (reader-error in config "`~a&` forms not enabled" di...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/read/box.rkt
racket
#lang racket/base (require "error.rkt" "wrap.rkt" "config.rkt" "parameter.rkt") (provide read-box) (define (read-box read-one dispatch-c in config) (unless (check-parameter read-accept-box config) (reader-error in config "`~a&` forms not enabled" di...