_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 |
|---|---|---|---|---|---|---|---|---|
ee6b109600432ee8574b74f6836fade3b5ecdac6ebb0ff3b5ea78056e4f49129 | aadafinance/aada-finance | AadaNft.hs | # LANGUAGE DataKinds #
{-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleInstances #
# LANGUAGE FlexibleContexts #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE NoImplicitPrelude #
# LANGUAGE NamedFieldPuns #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE Temp... | null | https://raw.githubusercontent.com/aadafinance/aada-finance/61e6c52d67396cf8272a126bf54f76264c39ec2f/src/AadaNft.hs | haskell | # LANGUAGE DeriveAnyClass #
# LANGUAGE OverloadedStrings #
# OPTIONS_GHC -Wno-unrecognised-pragmas #
# HLINT ignore "Use foldr" #
# INLINABLE mkPolicy # | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleInstances #
# LANGUAGE FlexibleContexts #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE NoImplicitPrelude #
# LANGUAGE NamedFieldPuns #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies... |
1e1c1049c29b77a4f187fed5397e477944c4b1edbb8087f667092295a34a2fc2 | SKA-ScienceDataProcessor/RC | Types.hs | {-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
# LANGUAGE ExistentialQuantification #
# LANGUAGE FlexibleContexts #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHask... | null | https://raw.githubusercontent.com/SKA-ScienceDataProcessor/RC/1b5e25baf9204a9f7ef40ed8ee94a86cc6c674af/MS6/dna/core/DNA/Interpreter/Types.hs | haskell | # LANGUAGE DeriveDataTypeable #
# LANGUAGE DeriveGeneric #
# LANGUAGE RankNTypes #
# LANGUAGE TemplateHaskell #
# OPTIONS_HADDOCK hide #
| Data types for interpretation of DNA DSL using cloud haskell
--------------------------------------------------------------
Extra f... | # LANGUAGE ExistentialQuantification #
# LANGUAGE FlexibleContexts #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
# OPTIONS_GHC -fno - warn - missing - signatures #
module DNA.Interpreter.Types where
import Control.Monad.Except
import Control.Monad.Reader
import Control... |
46abe4242c32df65c7cf150c224980ec5cb70617d58975d17d31d4e5287aacf1 | expipiplus1/vulkan | VK_EXT_subpass_merge_feedback.hs | {-# language CPP #-}
-- | = Name
--
-- VK_EXT_subpass_merge_feedback - device extension
--
-- == VK_EXT_subpass_merge_feedback
--
-- [__Name String__]
-- @VK_EXT_subpass_merge_feedback@
--
-- [__Extension Type__]
-- Device extension
--
-- [__Registered Extension Number__]
459
--
-- [__Revision__]
2
... | null | https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/src/Vulkan/Extensions/VK_EXT_subpass_merge_feedback.hs | haskell | # language CPP #
| = Name
VK_EXT_subpass_merge_feedback - device extension
== VK_EXT_subpass_merge_feedback
[__Name String__]
@VK_EXT_subpass_merge_feedback@
[__Extension Type__]
Device extension
[__Registered Extension Number__]
[__Revision__]
[__Extension and Version Dependencies__]
[__Con... | 459
2
- Requires support for Vulkan 1.0
-
2022 - 05 - 24
- Jan - , Arm
- , Arm
- , Arm
disable subpass merging in the render pass .
' Vulkan . Core11.Promoted_From_VK_KHR_get_physical_device_properties2.PhysicalDeviceFeatures2 ' ,
' Vu... |
3a6c17027a91248d4fc730b010f728c077f59400cf27427a73ca5efafca00bd4 | avsm/platform | attributes.mli | TyXML
*
* Copyright ( C ) 2016
*
* 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 exception ;
* either version 2.1 of the License , or ( at your op... | null | https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/tyxml.4.3.0/ppx/attributes.mli | ocaml | * Attribute parsing. | TyXML
*
* Copyright ( C ) 2016
*
* 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 exception ;
* either version 2.1 of the License , or ( at your op... |
84a66bb88422725473c34c0c9da968fdf5a106115d21cd3cee7a6e15f9187260 | kelsey-sorrels/zaffre | render.cljc | (ns zaffre.components.render
(:require clojure.data
[clojure.zip :as zip]
[clojure.core.async :as a :refer [buffer chan go-loop <! >! >!!]]
[clojure.string]
[clojure.contrib.def]
[clojure.test :refer [is]]
[taoensso.timbre :as log]
[z... | null | https://raw.githubusercontent.com/kelsey-sorrels/zaffre/eb16a9b2095b54c835d39fa035533e5083fe7b02/src/zaffre/components/render.cljc | clojure | Theme (Dark)
backgrounds
overlay
text
characters
Primitive elements
-css-properties-are-inherited
Theme
NOTE: Theme values should ALWAYS be inheirited so that they propogate
throughout the element tree
overlay
text
characters
Non-standard properties
merge-default-style and cascade-style are made much fas... | (ns zaffre.components.render
(:require clojure.data
[clojure.zip :as zip]
[clojure.core.async :as a :refer [buffer chan go-loop <! >! >!!]]
[clojure.string]
[clojure.contrib.def]
[clojure.test :refer [is]]
[taoensso.timbre :as log]
[z... |
5d7048122257d46c8e8309e3f619a3449a9339535a1eb6cb29aadd26fd3e295b | corecursive/sicp-study-group | ex03_05.scm | * Exercise 3.5 :* " Monte Carlo integration " is a method of
estimating definite integrals by means of Monte Carlo simulation .
;; Consider computing the area of a region of space described by a
;; predicate P(x, y) that is true for points (x, y) in the region and
;; false for points not in the region. For example... | null | https://raw.githubusercontent.com/corecursive/sicp-study-group/2d16e79fceb2963140ff4df9a0450e5669f8f6f5/plundaahl/exercises/ex03_05.scm | scheme | Consider computing the area of a region of space described by a
predicate P(x, y) that is true for points (x, y) in the region and
false for points not in the region. For example, the region
described by the predicate that tests whether (x - 5)^2 + (y -
a predicate, begin by choosing a rectangle that contains the... | * Exercise 3.5 :* " Monte Carlo integration " is a method of
estimating definite integrals by means of Monte Carlo simulation .
contained within a circle of radius 3 centered at ( 5 , 7 ) is
7)^2 < = 3 ^ 2 . To estimate the area of the region described by such
at ( 2 , 4 ) and ( 8 , 10 ) contains the circle... |
ba72c97bec5023328aad4ade8e90d9ec109946c9a3e2f867f071ae953bec714f | vereis/jarlang | sets.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2000 - 2016 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applic... | null | https://raw.githubusercontent.com/vereis/jarlang/72105b79c1861aa6c4f51c3b50ba695338aafba4/src/erl/lib/stdlib/sets.erl | erlang |
%CopyrightBegin%
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 l... | Copyright Ericsson AB 2000 - 2016 . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
We use the dynamic hashing techniques by Per - as
described in " The Design and Implementation of Dynamic Hash... |
ec0845d4a3b341a972de4564aca87682a7b228fc8e865738cc79abef2d25b2d9 | lynaghk/reflex | macros.clj | (ns reflex.macros)
(defmacro computed-observable [& body]
`(let [co# (reflex.core/ComputedObservable. nil true (fn [] ~@body) (gensym "computed-observable") {} {})]
@co# ;;initial deref to setup watchers
co#))
(defmacro constrain!
"Reruns body whenever atoms deferenced in the body change. Body should si... | null | https://raw.githubusercontent.com/lynaghk/reflex/a891d9c4857af3c47de92af865fad324ab9f23e3/src/clj/reflex/macros.clj | clojure | initial deref to setup watchers | (ns reflex.macros)
(defmacro computed-observable [& body]
`(let [co# (reflex.core/ComputedObservable. nil true (fn [] ~@body) (gensym "computed-observable") {} {})]
co#))
(defmacro constrain!
"Reruns body whenever atoms deferenced in the body change. Body should side effect."
[& body]
`(let [co# (compute... |
e485c5975eb8030ee7e4a666f865954478ea0fc8373423c169a4442a35e5bb6e | anwyn/cl-horde3d | types.lisp | ;;; types.lisp --- cffi types for the horde3d lisp bindings
;;; _
;;; | |_ _ _ _ __ ___ ___
| _ _ | | | | ' _ \ / _ \/ _ _ |
;;; | |_| |_| | |_) | __/\__ \
;;; \__|\__, | .__/ \___||___/
;;; |___/|_|
;;;
Copyright ( C ) 2009 < >
;;;
(in-package :horde3d-cffi)
;;;; CFFI types
(define-foreign-type ... | null | https://raw.githubusercontent.com/anwyn/cl-horde3d/0576aba1879ab6c0f7688566c604d022cc538b4c/src/types.lisp | lisp | types.lisp --- cffi types for the horde3d lisp bindings
_
| |_ _ _ _ __ ___ ___
| |_| |_| | |_) | __/\__ \
\__|\__, | .__/ \___||___/
|___/|_|
CFFI types
C types
Enums
Group: Typedefs and constants
Helper macro to define a horde3d API function and declare it inline.
Helper macro to define a h... | | _ _ | | | | ' _ \ / _ \/ _ _ |
Copyright ( C ) 2009 < >
(in-package :horde3d-cffi)
(define-foreign-type ensure-integer ()
()
(:actual-type :int)
(:simple-parser ensure-integer))
(defmethod translate-to-foreign (value (type ensure-integer))
(truncate value))
(defmethod expand-to-foreign (value (typ... |
eb34d56a81d3014d31ace9962bb89b3a8174fef701e966f8e67aee71816c6eeb | eslick/cl-stdutils | macros.lisp | ;;
Basic Macros from , etc
;;
(in-package :stdutils)
(defmacro-exported nullit (expr)
"Good for interaction at the repl; return null to the invoking expression
regardless of the return value of expr"
`(progn ,expr nil))
(defmacro-exported mac1 (expr)
"Abbreviation for macroexpand-1"
`(pprint (macro... | null | https://raw.githubusercontent.com/eslick/cl-stdutils/4a4e5a4036b815318282da5dee2a22825369137b/src/macros.lisp | lisp |
return null to the invoking expression
Creating local environments
| Basic Macros from , etc
(in-package :stdutils)
(defmacro-exported nullit (expr)
regardless of the return value of expr"
`(progn ,expr nil))
(defmacro-exported mac1 (expr)
"Abbreviation for macroexpand-1"
`(pprint (macroexpand-1 ',expr)))
(defmacro-exported when-bind ((var expr) &body body)
`(let ((,... |
08c2bd2f112f68c1c80458ed4ef7307304860128ddd33ba4916b7b49cc012f58 | paulbutcher/electron-app | electron_app.clj | (ns clj.new.electron-app
(:require [clj.new.templates :refer [renderer project-name ->files sanitize]]))
(def render (renderer "electron-app"))
(defn electron-app [name]
(let [data {:name (project-name name)
:sanitized (sanitize (project-name name))}]
(println "Generating an Electron application... | null | https://raw.githubusercontent.com/paulbutcher/electron-app/2b67a893b7dba60bf91d504a2daa009149c6fc9b/src/clj/new/electron_app.clj | clojure | (ns clj.new.electron-app
(:require [clj.new.templates :refer [renderer project-name ->files sanitize]]))
(def render (renderer "electron-app"))
(defn electron-app [name]
(let [data {:name (project-name name)
:sanitized (sanitize (project-name name))}]
(println "Generating an Electron application... | |
f8e4059530e01ff4b9aa41382a8a29b1c2ac1613256e676ed3e4decc18831be7 | xapi-project/xen-api | memory_summary.ml |
* 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/47fae74032aa6ade0fc12e867c530eaf2a96bf75/ocaml/xenopsd/xc/memory_summary.ml | ocaml |
* 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... | |
735ae4970384692b3ec2551aab5596d645131e6c11a32494c8958101de78587c | rescript-lang/rescript-compiler | map_gen.ml | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/rescript-lang/rescript-compiler/e60482c6f6a69994907b9bd56e58ce87052e3659/jscomp/ext/map_gen.ml | 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 GNU Library General Public License , with
[@@@warnerror "+55"]
type ('key, 'a) t... |
6aae263c69b00cdf4f556d20406af83c91c1169230d51bfd84f0297795aa9364 | rootmos/silly-joy | UI.hs | # LANGUAGE LambdaCase , FlexibleContexts #
module UI where
import System.Console.Haskeline
import qualified System.Console.Haskeline.Brick as HB
import Brick
import Brick.BChan
import qualified Brick.Widgets.Center as C
import qualified Brick.Widgets.Border as B
import qualified Graphics.Vty as V
import Parser
impor... | null | https://raw.githubusercontent.com/rootmos/silly-joy/e9e716482229a1e27cb93e21ab76a58be47e5c7a/src/UI.hs | haskell | This piece of code is taken verbatim from here:
-0.7.4.0/docs/src/System.Console.Haskeline.MonadException.html#line-152 | # LANGUAGE LambdaCase , FlexibleContexts #
module UI where
import System.Console.Haskeline
import qualified System.Console.Haskeline.Brick as HB
import Brick
import Brick.BChan
import qualified Brick.Widgets.Center as C
import qualified Brick.Widgets.Border as B
import qualified Graphics.Vty as V
import Parser
impor... |
22c98e4e119c92c715e36d37eed87662b2b5ff8418c1d7a8232752941cbc4e0a | gelisam/typelevel-rewrite-rules | TypeTerm.hs | # LANGUAGE LambdaCase , ViewPatterns #
module TypeLevel.Rewrite.Internal.TypeTerm where
GHC API
import Type (Type, mkTyConApp)
-- term-rewriting API
import Data.Rewriting.Term (Term(Fun, Var))
import TypeLevel.Rewrite.Internal.TypeEq
import TypeLevel.Rewrite.Internal.TypeNode
type TypeTerm = Term TypeNode TypeEq... | null | https://raw.githubusercontent.com/gelisam/typelevel-rewrite-rules/9a693dacfedd7cccec753b687020fa40364756f9/src/TypeLevel/Rewrite/Internal/TypeTerm.hs | haskell | term-rewriting API | # LANGUAGE LambdaCase , ViewPatterns #
module TypeLevel.Rewrite.Internal.TypeTerm where
GHC API
import Type (Type, mkTyConApp)
import Data.Rewriting.Term (Term(Fun, Var))
import TypeLevel.Rewrite.Internal.TypeEq
import TypeLevel.Rewrite.Internal.TypeNode
type TypeTerm = Term TypeNode TypeEq
toTypeTerm
:: Type... |
610ca8b6874deeb8a913408dc35156bee05181574449dc4c963a1ee19ecb36d6 | mcorbin/meuse | http.clj | (ns meuse.http
"HTTP server and handlers"
(:require [meuse.auth.frontend :as auth-frontend]
[meuse.config :refer [config]]
[meuse.db.public.token :as token-db]
[meuse.db.public.user :as user-db]
[meuse.inject :as inject]
[meuse.interceptor.auth :as itc-aut... | null | https://raw.githubusercontent.com/mcorbin/meuse/d2b74543fce37c8cde770ae6f6097cabb509a804/src/meuse/http.clj | clojure | leave
leave
leave
leave
error
enter
enter + leave
enter
enter
enter
enter
enter
enter
enter | (ns meuse.http
"HTTP server and handlers"
(:require [meuse.auth.frontend :as auth-frontend]
[meuse.config :refer [config]]
[meuse.db.public.token :as token-db]
[meuse.db.public.user :as user-db]
[meuse.inject :as inject]
[meuse.interceptor.auth :as itc-aut... |
02be2db1ed6a747b5e57660ca62acf13e945aefe68fc54d330318b05e75a5f0d | sdiehl/elliptic-curve | BN224.hs | module Data.Curve.Weierstrass.BN224
( module Data.Curve.Weierstrass
, Point(..)
* BN224 curve
, module Data.Curve.Weierstrass.BN224
) where
import Protolude
import Data.Field.Galois
import GHC.Natural (Natural)
import Data.Curve.Weierstrass
-----------------------------------------------------------------... | null | https://raw.githubusercontent.com/sdiehl/elliptic-curve/445e196a550e36e0f25bd4d9d6a38676b4cf2be8/src/Data/Curve/Weierstrass/BN224.hs | haskell | -----------------------------------------------------------------------------
Types
-----------------------------------------------------------------------------
# INLINABLE a_ #
# INLINABLE h_ #
| Affine BN224 curve point.
| Projective BN224 point.
-------------------------------------------------------------------... | module Data.Curve.Weierstrass.BN224
( module Data.Curve.Weierstrass
, Point(..)
* BN224 curve
, module Data.Curve.Weierstrass.BN224
) where
import Protolude
import Data.Field.Galois
import GHC.Natural (Natural)
import Data.Curve.Weierstrass
| BN224 curve .
data BN224
| Field of points of BN224 curve... |
5e31cce421b89b4b95edd8ca49f5d6594a6ec6730c89b4ca3f9b744987130ef5 | backtracking/ocamlgraph | gmap.ml | (**************************************************************************)
(* *)
: a generic graph library for OCaml
Copyright ( C ) 2004 - 2010
, and
(* ... | null | https://raw.githubusercontent.com/backtracking/ocamlgraph/1c028af097339ca8bc379436f7bd9477fa3a49cd/src/gmap.ml | ocaml | ************************************************************************
This software is free software; you can redistribute it and/or
described in file LICENSE.... | : a generic graph library for OCaml
Copyright ( C ) 2004 - 2010
, and
modify it under the terms of the GNU Library General Public
License version 2.1 , with the special exception on linking
* { 2 Map... |
416b7def10bce76df01b4dd9be75ec0db8d23e07f907c1ea5c19a4d54506ce5c | plandes/cisql | cider_repl.clj | (ns ^{:doc "Provide support for Emacs Cider and nREPL."
:author "Paul Landes"}
zensols.cisql.cider-repl
(:require [clojure.tools.logging :as log]
[nrepl.server :as nrepl-server]))
(def default-port 32345)
(defn nrepl-handler
"Enables application level (even in uber jars) to handle Cider requ... | null | https://raw.githubusercontent.com/plandes/cisql/8001864f1596d191386a3787b49e8a640705fee2/src/clojure/zensols/cisql/cider_repl.clj | clojure | (ns ^{:doc "Provide support for Emacs Cider and nREPL."
:author "Paul Landes"}
zensols.cisql.cider-repl
(:require [clojure.tools.logging :as log]
[nrepl.server :as nrepl-server]))
(def default-port 32345)
(defn nrepl-handler
"Enables application level (even in uber jars) to handle Cider requ... | |
647a4311562c6cf0777a154bc7af24be15eb7e5c30bbf481ea26e290088de9f8 | yetanalytics/colossal-squuid | uuid_test.cljc | (ns com.yetanalytics.squuid.uuid-test
(:require [clojure.test :refer [deftest testing is are]]
[com.yetanalytics.squuid.time :as t]
[com.yetanalytics.squuid.uuid :as u]))
(deftest inc-uuid-test
(testing "incrementing UUIDs"
(is (thrown-with-msg?
#?(:clj clojure.lang.ExceptionIn... | null | https://raw.githubusercontent.com/yetanalytics/colossal-squuid/06b5db33083a1c623f497e8ff29e3540c707f362/src/test/com/yetanalytics/squuid/uuid_test.cljc | clojure | Variant bits are not set
Timestamp has hex value of 0x17B41513496 | (ns com.yetanalytics.squuid.uuid-test
(:require [clojure.test :refer [deftest testing is are]]
[com.yetanalytics.squuid.time :as t]
[com.yetanalytics.squuid.uuid :as u]))
(deftest inc-uuid-test
(testing "incrementing UUIDs"
(is (thrown-with-msg?
#?(:clj clojure.lang.ExceptionIn... |
12db5eaaf10ecb07b49cd83a93bc2b863e6d9d05dfb0db15a09cfdd79308a2ed | meain/evil-textobj-tree-sitter | textobjects.scm | (entry) @block.outer
(field) @statement.outer
| null | https://raw.githubusercontent.com/meain/evil-textobj-tree-sitter/d67bdd55ae0d70978232e952020f6e8300b5c7bb/queries/bibtex/textobjects.scm | scheme | (entry) @block.outer
(field) @statement.outer
| |
8683be3543f2619234c9c6444f190b96f1ad472a73313d91737822052a008362 | MisakaCenter/RayTracer.ml | Color.ml | open Array
open Core
open Vec
open Utils
let output_ppm_array (mc : int) (l : vec3 array) (outc : Out_channel.t)
(samples_per_pixel : int) =
iter
(fun x ->
Printf.fprintf outc "%s\n"
(to_string
((fun yy ->
let scale = 1.0 /. float_of_int samples_per_pixel in... | null | https://raw.githubusercontent.com/MisakaCenter/RayTracer.ml/f62fa9555e4dbd2957d0b46b9de85c13021602d0/lib/Color.ml | ocaml | open Array
open Core
open Vec
open Utils
let output_ppm_array (mc : int) (l : vec3 array) (outc : Out_channel.t)
(samples_per_pixel : int) =
iter
(fun x ->
Printf.fprintf outc "%s\n"
(to_string
((fun yy ->
let scale = 1.0 /. float_of_int samples_per_pixel in... | |
81bde469bba010e2e2b3f968b17f6fda613a410555bfb9b37235355e1d1ac40c | cirodrig/triolet | Parser.hs | AST parsing and name resolution .
--
-- The exported parsing functions in this module first call the
-- Language . Python parser , then apply name resolution rules to
-- assign variables a globally unique ID .
--
-- Some errors related to name resolution , such as undefined variable
-- names and redefin... | null | https://raw.githubusercontent.com/cirodrig/triolet/e515a1dc0d6b3e546320eac7b71fb36cea5b53d0/src/program/Parser/Parser.hs | haskell |
The exported parsing functions in this module first call the
Language . Python parser , then apply name resolution rules to
assign variables a globally unique ID .
Some errors related to name resolution , such as undefined variable
names and redefinitions of parameter variables , are detected here .
The... | AST parsing and name resolution .
-}
# LANGUAGE FlexibleInstances , DoRec #
module Parser.Parser(Level(..),
convertStatement, convertModule, parseModule)
where
import Prelude hiding(mapM, sequence)
import Control.Applicative
import Control.Monad hiding(mapM, sequence)
import Control.Monad.Wr... |
08cef10ff468b0b39c349511a23e4b9e119d904f1fd8813bebfc54173d97b066 | rd--/hsc3 | Constant.hs | -- | Constant
module Sound.Sc3.Ugen.Constant where
import Sound.Sc3.Ugen.Brackets {- hsc3 -}
| Constants .
Constants may have brackets .
This allows for buffer allocation and deallocation to be associated with a buffer identifier .
> Constant 3 = = Constant 3
> ( Constant 3 > Constant 1 ) = = True
Consta... | null | https://raw.githubusercontent.com/rd--/hsc3/44cc8759811f3d75f9c1bd702865519cbbe95357/Sound/Sc3/Ugen/Constant.hs | haskell | | Constant
hsc3 | module Sound.Sc3.Ugen.Constant where
| Constants .
Constants may have brackets .
This allows for buffer allocation and deallocation to be associated with a buffer identifier .
> Constant 3 = = Constant 3
> ( Constant 3 > Constant 1 ) = = True
Constants may have brackets.
This allows for buffer allocation... |
88053594375ac7fffa88de5b31578ff5a00e634dcd19faaf83d8ac0224d5e4a5 | unisonweb/unison | BuiltinAnnotation.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ViewPatterns #
module Unison.Codebase.BuiltinAnnotation (BuiltinAnnotation (..)) where
import Unison.Parser.Ann (Ann)
import qualified Unison.Parser.Ann as Ann
class BuiltinAnnotation a where
builtinAnnotation :: a
instance BuiltinAnnotation Ann where
builtinAnnotat... | null | https://raw.githubusercontent.com/unisonweb/unison/a5d3f32a424754afa31cd0bc43c9d129bff35dcf/parser-typechecker/src/Unison/Codebase/BuiltinAnnotation.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE ViewPatterns #
module Unison.Codebase.BuiltinAnnotation (BuiltinAnnotation (..)) where
import Unison.Parser.Ann (Ann)
import qualified Unison.Parser.Ann as Ann
class BuiltinAnnotation a where
builtinAnnotation :: a
instance BuiltinAnnotation Ann where
builtinAnnotation = Ann.Intrinsic
|
81eddad5899eaa4332ce3d302e827b0eca27071929874c4060198e1f1b8f26e9 | tfausak/rattletrap | Reservation.hs | module Rattletrap.Type.Attribute.Reservation where
import qualified Data.Word as Word
import qualified Rattletrap.BitGet as BitGet
import qualified Rattletrap.BitPut as BitPut
import qualified Rattletrap.Schema as Schema
import qualified Rattletrap.Type.Attribute.UniqueId as UniqueId
import qualified Rattletrap.Type.C... | null | https://raw.githubusercontent.com/tfausak/rattletrap/cc6d6aba923d840f23de7673cab9a043096d3099/src/lib/Rattletrap/Type/Attribute/Reservation.hs | haskell | module Rattletrap.Type.Attribute.Reservation where
import qualified Data.Word as Word
import qualified Rattletrap.BitGet as BitGet
import qualified Rattletrap.BitPut as BitPut
import qualified Rattletrap.Schema as Schema
import qualified Rattletrap.Type.Attribute.UniqueId as UniqueId
import qualified Rattletrap.Type.C... | |
08c50702789a0a739b94ea748571a55375ed8508b9c69020fcfda8545e1dab56 | YoshikuniJujo/test_haskell | Internal.hs | # LANGUAGE ImportQualifiedPost #
# LANGUAGE BlockArguments #
{-# LANGUAGE ScopedTypeVariables, TypeApplications #-}
# LANGUAGE MonoLocalBinds #
{-# LANGUAGE PatternSynonyms, ViewPatterns #-}
# OPTIONS_GHC -Wall -fno - warn - tabs #
module Gpu.Vulkan.RenderPass.Middle.Internal where
import Foreign.Ptr
import Foreign.M... | null | https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/6ea44c1048805a62979669c185ab32ba9f4d2e02/themes/gui/vulkan/try-vulkan-middle/src/Gpu/Vulkan/RenderPass/Middle/Internal.hs | haskell | # LANGUAGE ScopedTypeVariables, TypeApplications #
# LANGUAGE PatternSynonyms, ViewPatterns #
# SOURCE # | # LANGUAGE ImportQualifiedPost #
# LANGUAGE BlockArguments #
# LANGUAGE MonoLocalBinds #
# OPTIONS_GHC -Wall -fno - warn - tabs #
module Gpu.Vulkan.RenderPass.Middle.Internal where
import Foreign.Ptr
import Foreign.Marshal.Alloc
import Foreign.Marshal.Array
import Foreign.Storable
import Foreign.Storable.PeekPoke
imp... |
1cb76147c4c9c04a4d002e2309e98eb4dce38608460b82c9cf04e33a9a4c7cfe | v-kolesnikov/sicp | 2_76_test.clj | (ns sicp.chapter02.2-76-test)
| null | https://raw.githubusercontent.com/v-kolesnikov/sicp/4298de6083440a75898e97aad658025a8cecb631/test/sicp/chapter02/2_76_test.clj | clojure | (ns sicp.chapter02.2-76-test)
| |
111478745ec4fcb1ce08918f61449403220684c938e58047919caa9cbe7d0855 | rackerlabs/gen_batch | batch_shutdown_sup.erl | -module(batch_shutdown_sup).
-behaviour(gen_batch).
-export([init/1, process_item/3, worker_died/5, job_stopping/1, job_complete/2]).
init([]) ->
{ok, 1, [1], []}.
process_item(_Item, _StartTime, []) ->
exit(self(), shutdown),
ok.
worker_died(_, _WorkerPid, _StartTime, _Info, []) ->
ok.
job_stopping([]) ->... | null | https://raw.githubusercontent.com/rackerlabs/gen_batch/cbd50ad86985d042cc33ae9c99491f37bdd23e89/test/batch_shutdown_sup.erl | erlang | -module(batch_shutdown_sup).
-behaviour(gen_batch).
-export([init/1, process_item/3, worker_died/5, job_stopping/1, job_complete/2]).
init([]) ->
{ok, 1, [1], []}.
process_item(_Item, _StartTime, []) ->
exit(self(), shutdown),
ok.
worker_died(_, _WorkerPid, _StartTime, _Info, []) ->
ok.
job_stopping([]) ->... | |
59e0f69603b50ac98702c2d412fea7e34e78a25b3add202c1f2694ddb9121ff0 | ccntrq/loxomotive | Interpreter.hs | module Loxomotive.Interpreter (interpret, initState, InterpreterState(..)) where
import qualified Loxomotive.Environment as Env
import Loxomotive.Expr
import Loxomotive.Object
import Loxomotive.Stmt
import Loxomotive.Token
import Loxomotive.TokenType
import Control.Monad.Except
import Control.Monad.State
import Cont... | null | https://raw.githubusercontent.com/ccntrq/loxomotive/1d40f4e8c52921c0c09d4ec2156d13e3cc80c704/src/Loxomotive/Interpreter.hs | haskell | the resolver stores the distances here
Env
Error reporting
used for unexpected situations
this should really never happen
Debugging
dumpEnv :: Interpreter ()
dumpEnv = gets environment >>= liftIO . readIORef >>= liftIO . Env.dump | module Loxomotive.Interpreter (interpret, initState, InterpreterState(..)) where
import qualified Loxomotive.Environment as Env
import Loxomotive.Expr
import Loxomotive.Object
import Loxomotive.Stmt
import Loxomotive.Token
import Loxomotive.TokenType
import Control.Monad.Except
import Control.Monad.State
import Cont... |
c869d8da80e3d950012c38c54de1f41157cd3709bae4e2a3e1fca0761a7ba544 | janestreet/universe | configuration.mli | open! Core_kernel
open! Import
(** Default amount of context shown around each change in the diff *)
val default_context : int
(** The following constants were all chosen empirically. *)
(** Default cutoff for line-level semantic cleanup. Any match of [default_line_big_enough]
or more will not be deleted, even ... | null | https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/patdiff/kernel/src/configuration.mli | ocaml | * Default amount of context shown around each change in the diff
* The following constants were all chosen empirically.
* Default cutoff for line-level semantic cleanup. Any match of [default_line_big_enough]
or more will not be deleted, even if it's surrounded by large inserts and deletes.
Raising this quan... | open! Core_kernel
open! Import
val default_context : int
val default_line_big_enough : int
val default_word_big_enough : int
* Governs the behavior of [ split_for_readability ] . We will only split ranges around
matches of size greater than [ too_short_to_split ] . Note that this should always
be a... |
472bb8c9004abd44feba5a195866026c38827a0e166127185e52b11aa194a362 | HealthSamurai/dojo.clj | 20_java_interop_test.clj | (ns koans.20-java-interop-test
(:require [koans.engine :refer :all]))
(meditations
"You may have done more with Java than you know"
(= __ (class "warfare")) ; hint: try typing (javadoc "warfare") in the REPL
"The dot signifies easy and direct Java interoperation"
(= __ (.toUpperCase "select * from"))
"Bu... | null | https://raw.githubusercontent.com/HealthSamurai/dojo.clj/94922640f534897ab2b181c608b54bfbb8351d7b/test/koans/20_java_interop_test.clj | clojure | hint: try typing (javadoc "warfare") in the REPL | (ns koans.20-java-interop-test
(:require [koans.engine :refer :all]))
(meditations
"You may have done more with Java than you know"
"The dot signifies easy and direct Java interoperation"
(= __ (.toUpperCase "select * from"))
"But instance method calls are very different from normal functions"
(= ["SELEC... |
8b1568ce60818abe68bf27929583d3b6cef9ef60c88471659a14d4a965fc6ff6 | Ramarren/cl-parser-combinators | test-basic.lisp | (in-package :parser-combinators-tests)
(defsuite* (basics-tests :in parser-combinators-tests))
(deftest test-parse-string ()
(let ((parse-result (parse-string (between? #\a nil nil 'string) "aaa")))
(iter (for should-result in '("aaa" "aa" "a" ""))
(for is-result = (tree-of (next-result parse-result))... | null | https://raw.githubusercontent.com/Ramarren/cl-parser-combinators/9c7569a4f6af5e60c0d3a51d9c15c16d1714c845/test-basic.lisp | lisp | next character is already consumed by queuing
next character is already consumed by queuing
test combinators | (in-package :parser-combinators-tests)
(defsuite* (basics-tests :in parser-combinators-tests))
(deftest test-parse-string ()
(let ((parse-result (parse-string (between? #\a nil nil 'string) "aaa")))
(iter (for should-result in '("aaa" "aa" "a" ""))
(for is-result = (tree-of (next-result parse-result))... |
15c052712ce0e901d5a5ec12e28f8aa1fd459c107c915eb62d63d0eb08a9b032 | Frama-C/Frama-C-snapshot | TacRewrite.mli | (**************************************************************************)
(* *)
This file is part of WP plug - in of Frama - C.
(* *)
Copyrigh... | null | https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/wp/TacRewrite.mli | ocaml | ************************************************************************
alternatives)
... | This file is part of WP plug - in of Frama - C.
Copyright ( C ) 2007 - 2019
CEA ( Commissariat a l'energie atomique et aux energies
Lesser General Public License as published by the Free Software
Foundation ,... |
bf3b20d1982e75a070a2a7e2ad77d1b0a47c82437822364c3a2f39ad64273574 | isovector/talks | Bullets.hs | {-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
module Polysemy.Bullets where
import Data.Foldable
import Polysemy
import Polysemy.Effect.New
import Polysemy.Utils
data Bullets m a
= BulletPoints [String] a
deriving (Functor, Effect)
makeSemantic ''B... | null | https://raw.githubusercontent.com/isovector/talks/78427ecf720fef5cd16572accc245f44d6ebc21f/making-a-splash/src/Polysemy/Bullets.hs | haskell | # LANGUAGE DeriveAnyClass #
# LANGUAGE QuasiQuotes #
# LANGUAGE TemplateHaskell # |
module Polysemy.Bullets where
import Data.Foldable
import Polysemy
import Polysemy.Effect.New
import Polysemy.Utils
data Bullets m a
= BulletPoints [String] a
deriving (Functor, Effect)
makeSemantic ''Bullets
bullets :: QuasiQuoter
bullets = sendQQ 'bulletPoints paragraphs
runPrintBullets :: Member (Lift I... |
c5647e24e9fa7689af0c20baef498e114212a109289af90ec47d801deb306945 | charlieg/Sparser | stranded-NP.lisp | ;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*-
copyright ( c ) 1995 -- all rights reserved
;;;
File : " stranded NP "
;;; Module: "grammar;rules:CA:"
Version : April 1995
initiated 4/27/95
(in-package :sparser)
;;;----------
;;; full NPs
;;;----------
(set-ca-action category::... | null | https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/grammar/rules/CA/stranded-NP.lisp | lisp | -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*-
Module: "grammar;rules:CA:"
----------
full NPs
----------
reacts to the form-category on a stranded edge
For the moment just handles the very simple (and frequent)
case where the np would have composed with the edge
to its left except that it involved ... | copyright ( c ) 1995 -- all rights reserved
File : " stranded NP "
Version : April 1995
initiated 4/27/95
(in-package :sparser)
(set-ca-action category::np 'np/ca-dispatch)
(defun np/ca-dispatch (np-edge)
(let ((prior-edge (preceded-by-comma-and-an-edge np-edge)))
(when prior-edge
... |
9738ae91850361fffa2144d88d040975169499207ba7b2dea066b53e9d673fd6 | arunp0/rabbitmq-pubsub | amqp_pubsub.erl | MIT License
Copyright ( c ) 2018 arunp0
% 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, publ... | null | https://raw.githubusercontent.com/arunp0/rabbitmq-pubsub/0dd694ea4ef554964de68f5ff6365e8d61374bc0/src/amqp_pubsub.erl | erlang | Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
furnished to do so, subject to the following conditions:
The above copyright notice an... | MIT License
Copyright ( c ) 2018 arunp0
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND ... |
e21bc7b13d2775c670073eaadd8dd097da30294ee561762dd54030e154e7fb49 | japerk/elib | datetime_SUITE.erl | -module(datetime_SUITE).
-compile(export_all).
-include("ct.hrl").
%%%%%%%%%%%%%%%%%
%% common_test %%
%%%%%%%%%%%%%%%%%
all() -> [range_split_years, range_dates, in_range, range_in_range].
init_per_suite(Config) -> Config.
end_per_suite(Config) -> Config.
%%%%%%%%%%%%%%%%
%% test cases %%
%%%%%%%%%%%%%%%%
rang... | null | https://raw.githubusercontent.com/japerk/elib/40fc61f5503db3e823f61aada53d4f38d2405e7f/test/datetime_SUITE.erl | erlang |
common_test %%
test cases %%
TODO: test datetime:in_range/2
TODO: more test cases | -module(datetime_SUITE).
-compile(export_all).
-include("ct.hrl").
all() -> [range_split_years, range_dates, in_range, range_in_range].
init_per_suite(Config) -> Config.
end_per_suite(Config) -> Config.
range_split_years(_Config) ->
Jan1_08 = {2008, 1, 1},
Dec1_08 = {2008, 12, 1},
[{Jan1_08, Dec1_08}] = date... |
3c004c373ecf80f312c7775341be9b595b4c8f25b65eee8074e170f8f922c72a | youngker/clj-opengrok | search.clj | (ns clj-opengrok.search
(:require
[clojure.tools.logging :as log])
(:import
(java.io File FileInputStream InputStreamReader IOException)
(java.util ArrayList TreeSet)
(org.apache.lucene.document Document)
(org.apache.lucene.search
IndexSearcher Query ScoreDoc Sort SortField SortField$Type TopFiel... | null | https://raw.githubusercontent.com/youngker/clj-opengrok/75419e7ae8184586ff29299cd85dcdf9f6b3f8b0/src/clj_opengrok/search.clj | clojure | (ns clj-opengrok.search
(:require
[clojure.tools.logging :as log])
(:import
(java.io File FileInputStream InputStreamReader IOException)
(java.util ArrayList TreeSet)
(org.apache.lucene.document Document)
(org.apache.lucene.search
IndexSearcher Query ScoreDoc Sort SortField SortField$Type TopFiel... | |
252737d4d2e1ac74dec8a0383b8c62a220527ddab66b4bc8e57b422e52002127 | vernemq/vernemq | vmq_info.erl | Copyright 2018 Erlio GmbH Basel Switzerland ( )
%%
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, sof... | null | https://raw.githubusercontent.com/vernemq/vernemq/234d253250cb5371b97ebb588622076fdabc6a5f/apps/vmq_server/src/vmq_info.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 governing perm... | Copyright 2018 Erlio GmbH Basel Switzerland ( )
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(vmq_info).
-behaviour(vmq_ql_query).
-include("vmq_server.hrl").
-include_lib("vmq_ql/include/vmq_ql.hrl").
-export(... |
e3ec1fcee9ff601d203749bf9551be9bd5ca907325b704bd5434604c2a893fb0 | mjambon/eledit | ledit.mli | (***********************************************************************)
(* *)
(* *)
, INRIA Rocquencourt
(* ... | null | https://raw.githubusercontent.com/mjambon/eledit/29d6d339575d877932ba22a76004eea55a7bcc2b/ledit.mli | ocaml | *********************************************************************
et Automatique. Distributed only by p... |
, INRIA Rocquencourt
Copyright 1997 - 2008 Institut National de Recherche en Informatique
val input_char : in_channel -> string
val set_prompt : string -> unit
val get_prompt : unit -> string
val open_histfile : bool -> string -> unit
val close_his... |
ffef161a6dbfce2eca2063990a1a4f06239c53da6d72cedc092cb257aec09da3 | cedlemo/OCaml-GI-ctypes-bindings-generator | Widget_help_type.mli | open Ctypes
type t = Tooltip | Whats_this
val of_value:
Unsigned.uint32 -> t
val to_value:
t -> Unsigned.uint32
val t_view: t typ
| null | https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Widget_help_type.mli | ocaml | open Ctypes
type t = Tooltip | Whats_this
val of_value:
Unsigned.uint32 -> t
val to_value:
t -> Unsigned.uint32
val t_view: t typ
| |
67c15a7c5fd3f7f160c91a806cf3cc67cd9f78e8e2fc08da2a5fb78c5b4d6427 | kupl/FixML | sub33.ml | type formula = TRUE
| FALSE
| NOT of formula
| ANDALSO of formula * formula
| ORELSE of formula * formula
| IMPLY of formula * formula
| LESS of expr * expr
and expr = NUM of int
| PLUS of expr * expr
| MINUS of expr * expr
let eval : formula -> bool = fun x ->
match x with
| TRUE -> true
| FALS... | null | https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/formula/formula/submissions/sub33.ml | ocaml | type formula = TRUE
| FALSE
| NOT of formula
| ANDALSO of formula * formula
| ORELSE of formula * formula
| IMPLY of formula * formula
| LESS of expr * expr
and expr = NUM of int
| PLUS of expr * expr
| MINUS of expr * expr
let eval : formula -> bool = fun x ->
match x with
| TRUE -> true
| FALS... | |
5381046bbe5c4501705cf62acb7ae7a99d4175ae856a0966661dd001d21e073c | runeksvendsen/restful-payment-channel-server | Run.hs | module AppPrelude.Util.Servant.Run where
import qualified Control.Monad.Trans.Except as ExceptT
import qualified Servant.Client as SC
import Data.EitherR (fmapL)
runReq :: ExceptT.ExceptT SC.ServantError IO a -> IO (Either String a)
runReq = fmap (fmapL show) . ExceptT.runExceptT
| null | https://raw.githubusercontent.com/runeksvendsen/restful-payment-channel-server/0fe65eadccad5ef2b840714623ec407e509ad00b/src/AppPrelude/Util/Servant/Run.hs | haskell | module AppPrelude.Util.Servant.Run where
import qualified Control.Monad.Trans.Except as ExceptT
import qualified Servant.Client as SC
import Data.EitherR (fmapL)
runReq :: ExceptT.ExceptT SC.ServantError IO a -> IO (Either String a)
runReq = fmap (fmapL show) . ExceptT.runExceptT
| |
95027c40701f74421c152f553f022d07edb25115d0d220a5187e6c18a1c6a1bb | couchbase/couchdb | couch_app.erl | 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
distributed under the License is distributed on an " A... | null | https://raw.githubusercontent.com/couchbase/couchdb/8a75fd2faa89f95158de1776354ceccf3e762753/src/couchdb/couch_app.erl | erlang | 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
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations... | Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not
distributed under the License is distributed on an " AS IS " BASIS , WITHOUT
-module(couch_app).
-behaviour(application).
-include_lib("kernel/include/logger.hrl").
-export([start/2, stop/1]).
start(_Type, DefaultIniFiles) ->
... |
d91bdf1e44e2f5803df18d1853687c11ceccb968f1164bb973b27debc4ec6501 | scalaris-team/scalaris | yaws_rss.erl | %%%----------------------------------------------------------------------
%%% File : yaws_rss.erl
Created : 15 Dec 2004 by < >
%%%
%%% @doc A Yaws RSS feed interface.
%%%
@author Torbjorn Tornkvist < >
%%% @end
%%%
$ Id$
%%%----------------------------------------------------------------------
-module(ya... | null | https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/contrib/yaws/src/yaws_rss.erl | erlang | ----------------------------------------------------------------------
File : yaws_rss.erl
@doc A Yaws RSS feed interface.
@end
----------------------------------------------------------------------
External exports
gen_server callbacks
activated applications
remove expired items
maximum number of element... | Created : 15 Dec 2004 by < >
@author Torbjorn Tornkvist < >
$ Id$
-module(yaws_rss).
-behaviour(gen_server).
-export([start/0, start_link/0, open/1, open/2, close/0, close/2,
insert/5, insert/6, insert/7, retrieve/2]).
-export([t_setup/0, t_exp/0, t_xopen/0]).
-export([init/1, handle_call/3, ha... |
625988b170851a6d680c58f56bdab6fa54153cdc3a35673088dae25bd947c851 | ddmcdonald/sparser | cells.lisp | ;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER COMMON-LISP) -*-
Copyright ( c ) 2017 SIFT LLC . All Rights Reserved
;;;
;;; File: "cells"
;;; Module: "grammar/model/sl/biology/
version : May 2017
Broken out from terms 5/8/17
;; contains: cell lines, cell lines with IDs, cell types, and cell types wi... | null | https://raw.githubusercontent.com/ddmcdonald/sparser/4bb59f0989152f059f7b008ca4bfd89501bae04c/Sparser/code/s/grammar/model/sl/biology/cells.lisp | lisp | -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER COMMON-LISP) -*-
File: "cells"
Module: "grammar/model/sl/biology/
contains: cell lines, cell lines with IDs, cell types, and cell types with IDs
------------
cell lines
------------
were expressed in HEK293T cells
BRAF mutant thyroid cell lines
HER2-ampli... | Copyright ( c ) 2017 SIFT LLC . All Rights Reserved
version : May 2017
Broken out from terms 5/8/17
(in-package :sparser)
all six BRAF - mutant thyroid cancer cell lines
increased basal HER3 in 8505C cells
confirmed in a second cell line
our panel of cancer cell lines ( Figure 6A ) .
(def-synonym cel... |
a014885fd0dbf5098884a26c105ade9623d4203f88fff03d1abdc8cc9c0d9cd8 | dalaing/little-languages | Eq.hs | # LANGUAGE DeriveFunctor #
# LANGUAGE DeriveFoldable #
{-# LANGUAGE DeriveTraversable #-}
# LANGUAGE TemplateHaskell #
{-# LANGUAGE ConstraintKinds #-}
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE FunctionalDependencies #
# LANGUAGE FlexibleInstances #
module Term.Component.Eq where
import Control.Lens
import Bound.C... | null | https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/prototypes/classy/src/Term/Component/Eq.hs | haskell | # LANGUAGE DeriveTraversable #
# LANGUAGE ConstraintKinds #
Type checking and inference
Small step semantics
Big step semantics
Syntax | # LANGUAGE DeriveFunctor #
# LANGUAGE DeriveFoldable #
# LANGUAGE TemplateHaskell #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE FunctionalDependencies #
# LANGUAGE FlexibleInstances #
module Term.Component.Eq where
import Control.Lens
import Bound.Class
import Type.Component.Int
import Type.Component.Bool
import T... |
7d08e610c7b0904be1244ac2fc54f8a7a2fc6ea3f0aa0618f5980fceb5bdfe32 | brendanhay/gogol | Patch.hs | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE PatternSynonyms #
# LANGUAGE RecordWildCards #
{-# LANGUAGE St... | null | https://raw.githubusercontent.com/brendanhay/gogol/77394c4e0f5bd729e6fe27119701c45f9d5e1e9a/lib/services/gogol-billing/gen/Gogol/Billing/Cloudbilling/BillingAccounts/Patch.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE StrictData #
|
Stability : auto-generated
/See:/ </ Cloud Billing API Reference> for @cloudbilling.billingAccounts.patch@.
* Resource
** Constructing a Request
'CloudbillingBillingAccountsPatch' request conforms to.
/See:/ 'newCloudbillingBillingAccountsPatch' smart... | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
# LANGUAGE PatternSynonyms #
# LANGUAGE RecordWildCards #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators... |
b6e4c811968bda0f494d0e4144fbb548ee214b95b2d684583646831ed50daaed | ghcjs/ghcjs-dom | Location.hs | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
module GHCJS.DOM.JSFFI.Generated.Location
(js_assign, assign, js_replace, replace, js_reload, reload,
js_setHref... | null | https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/Location.hs | haskell | For HasCallStack compatibility
# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
module GHCJS.DOM.JSFFI.Generated.Location
(js_assign, assign, js_replace, replace, js_reload, reload,
js_setHref, setHref, js_getHref, getHref, js_setProtocol,
setProtocol, js_getProtocol, getProtocol, j... |
e73b376dbc5da3eabae34388b77aeef819f6b713da63e78f42913ee43f9f3874 | herbelin/coq-hh | constrextern.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/interp/constrextern.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
* Translation of pattern, cases patt... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Util
open Names
open Ter... |
adb53bc99c2810d1bedf0e0d076c925a40f66d72da0997f83000ea5be36b840e | dyzsr/ocaml-selectml | query_list.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/dyzsr/ocaml-selectml/4b5777d28ad5d26ec091898c90a997821258ddb5/stdlib/query_list.ml | ocaml | ************************************************************************
OCaml
... |
Copyright 2022
the GNU Lesser General Public License version 2.1 , with the
type 'a t = 'a list
let one = function [x] -> x | _ -> assert false
let singleton x = [x]
let product f xs ys =
List.concat_map (fun x -> List.map (fun y -> f x y) ys) xs
let join ... |
75e902a0d48955e339a9ea92a5841d8492ffe361dc6430f398e7a57937b40825 | ostinelli/bisbino | bisbino_sup.erl | % ==========================================================================================================
BISBINO
%
Copyright ( C ) 2010 , < >
% All rights reserved.
%
% BSD License
%
% Redistribution and use in source and binary forms, with or without modification, are permitted provided
% that the followin... | null | https://raw.githubusercontent.com/ostinelli/bisbino/eb722fbf174edbe4aac0acb48ab3be076f241860/src/bisbino_sup.erl | erlang | ==========================================================================================================
All rights reserved.
BSD License
Redistribution and use in source and binary forms, with or without modification, are permitted provided
that the following conditions are met:
* Redistributions of sour... | BISBINO
Copyright ( C ) 2010 , < >
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS OR
PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR FOR
ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INC... |
5334f6834b7075ead086187979d4943f584127f70f6b47d064cb9ae2ff00ccc2 | ocsigen/ocaml-eliom | stream.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocsigen/ocaml-eliom/497c6707f477cb3086dc6d8124384e74a8c379ae/stdlib/stream.mli | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1997 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
type 'a t
exception Failure
* Raised by parsers when none of the first components of the stream
patterns ... |
9cd21f97bc156b5f010bc9de843ea12d4b541c95312d914ad12c8d5629d0ceb8 | mzp/coq-ide-for-ios | r_syntax_plugin_mod.ml | let _=Mltop.add_known_module"R_syntax"
let _=Mltop.add_known_module"R_syntax_plugin_mod"
let _=Mltop.add_known_module"r_syntax_plugin"
| null | https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/CoqIDE/coq-8.2pl2/plugins/syntax/r_syntax_plugin_mod.ml | ocaml | let _=Mltop.add_known_module"R_syntax"
let _=Mltop.add_known_module"R_syntax_plugin_mod"
let _=Mltop.add_known_module"r_syntax_plugin"
| |
261863ab1a18510f34cb42aac89a3da72c041339028b135a9598802941fa7e60 | ytomino/unicode-ocaml | test_elt.ml | open Unicode;;
let exn = Failure "test_elt.ml";;
(* sequence *)
let utf16_sequence_should_fail item = (
try
let _: int = utf16_sequence ~illegal_sequence:exn item in
false
with Failure _ -> true
);;
for i = 0 to 0xd7 do
assert (utf16_sequence ~illegal_sequence:exn (i * 0x100) = 1)
done;;
assert (utf16_sequen... | null | https://raw.githubusercontent.com/ytomino/unicode-ocaml/2023956fdbd3af98eaa502641a02f939d01b4565/examples/test_elt.ml | ocaml | sequence
masked
masked
masked
masked
is_trailing
masked
masked
report | open Unicode;;
let exn = Failure "test_elt.ml";;
let utf16_sequence_should_fail item = (
try
let _: int = utf16_sequence ~illegal_sequence:exn item in
false
with Failure _ -> true
);;
for i = 0 to 0xd7 do
assert (utf16_sequence ~illegal_sequence:exn (i * 0x100) = 1)
done;;
assert (utf16_sequence ~illegal_seq... |
fd0209a55b95306b6964526bc31ca18a725282da812ef8f9d08e39f9c8e5976c | softwarelanguageslab/maf | R5RS_various_splitargs-4.scm | ; Changes:
* removed : 0
* added : 1
* swaps : 0
; * negated predicates: 0
; * swapped branches: 0
; * calls to id fun: 0
(letrec ((sanity-check (lambda (x)
(eq? x x)))
(random-bool (lambda ()
(<change>
()
... | null | https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_various_splitargs-4.scm | scheme | Changes:
* negated predicates: 0
* swapped branches: 0
* calls to id fun: 0 | * removed : 0
* added : 1
* swaps : 0
(letrec ((sanity-check (lambda (x)
(eq? x x)))
(random-bool (lambda ()
(<change>
()
(display (random 2)))
(= (random 2) 0))))
(sanity-che... |
4afdc791e2792715cc26fc803d3cfe7f47a2e0148c028aa6637f3977bbd38cc5 | jlongster/gambit-iphone-example | osx.scm | ;;;; "osx ffis"
;;; Implements datatypes and procedures for interacting with OS X
;;; APIs.
(c-declare "#import <UIKit/UIKit.h>")
(include "osx#.scm")
NSArray
(define (NSArray->list arr)
(let ((len (NSArray-length arr)))
(unfold (lambda (i) (>= i len))
(lambda (i) (NSArray-ref arr i))
... | null | https://raw.githubusercontent.com/jlongster/gambit-iphone-example/e55d915180cb6c57312cbb683d81823ea455e14f/lib/ffi/osx.scm | scheme | "osx ffis"
Implements datatypes and procedures for interacting with OS X
APIs.
NSSet
NSString
|
(c-declare "#import <UIKit/UIKit.h>")
(include "osx#.scm")
NSArray
(define (NSArray->list arr)
(let ((len (NSArray-length arr)))
(unfold (lambda (i) (>= i len))
(lambda (i) (NSArray-ref arr i))
(lambda (i) (+ i 1))
0)))
(define NSArray-length
(c-lambda (NSArray*) int "... |
d1cd54c038fee2d382b0de1678a4d2d8a72faefaf3748e86745f6d27dc82d616 | clojurecup2014/parade-route | testgenclass3.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
; ... | null | https://raw.githubusercontent.com/clojurecup2014/parade-route/adb2e1ea202228e3da07902849dee08f0bb8d81c/Assets/Clojure/Internal/Plugins/clojure/samples/genclass/testgenclass3.clj | clojure | The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 (-1.0.php)
which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove ... | Copyright ( c ) . All rights reserved .
Author :
( def v ( my . TGC3 / fy ) )
(ns clojure.testgenclass3
(:gen-class
:state state
:init init
:main false
:name my.TGC3
:factory fy
:methods [
[zero [] Int32]
[add [Int32] Int32]
[val [] Int32] ]))
(defn -init []
... |
290299f3aa08f97e5324906c32fdb39ace3c614c856f635fafb3289f530a37eb | iomonad/dotfiles | commands.lisp | (defcommand go-group (n) ((:number "Go to group: "))
"Go to selected group, or back to last used one"
(if (= (slot-value (current-group) 'number) n)
(gother)
(run-commands (format nil "gselect ~A" n))))
(defcommand tmux (session) ((:string "Session name: "))
"Attach tmux session or start a new one.
... | null | https://raw.githubusercontent.com/iomonad/dotfiles/39ec02698e5374c6b5c006ae3ddd57e2193e75da/stumpwm/2011/lisp/my/commands.lisp | lisp | (defcommand go-group (n) ((:number "Go to group: "))
"Go to selected group, or back to last used one"
(if (= (slot-value (current-group) 'number) n)
(gother)
(run-commands (format nil "gselect ~A" n))))
(defcommand tmux (session) ((:string "Session name: "))
"Attach tmux session or start a new one.
... | |
ba307cc094588eeddce8af6b1eba8cb776e02b5428a1d9970ab2d19fe6003d9c | sbcl/sbcl | interr.lisp | ;;;; This file defines all of the internal errors. How they are
;;;; handled is defined in .../code/interr.lisp. How they are signaled
;;;; depends on the machine.
This software is part of the SBCL system . See the README file for
;;;; more information.
;;;;
This software is derived from the CMU CL system , which ... | null | https://raw.githubusercontent.com/sbcl/sbcl/1a729d6bfe476e1e8de323f89f5240748f6bf942/src/compiler/generic/interr.lisp | lisp | This file defines all of the internal errors. How they are
handled is defined in .../code/interr.lisp. How they are signaled
depends on the machine.
more information.
public domain. The software is in the public domain and is
provided with absolutely no warranty. See the COPYING and CREDITS
files for more infor... |
This software is part of the SBCL system . See the README file for
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
(in-package "SB-KERNEL")
(defun !c-stringify-internal-error (interr)
(destructuring-bind (description symbol . nargs) inte... |
8cfcf94b48af116b54be764226caf4f3d8b10cbc92e380b45662cf2c4df0a2d8 | emedia-project/paris | paris.erl | -module(paris).
-behaviour(gen_server).
-define(SERVER, ?MODULE).
-export([
priv_dir/0,
static/1,
port/0,
app/0,
plugins/0,
mailconf/0,
set/2,
get/1,
del/1
]).
-export([start_link/1]).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3]).
priv_dir() ->
... | null | https://raw.githubusercontent.com/emedia-project/paris/7ba24bcb76f8ab31b78d49e1a9f9c7643bfca80c/src/paris.erl | erlang | - private - | -module(paris).
-behaviour(gen_server).
-define(SERVER, ?MODULE).
-export([
priv_dir/0,
static/1,
port/0,
app/0,
plugins/0,
mailconf/0,
set/2,
get/1,
del/1
]).
-export([start_link/1]).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3]).
priv_dir() ->
... |
dc6c8590e71e51b0f099e7a96a9811bc9417f197b6ec6db1df1d30816a84dfd5 | MarchLiu/market | order.clj | (ns liu.mars.market.order
(:require [clojure.java.jdbc :as j])
(:require [clj-postgresql.core :as pg])
(:require [liu.mars.market.config :as config])
(:require [jaskell.sql :refer [select from where join with f p as on]])
(:import (liu.mars.market.messages LimitAsk LimitBid MarketAsk MarketBid Cancel OrderNot... | null | https://raw.githubusercontent.com/MarchLiu/market/7a7daf6c04b41e0f8494be6740da8d54785c5e77/counter/src/main/clojure/liu/mars/market/order.clj | clojure | (ns liu.mars.market.order
(:require [clojure.java.jdbc :as j])
(:require [clj-postgresql.core :as pg])
(:require [liu.mars.market.config :as config])
(:require [jaskell.sql :refer [select from where join with f p as on]])
(:import (liu.mars.market.messages LimitAsk LimitBid MarketAsk MarketBid Cancel OrderNot... | |
0d50d62ff9fc2e3f4a372d55242933f6aa3e7f7fe8ccf1fc1e7769a69b237bf9 | UnixJunkie/carbon | model.ml |
module CLI = Minicli.CLI
module LO = Line_oriented
module S = BatString
open Printf
type parser_state = Chain of int
| Branch of int
| Ring of int
(* model the states by which the parser goes through while reading a SMILES string *)
let main () =
let argc, args = CLI.init () i... | null | https://raw.githubusercontent.com/UnixJunkie/carbon/d04b4e5dbb62066d3cfc3b4a19a2e92ff1e807b8/src/model.ml | ocaml | model the states by which the parser goes through while reading a SMILES string |
module CLI = Minicli.CLI
module LO = Line_oriented
module S = BatString
open Printf
type parser_state = Chain of int
| Branch of int
| Ring of int
let main () =
let argc, args = CLI.init () in
if argc = 1 then
(eprintf "usage:\n \
%s\n \
[-i... |
9772e93f8fe5610d6148696d9044366e55507fde573ff627d5ab53f1994c9265 | udem-dlteam/ribbit | 23-pairp.scm | (putchar (if (pair? 42) 65 66))
(putchar (if (pair? (cons 1 2)) 65 66))
(putchar 10)
;;;options: -l min
;;;expected:
;;;BA
| null | https://raw.githubusercontent.com/udem-dlteam/ribbit/3e88b58706dba9eac2bbb841f947b4cd9c47d6ec/src/tests/23-pairp.scm | scheme | options: -l min
expected:
BA | (putchar (if (pair? 42) 65 66))
(putchar (if (pair? (cons 1 2)) 65 66))
(putchar 10)
|
a71605abe3ce13fcc4fc73bbbd82b8f56f0527e2d53ddf19a92637067903eb54 | tsurucapital/euphoria | Lazy.hs | # LANGUAGE ScopedTypeVariables #
# OPTIONS_GHC -Wall #
-- | FRP.Euphoria.Internal.GenericCollection, with an interface specialised for
" Enum " keys .
module FRP.Euphoria.EnumCollection.Lazy
( CollectionUpdate (..)
, Collection
-- * creating collections
, simpleCollection
, accumCollection
, ... | null | https://raw.githubusercontent.com/tsurucapital/euphoria/15ddb49ddc79d62970a0163fe8d77789254db202/FRP/Euphoria/EnumCollection/Lazy.hs | haskell | | FRP.Euphoria.Internal.GenericCollection, with an interface specialised for
* creating collections
* observing collections
* other functions
Adds the necessary state for holding the existing [(k, a)] and creating
the unique Event stream for each change of the collection. | # LANGUAGE ScopedTypeVariables #
# OPTIONS_GHC -Wall #
" Enum " keys .
module FRP.Euphoria.EnumCollection.Lazy
( CollectionUpdate (..)
, Collection
, simpleCollection
, accumCollection
, collectionToUpdates
, emptyCollection
, collectionFromList
, collectionFromDiscreteList
, make... |
2b9fc9b09b3a00352a25c9dcb1291101c427f65de06eccd7815a7f37ff758a56 | anjensan/azql | core_test.clj | (ns azql.core-test
(:use clojure.test [azql emit dialect expression core])
(:require [clojure.java.jdbc :as jdbc]))
;; custom dialect
(register-dialect ::dialect)
(deffunctions ::dialect fun sin cos)
(defmethod emit-qname ::dialect [n] (name n))
(use-fixtures :once (fn [f] (binding [azql.dialect/*dialect* ::dialec... | null | https://raw.githubusercontent.com/anjensan/azql/026ed6da36a41478b54dc7761747ea84e6083edf/test/azql/core_test.clj | clojure | custom dialect | (ns azql.core-test
(:use clojure.test [azql emit dialect expression core])
(:require [clojure.java.jdbc :as jdbc]))
(register-dialect ::dialect)
(deffunctions ::dialect fun sin cos)
(defmethod emit-qname ::dialect [n] (name n))
(use-fixtures :once (fn [f] (binding [azql.dialect/*dialect* ::dialect] (f))))
(deftes... |
e522241e711376dca018f66341708342b1b9b312b104cf3b38712d64110da5b5 | eshamster/watson | global.lisp | (defpackage :watson/t/definer/global
(:use #:cl
#:rove
#:watson/definer/global)
(:import-from #:watson/env/environment
#:with-cloned-wenvironment
#:wsymbol-global
#:wat-global-type
#:wenv-global-body-generators
#:intern.... | null | https://raw.githubusercontent.com/eshamster/watson/0525f4a657298cec74121162c3cd3dec953c7a25/t/definer/global.lisp | lisp | (defpackage :watson/t/definer/global
(:use #:cl
#:rove
#:watson/definer/global)
(:import-from #:watson/env/environment
#:with-cloned-wenvironment
#:wsymbol-global
#:wat-global-type
#:wenv-global-body-generators
#:intern.... | |
d803ab38f7107063f505b5a955158962c0a94de5a478e3c6343e0413326f32fb | camllight/camllight | syntaxe.ml | #open "lexuniv";;
let analyseur_lexical = construire_analyseur
["false";"true";"("; ","; ")"; "["; "]"; "not"; "*"; "/"; "-"; "+";
"="; "<>"; "<"; ">"; "<="; ">="; "and"; "or"; "if"; "then"; "else";
"while"; "do"; "write"; "read"; "begin"; ";"; "end"; ":=";
"integer"; "boolean"; "array"; "of"; ".."; "var"; "... | null | https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/examples/pascal/syntaxe.ml | ocaml | #open "lexuniv";;
let analyseur_lexical = construire_analyseur
["false";"true";"("; ","; ")"; "["; "]"; "not"; "*"; "/"; "-"; "+";
"="; "<>"; "<"; ">"; "<="; ">="; "and"; "or"; "if"; "then"; "else";
"while"; "do"; "write"; "read"; "begin"; ";"; "end"; ":=";
"integer"; "boolean"; "array"; "of"; ".."; "var"; "... | |
e5d34c4b6dfd08c8c2c900c186231539d781c2ae220b9a973fca77b76ba183e7 | Simre1/haskell-game | Fundep.hs | # LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE ViewPatterns #
------------------------------------------------------------------------------
The MIT License ( MIT )
--
Copyright ( c ) 2017 , 2019
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this so... | null | https://raw.githubusercontent.com/Simre1/haskell-game/272a0674157aedc7b0e0ee00da8d3a464903dc67/polysemy/polysemy-plugin/src/Polysemy/Plugin/Fundep.hs | haskell | ----------------------------------------------------------------------------
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
furnished t... | # LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE ViewPatterns #
The MIT License ( MIT )
Copyright ( c ) 2017 , 2019
deal in the Software without restriction , including without limitation the
sell copies of the Software , and to permit persons to whom the Software is
all copies or substa... |
26190bd67fe94adbd8119f15fb8aca5c64d988fb97776f12af48ad851c0e647a | music-suite/music-suite | Aligned.hs | # OPTIONS_GHC -fno - warn - unused - imports
-fno - warn - redundant - constraints #
-fno-warn-redundant-constraints #-}
module Music.Time.Aligned
( -- * Aligned type
Aligned,
-- ** Creating aligned values
aligned,
alignTo,
(||>),
-- ** Update aligned values
align,
realign,
... | null | https://raw.githubusercontent.com/music-suite/music-suite/7f01fd62334c66418043b7a2d662af127f98685d/src/Music/Time/Aligned.hs | haskell | * Aligned type
** Creating aligned values
** Update aligned values
** Extracting/rendering aligned values
* Conversion functions
| Update the local origin of a value, but not its attachment point.
If the new alignment is different from the previous alignment,
the value is moved.
@
align x (aligned t y) ... | # OPTIONS_GHC -fno - warn - unused - imports
-fno - warn - redundant - constraints #
-fno-warn-redundant-constraints #-}
module Music.Time.Aligned
Aligned,
aligned,
alignTo,
(||>),
align,
realign,
renderAligned,
renderAlignedVoice,
renderAlignedNote,
renderAlignedDurati... |
31da4cd35dbf8ab7f7247556c5b9c9c67b110064667dc3a973826ae0d8fac44c | astro/prittorrent | model_users.erl | -module(model_users).
-export([register/2, get_salted/1, set_salted/2,
get_details/1, set_details/4,
get_by_email/1,
get_feeds/1, get_feed/2,
add_feed/3, rm_feed/2,
get_user_feed/2, set_user_feed/4]).
-define(POOL, pool_users).
-define(Q(Stmt, Params), model_sup:equery(?POOL, Stmt, Params)).
-define(T(Fun)... | null | https://raw.githubusercontent.com/astro/prittorrent/5173eeb8b00fd9ab7c0d347c9e361052023faebd/apps/model/src/model_users.erl | erlang | TODO: report user exists
TODO: remove unused from feeds | -module(model_users).
-export([register/2, get_salted/1, set_salted/2,
get_details/1, set_details/4,
get_by_email/1,
get_feeds/1, get_feed/2,
add_feed/3, rm_feed/2,
get_user_feed/2, set_user_feed/4]).
-define(POOL, pool_users).
-define(Q(Stmt, Params), model_sup:equery(?POOL, Stmt, Params)).
-define(T(Fun)... |
398d7d63eeb3134b6c65940bf17a4f7e910c480918b60155eae31dc279f48ad5 | tmfg/mmtis-national-access-point | exception_csv_test.clj | (ns ote.integration.import.exception-csv-test
(:require [clojure.test :refer :all]
[ote.services.admin :as admin]))
(deftest parsing-csv-to-exception-days
(let [csv-data (slurp "../ote/resources/public/csv/poikkeavat_ajopaivat.csv")
exceptions (admin/parse-exception-holidays-csv csv-data)]
... | null | https://raw.githubusercontent.com/tmfg/mmtis-national-access-point/a86cc890ffa1fe4f773083be5d2556e87a93d975/ote/test/clj/ote/integration/import/exception_csv_test.clj | clojure | (ns ote.integration.import.exception-csv-test
(:require [clojure.test :refer :all]
[ote.services.admin :as admin]))
(deftest parsing-csv-to-exception-days
(let [csv-data (slurp "../ote/resources/public/csv/poikkeavat_ajopaivat.csv")
exceptions (admin/parse-exception-holidays-csv csv-data)]
... | |
7f99972114d817f8f41d467ffa5df7246e243dcad4a93189f75565e7c5920f51 | tsloughter/kuberl | kuberl_v1beta1_csi_driver_spec.erl | -module(kuberl_v1beta1_csi_driver_spec).
-export([encode/1]).
-export_type([kuberl_v1beta1_csi_driver_spec/0]).
-type kuberl_v1beta1_csi_driver_spec() ::
#{ 'attachRequired' => boolean(),
'podInfoOnMount' => boolean(),
'volumeLifecycleModes' => list()
}.
encode(#{ 'attachRequired' := AttachRe... | null | https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1beta1_csi_driver_spec.erl | erlang | -module(kuberl_v1beta1_csi_driver_spec).
-export([encode/1]).
-export_type([kuberl_v1beta1_csi_driver_spec/0]).
-type kuberl_v1beta1_csi_driver_spec() ::
#{ 'attachRequired' => boolean(),
'podInfoOnMount' => boolean(),
'volumeLifecycleModes' => list()
}.
encode(#{ 'attachRequired' := AttachRe... | |
ca47e1779ce459c87aa4636ae5e579a1b8903cfa9dcc807c2b97b319b4c6023f | byulparan/websocket-demo | gl.lisp |
(defpackage #:gl
(:use #:cl #:js #:ps)
(:export #:init-shader))
(in-package :gl)
;;;
(defun gl-type (type)
(ecase type
(:float '(chain gl *float*))
(:unsigned-byte '(chain gl *unsigned_byte*))
(:unsigned-short '(chain gl *unsigned_short*))))
(defun gl-format (format)
(ecase format
(:rgba '(... | null | https://raw.githubusercontent.com/byulparan/websocket-demo/d952b6f689d36f7f6ef805a45d758cf2f96ee340/gl.lisp | lisp |
Shader
inter-shader
Buffer
Texture
dummy... |
(defpackage #:gl
(:use #:cl #:js #:ps)
(:export #:init-shader))
(in-package :gl)
(defun gl-type (type)
(ecase type
(:float '(chain gl *float*))
(:unsigned-byte '(chain gl *unsigned_byte*))
(:unsigned-short '(chain gl *unsigned_short*))))
(defun gl-format (format)
(ecase format
(:rgba '(chai... |
9ce96ba6924363c9bf1b094540f9fc42b079b1b16d2201210123da95b0e6c71a | rd--/hsc3 | Name.hs | | Functions to normalise Ugen names .
@Sc3@ Ugen names are capitalised at word boundaries .
@hsc3@ can not use these names for Ugen constructor functions .
names are given by lower - casing until the first word edge .
Lisp names are given by lower - casing everything and adding hyphens before edges .
@Sc... | null | https://raw.githubusercontent.com/rd--/hsc3/746bfb0995a64b33b4d18c42b3b9fa4364254786/Sound/Sc3/Ugen/Name.hs | haskell | base
hsc3
hsc3
import qualified Sound.Sc3.Common.Base {- hsc3
This rule is very simple but is coherent and predictable and works well for .hs names. | | Functions to normalise Ugen names .
@Sc3@ Ugen names are capitalised at word boundaries .
@hsc3@ can not use these names for Ugen constructor functions .
names are given by lower - casing until the first word edge .
Lisp names are given by lower - casing everything and adding hyphens before edges .
@Sc... |
f9c6c4161f994abbe2df0dadce64f3b9cf5b6825fc7cd9e2c3185690b13f721a | rbonichon/smtpp | undef_unused.mli | val apply : Extended_ast.ext_script -> Utils.SymbolSet.t * Utils.SymbolSet.t
val apply_and_pp : Extended_ast.ext_script -> unit
| null | https://raw.githubusercontent.com/rbonichon/smtpp/57eb74bccbb0f30293ee058ded4b01baa1067756/src/undef_unused.mli | ocaml | val apply : Extended_ast.ext_script -> Utils.SymbolSet.t * Utils.SymbolSet.t
val apply_and_pp : Extended_ast.ext_script -> unit
| |
99cd79d06d8b47ca32349457540748d1d11b6ab84bc3ff8fb05a470d3d594a76 | commercialhaskell/rio | Partial.hs | -- | Boxed @Vector@ partial functions. Import as:
--
> import qualified RIO.Vector . Boxed . Partial as VB '
module RIO.Vector.Boxed.Partial
(
-- * Accessors
-- ** Indexing
(Data.Vector.!)
, Data.Vector.head
, Data.Vector.last
-- ** Monadic indexing
, Data.Vector.indexM
, Data.Vector.headM
, Da... | null | https://raw.githubusercontent.com/commercialhaskell/rio/4eba306d37a60a20f0bed27f40afc23a7c892c40/rio/src/RIO/Vector/Boxed/Partial.hs | haskell | | Boxed @Vector@ partial functions. Import as:
* Accessors
** Indexing
** Monadic indexing
** Extracting subvectors
* Modifying vectors
** Bulk updates
** Accumulations
** Permutations
* Folding
** Specialised folds
* Prefix sums (scans) | > import qualified RIO.Vector . Boxed . Partial as VB '
module RIO.Vector.Boxed.Partial
(
(Data.Vector.!)
, Data.Vector.head
, Data.Vector.last
, Data.Vector.indexM
, Data.Vector.headM
, Data.Vector.lastM
, Data.Vector.init
, Data.Vector.tail
, (Data.Vector.//)
, Data.Vector.update
, Data... |
a32e97866870bfb9d19fbb350b76e1cc98f502e395a5e1a86f8d0a253cadcb3e | 2600hz/kazoo | kz_media_file.erl | %%%-----------------------------------------------------------------------------
( C ) 2012 - 2020 , 2600Hz
%%% @doc
@author
%%%
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 /.
%%%
%%% ... | null | https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_media/src/kz_media_file.erl | erlang | -----------------------------------------------------------------------------
@doc
@end
----------------------------------------------------------------------------- | ( C ) 2012 - 2020 , 2600Hz
@author
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 /.
-module(kz_media_file).
-export([get_uri/2]).
-include("kazoo_media.hrl").
-type build_uri_args() :... |
b0cef9448811a607fa1d7d82d759d35d812f25c5eee417ca52f4a924c4d1b7aa | haskus/packages | Typed.hs | # LANGUAGE PolyKinds #
# LANGUAGE KindSignatures #
-- | Typed memory
--
-- Pointer-like datatypes with an additional phantom type indicating their
-- memory layout
module Haskus.Memory.Typed
( BufferT (..)
, PointerT (..)
, PtrT (..)
)
where
import Haskus.Memory.Buffer
import Haskus.Memory.Ptr
import GHC.... | null | https://raw.githubusercontent.com/haskus/packages/6d4a64dc26b55622af86b8b45a30a10f61d52e4d/haskus-binary/src/lib/Haskus/Memory/Typed.hs | haskell | | Typed memory
Pointer-like datatypes with an additional phantom type indicating their
memory layout
| Typed pointer
| Typed buffer
| Typed raw pointer | # LANGUAGE PolyKinds #
# LANGUAGE KindSignatures #
module Haskus.Memory.Typed
( BufferT (..)
, PointerT (..)
, PtrT (..)
)
where
import Haskus.Memory.Buffer
import Haskus.Memory.Ptr
import GHC.Exts
newtype PointerT (t :: k) mut fin = PointerT (Pointer mut fin)
newtype BufferT (t :: k) = BufferT Buffer
... |
80a44a9514402edd3040dda1a096640772e27c2c69962e93b5fabbbc9f0ca1d5 | haskell-suite/haskell-names | ModuleSymbols.hs | # LANGUAGE ScopedTypeVariables , ViewPatterns #
module Language.Haskell.Names.ModuleSymbols
( moduleSymbols
, moduleTable
, getTopDeclSymbols
)
where
import Data.Maybe
import Data.Data
import qualified Data.Map as Map
import Language.Haskell.Exts hiding (DataOrNew(NewType))
import qualified Language.Haskell... | null | https://raw.githubusercontent.com/haskell-suite/haskell-names/795d717541484dbe456342a510ac8e712e1f16e4/src/Language/Haskell/Names/ModuleSymbols.hs | haskell | | 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 record
wildcard bindings, such as
>A {.... | # LANGUAGE ScopedTypeVariables , ViewPatterns #
module Language.Haskell.Names.ModuleSymbols
( moduleSymbols
, moduleTable
, getTopDeclSymbols
)
where
import Data.Maybe
import Data.Data
import qualified Data.Map as Map
import Language.Haskell.Exts hiding (DataOrNew(NewType))
import qualified Language.Haskell... |
e2b86cca94c5adae22005661ef5a371414c3a4c437d5e5031eda65b5e9a07dc2 | rtrusso/scp | set.scm | (define (scheme-codegen-set! expr env target linkage)
(define (get-lexical-address sym env up)
(if (null? env)
#f
(let ((index (index-of sym eqv? (cdr env))))
(if index
(cons up index)
(get-lexical-address sym (car env) (+ up 1))))))
(define (codegen... | null | https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/scheme/compiler/codegen/set.scm | scheme | (display up)
(display " ")
(display over)
(newline)
| (define (scheme-codegen-set! expr env target linkage)
(define (get-lexical-address sym env up)
(if (null? env)
#f
(let ((index (index-of sym eqv? (cdr env))))
(if index
(cons up index)
(get-lexical-address sym (car env) (+ up 1))))))
(define (codegen... |
d25493b3c8d51d6e762b665c58c12626a6979a109cf4634f5173c936c07bf18a | futurice/haskell-mega-repo | Endpoints.hs | {-# LANGUAGE OverloadedStrings #-}
-- |
Copyright : ( c ) 2015 Futurice Oy
-- License : BSD3
Maintainer : < >
module PlanMill.Endpoints (
-- * Absences
absences,
absencesFromInterval,
absencesFromIntervalFor,
absence,
-- * Accounts
accounts,
account,
-- * Actions
actions... | null | https://raw.githubusercontent.com/futurice/haskell-mega-repo/95fe8e33ad6426eb6e52a9c23db4aeffd443b3e5/planmill-client/src/PlanMill/Endpoints.hs | haskell | # LANGUAGE OverloadedStrings #
|
License : BSD3
* Absences
* Accounts
* Actions
* Assignments
* Capacity calendars
* Contacts
* Enumerations
* Exit criteria
* Me
* Projects
* Tasks
* Teams
* Timereports
** Editing
* Users
** Editing
* Hooks
* Reports
* Invoices
| Get a list of absences.
See <#... | Copyright : ( c ) 2015 Futurice Oy
Maintainer : < >
module PlanMill.Endpoints (
absences,
absencesFromInterval,
absencesFromIntervalFor,
absence,
accounts,
account,
actions,
projectAssignments,
reportableAssignments,
capacitycalendars,
userCapacity,
contacts,
e... |
ef93aa8a3d844b658f7ec41b45dad7fb8291c9cca540e7d3e611ebe5ee1e05c9 | AccelerateHS/accelerate | Nursery.hs | {-# LANGUAGE BangPatterns #-}
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
-- |
-- Module : Data.Array.Accelerate.Array.Remote.Nursery
Copyright : [ 2008 .. 2020 ] The Accelerate Team
-- License : BSD3
--
Maintainer : < >
-- Stability : experimental
Portability : non... | null | https://raw.githubusercontent.com/AccelerateHS/accelerate/5d32f1710e39f8aa7596f6beffebd2e8369cc36d/src/Data/Array/Accelerate/Array/Remote/Nursery.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE OverloadedStrings #
|
Module : Data.Array.Accelerate.Array.Remote.Nursery
License : BSD3
Stability : experimental
The nursery is a place to store remote memory arrays that are no longer
needed. Often it is quicker to reuse an existing array, rather than call ... | # LANGUAGE LambdaCase #
Copyright : [ 2008 .. 2020 ] The Accelerate Team
Maintainer : < >
Portability : non - portable ( GHC extensions )
module Data.Array.Accelerate.Array.Remote.Nursery (
Nursery(..), NRS, new, lookup, insert, cleanup, size
) where
import Data.Array.Accelerate.Error
impor... |
169e5acae5f2f0a26ca9a6d105b5241d5803144d3b3cb591fd60bdba24af1bba | quoll/asami | memory_index_test.cljc | (ns asami.memory-index-test
#?(:clj
(:require [asami.graph :refer [graph-add resolve-pattern count-pattern]]
[asami.index :refer [empty-graph]]
[schema.test :as st :refer [deftest]]
[clojure.test :as t :refer [testing is run-tests]])
:cljs
(:require [asami.g... | null | https://raw.githubusercontent.com/quoll/asami/15b1aa3112751c008ecc07cdce94874cd78f82d3/test/asami/memory_index_test.cljc | clojure | (ns asami.memory-index-test
#?(:clj
(:require [asami.graph :refer [graph-add resolve-pattern count-pattern]]
[asami.index :refer [empty-graph]]
[schema.test :as st :refer [deftest]]
[clojure.test :as t :refer [testing is run-tests]])
:cljs
(:require [asami.g... | |
84bdb4b1b8ee3a443cfc7d9d3b3800bddac8c423c2c557d4dec2003f305fa348 | ajhc/ajhc | IO.hs | # OPTIONS_JHC -fno - prelude -fffi -funboxed - values #
module Prelude.IO(
IO(),
ioError,
catch,
runExpr,
FilePath(),
putStr,
putStrLn,
print,
getLine,
getContents,
readFile,
interact,
writeFile,
appendFile,
putChar,
runExpr,
getChar,
userError
... | null | https://raw.githubusercontent.com/ajhc/ajhc/8ef784a6a3b5998cfcd95d0142d627da9576f264/lib/jhc/Prelude/IO.hs | haskell | # RULES "putStr/++" forall xs ys . putStr (xs ++ ys) = putStr xs >> putStr ys #
| The 'interact' function takes a function of type @String->String@
as its argument. The entire input from the standard input device is
passed to this function as its argument, and the resulting string is
output on the standard ou... | # OPTIONS_JHC -fno - prelude -fffi -funboxed - values #
module Prelude.IO(
IO(),
ioError,
catch,
runExpr,
FilePath(),
putStr,
putStrLn,
print,
getLine,
getContents,
readFile,
interact,
writeFile,
appendFile,
putChar,
runExpr,
getChar,
userError
... |
b681157043fde1e3a7c5dbaa0121eef4dcbc75acf73eda29e1daa8d6d4b4d085 | palletops/api-builder | stage_test.clj | (ns com.palletops.api-builder.stage-test
(:require
[clojure.test :refer :all]
[com.palletops.api-builder :as dfn]
[com.palletops.api-builder.stage :refer :all]
[schema.core :as schema]))
;;; # Test add-meta
(dfn/def-defn defn-add-meta
[(add-meta {::x :x})])
(dfn/def-fn fn-add-meta
[(add-meta {::x :x... | null | https://raw.githubusercontent.com/palletops/api-builder/c8cf98d0ba7152d96d3047507aab9947c7bf367b/test/clj/com/palletops/api_builder/stage_test.clj | clojure | # Test add-meta
# Test validate-errors
With assertions enabled
With assertions disabled
# Test validate-sig
; should give compile error
# Test validate-sig
# Test add-sig | (ns com.palletops.api-builder.stage-test
(:require
[clojure.test :refer :all]
[com.palletops.api-builder :as dfn]
[com.palletops.api-builder.stage :refer :all]
[schema.core :as schema]))
(dfn/def-defn defn-add-meta
[(add-meta {::x :x})])
(dfn/def-fn fn-add-meta
[(add-meta {::x :x})])
(dfn/def-defmu... |
7f4f350cba20d32e4571edb40aae607d1f2003a6c41dd5cf3295c926a5a0fadf | huangjs/cl | zrati.lisp | ;;; Compiled by f2cl version:
( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ "
" f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ "
" f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ "
" f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ "
" f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ "
" f2cl6.l ,... | null | https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/src/numerical/slatec/zrati.lisp | lisp | Compiled by f2cl version:
Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
(:coerce-assigns :as-needed) (:array-type ':simple-array)
(:array-slicing nil) (:declare-common nil)
(:float-format double-float)) | ( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ "
" f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ "
" f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ "
" f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ "
" f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ "
" f2cl6.l , v 1.48 2008/08/24 00:56:27 rt... |
872de0a2824a9a3951702214ea7969f2be9fea3cf957b71160a8c9e432cc016d | samedhi/firemore | hydrator.cljs | (ns firemore.hydrator
(:require
[cljs.core.async :as async]
[clojure.data :as data]
[clojure.set :as set]
[firemore.config :as config]
[firemore.firestore :as firestore])
(:require-macros
[cljs.core.async.macros :refer [go-loop go]]))
(enable-console-print!)
;; TODO: Rather than being map of pat... | null | https://raw.githubusercontent.com/samedhi/firemore/8a1829efbe9cbed367f1d49d0e92e01c5aa20ad5/src/firemore/hydrator.cljs | clojure | TODO: Rather than being map of paths, be a map of atoms of paths.
This section shuts down the state machine feeding the value at `path` by
calling unsubscribe; this is "side effect" code.
Remove the path from the path->listen-map. | (ns firemore.hydrator
(:require
[cljs.core.async :as async]
[clojure.data :as data]
[clojure.set :as set]
[firemore.config :as config]
[firemore.firestore :as firestore])
(:require-macros
[cljs.core.async.macros :refer [go-loop go]]))
(enable-console-print!)
(def ATM->PATH->LISTEN_MAP (atom {}))... |
51c08127fb7e46202d8e14daf90d997bb845eaed5ff0908ede18ca0cb553b86c | hspec/hspec | UnicodeSpec.hs | module Test.Hspec.Core.Formatters.Pretty.UnicodeSpec (spec) where
import Prelude ()
import Helper
import Test.Hspec.Core.Formatters.Pretty.Unicode
spec :: Spec
spec = do
describe "ushow" $ do
it "retains unicode characters" $ do
ushow "foo-\955-bar" `shouldBe` "\"foo-\955-ba... | null | https://raw.githubusercontent.com/hspec/hspec/9bc8b67603b8374261991e889177cd28564a111d/hspec-core/test/Test/Hspec/Core/Formatters/Pretty/UnicodeSpec.hs | haskell | module Test.Hspec.Core.Formatters.Pretty.UnicodeSpec (spec) where
import Prelude ()
import Helper
import Test.Hspec.Core.Formatters.Pretty.Unicode
spec :: Spec
spec = do
describe "ushow" $ do
it "retains unicode characters" $ do
ushow "foo-\955-bar" `shouldBe` "\"foo-\955-ba... | |
00e9332b9ee232ca5145d20f13be6511f1ea1b8d66c63ef307c921047e08efb5 | travitch/foreign-inference | Interface.hs | # LANGUAGE ExistentialQuantification , DeriveDataTypeable #
# LANGUAGE TemplateHaskell , StandaloneDeriving , ViewPatterns , CPP #
# LANGUAGE FlexibleContexts #
-- | This module defines an external representation of library
-- interfaces. Individual libraries are represented by the
' LibraryInterface ' . The analy... | null | https://raw.githubusercontent.com/travitch/foreign-inference/9cc0f7c730f7cd19afbd00d890abbc7109391cc6/src/Foreign/Inference/Interface.hs | haskell | | This module defines an external representation of library
interfaces. Individual libraries are represented by the
out.
During the analysis, the dependencies of the current library are
represented using the 'DependencySummary', which is composed of
Note that this module does not currently handle by-value stru... | # LANGUAGE ExistentialQuantification , DeriveDataTypeable #
# LANGUAGE TemplateHaskell , StandaloneDeriving , ViewPatterns , CPP #
# LANGUAGE FlexibleContexts #
' LibraryInterface ' . The analysis reads these in and writes these
several ' LibraryInterface 's .
properly . The various frontends lower these acc... |
af9651682135f65963efcfcfb4f22d7f657dc7ff21a83db0562d244940e5c9ae | ptal/AbSolute | mapext.ml |
This file is derived from the map.ml file from the OCaml distribution .
Changes are marked with the [ AM ] symbol .
Based on rev . 10468 2010 - 05 - 25 13:29:43Z
Author of the changes : , 2014
Original copyright follows .
This file is derived from the map.ml file from the OCaml distribution.... | null | https://raw.githubusercontent.com/ptal/AbSolute/469159d87e3a717499573c1e187e5cfa1b569829/src/core/mapext.ml | ocaml | *********************************************************************
Objective Caml
... |
This file is derived from the map.ml file from the OCaml distribution .
Changes are marked with the [ AM ] symbol .
Based on rev . 10468 2010 - 05 - 25 13:29:43Z
Author of the changes : , 2014
Original copyright follows .
This file is derived from the map.ml file from the OCaml distribution.... |
da5bdbf6874452cd3e3eba347f71d85fe247111dc59cb4a0c9ddef11adf4c4b3 | ralphrecto/xic | freshTest.ml | open Core.Std
open OUnit2
open TestUtil
module FooName = struct
let name = "foo"
end
module FreshFoo = Fresh.Make(FooName)
let test_fresh _ =
"foo0" === FreshFoo.fresh ();
"foo1" === FreshFoo.fresh ();
"foo2" === FreshFoo.fresh ();
"foo3" === FreshFoo.fresh ();
"foo4" === FreshFoo.fresh ();
"foo5" === ... | null | https://raw.githubusercontent.com/ralphrecto/xic/7dddfc855775467244a7949ee6d311dd8150f748/test/ocaml/freshTest.ml | ocaml | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! DON'T FORGET TO ADD YOUR TESTS HERE !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | open Core.Std
open OUnit2
open TestUtil
module FooName = struct
let name = "foo"
end
module FreshFoo = Fresh.Make(FooName)
let test_fresh _ =
"foo0" === FreshFoo.fresh ();
"foo1" === FreshFoo.fresh ();
"foo2" === FreshFoo.fresh ();
"foo3" === FreshFoo.fresh ();
"foo4" === FreshFoo.fresh ();
"foo5" === ... |
8c6a7d031862af1ed99c6c642dae243ee40d9e75700982469697844864cd75bd | hopbit/sonic-pi-snippets | tut12.sps | # key: tut12
# point_line: 1
# point_index: 7
# --
# TUT 12 -------------------------------------------
# SAMPLE!
sample :ambi_choir # :ambi_lunar_land # :loop_amen # :elec_filt_snare
# Mozna uzywac wlasnych sampli
# sample "#{ext_samples_path}/vocals/MaleHouseVocals_Freebie_SP/120_F#_Harmony_C_02_SP.wav"
# puts samp... | null | https://raw.githubusercontent.com/hopbit/sonic-pi-snippets/2232854ac9587fc2f9f684ba04d7476e2dbaa288/tutorial/tut12.sps | scheme | # key: tut12
# point_line: 1
# point_index: 7
# --
# TUT 12 -------------------------------------------
# SAMPLE!
sample :ambi_choir # :ambi_lunar_land # :loop_amen # :elec_filt_snare
# Mozna uzywac wlasnych sampli
# sample "#{ext_samples_path}/vocals/MaleHouseVocals_Freebie_SP/120_F#_Harmony_C_02_SP.wav"
# puts samp... | |
e45590898e53b1641e1f98590a072a1bf27563f9e1695fc3edbee3f346733842 | cj1128/sicp-review | 2.64.scm | ; The following procedure converts an *ordered list* to a balanced binary tree.
; The helper procedure `partial-tree` takes as arguments an integer `n` and list
of at least n elements and constructs a balanced tree containing the first n
; elements of the list.
;; write a short paragraph explaining as clearly as yo... | null | https://raw.githubusercontent.com/cj1128/sicp-review/efaa2f863b7f03c51641c22d701bac97e398a050/chapter-2/2.3/2.64.scm | scheme | The following procedure converts an *ordered list* to a balanced binary tree.
The helper procedure `partial-tree` takes as arguments an integer `n` and list
elements of the list.
write a short paragraph explaining as clearly as you can how partial-tree works
a.
Write a short paragraph explaining as clearly as you... |
of at least n elements and constructs a balanced tree containing the first n
think about the order of growth in the number of steps required by list->tree to convert a list of n elements
(define (make-tree entry left right)
(list entry left right))
(define (list->tree elements)
(car (partial-tree elements (... |
bc1a8b4f5a5b00c9c1ef5df9bdd17b867c7c584989d8c6acba5dce6ca4d54862 | LuisThiamNye/chic | combo.clj | (ns chic.controls.combo
(:require
[taoensso.encore :as enc]
[chic.paint :as cpaint]
[chic.util :as util]
[chic.ui.event :as uievt]
[clojure.math :as math]
[io.github.humbleui.core :as hui]
[io.github.humbleui.paint :as huipaint]
[chic.style :as style]
[chic.ui.error :as cui.error]
[chic.... | null | https://raw.githubusercontent.com/LuisThiamNye/chic/813633a689f9080731613f788a295604d4d9a510/src/chic/controls/combo.clj | clojure | (ns chic.controls.combo
(:require
[taoensso.encore :as enc]
[chic.paint :as cpaint]
[chic.util :as util]
[chic.ui.event :as uievt]
[clojure.math :as math]
[io.github.humbleui.core :as hui]
[io.github.humbleui.paint :as huipaint]
[chic.style :as style]
[chic.ui.error :as cui.error]
[chic.... | |
f99f1ce56c72a9e90990259b265a38c6bdf62b92e15caf8b809a5141cf4c83d8 | screenshotbot/screenshotbot-oss | abstract-pr-promoter.lisp | ;;;; Copyright 2018-Present Modern Interpreters Inc.
;;;;
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 /.
(defpackage :screenshotbot/abstract-pr-promoter
(:use #:cl)
(:import-from #:scree... | null | https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/1a9320375d1247a8eafba581c747d6faf3ccc34c/src/screenshotbot/abstract-pr-promoter.lisp | lisp | Copyright 2018-Present Modern Interpreters Inc.
We're using the run as a logger! | 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 /.
(defpackage :screenshotbot/abstract-pr-promoter
(:use #:cl)
(:import-from #:screenshotbot/promote-api
#:maybe-send-tasks
... |
910d314b20bc9ec4a1f5be44217c9a32a9ff4605d65b9f83d7bd642f6d5df4de | igrishaev/farseer | http.clj | (ns farseer.http
(:require
[farseer.config :as config]
[farseer.error :as e]
[farseer.spec.http :as spec.http]
[farseer.handler :as handler]
[ring.middleware.json :as json]
[clojure.spec.alpha :as s]))
(def malformed-response
{:status 200
:headers {"Content-Type" "application/json"}
:bo... | null | https://raw.githubusercontent.com/igrishaev/farseer/0c5aead5cbabf80edf32952888c9f860aa1248c7/farseer-http/src/farseer/http.clj | clojure | todo :body param | (ns farseer.http
(:require
[farseer.config :as config]
[farseer.error :as e]
[farseer.spec.http :as spec.http]
[farseer.handler :as handler]
[ring.middleware.json :as json]
[clojure.spec.alpha :as s]))
(def malformed-response
{:status 200
:headers {"Content-Type" "application/json"}
:bo... |
edffaf45999d9a4c0d3c4ff9dc94ad9ad359da477c4ef7bcf0439c495abdaf70 | byorgey/diagrams-play | Random.hs | # LANGUAGE NoMonomorphismRestriction , FlexibleInstances
, StandaloneDeriving
, GeneralizedNewtypeDeriving
#
, StandaloneDeriving
, GeneralizedNewtypeDeriving
#-}
import Diagrams.Prelude
import Diagrams.Backend.Cairo.CmdLine
import Control.Monad
import Control.Monad.Random
import Data.List.Split
imp... | null | https://raw.githubusercontent.com/byorgey/diagrams-play/5362c715db394be6848ff5de1bbe71178e5f173f/Random.hs | haskell | random # of sides
random colors
random scales
random rotations | # LANGUAGE NoMonomorphismRestriction , FlexibleInstances
, StandaloneDeriving
, GeneralizedNewtypeDeriving
#
, StandaloneDeriving
, GeneralizedNewtypeDeriving
#-}
import Diagrams.Prelude
import Diagrams.Backend.Cairo.CmdLine
import Control.Monad
import Control.Monad.Random
import Data.List.Split
imp... |
b81a27ed73c021a1d3d1638d7e66d5e94f683b95b2ec3dda4dd6dbf5511e8023 | codinuum/cca | f_inquire_spec.ml |
Copyright 2013 - 2018 RIKEN
Copyright 2018 - 2020 Chiba Institude of Technology
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 b... | null | https://raw.githubusercontent.com/codinuum/cca/88ea07f3fe3671b78518769d804fdebabcd28e90/src/ast/analyzing/langs/fortran/parsing/src/labels/f_inquire_spec.ml | ocaml | F2003
F2003
F2003
F2003
F2003
F2003
F2003
F2003
F2003
F2003 |
Copyright 2013 - 2018 RIKEN
Copyright 2018 - 2020 Chiba Institude of Technology
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 b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.