_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 |
|---|---|---|---|---|---|---|---|---|
76dc49f34f340cc2c4a7fcad7825d451b55b1eafb15c26c1c249a0a7fc9ad121 | nikomatsakis/a-mir-formality | implied-bounds--multi-crate.rkt | #lang racket
(require redex/reduction-semantics
"../../util.rkt"
"../../ty/user-ty.rkt"
"../grammar.rkt"
"../prove.rkt"
)
(module+ test
(redex-let*
formality-rust
[(;; # Crate A
;;
;; trait Debug { }
;; impl Debug for i32 { }
;;
Rust/CrateD... | null | https://raw.githubusercontent.com/nikomatsakis/a-mir-formality/71be4d5c4bd5e91d326277eaedd19a7abe3ac76a/racket-src/rust/test/implied-bounds--multi-crate.rkt | racket | # Crate A
trait Debug { }
impl Debug for i32 { }
# Crate B
# Crate Be
includes (feature expanded-implied-bounds)
# Crate C
No items.
Crate Be can prove `∀<T> { If (well-formed(Foo<T>)) { is-implemented(T: Debug) } }`
Crate C can also prove `∀<T> { If (well-formed(Foo<T>) { is-implemented(T: Debug) } }`... | #lang racket
(require redex/reduction-semantics
"../../util.rkt"
"../../ty/user-ty.rkt"
"../grammar.rkt"
"../prove.rkt"
)
(module+ test
(redex-let*
formality-rust
Rust/CrateDecl_A (term (crate CrateA { (trait Debug[] where [] {})
... |
be4d4fff2463b65949625fb41a75424f47e2ada710be39e3b7d89f4376c01499 | lagenorhynque/duct.module.pedestal | project.clj | (defproject duct.module.pedestal "2.1.5-SNAPSHOT"
:description "Duct module for Pedestal"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:min-lein-version "2.8.1"
:dependencies [;; Duct
[duct/core "0.8.0"]
Pedestal
[io.pedestal/pedestal.serv... | null | https://raw.githubusercontent.com/lagenorhynque/duct.module.pedestal/6158d5cef58739a881421413d9986c77c8db6678/project.clj | clojure | Duct
logging | (defproject duct.module.pedestal "2.1.5-SNAPSHOT"
:description "Duct module for Pedestal"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:min-lein-version "2.8.1"
[duct/core "0.8.0"]
Pedestal
[io.pedestal/pedestal.service "0.5.9"]
Pedestal ... |
7723494b13cd38f19e5dd6ca65945397b55d50979b601edb808cc84cba07d283 | samrocketman/home | egger-color-saturation.scm | ;
; The GIMP -- an image manipulation program
Copyright ( C ) 1995 and
;
Color Saturation script for GIMP 2.4
Original author : ( )
( C ) 2005 , Bern , Switzerland
;
; Tags: saturation, color
;
;
; --------------------------------------------------------------------
Distributed by Gimp FX Foundry proje... | null | https://raw.githubusercontent.com/samrocketman/home/63a8668a71dc594ea9ed76ec56bf8ca43b2a86ca/dotfiles/.gimp/scripts/egger-color-saturation.scm | scheme |
The GIMP -- an image manipulation program
Tags: saturation, color
--------------------------------------------------------------------
--------------------------------------------------------------------
- Changelog -
--------------------------------------------------------------------
This program is fr... | Copyright ( C ) 1995 and
Color Saturation script for GIMP 2.4
Original author : ( )
( C ) 2005 , Bern , Switzerland
Distributed by Gimp FX Foundry project
august 2007 - fixed for gimp 2.4
it under the terms of the GNU General Public License as published by
You should have received a copy of the ... |
f69d151d8f246917b5b4e02f8d07af498db082d7356899fdacf01f50a6917ea5 | i-am-tom/learn-me-a-haskell | InterpreterSpec.hs | module InterpreterSpec (main, spec) where
import Prelude ()
import Prelude.Compat
import Test.Hspec
import Interpreter (interpreterSupported, haveInterpreterKey, ghcInfo, withInterpreter, safeEval)
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "interprete... | null | https://raw.githubusercontent.com/i-am-tom/learn-me-a-haskell/08271f6cdd4fc88c26ed7a62ed1e786a900824be/vendor/doctest-0.16.0/test/InterpreterSpec.hs | haskell | module InterpreterSpec (main, spec) where
import Prelude ()
import Prelude.Compat
import Test.Hspec
import Interpreter (interpreterSupported, haveInterpreterKey, ghcInfo, withInterpreter, safeEval)
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "interprete... | |
51e210a7eaf6c6474a139ddd3c7c6558ea5fc26e9ee02b5b9f78833097e0a691 | flexsurfer/re-frisk | trace.cljs | (ns re-frisk.ui.trace
(:require-macros [re-frisk.inlined-deps.reagent.v1v0v0.reagent.ratom :refer [reaction]])
(:require [re-frisk.ui.components.components :as components]
[re-frisk.utils :as utils]
[re-frisk.ui.components.colors :as colors]))
(defn subs-count [label val color duration-ms]
... | null | https://raw.githubusercontent.com/flexsurfer/re-frisk/638d820c84e23be79b8c52f8f136a611d942443f/re-frisk/src/re_frisk/ui/trace.cljs | clojure | (when-not (= op-type :re-frame.router/fsm-trigger) | (ns re-frisk.ui.trace
(:require-macros [re-frisk.inlined-deps.reagent.v1v0v0.reagent.ratom :refer [reaction]])
(:require [re-frisk.ui.components.components :as components]
[re-frisk.utils :as utils]
[re-frisk.ui.components.colors :as colors]))
(defn subs-count [label val color duration-ms]
... |
f722d42580974475d5814b4087b0c10fe2cba08517b79b1f9bc61af56af3f332 | hasura/graphql-data-specification | ListArguments.hs | module Schema.Model.ListArguments
( arguments,
)
where
import DDL qualified
import Language.GraphQL.Draft.Syntax qualified as GraphQL
import Schema.Context
import Schema.NamingConvention
arguments :: DDL.ModelName -> Generate (GraphQL.ArgumentsDefinition GraphQL.InputValueDefinition)
arguments modelName = do
bo... | null | https://raw.githubusercontent.com/hasura/graphql-data-specification/b82b899a7d015c810a571d31322619aff2154b81/tooling/lib/Schema/Model/ListArguments.hs | haskell | module Schema.Model.ListArguments
( arguments,
)
where
import DDL qualified
import Language.GraphQL.Draft.Syntax qualified as GraphQL
import Schema.Context
import Schema.NamingConvention
arguments :: DDL.ModelName -> Generate (GraphQL.ArgumentsDefinition GraphQL.InputValueDefinition)
arguments modelName = do
bo... | |
fa1a605f91644110dd80420234faaecd24789270a9dc5331933b2971b749a373 | clojurewerkz/gizmo | responder.clj | (ns clojurewerkz.gizmo.responder
"Main responders namespace, used by Gizmo internally. Responders help to create a shortcuts
for responding with certain content type."
(:require [clojurewerkz.gizmo.request :as request]
[clojurewerkz.gizmo.utils.hash-utils :as hash-utils]
[ring.uti... | null | https://raw.githubusercontent.com/clojurewerkz/gizmo/7fdad2b8cd59b72bc243ff8b28da72f71d33b72e/src/clojurewerkz/gizmo/responder.clj | clojure | (ns clojurewerkz.gizmo.responder
"Main responders namespace, used by Gizmo internally. Responders help to create a shortcuts
for responding with certain content type."
(:require [clojurewerkz.gizmo.request :as request]
[clojurewerkz.gizmo.utils.hash-utils :as hash-utils]
[ring.uti... | |
5262a2bce02d285a23ca375cafb98c8afd830c8d3296bc191bf948a8da24dfaf | tweag/ormolu | overlappable-instances-out.hs | instance {-# OVERLAPPABLE #-} Eq Int where (==) _ _ = False
instance {-# OVERLAPPING #-} Ord Int where
compare _ _ = GT
instance {-# OVERLAPS #-} Eq Double where
(==) _ _ = False
instance
# INCOHERENT #
Ord
Double
where
compare _ _ = GT
| null | https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/instance/overlappable-instances-out.hs | haskell | # OVERLAPPABLE #
# OVERLAPPING #
# OVERLAPS # |
compare _ _ = GT
(==) _ _ = False
instance
# INCOHERENT #
Ord
Double
where
compare _ _ = GT
|
bf39fd270bd9f6c48c631dbd40693e3d815cd1fc3a38f5354b916e616b9eaa2c | msakai/toysolver | SeqQueue.hs | {-# OPTIONS_HADDOCK show-extensions #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
-----------------------------------------------------------------------------
-- |
-- Module : ToySolver.Internal.Data.SeqQueue
Copyright : ( c ) 2012
-- License : BSD-style
--
-- Maintainer : ... | null | https://raw.githubusercontent.com/msakai/toysolver/6233d130d3dcea32fa34c26feebd151f546dea85/src/ToySolver/Internal/Data/SeqQueue.hs | haskell | # OPTIONS_HADDOCK show-extensions #
---------------------------------------------------------------------------
|
Module : ToySolver.Internal.Data.SeqQueue
License : BSD-style
Maintainer :
Stability : provisional
Portability : non-portable
Queue implemented using IORef and Sequence.
--------... | # LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
Copyright : ( c ) 2012
module ToySolver.Internal.Data.SeqQueue
(
SeqQueue
, NewFifo (..)
, Enqueue (..)
, Dequeue (..)
, QueueSize (..)
, clear
) where
import Control.Monad.Primitive
import Control.Monad.ST
import Data.Queue... |
76f94428f5ef5bc69921b2ac5003848862e7b2e23604a346b1d240ecfd009d99 | ohua-dev/ohua-core | NS.hs | -- |
-- Module : $Header$
-- Description : Ohua namespaces
Copyright : ( c ) 2018 . All Rights Reserved .
-- License : EPL-1.0
Maintainer : ,
-- Stability : experimental
-- Portability : portable
This source code is licensed under the terms described in the associated LICENSE.TXT file
--
--
# ... | null | https://raw.githubusercontent.com/ohua-dev/ohua-core/8fe0ee90f4a1aea0c5bfabe922b290fed668a7da/core/src/Ohua/Frontend/NS.hs | haskell | |
Module : $Header$
Description : Ohua namespaces
License : EPL-1.0
Stability : experimental
Portability : portable
| A namespace as defined by the ohua API. It has a name, a list of
dependencies and aliasings and some defined expressions (currently
constrained to lambdas/algos)
Because the layo... | Copyright : ( c ) 2018 . All Rights Reserved .
Maintainer : ,
This source code is licensed under the terms described in the associated LICENSE.TXT file
# LANGUAGE DeriveLift , TemplateHaskell #
# OPTIONS_GHC -fno - warn - orphans #
module Ohua.Frontend.NS
( FunAnn(..)
, Imports
, Namespace
... |
dfe9c649a67a902dd1c29903f39014086a25b3cd62da0d5e8d1a44b94e7efdb4 | hiposfer/hive | logger.cljs | (ns hive.state.middleware.logger
(:require [datascript.core :as data]
[hive.utils.miscelaneous :as tool]
[clojure.walk :as walk]
[cljs.core.async :as async]
[cljs.core.async.impl.protocols :as async-pro]))
(defn munge-transaction
"replaces not printable objects with ... | null | https://raw.githubusercontent.com/hiposfer/hive/f17a5a1d0e17f719487d5b7375aefd8dc07f64e1/src/hive/state/middleware/logger.cljs | clojure | are created as a result of a previous promise
build a loggable Javascript object by replacing not printable object
with informative placeholders
log transaction and effects
link promises to future logs
return transaction | (ns hive.state.middleware.logger
(:require [datascript.core :as data]
[hive.utils.miscelaneous :as tool]
[clojure.walk :as walk]
[cljs.core.async :as async]
[cljs.core.async.impl.protocols :as async-pro]))
(defn munge-transaction
"replaces not printable objects with ... |
abecfb09d4ef532b61a81bb4405e01a09fafdc144d7cb0f3d834a976924a4185 | bos/llvm | ExecutionEngine.hs | # LANGUAGE FlexibleInstances , UndecidableInstances , MultiParamTypeClasses , FunctionalDependencies #
-- |An 'ExecutionEngine' is JIT compiler that is used to generate code for an LLVM module.
module LLVM.ExecutionEngine(
-- * Execution engine
EngineAccess,
runEngineAccess,
addModuleProvider,
addM... | null | https://raw.githubusercontent.com/bos/llvm/819b94d048c9d7787ce41cd7c71b84424e894f64/LLVM/ExecutionEngine.hs | haskell | |An 'ExecutionEngine' is JIT compiler that is used to generate code for an LLVM module.
* Execution engine
runStaticConstructors,
runStaticDestructors,
* Translation
* Unsafe type conversion
* Simplified interface.
* Target information
Note that the function is compiled for every call (Just-In-Time co... | # LANGUAGE FlexibleInstances , UndecidableInstances , MultiParamTypeClasses , FunctionalDependencies #
module LLVM.ExecutionEngine(
EngineAccess,
runEngineAccess,
addModuleProvider,
addModule,
getPointerToFunction,
addFunctionValue,
addGlobalMappings,
getFreePointers, FreePointers,
T... |
967b558c5687a7da6226008cb23cb2f852dd3c64c9faf0d04616820d4d0772e2 | haskell-repa/repa | Driver.hs |
-- | Drivers used to run the various jobs.
--
-- These drivers are used by the code that runs at query execution time.
We have a driver for each of the job types defined in " Data . . Query . Job " .
--
module Data.Repa.Query.Runtime.Driver
( execQuery
-- * Extraction
, execExtract
... | null | https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa-query/Data/Repa/Query/Runtime/Driver.hs | haskell | | Drivers used to run the various jobs.
These drivers are used by the code that runs at query execution time.
* Extraction
-------------------------------------------------------------------------------------------------
| Top level driver for a query job.
Build the flow sources.
Stream data from flow sourc... |
We have a driver for each of the job types defined in " Data . . Query . Job " .
module Data.Repa.Query.Runtime.Driver
( execQuery
, execExtract
, pattern ExtractTargetFile
*
, execSieve
, pattern SieveTargetDir)
where
import Data.Word
import Data.Maybe
import System.F... |
486ba6a5bfd9cfa912da9c1c717b7104af535d6450fa8a8afc3c1aee95120011 | mrkkrp/req | ReqSpec.hs | # LANGUAGE DataKinds #
# LANGUAGE FlexibleInstances #
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
# OPTIONS_GHC -fno - warn - orphans #
module Network.HTTP.ReqSpec (spec) where
import Control.Exception
import Control.Monad (forM_)
import Control.Monad.Trans.Control
import Da... | null | https://raw.githubusercontent.com/mrkkrp/req/4ec1f7bf87ce70ddb2f88126e9e817d3b05c994f/httpbin-tests/Network/HTTP/ReqSpec.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE RankNTypes #
TODO /delete
TODO /gzip
TODO /deflate
FIXME We no longer can count retries because all the functions
responsible for controlling retrying are pure now.
TODO /relative-redicet
TODO /absolute-redirect
TODO /digest-auth
TODO /stream
TODO /drip
TODO /range
... | # LANGUAGE DataKinds #
# LANGUAGE FlexibleInstances #
# LANGUAGE LambdaCase #
# OPTIONS_GHC -fno - warn - orphans #
module Network.HTTP.ReqSpec (spec) where
import Control.Exception
import Control.Monad (forM_)
import Control.Monad.Trans.Control
import Data.Aeson (ToJSON (..), Value (..), object, (.=))
import qualifi... |
0a352ed53e8e9f5aae7094279d5cae529e1c1a0c6e378e357a9cea6ea94d32c6 | seabre/inviteyoself | handler.clj | (ns inviteyoself.handler
(:require [compojure.core :refer [defroutes]]
[inviteyoself.routes.invite :refer [invite-routes]]
[inviteyoself.middleware :refer [load-middleware]]
[noir.response :refer [redirect]]
[noir.util.middleware :refer [app-handler]]
[compo... | null | https://raw.githubusercontent.com/seabre/inviteyoself/53356aa400384a0df38621a489fc2d94dfc15362/src/inviteyoself/handler.clj | clojure | should be always false for rotor
add your application routes here
add custom middleware here
add access rules here
serialize/deserialize the following data formats
available formats: | (ns inviteyoself.handler
(:require [compojure.core :refer [defroutes]]
[inviteyoself.routes.invite :refer [invite-routes]]
[inviteyoself.middleware :refer [load-middleware]]
[noir.response :refer [redirect]]
[noir.util.middleware :refer [app-handler]]
[compo... |
da3cbf292f09124a8caa5ed27c0eecc3004aeee6d4e2adbfe23222b533e3239d | aeolus-project/zephyrus | data_common_graph.mli | (****************************************************************************)
(* *)
This file is part of Zephyrus .
(* *)
Z... | null | https://raw.githubusercontent.com/aeolus-project/zephyrus/0b52de4038bbab724e6a9628430165a7f09f77ae/src/datatypes/common/data_common_graph.mli | ocaml | **************************************************************************
(at your option) any later version.
... | This file is part of Zephyrus .
Zephyrus is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
Zephyru... |
0205b532717b7f42079b7dffb1a8a8d0f61720621dbf816cd755b9946674e00b | erlang/erlide_kernel | erl_scan_local.erl | coding : utf-8
%%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 1996 - 2013 . All Rights Reserved .
%%
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
%% compliance with the License. You should have received a copy of th... | null | https://raw.githubusercontent.com/erlang/erlide_kernel/763a7fe47213f374b59862fd5a17d5dcc2811c7b/ide/apps/erlide_ide_core/src/erl_scan_local.erl | erlang |
%CopyrightBegin%
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at /.
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limitatio... | coding : utf-8
Copyright Ericsson AB 1996 - 2013 . All Rights Reserved .
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
Erlang token scanning f... |
0af7313d11760c0e9e34a7bf000901d328892f633654099bf379e036f1734608 | dbuenzli/hyperbib | service.ml | ---------------------------------------------------------------------------
Copyright ( c ) 2021 University of Bern . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
---------------------------------------------------------------------------
Copyright (c) 20... | null | https://raw.githubusercontent.com/dbuenzli/hyperbib/bea0ee2c35fac11fdb856c914edd846fb4a8f709/src/service.ml | ocaml | Sessions
Service private key setup. This could be in a webs bazaar.
Sub services
Service
This adjusts the session according to the webapp edition mode: we may
still receive sessions from when the webapp was in a different mode.
The page rendering parameters are also defined here.
Drop all sessions ... | ---------------------------------------------------------------------------
Copyright ( c ) 2021 University of Bern . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
---------------------------------------------------------------------------
Copyright (c) 20... |
dea304150281e7e5e9682acf36a416841342d41957ac67182746ca870d3eff97 | vii/teepeedee2 | packages.lisp | (cl:defpackage #:teepeedee2.system
(:use #:cl))
(cl:in-package #:teepeedee2.system)
(defpackage #:teepeedee2.lib
(:nicknames #:tpd2.lib)
(:use #:common-lisp #:iter #:cl-irregsexp.bytestrings)
(:import-from #:alexandria #:with-unique-names #:define-constant)
(:import-from #:trivial-garbage #:finalize #:cancel... | null | https://raw.githubusercontent.com/vii/teepeedee2/a2ed78c51d782993591c3284562daeed3aba3d40/src/packages.lisp | lisp | (cl:defpackage #:teepeedee2.system
(:use #:cl))
(cl:in-package #:teepeedee2.system)
(defpackage #:teepeedee2.lib
(:nicknames #:tpd2.lib)
(:use #:common-lisp #:iter #:cl-irregsexp.bytestrings)
(:import-from #:alexandria #:with-unique-names #:define-constant)
(:import-from #:trivial-garbage #:finalize #:cancel... | |
6181c41065822ac2cbc585cd94742459c62ab84f75cf10a2d1f31b72ca154df3 | DKurilo/hackerrank | solution.hs | {-# OPTIONS_GHC -O2 #-}
# LANGUAGE OverloadedStrings , UnicodeSyntax #
module Main where
so no we can use ← , ∷ , etc
so now we can use ≫ , ≫= , etc .
import Control.Monad
import qualified Data.ByteString.Char8 as BSC
import qualified Data.Map as DM
import Data.List (sort, sortBy)
import Debug.Trace
import System... | null | https://raw.githubusercontent.com/DKurilo/hackerrank/37063170567b397b25a2b7123bc9c1299d34814a/determining-dna-health/solution.hs | haskell | # OPTIONS_GHC -O2 # | # LANGUAGE OverloadedStrings , UnicodeSyntax #
module Main where
so no we can use ← , ∷ , etc
so now we can use ≫ , ≫= , etc .
import Control.Monad
import qualified Data.ByteString.Char8 as BSC
import qualified Data.Map as DM
import Data.List (sort, sortBy)
import Debug.Trace
import System.IO
data Strand = S Int... |
2f0751daf4824826746bf9702c1fc4fbba66683faa3716fedd828cedc218d14d | msszczep/pequod-cljs | middleware.clj | (ns pequod-cljs.middleware
(:require [ring.middleware.defaults :refer [site-defaults wrap-defaults]]))
(defn wrap-middleware [handler]
(wrap-defaults handler site-defaults))
| null | https://raw.githubusercontent.com/msszczep/pequod-cljs/986ad97fa39d5b83828c07daf80655460b27d2dd/env/prod/clj/pequod_cljs/middleware.clj | clojure | (ns pequod-cljs.middleware
(:require [ring.middleware.defaults :refer [site-defaults wrap-defaults]]))
(defn wrap-middleware [handler]
(wrap-defaults handler site-defaults))
| |
cf15ea87bb039b55d3b69ceb81c2cdf457fae78eb646713244563c91155d90f7 | CSCfi/rems | audit_log.clj | (ns rems.api.audit-log
(:require [compojure.api.sweet :refer :all]
[rems.db.core :as db]
[schema.core :as s])
(:import (org.joda.time DateTime)))
(s/defschema AuditLogEntry
{:time DateTime
:path s/Str
:method s/Str
:apikey (s/maybe s/Str)
:userid (s/maybe s/Str)
:status s/S... | null | https://raw.githubusercontent.com/CSCfi/rems/644ef6df4518b8e382cdfeadd7719e29508a26f0/src/clj/rems/api/audit_log.clj | clojure | (ns rems.api.audit-log
(:require [compojure.api.sweet :refer :all]
[rems.db.core :as db]
[schema.core :as s])
(:import (org.joda.time DateTime)))
(s/defschema AuditLogEntry
{:time DateTime
:path s/Str
:method s/Str
:apikey (s/maybe s/Str)
:userid (s/maybe s/Str)
:status s/S... | |
1213845a5f0731fb0d65d5e2f0adb75f26d3c2579ffd2a771e62e6fa0c046d86 | malyn/figwheel-node-template | project.clj | (defproject {{name}} "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:url ""
:min-lein-version "2.7.1"
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.908"]]
:plugins [[lein-cljsbuild "1.1.7" :exclusions [[org.clojure/clojure]]]
[lein-figwheel "0... | null | https://raw.githubusercontent.com/malyn/figwheel-node-template/87425ca0cca02462550bea9e66c035e6a412e664/src/leiningen/new/figwheel_node/project.clj | clojure | (defproject {{name}} "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:url ""
:min-lein-version "2.7.1"
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.908"]]
:plugins [[lein-cljsbuild "1.1.7" :exclusions [[org.clojure/clojure]]]
[lein-figwheel "0... | |
3070933e40779574d1b7735996519b079187cad335646505546c769b7a72e341 | kelamg/HtDP2e-workthrough | ex154.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-beginner-reader.ss" "lang")((modname ex154) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f ... | null | https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Arbitrarily-Large-Data/ex154.rkt | racket | about the language level of this file in a form that our tools can easily process.
– String
RD -> Number
RD -> String
produces a string of all the colors separated by
a comma and a space | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-beginner-reader.ss" "lang")((modname ex154) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
(define-struct layer [color doll])
An RD ( short for Russian do... |
aaaf7dbb11774e3c024a5d9c0817b287736867930e1bdedf9f6ff073aadc7426 | elaforge/karya | Segment.hs | Copyright 2017
-- This program is distributed under the terms of the GNU General Public
-- License 3.0, see COPYING or -3.0.txt
# LANGUAGE CPP #
-- | The 'Signal' type and functions.
module Util.Segment (
Signal, SignalS, Interpolate
, Segment(..)
, X, Sample(..)
-- * construct / destruct
, emp... | null | https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Util/Segment.hs | haskell | This program is distributed under the terms of the GNU General Public
License 3.0, see COPYING or -3.0.txt
| The 'Signal' type and functions.
* construct / destruct
* query
* concat
* slice
* transform
, map_segments
** hacks
* Boxed
* resample
* piecewise constant
* construct / destruct
This will natura... | Copyright 2017
# LANGUAGE CPP #
module Util.Segment (
Signal, SignalS, Interpolate
, Segment(..)
, X, Sample(..)
, empty
, constant, constant_val, constant_val_num
, all_y
, beginning
, from_vector, to_vector
, from_samples, to_samples, to_samples_desc
, from_pairs, to_pairs... |
a5124dafb47211882e7517c059dd88ea1c76c10cdd385efe6f997a4570faf07c | Deep-Symmetry/afterglow | effects.clj | (ns afterglow.effects
"Support functions for building the effects pipeline."
{:author "James Elliott"}
(:require [afterglow.effects.params :as params]
[afterglow.rhythm :as rhythm]
[afterglow.show-context :refer [*show*]]
[afterglow.util :as util]
[clojure.math.nume... | null | https://raw.githubusercontent.com/Deep-Symmetry/afterglow/0a1a7f9b6ca17b2c797b537ca7bd4293c76fece0/src/afterglow/effects.clj | clojure | At each DMX frame generation, we will run through all the effects and ask them if they are still
active. If not, they will be removed from the list of active effects. For the remaining ones,
we obtain a list of assignments they want to make, and handle them as described above.
return `true` if it can end immediatel... | (ns afterglow.effects
"Support functions for building the effects pipeline."
{:author "James Elliott"}
(:require [afterglow.effects.params :as params]
[afterglow.rhythm :as rhythm]
[afterglow.show-context :refer [*show*]]
[afterglow.util :as util]
[clojure.math.nume... |
40e80dc0b5d4bfd759a91b5fbcfdb6a3c3484b0de0354e964a0d78975f3350f0 | sealchain-project/sealchain | DHT.hs | module Pos.Infra.DHT
( module X
) where
import Pos.Infra.DHT.Model as X
import Pos.Infra.DHT.Real as X
| null | https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/infra/src/Pos/Infra/DHT.hs | haskell | module Pos.Infra.DHT
( module X
) where
import Pos.Infra.DHT.Model as X
import Pos.Infra.DHT.Real as X
| |
512d442e5433d33974337742851da27771dbb56845a8684c3b68e9369c6ce6d4 | LuisThiamNye/chic | core.clj | (ns chic.clj-editor.core
(:require
[clj-commons.primitive-math :as prim]
[chic.clj-editor.seg :as clj-editor.seg]
[chic.clj-editor.event :as clj-editor.event]
[potemkin :refer [doit]]
[chic.clj-editor.parser :as parser]
[chic.clj-editor.ui :as clj-editor.ui]
[chic.clj-editor.nav :as clj-editor.na... | null | https://raw.githubusercontent.com/LuisThiamNye/chic/813633a689f9080731613f788a295604d4d9a510/src/chic/clj_editor/core.clj | clojure | Else
Else
focus-manager (:focus-manager ctx)
window (:chic/current-window ctx) | (ns chic.clj-editor.core
(:require
[clj-commons.primitive-math :as prim]
[chic.clj-editor.seg :as clj-editor.seg]
[chic.clj-editor.event :as clj-editor.event]
[potemkin :refer [doit]]
[chic.clj-editor.parser :as parser]
[chic.clj-editor.ui :as clj-editor.ui]
[chic.clj-editor.nav :as clj-editor.na... |
c2cafb4064a89cdc771eb9543610f0e0cf8e23a92c09891c330661f155ed808c | binsec/haunted | x86_options.ml | (**************************************************************************)
This file is part of BINSEC .
(* *)
Copyright ( C ) 2016 - 2019
CEA ( Co... | null | https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/disasm/x86/x86_options.ml | ocaml | ************************************************************************
alternatives)
you can redistribute it an... | This file is part of BINSEC .
Copyright ( C ) 2016 - 2019
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Software
Foundation , ve... |
81902652c7c3f3daf4ede49366343cbef7a4d316514b571fa0a97a04fc1d7b3f | OCamlPro/operf-micro | command.mli | open Utils
type command_part =
| IF of file (** input file *)
| OF of file (** output file *)
| ID of directory (** input directory *)
| OD of directory (** output directory *)
| A of string (** raw string *)
type command = file * command_part list * directory option
val command_to_string : command -> stri... | null | https://raw.githubusercontent.com/OCamlPro/operf-micro/d5d2bf2068204b889321b0c5a7bc0d079c0fca80/tools/operf-micro/command.mli | ocaml | * input file
* output file
* input directory
* output directory
* raw string
returns stdout | open Utils
type command_part =
type command = file * command_part list * directory option
val command_to_string : command -> string
val run_command : ?use_path:bool -> command -> string option
val run_and_read : (command * file) -> string option
val run_and_read_lines : (command * file) -> string list option
val... |
416fcdf912df350f74fb5372f818e7e5d0cd9656c869af7dcc4fa7acb79e70b0 | MLstate/opalang | qmlTypeVars.ml |
Copyright © 2011 , 2012 MLstate
This file is part of .
is free software : you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License , version 3 , as published by
the Free Software Foundation .
is distributed in the hope that it will be us... | null | https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/compiler/libqmlcompil/qmlTypeVars.ml | ocaml |
*
Guidelines, design of printing for Type Variables :
You can build a new scope each time you want to reset the pretty-printing.
The rule is so :
Whenever it is possible, the output chosen for a variable is its original name
in the source. In case of conflict, we fallback to 'v%d
*
Reste the sc... |
Copyright © 2011 , 2012 MLstate
This file is part of .
is free software : you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License , version 3 , as published by
the Free Software Foundation .
is distributed in the hope that it will be us... |
0677d805aff43084ee7a15c9dcb618a175b0187c1538028e94823a501bd08817 | BetterThanTomorrow/joyride | my_lib.cljs | (ns my-lib
(:require ["vscode" :as vscode]
[promesa.core :as p]))
;; Assuming this namespace i required by `activate.cljs`
;; you can reach vars in `my-lib` using `my-lib/<symbol>` in
;; `joyride.runCode` keybindings without requiring `my-lib``
;; there.
;; An example: VS Code does not provide a way to... | null | https://raw.githubusercontent.com/BetterThanTomorrow/joyride/20da75fb49bb4ec5b35f24323d3ab6ea39f336be/assets/getting-started-content/user/my_lib.cljs | clojure | Assuming this namespace i required by `activate.cljs`
you can reach vars in `my-lib` using `my-lib/<symbol>` in
`joyride.runCode` keybindings without requiring `my-lib``
there.
An example: VS Code does not provide a way to reliably start a
find-in-file with regular expressions toggled on.
This function does that... | (ns my-lib
(:require ["vscode" :as vscode]
[promesa.core :as p]))
(defn find-with-regex-on []
(let [selection vscode/window.activeTextEditor.selection
document vscode/window.activeTextEditor.document
selectedText (.getText document selection)
regexp-chars (js/RegExp. #"[.?+*^... |
6ea784821db3929ea75427c2accc4bccb606af4a80e141f6d2ee44c578682a80 | raelmax/mod_http_offline | mod_http_offline.erl | %% name of module must match file name
-module(mod_http_offline).
-author("Rael Max").
-behaviour(gen_mod).
-export([start/2, stop/1, create_message/3]).
-include("ejabberd.hrl").
-include("jlib.hrl").
-include("logger.hrl").
start(_Host, _Opt) ->
?INFO_MSG("mod_http_offline loading", []),
inets:start(),
?IN... | null | https://raw.githubusercontent.com/raelmax/mod_http_offline/5585974b537668ea2fc7e21757f59d4ad6c43f3d/mod_http_offline.erl | erlang | name of module must match file name | -module(mod_http_offline).
-author("Rael Max").
-behaviour(gen_mod).
-export([start/2, stop/1, create_message/3]).
-include("ejabberd.hrl").
-include("jlib.hrl").
-include("logger.hrl").
start(_Host, _Opt) ->
?INFO_MSG("mod_http_offline loading", []),
inets:start(),
?INFO_MSG("HTTP client started", []),
eja... |
395cc84869288906dea0e26ec9dd6770cd5dc861ae21b4d2a9f7289f997224af | y2q-actionman/cl-json-pointer | test-trivial-json-codec.lisp | (defpackage :cl-json-pointer/test-trivial-json-codec
(:use :cl)
(:export #:Payload
#:Message))
(in-package :cl-json-pointer/test-trivial-json-codec)
Copied from -json-codec/-/blob/master/README.md
(defclass Payload ()
())
(defclass SimplePayload (Payload)
((value :type integer
:initar... | null | https://raw.githubusercontent.com/y2q-actionman/cl-json-pointer/bb38f1dd6534d77b38a1fa833206de31a48d0c08/test/test-trivial-json-codec.lisp | lisp | (defpackage :cl-json-pointer/test-trivial-json-codec
(:use :cl)
(:export #:Payload
#:Message))
(in-package :cl-json-pointer/test-trivial-json-codec)
Copied from -json-codec/-/blob/master/README.md
(defclass Payload ()
())
(defclass SimplePayload (Payload)
((value :type integer
:initar... | |
8afd7e505da1ff930a78cd4962e7a7f473e08c98890b756f70dd06f37d7caf37 | redstarssystems/apptemplate | config.clj | (ns build.config
"Project configuration"
(:require
[clojure.string :as string]
[build.init :refer [safe-exec current-date-struc prf current-timestamp]]))
;;;;;;;;;;;;;;;;;
Project config and project functions
;; Calculate all project data & constants here
;;;;;;;;;;;;;;;;;
(def group-id '{{group/id}})... | null | https://raw.githubusercontent.com/redstarssystems/apptemplate/764fa977dea6b6b8d8e914c1112155f77b394a27/resources/org/rssys/apptemplate/root/tasks/src/build/config.clj | clojure |
Calculate all project data & constants here
this map can be used not only in `build.clj` | (ns build.config
"Project configuration"
(:require
[clojure.string :as string]
[build.init :refer [safe-exec current-date-struc prf current-timestamp]]))
Project config and project functions
(def group-id '{{group/id}})
(def artifact-id '{{artifact/id}})
(def artifact '{{group/id}}/{{artifact/id}})
(... |
0c925d20f41ef400eb8463fd70f6c959c63e5c045bb4acb6fc51d0e3794a2dde | returntocorp/semgrep | Python_to_generic.mli | val program :
?assign_to_vardef:bool -> AST_python.program -> AST_generic.program
val any : AST_python.any -> AST_generic.any
val type_for_lsif : AST_python.type_ -> AST_generic.type_
val parameters_for_lsif : AST_python.parameters -> AST_generic.parameter list
(* exception Error of string * Parse_info.info *)
(* m... | null | https://raw.githubusercontent.com/returntocorp/semgrep/00a0aacb808afecfb6ea3d497cbc8babedf2477f/languages/python/generic/Python_to_generic.mli | ocaml | exception Error of string * Parse_info.info
may raise Error | val program :
?assign_to_vardef:bool -> AST_python.program -> AST_generic.program
val any : AST_python.any -> AST_generic.any
val type_for_lsif : AST_python.type_ -> AST_generic.type_
val parameters_for_lsif : AST_python.parameters -> AST_generic.parameter list
|
1007a99f2f468b9affb6c73bc12de6d70998fe67520edb1a1a6fea8984b70a45 | SquidDev/urn | walk.lisp | "This is the main variable resolver for Urn expressions. This binds
symbols to the corresponding variable, resolves macros and top level
unquotes, and ensures that the program is well formed.
This does not handle importing modules or executing state: we yield to
the top level compiler loop in order to handle that.... | null | https://raw.githubusercontent.com/SquidDev/urn/6e6717cf1376b0950e569e3771cb7e287aed291d/urn/resolve/walk.lisp | lisp | Ensure the syntax isn't empty
Gobble list elements, verifying they are valid
Verify syntax specific fields are not set
Verify signature arity is consistent
Verify precedence arity is consistent
We've got a valid node. We'll copy it in order to avoid
having the same node appearing in multiple macro expansions.
T... | "This is the main variable resolver for Urn expressions. This binds
symbols to the corresponding variable, resolves macros and top level
unquotes, and ensures that the program is well formed.
This does not handle importing modules or executing state: we yield to
the top level compiler loop in order to handle that.... |
f92f30d65575b724720b32d4e6c53b3d9c1d9725248dadadc54b2aa97a0e8c7f | weavejester/codox | example2.clj | (ns codox.example2
{:added "1.1", :deprecated "2.0"})
(defn foo [x y & z])
(defmacro bar [x & body])
(def baz true)
(def ^{:doc "Var with removed source link."} quz 10)
Test for issue # 43
(alter-meta! #'quz assoc :file "/tmp/form-init1234.clj")
Test for issue # 57
(defn marklinks
"Let's try some [links][... | null | https://raw.githubusercontent.com/weavejester/codox/bc41c2bbc270f52bceba095e57be30de80b892e0/example/src/clojure/codox/example2.clj | clojure | (ns codox.example2
{:added "1.1", :deprecated "2.0"})
(defn foo [x y & z])
(defmacro bar [x & body])
(def baz true)
(def ^{:doc "Var with removed source link."} quz 10)
Test for issue # 43
(alter-meta! #'quz assoc :file "/tmp/form-init1234.clj")
Test for issue # 57
(defn marklinks
"Let's try some [links][... | |
98175eb3cfa4828f5ea1031d65912f920605c1493ed775256b6e0ac35549c889 | mariari/Misc-ML-Scripts | state.hs | import Control.Arrow
newtype State s a = State {runState :: s -> (a, s)}
get :: State s s
get = State (id &&& id)
put :: a -> State a ()
put s = State (const ((), s))
modify :: (s -> s) -> State s ()
modify f = State (const () &&& f)
(>>=%) :: State s t -> (t -> State s a) -> State s a
m >>=% k = State $ \s -> let... | null | https://raw.githubusercontent.com/mariari/Misc-ML-Scripts/d18aecf539c2d2ccf7ba9eb796f90e3ca809f5bf/Haskell/data-structures/state.hs | haskell | can use *** here, but it is less readable | import Control.Arrow
newtype State s a = State {runState :: s -> (a, s)}
get :: State s s
get = State (id &&& id)
put :: a -> State a ()
put s = State (const ((), s))
modify :: (s -> s) -> State s ()
modify f = State (const () &&& f)
(>>=%) :: State s t -> (t -> State s a) -> State s a
m >>=% k = State $ \s -> let... |
c411521ec1595013e36e36a49ed458f8ff6e1d2008f19b569834dafa6d0c4253 | ocsigen/js_of_ocaml | report.ml | Js_of_ocaml benchmarks
* /
* Copyright ( C ) 2011
* Laboratoire PPS - CNRS Université Paris Diderot
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation ; either version 2 ... | null | https://raw.githubusercontent.com/ocsigen/js_of_ocaml/fbb633e627998d865a30a399eb932e9651dc01c6/benchmarks/report.ml | ocaml | if there was an old table, we keep only the lines corresponding
to entries in that table
labels
why?
notitle does not work ... I don't know why ... | Js_of_ocaml benchmarks
* /
* Copyright ( C ) 2011
* Laboratoire PPS - CNRS Université Paris Diderot
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation ; either version 2 ... |
03947881f71a8427f046e534b4ec960a3e470b358d3245fb39bb5fe6db895139 | tweag/asterius | T12689a.hs | data T1 = MkT1Bad | MkT1Good deriving Show
data T2 = MkT2Bad Int | MkT2Good Int deriving Show
data T3 = MkT3Bad {-# UNPACK #-} !Int | MkT3Good {-# UNPACK #-} !Int deriving Show
data T4 = MkT4Bad Int | MkT4Good Int de... | null | https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/simplCore/T12689a.hs | haskell | # UNPACK #
# UNPACK #
# UNPACK #
# UNPACK # | data T1 = MkT1Bad | MkT1Good deriving Show
data T2 = MkT2Bad Int | MkT2Good Int deriving Show
data T4 = MkT4Bad Int | MkT4Good Int deriving Show
# RULES
" T1 " app MkT1Bad = MkT1Good
" T2 " fora... |
8f2dc712f281d3486da953cf7f61c4b354b153d1b22f637c1199ebfa6ebfea05 | juspay/atlas | Utils.hs | |
Copyright 2022 Juspay Technologies Pvt Ltd
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing , software
dis... | null | https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/mock-public-transport-bpp/src/API/Utils.hs | haskell | |
Copyright 2022 Juspay Technologies Pvt Ltd
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing , software
dis... | |
94659944d76838c1ec5d7f6fee7fe43f13da5eef8db9e096206a5fd5e1d97ad3 | noloop/cacau | cacau-examples-quickstart.lisp | (defpackage #:cacau-examples-quickstart
(:use #:common-lisp
#:assert-p
#:cacau))
(in-package #:cacau-examples-quickstart)
(deftest "Test-1" () (eql-p 1 1))
(deftest "Test-2" () (eql-p 2 2))
(deftest "Test-3" () (eql-p 3 3))
(run :colorful t)
| null | https://raw.githubusercontent.com/noloop/cacau/ba0fb36a284ded884f1dab0bd3f0f41ec14e3038/examples/cacau-examples-quickstart.lisp | lisp | (defpackage #:cacau-examples-quickstart
(:use #:common-lisp
#:assert-p
#:cacau))
(in-package #:cacau-examples-quickstart)
(deftest "Test-1" () (eql-p 1 1))
(deftest "Test-2" () (eql-p 2 2))
(deftest "Test-3" () (eql-p 3 3))
(run :colorful t)
| |
e8b4a4b0b4673bd0b8fcf6a496357c84b6e4799d33b56d6bace322851f81b2bc | RefactoringTools/HaRe | SubFun3.expected.hs | module SubFun3 where
--Any unused parameter to a definition can be removed.
--In this example: remove x. The brackets enclosing 'foo' will also be removed.
main :: IO Int
main = do
let
foo = h + t where (h,t) = head $ zip [1..10] [3..10]
return $ foo + foo
| null | https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/RmOneParameter/SubFun3.expected.hs | haskell | Any unused parameter to a definition can be removed.
In this example: remove x. The brackets enclosing 'foo' will also be removed. | module SubFun3 where
main :: IO Int
main = do
let
foo = h + t where (h,t) = head $ zip [1..10] [3..10]
return $ foo + foo
|
8ef5133e950cee554f8628ac8c198184568b7e238c04fed6409fb28f58cccb26 | 2600hz/kazoo | kzd_user_auth_recovery.erl | %%%-----------------------------------------------------------------------------
( C ) 2010 - 2020 , 2600Hz
%%% @doc
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 /.
%%%
%%% @end
%%%--------... | null | https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_documents/src/kzd_user_auth_recovery.erl | erlang | -----------------------------------------------------------------------------
@doc
@end
----------------------------------------------------------------------------- | ( C ) 2010 - 2020 , 2600Hz
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(kzd_user_auth_recovery).
-export([new/0]).
-export([account_name/1, account_name/2, set_account_name/2]).... |
cc36f195ce1842b608e6500df699175d3dc3a0df1fbb871232c5a14669cab0bd | s-expressionists/Cleavir | convert-sequence.lisp | (cl:in-package #:cleavir-cst-to-ast)
;;; Utility function for converting a sequence of CSTs, represented
;;; as a chain of CONS-CSTs terminated by a NULL-CST.
(defun convert-sequence (sequence-cst environment system)
(loop for cst = sequence-cst then (cst:rest cst)
until (cst:null cst)
collect (convert (cst... | null | https://raw.githubusercontent.com/s-expressionists/Cleavir/e0293780d356a9d563af9abf9317019f608b4e1d/CST-to-AST/convert-sequence.lisp | lisp | Utility function for converting a sequence of CSTs, represented
as a chain of CONS-CSTs terminated by a NULL-CST. | (cl:in-package #:cleavir-cst-to-ast)
(defun convert-sequence (sequence-cst environment system)
(loop for cst = sequence-cst then (cst:rest cst)
until (cst:null cst)
collect (convert (cst:first cst) environment system)))
|
528bb8e47af8e78cd6fa67387e2ff83d2b2b2d207a8aada604f5eed84971a845 | kraison/cl-neo4j | package.lisp | (defpackage #:cl-neo4j.tests
(:use :cl
:alexandria)
(:import-from :fiveam
#:def-suite
#:in-suite
#:run!
#:test
#:is
#:signals)
(:export #:run-all-tests)) | null | https://raw.githubusercontent.com/kraison/cl-neo4j/f74c835d81b5c41581ae8f80959a6a186413efc8/test/package.lisp | lisp | (defpackage #:cl-neo4j.tests
(:use :cl
:alexandria)
(:import-from :fiveam
#:def-suite
#:in-suite
#:run!
#:test
#:is
#:signals)
(:export #:run-all-tests)) | |
beb048513315d9d9772c5289d53be8011e6f3b743021a844df408d296b6c63e5 | bsansouci/bsb-native | env.ml | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/bsansouci/bsb-native/9a89457783d6e80deb0fba9ca7372c10a768a9ea/vendor/ocaml/typing/env.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 Q Public License version 1.0 .
open Cmi_format
open Config
open Misc
... |
83f8c2eba3a2f56c97b3ad5eeceb333e68130716a222b121f2285e8ef1f1e187 | microsoft/SLAyer | Statistics.ml | Copyright ( c ) Microsoft Corporation . All rights reserved .
module SH = SymbolicHeap
let report pre_analysis_tmr analysis_tmr post_analysis_tmr =
if Config.stats then (
let duration = Timer.init.Timer.uduration +. Timer.init.Timer.sduration in
let fmt_tmr {Timer.uduration; sduration; max; count; nam... | null | https://raw.githubusercontent.com/microsoft/SLAyer/6f46f6999c18f415bc368b43b5ba3eb54f0b1c04/src/Statistics.ml | ocaml | Copyright ( c ) Microsoft Corporation . All rights reserved .
module SH = SymbolicHeap
let report pre_analysis_tmr analysis_tmr post_analysis_tmr =
if Config.stats then (
let duration = Timer.init.Timer.uduration +. Timer.init.Timer.sduration in
let fmt_tmr {Timer.uduration; sduration; max; count; nam... | |
c92c98eabd6d80752cec5d750d221b3ddc55d5e1c954ef35eedb0d99c3943b0d | stepcut/plugins | API.hs | module API where
data Interface = Interface {
field :: String
}
plugin :: Interface
plugin = Interface { field = undefined }
| null | https://raw.githubusercontent.com/stepcut/plugins/52c660b5bc71182627d14c1d333d0234050cac01/testsuite/make/odir/api/API.hs | haskell | module API where
data Interface = Interface {
field :: String
}
plugin :: Interface
plugin = Interface { field = undefined }
| |
25c3343d453d41b7d3c5ca920ce56a51f82b9b5f4f19b779d62c94743ff91b4f | isovector/dynahaskell | Ghc.hs | | The Happy Haskell Programming library .
-- API for interactive processes
module HIE.Bios.Ghc (
* Converting the Ghc monad to the IO monad
withGHC
, withGHC'
-- * Initializing DynFlags
, initializeFlagsWithCradle
* Ghc utilities
-- * Misc
, getSystemLibDir
) where
import HIE.Bios.Check
import... | null | https://raw.githubusercontent.com/isovector/dynahaskell/50819888fa118e123f45d98d3d135e611f4b0c35/lib/hie-bios/src/HIE/Bios/Ghc.hs | haskell | API for interactive processes
* Initializing DynFlags
* Misc | | The Happy Haskell Programming library .
module HIE.Bios.Ghc (
* Converting the Ghc monad to the IO monad
withGHC
, withGHC'
, initializeFlagsWithCradle
* Ghc utilities
, getSystemLibDir
) where
import HIE.Bios.Check
import HIE.Bios.GHCApi
|
4aa9ac6722bc7f1f682fd60c2ff443b7623a9c9fd282b87558b4d925d45e1a41 | blitzcode/hue-dashboard | Trace.hs |
{-# LANGUAGE OverloadedStrings #-}
module Trace ( withTrace
, TraceLevel(..)
, traceT
, traceS
, traceB
, traceAndThrow
) where
-- Execution tracing for multiple threads into file / stdout
import System.IO
import System.IO.Unsafe (unsafeP... | null | https://raw.githubusercontent.com/blitzcode/hue-dashboard/d6e04ab1c2a50d5fa6a0ea7682350b70677997ab/Trace.hs | haskell | # LANGUAGE OverloadedStrings #
Execution tracing for multiple threads into file / stdout
record around or always be in a reader or special trace monad
Force to UTF8 to avoid the dreaded '<stdout>: commitAndReleaseBuffer:
invalid argument' error when the locale is improperly configured and
a non-ASCII character is ... |
module Trace ( withTrace
, TraceLevel(..)
, traceT
, traceS
, traceB
, traceAndThrow
) where
import System.IO
import System.IO.Unsafe (unsafePerformIO)
import qualified System.Console.ANSI as A
import Control.Concurrent.MVar
import Contro... |
26ba3163c62d59627ee65f6c5eeacffb86fb8c243031bcbb80fa7a7be00ca3f1 | jserot/lascar | orderedTypeExt.mli | (**********************************************************************)
(* *)
LASCAr
(* *)
Copyright ( c ) 2017 - prese... | null | https://raw.githubusercontent.com/jserot/lascar/79bd11cd0d47545bccfc3a3571f37af065915c83/src/utils/orderedTypeExt.mli | ocaml | ********************************************************************
This source code is licensed under the lic... | LASCAr
Copyright ( c ) 2017 - present , . All rights reserved .
* { 2 Extension to the [ Stdlib . Set . OrderedType ] module }
module type T = sig
include Set.OrderedType
val to_string: t -> string
end
module Pair (M1: T) (M2: T) :
sig
inc... |
753c8f23721ac479825ede0233e1d90542f3c4f6cbc7990cbc71146fb0cb60df | sshirokov/hinge | socket.lisp | (in-package :hinge)
;; Class
(defclass socket (emitter)
((sock :initform (sockets:make-socket :ipv6 nil :reuse-address t)
:initarg :sock
:accessor sock)
(watchers :initform (vector nil nil nil)
:accessor watchers
:documentation "#(read write timeout) watchers.")
(wri... | null | https://raw.githubusercontent.com/sshirokov/hinge/4b1d4d2a9b17948402ccc670342cc5684c633226/src/socket.lisp | lisp | Class
Generics
Event methods
Init Methods
Reader watcher
Writer watcher | (in-package :hinge)
(defclass socket (emitter)
((sock :initform (sockets:make-socket :ipv6 nil :reuse-address t)
:initarg :sock
:accessor sock)
(watchers :initform (vector nil nil nil)
:accessor watchers
:documentation "#(read write timeout) watchers.")
(writes :init... |
85cd32070c9958c8f6cb4693dda7a6599ea27dcbba76baecf2d7033b208261b0 | mjambon/atdgen | ag_ov_mapping.ml | open Printf
open Atd_ast
open Ag_error
open Ag_mapping
type o = Ag_ocaml.atd_ocaml_repr
type v = Ag_validate.validate_repr
type ov_mapping =
(Ag_ocaml.atd_ocaml_repr, Ag_validate.validate_repr) Ag_mapping.mapping
type ob_def =
(Ag_ocaml.atd_ocaml_repr, Ag_validate.validate_repr) Ag_mapping.def
Determine... | null | https://raw.githubusercontent.com/mjambon/atdgen/9b031da2f182a1fa60bc76ff3a3228ff7b45a8a3/src/ag_ov_mapping.ml | ocaml | where t is defined as: type t = int
where t is defined as: type t = abstract
already verified in the call to scan_expr above
Translation of the types into the ocaml/validate mapping.
will try to determine implicit default value later | open Printf
open Atd_ast
open Ag_error
open Ag_mapping
type o = Ag_ocaml.atd_ocaml_repr
type v = Ag_validate.validate_repr
type ov_mapping =
(Ag_ocaml.atd_ocaml_repr, Ag_validate.validate_repr) Ag_mapping.mapping
type ob_def =
(Ag_ocaml.atd_ocaml_repr, Ag_validate.validate_repr) Ag_mapping.def
Determine... |
122b7eb55f8ebd4acba05155c722d47bcebbf0d4a0c5280ae846ec887e79324f | achirkin/vulkan | VK_NV_shader_subgroup_partitioned.hs | # OPTIONS_HADDOCK not - home #
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE MagicHash #-}
# LANGUAGE PatternSynonyms #
{-# LANGUAGE Strict #-}
{-# LANGUAGE ViewPatterns #-}
module Graphics.Vulkan.Ext.VK_NV_shader_subgroup_partitioned
* Vulkan extension : @VK_NV_shader_subgroup_partitioned@
... | null | https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Ext/VK_NV_shader_subgroup_partitioned.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE MagicHash #
# LANGUAGE Strict #
# LANGUAGE ViewPatterns #
|
supported: @vulkan@
type: @device@
| # OPTIONS_HADDOCK not - home #
# LANGUAGE PatternSynonyms #
module Graphics.Vulkan.Ext.VK_NV_shader_subgroup_partitioned
* Vulkan extension : @VK_NV_shader_subgroup_partitioned@
contact : @Jeff Bolz @jeffbolznv@
author :
Extension number : @199@
VK_NV_SHADER_SUBGROUP_PARTITIONED_SPEC_VERSION,
p... |
cb2946c082da1197bfe401f79cb7476f5ddd37b84a7da21cf8e2b994f108913c | coot/free-category | Free.hs | # LANGUAGE BangPatterns #
{-# LANGUAGE CPP #-}
# LANGUAGE GADTs #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE InstanceSigs #
{-# LANGUAGE PatternSynonyms #-}
# LANGUAGE PolyKinds #
{-# LANGUAGE RankNTypes... | null | https://raw.githubusercontent.com/coot/free-category/d709536e95d5c014ed2ca5450e75c6e324ee4823/src/Control/Category/Free.hs | haskell | # LANGUAGE CPP #
# LANGUAGE FlexibleContexts #
# LANGUAGE PatternSynonyms #
# LANGUAGE RankNTypes #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeOperators #
# OPTIONS_HADDOCK show-extensions #
* Real time Queue
* Type aligned list
* Opposite category
* Free inter... | # LANGUAGE BangPatterns #
# LANGUAGE GADTs #
# LANGUAGE FlexibleInstances #
# LANGUAGE InstanceSigs #
# LANGUAGE PolyKinds #
# LANGUAGE TypeFamilies #
# LANGUAGE ViewPatterns #
# LANGUAGE QuantifiedConstraints #
module Control.Category.Free
... |
9bcd9ebd44ca6b773360394009f6d6c8912e6c9f2ff05fabeba5dd54861a38ee | travelping/ergw | ergw_gtp_c_socket.erl | Copyright 2015,2018 Travelping GmbH < >
%% This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation ; either version
2 of the License , or ( at your option ) any later version .
-module(ergw_gtp_c_so... | null | https://raw.githubusercontent.com/travelping/ergw/b577328c8bbdc4959b45c321338971ed242bb822/apps/ergw_core/src/ergw_gtp_c_socket.erl | erlang | This program is free software; you can redistribute it and/or
API
gen_server callbacks
====================================================================
API
====================================================================
send_request/8
send_request/7
=======================================================... | Copyright 2015,2018 Travelping GmbH < >
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation ; either version
2 of the License , or ( at your option ) any later version .
-module(ergw_gtp_c_socket).
-behavior(gen_server).
-behavior(ergw_gtp_socket).
-comp... |
802cb12a88cd88c7a485f2be0e8e43434dbd930ddd76432197fde174a0ce4b55 | ahrefs/esgg | aggregations.ml | open ExtLib
open Common
type range = { _from : bool; _to_ : bool }
type agg_type =
| Simple_metric of [`MinMax | `Avg | `Sum ] * value
| Value_count of value
| Cardinality of value
| Terms of { term : value; size : Tjson.t }
| Significant_terms of { term : value; size : Tjson.t }
| Significant_text of { term : value... | null | https://raw.githubusercontent.com/ahrefs/esgg/0abe51fc842d6b5cd0d101f3b2acfb000b92635e/aggregations.ml | ocaml | | `Var v -> Variable v
what will ES do? but seems safe either way
| `MinMax -> `Maybe (`Typeof value)
FIXME other_bucket as last element? | open ExtLib
open Common
type range = { _from : bool; _to_ : bool }
type agg_type =
| Simple_metric of [`MinMax | `Avg | `Sum ] * value
| Value_count of value
| Cardinality of value
| Terms of { term : value; size : Tjson.t }
| Significant_terms of { term : value; size : Tjson.t }
| Significant_text of { term : value... |
ec34cdb509c4a980e40b4f3ecde9e1f43a4910b9e64e8fd91121742ee6c5fd70 | nominolo/lambdachine | List.hs | # LANGUAGE NoImplicitPrelude , BangPatterns , MagicHash #
module GHC.List (
map, (++), filter, concat,
head, last, tail, init, null, length, (!!),
foldl, scanl, scanl1, foldr, foldr1, scanr, scanr1,
iterate, repeat, replicate, cycle,
take, drop, splitAt, takeWhile, dropWhile, span, break,
reverse, an... | null | https://raw.githubusercontent.com/nominolo/lambdachine/49d97cf7a367a650ab421f7aa19feb90bfe14731/libraries/base/GHC/List.hs | haskell | This rule is useful in cases like
head [y | (x,y) <- ps, x==t]
The pragma just gives the rules more chance to fire
| Applied to a predicate and a list, 'any' determines if any element
of the list satisfies the predicate. For the result to be
'False', the list must be finite; 'True', however, results from a... | # LANGUAGE NoImplicitPrelude , BangPatterns , MagicHash #
module GHC.List (
map, (++), filter, concat,
head, last, tail, init, null, length, (!!),
foldl, scanl, scanl1, foldr, foldr1, scanr, scanr1,
iterate, repeat, replicate, cycle,
take, drop, splitAt, takeWhile, dropWhile, span, break,
reverse, an... |
8a1ad1696aeb4d4945b5d58d6179f212dbdd2dc12880ff4519a4bed1b4af29f2 | 4clojure/4clojure | version_utils.clj | (ns foreclojure.version-utils
(:use [foreclojure.ring-utils :only [static-url]])
(:require [foreclojure.git :as git]
[foreclojure.config :as config]
[clojure.string :as string]
[hiccup.page :as hiccup]))
(let [version-suffix (str "__" gi... | null | https://raw.githubusercontent.com/4clojure/4clojure/25dec057d9d6871ce52aee9e2c3de7efdab14373/src/foreclojure/version_utils.clj | clojure | (ns foreclojure.version-utils
(:use [foreclojure.ring-utils :only [static-url]])
(:require [foreclojure.git :as git]
[foreclojure.config :as config]
[clojure.string :as string]
[hiccup.page :as hiccup]))
(let [version-suffix (str "__" gi... | |
36a0e69d15c4c63c92b79a165859be090b54f339164eb707efe05235376c9b10 | gafiatulin/codewars | FrequencyFrenzy.hs | -- Ordinary Ordered Objects
-- /
module FrequencyFrenzy where
import Data.List (sort, group)
import Control.Arrow ((&&&))
frequency :: Ord a => [a] -> [(a, Int)]
frequency = map (head &&& length) . group . sort
| null | https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/7%20kyu/FrequencyFrenzy.hs | haskell | Ordinary Ordered Objects
/ |
module FrequencyFrenzy where
import Data.List (sort, group)
import Control.Arrow ((&&&))
frequency :: Ord a => [a] -> [(a, Int)]
frequency = map (head &&& length) . group . sort
|
cfdcd7ae501a1d67a8be24fc58e4558e9c7dd2cb0a6893671b741c932874937f | JPMoresmau/dbIDE | Packages.hs | # LANGUAGE RecordWildCards #
module Language.Haskell.ASBrowser.Operations.Packages where
import Control.Applicative
import Control.Monad.Reader
import Control.Monad.State
import Data.Acid
import Data.IxSet.Typed
import Data.List
import qualified Data.Text as T
import Language.Haskell.ASBrowser.Types
import Language.... | null | https://raw.githubusercontent.com/JPMoresmau/dbIDE/dae37edf67fbe55660e7e22c9c5356d0ada47c61/as-browser/src/Language/Haskell/ASBrowser/Operations/Packages.hs | haskell | # LANGUAGE RecordWildCards #
module Language.Haskell.ASBrowser.Operations.Packages where
import Control.Applicative
import Control.Monad.Reader
import Control.Monad.State
import Data.Acid
import Data.IxSet.Typed
import Data.List
import qualified Data.Text as T
import Language.Haskell.ASBrowser.Types
import Language.... | |
8812ea5edb69ca06fa51abc10ad56d8ed4901008f31255cad16d1aceb80b4a87 | inventi/jenkins-rabbitz | report.clj | (ns karotz.test.report
(:use [karotz.report])
(:use [clojure.test])
(:require [clojure.xml :as xml]
[karotz.jenkins :as jenkins]
[karotz.tts :as tts])
(:import (lt.inventi.karotz Mock$Build Mock$Descriptor Mock$Jenkins)))
(deftest test-report-failure
(with-redefs [report-build-state (... | null | https://raw.githubusercontent.com/inventi/jenkins-rabbitz/2a15a7df842ef9794df4a2932850867683d918d8/src/test/clojure/karotz/test/report.clj | clojure | (ns karotz.test.report
(:use [karotz.report])
(:use [clojure.test])
(:require [clojure.xml :as xml]
[karotz.jenkins :as jenkins]
[karotz.tts :as tts])
(:import (lt.inventi.karotz Mock$Build Mock$Descriptor Mock$Jenkins)))
(deftest test-report-failure
(with-redefs [report-build-state (... | |
f5d22c628b29bc84f717759719818194c98e910a87f5d8a92016d7f0391ff085 | janestreet/sexp_grammar | obedient_generator.mli | (** Quickcheck generator of sexps that obey a grammar. *)
open! Base
val create : _ Sexp_grammar.t -> Sexp.t Base_quickcheck.Generator.t
| null | https://raw.githubusercontent.com/janestreet/sexp_grammar/a8b68a0d0d043d0970c7ef618a585c381c7179e0/validation/src/obedient_generator.mli | ocaml | * Quickcheck generator of sexps that obey a grammar. |
open! Base
val create : _ Sexp_grammar.t -> Sexp.t Base_quickcheck.Generator.t
|
2a9b5dd42252ed608e3adb38a861f44edfdbf4423ff6886b2d8ce84ec1b664e8 | fpco/unliftio | Environment.hs | -- | Unlifted "System.Environment".
--
@since 0.2.5.0
module UnliftIO.Environment
( getArgs
, getProgName
, getExecutablePath
, getEnv
, lookupEnv
, setEnv
, unsetEnv
, withArgs
, withProgName
, getEnvironment
) where
import Control.Monad.IO.Unlift
import qualified System.Environment as E
-- |... | null | https://raw.githubusercontent.com/fpco/unliftio/d7ac43b9ae69efea0ca911aa556852e9f95af128/unliftio/src/UnliftIO/Environment.hs | haskell | | Unlifted "System.Environment".
| Lifted 'E.getArgs'.
| Lifted 'E.getProgName'.
| Lifted 'E.getExecutablePath'.
| Lifted 'E.getEnv'.
| Lifted 'E.lookupEnv'.
# INLINE lookupEnv #
| Lifted 'E.setEnv'.
# INLINE setEnv #
| Lifted 'E.unsetEnv'.
| Unlifted 'E.withArgs'.
| Unlifted 'E.withProgName'.
| Li... | @since 0.2.5.0
module UnliftIO.Environment
( getArgs
, getProgName
, getExecutablePath
, getEnv
, lookupEnv
, setEnv
, unsetEnv
, withArgs
, withProgName
, getEnvironment
) where
import Control.Monad.IO.Unlift
import qualified System.Environment as E
@since 0.2.5.0
# INLINE getArgs #
getArgs... |
e0cdcf3b95cdbc25ec0ff88150d8070bc6ac6d69ac13be9b0603123b335450d0 | hanshuebner/bos | allocation-cache.lisp | (in-package :bos.m2.allocation-cache)
;;; just a utility for something else...
(defun allocation-area-save-to-file (area path)
(with-open-file (out path :direction :output :if-exists :supersede)
(multiple-value-bind (left top width height)
(bos.m2::compute-bounding-box (allocation-area-vertices area))
... | null | https://raw.githubusercontent.com/hanshuebner/bos/ab5944cc46f4a5ff5a08fd8aa4d228c0f9cfc771/m2/allocation-cache.lisp | lisp | just a utility for something else...
allocation-cache
avoid getting 0 here | (in-package :bos.m2.allocation-cache)
(defun allocation-area-save-to-file (area path)
(with-open-file (out path :direction :output :if-exists :supersede)
(multiple-value-bind (left top width height)
(bos.m2::compute-bounding-box (allocation-area-vertices area))
(loop for y from top upto (1- (+ top ... |
de091dcfcd1ed93ef7dfb79310df7ed6a62e8e8724b7e09cb1be81f71544c821 | fdopen/ppx_cstubs | ptree.ml | This file is part of ppx_cstubs ( )
* Copyright ( c ) 2018 - 2020 fdopen
*
* 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... | null | https://raw.githubusercontent.com/fdopen/ppx_cstubs/5d5ce9b7cf45d87bb71c046a76d30c17ec6075e5/src/internal/ptree.ml | ocaml | TODO: I could build a nice tree, look at the types
and expressions and give a better approxomiation, if
the type module is needed... It's probably not
worth it.
TODO: Do I ever need [@@@ocaml.warning "-60"] ?? | This file is part of ppx_cstubs ( )
* Copyright ( c ) 2018 - 2020 fdopen
*
* 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... |
58050c57315efd0a4c25e06ee04f80888d44bc26c683d467fc0cea6f60bb55ea | CryptoKami/cryptokami-core | Listeners.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE RankNTypes #-}
-- | Server listeners for delegation logic.
module Pos.Delegation.Listeners
( handlePsk
, DlgListenerConstraint
) where
import Universum
import Formatting (build, sformat, shown, (%))
import Mockable (CurrentT... | null | https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/delegation/src/Pos/Delegation/Listeners.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE RankNTypes #
| Server listeners for delegation logic.
Message constraints we need to be defined.
| This is a subset of 'WorkMode'.
We're probably updating state over epoch, so
leaders can be calculated incorrectly. This is
really weird and must not happen. We'll just retry. |
module Pos.Delegation.Listeners
( handlePsk
, DlgListenerConstraint
) where
import Universum
import Formatting (build, sformat, shown, (%))
import Mockable (CurrentTime, Delay, Mockable)
import System.Wlog (WithLogger, logDebug, logWarning)
import ... |
c2bb88a23d154d68c96bc8d10e211a704e8dfe4e3b1cd9d83aec85457d283db1 | tsahyt/clingo-haskell | Types.hs | # LANGUAGE PatternSynonyms #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleInstances #
# LANGUAGE FlexibleContexts #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE UndecidableInstances #
# OPTIONS_GHC -Wno - missing - pattern - synonym - signatures #
module Clingo.Internal.Types
(... | null | https://raw.githubusercontent.com/tsahyt/clingo-haskell/083c84aae63565067644ccaa72223a4c12b33b88/src/Clingo/Internal/Types.hs | haskell | | A monad that serves as witness that data registered with a running solver
still exists and can be used.
clingo answer set solver. It uses an additional type parameter to ensure that
values that are managed by the solver can not leave scope.
| Run a clingo computation from an explicit handle. The handle must be
... | # LANGUAGE PatternSynonyms #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleInstances #
# LANGUAGE FlexibleContexts #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE UndecidableInstances #
# OPTIONS_GHC -Wno - missing - pattern - synonym - signatures #
module Clingo.Internal.Types
(... |
a9d8782f9ea4246de1da45e81b49f5547059b748af24c4d5d966443be9e7261c | HaskellForCats/HaskellForCats | leob00.hs | module Leob00 where
leob fs = xs where xs = fmap ($ xs) fs
| null | https://raw.githubusercontent.com/HaskellForCats/HaskellForCats/2d7a15c0cdaa262c157bbf37af6e72067bc279bc/leob00.hs | haskell | module Leob00 where
leob fs = xs where xs = fmap ($ xs) fs
| |
15c3a563ed9637a220fad9397b1a231035121beab0b8b1b2a62e121a0836c21f | triffon/fp-2022-23 | 01-most-frequest.rkt | #lang racket
Да се напише функция mostFrequent , даден
списък от списъци от числа връща числото , което е най - често
срещаните числа във , ако такова има , или 0 иначе
;; изтрива елемент с ключ key от подадения асоциативен списък
( del - assoc 2 ' ( ( 1 2 ) ( 2 3 ) ( 3 4 ) ) ) ; ; = > ' ( ( 1 2 ) ( 3 4 ... | null | https://raw.githubusercontent.com/triffon/fp-2022-23/259e5dd01d37716ded350c1b6b0cf001fd75a36f/exercises/inf2/exams/02-exam/exam-2017-2018/scheme/01-most-frequest.rkt | racket | изтрива елемент с ключ key от подадения асоциативен списък
; = > ' ( ( 1 2 ) ( 3 4 ) )
; = > ' ( ( 1 . 2 ) ( 3 . 1 ) ( 2 . 1 ) )
; = > ' ( 1 . 2 )
; = > ' ( 1 5 )
; = > [ 3,4 ]
; = > ' ( 4 )
; = > 1
; = > 0 | #lang racket
Да се напише функция mostFrequent , даден
списък от списъци от числа връща числото , което е най - често
срещаните числа във , ако такова има , или 0 иначе
(define (del-assoc key alist)
(filter
(lambda (kv) (not (equal? key (car kv))))
alist))
връща списък от наредени двойки от ти... |
8b3971adb4e5ddbffca07ee5b7afe39b22ad85794883c780355765083302c3f7 | CryptoKami/cryptokami-core | Launcher.hs | # LANGUAGE AllowAmbiguousTypes #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE TypeFamilies #
{-# LANGUAGE TypeOperators #-}
-- | Server launcher
module Pos.Wallet.Web.Server.Launcher
( walletApplication
, walletServer
, walletServeImpl
, walletServerOuts
, bracketW... | null | https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/wallet/src/Pos/Wallet/Web/Server/Launcher.hs | haskell | # LANGUAGE RankNTypes #
# LANGUAGE TypeOperators #
| Server launcher
TODO [CSM-407]: Mixture of logic seems to be here
^ Application getter
^ IP and port to listen
Diffusion layer takes care of submitting transactions.
^ Path to wallet acid-state
^ Rebuild flag for acid-state | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE TypeFamilies #
module Pos.Wallet.Web.Server.Launcher
( walletApplication
, walletServer
, walletServeImpl
, walletServerOuts
, bracketWalletWebDB
, bracketWalletWS
) where
import Universum
import ... |
93bf2cf4dd2d3a5df77487b19603a0ee19b6e573a6fa205ed2dee6cbf63e3141 | ragkousism/Guix-on-Hurd | r.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2015 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is free software ; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 3 of the Lice... | null | https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/guix/build-system/r.scm | scheme | GNU Guix --- Functional package management for GNU
This file is part of GNU Guix.
you can redistribute it and/or modify it
either version 3 of the License , or ( at
your option) any later version.
GNU Guix is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied wa... | Copyright © 2015 < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with GNU . If not , see < / > .
(define-module (guix build-system r)
#:use-module (guix store)
#:use-module (guix utils)
#:use-module (guix ... |
32f5b8f7df5af927b643e6fb0ffa9b85ac908b9d0c1e293a5ad47d7b82c0e38f | informatica-unica/lip | ast.ml | type ty = TBool | TNat | TFun of ty * ty
type term =
Var of string
| Abs of string * ty * term
| App of term * term
| True
| False
| Not of term
| And of term * term
| Or of term * term
| If of term * term * term
| Zero
| Succ of term
| Pred of term
| IsZero of term
| null | https://raw.githubusercontent.com/informatica-unica/lip/f3f0ab2297943957c7dd0534895f2367097043dc/lambda/simplytyped/lib/ast.ml | ocaml | type ty = TBool | TNat | TFun of ty * ty
type term =
Var of string
| Abs of string * ty * term
| App of term * term
| True
| False
| Not of term
| And of term * term
| Or of term * term
| If of term * term * term
| Zero
| Succ of term
| Pred of term
| IsZero of term
| |
282f7dafaa3c66fec0ea62b38685b079c712bbefd76bc45d7b97efd9fe275a50 | racket/typed-racket | control-test-3.rkt | #lang racket/load
(module untyped racket
(provide call-f)
(define (call-f f)
(call-with-continuation-prompt
(λ () (f 0))
(default-continuation-prompt-tag)
(λ (x) (x "string")))))
(module typed typed/racket/shallow
(require/typed 'untyped
[call-f ((Integer -> Integer) -> Stri... | null | https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/succeed/shallow/control-test-3.rkt | racket | shallow should check the result of call-f and error
this abort should wrap with an Any wrapper | #lang racket/load
(module untyped racket
(provide call-f)
(define (call-f f)
(call-with-continuation-prompt
(λ () (f 0))
(default-continuation-prompt-tag)
(λ (x) (x "string")))))
(module typed typed/racket/shallow
(require/typed 'untyped
[call-f ((Integer -> Integer) -> Stri... |
1ef99908f69eb8ef070988fe912c024d1d5040fc69df9351d61d60828d040319 | identicalsnowflake/cantor-pairing | Spec.hs | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE DeriveGeneric #
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE RankNTypes #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# OPTIONS_GHC -fno - warn - orphans #
import Data.Void
import GHC.Generics (Generic)
import Test.Hspec
import Cantor
data TreeL a = ... | null | https://raw.githubusercontent.com/identicalsnowflake/cantor-pairing/fca976cc297e0c6c8fe45eaa0eeef8c556c8b7cd/test/Spec.hs | haskell | # LANGUAGE DeriveAnyClass #
# LANGUAGE RankNTypes # | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE DeriveGeneric #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# OPTIONS_GHC -fno - warn - orphans #
import Data.Void
import GHC.Generics (Generic)
import Test.Hspec
import Cantor
data TreeL a = NodeL | BranchL (TreeL a) a (TreeL a) deriving (Generic,Eq)
... |
0b9bb8d32c4dd88007f3d54c6464906a985de80efa84bac7f922e6e843155abe | labra/Haws | IssueExample.hs | module Haws.ShEx.IssueExample where
import Haws.ShEx.Shape
import Haws.ShEx.RDFModel
--------------------------------------------
---- Examples
{- Employee
<EmployeeShape> {
foaf:name xsd:string
, foaf:mbox xsd:string
}
-}
employeeShape :: Shape
employeeShape =
Shape {
label = mkLabel("employee"),
rule... | null | https://raw.githubusercontent.com/labra/Haws/2417adc37522994e2bbb8e9e397481a1f6f4f038/src/Haws/ShEx/IssueExample.hs | haskell | ------------------------------------------
-- Examples
Employee
<EmployeeShape> {
foaf:name xsd:string
, foaf:mbox xsd:string
}
User
<UserShape> {
( foaf:name xsd:string
| ( foaf:givenName xsd:string+
, foaf:familyName xsd:string
)
)
, foaf:mbox xsd:string
}
opt
And
---------- | module Haws.ShEx.IssueExample where
import Haws.ShEx.Shape
import Haws.ShEx.RDFModel
employeeShape :: Shape
employeeShape =
Shape {
label = mkLabel("employee"),
rule = And
(Arc (NameTerm (IRI "name"))
(ValueType xsd_string)
(noActions))
(Arc (NameTerm (IRI "mbox"))
(... |
a8ed8f1820ac6559ea5708056d4461bdd5ade6d24068fa8ca69d7f484a4c1aae | haskell-repa/repa | Eval.hs |
module Data.Repa.Flow.Generic.Eval
( drainS
, drainP
, consumeS)
where
import Data.Repa.Flow.Generic.Base
import Data.Repa.Eval.Gang as Eval
import GHC.Exts
#include "repa-flow.h"
-- | Pull all available values from the sources and push them to the sinks.
Streams in t... | null | https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa-flow/Data/Repa/Flow/Generic/Eval.hs | haskell | | Pull all available values from the sources and push them to the sinks.
we only evaluate the common subset.
| Pull all available values from the sources and push them to the sinks,
in parallel. We fork a thread for each of the streams and evaluate
them all in parallel.
we only evaluate the common ... |
module Data.Repa.Flow.Generic.Eval
( drainS
, drainP
, consumeS)
where
import Data.Repa.Flow.Generic.Base
import Data.Repa.Eval.Gang as Eval
import GHC.Exts
#include "repa-flow.h"
Streams in the bundle are processed sequentially , from first to last .
* If the ` S... |
51df57ac0b628484fa8d31d3c7448ffa8161f3ee054e1b6568d43e2e9bddb331 | exercism/common-lisp | example.lisp | (defpackage :rna-transcription
(:use :common-lisp)
(:export :to-rna))
(in-package :rna-transcription)
(defun validate-strand (strand)
(or (every #'(lambda (c) (find c "ATCGU"))
(coerce strand 'list))
(signal 'error)))
(defparameter dna->rna
'((#\C . #\G) (#\G . #\C) (#\A . #\U) (#\T . #\A)... | null | https://raw.githubusercontent.com/exercism/common-lisp/6803f7519204e6b438957a044797ec456b500191/exercises/practice/rna-transcription/.meta/example.lisp | lisp | (defpackage :rna-transcription
(:use :common-lisp)
(:export :to-rna))
(in-package :rna-transcription)
(defun validate-strand (strand)
(or (every #'(lambda (c) (find c "ATCGU"))
(coerce strand 'list))
(signal 'error)))
(defparameter dna->rna
'((#\C . #\G) (#\G . #\C) (#\A . #\U) (#\T . #\A)... | |
866213ee34d8a869f4b82089ba134823a667947c1f64b352ec266bf3b3b3e17c | european-lisp-symposium/els-web | 2013.lisp | (in-package #:els-web-editions)
(define-edition "2013")
(in-package "2013")
;;; Texts
(define-text :announcement
(:div :class "announcement" "The conference is over!"))
(define-date "Conference start" @2013-06-03)
(define-date "Conference end" @2013-06-04)
;;; Sponsors
(define-sponsor lispworks
:website "/"
:... | null | https://raw.githubusercontent.com/european-lisp-symposium/els-web/b29b460cb4dae62db92d244394c4529ba0f19544/editions/2013.lisp | lisp | Texts
Sponsors
People
Locations | (in-package #:els-web-editions)
(define-edition "2013")
(in-package "2013")
(define-text :announcement
(:div :class "announcement" "The conference is over!"))
(define-date "Conference start" @2013-06-03)
(define-date "Conference end" @2013-06-04)
(define-sponsor lispworks
:website "/"
:logo "../static/logos/l... |
e5abc8de5f744bc60e7941024f0e2c4d2c15fb07106efb295931aa36a1531dd7 | toaq/zugai | XbarToAnsi.hs | module XbarToAnsi where
import Data.Text (Text)
import Data.Text qualified as T
import Data.Text.IO qualified as T
import Dictionary (readDictionary)
import Lex (lexToaq)
import Parse (parseDiscourse)
import TextUtils (prettifyToaq)
import Xbar (runXbarWithMovements)
import XbarUtils
-- Show an Xbar tree using indent... | null | https://raw.githubusercontent.com/toaq/zugai/155dc3452b664da8e34ed215e7d4652d668a70a4/src/XbarToAnsi.hs | haskell | Show an Xbar tree using indentation and ANSI colors. | module XbarToAnsi where
import Data.Text (Text)
import Data.Text qualified as T
import Data.Text.IO qualified as T
import Dictionary (readDictionary)
import Lex (lexToaq)
import Parse (parseDiscourse)
import TextUtils (prettifyToaq)
import Xbar (runXbarWithMovements)
import XbarUtils
showXbarAnsi :: Xbar d -> Movemen... |
720dcfe9d41b2d6a820c856ac8dbd0db8e4a492fcea8df978dddb289d948c488 | ailrk/blgol60 | Symbol.hs | -- doge-algol60
Copyright © 2021 ailrk
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction , including without limitation
-- the rights to use, copy, modify, merge, publis... | null | https://raw.githubusercontent.com/ailrk/blgol60/93492de4a14a74924d0b769841887d88b93c8e02/src/Symbol.hs | haskell | doge-algol60
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the "Software"),
the rights to use, copy, modify, merge, publish, distribute, sublicense,
Software is furnished to do so, subject to the following conditions:
The above co... | Copyright © 2021 ailrk
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
in all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND ,
OF MERCHANTABIL... |
f58cfdc67ba5a9f4b741d32191f6c0e7a41d8ec6626c662c183cedce16f3bb6d | cucapra/gator | checkUtil.ml | open Util
open GatorAst
open GatorAstPrinter
open CheckContexts
exception TypeException of string
let rename_fn (f : string -> string) ((a, b, id, c, d) : fn_typ) : fn_typ =
(a, b, f id, c, d)
let ignore_typ (t : typ) : unit = ignore t
let ignore_dexp (d : dexp) : unit = ignore d
let ignore_typ_context (t : typ As... | null | https://raw.githubusercontent.com/cucapra/gator/c9f796e3d47793f2a1fe11cd8319eae33c4dd354/src/checkUtil.ml | ocaml | Produces an empty set of gator contexts with a starting metadata and external programs
Finds which context in which to find the given string
Binds a string with value to the correct lookup context
Clears the given lookup context of elements
Resets the contexts cx to the state provided by the reference contexts... | open Util
open GatorAst
open GatorAstPrinter
open CheckContexts
exception TypeException of string
let rename_fn (f : string -> string) ((a, b, id, c, d) : fn_typ) : fn_typ =
(a, b, f id, c, d)
let ignore_typ (t : typ) : unit = ignore t
let ignore_dexp (d : dexp) : unit = ignore d
let ignore_typ_context (t : typ As... |
c07780a1a7476e13d0908021317bcb682133b61744de2fe56c35d75e6d8fd793 | Ledest/otpbp | otpbp_erl_error.erl | -module(otpbp_erl_error).
-ifndef(HAVE_erl_error__format_exception_7).
-compile([{parse_transform, otpbp_pt}]).
-endif.
-ifndef(HAVE_erl_error__format_exception_3).
OTP 24.0
-export([format_exception/3]).
-endif.
-ifndef(HAVE_erl_error__format_exception_4).
OTP 24.0
-export([format_exception/4]).
-endif.
-ifnde... | null | https://raw.githubusercontent.com/Ledest/otpbp/f93923239b33cc05500733027e6e775090ac80ad/src/otpbp_erl_error.erl | erlang | -module(otpbp_erl_error).
-ifndef(HAVE_erl_error__format_exception_7).
-compile([{parse_transform, otpbp_pt}]).
-endif.
-ifndef(HAVE_erl_error__format_exception_3).
OTP 24.0
-export([format_exception/3]).
-endif.
-ifndef(HAVE_erl_error__format_exception_4).
OTP 24.0
-export([format_exception/4]).
-endif.
-ifnde... | |
d23b8fcbe988d883ef161fed5975eee3f2b4f6e6ac8543ad7ba155abb3e7d625 | bvaugon/ocapic | sys.mli | (*************************************************************************)
(* *)
(* OCaPIC *)
(* *)
... | null | https://raw.githubusercontent.com/bvaugon/ocapic/a14cd9ec3f5022aeb5fe2264d595d7e8f1ddf58a/lib/sys.mli | ocaml | ***********************************************************************
OCaPIC
... |
This file is distributed under the terms of the CeCILL license .
val word_size : int
* Size of one word on the machine currently executing the Caml
program , in bits : 16 .
program, in bits: 16. *)
val max_string_length : int
* Maximum l... |
56f64a06c6db66cd5c18793df37a2cc6c974274ce76d0a2aa0f842e5d4617b1f | ragkousism/Guix-on-Hurd | offload.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2014 , 2015 , 2016 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is free software ; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version... | null | https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/guix/scripts/offload.scm | scheme | GNU Guix --- Functional package management for GNU
This file is part of GNU Guix.
you can redistribute it and/or modify it
either version 3 of the License , or ( at
your option) any later version.
GNU Guix is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied wa... | Copyright © 2014 , 2015 , 2016 < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with GNU . If not , see < / > .
(define-module (guix scripts offload)
#:use-module (ssh key)
#:use-module (ssh auth)
#:use-mod... |
fc7fb4971be9cedd9b4dce57ce46f4647f67e223809d6cccc321f4ae58e15b74 | gwkkwg/cl-containers | more-containers.lisp | (in-package #:containers)
;;; persistent-sorted-list-container
(defclass* persistent-sorted-list-container (sorted-container-mixin
list-container concrete-container)
"A list container that keeps its items sorted as needed. This uses pushnew-ordered."
()
(:export-p t)... | null | https://raw.githubusercontent.com/gwkkwg/cl-containers/3d1df53c22403121bffb5d553cf7acb1503850e7/dev/more-containers.lisp | lisp | persistent-sorted-list-container | (in-package #:containers)
(defclass* persistent-sorted-list-container (sorted-container-mixin
list-container concrete-container)
"A list container that keeps its items sorted as needed. This uses pushnew-ordered."
()
(:export-p t))
(defmethod insert-list ((containe... |
00de567b4ea7989a698d4018400c1b611840c6fc1243fee89be4d36cc12ca8d3 | tfausak/strive | Photos.hs | # LANGUAGE TemplateHaskell #
-- | </>
module Strive.Types.Photos
( PhotoSummary (..),
)
where
import Data.Aeson.TH (deriveFromJSON)
import Data.Text (Text)
import Data.Time.Clock (UTCTime)
import Strive.Enums (PhotoType, ResourceState)
import Strive.Internal.TH (options)
-- | </#summary-and-detailed-representati... | null | https://raw.githubusercontent.com/tfausak/strive/8bd61df4b2723301273b11589c5f237b42e934dc/source/library/Strive/Types/Photos.hs | haskell | | </>
| </#summary-and-detailed-representation-attributes> | # LANGUAGE TemplateHaskell #
module Strive.Types.Photos
( PhotoSummary (..),
)
where
import Data.Aeson.TH (deriveFromJSON)
import Data.Text (Text)
import Data.Time.Clock (UTCTime)
import Strive.Enums (PhotoType, ResourceState)
import Strive.Internal.TH (options)
data PhotoSummary = PhotoSummary
{ photoSummary_... |
654c7a62fac6d0b5122d6c32e07148018b3ec77d36c2a3185123ea66e4ac5474 | aarkerio/ZentaurLMS | sanitize.cljs | (ns zentaur.libs.sanitize
)
;; (def policy (html-policy :allow-elements ["a"]
;; :allow-attributes ["href" :on-elements ["a"]]
;; :allow-standard-url-protocols
;; :require-rel-nofollow-on-links))
(defn escape-html
"change special character... | null | https://raw.githubusercontent.com/aarkerio/ZentaurLMS/adb43fb879b88d6a35f7f556cb225f7930d524f9/src/cljs/zentaur/libs/sanitize.cljs | clojure | (def policy (html-policy :allow-elements ["a"]
:allow-attributes ["href" :on-elements ["a"]]
:allow-standard-url-protocols
:require-rel-nofollow-on-links))
(.replace "&" "&")
") | (ns zentaur.libs.sanitize
)
(defn escape-html
"change special character into html character entitites"
[text]
(-> (str text)
(clojure.string/replace
#"&(?!(amp;|lt;|gt;|quot;|#x27;|#x2F;))" "&")
(.replace "<" "<")
(.replace ">" ">")
(.replace "'" "'")
(.repl... |
e3196da4b49000089baf2b780e0bd9882a44ac63d6cab60bc38b32e2f2775615 | kovasb/gamma | fun.cljs | (ns gamma.emit.fun
(:use [gamma.emit.emit :only [emit]]
[gamma.ast :only [head body term ]]))
;;;; FUNCTIONS
(defmethod emit :function [db x]
[:group
(name (head x))
"("
[:line ""]
[:nest 2
(interpose [:span "," :line]
(map #(emit db (db %)) (body x)))]
")"])
(defmeth... | null | https://raw.githubusercontent.com/kovasb/gamma/3c9edcfdfc392103b0e78edba3ca930a60746fd1/src/gamma/emit/fun.cljs | clojure | FUNCTIONS | (ns gamma.emit.fun
(:use [gamma.emit.emit :only [emit]]
[gamma.ast :only [head body term ]]))
(defmethod emit :function [db x]
[:group
(name (head x))
"("
[:line ""]
[:nest 2
(interpose [:span "," :line]
(map #(emit db (db %)) (body x)))]
")"])
(defmethod emit :swizzl... |
240504b2d805edf4761bd00de3cfe2292fb30fd93e108572491028fc996badd5 | fukamachi/qlot | utils.lisp | (defpackage #:qlot/utils
QLOT / UTIL package is refered by some packages
ex . -notebook/issues/71
(:nicknames #:qlot/util)
(:use #:cl)
(:export #:make-keyword
#:starts-with
#:split-with
#:generate-random-string
#:with-package-functions
#:pathname-in-direc... | null | https://raw.githubusercontent.com/fukamachi/qlot/f228fe14e98c6b6de71a3c4f1fdaf3bddcc77231/utils.lisp | lisp | (defpackage #:qlot/utils
QLOT / UTIL package is refered by some packages
ex . -notebook/issues/71
(:nicknames #:qlot/util)
(:use #:cl)
(:export #:make-keyword
#:starts-with
#:split-with
#:generate-random-string
#:with-package-functions
#:pathname-in-direc... | |
5d2c9d20985c3cc8d207c0067bb3adccfa40577d79aca6219344c468481b5986 | jdormit/looped-in | components.cljs | Copyright © 2018
;;
;; This file is part of Looped In.
;;
;; Looped In is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
;; (at your option) any later version.
;;
;; Loo... | null | https://raw.githubusercontent.com/jdormit/looped-in/aac2f909e5ccebac9516536dcd1bb725b2cf2278/src/lib/looped_in/components.cljs | clojure |
This file is part of Looped In.
Looped In is free software: you can redistribute it and/or modify
(at your option) any later version.
Looped In is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ... | Copyright © 2018
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Public License
(ns looped-in.components
(:require [goog.dom :as dom]
[goog.dom.classlist :... |
1dbfeb591d13d215b88e356625e1788375f86713ac203104c112da7d2cd0ce1e | OCamlPro/OCamlPro-OCaml-Branch | ocaml_compiler.ml | (***********************************************************************)
(* ocamlbuild *)
(* *)
, , projet Gallium , INRIA Rocquencourt
(* ... | null | https://raw.githubusercontent.com/OCamlPro/OCamlPro-OCaml-Branch/3a522985649389f89dac73e655d562c54f0456a5/inline-more/ocamlbuild/ocaml_compiler.ml | ocaml | *********************************************************************
ocamlbuild
... | , , projet Gallium , INRIA Rocquencourt
Copyright 2007 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
Original author :
open My_std
open Format
open Lo... |
c5d70fb4bc402e4d2262c99505220d89f7251a0171ba083d15e38f985abcfd6c | ddssff/refact-global-hse | Utils.hs | # LANGUAGE CPP #
{-# LANGUAGE PackageImports #-}
# LANGUAGE RecordWildCards #
# LANGUAGE TemplateHaskell #
# LANGUAGE TupleSections #
# LANGUAGE TypeFamilies #
# LANGUAGE FlexibleContexts , FlexibleInstances , RankNTypes , ScopedTypeVariables #
module Utils where
import Control.Exception (SomeException, throw)
import ... | null | https://raw.githubusercontent.com/ddssff/refact-global-hse/519a017009cae8aa1a3db1b46eb560d76bd9895d/tests/input/decl-mover/Utils.hs | haskell | # LANGUAGE PackageImports #
| Do a hard reset of all the files of the repository containing the
working directory.
| Do a hard reset of all the files of a subdirectory within a git
repository. (Does this every throw an exception?)
| Determine whether the repository containing the working directory
is in a modifi... | # LANGUAGE CPP #
# LANGUAGE RecordWildCards #
# LANGUAGE TemplateHaskell #
# LANGUAGE TupleSections #
# LANGUAGE TypeFamilies #
# LANGUAGE FlexibleContexts , FlexibleInstances , RankNTypes , ScopedTypeVariables #
module Utils where
import Control.Exception (SomeException, throw)
import Control.Exception.Lifted as IO (... |
91533f918e6f1f51889940ede8e9d82c02fa858d4c318b591eeb5f4d185296c3 | bevuta/pepa | root.cljs | (ns pepa.components.root
(:require [om.core :as om :include-macros true]
[nom.ui :as ui]
[pepa.api :as api]
[pepa.api.upload :as upload]
[pepa.data :as data]
[pepa.search :as search]
[pepa.components.sidebar :refer [sidebar-component]]
... | null | https://raw.githubusercontent.com/bevuta/pepa/0a9991de0fd1714515ca3def645aec30e21cd671/src-cljs/pepa/components/root.cljs | clojure | Drag/Drop Handling
Handle all (global) resize events for sidebars
Start Polling | (ns pepa.components.root
(:require [om.core :as om :include-macros true]
[nom.ui :as ui]
[pepa.api :as api]
[pepa.api.upload :as upload]
[pepa.data :as data]
[pepa.search :as search]
[pepa.components.sidebar :refer [sidebar-component]]
... |
233da857e2cc38fecb5f70cec79cb2be7e2895da68dfd7a074eebb252fec743c | AndrewMagerman/wizard-book-study | picture.rkt | #lang racket
(require (rename-in graphics/turtles
(split turtle-split)))
(provide (all-defined-out))
;; Code for integrating Racket's turtle graphics library
(define turtle-x -1)
(define turtle-y -1)
(define turtle-pen-down #f)
(define (cs)
(turtles #t)
(clear)
(set! turtle-x (/ turtle-window-size... | null | https://raw.githubusercontent.com/AndrewMagerman/wizard-book-study/779854631f17164cbddecf3fde102504df1a83f0/reference/cs61as_library/picture.rkt | racket | Code for integrating Racket's turtle graphics library
Code for the picture language
End of picture language code
Your code goes below
Execise 4
Modify me!
Modify me!
End of project
Don't touch anything below this | #lang racket
(require (rename-in graphics/turtles
(split turtle-split)))
(provide (all-defined-out))
(define turtle-x -1)
(define turtle-y -1)
(define turtle-pen-down #f)
(define (cs)
(turtles #t)
(clear)
(set! turtle-x (/ turtle-window-size 2))
(set! turtle-y (/ turtle-window-size 2))
(set! t... |
2ec068f3e0c163265e76325c7cb53a0da5310088647e215a3cc43e84377412da | clojure-interop/aws-api | AmazonWorkDocs.clj | (ns com.amazonaws.services.workdocs.AmazonWorkDocs
"Interface for accessing Amazon WorkDocs.
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAmazonWorkDocs instead.
The WorkDocs API is designed for the following use cases:
File Migration: File... | null | https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.workdocs/src/com/amazonaws/services/workdocs/AmazonWorkDocs.clj | clojure | (ns com.amazonaws.services.workdocs.AmazonWorkDocs
"Interface for accessing Amazon WorkDocs.
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAmazonWorkDocs instead.
The WorkDocs API is designed for the following use cases:
File Migration: File... | |
cb8c73e9f1d4e4061ee5f80bba802d2aba09ee0fae611287a7c7b7e6ce029215 | xtdb/xtdb | metrics_test.clj | (ns xtdb.metrics-test
(:require [clojure.test :as t]
[xtdb.api :as xt]
[xtdb.fixtures :as fix :refer [*api*]]
[xtdb.metrics.index-store :as index-store-metrics]
[xtdb.metrics.query :as query-metrics]
[xtdb.metrics.dropwizard :as dropwizard])
(:import (java... | null | https://raw.githubusercontent.com/xtdb/xtdb/f5337860fbc5424b863f5482285ae37967ecf39e/test/test/xtdb/metrics_test.clj | clojure | (ns xtdb.metrics-test
(:require [clojure.test :as t]
[xtdb.api :as xt]
[xtdb.fixtures :as fix :refer [*api*]]
[xtdb.metrics.index-store :as index-store-metrics]
[xtdb.metrics.query :as query-metrics]
[xtdb.metrics.dropwizard :as dropwizard])
(:import (java... | |
1cca9923404db52023ee331d14371c2a95f628334c1b863a53879fbd483cf047 | static-analysis-engineering/codehawk | bCHAssemblyBlock.mli | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Binary Analyzer
Author : ------------------------------------------------------------------------------
The MIT License ( MIT )
Co... | null | https://raw.githubusercontent.com/static-analysis-engineering/codehawk/bc63b8a3863f78b15c75556d914ff1eaa00f3c07/CodeHawk/CHB/bchlibx86/bCHAssemblyBlock.mli | ocaml | chutil
bchlib
bchlibx86
function address
first address of the basic block
last address of the basic block
addresses of successor blocks
new context to be prepended
new successor blocks | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Binary Analyzer
Author : ------------------------------------------------------------------------------
The MIT License ( MIT )
Co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.