_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
a06798716963cbd34dcdffaa69ac2724ab78df247f0a38936ccc06756a801d3d
heroku/logplex
tcp_acceptor.erl
Copyright ( c ) 2010 < > %% %% Permission is hereby granted, free of charge, to any person %% obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without %% restriction, including without limitation the rights to use, %% copy, modify, merge, publis...
null
https://raw.githubusercontent.com/heroku/logplex/fc520c44cf4687726d5d51464d3264ddc6abb0ba/src/tcp_acceptor.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell Software is furnished to do so, subject to the following condi...
Copyright ( c ) 2010 < > files ( the " Software " ) , to deal in the Software without copies of the Software , and to permit persons to whom the included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , -module(tcp_acceptor). -behav...
843ecbe7f890815babdef34d581e9fb931a346b83ee2c3f44194619118403126
elastic/hipio
ParseSpec.hs
{-# LANGUAGE OverloadedStrings #-} module ParseSpec where import Control.Monad (forM_) import Data . Attoparsec . ByteString import qualified Data.ByteString.Char8 as B8 import Data.IP import Data.Monoid ((<>)) import Network.DNS import ...
null
https://raw.githubusercontent.com/elastic/hipio/20760c94f43b35f1654577e26f1c943aed44b305/test/ParseSpec.hs
haskell
# LANGUAGE OverloadedStrings # ignore empty root domains
module ParseSpec where import Control.Monad (forM_) import Data . Attoparsec . ByteString import qualified Data.ByteString.Char8 as B8 import Data.IP import Data.Monoid ((<>)) import Network.DNS import Test.Hspec import Te...
64cdef87a540da5b4429eda9b98e5a469624c5a20fa450536e685fbb1dc2d69d
hoelzl/Clicc
ai-course.lisp
;;;----------------------------------------------------------------------------- Projekt : APPLY - A Practicable And Portable Lisp Implementation ;;; ------------------------------------------------------ ;;; Funktion : Test einfacher Lisp-Funktionen ;;; $ Revision : 1.14 $ ;;; $Log: ai-course.lisp,v $...
null
https://raw.githubusercontent.com/hoelzl/Clicc/cea01db35301144967dc74fd2f96dd58aa52d6ea/src/test/ai-course.lisp
lisp
----------------------------------------------------------------------------- ------------------------------------------------------ Funktion : Test einfacher Lisp-Funktionen $Log: ai-course.lisp,v $ Programmierstil verwendet. Revision 1.11 1993/01/06 16:55:46 kl Revision 1.9 1992/09/04 12:2...
Projekt : APPLY - A Practicable And Portable Lisp Implementation $ Revision : 1.14 $ Revision 1.14 1993/10/19 08:08:15 jh In match1 und match2 die unbenutzte Variable datum - head entfernt . Revision 1.13 1993/06/07 11:11:23 kl Eine zweite Version eines Patternmatchers eingefuegt , die einen a...
abb0fca8ca8d16b76aabfff66b9380c0431211f8066ac09f998a5a4c9483deca
sullyj3/adventofcode2022
Day07.hs
# LANGUAGE TypeFamilies # module Day07 (main) where import AOC import AOC.Parse hiding (State) import Data.Functor.Foldable import Data.Functor.Foldable.TH (makeBaseFunctor) import Data.List (minimum) import qualified Data.Text ...
null
https://raw.githubusercontent.com/sullyj3/adventofcode2022/a57ffd6abbfd155eb3638f6af72e75384f422734/src/Day07.hs
haskell
----------- Parsing -- ----------- ------------- Solutions -- ------------- todo: is this a histo?
# LANGUAGE TypeFamilies # module Day07 (main) where import AOC import AOC.Parse hiding (State) import Data.Functor.Foldable import Data.Functor.Foldable.TH (makeBaseFunctor) import Data.List (minimum) import qualified Data.Text ...
81f0432cbc8865916b7e6af23798f4fcb152873e0057b989160306b32458c983
sjoerdvisscher/data-category
Limit.hs
# LANGUAGE TypeOperators , TypeFamilies , GADTs , RankNTypes , PatternSynonyms , FlexibleContexts , FlexibleInstances , NoImplicitPrelude , UndecidableInstances , ScopedTypeVariables , , MultiParamTypeClasses # TypeOperators , TypeFamilies , GADTs , RankNTyp...
null
https://raw.githubusercontent.com/sjoerdvisscher/data-category/59fbed3a3d06c824a67083e59456a354dc541ec9/Data/Category/Enriched/Limit.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Category.Enriched.Limit License : BSD-style (see the file LICENSE) Maintainer : Stability : experimental Portability : non-portable -----------------------------------------------------------------------...
# LANGUAGE TypeOperators , TypeFamilies , GADTs , RankNTypes , PatternSynonyms , FlexibleContexts , FlexibleInstances , NoImplicitPrelude , UndecidableInstances , ScopedTypeVariables , , MultiParamTypeClasses # TypeOperators , TypeFamilies , GADTs , RankNTyp...
18056ba2458746660d9b0708c3f1018591576bf4d6f0d05ee48c6c873e8852ff
CardanoSolutions/kupo
Address.hs
module Kupo.Data.Cardano.Address where import Kupo.Prelude import Data.Binary.Put ( runPut ) import Data.ByteString.Bech32 ( HumanReadablePart (..) , encodeBech32 ) import qualified Cardano.Ledger.Address as Ledger import qualified Cardano.Ledger.BaseTypes as Ledger import qualified Cardano.Ledge...
null
https://raw.githubusercontent.com/CardanoSolutions/kupo/4904123abeed53f672eb34e0ef10c6c710bda61b/src/Kupo/Data/Cardano/Address.hs
haskell
Address
module Kupo.Data.Cardano.Address where import Kupo.Prelude import Data.Binary.Put ( runPut ) import Data.ByteString.Bech32 ( HumanReadablePart (..) , encodeBech32 ) import qualified Cardano.Ledger.Address as Ledger import qualified Cardano.Ledger.BaseTypes as Ledger import qualified Cardano.Ledge...
ec3b9eac4b5b4b0e8e4861f6e0650e41a3aecc6cdc2841a1e6babfe246d11eaf
janestreet/core
nothing.mli
(** This module extends {{!Base.Nothing}[Base.Nothing]}. *) open! Import * @inline include module type of struct include Base.Nothing end (** It may seem weird that this is identifiable, but we're just trying to anticipate all the contexts in which people may need this. It would be a crying shame if you had so...
null
https://raw.githubusercontent.com/janestreet/core/4b6635d206f7adcfac8324820d246299d6f572fe/core/src/nothing.mli
ocaml
* This module extends {{!Base.Nothing}[Base.Nothing]}. * It may seem weird that this is identifiable, but we're just trying to anticipate all the contexts in which people may need this. It would be a crying shame if you had some variant type involving [Nothing.t] that you wished to make identifiable, but were ...
open! Import * @inline include module type of struct include Base.Nothing end include Identifiable.S with type t := t and type comparator_witness := comparator_witness module Stable : sig module V1 : sig type nonrec t = t [@@deriving bin_io, compare, enumerate, hash, sexp, stable_witness] end end
eb31c88ffe63c4a7e78b11b95b6a448a3949c5d1bf7a7cd4d75081915f8494e2
ruedigergad/bowerick
generator_rotating_circle.clj
; Run via, e.g.: java -jar dist / bowerick-2.8.0 - standalone.jar -G custom - fn -X examples / generator_rotating_circle.clj -I 20 -D /topic / aframe -u " ws:1864 " (fn [producer delay-fn] (let [max_angle (* 2.0 Math/PI) angle_increment (/ max_angle 100.0) circle_steps (range 0.0 max_angle angle_inc...
null
https://raw.githubusercontent.com/ruedigergad/bowerick/b628e274a8e918eff29f68055f96365afe98a23b/examples/generator_rotating_circle.clj
clojure
Run via, e.g.:
java -jar dist / bowerick-2.8.0 - standalone.jar -G custom - fn -X examples / generator_rotating_circle.clj -I 20 -D /topic / aframe -u " ws:1864 " (fn [producer delay-fn] (let [max_angle (* 2.0 Math/PI) angle_increment (/ max_angle 100.0) circle_steps (range 0.0 max_angle angle_increment) c...
73269e8b03a04cc2b6b6325416617b0240ac5ff619a498d5e361b110cceb9be9
sky-big/RabbitMQ
rabbit_misc.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/src/rabbit_misc.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Horrible macro ...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module...
792469658f018fbce4ba236edd7a70b1f4522c7d80ff621f60496d2821c15065
dundalek/liz
lang.clj
(ns liz.impl.lang) ;; set! .. = ;; TODO ^= TODO /= ;; !x -x -%x ~x &x ?x ;; x{} x.* x.? (def binary-ops (conj '#{! * / % ** *% || + - ++ +% -% << >> & | ; ^ == != < > <= >= and or orelse catch *= %= += -= <<= >>= &= |= +%= -%...
null
https://raw.githubusercontent.com/dundalek/liz/7bebb0f0813348cf8515a11c0f2bbe7101e0647c/src/liz/impl/lang.clj
clojure
set! .. = TODO ^= !x -x -%x ~x &x ?x x{} x.* x.? ^
(ns liz.impl.lang) TODO /= (def binary-ops (conj '#{! * / % ** *% || + - ++ +% -% << >> == != < > <= >= and or orelse catch *= %= += -= <<= >>= &= |= +%= -%=} (symbol "^") (symbol "~")))
4fcaaf9c5b385688194dc5ffa6be01be7cb2e6612e909168ec114835f3262985
WorksHub/client
events.cljc
(ns wh.job.events (:require [#?(:cljs cljs-time.core :clj clj-time.core) :as t] [#?(:cljs cljs-time.format :clj clj-time.format) :as tf] [clojure.string :as str] [re-frame.core :refer [dispatch path reg-event-db reg-event-fx]] #?(:cljs [wh.common.fx.google-maps]) ...
null
https://raw.githubusercontent.com/WorksHub/client/487141af7af90b2cf7cbc76d12e0eff089bf6176/common-pages/src/wh/job/events.cljc
clojure
better to display no issues than worry them We do this so that as we're fetching the job there are some fields we already have and therefore can "prefill" If you are changing below logic make sure that wh.response.handler.job is also updated if there's an error set on load, do nothing publish event is dependent...
(ns wh.job.events (:require [#?(:cljs cljs-time.core :clj clj-time.core) :as t] [#?(:cljs cljs-time.format :clj clj-time.format) :as tf] [clojure.string :as str] [re-frame.core :refer [dispatch path reg-event-db reg-event-fx]] #?(:cljs [wh.common.fx.google-maps]) ...
2918add06bb7ef0d97bee7a023f2fc778d0c7a3fc2e9920c42a6b73b02835960
ejgallego/coq-lsp
rq_goals.mli
(************************************************************************) (* Coq Language Server Protocol -- Requests *) Copyright 2019 MINES ParisTech -- Dual License LGPL 2.1 / GPL3 + Copyright 2019 - 2023 Inria -- Dual License LGPL 2.1 / GPL3 + Written by : ...
null
https://raw.githubusercontent.com/ejgallego/coq-lsp/1881796eb3ed77dc16a8dfc97c547480701b454b/controller/rq_goals.mli
ocaml
********************************************************************** Coq Language Server Protocol -- Requests **********************************************************************
Copyright 2019 MINES ParisTech -- Dual License LGPL 2.1 / GPL3 + Copyright 2019 - 2023 Inria -- Dual License LGPL 2.1 / GPL3 + Written by : val goals : Request.position
d5d561eecb808d4fa0c41243a0731e68a8679ad551ce0f7b043d0e60ebe88fcf
geophf/1HaskellADay
Exercise.hs
module Y2018.M02.D13.Exercise where - Okay , SOME of the articles from yesterday 's problem have unicode , and that plays havok with plain - old String values . Of course , the solution to that is to use Text values , instead , but will we ? Nooooooooooooo ! Of course not ! Instead , we 're going to remo...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2018/M02/D13/Exercise.hs
haskell
}
module Y2018.M02.D13.Exercise where - Okay , SOME of the articles from yesterday 's problem have unicode , and that plays havok with plain - old String values . Of course , the solution to that is to use Text values , instead , but will we ? Nooooooooooooo ! Of course not ! Instead , we 're going to remo...
bf5dee1cc993f3cdb1434c602e8fd0623fba4dc370a4e255ad9fffbb0a304833
unison-code/unison
HexagonRegisterClassDecl.hs
This file has been generated by specsgen . Do not modify by hand ! module Unison.Target.Hexagon.SpecsGen.HexagonRegisterClassDecl (HexagonRegisterClass(..)) where data HexagonRegisterClass = CtrRegs | CtrRegs64 | DoubleRegs | F32 ...
null
https://raw.githubusercontent.com/unison-code/unison/9f8caf78230f956a57b50a327f8d1dca5839bf64/src/unison/src/Unison/Target/Hexagon/SpecsGen/HexagonRegisterClassDecl.hs
haskell
This file has been generated by specsgen . Do not modify by hand ! module Unison.Target.Hexagon.SpecsGen.HexagonRegisterClassDecl (HexagonRegisterClass(..)) where data HexagonRegisterClass = CtrRegs | CtrRegs64 | DoubleRegs | F32 ...
095bda806f7597d8e233f1ba834b10c0af5f00e32aa86b0e9823333780fd238a
byteally/dbrecord
Query.hs
# OPTIONS_GHC -Wno - orphans # {-# LANGUAGE GADTs #-} # LANGUAGE TypeFamilies # {-# LANGUAGE DeriveFunctor #-} # LANGUAGE GeneralizedNewtypeDeriving # module DBRecord.Sqlite.Internal.Query where import qualified DBRecord.Internal.Sql.SqlGen as SQ import qu...
null
https://raw.githubusercontent.com/byteally/dbrecord/991efe9a293532ee9242b3e9a26434cf16f5b2a0/dbrecord-sqlite-simple/src/DBRecord/Sqlite/Internal/Query.hs
haskell
# LANGUAGE GADTs # # LANGUAGE DeriveFunctor #
# OPTIONS_GHC -Wno - orphans # # LANGUAGE TypeFamilies # # LANGUAGE GeneralizedNewtypeDeriving # module DBRecord.Sqlite.Internal.Query where import qualified DBRecord.Internal.Sql.SqlGen as SQ import qualified DBRecord.Sqlite.Internal.Sql.Pretty as SQ import Database.SQLite.Simple as SQS i...
0f2874243f43ab6764fe52b9ec541961d64e9d9081a533b8356d947d6187ba60
alura-cursos/clojure-introducao
aula3.clj
(ns curso.aula3) (defn valor-descontado "Retorna o valor com desconto de 10% se o valor bruto for estritamente maior que 100." [valor-bruto] (if (> valor-bruto 100) (let [taxa-de-desconto (/ 10 100) desconto (* valor-bruto taxa-de-desconto)] (- valor-bruto desconto)) valor-bruto)) (prin...
null
https://raw.githubusercontent.com/alura-cursos/clojure-introducao/9b37f6cca3c33dd2382a3b44c87896d33e0246ae/src/curso/aula3.clj
clojure
PREDICATE HIGHER ORDER FUNCTIONS IMUTABILIBIDADe
(ns curso.aula3) (defn valor-descontado "Retorna o valor com desconto de 10% se o valor bruto for estritamente maior que 100." [valor-bruto] (if (> valor-bruto 100) (let [taxa-de-desconto (/ 10 100) desconto (* valor-bruto taxa-de-desconto)] (- valor-bruto desconto)) valor-bruto)) (prin...
53103031b54a6133001a5682843e273a8a1b2b4057289f0fd2995805a342a0f4
youjinbou/gmaths
vec4.ml
(** a very simple 4D vector module *) module type S = sig module Scalar : Vec.SCALAR type scalar = Scalar.t type t type tuple_t = scalar * scalar * scalar * scalar (** vector dimensions *) val size : int (** null vector *) val null : unit -> t * < 1 ; 1 ; 1 ; 1 > val one : unit -> t (** unit ve...
null
https://raw.githubusercontent.com/youjinbou/gmaths/1a507444071941a45b39f8c65e90c37427ea68a3/src/vec4.ml
ocaml
* a very simple 4D vector module * vector dimensions * null vector * unit vector generator * tuple conversion * array conversion * vector creation * accessors * map operators * opposit vector operator * additions * vector scaling * this is actually scale and add * 4D dot product * cross product * equival...
module type S = sig module Scalar : Vec.SCALAR type scalar = Scalar.t type t type tuple_t = scalar * scalar * scalar * scalar val size : int val null : unit -> t * < 1 ; 1 ; 1 ; 1 > val one : unit -> t val unit : int -> t val to_tuple : t -> scalar * scalar * scalar * scalar val of_tuple : sc...
0e2ddc6daedf9c7289754515e04bfc4e21d5c06dd8c2e704361a83d51d7cf3e1
data61/Mirza
Servant.hs
module Mirza.Trails.Client.Servant ( -- * Public API health , versionInfo , getTrailByEventId , getTrailBySignature , addTrail ) where import Mirza.Trails.API import Mirza.Trails.Types import Mirza.Common.GS1Orphans () import Mirza.Common.Types import ...
null
https://raw.githubusercontent.com/data61/Mirza/24e5ccddfc307cceebcc5ce26d35e91020b8ee10/projects/trails/src/Mirza/Trails/Client/Servant.hs
haskell
* Public API
module Mirza.Trails.Client.Servant ( health , versionInfo , getTrailByEventId , getTrailBySignature , addTrail ) where import Mirza.Trails.API import Mirza.Trails.Types import Mirza.Common.GS1Orphans () import Mirza.Common.Types import Data.GS1.Event...
74ebcc3f1aebd04a6379e40e13904b969a3641268fa42ec1d2a62f43b370ae51
rtoal/ple
vector_list.hs
import Control.Monad (guard) this represents the same type alias for a Vector , except its of type list ; in practice , it makes more sense to use a list for a Vector , because lists have more operational capabilities than tuples , which can come in handy when performing vector operations , such as the dot product ...
null
https://raw.githubusercontent.com/rtoal/ple/b24cab4de2beca6970833a09d05af6ef96ec3921/haskell/vector_list.hs
haskell
import Control.Monad (guard) this represents the same type alias for a Vector , except its of type list ; in practice , it makes more sense to use a list for a Vector , because lists have more operational capabilities than tuples , which can come in handy when performing vector operations , such as the dot product ...
51e628b2c27d35e19f940f522539ed9c43bbba82c4de1c8888752ae79e79634c
ocaml-flambda/ocaml-jst
asmpackager.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/1bb6c797df7c63ddae1fc2e6f403a0ee9896cc8e/asmcomp/asmpackager.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 2002 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the " Package " a set of .cmx/.o files into one .cmx/.o file having the original compilation units as ...
d23e90a01d1135b1a5c77e843b0b831a18ffa6ce39cb13f99ff47e47834e4fcd
naoiwata/sicp
ex3.19.scm
;; ;; @author naoiwata SICP Chapter3 Exercise 3.19 . ;; (define (make-cycle x) (set-cdr! (last-pair x) x) x) (define (cycle? x) (define (cycle-iter a b) (cond ((eq? a b) #t) ((not (and (pair? b) (pair? (cdr b)))) #f) (else (cycle-iter (cdr a) (cddr b))))) (if (pair? x) ...
null
https://raw.githubusercontent.com/naoiwata/sicp/7314136c5892de402015acfe4b9148a3558b1211/chapter3/ex3.19.scm
scheme
@author naoiwata test #f #t END
SICP Chapter3 Exercise 3.19 . (define (make-cycle x) (set-cdr! (last-pair x) x) x) (define (cycle? x) (define (cycle-iter a b) (cond ((eq? a b) #t) ((not (and (pair? b) (pair? (cdr b)))) #f) (else (cycle-iter (cdr a) (cddr b))))) (if (pair? x) (cycle-iter x (cdr x)) ...
d8ac26306e741cc264dcf18038f44cf5f2ea3f4ca0fd1ab55bb6a6f0126affdb
lopec/LoPEC
power_check.erl
%%%------------------------------------------------------------------- @private @author ( C ) 2009 , Clusterbusters %%% @doc Measure power consumption %%% @end Created : 23 Oct 2009 by %%%------------------------------------------------------------------- -module(power_check). -include("../include/env.hrl")...
null
https://raw.githubusercontent.com/lopec/LoPEC/29a3989c48a60e5990615dea17bad9d24d770f7b/trunk/lib/slave/src/power_check.erl
erlang
------------------------------------------------------------------- @doc Measure power consumption @end ------------------------------------------------------------------- -------------------------------------------------------------------- @doc Ask the system what load it has. @end ------------------------------...
@private @author ( C ) 2009 , Clusterbusters Created : 23 Oct 2009 by -module(power_check). -include("../include/env.hrl"). -export([get_load/1, get_watt/1, get_watt_per_task/1]). ) - > Load get_load(Period) -> cpu_sup:start(), case Period of l1min -> T = avg1; l5min -> T = avg...
d57460559ad60bdcb08d9687dd5f1a7f6f0641b9376cd08a83ff660de7e25b3b
collaborativetrust/WikiTrust
prune_analysis.ml
Copyright ( c ) 2007 - 2008 The Regents of the University of California All rights reserved . Authors : Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : 1 . Redistributions of source code must retain the ...
null
https://raw.githubusercontent.com/collaborativetrust/WikiTrust/9dd056e65c37a22f67d600dd1e87753aa0ec9e2c/analysis/prune_analysis.ml
ocaml
* This module contains a class that prunes the revisions in a page This is a dynamically modifiable vector of revisions, used as a buffer. revs[0] is the oldest, and is the revision number offset (see later, offset is a field of page) for the page. No titles in the xml file! * This method is ...
Copyright ( c ) 2007 - 2008 The Regents of the University of California All rights reserved . Authors : Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : 1 . Redistributions of source code must retain the ...
826377bf4d5edf19ba4149ad58fbe0d979dd7eef40ac40d1e6642d3641e5a60a
solita/mnt-teet
openlayers.cljs
(ns teet.map.openlayers "OpenLayers 3 kartta." (:require [cljs.core.async :refer [<! >! chan timeout alts!] :as async] [goog.style :as gstyle] [ol] [ol.Attribution] [ol.Map] [ol.MapEvent] [ol.Overlay] ;; popu...
null
https://raw.githubusercontent.com/solita/mnt-teet/b4754ea75fd9be08aa0c099360ea337b1a975a71/app/frontend/src/cljs/teet/map/openlayers.cljs
clojure
popup [teet.geo :as geo] [teet.style.base :as style-base] [teet.style.colors :as colors] Used by google maps, open street map Atom for active map interactions, so removing them is easier These atoms can be used to set custom handlers for map clicks and hovers. If set, they override the default behavior. Note that...
(ns teet.map.openlayers "OpenLayers 3 kartta." (:require [cljs.core.async :refer [<! >! chan timeout alts!] :as async] [goog.style :as gstyle] [ol] [ol.Attribution] [ol.Map] [ol.MapEvent] [ol.View] [ol.events.condition :as conditio...
8398183639caf3bc4bfc81381d2b736e0180b5dd5c7562675a5aa465068aef2a
dyoo/whalesong
m1.rkt
(module m1 '#%kernel (#%require "m2.rkt"))
null
https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/tests/module-test/m1.rkt
racket
(module m1 '#%kernel (#%require "m2.rkt"))
0b76f5be08b8887e7e404eb23b5f45dbd9f24c93e1585a876be5f0cfa24aaac5
eschulte/software-evolution
repair-lisp.lisp
;; repair using software evolution (require :software-evolution) (in-package :software-evolution) ;; ensure the runner is build and ready (unless (probe-file "lisp-runner") (error "Need to build the lisp-runner (make test/gcd/lisp-runner).")) ;; set required global parameters (setq *pos-test-num* 2) (setq *neg-test...
null
https://raw.githubusercontent.com/eschulte/software-evolution/dbf5900d1eef834b93eeb00eca34eb7c80e701b6/test/quick-sort/repair-lisp.lisp
lisp
repair using software evolution ensure the runner is build and ready set required global parameters build up a starting population evolve a repair conditionally save the repair
(require :software-evolution) (in-package :software-evolution) (unless (probe-file "lisp-runner") (error "Need to build the lisp-runner (make test/gcd/lisp-runner).")) (setq *pos-test-num* 2) (setq *neg-test-num* 8) (setq *test-script* "./test-lisp.sh") (setq *max-population-size* 100) (defvar *qs* (lisp-from-file ...
4806685950efb02336b4d8293b5916f8cbd79fffee8c3e9ffa961f1447043584
SKS-Keyserver/sks-keyserver
tester.ml
(***********************************************************************) (* tester.ml *) (* *) Copyright ( C ) 2002 , 2003 , 2004 , 2005 , 2006 , 2007 , 2008 , 2009 , 2010 , 2...
null
https://raw.githubusercontent.com/SKS-Keyserver/sks-keyserver/a4e5267d817cddbdfee13d07a7fb38a9b94b3eee/tester.ml
ocaml
********************************************************************* tester.ml redistribute it and/or modify it under ...
Copyright ( C ) 2002 , 2003 , 2004 , 2005 , 2006 , 2007 , 2008 , 2009 , 2010 , 2011 , 2012 , 2013 and Contributors This file is part of SKS . SKS is free software ; you can Public License as published by the Free Software Foundation ; either version 2 of the License , or...
306cd09f868799b299373d0ee3e5621d46399c1677eb0e5586c73c6b9d8ab70f
gilith/hol-light
waterfall.ml
(******************************************************************************) FILE : waterfall.ml (* DESCRIPTION : `Waterfall' of heuristics. Clauses pour over. *) (* Some evaporate. Others collect in a pool to be cleaned up. *...
null
https://raw.githubusercontent.com/gilith/hol-light/f3f131963f2298b4d65ee5fead6e986a4a14237a/Boyer_Moore/waterfall.ml
ocaml
**************************************************************************** DESCRIPTION : `Waterfall' of heuristics. Clauses pour over. Some evaporate. Others collect in a pool to be cleaned up. Heuristics that act on a clause send the new clauses to ...
FILE : waterfall.ml AUTHOR : R.J.Boulton DATE : 9th May 1991 LAST MODIFIED : R.J.Boulton DAT...
f46a8a37fdcaa597b17603df21155037e0746293a54f297d68403a5bf0e11624
well-typed-lightbulbs/ocaml-esp32
escape.ml
(* TEST * toplevel *) (* Errors *) let invalid = "\99" ;; let invalid = "\999" ;; let invalid = "\o777" ;; let invalid = "\o77" ;; let invalid = "\o99" ;;
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/lexing/escape.ml
ocaml
TEST * toplevel Errors
let invalid = "\99" ;; let invalid = "\999" ;; let invalid = "\o777" ;; let invalid = "\o77" ;; let invalid = "\o99" ;;
c701ed956e4fd39841068481fd551904c331cb34d5e91792b59d25b212a5401e
opencog/opencog
data_#1.scm
Test # 1 ;; anaphor is "it" ;; antecedent is "plural" ;; Expected result: ;; Rejection Connection between two clauses (ListLink (AnchorNode "CurrentResolution") (WordInstanceNode "anaphor") (WordInstanceNode "antecedent") ) (ListLink (AnchorNode "CurrentPronoun") (WordInstanceNode "anaphor")...
null
https://raw.githubusercontent.com/opencog/opencog/53f2c2c8e26160e3321b399250afb0e3dbc64d4c/tests/nlp/anaphora/data/propose/filter-%2310/data_%231.scm
scheme
anaphor is "it" antecedent is "plural" Expected result: Rejection filter tests
Test # 1 Connection between two clauses (ListLink (AnchorNode "CurrentResolution") (WordInstanceNode "anaphor") (WordInstanceNode "antecedent") ) (ListLink (AnchorNode "CurrentPronoun") (WordInstanceNode "anaphor") ) (ListLink (AnchorNode "CurrentProposal") (WordInstanceNode "anteced...
9133ffeb3debd60f593f6426652e970d641ebc538b109948916cfb57798268cf
rajasegar/cl-bootstrap
demo.lisp
(defpackage :cl-bootstrap-demo (:use :cl :hunchentoot :cl-who :parenscript :cl-bootstrap) (:export :start-demo)) (in-package :cl-bootstrap-demo) (setf (cl-bootstrap::html-mode) :html5) (defmacro bs-btn ((&key (type "default") (size nil)) &body body) `(with-html-output (*standard-output*) (:button :typ...
null
https://raw.githubusercontent.com/rajasegar/cl-bootstrap/c6a1150bd3609817634d8c11d53ac1e97f114796/demo/demo.lisp
lisp
(defpackage :cl-bootstrap-demo (:use :cl :hunchentoot :cl-who :parenscript :cl-bootstrap) (:export :start-demo)) (in-package :cl-bootstrap-demo) (setf (cl-bootstrap::html-mode) :html5) (defmacro bs-btn ((&key (type "default") (size nil)) &body body) `(with-html-output (*standard-output*) (:button :typ...
2740c3e6c278aaea416b2ca5aa57685858a9ca3dcef2aaebbd98b2ca278b31a5
UU-ComputerScience/uhc
mutrec-tsig2.hs
-- mutual recursive type + type type Y a = X a type X a = Y a
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/test/regress/11/mutrec-tsig2.hs
haskell
mutual recursive type + type
type Y a = X a type X a = Y a
2b84bd989255cbc984a92405819a9d3bdc2eebf8ae2a8e5467f1c2435ac46483
gilmaso/btc-trading
polling.clj
Copyright ( C ) 2013 gilmaso ; ; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ; (at your option) any later version. ; ; This program is distributed in ...
null
https://raw.githubusercontent.com/gilmaso/btc-trading/d6b56ed5e970e60b2daa5ddc8793a1ae6eef8238/src/btc_trading/polling.clj
clojure
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public...
Copyright ( C ) 2013 gilmaso it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License Email : (ns btc-trading.polling (:gen-class)) (def ^:private spawned-t...
dca8e9dc761eaeb31b7595e47f70135ffc7e996b4056a97689e7936a97c515b1
xeqi/peridot
project.clj
(defproject peridot "0.5.4" :description "Interact with ring apps" :url "" :min-lein-version "2.0.0" :license {:name "Eclipse Public License" :url "-v10.html"} Use clojure 1.3 for pom generation [org.clojure/clojure "1.5.1"] [ring/ring-mock "0.4.0"] ...
null
https://raw.githubusercontent.com/xeqi/peridot/48b963b4d314c0d198f090bac98b30ab0c7b704a/project.clj
clojure
use the relevant clojure version for testing
(defproject peridot "0.5.4" :description "Interact with ring apps" :url "" :min-lein-version "2.0.0" :license {:name "Eclipse Public License" :url "-v10.html"} Use clojure 1.3 for pom generation [org.clojure/clojure "1.5.1"] [ring/ring-mock "0.4.0"] ...
306e5dbd14a705f6704cfc3e901d19a221015308c7a6b7bc49479a5311917eea
antifuchs/aoi-swank-plugin
SwankPlugin.clj
Copyright ( c ) . All rights reserved . ;;; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) ;;; which can be found in the file epl-v10.html at the root of this distribution. ;;; By using this software in any fashion, you are agreeing to be bound by ;;; t...
null
https://raw.githubusercontent.com/antifuchs/aoi-swank-plugin/e1a9d281b94d23d31d51451e2eb0186df9bcf0e2/src/org/reprap/artofillusion/SwankPlugin.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.
Copyright ( c ) . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns org.reprap.artofillusion.SwankPlugin (:gen-class :implements [artofillusion.Plugin] :prefix "plugin-" :methods [[getVersion [] String]])) (defn plugin-getVersion [this] "0.0") (defn plugin-processMessage [this mess...
26ed87b56158c58873408ab09c0d256a8dcfa7ce2d5aaa96060ae4a893892ddf
charlieg/Sparser
globals.lisp
;;; -*- Mode:Lisp; Syntax:Common-Lisp; Package:SPARSER copyright ( c ) 1995 -- all rights reserved ;;; ;;; File: "globals" ;;; module: "interface;workbench:def rule:" Version : 0.1 August 1995 broken out of [ define - rule ] 4/27 . Added to a little .. 6/14 0.1 ( 8/28 ) changed the name of ...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/interface/workbench/def-rule/globals.lisp
lisp
-*- Mode:Lisp; Syntax:Common-Lisp; Package:SPARSER File: "globals" module: "interface;workbench:def rule:" --------- globals ---------
copyright ( c ) 1995 -- all rights reserved Version : 0.1 August 1995 broken out of [ define - rule ] 4/27 . Added to a little .. 6/14 0.1 ( 8/28 ) changed the name of the dossier - file symbol (in-package :sparser) (defparameter *rule-defining-window* nil "This will be bound to either the sch...
f05455aa10ac33920e96ad528fbca9e1d5724eb9dfc69da82caf282cbc6b6229
fmi/clojure-examples
eval_test.clj
(ns interpreter.eval-test (:use clojure.test interpreter.repl [interpreter.parser :only (parse stmt prog)] [interpreter.eval])) (defn run [code bindings] (-> code (parse stmt) (evaluate (extend-env bindings (default-env))))) (deftest env-test (is (= (lookup (extend-env '{a 1} (empty-env...
null
https://raw.githubusercontent.com/fmi/clojure-examples/46ec0fe7bdfdfccde1ab74a94c64dbd73ea58269/2013/08-interpreter/test/interpreter/eval_test.clj
clojure
(ns interpreter.eval-test (:use clojure.test interpreter.repl [interpreter.parser :only (parse stmt prog)] [interpreter.eval])) (defn run [code bindings] (-> code (parse stmt) (evaluate (extend-env bindings (default-env))))) (deftest env-test (is (= (lookup (extend-env '{a 1} (empty-env...
eb496ff4f61856df71412c9067a2fde18a8d66c29be4727a6ce7a8e698557575
discus-lang/ddc
Context.hs
module DDC.Core.Flow.Transform.Slurp.Context ( insertContext , mergeContexts , resizeContext ) where import DDC.Core.Flow.Context import DDC.Core.Flow.Transform.Slurp.Error import DDC.Core.Flow.Transform.Slurp.Resize import DDC.Core.Flow.Prim import DDC.Core.Flow.Exp.Simple.Compounds import DDC.Core.Flow.E...
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core-flow/DDC/Core/Flow/Transform/Slurp/Context.hs
haskell
"embed" is to be pushed inside "into" otherwise, no promises are made about merging these cannot split appends. but only called by insertContext, which does not take appends anyway.
module DDC.Core.Flow.Transform.Slurp.Context ( insertContext , mergeContexts , resizeContext ) where import DDC.Core.Flow.Context import DDC.Core.Flow.Transform.Slurp.Error import DDC.Core.Flow.Transform.Slurp.Resize import DDC.Core.Flow.Prim import DDC.Core.Flow.Exp.Simple.Compounds import DDC.Core.Flow.E...
675e1aff845c6117d7583e3d6be65ad954d8f0107c7cf9036ce4dc822fd06550
slyrus/mcclim-old
medium.lisp
;;; -*- Mode: Lisp; Package: CLIM-CLX -*- ( c ) copyright 1998,1999,2000,2001 by ( ) ( c ) copyright 2000 by ;;; Iban Hatchondo () ( ) ( ) ( c ) copyright 2001 by ( ) ( c ) copyright 1998,1999 by ;;; This library is free software; you can redistribute it and...
null
https://raw.githubusercontent.com/slyrus/mcclim-old/354cdf73c1a4c70e619ccd7d390cb2f416b21c1a/Backends/CLX/medium.lisp
lisp
-*- Mode: Lisp; Package: CLIM-CLX -*- Iban Hatchondo () This library is free software; you can redistribute it and/or either This library 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 PURPOS...
( c ) copyright 1998,1999,2000,2001 by ( ) ( c ) copyright 2000 by ( ) ( ) ( c ) copyright 2001 by ( ) ( c ) copyright 1998,1999 by modify it under the terms of the GNU Library General Public version 2 of the License , or ( at your option ) any later version . L...
54dd0386e6b7e0f6e333b9a550be85c8040164fb22aec21e4eb3351f07baceee
ijvcms/chuanqi_dev
util_date.erl
%%%------------------------------------------------------------------- @author zhengsiying ( C ) 2015 , < COMPANY > %%% @doc 通用时间函数 %%% @end Created : 18 . 七月 2015 下午4:51 %%%------------------------------------------------------------------- -module(util_date). %% API -export([ unixtime/0, longunixtime/0,...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/api/util/util_date.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API ==================================================================== API functions ==================================================================== -----------...
@author zhengsiying ( C ) 2015 , < COMPANY > 通用时间函数 Created : 18 . 七月 2015 下午4:51 -module(util_date). -export([ unixtime/0, longunixtime/0, is_same_days/1, is_same_date/2, datetime_to_string/1, get_week/0, check_week_time/1, check_last_week_time/1, get_today_unixtime/0, get_tomorrow_unixtime/0, c...
668b912ead7449b09877ba5f5ebca3b2e88d795de085108921d2be0c47c8bad9
ucsd-progsys/liquidhaskell
Maps1.hs
module Maps1 where import Prelude hiding (lookup) import Data.Map {-@ prop0 :: _ -> x:_ -> y:{_ | y == x} -> TT @-} prop0 :: Map Int Int -> Int -> Int -> Bool prop0 m x y = (a == b) where a = m ! x b = m ! y {-@ prop1 :: _ -> x:_ -> y:{_ | y /= x} -> TT @-} prop1 :: Map Int Int ...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/20cd67af038930cb592d68d272c8eb1cbe3cb6bf/tests/pos/Maps1.hs
haskell
@ prop0 :: _ -> x:_ -> y:{_ | y == x} -> TT @ @ prop1 :: _ -> x:_ -> y:{_ | y /= x} -> TT @ @ prop2 :: _ -> x:_ -> y:{_ | y == x} -> TT @ --------------------------------------------------------------------- @ embed Map as Map_t @ @ assume insert :: (Ord k) => key:k -> value:v -> m:Map k v -> {n:Map k v | n ...
module Maps1 where import Prelude hiding (lookup) import Data.Map prop0 :: Map Int Int -> Int -> Int -> Bool prop0 m x y = (a == b) where a = m ! x b = m ! y prop1 :: Map Int Int -> Int -> Int -> Bool prop1 m x y = (z == 10) where m1 = insert x 10 m m2 = insert y...
2fd8522c0e9962271c1760565981f93d405267de48fdb40e01c5df530eb365c8
brianium/clean-todos
update_todo.clj
(ns todos.core.use-case.update-todo (:require [yoose.async :refer :all] [todos.core.entity :as entity] [todos.core.entity.todo :as todo] [todos.core.use-case :as uc])) (defn- strip-nils "Removes nils from a todo" [todo] (into {} (filter (comp some? val) todo))) (defusecas...
null
https://raw.githubusercontent.com/brianium/clean-todos/fca2320fe3bca052787c4ace479ce69d23d58a12/src/todos/core/use_case/update_todo.clj
clojure
(ns todos.core.use-case.update-todo (:require [yoose.async :refer :all] [todos.core.entity :as entity] [todos.core.entity.todo :as todo] [todos.core.use-case :as uc])) (defn- strip-nils "Removes nils from a todo" [todo] (into {} (filter (comp some? val) todo))) (defusecas...
8ad6274c7b69f2a9e4019ada92d74512ff565b3bedeee4b701b93f022736a440
pirapira/coq2rust
ppvernac.mli
(************************************************************************) 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/printing/ppvernac.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * This module implements pretty-prin...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * include Ppvernacsig.Pp modu...
d4cdfcdb5b86a75360e2e0b02adf7eb4fd9b07f3d538a74671ff59d823973b1d
xapi-project/xen-api-libs
zerocheck.mli
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * 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 ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api-libs/d603ee2b8456bc2aac99b0a4955f083e22f4f314/stdext/zerocheck.mli
ocaml
* [is_all_zeroes x len] returns true if the substring is all zeroes
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * 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 ; version 2.1 only . with the special * exception on linking describe...
4ec7d33ed44f100689c7e717ae9af16972435bed19a4edda2506a3443e0ac6be
mukul-rathi/bolt
good_comments.ml
open Core open Print_frontend_ir let%expect_test "Comments interspersed with code" = print_frontend_ir " void main(){ /* This is a comment - it should not be parsed */ let x = 4; // Can occur after a line let y /*Or even midway*/ = 5; /* Or before */ x /* Comments Can Span...
null
https://raw.githubusercontent.com/mukul-rathi/bolt/1faf19d698852fdb6af2ee005a5f036ee1c76503/tests/frontend/expect/ir_gen/good_comments.ml
ocaml
open Core open Print_frontend_ir let%expect_test "Comments interspersed with code" = print_frontend_ir " void main(){ /* This is a comment - it should not be parsed */ let x = 4; // Can occur after a line let y /*Or even midway*/ = 5; /* Or before */ x /* Comments Can Span...
13aa25d7c1d032f2d9d28a6e3882f559ff285c3996177caf064fd1c82fa5f784
haroldcarr/learn-haskell-coq-ml-etc
Learn_You_a_Haskell.hs
Created : 2011 Dec 29 ( Thu ) 19:40:46 by . Last Modified : 2013 Aug 26 ( Mon ) 18:08:18 by . Created : 2011 Dec 29 (Thu) 19:40:46 by carr. Last Modified : 2013 Aug 26 (Mon) 18:08:18 by carr. -} import Data.List import System.Random import qualified Data.ByteString.Lazy as B import qualified Data...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/book/2011-Learn_You_a_Haskell/Learn_You_a_Haskell.hs
haskell
defined in same directory as this current file. ======================================================================== -- interpreter ghci -- load/resoad a file :l <file>.hs :r ======================================================================== infinite list ==========================================...
Created : 2011 Dec 29 ( Thu ) 19:40:46 by . Last Modified : 2013 Aug 26 ( Mon ) 18:08:18 by . Created : 2011 Dec 29 (Thu) 19:40:46 by carr. Last Modified : 2013 Aug 26 (Mon) 18:08:18 by carr. -} import Data.List import System.Random import qualified Data.ByteString.Lazy as B import qualified Data...
24cc4029273a19432902540b6a5fddec519d36974eda4a527f43a8ecdb640a9a
g-andrade/locus
locus_util.erl
Copyright ( c ) 2017 - 2023 %% %% Permission is hereby granted, free of charge, to any person obtaining a %% copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation %% the rights to use, copy, modify, merge, publish, di...
null
https://raw.githubusercontent.com/g-andrade/locus/c731b1a4a819e998c60d90a0484e75e36966aa8c/src/locus_util.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Software is furnished to do so, subject to the following conditions: The above copyright not...
Copyright ( c ) 2017 - 2023 to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR ...
b722c4d0342c570eb8495048a5182771291723a218f1a0509e6be1f823af0ca7
rabbitmq/rabbitmq-amqp1.0
amqp10_client_SUITE.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(amqp10_client_SUITE). -include_lib("comm...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-amqp1.0/1477a5e03498fc5171c3949caa827ca31a90eb69/test/amqp10_client_SUITE.erl
erlang
------------------------------------------------------------------- Testsuite setup/teardown. ------------------------------------------------------------------- TESTS declare a quorum queue create a configuration map wait for credit to be received create a new message using a delivery-tag, body and indicate...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module(amqp10_client_SUITE). -include_lib("common_tes...
e2beade654a7304055a7b21edd9ddca601cf7fae3fc0ddac18eac6e7ff3d8760
ucsd-progsys/liquid-sf
Intervals.hs
{-@ LIQUID "--exact-data-con" @-} {-@ LIQUID "--no-adt" @-} {-@ LIQUID "--prune-unsorted" @-} {-@ LIQUID "--higherorder" @-} -- just to disable all qualifiers {-@ LIQUID "--diff" @-} {- LIQUID "--ple" @-} {-@ LIQUID "--no-termination" @-} module Intervals where import qualified Data.Se...
null
https://raw.githubusercontent.com/ucsd-progsys/liquid-sf/10f864e0521ef5920bb35af40a14c086f94370dd/Intervals.hs
haskell
@ LIQUID "--exact-data-con" @ @ LIQUID "--no-adt" @ @ LIQUID "--prune-unsorted" @ @ LIQUID "--higherorder" @ just to disable all qualifiers @ LIQUID "--diff" @ LIQUID "--ple" @ @ LIQUID "--no-termination" @ | Invariant: Intervals are non-empty @ data Interval = I { from :: Int ...
module Intervals where import qualified Data.Set as S import Language.Haskell.Liquid.NewProofCombinators import RangeSet type Offset = Int data Interval = I { from :: Offset , to :: Offset } deriving (Show) @ type OrdIntervals N = [ { v : Interval | N < = from v}]<{\fld v - > ( to fld ...
370887f2ae07e9a993d2cbe71be89053660ebe70a4fe1426e62fdc5a5b51e9d7
replikativ/datahike
measure_test.clj
(ns benchmark.measure-test (:require [clojure.test :refer [is deftest testing]] [benchmark.measure :as b] [benchmark.config :as c])) (def options {:output-format "edn" :db-samples 1 :data-types [:int :str] :iterations 1, :data-found-opts...
null
https://raw.githubusercontent.com/replikativ/datahike/6c1468fd833ed8079b482fe934ae08f1ca2dda3c/benchmark/test/benchmark/measure_test.clj
clojure
(* (count common-loop) (count :data-types) (count :data-found-opts?)) (* (count common-loop) (+ (* (count var-queries) (count :data-types) (count :data-found-opts?)))) (* (count non-var-queries) (count :data-types)) (count aggregate-queries) ...
(ns benchmark.measure-test (:require [clojure.test :refer [is deftest testing]] [benchmark.measure :as b] [benchmark.config :as c])) (def options {:output-format "edn" :db-samples 1 :data-types [:int :str] :iterations 1, :data-found-opts...
38a8a63242ae598320f04f8999a8462b0cfd36b0bfef55feea305919cbddda72
donaldsonjw/bigloo
heap.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / comptime / Engine / heap.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/comptime/Engine/heap.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * Dump heaps for debugging */ *===========================...
* serrano / prgm / project / bigloo / comptime / Engine / heap.scm * / * Author : * / * Creation : Tue Aug 14 09:36:34 2007 * / * Last change : Mon Oct 14 14:23:48 2013 ( serrano ) * / * Copy...
4e2dd3b36794dc3539a4c7ac44e45654cdb765627ff7a64bbf04c051002a82c7
metabase/metabase
filter.cljc
(ns metabase.lib.schema.filter "Schemas for the various types of filter clauses that you'd pass to `:filter` or use inside something else that takes a boolean expression." (:require [metabase.lib.schema.common :as common] [metabase.util.malli.registry :as mr])) (mr/def ::= [:catn [:clause [:= :=]] ...
null
https://raw.githubusercontent.com/metabase/metabase/02e9aa420ef910138b9b5e05f74c96e31286bcf2/src/metabase/lib/schema/filter.cljc
clojure
avoid circular refs between these namespaces.
(ns metabase.lib.schema.filter "Schemas for the various types of filter clauses that you'd pass to `:filter` or use inside something else that takes a boolean expression." (:require [metabase.lib.schema.common :as common] [metabase.util.malli.registry :as mr])) (mr/def ::= [:catn [:clause [:= :=]] ...
b8d53bbdf582158519d1143f8b42e2f8f723b62b15650b5efbd1bba8dcea7a0a
JoaoVasques/kafka-async
project.clj
(defproject kafka-async "0.1.0" :description "Core.async library for Apache Kafka" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [ [org.clojure/clojure "1.8.0"] [org.clojure/core.async "0.3.442"] [org.apache.kafka/...
null
https://raw.githubusercontent.com/JoaoVasques/kafka-async/fa548418c3b0e486d0d2c3586367ed8dd3935a4d/project.clj
clojure
(defproject kafka-async "0.1.0" :description "Core.async library for Apache Kafka" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [ [org.clojure/clojure "1.8.0"] [org.clojure/core.async "0.3.442"] [org.apache.kafka/...
77f1d46c8252b766070be1143f47ca6b3c801413385abc697d47c5b62d8af736
nasa/Common-Metadata-Repository
granule_spatial_search_test.clj
(ns cmr.system-int-test.search.granule-spatial-search-test (:require [clojure.java.io :as io] [clojure.string :as string] [clojure.test :refer :all] [cmr.common.util :as util :refer [are3]] [cmr.spatial.codec :as codec] [cmr.spatial.line-string :as l] [cmr.spatial.mbr :as m] [cmr.spatial.messa...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/982dee90270ca95acbfb6e04e0ca4ef1f59252e1/system-int-test/test/cmr/system_int_test/search/granule_spatial_search_test.clj
clojure
Tests search failure conditions Lines Bounding rectangles Geodetic Polygons polygon with holes Points normal multiple points across north pole across north pole where cartesian polygon touches it across south pole across north pole where cartesian polygon touches it north pole south pole in hole of polygo...
(ns cmr.system-int-test.search.granule-spatial-search-test (:require [clojure.java.io :as io] [clojure.string :as string] [clojure.test :refer :all] [cmr.common.util :as util :refer [are3]] [cmr.spatial.codec :as codec] [cmr.spatial.line-string :as l] [cmr.spatial.mbr :as m] [cmr.spatial.messa...
417788547a7599567811e445e46dc36e2814f7a6b980488d155c4a5b4fc4a82e
ekmett/ersatz
properties.hs
module Main where import Prelude hiding ((||),(&&)) import Test.Framework (Test) import Test.Framework (defaultMain, testGroup) import Test.Framework.Providers.HUnit import Test . Framework . Providers . QuickCheck ( testProperty ) import Test . HUnit hiding ( Test ) -- import Test.QuickCheck hiding ((==>)) impo...
null
https://raw.githubusercontent.com/ekmett/ersatz/d2107df8dc90d89f7a5f4db9e7e3c4cc0eb4a1ea/tests/properties.hs
haskell
import Test.QuickCheck hiding ((==>)) showSAT (return ()) @?= "p cnf 0 0\n"
module Main where import Prelude hiding ((||),(&&)) import Test.Framework (Test) import Test.Framework (defaultMain, testGroup) import Test.Framework.Providers.HUnit import Test . Framework . Providers . QuickCheck ( testProperty ) import Test . HUnit hiding ( Test ) import Ersatz main :: IO () main = defaultMa...
698434637af20442b1e7eb4233b5394c438743cc7f1c9e1bb7d3f1edd544f09f
lisp/de.setf.resource
vocabulary.lisp
-*- Mode : lisp ; Syntax : ansi - common - lisp ; Base : 10 ; Package : common - lisp - user ; -*- ( de.setf.rdf : require - vocabulary " -datatypes # " ) (in-package :common-lisp-user) (de.setf.rdf:require-vocabulary "#") (defpackage "-datatypes" (:use) (:documentation "The XML schema datatype identifiers...
null
https://raw.githubusercontent.com/lisp/de.setf.resource/27bf6dfb3b3ca99cfd5a6feaa5839d99bfb4d29e/namespaces/www-w3-org/2001/xmlschema-datatypes/vocabulary.lisp
lisp
Syntax : ansi - common - lisp ; Base : 10 ; Package : common - lisp - user ; -*-
( de.setf.rdf : require - vocabulary " -datatypes # " ) (in-package :common-lisp-user) (de.setf.rdf:require-vocabulary "#") (defpackage "-datatypes" (:use) (:documentation "The XML schema datatype identifiers are a subset of those comprised by the XML schema namespace. The package is constrcuted such that t...
25fe35ae73e4570df7e81ea3d34eff131990113ffb98ba156d66a6ee923279da
ghcjs/jsaddle-dom
MutationEvent.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.MutationEvent (initMutationEvent, pattern MODIFICATION, pattern ADDITION, pattern REMOVAL, getRelatedNode, ...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/MutationEvent.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/MutationEvent.attrChange Mozilla MutationEvent.attrChange documentation>
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.MutationEvent (initMutationEvent, pattern MODIFICATION, pattern ADDITION, pattern REMOVAL, getRelatedNode, getRelatedNodeUnsafe, getRelatedNodeUnchecked, getPrevValue, getNewValue, getAttrName, ...
96d7ec228c410a3a8cb547270dd5816d66362d8f2277a5b10fc72dca657e1eea
SjVer/Som-Lang
codes.ml
File generated by gen_codes_ml.py on Fri Mar 3 18:52:15 2023 . open Error let code_from_lexing_error : lexing_error -> int = function | Unexpected_character _ -> 101 | Illegal_escape _ -> 102 | Unterminated_string -> 103 | Invalid_literal _ -> 104 | Invalid_builtin_type _ -> 105 let code_from_syntax_er...
null
https://raw.githubusercontent.com/SjVer/Som-Lang/e69be8bad653b0ea3d6c003f3c2e69727b1d541e/somc/lib/report/codes.ml
ocaml
File generated by gen_codes_ml.py on Fri Mar 3 18:52:15 2023 . open Error let code_from_lexing_error : lexing_error -> int = function | Unexpected_character _ -> 101 | Illegal_escape _ -> 102 | Unterminated_string -> 103 | Invalid_literal _ -> 104 | Invalid_builtin_type _ -> 105 let code_from_syntax_er...
e57767254a85a40863aa7b3a9d7ca59bf09386bdcafe8020ba6c75bd91a944e6
hipsleek/hipsleek
slsat.ml
#include "xdebug.cppo" open VarGen open Globals open Others open Gen open Cformula module CP = Cpure : to implement let check_sat_uo ante_uo conseq_uo= let is_sat = true in mk_cex is_sat : to implement let check_sat_with_uo ante conseq= let is_sat = true in mk_cex is_sat : to implement let check_sa...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/src/slsat.ml
ocaml
to implement
#include "xdebug.cppo" open VarGen open Globals open Others open Gen open Cformula module CP = Cpure : to implement let check_sat_uo ante_uo conseq_uo= let is_sat = true in mk_cex is_sat : to implement let check_sat_with_uo ante conseq= let is_sat = true in mk_cex is_sat : to implement let check_sa...
087122391b1353561071556ac8d11b8a152155392d1c0a2363d5c132c4089a17
axellang/axel
Restartable.hs
module Axel.Eff.Restartable where import Axel.Prelude import Effectful ((:>), Eff) import Effectful.Error.Static (Error, runErrorNoCallStack, throwError) type Restartable = Error restart :: (Restartable a :> effs) => a -> Eff effs () restart = throwError runRestartable :: a -> (a -> Eff (Restartable a ': effs) a) ...
null
https://raw.githubusercontent.com/axellang/axel/8da784ae24406d4328e111b3db13f64dc943f738/src/Axel/Eff/Restartable.hs
haskell
module Axel.Eff.Restartable where import Axel.Prelude import Effectful ((:>), Eff) import Effectful.Error.Static (Error, runErrorNoCallStack, throwError) type Restartable = Error restart :: (Restartable a :> effs) => a -> Eff effs () restart = throwError runRestartable :: a -> (a -> Eff (Restartable a ': effs) a) ...
280336eb4cfa57a03adc70199cc69424386d07c9c9dd8db6474d049134bb126c
startalkIM/ejabberd
pg_odbc.erl
%%%---------------------------------------------------------------------- %%% File : pg_odbc.erl %%%---------------------------------------------------------------------- -module(pg_odbc). -author(''). -include("ejabberd.hrl"). -include("logger.hrl"). -define(GEN_FSM, gen_fsm). -behaviour(?GEN_FSM). %% Extern...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/src/pg_odbc.erl
erlang
---------------------------------------------------------------------- File : pg_odbc.erl ---------------------------------------------------------------------- External exports gen_fsm callbacks gen_fsm states -define(DBGFSM, true). ---------------------------------------------------------------------- API ---...
-module(pg_odbc). -author(''). -include("ejabberd.hrl"). -include("logger.hrl"). -define(GEN_FSM, gen_fsm). -behaviour(?GEN_FSM). -export([ start_link/1, sql_query/2, sql_query_t/1, sql_transaction/2, sql_bloc/2, escape/1, escape_like/1, to_bool/1, enco...
43c2778f3e9d5baa7b85665dbf24a798a52d81c57399d2d57fdc15ba85ff958b
markus-git/hardware-edsl
VHDL.hs
module Language.Embedded.VHDL ( module VHDL , module Language.Embedded.VHDL.Monad , module Language.Embedded.VHDL.Monad.Expression , module Language.Embedded.VHDL.Monad.Type , module Language.Embedded.VHDL.Monad.Util ) where import Language.VHDL as VHDL (Identifier(..), Mode(..), Direction(..)) import La...
null
https://raw.githubusercontent.com/markus-git/hardware-edsl/d0fde93ff57a8f5c2c37e273ff3a1d2a761fc5eb/src/Language/Embedded/VHDL.hs
haskell
module Language.Embedded.VHDL ( module VHDL , module Language.Embedded.VHDL.Monad , module Language.Embedded.VHDL.Monad.Expression , module Language.Embedded.VHDL.Monad.Type , module Language.Embedded.VHDL.Monad.Util ) where import Language.VHDL as VHDL (Identifier(..), Mode(..), Direction(..)) import La...
cadf8b7b014854378551a22bc31cde195fa3fe0ba5654dd510ec94af183ca6a9
jeromesimeon/Galax
top_args.mli
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/toplevel/top_args.mli
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ Id$ Module : Top_args Description : This module contains code for generic processing of galax executable command - line arguments . Description: This module contains code for generic processing of galax ...
ebfd0486ef437d35751927431d564a68d7416852af68e18124d9221a73e818c2
holyjak/fulcro-intro-wshop
impl.cljs
(ns holyjak.fulcro-exercises.impl (:require [holyjak.fulcro-exercises.mock-server :refer [mock-remote]] [clojure.string :as str] [com.fulcrologic.fulcro.application :as app] [com.fulcrologic.fulcro.components :as comp :refer [defsc]])) (declare hints) (defonce hints-shown (atom nil)) (defn hint [exe...
null
https://raw.githubusercontent.com/holyjak/fulcro-intro-wshop/8b2fc5cfc2706fce676ab17b51379083f4b6ed32/src/holyjak/fulcro_exercises/impl.cljs
clojure
if provided, a Pathom 'backend' FIXME:!!!!
(ns holyjak.fulcro-exercises.impl (:require [holyjak.fulcro-exercises.mock-server :refer [mock-remote]] [clojure.string :as str] [com.fulcrologic.fulcro.application :as app] [com.fulcrologic.fulcro.components :as comp :refer [defsc]])) (declare hints) (defonce hints-shown (atom nil)) (defn hint [exe...
dd1e6e7c9b6f540c7c4a7953506f58fea1f3d292ef85d018a650554e66911261
fossas/fossa-cli
DEBSpec.hs
# LANGUAGE QuasiQuotes # module App.Fossa.VSI.DynLinked.Internal.Lookup.DEBSpec (spec) where import App.Fossa.VSI.DynLinked.Internal.Lookup.DEB (dpkgParseQueryPackageInfo) import App.Fossa.VSI.DynLinked.Types (LinuxPackageMetadata (..)) import Data.Text (Text) import Data.Void (Void) import Test.Hspec (Expectation, S...
null
https://raw.githubusercontent.com/fossas/fossa-cli/3251a54302faccacf7a79cce09eb8d861e0faf0e/test/App/Fossa/VSI/DynLinked/Internal/Lookup/DEBSpec.hs
haskell
# LANGUAGE QuasiQuotes # module App.Fossa.VSI.DynLinked.Internal.Lookup.DEBSpec (spec) where import App.Fossa.VSI.DynLinked.Internal.Lookup.DEB (dpkgParseQueryPackageInfo) import App.Fossa.VSI.DynLinked.Types (LinuxPackageMetadata (..)) import Data.Text (Text) import Data.Void (Void) import Test.Hspec (Expectation, S...
66b1370b45fc66c2d449c955d9db9a819e4705e7ae11ea85ff5053d09dc26f6e
swarmpit/swarmpit
create.cljs
(ns swarmpit.component.registry.create (:require [rum.core :as rum] [sablono.core :refer-macros [html]] [material.icon :as icon] [material.components :as comp] [material.component.form :as form] [material.component.composite :as composite] [swarm...
null
https://raw.githubusercontent.com/swarmpit/swarmpit/38ffbe08e717d8620bf433c99f2e85a9e5984c32/src/cljs/swarmpit/component/registry/create.cljs
clojure
(ns swarmpit.component.registry.create (:require [rum.core :as rum] [sablono.core :refer-macros [html]] [material.icon :as icon] [material.components :as comp] [material.component.form :as form] [material.component.composite :as composite] [swarm...
35bf689e0114d45e822fab649b3a084cc143975847ad44bdf1a93ccaeb4bf4bb
tek/polysemy-hasql
Set.hs
module Polysemy.Hasql.Table.Query.Set where import Polysemy.Hasql.Data.DbType (Column) import Polysemy.Hasql.Data.SqlCode (SqlCode, esql) import Polysemy.Hasql.DbType (baseColumnSelectors) import Polysemy.Hasql.Table.Query.Insert (insertValues) import Polysemy.Hasql.Table.Query.Prepared (assign) import Polysemy.Hasql....
null
https://raw.githubusercontent.com/tek/polysemy-hasql/2bdfb5c4a0c15b66a33412e24c1668efa7e66e08/packages/hasql/lib/Polysemy/Hasql/Table/Query/Set.hs
haskell
module Polysemy.Hasql.Table.Query.Set where import Polysemy.Hasql.Data.DbType (Column) import Polysemy.Hasql.Data.SqlCode (SqlCode, esql) import Polysemy.Hasql.DbType (baseColumnSelectors) import Polysemy.Hasql.Table.Query.Insert (insertValues) import Polysemy.Hasql.Table.Query.Prepared (assign) import Polysemy.Hasql....
a005589225ba4d01cdf54fdf1838ad87368bdc08bfb1c5166e783033d1efb9db
nuprl/gradual-typing-performance
bitstring.rkt
#lang typed/racket (define-type Bitstring String) (provide Bitstring all-paths-from ( - > Bitstring ( Sequenceof ( ) ) ) log2 ;; (-> Natural Natural) ;; Base 2 log, on naturals natural->bitstring ;; (-> Index #:pad Index Bitstring) ;; Convert a natural number to a binary string representation ...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/paper/popl-2016/scripts/bitstring.rkt
racket
(-> Natural Natural) Base 2 log, on naturals (-> Index #:pad Index Bitstring) Convert a natural number to a binary string representation Keyword argument #:pad sets the width of the result string (-> Bitstring Index) Convert a string representation of a binary number to a natural. (in-reach s l) List all bitst...
#lang typed/racket (define-type Bitstring String) (provide Bitstring all-paths-from ( - > Bitstring ( Sequenceof ( ) ) ) log2 natural->bitstring bitstring->natural in-reach ( - > Bitstring Index ( ) ) bit-high? bit-low? ) (require (only-in racket/math exact-ceiling) (only-in racket...
d548350b14652a374857757c658ff3beb768facbf67f73f12ef137c7bc10fdce
ryukzak/nitta
Spec.hs
# LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # | Module : Spec Description : Test specification Copyright : ( c ) , 2019 License : : Stability : experimental Module : Spec Description : Test specification Copyright : (c) Aleksandr Penskoi, 2019 License : BSD3 Ma...
null
https://raw.githubusercontent.com/ryukzak/nitta/6d5cab0465ff5bcccfe419b8d8553266c530f7b7/test/Spec.hs
haskell
# LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # | Module : Spec Description : Test specification Copyright : ( c ) , 2019 License : : Stability : experimental Module : Spec Description : Test specification Copyright : (c) Aleksandr Penskoi, 2019 License : BSD3 Ma...
150f00153ee4d2ead007a322a388491092056bc21b7260bd1e4884db972f2dee
chaoxu/fancy-walks
19.hs
rotate :: [a] -> Int -> [a] rotate a 0 = a rotate a n = if n > 0 then rotate ((tail a) ++ [head a]) (n - 1) else rotate a ((length a) + n)
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/haskell.org/99_Problems/19.hs
haskell
rotate :: [a] -> Int -> [a] rotate a 0 = a rotate a n = if n > 0 then rotate ((tail a) ++ [head a]) (n - 1) else rotate a ((length a) + n)
7a0af0d05850f3ef4aca8d698e6598616ff509112e0a7de606179a6af115c7af
aryx/xix
draw.ml
open Common module D = Display module I = Display (* Image.t is in display.ml *) module M = Draw_marshal type op = | SoverD let bp_op op = failwith "bp_op: TODO" (* less: errorfn? fontname? *) let init _label = (* less: sanity check /dev/draw/new exists and bind("#i", "/dev") *) let display = Display.init (...
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/lib_graphics/draw/draw.ml
ocaml
Image.t is in display.ml less: errorfn? fontname? less: sanity check /dev/draw/new exists and bind("#i", "/dev") I prefer to do the allocimage here less: atexit(drawshutdown) less: font, label, window? * or force caller to call separate functions for those? todo: set_drawop less: have src_opt? e...
open Common module D = Display module M = Draw_marshal type op = | SoverD let bp_op op = failwith "bp_op: TODO" let init _label = let display = Display.init () in display.D.white <- Image.alloc display (Rectangle.r 0 0 1 1) Channel.grey1 true Color.white; display.D.black <- Image.alloc display (...
a951666457a47f02d88cd0bb3de2d24476b65a454cd3f4dece3f2b599d293c4e
senapk/funcional_arcade
main.hs
data List v = Null | Node v (List v) | v :-: (List v) deriving (Show, Read, Eq, Ord) teste1 :: IO () teste1 = print $ show (Node 1 . Node 4 . Node 2. Node 6 $ Null) == "Node 1 (Node 4 (Node 2 (Node 6 Null)))" listShow :: Show a => List a -> String listShow lista = case lista of Null ...
null
https://raw.githubusercontent.com/senapk/funcional_arcade/7bfbd3d1407c5c8013550691d4fa048d74a53339/base/508/main.hs
haskell
data List v = Null | Node v (List v) | v :-: (List v) deriving (Show, Read, Eq, Ord) teste1 :: IO () teste1 = print $ show (Node 1 . Node 4 . Node 2. Node 6 $ Null) == "Node 1 (Node 4 (Node 2 (Node 6 Null)))" listShow :: Show a => List a -> String listShow lista = case lista of Null ...
aa38667d6cb9937b1c83ace20cd8ff8ca718d98477dff082eec999ab16c43837
dcuddeback/clj-pail
serializer.clj
(ns clj-pail.serializer) (defprotocol Serializer "A protocol for serializing objects." (serialize [this object] "Serializes an object to a byte array.") (deserialize [this buffer] "Deserializes a byte array into an object.")) (defrecord ^{:doc "A serializer that does no serialization. It expects byte...
null
https://raw.githubusercontent.com/dcuddeback/clj-pail/94cda578d6dec4210037f9a2bfa8f274333e27cb/src/main/clojure/clj_pail/serializer.clj
clojure
(ns clj-pail.serializer) (defprotocol Serializer "A protocol for serializing objects." (serialize [this object] "Serializes an object to a byte array.") (deserialize [this buffer] "Deserializes a byte array into an object.")) (defrecord ^{:doc "A serializer that does no serialization. It expects byte...
4fc7dc011e4368865b48fe1600bc898eaf1e28ba31f4a6803a42b630e196c175
input-output-hk/plutus
Eq.hs
{-# LANGUAGE OverloadedStrings #-} module Hedgehog.Laws.Eq where import Hedgehog qualified import Hedgehog.Laws.Common import Prelude import Test.Tasty (TestTree, testGroup) import Test.Tasty.Hedgehog (testProperty) eqLaws :: (Show a, Eq a) => Hedgehog.Gen a -> TestTree eqLaws g = testGroup "equivalence relation laws...
null
https://raw.githubusercontent.com/input-output-hk/plutus/441b849f2146bd72a4f73bf4b83fc1b9593578b0/plutus-tx/testlib/Hedgehog/Laws/Eq.hs
haskell
# LANGUAGE OverloadedStrings #
module Hedgehog.Laws.Eq where import Hedgehog qualified import Hedgehog.Laws.Common import Prelude import Test.Tasty (TestTree, testGroup) import Test.Tasty.Hedgehog (testProperty) eqLaws :: (Show a, Eq a) => Hedgehog.Gen a -> TestTree eqLaws g = testGroup "equivalence relation laws" [ testProperty "reflexive" (pro...
63779243ca1302c0492e2d36d686d8b1a6f1d6b0008c6d66fccad28fb2cd89fb
Shinmera/colored
staple.ext.lisp
(asdf:load-system :staple-markless) (defpackage "colored-docs" (:use #:cl) (:local-nicknames (#:colored #:org.shirakumo.alloy.colored))) (defclass page* (staple:simple-page) () (:default-initargs :document-package (find-package "colored-docs"))) (defmethod staple:page-type ((system (eql (asdf:find-system ...
null
https://raw.githubusercontent.com/Shinmera/colored/fa6cf2bd17c9acacd5daa0a0d7f40889ae7eca0f/staple.ext.lisp
lisp
(asdf:load-system :staple-markless) (defpackage "colored-docs" (:use #:cl) (:local-nicknames (#:colored #:org.shirakumo.alloy.colored))) (defclass page* (staple:simple-page) () (:default-initargs :document-package (find-package "colored-docs"))) (defmethod staple:page-type ((system (eql (asdf:find-system ...
c2a7d73401ccdfefdeaafe8d0502f722c152d4877d8238248ce0a4a2eedf81fb
3b/glsl-packing
packing-test.lisp
(defpackage #:packing-test (:use :cl)) (in-package #:packing-test) (defun random-type (types &key (limit (length types)) (min 0)) (make-member (aref types (+ min(random (- limit min)))) types)) (defmethod make-member ((type (eql :bool)) types) '(:bool)) (defmethod make-member ((type (eql :int)) types...
null
https://raw.githubusercontent.com/3b/glsl-packing/03628159468a8e5b7f2a1d5e78b77053e136794a/packing-test.lisp
lisp
dmat confuses nvidia driver? (make-member :float types) don't have fp16 ext? *foo*
(defpackage #:packing-test (:use :cl)) (in-package #:packing-test) (defun random-type (types &key (limit (length types)) (min 0)) (make-member (aref types (+ min(random (- limit min)))) types)) (defmethod make-member ((type (eql :bool)) types) '(:bool)) (defmethod make-member ((type (eql :int)) types...
4ce8bfc493dc55c7b9342c262094b698cc51119f962ef03e09786f8d59093691
verma/clj-slackbot
slack_web_hook.clj
(ns clj-slackbot.comms.slack-web-hook (:require [clj-slackbot.util :as util] [compojure.core :refer :all] [compojure.route :as route] [clj-http.client :as client] [clojure.core.async :as async :refer [>!! <!! go-loop]] [ring.middleware.defaults :refer [wrap-...
null
https://raw.githubusercontent.com/verma/clj-slackbot/1b73f539e4fea16d253cff7b1a8c60c53ec8cb6b/src/clj_slackbot/comms/slack_web_hook.clj
clojure
send the form to our evaluator and get out of here check we have everything start the loops we need to read back eval responses start web listener
(ns clj-slackbot.comms.slack-web-hook (:require [clj-slackbot.util :as util] [compojure.core :refer :all] [compojure.route :as route] [clj-http.client :as client] [clojure.core.async :as async :refer [>!! <!! go-loop]] [ring.middleware.defaults :refer [wrap-...
2c07809f07e1d95305bcf2e3fb9a1f5aa607ef90608f9177dfb03e9bbb18783f
crategus/cl-cffi-gtk
rtest-gtk-cell-layout.lisp
(def-suite gtk-cell-layout :in gtk-suite) (in-suite gtk-cell-layout) ;;; --- Types and Values ------------------------------------------------------- ;;; GtkCellLayout (test gtk-cell-layout-interface ;; Type check (is-true (g-type-is-interface "GtkCellLayout")) ;; Check the registered name (is (eq 'gtk-c...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/7f5a09f78d8004a71efa82794265f2587fff98ab/test/rtest-gtk-cell-layout.lisp
lisp
--- Types and Values ------------------------------------------------------- GtkCellLayout Type check Check the registered name Get the names of the interface properties. Get the interface definition --- Functions -------------------------------------------------------------- GtkCellLayoutDataFunc ...
(def-suite gtk-cell-layout :in gtk-suite) (in-suite gtk-cell-layout) (test gtk-cell-layout-interface (is-true (g-type-is-interface "GtkCellLayout")) (is (eq 'gtk-cell-layout (registered-object-type-by-name "GtkCellLayout"))) (is (equal '() (mapcar #'g-param-spec-name ...
195a8de76f81c0218628e7a30021035e6ca242ae019339471ab7b8e78ee733b3
damn/cdq
media.clj
(ns game.media (:use (engine [core :only (defpreload)] [render :only (spritesheet get-sprite)]))) (defpreload ^:private sheet (spritesheet "items/items.png" 16 16)) (defn get-itemsprite [p] (get-sprite sheet p))
null
https://raw.githubusercontent.com/damn/cdq/5093dbdba91c445e403f53ce96ead05d5ed8262b/src/game/media.clj
clojure
(ns game.media (:use (engine [core :only (defpreload)] [render :only (spritesheet get-sprite)]))) (defpreload ^:private sheet (spritesheet "items/items.png" 16 16)) (defn get-itemsprite [p] (get-sprite sheet p))
51d81388501ec49664b2afb4955237edd26d86e11b6e857eb4d822bc20e76d70
propan/geheimtur
interactive_test.clj
(ns geheimtur.impl.interactive-test (:require [clojure.test :refer :all ] [geheimtur.impl.interactive :refer :all ] [geheimtur.util.auth :as auth])) (deftest interactive-error-handler-test (let [handler (interactive-error-handler {:login-uri "/login"})] (testing "Unauthenticated...
null
https://raw.githubusercontent.com/propan/geheimtur/bae0b1f69182289a92813ddc42db0604e53c99af/test/geheimtur/impl/interactive_test.clj
clojure
(ns geheimtur.impl.interactive-test (:require [clojure.test :refer :all ] [geheimtur.impl.interactive :refer :all ] [geheimtur.util.auth :as auth])) (deftest interactive-error-handler-test (let [handler (interactive-error-handler {:login-uri "/login"})] (testing "Unauthenticated...
c97475cae9d2152961ad01b0518bfb684df4672212f853eaae9429599e266788
bgamari/ghc-debug
GML.hs
module GHC.Debug.GML (writeTpfToGML, addSourceInfo, typePointsFromToGML) where import GHC.Debug.TypePointsFrom as TPF import GHC.Debug.Types (SourceInformation(..)) import GHC.Debug.Types.Closures (Size(..)) import GHC.Debug.Profile.Types (CensusStats(..), Count(..)) import GHC.Debug.Client.Monad import GHC.Debug.Clie...
null
https://raw.githubusercontent.com/bgamari/ghc-debug/a72e75449df0833eaaccd9ae67948aabb6b3da38/client/src/GHC/Debug/GML.hs
haskell
module GHC.Debug.GML (writeTpfToGML, addSourceInfo, typePointsFromToGML) where import GHC.Debug.TypePointsFrom as TPF import GHC.Debug.Types (SourceInformation(..)) import GHC.Debug.Types.Closures (Size(..)) import GHC.Debug.Profile.Types (CensusStats(..), Count(..)) import GHC.Debug.Client.Monad import GHC.Debug.Clie...
47f79a0e2495f661e2c100982f2c831c3df9b45896aaeb1c0223738d88892531
AbstractMachinesLab/caramel
predef.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/vendor/merlin/upstream/ocaml_403/typing/predef.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Path open Types open Btype let builtin_idents = ref [] let wrap create s = let id = create s in...
5b131a2389d366dbaffcacfc5ca48239823edba093cab65425c5dd3baa117271
andrewMacmurray/haskell-book-solutions
HitCounter.hs
{-# LANGUAGE OverloadedStrings #-} module Ch26.HitCounter where import Control.Monad.Trans.Class import Control.Monad.Trans.Reader import Control.Monad.IO.Class import Data.IORef import qualified Data.Map as M import Data.Maybe (fromMaybe) import Data.Text.Lazy (Text) import qualified Data.Text.Lazy as TL import Web....
null
https://raw.githubusercontent.com/andrewMacmurray/haskell-book-solutions/f4fd386187c03828d1736d9a43642ab4f0ec6462/src/ch26/HitCounter.hs
haskell
# LANGUAGE OverloadedStrings #
module Ch26.HitCounter where import Control.Monad.Trans.Class import Control.Monad.Trans.Reader import Control.Monad.IO.Class import Data.IORef import qualified Data.Map as M import Data.Maybe (fromMaybe) import Data.Text.Lazy (Text) import qualified Data.Text.Lazy as TL import Web.Scotty.Trans data Config = Confi...
1c3d36a54287541f7c26747ad60c78e6c3db7d342b734c27658ffd569d747de9
brendanhay/amazonka
WAFRegional.hs
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service descriptions , licensed under Apache 2.0 . -- | -- Module : Test.Amazonka.Gen.WAFRegional Copyright : ( c ) 2013 - 2023 License : Mozilla Public License , v. 2.0 . Maintainer : < br...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-waf-regional/test/Test/Amazonka/Gen/WAFRegional.hs
haskell
| Module : Test.Amazonka.Gen.WAFRegional Stability : auto-generated Auto-generated: the actual test selection needs to be manually placed into the top-level so that real test data can be incrementally added. This commented snippet is what the entire set should look like: fixtures :: TestTree fixtures = ...
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service descriptions , licensed under Apache 2.0 . Copyright : ( c ) 2013 - 2023 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > Portability : non - portable ( GHC ...
c1cd73a931d5929e9c03698b007315edd1d5f802ee912b6c671ea6ee166d1dc7
faylang/fay
ModuleSymbols.hs
{-# OPTIONS -fno-warn-name-shadowing #-} # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # module Language.Haskell.Names.ModuleSymbols ( moduleSymbols , moduleTable ) where import Fay.Compiler.Prelude import Language.Haskell.Exts import ...
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/src/haskell-names/Language/Haskell/Names/ModuleSymbols.hs
haskell
# OPTIONS -fno-warn-name-shadowing # | Compute module's global table. It contains both the imported entities and the global entities defined in this module. ^ the import table for this module | Compute the symbols that are defined in the given module. The import table is needed to resolve possible top-level recor...
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # module Language.Haskell.Names.ModuleSymbols ( moduleSymbols , moduleTable ) where import Fay.Compiler.Prelude import Language.Haskell.Exts import Language.Haskell.Names.GetBound i...
9f9515d6edea774375bff409b56a4f6edbd5a7d2cbe996252b12782f8e10e317
xsc/claro
ops.cljc
(ns claro.data.ops (:refer-clojure :exclude [assoc assoc-in drop first get get-in map nth select-keys take update update-in]) (:require [claro.data.ops collections fmap maps then] [potemkin :refer [import-vars]])) (import-vars [cla...
null
https://raw.githubusercontent.com/xsc/claro/16db75b7a775a14f3b656362e8ee4f65dd8b0d49/src/claro/data/ops.cljc
clojure
(ns claro.data.ops (:refer-clojure :exclude [assoc assoc-in drop first get get-in map nth select-keys take update update-in]) (:require [claro.data.ops collections fmap maps then] [potemkin :refer [import-vars]])) (import-vars [cla...
154903b3951c071c9d9c3a449f2f3f1ff5e561ca9d87af5e834c8a7c3b933d52
fetburner/compelib
pHashtbl.ml
type ('a, 'b) t = ('a, 'b) data ref (* 編集による差分 *) and ('a, 'b) data = Hashtbl of ('a, 'b) Hashtbl.t | Add of ('a, 'b) t * 'a * 'b | Remove of ('a, 'b) t * 'a let create ?(random=false) n = ref (Hashtbl (Hashtbl.create ~random n)) (* ハッシュを使う前に,差分を解消して一番上に持ってくる *) let rec reroot k = function | { contents = Ha...
null
https://raw.githubusercontent.com/fetburner/compelib/d8fc5d9acd04e676c4d4d2ca9c6a7140f1b85670/lib/container/pHashtbl.ml
ocaml
編集による差分 ハッシュを使う前に,差分を解消して一番上に持ってくる 破壊的でなかった操作は,差分を解消してからやるだけ 破壊的だった操作は,履歴を残しておく必要がある 基本操作の組み合わせで表現できるもの
type ('a, 'b) t = ('a, 'b) data ref and ('a, 'b) data = Hashtbl of ('a, 'b) Hashtbl.t | Add of ('a, 'b) t * 'a * 'b | Remove of ('a, 'b) t * 'a let create ?(random=false) n = ref (Hashtbl (Hashtbl.create ~random n)) let rec reroot k = function | { contents = Hashtbl h } -> k h | { contents = Add (t', i, d...
12b74187cfc81c4a7cb2d29ef4f5efcbef57a71400575fadad5c1844c4bf7604
AndrasKovacs/elaboration-zoo
Main.hs
module Main where import Control.Exception import System.Environment import System.Exit import Common import Cxt import Errors import Evaluation import Metacontext import Parser import Pretty import Elaboration import qualified Presyntax as P ------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/AndrasKovacs/elaboration-zoo/48a31b642745830458fc26cbaecd3628e691457d/05-pruning/Main.hs
haskell
------------------------------------------------------------------------------ | Run main with inputs as function arguments.
module Main where import Control.Exception import System.Environment import System.Exit import Common import Cxt import Errors import Evaluation import Metacontext import Parser import Pretty import Elaboration import qualified Presyntax as P helpMsg = unlines [ "usage: elabzoo-pruning [--help|nf|type]", " -...
28a107f670f914157bf384e2cbf8279427a07f4ea1d9931368413cf9425ac0a1
gelisam/typelevel-rewrite-rules
Test.hs
# LANGUAGE DataKinds , RankNTypes , TypeFamilies , TypeOperators # # OPTIONS_GHC -fconstraint - solver - iterations=10 -fplugin TypeLevel . Rewrite -fplugin - opt = TypeLevel . Rewrite : Data . Vinyl . TypeLevel . RewriteRules . RightIdentity -fplugin - opt = TypeLe...
null
https://raw.githubusercontent.com/gelisam/typelevel-rewrite-rules/9a693dacfedd7cccec753b687020fa40364756f9/test/should-compile/Data/Vinyl/TypeLevel/Test.hs
haskell
# LANGUAGE DataKinds , RankNTypes , TypeFamilies , TypeOperators # # OPTIONS_GHC -fconstraint - solver - iterations=10 -fplugin TypeLevel . Rewrite -fplugin - opt = TypeLevel . Rewrite : Data . Vinyl . TypeLevel . RewriteRules . RightIdentity -fplugin - opt = TypeLe...
c4c7d141289b42481686c2bf320ff3f99f680ce08b88d1c0cff9beafa93ab0c9
massung/r-cade
fonts.rkt
#lang racket (require r-cade) ;; ---------------------------------------------------- (define strings '("!\"#$%&'()*+,-./" "0123456789" ":;<=>?@" "ABCDEFGHIJKLM" "NOPQRSTUVWXYZ" "[\\]^_`" "abcdefghijklm" "nopqrstuvwxyz" "{|}~")) ;; --------------------------------------------------...
null
https://raw.githubusercontent.com/massung/r-cade/0cce22885aad28234d3f6e1d88568cdc16daf3e6/examples/fonts.rkt
racket
---------------------------------------------------- ---------------------------------------------------- ---------------------------------------------------- cycle through fonts with select current font draw strings ----------------------------------------------------
#lang racket (require r-cade) (define strings '("!\"#$%&'()*+,-./" "0123456789" ":;<=>?@" "ABCDEFGHIJKLM" "NOPQRSTUVWXYZ" "[\\]^_`" "abcdefghijklm" "nopqrstuvwxyz" "{|}~")) (define show-font 0) (define (test-font) (cls) (color 7) (when (btn-select) (set! show-font (re...
e4bce6abf287c3e4bfaaebb3d8d1f39abba60aff6b3bf65e7e27ae503a09da95
lalzy/Lazyfoo-CL-SDL2
main.lisp
Tutorial 20 : Force Feedback (defpackage #:tutorial-20 (:use #:cl) (:export :main)) (in-package #:tutorial-20) (defun file-path (path file) (let ((path-end (aref path (1- (length path))))) (if (or (string-equal path-end #\\) (string-equal path-end #\/)) (concatenate 'string path file) (concatenate 'st...
null
https://raw.githubusercontent.com/lalzy/Lazyfoo-CL-SDL2/7bf0d255112e354672686d8ad3d6772ebde34c51/tutorial-20/main.lisp
lisp
Prevent slime from hanging if crashing Slime doesn't like recompiling with ttf even though we close it. Unwind-protect fixes this
Tutorial 20 : Force Feedback (defpackage #:tutorial-20 (:use #:cl) (:export :main)) (in-package #:tutorial-20) (defun file-path (path file) (let ((path-end (aref path (1- (length path))))) (if (or (string-equal path-end #\\) (string-equal path-end #\/)) (concatenate 'string path file) (concatenate 'st...
7b003374ede43d53997fa5a5c8030e84dfd3ae156871326e03d09c0d57ace1f1
frp-arduino/frp-arduino
FrequencyBlink.hs
Copyright ( c ) 2014 Contributors as noted in the file -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your option) any later version. -- -- T...
null
https://raw.githubusercontent.com/frp-arduino/frp-arduino/7489ada012efc404086043ee55a9933029647121/examples/FrequencyBlink.hs
haskell
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public...
Copyright ( c ) 2014 Contributors as noted in the file it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License import Arduino.Uno import Data.Tuple (swap) main = ...
45f1d2da785e46532ff76e70089774cced547dcfb1e956e3a8a64f2205c9b894
juspay/atlas
Auth.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/public-transport-bap/src/Tools/Auth.hs
haskell
| Performs simple token verification.
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
9388c8661a8bfb5ab80f8d0230868d548fcc9ef421998d22904bb1bef871ba49
mmsbrggr/hsudoku
Hsudoku.hs
| Module : Main Description : The main module of the sudoku executable Copyright : ( c ) , 2017 License : MIT Contains the main function which sets up the UI of the sudoku executable . Module: Main Description: The main module of the sudoku executable Copyright: (c) Marcel Moosbrugger, 2017 Licens...
null
https://raw.githubusercontent.com/mmsbrggr/hsudoku/7f20491c2d13213a0ba311595f3294123f7dd89c/src/Hsudoku.hs
haskell
played.
| Module : Main Description : The main module of the sudoku executable Copyright : ( c ) , 2017 License : MIT Contains the main function which sets up the UI of the sudoku executable . Module: Main Description: The main module of the sudoku executable Copyright: (c) Marcel Moosbrugger, 2017 Licens...
441163e074ed89324e628bbc6139098a5b65fed69ea57d6fc0bb85007631d607
maybevoid/casimir
FreeOps.hs
module Casimir.Freer.FreeOps ( FreeOps (..) ) where import Casimir.Base import Casimir.Freer.CoOp class ( EffOps ops , EffCoOp ops ) => FreeOps ops where mkFreeOps :: forall eff . (Effect eff) => (forall a . CoOperation ops a -> eff a) -> Operation ops eff
null
https://raw.githubusercontent.com/maybevoid/casimir/ebbfa403739d6f258e6ac6793549006a0e8bff42/casimir/src/lib/Casimir/Freer/FreeOps.hs
haskell
module Casimir.Freer.FreeOps ( FreeOps (..) ) where import Casimir.Base import Casimir.Freer.CoOp class ( EffOps ops , EffCoOp ops ) => FreeOps ops where mkFreeOps :: forall eff . (Effect eff) => (forall a . CoOperation ops a -> eff a) -> Operation ops eff
524ed0dab6923a98ecee7a2612330d1ee1498387f0548fc33f0e7a77d3fbd747
project-oak/hafnium-verification
livenessTests.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/unit/livenessTests.ml
ocaml
this is *x = y, which is a read of both x and y
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
9f84a61ebd787bd711ad219aed19d427b34ef442d84a54142a20bdfb95862761
GrammaticalFramework/gf-core
Value.hs
module GF.Compile.Compute.Value where import GF.Grammar.Grammar(Label,Type,MetaId,Patt,QIdent) import PGF.Internal(BindType) import GF.Infra.Ident(Ident) import Text.Show.Functions() import Data.Ix(Ix) -- | Self-contained (not quite) representation of values data Value = VApp Predefined [Value] -- from Q, always Pre...
null
https://raw.githubusercontent.com/GrammaticalFramework/gf-core/5e052ff4997a407f6e97fd7ce97aa3911cd78157/src/compiler/GF/Compile/Compute/Value.hs
haskell
| Self-contained (not quite) representation of values from Q, always Predef.x, has a built-in value for lambda bound variables, possibly applied | VClosure Env Term -- used in Typecheck . ConcreteNew used in Compute.Concrete used in Compute.Concrete preserve type for conversion back to Term -- | VGlue Value Val...
module GF.Compile.Compute.Value where import GF.Grammar.Grammar(Label,Type,MetaId,Patt,QIdent) import PGF.Internal(BindType) import GF.Infra.Ident(Ident) import Text.Show.Functions() import Data.Ix(Ix) data Value from QC , constructors | VMeta MetaId Env [Value] | VInt Int | VFloat Double | VString String ...
28400e0b2f24047ac4be31cb2c249d19ea494fe2c955126bb93dcfa748ac3d1c
Frama-C/Frama-C-snapshot
abstractions.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/value/engine/abstractions.mli
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
5f198da45b5495e1a63b33f93ea57cd78d5988a914f47a5db7910f7af51c6478
LaPingvino/Climacs
misc-commands.lisp
-*- Mode : Lisp ; Package : CLIMACS - COMMANDS -*- ( c ) copyright 2004 - 2005 by ( ) ( c ) copyright 2004 - 2005 by ( ) ( c ) copyright 2005 by ( ) ( c ) copyright 2005 by ( ) ( c ) copyright 2007 by ( ) ;;; This library is f...
null
https://raw.githubusercontent.com/LaPingvino/Climacs/d5e45094b76dab0c716b2de7764a85e35e8bea4e/misc-commands.lisp
lisp
Package : CLIMACS - COMMANDS -*- This library is free software; you can redistribute it and/or either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU License along wi...
( c ) copyright 2004 - 2005 by ( ) ( c ) copyright 2004 - 2005 by ( ) ( c ) copyright 2005 by ( ) ( c ) copyright 2005 by ( ) ( c ) copyright 2007 by ( ) modify it under the terms of the GNU Library General Public version 2 ...
beda32671fe7d90a15ce76409de286f4e8ea5b5594b0830be1f52e98c6108ac9
dmoranj/qbitos
project.clj
(defproject qbitos "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [ [jblas "1.2.1"] [incanter "1.5.6"] [org.clojure/clojure "1.6.0"]] :main qbitos.core :t...
null
https://raw.githubusercontent.com/dmoranj/qbitos/513aadef0887cb3adc383a7b7a6f6aedb5bac07e/project.clj
clojure
(defproject qbitos "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [ [jblas "1.2.1"] [incanter "1.5.6"] [org.clojure/clojure "1.6.0"]] :main qbitos.core :t...