_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
9052680f5357b5a4b52d5761dba8b927f57dea4d043065312021964b6b84a1b6
gstew5/snarkl
Errors.hs
# LANGUAGE GeneralizedNewtypeDeriving , DeriveDataTypeable # , DeriveDataTypeable #-} module Errors where import Data.Typeable import Control.Exception newtype ErrMsg = ErrMsg { errMsg :: String } deriving (Typeable) instance Show ErrMsg where show (ErrMsg msg) = msg insta...
null
https://raw.githubusercontent.com/gstew5/snarkl/d6ce72b13e370d2965bb226f28a1135269e7c198/src/Errors.hs
haskell
# LANGUAGE GeneralizedNewtypeDeriving , DeriveDataTypeable # , DeriveDataTypeable #-} module Errors where import Data.Typeable import Control.Exception newtype ErrMsg = ErrMsg { errMsg :: String } deriving (Typeable) instance Show ErrMsg where show (ErrMsg msg) = msg insta...
ef41970046e3bee8aae8c170c793a8d102281c7bd0df5f06aa2a64de131b34cd
racket/typed-racket
submodule-list-0.rkt
#lang typed/racket/base/optional ;; Test importing a list (module u racket/base (define x* (list 1)) (provide x*)) (require/typed 'u (x* (Listof Integer))) (+ (car x*) 1)
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/succeed/optional/submodule-list-0.rkt
racket
Test importing a list
#lang typed/racket/base/optional (module u racket/base (define x* (list 1)) (provide x*)) (require/typed 'u (x* (Listof Integer))) (+ (car x*) 1)
ffb75198a7c4866007e838b5aac13e974ad07b1c612a34f1d9486014af5f2394
ruricolist/FXML
parse.lisp
(in-package #:fxml.html5) (defun parse (input handler &key fragment (encoding :utf-8)) (let ((dom (if fragment (html5-parser:parse-html5-fragment input :encoding encoding) (html5-parser:parse-html5 input :encoding encoding)))) (serialize-dom dom handler)))
null
https://raw.githubusercontent.com/ruricolist/FXML/a0e73bb48ef03adea94a55986cc27f522074c8e1/html5/parse.lisp
lisp
(in-package #:fxml.html5) (defun parse (input handler &key fragment (encoding :utf-8)) (let ((dom (if fragment (html5-parser:parse-html5-fragment input :encoding encoding) (html5-parser:parse-html5 input :encoding encoding)))) (serialize-dom dom handler)))
fbccc06fd943d39e9a3f82d265d9040960bcb77d7a978d840a9c1814fae220d9
divipp/lensref
SevenGUIs.hs
{-# LANGUAGE RankNTypes #-} # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE NoMonomorphismRestriction # modul...
null
https://raw.githubusercontent.com/divipp/lensref/2f0b9a36ac8853780e2b09ad0769464dd3837dab/src/LensRef/Demo/SevenGUIs.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # ---------------------------------------------------------------------------- 7guis # 1 model view ---------------------------------------------------------------------------- 7guis # 1 version 2 --------------------------------------------------------------------...
# LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE NoMonomorphismRestriction # module LensRef.Demo.SevenGUIs where import Numeric (showFFloat) imp...
17aa1ed735c5aa79219a9bbaadd42398a7f3443ffe0fb6904636801282aa73f8
AdaCore/why3
ast.ml
(** {1 Abstract syntax trees} *) (* open Why3 *) (* to comment out when inside Why3 *) type var_type = | Tint | Tbool type label = Here | Old type expression = | Evar of Abstract.why_var * label | Ecst of string | Eadd of expression * expression | Esub of expression * expression | ...
null
https://raw.githubusercontent.com/AdaCore/why3/be1023970d48869285e68f12d32858c3383958e0/src/bddinfer/ast.ml
ocaml
* {1 Abstract syntax trees} open Why3 to comment out when inside Why3 * {2 Statements} * functions defined with a body and possibly a returned expression * functions declared with a contract: a writes clause, an optional result variable, and a post-condition * function declarations.
type var_type = | Tint | Tbool type label = Here | Old type expression = | Evar of Abstract.why_var * label | Ecst of string | Eadd of expression * expression | Esub of expression * expression | Emul of expression * expression | Ediv of expression * expression | Emod of expressio...
cb55180de2329e71a34e96769e65735c92835037e7fde05aa26b165bb525b516
tweag/ormolu
strictness-out.hs
data Foo a where Foo1 :: !Int -> {-# UNPACK #-} !Bool -> Foo Int Foo2 :: {-# UNPACK #-} Maybe Int && Bool -> Foo Int
null
https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/data/gadt/strictness-out.hs
haskell
# UNPACK # # UNPACK #
data Foo a where
780bbef44f88b87da6014125639e45d3562d305f8abd1d1bd17f5e2a49939e20
SimulaVR/godot-haskell
ImmediateGeometry.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.ImmediateGeometry (Godot.Core.ImmediateGeometry.add_...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/ImmediateGeometry.hs
haskell
| Simple helper to draw an UV sphere with given latitude, longitude and radius. | Simple helper to draw an UV sphere with given latitude, longitude and radius. | Adds a vertex in local coordinate space with the currently set color/uv/etc. | Adds a vertex in local coordinate space with the currently set color/uv/etc...
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.ImmediateGeometry (Godot.Core.ImmediateGeometry.add_...
4c438279d52853f0aacfc9f181909fd46201d4b1a753ccaa299c2de6e628b97d
multimodalrouting/osm-fulcro
geofeatures.cljc
(ns app.model.geofeatures (:require [com.fulcrologic.fulcro.components :refer [defsc get-query]])) (defsc GeoFeature [this {::keys [id] :as props}] {:ident (fn [] [::id id]) :query [::id ::source ::geojson]}) (defsc GeoFeaturesAll [this props] {:ident ::all :query [{::a...
null
https://raw.githubusercontent.com/multimodalrouting/osm-fulcro/dedbf40686a18238349603021687694e5a4c31b6/src/main/app/model/geofeatures.cljc
clojure
(ns app.model.geofeatures (:require [com.fulcrologic.fulcro.components :refer [defsc get-query]])) (defsc GeoFeature [this {::keys [id] :as props}] {:ident (fn [] [::id id]) :query [::id ::source ::geojson]}) (defsc GeoFeaturesAll [this props] {:ident ::all :query [{::a...
e4eebcc8e5529c6c210e7c6183e247835a507424e465461e187b85f9b24a013a
jship/opentelemetry-haskell
Errors.hs
# LANGUAGE DuplicateRecordFields # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DerivingStrategies # {-# LANGUAGE StrictData #-} module OTel.API.Trace.Core.TraceState.Errors ( TraceStateErrors(..) , TraceStateError(..) , TraceStateSimpleKeyIsEmptyError(..) , TraceStateSimpleKeyContainsInvalidCharsError(..) , Tr...
null
https://raw.githubusercontent.com/jship/opentelemetry-haskell/468b7df49226bb6a478180300dab8d1a214c213f/otel-api-trace-core/library/OTel/API/Trace/Core/TraceState/Errors.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE StrictData #
# LANGUAGE DuplicateRecordFields # # LANGUAGE DerivingStrategies # module OTel.API.Trace.Core.TraceState.Errors ( TraceStateErrors(..) , TraceStateError(..) , TraceStateSimpleKeyIsEmptyError(..) , TraceStateSimpleKeyContainsInvalidCharsError(..) , TraceStateTenantIdIsEmptyError(..) , TraceStateTenantIdConta...
fa3dff4aa3c09be05517605617b065688396508eb6c2496ce2ce4163d08a86bb
digitallyinduced/ihp-forum
Show.hs
module Web.View.Threads.Show where import Web.View.Prelude import Application.Helper.View (badgeMap) data ShowView = ShowView { thread :: Include "userId" Thread , comments :: [Include "userId" Comment] , badges :: [Include "userId" UserBadge] } instance View ShowView where beforeRender ShowView {...
null
https://raw.githubusercontent.com/digitallyinduced/ihp-forum/d71975ffd0439d27a69acb184431fb1b48796b15/Web/View/Threads/Show.hs
haskell
module Web.View.Threads.Show where import Web.View.Prelude import Application.Helper.View (badgeMap) data ShowView = ShowView { thread :: Include "userId" Thread , comments :: [Include "userId" Comment] , badges :: [Include "userId" UserBadge] } instance View ShowView where beforeRender ShowView {...
dd569502c544dc6f58bbc330ead45cd26ea3e8c13f8254e635e1808a5a827f27
input-output-hk/plutus-apps
Escrow5.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE StandaloneDeriving # {-# LANGUAGE TemplateHaskell #-} # LANGUAGE TupleSections # # LANGUAGE TypeApplications # {-# LANGUAGE TypeFamilies #-} # OPTIONS_GH...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/362e824c83b77df23805f1e718ea0893f5fcae56/plutus-use-cases/test/Spec/Tutorial/Escrow5.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE GADTs # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # This module contains a contract model for positive testing of the Dynamic Contract Instances" section of the tutorial. waitUntilDeadline
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # # LANGUAGE StandaloneDeriving # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # OPTIONS_GHC -fno - warn - name - shadowing # simplified escrow contract in . Contracts . Tutorial . Escrow , with generated escrow targets . See t...
37d439e0d8e7df86e6d8270f17fe3f18f829d8dbb619961572c1f8bd3553296e
schibsted/spid-tech-docs
content_shells.clj
(ns spid-docs.cultivate.content-shells) (defn http-method [& [m]] (merge {:name "!" :optional [] :required [] :responses [{:status 200 :description "!" :type "!"}] :filters [] :defaultFilters [] :accessTokenTypes []} m)) (defn endpoint [& [m]] (merge...
null
https://raw.githubusercontent.com/schibsted/spid-tech-docs/ee6a4394e9732572e97fc3a55506b2d6b9a9fe2b/test/spid_docs/cultivate/content_shells.clj
clojure
(ns spid-docs.cultivate.content-shells) (defn http-method [& [m]] (merge {:name "!" :optional [] :required [] :responses [{:status 200 :description "!" :type "!"}] :filters [] :defaultFilters [] :accessTokenTypes []} m)) (defn endpoint [& [m]] (merge...
39230653846ee178fa1d6a38ba792e01d730b1bacb5db7600736138a6b7769e1
josephwilk/musical-creativity
recombinance.clj
(ns musical-creativity.composers.recombinance (:require [clojure.math.numeric-tower :as math] [data.bach :as bach] [musical-creativity.util :refer :all] [musical-creativity.events :refer [pitch-of velocity-of timepoint-of channel-of midi-to-event]] [clojure.string :as s...
null
https://raw.githubusercontent.com/josephwilk/musical-creativity/c2e6aab2a26d69ee2e51f4fad84fa3a71805e6ca/src/musical_creativity/composers/recombinance.clj
clojure
(ns musical-creativity.composers.recombinance (:require [clojure.math.numeric-tower :as math] [data.bach :as bach] [musical-creativity.util :refer :all] [musical-creativity.events :refer [pitch-of velocity-of timepoint-of channel-of midi-to-event]] [clojure.string :as s...
87c517502f2483c081419df5e3b6a270ea05484b8aa0248bd13fab69a4d11056
laosb/SvelteNova
highlights.scm
; This query file is adopted from -sitter-svelte/blob/master/queries/highlights.scm. Nova 's highlight captures are different from the original one . ( ( element ( start_tag ( tag_name ) @_tag ) ( text ) @text.title ) ( # match ? @_tag " ^(h[0 - 9]|title)$ " ) ) ; ( ( element ( start_tag ( tag_name ) @_tag ) ...
null
https://raw.githubusercontent.com/laosb/SvelteNova/7c813791aaed07396e6bd3dc7574b259b5b32036/SvelteNova.novaextension/Queries/highlights.scm
scheme
This query file is adopted from -sitter-svelte/blob/master/queries/highlights.scm.
Nova 's highlight captures are different from the original one . ( ( element ( start_tag ( tag_name ) @_tag ) ( text ) @text.title ) ( # match ? @_tag " ^(h[0 - 9]|title)$ " ) ) ( ( element ( start_tag ( tag_name ) @_tag ) ( text ) @text.strong ) ( # match ? @_tag " ^(strong|b)$ " ) ) ( ( element ( start...
dc51f3f6785c9e8b0bd4edc02ec137e11b15828e28d522fb66a5caa61b6f4b32
atgreen/red-light-green-light
db-sqlite.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : RLGL.DB ; Base : 10 -*- ;;; Copyright ( C ) 2018 , 2019 , 2020 , 2021 , 2022 < > ;;; ;;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Fo...
null
https://raw.githubusercontent.com/atgreen/red-light-green-light/b7677851364b5fb87774b8674596a38c6c01a9d7/db/db-sqlite.lisp
lisp
Syntax : COMMON - LISP ; Package : RLGL.DB ; Base : 10 -*- This program is free software: you can redistribute it and/or 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 PURPOSE. See the GN...
Copyright ( C ) 2018 , 2019 , 2020 , 2021 , 2022 < > modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Affero General Publ...
6281229a720054754aa9ddcfa5ae45dc5252278a6ea42fff4595cec9c6ea622e
SKA-ScienceDataProcessor/RC
test.hs
{-# LANGUAGE GADTs #-} import DNA.Actor import DNA.AST import DNA import DNA.Compiler.CH ---------------------------------------------------------------- -- Print actor ---------------------------------------------------------------- exprPrint :: Expr () (() -> Int -> ((),Out)) exprPrint = Lam $ Lam $ Tup ( Scalar ()...
null
https://raw.githubusercontent.com/SKA-ScienceDataProcessor/RC/1b5e25baf9204a9f7ef40ed8ee94a86cc6c674af/MS1/dna-examples/test.hs
haskell
# LANGUAGE GADTs # -------------------------------------------------------------- Print actor -------------------------------------------------------------- -------------------------------------------------------------- Source actor --------------------------------------------------------------
import DNA.Actor import DNA.AST import DNA import DNA.Compiler.CH exprPrint :: Expr () (() -> Int -> ((),Out)) exprPrint = Lam $ Lam $ Tup ( Scalar () `Cons` Out [PrintInt $ Var ZeroIdx] `Cons` Nil) actorPrint :: Actor () actorPrint = actor $ do rule $ exprPrint star...
8bb2dd62edb79aace5020e1246002567f236e9eaad5ce520adc2924209258c90
tiagodalloca/city-weather-clj
config.clj
(ns city-weather-clj.system.config (:require [city-weather-clj.http.server :as http-server] [city-weather-clj.http.handler :as http-handler] [city-weather-clj.api-client.open-weather :refer [make-open-weather-client]] [city-weather-clj.cache :refer [make-weather-cache]] ...
null
https://raw.githubusercontent.com/tiagodalloca/city-weather-clj/606745f64a1b58366b04060248afa4b15d99b6d7/src/city_weather_clj/system/config.clj
clojure
(ns city-weather-clj.system.config (:require [city-weather-clj.http.server :as http-server] [city-weather-clj.http.handler :as http-handler] [city-weather-clj.api-client.open-weather :refer [make-open-weather-client]] [city-weather-clj.cache :refer [make-weather-cache]] ...
daacab98b3387a50230e3da625e4177edeccbae04503e75617c814073c62941f
sacerdot/CovidMonitoring
ospedale.erl
%%%------------------------------------------------------------------- @author ( C ) 2020 , < COMPANY > %%% @doc %%% %%% @end Created : 01 . May 2020 11:11 %%%------------------------------------------------------------------- -module(ospedale). -author("Federico Bertani"). %% API -export([start/0, hospital_lo...
null
https://raw.githubusercontent.com/sacerdot/CovidMonitoring/fe969cd51869bbe6479da509c9a6ab21d43e6d11/BertaniSignatiStacchio/ospedale.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API an user wants to be tested to be positive
@author ( C ) 2020 , < COMPANY > Created : 01 . May 2020 11:11 -module(ospedale). -author("Federico Bertani"). -export([start/0, hospital_loop/0]). hospital_loop()-> receive {test_me, PID} -> io:format("USER ~p WANTS TO BE TESTED ~n",[PID]), case (rand:uniform(4)=<1) of true -> ...
e1fb54c6bbb2b73851b73de36d3644d6ed799b763389b191b3a24cb646ab0b70
facebookarchive/lex-pass
Lex.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # module Lang.Php.Ast.Lex where import qualified Data.Set as Set import Text.PrettyPrint.GenericPretty import Lang.Php.Ast.Common data StrLit = StrLit String deriving (Data, Eq, Generic, Show, Typeable) instance Parse StrLit where parse = StrLit <$> ...
null
https://raw.githubusercontent.com/facebookarchive/lex-pass/dcfa9560a95f2c1344e15493dabcc1645b1ca5e8/src/Lang/Php/Ast/Lex.hs
haskell
# LANGUAGE DeriveDataTypeable # "{$a["{$a}"]}" e.g. is a legal single string literal in php.. could be tighter must be given lowercase must be given lowercase idk why but we need an explicit specialized type instead of using (string) directly ugly, redo this.. maybe have a minimal lexer stage after all? no tokO...
# LANGUAGE DeriveGeneric # module Lang.Php.Ast.Lex where import qualified Data.Set as Set import Text.PrettyPrint.GenericPretty import Lang.Php.Ast.Common data StrLit = StrLit String deriving (Data, Eq, Generic, Show, Typeable) instance Parse StrLit where parse = StrLit <$> ( liftM2 (:) (char '"') (strLitR...
b34b5d51dffc7586cdb8d23e7e7effd6623b15563b277b3b9eaca8cbcadf1a0c
nberger/ring-logger
project.clj
(defproject ring-logger "1.1.1" :description "Log ring requests & responses using your favorite logging backend." :url "-logger" :license {:name "Eclipse Public License" :url "-v10.html"} :deploy-repositories [["releases" :clojars]] :dependencies [[org.clojure/clojure "1.7.0"] [or...
null
https://raw.githubusercontent.com/nberger/ring-logger/193f993ce838c4d9b29eb827c038e02489aee12f/project.clj
clojure
(defproject ring-logger "1.1.1" :description "Log ring requests & responses using your favorite logging backend." :url "-logger" :license {:name "Eclipse Public License" :url "-v10.html"} :deploy-repositories [["releases" :clojars]] :dependencies [[org.clojure/clojure "1.7.0"] [or...
f558f6c30fa2b922a2d398b5099eed937a5bee40be5cbf0ed1c367d5f621d0af
SNePS/SNePS2
contrad.lisp
-*- Mode : Lisp ; Syntax : Common - Lisp ; Package : SNEBR ; Base : 10 -*- Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : contrad.lisp , v 1.2 2013/08/28 19:07:24 shapiro Exp $ ;; This file is part of SNePS. $ BEGIN LICENSE$ The contents of this file ...
null
https://raw.githubusercontent.com/SNePS/SNePS2/d3862108609b1879f2c546112072ad4caefc050d/snebr/contrad.lisp
lisp
Syntax : Common - Lisp ; Package : SNEBR ; Base : 10 -*- This file is part of SNePS. you may not use this file except in compliance with the License. You may obtain a copy of the License at . edu/sneps/Downloads/ubpl.pdf. or implied. See the License for the specific language gov erning rights and limitations...
Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : contrad.lisp , v 1.2 2013/08/28 19:07:24 shapiro Exp $ $ BEGIN LICENSE$ The contents of this file are subject to the University at Software distributed under the License is distributed on an " AS IS " b...
7ab724d49437729f9067c9f40b3983859a0ce022e21abdff75403df96abe9dab
trentmaetzold/cs61as
grader.rkt
#lang racket (require racket/sandbox) (provide main) (define-namespace-anchor a) (define (get-evaluator submission-file) (define e (make-module-evaluator `(module m racket (require (planet dyoo/simply-scheme)) (require rackunit rackunit/text-ui) (require (file ,submission-file))) ...
null
https://raw.githubusercontent.com/trentmaetzold/cs61as/6e4830786e2c28a26203a4f2046776405af2c10e/homework/grader.rkt
racket
TODO: This is horrendous, why does rackunit need to see if files exist
#lang racket (require racket/sandbox) (provide main) (define-namespace-anchor a) (define (get-evaluator submission-file) (define e (make-module-evaluator `(module m racket (require (planet dyoo/simply-scheme)) (require rackunit rackunit/text-ui) (require (file ,submission-file))) ...
45443cbd842668b82388d0a7cf51d2a2c6a62a02aaea86ea7467f284b94406ed
haskell/hoopl
OptSupport.hs
# LANGUAGE CPP , GADTs , RankNTypes # # OPTIONS_GHC -Wall -fno - warn - name - shadowing # module OptSupport (mapVE, mapEE, mapEN, mapVN, fold_EE, fold_EN, insnToG) where import Control.Monad import Data.Maybe import Prelude hiding (succ) import Control.Applicative as AP (Applicative(..)) import Compiler.Hoopl hiding...
null
https://raw.githubusercontent.com/haskell/hoopl/89dde6af5b2fadfad726412c00a1ab01d34fd2a0/testing/OptSupport.hs
haskell
-------------------------------------------- Map/Fold functions for expressions/insns -------------------------------------------- -------------------------------------------- --------------------------------------------
# LANGUAGE CPP , GADTs , RankNTypes # # OPTIONS_GHC -Wall -fno - warn - name - shadowing # module OptSupport (mapVE, mapEE, mapEN, mapVN, fold_EE, fold_EN, insnToG) where import Control.Monad import Data.Maybe import Prelude hiding (succ) import Control.Applicative as AP (Applicative(..)) import Compiler.Hoopl hiding...
217cfd90c8cd204aa2f2c9de5598b813d1ab253b20dc3f86440159010b21e303
tweag/funflow
Util.hs
# LANGUAGE OverloadedLists # {-# LANGUAGE OverloadedStrings #-} | ' Util ' contains various utility functions used throughout . API.Client 's internals . module Docker.API.Client.Internal.Util where import Control.Monad.IO.Class (MonadIO) import Data.Binary.Get (getWord32be, getWord8, runGet) import qualified Data...
null
https://raw.githubusercontent.com/tweag/funflow/e273cfa83a45eaa640305e1cfb51fc707ab4b8bf/docker-client/src/Docker/API/Client/Internal/Util.hs
haskell
# LANGUAGE OverloadedStrings # | Conduit helper which checks the length of the input bytestring and reads data from upstream and returns the corresponding stream type. See /#operation/ContainerAttach This whole thing could be recursive This ensures that we have at least as much data as our section (could be more) ...
# LANGUAGE OverloadedLists # | ' Util ' contains various utility functions used throughout . API.Client 's internals . module Docker.API.Client.Internal.Util where import Control.Monad.IO.Class (MonadIO) import Data.Binary.Get (getWord32be, getWord8, runGet) import qualified Data.ByteString.Char8 as B import quali...
eb142bfa215a901839eab462ba5ca5a3c0898a78b85e1d69933cc1488d2bb2e5
hyperfiddle/electric
datasync1.cljc
(ns dustin.datasync1 (:require [hyperfiddle.api :as hf] [hyperfiddle.incremental :refer [fmapI capI bindI]] [minitest :refer [tests]] [missionary.core :as m] [datascript.core :as d] [dustin.fiddle :as f] [dustin.compiler2 :refer [dataflow log! source-map replay!]])) (declare something-els...
null
https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/scratch/dustin/y2021/datasync1.cljc
clojure
communicate info about what happens at arbitrary points of ast ; CLIENT ;; bind set by client SERVER ;; (def !route (atom nil)) (def >route (m/watch !route)) (fmap render …) and >route passive set by client
(ns dustin.datasync1 (:require [hyperfiddle.api :as hf] [hyperfiddle.incremental :refer [fmapI capI bindI]] [minitest :refer [tests]] [missionary.core :as m] [datascript.core :as d] [dustin.fiddle :as f] [dustin.compiler2 :refer [dataflow log! source-map replay!]])) (declare something-els...
58c01ae606c602b5c48687f763defa1e0605d0296bf3026a283d3a8e631080ad
kazu-yamamoto/llrbtree
Heap.hs
# LANGUAGE CPP , TemplateHaskell # module Main where import qualified Data.List as L #if METHOD == 1 import Data.Heap.Splay #elif METHOD == 2 import Data.Heap.Skew #elif METHOD == 3 import Data.Heap.Binominal #elif METHOD == 4 import Data.Heap.Leftist #else import Data.Heap.Splay #endif import Test.Framework.TH.Pr...
null
https://raw.githubusercontent.com/kazu-yamamoto/llrbtree/36f259e36c2b320aa37bbbae9577e01fd8a27118/test/Heap.hs
haskell
# LANGUAGE CPP , TemplateHaskell # module Main where import qualified Data.List as L #if METHOD == 1 import Data.Heap.Splay #elif METHOD == 2 import Data.Heap.Skew #elif METHOD == 3 import Data.Heap.Binominal #elif METHOD == 4 import Data.Heap.Leftist #else import Data.Heap.Splay #endif import Test.Framework.TH.Pr...
0ce4ff47aa87c8cd3b1dce14c98ab6ec14fb284fafb857d6624251d1eef69a21
barrel-db/barrel
create_delete_database_eqc.erl
@author < > ( C ) 2017 , %%% @doc %%% %%% @end Created : 19 Jul 2017 by < > -module(create_delete_database_eqc). -include_lib("eqc/include/eqc.hrl"). -compile(export_all). prop_create_delete_database() -> ?SETUP(fun common_eqc:init_db/0, ?FORALL(DBS, non_empty(list(common_eqc:asci...
null
https://raw.githubusercontent.com/barrel-db/barrel/1695ca4cfe821808526f9ecb2e019bc1b8eff48e/eqc/create_delete_database_eqc.erl
erlang
@doc @end
@author < > ( C ) 2017 , Created : 19 Jul 2017 by < > -module(create_delete_database_eqc). -include_lib("eqc/include/eqc.hrl"). -compile(export_all). prop_create_delete_database() -> ?SETUP(fun common_eqc:init_db/0, ?FORALL(DBS, non_empty(list(common_eqc:ascii_string())), ...
ac94b036f8bb2fa4d618afe97ee946307b1555fbc77890e02547758ae25e189c
ocaml-obuild/obuild
prog.ml
open Ext.Fugue open Ext.Filepath open Ext exception OCamlProgramError of string exception TarError of string exception PkgConfigError of string exception PkgConfigErrorNoVersion exception PkgConfigErrorUnexpectedOutput of string exception ProgramNotFound of string let get_cache prog names = let res = Gconf.get_env ...
null
https://raw.githubusercontent.com/ocaml-obuild/obuild/28252e8cee836448e85bfbc9e09a44e7674dae39/obuild/prog.ml
ocaml
FIXME check if every items actually got -L as expected FIXME check if every items actually got -l as expected
open Ext.Fugue open Ext.Filepath open Ext exception OCamlProgramError of string exception TarError of string exception PkgConfigError of string exception PkgConfigErrorNoVersion exception PkgConfigErrorUnexpectedOutput of string exception ProgramNotFound of string let get_cache prog names = let res = Gconf.get_env ...
66bbcc75b0b959e4682b742125f261b7fc0ac885b9ab932a6157a433f8caa551
GaloisInc/daedalus
MemoSearch.hs
{-# LANGUAGE RankNTypes #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE DeriveGeneric # # LANGUAGE TypeApplications # # LANGUAGE DataKinds # module Talos.Strategy.MemoSearch ( memoSearch , randRestartPolicy , randDFSPolicy , randAccelDFSPolicy , BacktrackPolicy(..) ...
null
https://raw.githubusercontent.com/GaloisInc/daedalus/f9e3fb93656a087c9e1f45b18f012db704890499/talos/src/Talos/Strategy/MemoSearch.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ The idea here is to share solutions across the search space. Consider code like x = P a y = block let w = G Guard (p w) ^ w z = Q b Guard (g x z) If the ...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE DeriveGeneric # # LANGUAGE TypeApplications # # LANGUAGE DataKinds # module Talos.Strategy.MemoSearch ( memoSearch , randRestartPolicy , randDFSPolicy , randAccelDFSPolicy , BacktrackPolicy(..) ) where import Control.Lens import Contro...
bbc90274172bda4825a4cbc5f751b33bc7a696d93b1432ad3f3134983664863a
emina/rosette
safe.rkt
#lang racket (require "bool.rkt" "exn.rkt") (provide argument-error arguments-error type-error contract-error index-too-large-error assert assert-some assert-|| assert-bound assert-arity-includes) (define-syntax (assert stx) (syntax-case stx () [(_ expr) (syntax/loc stx ($assert expr #f))] ...
null
https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/rosette/base/core/safe.rkt
racket
#lang racket (require "bool.rkt" "exn.rkt") (provide argument-error arguments-error type-error contract-error index-too-large-error assert assert-some assert-|| assert-bound assert-arity-includes) (define-syntax (assert stx) (syntax-case stx () [(_ expr) (syntax/loc stx ($assert expr #f))] ...
9f19744b79dbc349cca4f1dacd8ee8531961491037e72010e7070c24811453fd
pirapira/coq2rust
spawn.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/lib/spawn.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Common code to avoid respawning l...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * let proto_version = 0 let pre...
1b8a1fb16996c6542ab1d504b8ef0a02bf18d4db45fabf9e2a9b6aabe1cef603
tisnik/clojure-examples
core.clj
; ( C ) Copyright 2018 , 2020 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (ns cucumber+expect4.core (:gen-...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/cucumber%2Bexpect4/src/cucumber%2Bexpect4/core.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2018 , 2020 -v10.html (ns cucumber+expect4.core (:gen-class)) funkce faktorial obsahuje i test na (defn factorial [n] (if (neg? n) (throw (IllegalArgumentException. "negative numbers are not supported!")) (apply * (range 1M (inc n))))) otestujeme f...
303ef7742327e68081b6fa56838f595fac6340729dcc91d9b2013ed49861b61d
metabase/metabase
dashboards.clj
(ns metabase-enterprise.audit-app.pages.common.dashboards (:require [honey.sql.helpers :as sql.helpers] [metabase-enterprise.audit-app.pages.common :as common] [metabase.util.honey-sql-2 :as h2x] [metabase.util.urls :as urls])) (defn table "Dashboard table!" [query-string & [where-clause]] {:metada...
null
https://raw.githubusercontent.com/metabase/metabase/fab6832052f8312ec37b1f24e1faf4b9df265ed1/enterprise/backend/src/metabase_enterprise/audit_app/pages/common/dashboards.clj
clojure
(ns metabase-enterprise.audit-app.pages.common.dashboards (:require [honey.sql.helpers :as sql.helpers] [metabase-enterprise.audit-app.pages.common :as common] [metabase.util.honey-sql-2 :as h2x] [metabase.util.urls :as urls])) (defn table "Dashboard table!" [query-string & [where-clause]] {:metada...
958b9625279364a758aaade8557bed99b189372436afdf5ba268706eaf1d912b
AlexKnauth/quote-bad
quote-bad.rkt
#lang racket/base (provide quote #%datum) (require (only-in racket/base [quote rkt:quote] [#%datum rkt:#%datum]) (for-syntax racket/base syntax/parse "translate-quoted.rkt" "quote-bad-error.rkt" )) (module+ test (require ra...
null
https://raw.githubusercontent.com/AlexKnauth/quote-bad/251c2ed6f6cfd24b733ea7e0d41ff44c63cb3b2d/quote-bad/quote-bad.rkt
racket
#lang racket/base (provide quote #%datum) (require (only-in racket/base [quote rkt:quote] [#%datum rkt:#%datum]) (for-syntax racket/base syntax/parse "translate-quoted.rkt" "quote-bad-error.rkt" )) (module+ test (require ra...
cddca9ecb7ec646cc0058ee3d6a88ba3e5fdcbcc7fdb00b5107a8bd1dfde7360
mdedwards/slippery-chicken
cmu.lisp
;;; ********************************************************************** Copyright ( C ) 2002 ( ) ;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or...
null
https://raw.githubusercontent.com/mdedwards/slippery-chicken/c1c11fadcdb40cd869d5b29091ba5e53c5270e04/src/cm-2.6.0/src/cmu.lisp
lisp
********************************************************************** This program is free software; you can redistribute it and/or either version 2 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 PART...
Copyright ( C ) 2002 ( ) modify it under the terms of the GNU General Public License of the License , or ( at your option ) any later version . $ Revision : 1.9 $ $ Date : 2005/01/08 15:10:33 $ (in-package :cm) (import '(ext::load-foreign pcl:slot-definition-initargs pcl:slot-definit...
4636821cef17fc61f401ae70ddaf481201df2c21728bad14baf5d52844b6b441
gchrupala/morfette
Token.hs
{-# LANGUAGE OverloadedStrings #-} module GramLab.Morfette.Token ( Token , Sentence , Emb , tokenForm , tokenEmb , tokenLemma , tokenPOS ...
null
https://raw.githubusercontent.com/gchrupala/morfette/be40676c975d660bbb893953d354168506069862/src/GramLab/Morfette/Token.hs
haskell
# LANGUAGE OverloadedStrings #
module GramLab.Morfette.Token ( Token , Sentence , Emb , tokenForm , tokenEmb , tokenLemma , tokenPOS , parse...
d7ef6c79fe42cf8a88566df44b14d9086c8239487b1df915e5f4eb2c211043f8
scrintal/heroicons-reagent
pause_circle.cljs
(ns com.scrintal.heroicons.solid.pause-circle) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9....
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/pause_circle.cljs
clojure
(ns com.scrintal.heroicons.solid.pause-circle) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9....
d0aa79f3c70721ee899d74bc64c65b1da8de77cca5777ab05c6b103b2912020c
MondayMorningHaskell/AdventOfCode
Day14.hs
{-# LANGUAGE OverloadedStrings #-} module Day14 where import Text.Megaparsec (ParsecT, some, sepEndBy1) import Text.Megaparsec.Char (letterChar, eol, string) import Data.Void (Void) import Data.Text (Text, pack) import Utils (parseFile, incKey, emptyOcc, OccMapBig, addKey) import Control.Monad.Logger (MonadLogger, ru...
null
https://raw.githubusercontent.com/MondayMorningHaskell/AdventOfCode/ec3160a219900f3945bb10b099ebfd588cbd19b8/src/Day14.hs
haskell
# LANGUAGE OverloadedStrings # < This case shouldn't happen
module Day14 where import Text.Megaparsec (ParsecT, some, sepEndBy1) import Text.Megaparsec.Char (letterChar, eol, string) import Data.Void (Void) import Data.Text (Text, pack) import Utils (parseFile, incKey, emptyOcc, OccMapBig, addKey) import Control.Monad.Logger (MonadLogger, runStdoutLoggingT, logDebugN, logErro...
4d38d904199d873bf17f259c793df12cb4b62c57b823be482c5106ce4aa670e0
LexiFi/landmarks
test.ml
let[@landmark] call f = f () let rec fp n () = if n > 0 then call (fp (n - 1)) let () = begin let open Landmark in let open Landmark.Graph in start_profiling ~profiling_options:{default_options with recursive = true} (); fp 10 (); stop_profiling (); let nb_recursive_nodes = List.length (...
null
https://raw.githubusercontent.com/LexiFi/landmarks/ea90c657f39d03d14d892732ad58123711eb9457/tests/recursive/test.ml
ocaml
let[@landmark] call f = f () let rec fp n () = if n > 0 then call (fp (n - 1)) let () = begin let open Landmark in let open Landmark.Graph in start_profiling ~profiling_options:{default_options with recursive = true} (); fp 10 (); stop_profiling (); let nb_recursive_nodes = List.length (...
746c90fd21e231252ac8fecb9e6ac4d7e91149a1246edaa41f5f8dd1bca1285d
hoelzl/Clicc
bindings.lisp
;;;----------------------------------------------------------------------------- Projekt : APPLY - A Practicable And Portable Lisp Implementation ;;; ------------------------------------------------------ Inhalt : Tests , in let / let*-Ausdruecken ;;; $ Revision : 1.4 $ ;;; $Log: bindings.lisp...
null
https://raw.githubusercontent.com/hoelzl/Clicc/cea01db35301144967dc74fd2f96dd58aa52d6ea/src/test/bindings.lisp
lisp
----------------------------------------------------------------------------- ------------------------------------------------------ $Log: bindings.lisp,v $ Revision 1.3 1992/09/30 18:49:51 hk Revision 1.2 1992/09/09 13:11:34 kl Initial revision ------------------------------------------------...
Projekt : APPLY - A Practicable And Portable Lisp Implementation Inhalt : Tests , in let / let*-Ausdruecken $ Revision : 1.4 $ Revision 1.4 1993/02/16 17:14:34 hk Revision Keyword eingefuegt . bindings6a eingefuegt . Die let*-Tests eingefuegt . Revision 1.1 1992/09/08 15:16:16 kl (...
159f9bb47218aaf920df139ef919e04d14b0cd452ddd4a1cf464bdfa0bf0283d
reborg/reclojure
persistent_map.clj
(ns reclojure.lang.protocols.persistent-map (:require [reclojure.lang.protocols.persistent-vector :as pv] [clojure.tools.logging :as log]) (:refer-clojure :exclude [cons empty seq get remove assoc count]) (:import [clojure.lang RT])) (defprotocol PersistentMap (assoc [this key val]) ;; common-provi...
null
https://raw.githubusercontent.com/reborg/reclojure/c8aae4cc384d59262569cbc9c332e08619f292ef/src/reclojure/lang/protocols/persistent_map.clj
clojure
common-provided specific
(ns reclojure.lang.protocols.persistent-map (:require [reclojure.lang.protocols.persistent-vector :as pv] [clojure.tools.logging :as log]) (:refer-clojure :exclude [cons empty seq get remove assoc count]) (:import [clojure.lang RT])) (defprotocol PersistentMap (assocEx [this key val]) (without [t...
54b53fc373203d418ecde08898b42399e324186e3eee01b0cfd785468751f306
jbracker/supermonad
TypeChecker.hs
# LANGUAGE RebindableSyntax # {-# OPTIONS_GHC -fplugin Control.Supermonad.Plugin #-} * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * H M T C ...
null
https://raw.githubusercontent.com/jbracker/supermonad/2595396a225a65b1dce6ed9a1ce59960f392a55b/examples/monad/hmtc/supermonad/TypeChecker.hs
haskell
# OPTIONS_GHC -fplugin Control.Supermonad.Plugin # :: A.AST -> D MTIR :: String -> [(Name,Type)] -> IO () Standard library imports and reports any errors. Hence a computation in the diagnostics monad 'D'. Additionally, translates the program into the type-annotated, intermediate source level by inserting explicit...
# LANGUAGE RebindableSyntax # * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * H M T C * * ...
7d1915df4483b17f9822f8592905f33ebbfe4267edd3b5db64cda4fcd87956a6
zenspider/schemers
exercise.4.74.scm
#!/usr/bin/env csi -s (require rackunit) Exercise 4.74 proposes to use a simpler ;; version of `stream-flatmap' in `negate', `lisp-value', and ;; `find-assertions'. She observes that the procedure that is mapped ;; over the frame stream in these cases always produces either the ;; empty stream or a singleton...
null
https://raw.githubusercontent.com/zenspider/schemers/2939ca553ac79013a4c3aaaec812c1bad3933b16/sicp/ch_4/exercise.4.74.scm
scheme
version of `stream-flatmap' in `negate', `lisp-value', and `find-assertions'. She observes that the procedure that is mapped over the frame stream in these cases always produces either the empty stream or a singleton stream, so no interleaving is needed when combining these streams. (define (simple-s...
#!/usr/bin/env csi -s (require rackunit) Exercise 4.74 proposes to use a simpler a. Fill in the missing expressions in 's program .
0495e4d7e17e15c1ef8e81a13d56a59f7eccc5a5fdd5302de29b2b93d5b1dbdb
kloimhardt/werkbank
euclid.clj
; Copyright © 2017 . This work is based on the Scmutils system of MIT / GNU Scheme : Copyright © 2002 Massachusetts Institute of Technology ; ; This 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/kloimhardt/werkbank/df66274eb978d060a043b8429b29d0f36c4a2e89/src/sicmutils/euclid.clj
clojure
This is free software; you can redistribute it and/or modify either version 3 of the License , or ( at your option) any later version. This software 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 PUR...
Copyright © 2017 . This work is based on the Scmutils system of MIT / GNU Scheme : Copyright © 2002 Massachusetts Institute of Technology it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License (ns sicmutils.euclid (:require [...
e9aef00951a28e2aef82306b87bfac564d16ed6d5e3f97dbd5b6c53db6b92e40
jaredly/reepl
replumb.cljs
(ns reepl.replumb (:require [cljs.js :as jsc] [cljs.analyzer :as ana] [reepl.core :as reepl] [reepl.helpers :as helpers] [devtools.core :as devtools] [cljs.pprint :as pprint] [reagent.core :as r] [quil.core :as q :include-macros true]...
null
https://raw.githubusercontent.com/jaredly/reepl/96a8979c574b3979a7aeeed27e57a2ec4d357350/src/reepl/replumb.cljs
clojure
:verbose true parse #js {} correctly get a unique js object as a sigil parse #js {} correctly TODO should I log the result if it's not the end? Trying to get expressions + statements to play well together it won't work if there are other `ns' statements inside there... parse #js {} correctly TODO fuzzy-match i...
(ns reepl.replumb (:require [cljs.js :as jsc] [cljs.analyzer :as ana] [reepl.core :as reepl] [reepl.helpers :as helpers] [devtools.core :as devtools] [cljs.pprint :as pprint] [reagent.core :as r] [quil.core :as q :include-macros true]...
07422c4bdf2b147ae5d0980fec823570a821f3e89d63b79376cda05c9c4d0d83
sibylfs/sibylfs_src
property_testgen.ml
(****************************************************************************) Copyright ( c ) 2013 , 2014 , 2015 , , , , ( as part of the SibylFS project ) (* *) (* Permission to use, copy, modify, and/or d...
null
https://raw.githubusercontent.com/sibylfs/sibylfs_src/30675bc3b91e73f7133d0c30f18857bb1f4df8fa/fs_test/test_generation/property_testgen.ml
ocaml
************************************************************************** Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright no...
Copyright ( c ) 2013 , 2014 , 2015 , , , , ( as part of the SibylFS project ) THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNE...
6b53cded8a2c8394c05aaa1067970130e19ebc3dc60c89c194af9895d9487eb4
tisnik/clojure-examples
core.clj
; ( C ) Copyright 2015 , 2020 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (ns seesaw6.core (:gen-class)) ...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/seesaw6/src/seesaw6/core.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2015 , 2020 -v10.html (ns seesaw6.core (:gen-class)) (use 'seesaw.core) (use 'seesaw.color) (def formular (grid-panel :columns 3 :rows 3 :items ["Color test" (button :text ":background :red" :background :red) ...
e9ec0cb1a63df08968aa480618f6ba673da253565272f57e3dc9c24c21041fc6
LdBeth/star-lisp
dummy-functions.lisp
-*- SYNTAX : COMMON - LISP ; MODE : LISP ; BASE : 10 ; PACKAGE : * SIM - I ; MUSER : YES -*- (in-package :*sim-i) ;;;> *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+ ;;;> ;;;> The Thinking Machines *Lisp Simulator is in the public domain. ;;;> You are free to do whatever y...
null
https://raw.githubusercontent.com/LdBeth/star-lisp/034fb97fe8780d6e9fbff7c1d8c4a6b8c331797b/source/dummy-functions.lisp
lisp
MODE : LISP ; BASE : 10 ; PACKAGE : * SIM - I ; MUSER : YES -*- > *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+ > > The Thinking Machines *Lisp Simulator is in the public domain. > You are free to do whatever you like with it, including but > not limited to distributing, mod...
(in-package :*sim-i) (defun list-of-slc-function-types () nil) (defun get-function-type (function-symbol) (get function-symbol 'slc::function-type)) (defun set-function-type (function-symbol type) (setf (get function-symbol 'slc::function-type) type) ) (defun remove-function-type (function-symbol) (setf (get...
e1583f3ee8cd2b16f9e0da926c6d076ddabe68cd9637816315ce701c1b5d9926
bmeurer/ocaml-arm
parse.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/parsing/parse.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ val implementation : Lexing.l...
b18492842d5987784e1032af83b978f50ff055253c891d5a2244d93f9f6a1587
Twinside/Eq
Floating.hs
{-# LANGUAGE Rank2Types #-} -- | This module implements the rules to interpret all floating -- points operations which are by nature lossy. So this set -- of rules may or may not be used in the context of global -- evaluation to preserve the "true" meaning of the formula. module Language.Eq.Algorithm.Eval.Floating ( ev...
null
https://raw.githubusercontent.com/Twinside/Eq/60105372d55420735b722245db7021c239c812f4/Language/Eq/Algorithm/Eval/Floating.hs
haskell
# LANGUAGE Rank2Types # | This module implements the rules to interpret all floating points operations which are by nature lossy. So this set of rules may or may not be used in the context of global evaluation to preserve the "true" meaning of the formula. | General function favored to use the reduction rules as ...
module Language.Eq.Algorithm.Eval.Floating ( evalFloat, floatEvalRules ) where import Control.Applicative import Data.Maybe( fromMaybe ) import Data.Ratio import qualified Language.Eq.ErrorMessages as Err import Language.Eq.Algorithm.Eval.Types import Language.Eq.Algorithm.Eval.Utils import Language.Eq.EvaluationCon...
417de96e2408589fa62c412c282338baa6d58f5cbec08d217e27e56265d686b2
input-output-hk/ouroboros-network
Stream.hs
# LANGUAGE LambdaCase # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # module Ouroboros.Consensus.Storage.LedgerDB.Stream ( NextBlock (..) , StreamAPI (..) , streamAll ) where import Control.Monad.Except import GHC.Sta...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/358880057f1d6d86cc385e8475813ace3b9ebef6/ouroboros-consensus/src/Ouroboros/Consensus/Storage/LedgerDB/Stream.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE RecordWildCards # ------------------------------------------------------------------------------ Abstraction over the streaming API provided by the Chain DB ------------------------------------------------------------------------------ | Next block returned during stre...
# LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # module Ouroboros.Consensus.Storage.LedgerDB.Stream ( NextBlock (..) , StreamAPI (..) , streamAll ) where import Control.Monad.Except import GHC.Stack import Ouroboros.Consensus.Block data NextBlock blk = NoMo...
912bb0d812c9496e2d4e2bb8321ce7f991edbc77ade209df8eebe51dfa7b290c
Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator
Spec.hs
{-# LANGUAGE OverloadedStrings #-} import Control.Exception import Data.Aeson hiding (Null) import qualified Data.Aeson.Key as Key import qualified Data.Aeson.KeyMap as KeyMap import Data.Either import qualified Data.Text as T import Lib import Network.HTTP.Client import Network.HTTP.Simple import OpenAPI import Test....
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator/af8435def9f3dff36180d1520b5c60200c532d2a/testing/level3/petstore-running-example/test/Spec.hs
haskell
# LANGUAGE OverloadedStrings #
import Control.Exception import Data.Aeson hiding (Null) import qualified Data.Aeson.Key as Key import qualified Data.Aeson.KeyMap as KeyMap import Data.Either import qualified Data.Text as T import Lib import Network.HTTP.Client import Network.HTTP.Simple import OpenAPI import Test.Hspec main :: IO () main = hspec...
074781a4b4f69371db8c026d6ba24521917208e4f58574d746577b580d15e669
ntoronto/pict3d
info.rkt
#lang info (define collection 'multi) (define deps '(("base" #:version "6.1.1") "draw-lib" "srfi-lite-lib" "typed-racket-lib" "typed-racket-more" "math-lib" "scribble-lib" "gui-lib" "pconvert-lib" ...
null
https://raw.githubusercontent.com/ntoronto/pict3d/09283c9d930c63b6a6a3f2caa43e029222091bdb/info.rkt
racket
why? for tests
#lang info (define collection 'multi) (define deps '(("base" #:version "6.1.1") "draw-lib" "srfi-lite-lib" "typed-racket-lib" "typed-racket-more" "math-lib" "scribble-lib" "gui-lib" "pconvert-lib" ...
14d4ef403aa8c455b17f3ae6cfc729d7b472af10b03f07cffe4f716ecf863c20
janestreet/bonsai
instrumentation.ml
open! Core open! Import module Entry_label = struct (* The label that gets attached to performance measurements. It shows up in the flamegraph produced by the chrome profiler, and also in the messages that we receive from the [PerformanceObserver]. Since this label may be viewed by humans, we include ...
null
https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/src/instrumentation.ml
ocaml
The label that gets attached to performance measurements. It shows up in the flamegraph produced by the chrome profiler, and also in the messages that we receive from the [PerformanceObserver]. Since this label may be viewed by humans, we include the [node_type] field and hand-craft the sexp repres...
open! Core open! Import module Entry_label = struct type t = { id : Node_path.t ; node_type : string } let to_string { id; node_type } = [%string "##%{node_type} %{id#Node_path}"] end let extract_node_path_from_entry_label label = if String.is_prefix ~prefix:"##" label then ( match String.spl...
7be23255d754bb25c22bfca951eb623fa9a69da2bc658bfcf722c8b8311e0be3
maxima-project-on-github/maxima-packages
trigrat.lisp
(in-package :maxima) (if #$member (global, features)$ (meval #$declare ([d2%, lg, lexp], global)$)) (defun $listofei (e ) (declare (special $d2% $lg $lexp)) (setq $d2% (copy-tree (car e))) (setq $lg ()) (setq $lexp ()) (do ((lvar (caddr $d2%) (cdr lvar)) (lg (cadddr $d2%) (cdr lg)) (var)) ((...
null
https://raw.githubusercontent.com/maxima-project-on-github/maxima-packages/5a1bbd88a4e8b66b1ae659e2a07cdbaede1be7f7/robert-dodier/lexical_symbols/trigrat.lisp
lisp
Check that we have a factor of %i. This test includes cases like %i, and %i*x/2, which we get for e.g. sin(1) and sin(x/2).
(in-package :maxima) (if #$member (global, features)$ (meval #$declare ([d2%, lg, lexp], global)$)) (defun $listofei (e ) (declare (special $d2% $lg $lexp)) (setq $d2% (copy-tree (car e))) (setq $lg ()) (setq $lexp ()) (do ((lvar (caddr $d2%) (cdr lvar)) (lg (cadddr $d2%) (cdr lg)) (var)) ((...
d3197baad99725d3a99496b42ebeb30e9ef3ab3f795538b3da7bd7de4b356bc4
iambrj/imin
cond_test_19.rkt
(let ([x (read)]) (let ([y (read)]) (if (if (< x 1) (eq? x 0) (eq? x 2)) (+ y 2) (+ y 10))))
null
https://raw.githubusercontent.com/iambrj/imin/a02104f795e11baba8b2df173c4061e69640891f/tests/cond_test_19.rkt
racket
(let ([x (read)]) (let ([y (read)]) (if (if (< x 1) (eq? x 0) (eq? x 2)) (+ y 2) (+ y 10))))
5f2b0ad014cae56a6c5fe2de9e0c7f03a5b324bfbb139e516e707d886efa7b6b
AlacrisIO/legicash-facts
side_chain_client.ml
open Scgi open Legilogic_lib open Signing open Yojsoning open Logging open Types open Action open Lwter (* TODO: use Lwt_exn *) open Alacris_lib open Side_chain open Side_chain_client_lib open Actions (* Side_chain also has a Request module *) module Request = Scgi.Request let side_chain_client_log = true let _ =...
null
https://raw.githubusercontent.com/AlacrisIO/legicash-facts/5d3663bade68c09bed47b3f58fa12580f38fdb46/src/alacris_client/side_chain_client.ml
ocaml
TODO: use Lwt_exn Side_chain also has a Request module let _ = set_log_file "logs/alacris-client.log" TODO: before we got to production, make sure keys at rest are suitably encrypted let account_names = nicknames_with_registered_keypair () |> List.sort compare just log Lwt exceptions Log the request remo...
open Scgi open Legilogic_lib open Signing open Yojsoning open Logging open Types open Action open Alacris_lib open Side_chain open Side_chain_client_lib open Actions module Request = Scgi.Request let side_chain_client_log = true let _ = Config.set_application_name "alacris" let _ = let keys_file_ref = ref ("de...
fd3eb2cddda89c41450ad0f1a8ad69e3ee25bc0c33e36cb04737b2096957ffa1
emina/rosette
query.rkt
#lang rosette (require "automaton.rkt" "lib.rkt" rosette/lib/synthax) (provide verify-automaton solve-automaton synthesize-automaton matches?) ; Returns a symbolic word of length k, drawn from the given alphabet. (define (word k alphabet) (for/list ([i k]) (define-symbolic* idx integer?) ...
null
https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/sdsl/fsm/query.rkt
racket
Returns a symbolic word of length k, drawn from the given alphabet. Returns a symbolic word of length up to k, drawn from the given alphabet.
#lang rosette (require "automaton.rkt" "lib.rkt" rosette/lib/synthax) (provide verify-automaton solve-automaton synthesize-automaton matches?) (define (word k alphabet) (for/list ([i k]) (define-symbolic* idx integer?) (list-ref alphabet idx))) (define (word* k alphabet) (define-sym...
aa0e92cdd5d819f8346972ebcf55bb64c812a8df25d6610cef4d2fe4727dd4ca
cedlemo/OCaml-GI-ctypes-bindings-generator
Radio_button.mli
open Ctypes type t val t_typ : t typ val create : SList.t structure (* Not implemented : interface *) ptr option -> Widget.t ptr val create_from_widget : t ptr option -> Widget.t ptr val create_with_label : SList.t structure (* Not implemented : interface *) ptr option -> string -> Widget.t ptr val create_with_...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Radio_button.mli
ocaml
Not implemented : interface Not implemented : interface Not implemented : interface Not implemented : interface Not implemented : interface
open Ctypes type t val t_typ : t typ val create : val create_from_widget : t ptr option -> Widget.t ptr val create_with_label : val create_with_label_from_widget : t ptr option -> string -> Widget.t ptr val create_with_mnemonic : val create_with_mnemonic_from_widget : t ptr option -> string -> Widget.t ptr val ...
fbb60ee6b7727bc627f796dd24435be99ce5847384289ea1773ce08ed265a2cb
mpickering/apply-refact
Apply.hs
module Refact.Apply ( applyRefactorings, applyRefactorings', runRefactoring, parseExtensions, ) where import Control.Monad (unless) import Data.List (intercalate) import Refact.Compat (Module) import Refact.Fixity (applyFixities) import Refact.Internal import Refact.Types (Refactoring, SrcSpan) -- | A...
null
https://raw.githubusercontent.com/mpickering/apply-refact/98e1885d30f085ab010be85509288440537f0be4/src/Refact/Apply.hs
haskell
| Apply a set of refactorings as supplied by HLint - print - libdir ) . this will make it difficult to provide a binary distribution of your program. | Apply hints relevant to a specific position | 'Refactoring's to apply. Each inner list corresponds to an HLint <-Haskell-HLint.html#t:Idea Idea>. The @Idea@s ar...
module Refact.Apply ( applyRefactorings, applyRefactorings', runRefactoring, parseExtensions, ) where import Control.Monad (unless) import Data.List (intercalate) import Refact.Compat (Module) import Refact.Fixity (applyFixities) import Refact.Internal import Refact.Types (Refactoring, SrcSpan) applyR...
d2a408af8ac11327b0c2cebdc99094f92493424d7a251e9866c3d470ad065e04
bscarlet/llvm-general
Target.hs
{-# LANGUAGE ForeignFunctionInterface, GeneralizedNewtypeDeriving #-} module LLVM.General.Internal.FFI.Target where import LLVM.General.Prelude import Foreign.Ptr import Foreign.C import LLVM.General.Internal.FFI.LLVMCTypes import LLVM.General.Internal.FFI.Module import LLVM.General.Internal.FFI.RawOStream da...
null
https://raw.githubusercontent.com/bscarlet/llvm-general/61fd03639063283e7dc617698265cc883baf0eec/llvm-general/src/LLVM/General/Internal/FFI/Target.hs
haskell
# LANGUAGE ForeignFunctionInterface, GeneralizedNewtypeDeriving #
module LLVM.General.Internal.FFI.Target where import LLVM.General.Prelude import Foreign.Ptr import Foreign.C import LLVM.General.Internal.FFI.LLVMCTypes import LLVM.General.Internal.FFI.Module import LLVM.General.Internal.FFI.RawOStream data Target foreign import ccall unsafe "LLVM_General_InitializeNativeTarget"...
317f73095bb29a1e102701470754319414dc8de9b34757fea22d1c065ec0302c
janestreet/lwt-async
lwt_term.ml
Lightweight thread library for * Module Lwt_term * Copyright ( C ) 2009 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation , with linking exceptions ; * eithe...
null
https://raw.githubusercontent.com/janestreet/lwt-async/c738e6202c1c7409e079e513c7bdf469f7f9984c/src/text/lwt_term.ml
ocaml
+-----------------------------------------------------------------+ | Terminal mode | +-----------------------------------------------------------------+ Number of function currently using the raw mode: Restore terminal mode on exit: Inspired from Python-3....
Lightweight thread library for * Module Lwt_term * Copyright ( C ) 2009 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation , with linking exceptions ; * eithe...
721c6ab5e861653b1ae905a173f6666077bd7db676d958b68af7ecda558fde21
MyDataFlow/ttalk-server
mam_message_xml.erl
%%% @doc Encoding and decoding messages using exml library -module(mam_message_xml). -export([encode/1, decode/1]). -behaviour(mam_message). encode(Packet) -> exml:to_binary(Packet). decode(Bin) -> {ok, Packet} = exml:parse(Bin), Packet.
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/apps/ejabberd/src/mam_message_xml.erl
erlang
@doc Encoding and decoding messages using exml library
-module(mam_message_xml). -export([encode/1, decode/1]). -behaviour(mam_message). encode(Packet) -> exml:to_binary(Packet). decode(Bin) -> {ok, Packet} = exml:parse(Bin), Packet.
489fb659d917dfa1fd5f5b88eeb8b27d2f07bda1660a3c04f26647ec3c7f3da5
asr/apia
Terms.hs
| Translation from Agda internal terms to the target logic . {-# LANGUAGE CPP #-} # LANGUAGE UnicodeSyntax # module Apia.Translation.Terms ( agdaTermToFormula , agdaTermToTerm ) where ------------------------------------------------------------------------------ import Apia.Prelude import Agda.S...
null
https://raw.githubusercontent.com/asr/apia/a66c5ddca2ab470539fd68c42c4fbd45f720d682/src/Apia/Translation/Terms.hs
haskell
# LANGUAGE CPP # ---------------------------------------------------------------------------- # source # ---------------------------------------------------------------------------- Translation of predicates. Direct translation. In this guard we translate 0-ary predicates, i.e. propositional functions, fo...
| Translation from Agda internal terms to the target logic . # LANGUAGE UnicodeSyntax # module Apia.Translation.Terms ( agdaTermToFormula , agdaTermToTerm ) where import Apia.Prelude import Agda.Syntax.Abstract.Name ( Name(nameConcrete) , QName(QName) ) import Agda.Syntax.Common ( Arg(Arg, argInfo, unA...
ed52386c1576aefe2d0a0fac55d27f9f7720e99e90939941d958ca990f67897f
abarbu/haskell-torch
Types.hs
# LANGUAGE OverloadedStrings , QuasiQuotes , ScopedTypeVariables , TemplateHaskell # module Foreign.Matio.Types where import qualified Data.Map as Map import Data.Monoid (mempty, (<>)) import Data.Text (Text) import qualified Data....
null
https://raw.githubusercontent.com/abarbu/haskell-torch/03b2c10bf8ca3d4508d52c2123e753d93b3c4236/haskell-torch-matio/src/Foreign/Matio/Types.hs
haskell
NB Matlab arrays are unfortunately column major! :(
# LANGUAGE OverloadedStrings , QuasiQuotes , ScopedTypeVariables , TemplateHaskell # module Foreign.Matio.Types where import qualified Data.Map as Map import Data.Monoid (mempty, (<>)) import Data.Text (Text) import qualified Data....
370b91c2524f4c5512b62ed1a9857ea48e9dbf1624f4cbece9df270cf56ac246
JonathanLorimer/core-warn
Spec.hs
module Spec where
null
https://raw.githubusercontent.com/JonathanLorimer/core-warn/52b841253727e4085d1b2cb663d8bca23c4eb681/test/Spec.hs
haskell
module Spec where
8540e099fa0379da5510259264ef57fa762c9a0a3ec1bcc8c7f384a46130fab0
open-telemetry/opentelemetry-erlang-api
ot_meter_noop.erl
%%%------------------------------------------------------------------------ Copyright 2019 , OpenTelemetry Authors 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 %% %% Unl...
null
https://raw.githubusercontent.com/open-telemetry/opentelemetry-erlang-api/41cb700d60a7dcfdb4165aca73634bbe1c07a33f/src/ot_meter_noop.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 o...
Copyright 2019 , OpenTelemetry Authors Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(ot_meter_noop). -behaviour(ot_meter). -export([new_instrument/4, new_instruments/2, labels/2, recor...
c152f1b7fcb6529344d123b9099ece721555b9574dad38fe6de9e7133f3f6fb3
Shirakumo/kandria
achievements.lisp
(in-package #:org.shirakumo.fraf.kandria) (defun race-achieved-p (race) (let ((quest (quest:find-quest race (storyline +world+)))) (and (quest:var 'pb quest) (<= (quest:var 'pb quest) (quest:var 'gold quest))))) (define-achievement catherine-races task-completed :icon (// 'kandria 'ach-racecat) (ev...
null
https://raw.githubusercontent.com/Shirakumo/kandria/0eafe60b5f50c18980a6acc977dc45987e8e26c1/achievements.lisp
lisp
(in-package #:org.shirakumo.fraf.kandria) (defun race-achieved-p (race) (let ((quest (quest:find-quest race (storyline +world+)))) (and (quest:var 'pb quest) (<= (quest:var 'pb quest) (quest:var 'gold quest))))) (define-achievement catherine-races task-completed :icon (// 'kandria 'ach-racecat) (ev...
36622ffb5708e4fb9ca3a86464e5c81d7ea1d5c676b743ea1451c1a506172fe8
ruhler/smten
tests.hs
# LANGUAGE NoImplicitPrelude # import Smten.Compiled.Smten.Tests.STP
null
https://raw.githubusercontent.com/ruhler/smten/16dd37fb0ee3809408803d4be20401211b6c4027/smten-stp/tests.hs
haskell
# LANGUAGE NoImplicitPrelude # import Smten.Compiled.Smten.Tests.STP
6c8477b1c438b1c2d9cf26a13f019745eb36223eceb100f1077a35b66bcb9853
cassiel/thi-ng-geom-starter
t_demo.cljs
(ns thi-ng-geom-starter.t-demo (:require [reagent.core :as reagent] [thi.ng.math.core :as m :refer [PI HALF_PI TWO_PI]] [thi.ng.geom.gl.core :as gl] [thi.ng.geom.gl.webgl.constants :as glc] [thi.ng.geom.gl.webgl.animator :as anim] [thi.ng.geom.gl.buffers :as...
null
https://raw.githubusercontent.com/cassiel/thi-ng-geom-starter/f32a8a195f1b95da5e4e44228174b8db8a26fb87/src/cljs/thi_ng_geom_starter/t_demo.cljs
clojure
:flags :ewfbs
(ns thi-ng-geom-starter.t-demo (:require [reagent.core :as reagent] [thi.ng.math.core :as m :refer [PI HALF_PI TWO_PI]] [thi.ng.geom.gl.core :as gl] [thi.ng.geom.gl.webgl.constants :as glc] [thi.ng.geom.gl.webgl.animator :as anim] [thi.ng.geom.gl.buffers :as...
9216f547f3d51a192eb5b2be5ec6600b9da19ae83df4b8bf8ccfba0055b6f53e
heechul/crest-z3
bitmap.mli
(* Imperative bitmaps *) type t (* Create a bitmap given the number * of bits *) val make : int -> t val init : int -> (int -> bool) -> t (* Also initialize it *) val size : t -> int ...
null
https://raw.githubusercontent.com/heechul/crest-z3/cfcebadddb5e9d69e9956644fc37b46f6c2a21a0/cil/ocamlutil/bitmap.mli
ocaml
Imperative bitmaps Create a bitmap given the number * of bits Also initialize it How much space it is reserved The cardinality of a set Make a copy of a bitmap An empty set with the same * dimensions Set the bit * Set the ...
type t val make : int -> t val card : t -> int val clone : t -> t val setTo : t -> int -> bool -> unit val test : t -> int -> bool * destructive union . The first * element is updated . Returns true * if any change was a...
da86d061f7495e2e324575be09fd316ecd7afdc4ef55d00be4c22069c8c5df73
mvoidex/hsdev
LookupTable.hs
module Data.LookupTable ( LookupTable, newLookupTable, lookupTable, lookupTableM, cacheInTableM, hasLookupTable, cachedInTable, insertTable, insertTableM, storeInTable, storeInTableM ) where import Control.Monad.IO.Class import Control.Concurrent.MVar import Data.Map (Map) import qualified Data.Map as M -- | k...
null
https://raw.githubusercontent.com/mvoidex/hsdev/016646080a6859e4d9b4a1935fc1d732e388db1a/src/Data/LookupTable.hs
haskell
| k-v table | Lookup, or insert if not exists | Lookup, or insert if not exists | @lookupTableM@ with swapped args | Just check existable | Insert value into table and return it | Insert value into table and return it | @insertTable@ with flipped args | @insertTable@ with flipped args
module Data.LookupTable ( LookupTable, newLookupTable, lookupTable, lookupTableM, cacheInTableM, hasLookupTable, cachedInTable, insertTable, insertTableM, storeInTable, storeInTableM ) where import Control.Monad.IO.Class import Control.Concurrent.MVar import Data.Map (Map) import qualified Data.Map as M type L...
e404e1ab505b4ed6d8a03f31d55e72802a41af42b4566420c1c1acf77a6aec3c
sysbio-bioinf/avatar
gene_data.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the Eclipse Public License 2.0 ( -v20.html ) ; which can be found in the file LICENSE at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; the terms of ...
null
https://raw.githubusercontent.com/sysbio-bioinf/avatar/cbf9968485f96fb61725aaa7381dba53624d6189/src/clojure/avatar/data/gene_data.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. short-ci...
Copyright ( c ) . All rights reserved . Eclipse Public License 2.0 ( -v20.html ) (ns avatar.data.gene-data (:require [avatar.util :as u] [clojure.data.int-map :as im] [avatar.algorithms.common :as c] [clojure.string :as str] [avatar.algorithms.score :as score])) (defn filter-gene-indices...
7aaa09145fad1c22ad068a56573277955605f8cdcdd1d37187fcd1c56f15123d
racket/drracket
syncheck-eval-compile-time.rkt
#lang racket/base (require "private/drracket-test-util.rkt" racket/class framework) (define (main) (fire-up-drracket-and-run-tests (λ () (let ([drs (wait-for-drracket-frame)]) (set-module-language!) (do-execute drs) (queue-callback/res (λ () (prefere...
null
https://raw.githubusercontent.com/racket/drracket/2d7c2cded99e630a69f05fb135d1bf7543096a23/drracket-test/tests/drracket/syncheck-eval-compile-time.rkt
racket
copied from syncheck-test.rkt ....
#lang racket/base (require "private/drracket-test-util.rkt" racket/class framework) (define (main) (fire-up-drracket-and-run-tests (λ () (let ([drs (wait-for-drracket-frame)]) (set-module-language!) (do-execute drs) (queue-callback/res (λ () (prefere...
02a0db0f39b4f5efe940f9e1b5af9cc83ca2a9da9b095b5146b2733652efa9db
Eduap-com/WordMat
minpack-interface.lisp
;;; -*- Mode: lisp -*- Simple Maxima interface to minpack routines (in-package #-gcl #:maxima #+gcl "MAXIMA") (defmvar $debug_minpack nil "Set to true to enable debugging messages from minpack routines") (defmfun $minpack_lsquares (fcns vars init-x &key (jacobian t) (tolerance #.(sqrt double-floa...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/minpack/minpack-interface.lisp
lisp
-*- Mode: lisp -*- T means compute it ourselves No jacobian at all Jacobian given (or computed by maxima), so use lmder1 Compute function at point x, placing result we're called with vector that is longer than fjac, in column-major order. Return a list of the solution and the info flag No Jacobian given so we ...
Simple Maxima interface to minpack routines (in-package #-gcl #:maxima #+gcl "MAXIMA") (defmvar $debug_minpack nil "Set to true to enable debugging messages from minpack routines") (defmfun $minpack_lsquares (fcns vars init-x &key (jacobian t) (tolerance #.(sqrt double-float-epsilon))) "Minimiz...
d01efe6cc0d2b912778e63318cf238fbe69ad7b65d391a2427735a0c4cfca89b
portkey-cloud/aws-clj-sdk
machinelearning.clj
(ns portkey.aws.machinelearning (:require [portkey.aws])) (def endpoints '{"eu-west-1" {:credential-scope {:service "machinelearning", :region "eu-west-1"}, :ssl-common-name "machinelearning.eu-west-1.amazonaws.com", :endpoint "-west-1.amazonaws.com", :signature-version :v4}, "us-east-1" {:c...
null
https://raw.githubusercontent.com/portkey-cloud/aws-clj-sdk/10623a5c86bd56c8b312f56b76ae5ff52c26a945/src/portkey/aws/machinelearning.clj
clojure
(ns portkey.aws.machinelearning (:require [portkey.aws])) (def endpoints '{"eu-west-1" {:credential-scope {:service "machinelearning", :region "eu-west-1"}, :ssl-common-name "machinelearning.eu-west-1.amazonaws.com", :endpoint "-west-1.amazonaws.com", :signature-version :v4}, "us-east-1" {:c...
96032a097c5a476e2e8510f51142d2295dfb1d473ac5432293ba1a178273e59d
SNePS/SNePS2
imports.lisp
-*- Mode : Lisp ; Syntax : Common - Lisp ; Package : SNEPS ; Base : 10 -*- Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : imports.lisp , v 1.2 2013/08/28 19:07:24 shapiro Exp $ ;; This file is part of SNePS. $ BEGIN LICENSE$ The contents of this file ...
null
https://raw.githubusercontent.com/SNePS/SNePS2/d3862108609b1879f2c546112072ad4caefc050d/sneps/imports.lisp
lisp
Syntax : Common - Lisp ; Package : SNEPS ; Base : 10 -*- This file is part of SNePS. you may not use this file except in compliance with the License. You may obtain a copy of the License at . edu/sneps/Downloads/ubpl.pdf. or implied. See the License for the specific language gov erning rights and limitations...
Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : imports.lisp , v 1.2 2013/08/28 19:07:24 shapiro Exp $ $ BEGIN LICENSE$ The contents of this file are subject to the University at Software distributed under the License is distributed on an " AS IS " b...
c98ffeb980b5f2205c8f96787afbecd896c5b0aef1c486a935e639e5a8799344
KestrelInstitute/Specware
seal-parser.lisp
-*- Mode : LISP ; Package : Parser4 ; Base : 10 ; Syntax : Common - Lisp -*- (in-package :Parser4) (defun load-parser (file &key (name (intern (format nil "PARSER-~D" (incf *gensym-counter*)) "KEYWORD")) (case-sensitive? nil) (rule-package (find-package "KEYWORD")) (symbol-package common-lisp:...
null
https://raw.githubusercontent.com/KestrelInstitute/Specware/2be6411c55f26432bf5c9e2f7778128898220c24/Library/Algorithms/Parsing/Chart/Handwritten/Lisp/seal-parser.lisp
lisp
Package : Parser4 ; Base : 10 ; Syntax : Common - Lisp -*- see parse-add-rules.lisp sets parser-rules sets parser-ht-name-to-reductions sets parser-rule-reductions sets parser-bv-size parser-rule-bvi parser-rule-item-possible-handles-bv sets parser-default-semantic-alist finds toplevel, symbol, numb...
(in-package :Parser4) (defun load-parser (file &key (name (intern (format nil "PARSER-~D" (incf *gensym-counter*)) "KEYWORD")) (case-sensitive? nil) (rule-package (find-package "KEYWORD")) (symbol-package common-lisp::*package*)) (let ((new-parser (new-parser name :case-sensitive? case-se...
2253be9c48fa9990d5fe5c936ef6c16ba3999c7cd5bb585d2594ece3adc563b2
haslab/HAAP
minimalistic.hs
# LANGUAGE EmptyDataDecls , DeriveGeneric , OverloadedStrings , ScopedTypeVariables # | Module : Main Description : The @minimalistic@ HAAP example This module presents a minimalistic example of the usage of HAAP , consisting on testing an @HSpec@ specification , running several code analysis plugins , ...
null
https://raw.githubusercontent.com/haslab/HAAP/5acf9efaf0e5f6cba1c2482e51bda703f405a86f/examples/minimalistic/minimalistic.hs
haskell
load and run the @HPC@ plugin create an @index.html@ webpage using the @Hakyll@ plugin and connect to other artifacts | A concrete specification to be tested. | A specification to be used in a ranking, will be run for each group. | Calculates a quantitative score from the results of the tests. | Arguments for the ...
# LANGUAGE EmptyDataDecls , DeriveGeneric , OverloadedStrings , ScopedTypeVariables # | Module : Main Description : The @minimalistic@ HAAP example This module presents a minimalistic example of the usage of HAAP , consisting on testing an @HSpec@ specification , running several code analysis plugins , ...
71479895cc5f14cc39b41f4e735209b8dc0f1d569aa7217117661f1aeb4718ee
tlaplus/tlapm
index.ml
Copyright 2004 INRIA open Expr;; open Misc;; open Mlproof;; open Printf;; let ( === ) = ( = );; let ( = ) = ();; let string_equal x y = String.compare x y == 0;; reduce to 17 for debugging module HE = Hashtbl.Make (Expr);; let allforms = (HE.create tblsize : int HE.t);; type sym_table = (string, expr list ...
null
https://raw.githubusercontent.com/tlaplus/tlapm/b82e2fd049c5bc1b14508ae16890666c6928975f/zenon/index.ml
ocaml
==== ==== ==== ==== ==== ==== ==== ==== ==== ====
Copyright 2004 INRIA open Expr;; open Misc;; open Mlproof;; open Printf;; let ( === ) = ( = );; let ( = ) = ();; let string_equal x y = String.compare x y == 0;; reduce to 17 for debugging module HE = Hashtbl.Make (Expr);; let allforms = (HE.create tblsize : int HE.t);; type sym_table = (string, expr list ...
d11115e73ecd47fc4d5bcf08dad083cd95ff5ce187175d1a8e7c1daf9b3cbfba
5outh/chaosbox
Sequence.hs
module ChaosBox.Sequence ( lerpSeq , lerpSeq2 , lerpSeqWith ) where import ChaosBox.Math (clamp) import Data.Sequence (Seq, index) import Linear.V2 -- | Get the element of a sequence some percentage through it -- -- For a non-empty sequence: -- -- @lerpSeq 0 seq = head seq@ @le...
null
https://raw.githubusercontent.com/5outh/chaosbox/991ca3db48d8828287567302ba3293314b9127bd/src/ChaosBox/Sequence.hs
haskell
| Get the element of a sequence some percentage through it For a non-empty sequence: @lerpSeq 0 seq = head seq@
module ChaosBox.Sequence ( lerpSeq , lerpSeq2 , lerpSeqWith ) where import ChaosBox.Math (clamp) import Data.Sequence (Seq, index) import Linear.V2 @lerpSeq 1 seq = last seq@ lerpSeq :: Double -> Seq a -> a lerpSeq perc xs = xs `index` lerpSeqIndex perc xs lerpSeqIndex :: Doub...
8b01b33f0195c1309e30159ba728820e65f2fb1326326e31aea124714cfbcb1f
noinia/hgeometry
LowerTangent.hs
module Geometry.Polygon.Convex.LowerTangent( lowerTangent , upperTangent ) where import Control.Lens hiding ((:<), (:>)) import Data.Vector.Circular (CircularVector) import qualified Data.Vector.Circular...
null
https://raw.githubusercontent.com/noinia/hgeometry/89cd3d3109ec68f877bf8e34dc34b6df337a4ec1/hgeometry/test/src/Geometry/Polygon/Convex/LowerTangent.hs
haskell
Old implementation of lowerTangent that we know is correct. - lp and rp are disjoint, and there is a vertical line separating - The vertices of the polygons are given in clockwise order - lp and rp are disjoint, and there is a vertical line separating - The vertices of the polygons a...
module Geometry.Polygon.Convex.LowerTangent( lowerTangent , upperTangent ) where import Control.Lens hiding ((:<), (:>)) import Data.Vector.Circular (CircularVector) import qualified Data.Vector.Circular...
ac662012b6530a34db7d46663b5c56c3321fe9cdfd0ff4db0b52cdca89363ebd
shirok/Gauche
www.scm
;; ;; test www.* modules ;; (use gauche.test) (use gauche.charconv) (use text.tree) (use rfc.822) (use file.util) (test-start "www.* modules") ;;------------------------------------------------ (test-section "www.cgi") (use www.cgi) (test-module 'www.cgi) (define params #f) (define qs1 "a=foo+bar&boo=baz=doo&z%3Dz=%...
null
https://raw.githubusercontent.com/shirok/Gauche/ecaf82f72e2e946f62d99ed8febe0df8960d20c4/test/www.scm
scheme
test www.* modules ------------------------------------------------ name=\"aaa\" name=\"bbb\"; filename=\"x.txt\" name=\"ccc\"; filename=\"\" filename=\"ttt\\bbb\" name=aaa filename = x.txt filename=\"\ " filename=\"ttt\\bbb\ " name=aaa name=aaa name=\"aaa\" -----------------------------------------------...
(use gauche.test) (use gauche.charconv) (use text.tree) (use rfc.822) (use file.util) (test-start "www.* modules") (test-section "www.cgi") (use www.cgi) (test-module 'www.cgi) (define params #f) (define qs1 "a=foo+bar&boo=baz=doo&z%3Dz=%21%26&a=+%20&#=#&z=z=8&r&r=2") (define qr1 '(("boo" "baz=doo") ("z=z" "!&") ("a...
026e30751d675892015106515aae5cecbbd0a3e142767d46418357fdbcef376c
achirkin/qua-kit
Common.hs
{-# OPTIONS_HADDOCK hide, prune #-} module Handler.Common where import Data.FileEmbed (embedFile) import Import -- These handlers embed files in the executable at compile time to avoid a -- runtime dependency, and for efficiency. getFaviconR :: Handler TypedContent cache for a month return $ Typed...
null
https://raw.githubusercontent.com/achirkin/qua-kit/9f859e2078d5f059fb87b2f6baabcde7170d4e95/apps/hs/qua-server/src/Handler/Common.hs
haskell
# OPTIONS_HADDOCK hide, prune # These handlers embed files in the executable at compile time to avoid a runtime dependency, and for efficiency.
module Handler.Common where import Data.FileEmbed (embedFile) import Import getFaviconR :: Handler TypedContent cache for a month return $ TypedContent "image/x-icon" $ toContent $(embedFile "config/favicon.ico") getRobotsR :: Handler TypedContent getRobotsR = return $ Typ...
a8f37b357f19cd55016498dfa5837ca6f9533ea05fbe208c6272558f114e982c
NorfairKing/validity
AesonSpec.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # module Test.Validity.AesonSpec where import Data.Aeson import Data.GenValidity import Data.GenValidity.Aeson () import Data.GenValidity.Text () import Data.Text (Text) import GHC.Generics import Test.Hspec import Test.Validity...
null
https://raw.githubusercontent.com/NorfairKing/validity/35bc8d45b27e6c21429e4b681b16e46ccd541b3b/genvalidity-hspec-aeson/test/Test/Validity/AesonSpec.hs
haskell
# LANGUAGE OverloadedStrings # Just (ForShow "\248")
# LANGUAGE DeriveGeneric # # LANGUAGE TypeApplications # module Test.Validity.AesonSpec where import Data.Aeson import Data.GenValidity import Data.GenValidity.Aeson () import Data.GenValidity.Text () import Data.Text (Text) import GHC.Generics import Test.Hspec import Test.Validity.Aeson spec :: Spec spec = do js...
444eec299d8cc0c2730b2d06f9295146999d24e5569154f9270eb78338327f0c
gedge-platform/gedge-platform
jose_jwa_curve25519.erl
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- %% vim: ts=4 sw=4 ft=erlang noet %%%------------------------------------------------------------------- @author < > 2014 - 2016 , %%% @doc %%% %%% @end Created : 07 Jan 2016 by < > %%%---------------------------...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/jose/src/jwa/jose_jwa_curve25519.erl
erlang
vim: ts=4 sw=4 ft=erlang noet ------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- jose_curve25519 callbacks ==================================================================== jose_curve25519 callbacks =================...
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- @author < > 2014 - 2016 , Created : 07 Jan 2016 by < > -module(jose_jwa_curve25519). -behaviour(jose_curve25519). -export([eddsa_keypair/0]). -export([eddsa_keypair/1]). -export([eddsa_secret_to_public/1]). -e...
90dd269676725be565c124a70a7a2b6e6bbe6c1c9805ae481860344c4cd5d427
ocamllabs/ocaml-modular-implicits
lists.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet Ga...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/letrec/lists.ml
ocaml
********************************************************************* OCaml ...
, projet Gallium , INRIA Rocquencourt Copyright 2012 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . let test = let rec li = 0::1::2::3::4::5...
21edd49e7981baf701a93c95de06e42ac70b8773222123199008755af5a312cc
scalaris-team/scalaris
sup_wpool.erl
2007 - 2013 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software di...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/src/sup_wpool.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2007 - 2013 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > @doc supervisor for wpool workers -module(sup_wpool). -author(''). -vsn('$Id$ '). -behaviour(supervisor). -inc...
145c190d8d1c5dfbe5f6228d3013877eace3748b654cdaba068c3f967823266a
realworldocaml/book
test_clz.ml
[%%import "config.h"] open Base open Stdio let test ~op ~op_name ~to_string x = printf "%s %s = %d\n" op_name (to_string x) (op x) let%expect_test "clz int64" = let open Int64 in let numbers = [ 0L (* Int.num_bits *) ; 1L (* Int.num_bits - 1 *) Int.num_bits - 3 ; max_value ; min_value ; -...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/ocaml_intrinsics/test/test_clz.ml
ocaml
Int.num_bits Int.num_bits - 1 Int.num_bits Int.num_bits - 1 Int.num_bits Int.num_bits - 1 Int.num_bits Int.num_bits - 1 Int.num_bits Int.num_bits - 1 Int.num_bits Int.num_bits - 1
[%%import "config.h"] open Base open Stdio let test ~op ~op_name ~to_string x = printf "%s %s = %d\n" op_name (to_string x) (op x) let%expect_test "clz int64" = let open Int64 in let numbers = Int.num_bits - 3 ; max_value ; min_value ; -1L ] in let f = test ~op:Ocaml_intrinsics....
54f2aea3b385bec7e320b1aa526e7328f1cf6c9b2f49430cdce44cf170272670
EFanZh/EOPL-Exercises
exercise-5.2.rkt
#lang eopl ;; Exercise 5.2 [★] Implement this data type of continuations using a data-structure representation. ;; Grammar. (define the-lexical-spec '([whitespace (whitespace) skip] [comment ("%" (arbno (not #\newline))) skip] [identifier (letter (arbno (or letter digit "_" "-" "?"))) symbol] [number (...
null
https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/solutions/exercise-5.2.rkt
racket
Exercise 5.2 [★] Implement this data type of continuations using a data-structure representation. Grammar. Data structures. Interpreter.
#lang eopl (define the-lexical-spec '([whitespace (whitespace) skip] [comment ("%" (arbno (not #\newline))) skip] [identifier (letter (arbno (or letter digit "_" "-" "?"))) symbol] [number (digit (arbno digit)) number] [number ("-" digit (arbno digit)) number])) (define the-grammar '([program (e...
a4b6f7544eeddc75f49cbd4be9ecd9682d128e0b93993ab7d5f21ed153b67215
essiene/smpp34
smpp34_snum.erl
-module(smpp34_snum). -include("../util.hrl"). -behaviour(gen_server). -export([start_link/2,start_link/3,stop/1]). -export([next/1, ping/1]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(st_snum, {owner, count, monitref, ...
null
https://raw.githubusercontent.com/essiene/smpp34/9206b1d270dc77d65a64a539cbca41b8b003956a/src/mod/smpp34_snum.erl
erlang
-module(smpp34_snum). -include("../util.hrl"). -behaviour(gen_server). -export([start_link/2,start_link/3,stop/1]). -export([next/1, ping/1]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(st_snum, {owner, count, monitref, ...
15ebc81f3b5ad5afbf1c289009d68abdcf88e3d4b662f68179ad9de2372b01a3
tailrecursion/javastar
project.clj
(defproject tailrecursion/javastar "1.1.6" :description "Write Java inside Clojure" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"] [alandipert/interpol8 "0.0.3"] [org.clojure/core.cache "0.6.3"]])
null
https://raw.githubusercontent.com/tailrecursion/javastar/d4da13cca6ae1a83575abba6aec40aa88db3b3e8/project.clj
clojure
(defproject tailrecursion/javastar "1.1.6" :description "Write Java inside Clojure" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"] [alandipert/interpol8 "0.0.3"] [org.clojure/core.cache "0.6.3"]])
48c9f33dfac04733f282e3b9c7f5fbabf0ce1bc23f5abf3d119104d0d30d95ee
haskell-tools/haskell-tools
MergeFields_RenameY.hs
module Refactor.RenameDefinition.MergeFields_RenameY where data A = B { x :: Double } | C { y :: Double } f a = case a of B {} -> x a C {} -> y a
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/examples/Refactor/RenameDefinition/MergeFields_RenameY.hs
haskell
module Refactor.RenameDefinition.MergeFields_RenameY where data A = B { x :: Double } | C { y :: Double } f a = case a of B {} -> x a C {} -> y a
20cc6325b6f87ec5a8b7fed8d4257b73d189637af3760df50186e0bf159a33c0
orbitz/oort
mdb_bhv_say.erl
%%% File : mdb_bhv_say.erl Author : < > %%% Purpose : Say the data in the channel or to the speaker Created : 12 Aug 2003 by < > %%%---------------------------------------------------------------------- %%% This file is part of Manderlbot . %%% Manderlbot is free software ; you can redistribute it an...
null
https://raw.githubusercontent.com/orbitz/oort/a61ec85508917ae9a3f6672a0b708d47c23bb260/manderlbot-0.9.2/src/mdb_bhv_say.erl
erlang
File : mdb_bhv_say.erl Purpose : Say the data in the channel or to the speaker ---------------------------------------------------------------------- (at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See th...
Author : < > Created : 12 Aug 2003 by < > This file is part of Manderlbot . Manderlbot is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or Manderlbot is dis...
3dedb56d0ad395d8e9c46512cf27e1ae4c383ad8ed58d7c95a2d282defabc967
gheber/kenzo
simplicial-groups-test.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 - * (in-package :kenzo-test-9) (in-suite :kenzo-9) (test check-kan (cat-9:cat-init) (let* ((k (cat-9:k-z-1)) (rslt '(1 10 100)) (hat (mapcar #'(lambda (i) (cat-9:face k i 3 rslt)) (cat-9:<a-b...
null
https://raw.githubusercontent.com/gheber/kenzo/48e2ea398b80f39d3b5954157a7df57e07a362d7/test/kenzo-9/simplicial-groups-test.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 - *
(in-package :kenzo-test-9) (in-suite :kenzo-9) (test check-kan (cat-9:cat-init) (let* ((k (cat-9:k-z-1)) (rslt '(1 10 100)) (hat (mapcar #'(lambda (i) (cat-9:face k i 3 rslt)) (cat-9:<a-b> 0 3)))) (dotimes (i 4) (cat-9:check-kan k i 3 ...
f633041830e1c67b7d89bff287ec98c52c6574c5ac9f786500b3eb27eb80fa5e
nodew/haskell-dapr
Configuration.hs
-- | Module : . Client . HttpClient . Configuration -- Description : Manage Configuration stores -- Copyright : (c) -- License : Apache-2.0 -- This module manages Configuration stores which can then be read by application instances on startup or notified of when changes occur. This allows for dynamic con...
null
https://raw.githubusercontent.com/nodew/haskell-dapr/7e3a47835b479f5a54f79bbe3fce303428e55c75/dapr-http-client/src/Dapr/Client/HttpClient/Configuration.hs
haskell
| Description : Manage Configuration stores Copyright : (c) License : Apache-2.0 This module manages Configuration stores which can then be read by application instances on startup or notified of when changes occur. This allows for dynamic configuration. | Get a list of configuration items based on keys fro...
Module : . Client . HttpClient . Configuration module Dapr.Client.HttpClient.Configuration where import Dapr.Client.HttpClient.Internal import Dapr.Client.HttpClient.Req import Dapr.Core.Types import Dapr.Core.Types.Internal import Data.Aeson (FromJSON (parseJSON)) import Data.Bifunctor (bimap) import Data.Ma...
0a65c07ebd0cf1f90b0e2152189572b7be270d26d8b7e8e597fa9f0a7cfc4887
xu-hao/QueryArrow
Plugin.hs
# LANGUAGE MultiParamTypeClasses , GADTs , RankNTypes # module QueryArrow.Plugin where import QueryArrow.Config import QueryArrow.DB.DB import QueryArrow.Syntax.Term import QueryArrow.Semantics.TypeChecker import QueryArrow.DB.AbstractDatabaseList import QueryArrow.Data.Heterogeneous.List type GetDBFunction row = ICA...
null
https://raw.githubusercontent.com/xu-hao/QueryArrow/4dd5b8a22c8ed2d24818de5b8bcaa9abc456ef0d/QueryArrow-common/src/QueryArrow/Plugin.hs
haskell
# LANGUAGE MultiParamTypeClasses , GADTs , RankNTypes # module QueryArrow.Plugin where import QueryArrow.Config import QueryArrow.DB.DB import QueryArrow.Syntax.Term import QueryArrow.Semantics.TypeChecker import QueryArrow.DB.AbstractDatabaseList import QueryArrow.Data.Heterogeneous.List type GetDBFunction row = ICA...
7cf45b235cea0490a7578596d85050abaeecd1b8bbca9b21e9cad58d1a4f34b4
bobzhang/ocaml-book
sexp.ml
TYPE_CONV_PATH "" open Sexplib open Sexplib.Sexp open Sexplib.Conv let (|>) x f = f x (** if you don't provide, it will infer sexp.ml.t *) type t = A | B with sexp (** debug camlp4o -parser Pa_type_conv.cma pa_sexp_conv.cma sexp.ml -printer o *) type reco = { foo : int; bar : string; } with sexp ...
null
https://raw.githubusercontent.com/bobzhang/ocaml-book/09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75/library/code/sexp.ml
ocaml
* if you don't provide, it will infer sexp.ml.t * debug camlp4o -parser Pa_type_conv.cma pa_sexp_conv.cma sexp.ml -printer o * To make use of sexp_option, Conv is required to open * sexp_list sexp_array sexp_bool assumes empty as default value * polymorphic variants here * opaque type * let str = b...
TYPE_CONV_PATH "" open Sexplib open Sexplib.Sexp open Sexplib.Conv let (|>) x f = f x type t = A | B with sexp type reco = { foo : int; bar : string; } with sexp open Conv type reco2 = { x : int option; y : int sexp_option; } with sexp let a = {x=Some 3 ; y = None} |> sexp_of_reco2;; type sum2 = A | B ...
6e12d17779a7a3aba28a9c5a48c68b2a63abc0399986905733a83b0dccc2d9e3
bennn/dissertation
get-typed-racket-base-types.rkt
#lang racket/base ;; Count number of Typed Racket base types ;; TODO some types are not exported from 'base-types'! ;; - Immutable-Vector ;; - Mutable-Vectorof ;; - Sequenceof ;; - Vector so , the total is 199 + 4 = 203 (require typed-racket/base-env/base-types racket/pretty) (define-values [var* stx*] (module->...
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/proposal/talk/src/get-typed-racket-base-types.rkt
racket
Count number of Typed Racket base types TODO some types are not exported from 'base-types'! - Immutable-Vector - Mutable-Vectorof - Sequenceof - Vector (pretty-print type-name*)
#lang racket/base so , the total is 199 + 4 = 203 (require typed-racket/base-env/base-types racket/pretty) (define-values [var* stx*] (module->exports 'typed-racket/base-env/base-types)) (define type-name* (for*/list ((phase+export* (in-list stx*)) (export* (in-list (cdr phase+export*)))) (c...
fbd7eed0af8b2c883ed14e69e1c740fc4621be8f1e3efc3df63cad066671a5b2
jiesoul/soul-talk
views.cljs
(ns soul-talk.views (:require [reagent.core :as r] [re-frame.core :refer [subscribe dispatch]] [soul-talk.routes :refer [navigate!]] [soul-talk.common.views :as c] [soul-talk.pages :as page] [soul-talk.article.views :as article] [soul-talk.tag.vi...
null
https://raw.githubusercontent.com/jiesoul/soul-talk/630de08c6549b206d59023764d5f2576d97d1030/home/src/soul_talk/views.cljs
clojure
article default 根据配置加载不同页面
(ns soul-talk.views (:require [reagent.core :as r] [re-frame.core :refer [subscribe dispatch]] [soul-talk.routes :refer [navigate!]] [soul-talk.common.views :as c] [soul-talk.pages :as page] [soul-talk.article.views :as article] [soul-talk.tag.vi...