_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 |
|---|---|---|---|---|---|---|---|---|
6a0934a1e752412824752cfa1f1dc3d0c6e8a0deb4ec0dcf01cdb091e59b6c98 | odj/Ouch | Smiles.hs | ------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Module : Ouch . Input . Smiles
-- Maintainer :
-- Stability : Unstable
-- Portability :
Copyright ( c ) 2010 Ori... | null | https://raw.githubusercontent.com/odj/Ouch/ed20599214cf77b0cb81cc7cefb4cd9c35bc7cf7/Ouch/Input/Smiles.hs | haskell | ----------------------------------------------------------------------------
------------------------------------------------------------------------------
Module : Ouch . Input . Smiles
Maintainer :
Stability : Unstable
Portability :
------------------------------------------------... |
Copyright ( c ) 2010 Orion
This file is part of Ouch , a chemical informatics toolkit
written entirely in Haskell .
Ouch 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 , e... |
bc33dfa9db3c897c99b5393b1eca04e92a1235f51a6ceb9f1af27254820b0fef | patricoferris/ocaml-multicore-monorepo | test_query.ml | Copyright ( C ) 2019 < >
*
* This library 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 , either version 3 of the License , or ( at your
* option ) any later version , with the ... | null | https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/ocaml-caqti/tests/test_query.ml | ocaml | Copyright ( C ) 2019 < >
*
* This library 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 , either version 3 of the License , or ( at your
* option ) any later version , with the ... | |
b9327920d9cb83e8a73412c4881f31d271d406e6bc787853de836e037522bda3 | 8c6794b6/guile-tjit | history.scm | Copyright ( C ) 2000 , 2001 , 2004 , 2006 , 2010 Free Software Foundation , Inc.
;;;;
;;;; This library 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 ; either
version 3 of the License , or ( a... | null | https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/ice-9/history.scm | scheme |
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
either
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. S... | Copyright ( C ) 2000 , 2001 , 2004 , 2006 , 2010 Free Software Foundation , Inc.
version 3 of the License , or ( at your option ) any later version .
You should have received a copy of the GNU Lesser General Public
Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , USA
(define-module (ice-9... |
b16c5ed166cd6bd8d984f8c6353025bb057c67a73c12f71a8d06c12d0b321614 | stuartsierra/altlaw-backend | CitationsResource.clj | (ns org.altlaw.www.CitationsResource
(:gen-class :extends org.restlet.resource.Resource)
(:require [org.altlaw.db.content :as content]
[org.altlaw.db.privacy :as privacy]
[org.altlaw.www.case-pages :as pages]
[org.altlaw.www.render :as rend]
[org.altlaw.util.date :as ... | null | https://raw.githubusercontent.com/stuartsierra/altlaw-backend/c2ceeb0be2d622ca921339be06de5485733451bc/src/org/altlaw/www/CitationsResource.clj | clojure | incites and outcites."
RESOURCE METHODS | (ns org.altlaw.www.CitationsResource
(:gen-class :extends org.restlet.resource.Resource)
(:require [org.altlaw.db.content :as content]
[org.altlaw.db.privacy :as privacy]
[org.altlaw.www.case-pages :as pages]
[org.altlaw.www.render :as rend]
[org.altlaw.util.date :as ... |
a2225c4e7ee35e749cb89b92e20922fe84df7e25b99a4a149b33fc3a10f6f1ce | deadpendency/deadpendency | ChecksEventGen.hs | # OPTIONS_GHC -fno - warn - missing - export - lists #
module Gen.ChecksEventGen where
import CommonTest.Gen.General
import Data.Vector qualified as V
import Gen.CommonEventGen
import GitHub.Data.Webhooks.Events
import GitHub.Data.Webhooks.Payload
import Hedgehog
import Hedgehog.Gen qualified as Gen
import Hedgehog.R... | null | https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/front-door/test/Gen/ChecksEventGen.hs | haskell | # OPTIONS_GHC -fno - warn - missing - export - lists #
module Gen.ChecksEventGen where
import CommonTest.Gen.General
import Data.Vector qualified as V
import Gen.CommonEventGen
import GitHub.Data.Webhooks.Events
import GitHub.Data.Webhooks.Payload
import Hedgehog
import Hedgehog.Gen qualified as Gen
import Hedgehog.R... | |
4e71d9d2e05ca600c63faa9274cce52a6eef1371b8898a39ec06d01e54721077 | dotemacs/pdfboxing | draw.clj | (ns pdfboxing.draw
(:require [pdfboxing.common :as common])
(:import org.apache.pdfbox.pdmodel.PDPageContentStream))
(defn get-catalog
"Get a catalog from a PDF document"
[document]
(.getDocumentCatalog document))
(defn get-page
"Get a particular page from a catalog"
[catalog page-number]
(.get (.getP... | null | https://raw.githubusercontent.com/dotemacs/pdfboxing/3dafff7102d99df072b09626c9349ba3a9719bf6/src/pdfboxing/draw.clj | clojure | (ns pdfboxing.draw
(:require [pdfboxing.common :as common])
(:import org.apache.pdfbox.pdmodel.PDPageContentStream))
(defn get-catalog
"Get a catalog from a PDF document"
[document]
(.getDocumentCatalog document))
(defn get-page
"Get a particular page from a catalog"
[catalog page-number]
(.get (.getP... | |
d5f5f8a55f213e43e17d5212a1116032b5e745ef620ac3e87e0e0ca1c8960351 | DSiSc/why3 | coq.mli | (********************************************************************)
(* *)
The Why3 Verification Platform / The Why3 Development Team
Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University
(* ... | null | https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/src/printer/coq.mli | ocaml | ******************************************************************
This software is distributed under the terms of the GNU Lesser
on linking described in file LICENSE. ... | The Why3 Verification Platform / The Why3 Development Team
Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University
General Public License version 2.1 , with the special exception
|
1c745173de8458fd6d3ba16595cc4ca2df4f0aed954869114665452a3ae7b18f | ghc/packages-Cabal | setup.test.hs | import Test.Cabal.Prelude
Test build - tool - depends between two packages
main = cabalTest $ do
cabal "v2-build" ["client"]
| null | https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/BuildToolDepends/setup.test.hs | haskell | import Test.Cabal.Prelude
Test build - tool - depends between two packages
main = cabalTest $ do
cabal "v2-build" ["client"]
| |
260a0a820241f833161ff3aac2277903bf71525c22366efc203d993223276986 | fukamachi/id3v2 | mp3.lisp | (in-package :cl-user)
(defpackage id3v2.mp3
(:use #:cl)
(:export #:mp3
#:make-mp3
#:mp3-header
#:mp3-name
#:mp3-artist
#:mp3-album
#:mp3-year
#:mp3-track
#:mp3-disc
#:mp3-genre
#:mp3-length
#:mp3... | null | https://raw.githubusercontent.com/fukamachi/id3v2/26303fc70efd290aec55fb7f74bdabf2ee0b4b89/src/mp3.lisp | lisp | (in-package :cl-user)
(defpackage id3v2.mp3
(:use #:cl)
(:export #:mp3
#:make-mp3
#:mp3-header
#:mp3-name
#:mp3-artist
#:mp3-album
#:mp3-year
#:mp3-track
#:mp3-disc
#:mp3-genre
#:mp3-length
#:mp3... | |
fb126cf46f78d9ba29f09359ecb1cdda637177713f36383f0849a9bf8abf06f3 | ghcjs/jsaddle-dom | SVGPoint.hs | # LANGUAGE PatternSynonyms #
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
# OPTIONS_GHC -fno - warn - unused - imports #
module JSDOM.Generated.SVGPoint
(matrixTransform, matrixTransform_, setX, getX, setY, getY,
SVGPoint(..), gTypeSVGPoint)
wh... | null | https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/SVGPoint.hs | haskell | For HasCallStack compatibility
# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
| <-US/docs/Web/API/SVGPoint.x Mozilla SVGPoint.x documentation>
| <-US/docs/Web/API/SVGPoint.x Mozilla SVGPoint.x documentation>
| <-US/docs/Web/API/SVGPoint.y Mozilla SVGPoint.y documentation>
| <-US/docs/Web/API/SVGPo... | # LANGUAGE PatternSynonyms #
# OPTIONS_GHC -fno - warn - unused - imports #
module JSDOM.Generated.SVGPoint
(matrixTransform, matrixTransform_, setX, getX, setY, getY,
SVGPoint(..), gTypeSVGPoint)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromI... |
3529530d853157229c3fda84f1cbfc32648615b07a3778d78357fc3b35df84bf | andorp/bead | Page.hs | {-# LANGUAGE OverloadedStrings #-}
module Bead.View.Content.EvaluationTable.Page (
evaluationTable
) where
import Control.Monad
import Data.Function (on)
import Data.List (sortBy)
import Data.Maybe (fromMaybe)
import Data.Map (Map)
import qualified Data.Map as Ma... | null | https://raw.githubusercontent.com/andorp/bead/280dc9c3d5cfe1b9aac0f2f802c705ae65f02ac2/src/Bead/View/Content/EvaluationTable/Page.hs | haskell | # LANGUAGE OverloadedStrings #
not found
non-evaluated
tested accepted
tested rejected
accepted
rejected
* Sorting submissions
Create an ordered submission list based on the course group and assignment time ordering,
the submission list elements are ordered by the submission time of the solution
The key for t... | module Bead.View.Content.EvaluationTable.Page (
evaluationTable
) where
import Control.Monad
import Data.Function (on)
import Data.List (sortBy)
import Data.Maybe (fromMaybe)
import Data.Map (Map)
import qualified Data.Map as Map
import Data.String (fro... |
17e88f4888df9ac58cc49222010a01f0d26d85f8c25d60bd00678a6ff4fcb35d | evilbinary/scheme-lib | uri.scm | ;;; "uri.scm" Construct and decode Uniform Resource Identifiers. -*-scheme-*-
Copyright 1997 , 1998 , 2000 , 2001
;
;Permission to copy this software, to modify it, to redistribute it,
;to distribute modified versions, and to use it for any purpose is
;granted, subject to the following restrictions and understandin... | null | https://raw.githubusercontent.com/evilbinary/scheme-lib/6df491c1f616929caa4e6569fa44e04df7a356a7/packages/slib/uri.scm | scheme | "uri.scm" Construct and decode Uniform Resource Identifiers. -*-scheme-*-
Permission to copy this software, to modify it, to redistribute it,
to distribute modified versions, and to use it for any purpose is
granted, subject to the following restrictions and understandings.
in full.
this software will be error-free... | Copyright 1997 , 1998 , 2000 , 2001
1 . Any copy made of this software must include this copyright notice
2 . I have made no warranty or representation that the operation of
3 . In conjunction with products arising from the use of this
(require 'scanf)
(require 'printf)
(require 'coerce)
(require 'string-cas... |
33e56fa9fc43dab70da5aa79aab86a26cff0b6bfa8d1917d45aa96926532a19d | esuomi/muotti | project.clj | (defproject fi.polycode/muotti "_"
:description "Muotti is a graph based value transformer library which aims to solve value transformation by utilizing
a digraph of known transformations to produce a transformer chain which is then used to perform the
actual transformation."
:url ""... | null | https://raw.githubusercontent.com/esuomi/muotti/d3c3bcdd8537a0ca879b04e053502bb96bb3f40f/project.clj | clojure | Ecosystem friendly logging
all muotti extensions are optional
entrypoints | (defproject fi.polycode/muotti "_"
:description "Muotti is a graph based value transformer library which aims to solve value transformation by utilizing
a digraph of known transformations to produce a transformer chain which is then used to perform the
actual transformation."
:url ""... |
772615e32842a51655618ac6b44cd1682eed418eb289e055b9a3f90785015b13 | magicant/flesh | Show.hs |
Copyright ( C ) 2017 WATANABE >
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 .
This program is distribut... | null | https://raw.githubusercontent.com/magicant/flesh/0e76312d291aae8f890ba55d8131ade78600d7e8/src/Flesh/Text/Show.hs | haskell | # LANGUAGE Safe #
| Utility for yielding a ShowS function
| Utility for Show instances
vim: set et sw=2 sts=2 tw=78: |
Copyright ( C ) 2017 WATANABE >
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 .
This program is distribut... |
c836e076213e5cc0fa922b2517f4062779b276acf7ce2d9780996960890a364c | ocaml-ppx/ocamlformat | edge_cases.ml |
this could be fixed , but we actually want to handle the first case
differently for when there is only one case ( see next examples )
differently for when there is only one case (see next examples) *)
let f x = function A -> x;
2
| B -> y;
3
if we were to fix to the c... | null | https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/3d1c992240f7d30bcb8151285274f44619dae197/test/failing/tests/edge_cases.ml | ocaml | (and also: the some_handling here would be below Not_found)
the above should probably be consistent with:
wich means we may over-indent even when the block is non-closable |
this could be fixed , but we actually want to handle the first case
differently for when there is only one case ( see next examples )
differently for when there is only one case (see next examples) *)
let f x = function A -> x;
2
| B -> y;
3
if we were to fix to the c... |
7d1df08ad74c0bb2d9a959428eeee6703c9c1fa8ff243a52c3db9131dfc5ea10 | uim/uim | iso-639-1.scm | iso-639-1.scm : definition of ISO 639 - 1 language codes
;;;
Copyright ( c ) 2003 - 2013 uim Project
;;;
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are met:
;;;
1 . Redistributions ... | null | https://raw.githubusercontent.com/uim/uim/d1ac9d9315ff8c57c713b502544fef9b3a83b3e5/scm/iso-639-1.scm | scheme |
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the following disclaimer in the
docume... | iso-639-1.scm : definition of ISO 639 - 1 language codes
Copyright ( c ) 2003 - 2013 uim Project
1 . Redistributions of source code must retain the above copyright
2 . Redistributions in binary form must reproduce the above copyright
3 . Neither the name of authors nor the names of its contributors
THIS SO... |
fff5de0e0d5c566df4ac299ca9044e232b1a1389355151d9f9203ddf716fb81f | JoelSanchez/ventas | search_box.cljs | (ns ventas.components.search-box
(:require
[ventas.components.base :as base]
[ventas.i18n :refer [i18n]]
[re-frame.core :as rf]
[reagent.core :as r]
[ventas.server.api :as backend]
[ventas.components.image :as image])
(:require-macros
[ventas.utils :refer [ns-kw]]))
(def state-key ::state)
(r... | null | https://raw.githubusercontent.com/JoelSanchez/ventas/dc8fc8ff9f63dfc8558ecdaacfc4983903b8e9a1/src/cljs/ventas/components/search_box.cljs | clojure | (ns ventas.components.search-box
(:require
[ventas.components.base :as base]
[ventas.i18n :refer [i18n]]
[re-frame.core :as rf]
[reagent.core :as r]
[ventas.server.api :as backend]
[ventas.components.image :as image])
(:require-macros
[ventas.utils :refer [ns-kw]]))
(def state-key ::state)
(r... | |
6078d0453d745148594e354f2aea811fc25fce14d652cc356b2c237d2e5b1b05 | ds-wizard/engine-backend | Common.hs | module Wizard.Specs.API.DocumentTemplate.Common where
import Data.Either (isRight)
import Test.Hspec
import Test.Hspec.Wai hiding (shouldRespondWith)
import Shared.Api.Resource.Error.ErrorJM ()
import Shared.Database.DAO.DocumentTemplate.DocumentTemplateDAO
import Shared.Model.DocumentTemplate.DocumentTemplate
impor... | null | https://raw.githubusercontent.com/ds-wizard/engine-backend/bd98d1ee8aed0b2afcae8c7570dc7c2f3b03cae8/engine-wizard/test/Wizard/Specs/API/DocumentTemplate/Common.hs | haskell | --------------------------------
--------------------------------
--------------------------------
-------------------------------- | module Wizard.Specs.API.DocumentTemplate.Common where
import Data.Either (isRight)
import Test.Hspec
import Test.Hspec.Wai hiding (shouldRespondWith)
import Shared.Api.Resource.Error.ErrorJM ()
import Shared.Database.DAO.DocumentTemplate.DocumentTemplateDAO
import Shared.Model.DocumentTemplate.DocumentTemplate
impor... |
1d13858def7e54182aa681741097e7419ecc6862ac13bea8ac5aceab66e267bf | metametadata/carry | actions.cljs | (ns app.home.actions
(:require [cljs.core.match :refer-macros [match]]))
(defn on-action
[model action]
(match action
:click (update model :clicks inc)
:else :cant-handle)) | null | https://raw.githubusercontent.com/metametadata/carry/fa5c7cd0d8f1b71edca70330acc97c6245638efb/examples/blueprint-splitting-hof/src/app/home/actions.cljs | clojure | (ns app.home.actions
(:require [cljs.core.match :refer-macros [match]]))
(defn on-action
[model action]
(match action
:click (update model :clicks inc)
:else :cant-handle)) | |
620137dffec43c9f5e0b5de722b23bba739d0eedb0429d8315e849c3989fbdb6 | phadej/cabal-refact | IncreaseRevision.hs | {-# LANGUAGE OverloadedStrings #-}
module Distribution.Refact.Refactoring.IncreaseRevision (
increaseRevisionRefactoring,
setRevisionRefactoring,
) where
import Prelude ()
import Distribution.Refact.Internal.Prelude
import Distribution.Refact.Types.Pos
import Distribution.Refact.Types.Refactoring
import Di... | null | https://raw.githubusercontent.com/phadej/cabal-refact/9442736429e498f95dc24866c97be587113206ab/src/Distribution/Refact/Refactoring/IncreaseRevision.hs | haskell | # LANGUAGE OverloadedStrings #
otherwise, update
fields and rest | module Distribution.Refact.Refactoring.IncreaseRevision (
increaseRevisionRefactoring,
setRevisionRefactoring,
) where
import Prelude ()
import Distribution.Refact.Internal.Prelude
import Distribution.Refact.Types.Pos
import Distribution.Refact.Types.Refactoring
import Distribution.Refact.Types.Structure
... |
ba9d14945c60ebc70a5a43ea3f633d31d2a3aeeedd79e48f33101e41b85df327 | 5HT/ant | ALNodes.mli |
open Runtime;
open VM;
open Types;
open Typesetting;
open Engine;
open Environment;
open Node;
value encode_box_cmd : Box.box_cmd -> partial_value;
value decode_box_cmd : string -> unknown -> Box.box_cmd;
value encode_area_contents : area_contents_arg -> partial_value;
value decode_area_contents : string -> unknown ... | null | https://raw.githubusercontent.com/5HT/ant/6acf51f4c4ebcc06c52c595776e0293cfa2f1da4/Markup/ALNodes.mli | ocaml |
open Runtime;
open VM;
open Types;
open Typesetting;
open Engine;
open Environment;
open Node;
value encode_box_cmd : Box.box_cmd -> partial_value;
value decode_box_cmd : string -> unknown -> Box.box_cmd;
value encode_area_contents : area_contents_arg -> partial_value;
value decode_area_contents : string -> unknown ... | |
002902acc248fe8566de931a0b62f78a1450a35dbc7c1b0a9c9a15406b673a6f | spawnfest/eep49ers | tls_connection_sup.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2007 - 2016 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applic... | null | https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/ssl/src/tls_connection_sup.erl | erlang |
%CopyrightBegin%
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific l... | Copyright Ericsson AB 2007 - 2016 . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(tls_connection_sup).
-behaviour(supervisor).
-export([start_link/0, start_link_dist/0]).
-export([start_ch... |
9a2d24e7dfdd90975804e95ce050ae09fe841a99a34889d6e79947d8e758e40e | yutopp/rill | args.ml |
* Copyright yutopp 2021 - .
*
* Distributed under the Boost Software License , Version 1.0 .
* ( See accompanying file LICENSE_1_0.txt or copy at
* )
* Copyright yutopp 2021 - .
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* )... | null | https://raw.githubusercontent.com/yutopp/rill/375b67c03ab2087d0a2a833bd9e80f3e51e2694f/rillc/lib/tool/args.ml | ocaml | TODO: fix
Ad-hoc impl
e.g. /usr/bin
e.g. /usr
TODO: support other triple variants (not for only preset)
TODO: support other triple variants (not for only preset)
adhoc-impl |
* Copyright yutopp 2021 - .
*
* Distributed under the Boost Software License , Version 1.0 .
* ( See accompanying file LICENSE_1_0.txt or copy at
* )
* Copyright yutopp 2021 - .
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* )... |
6bfdf9fef65a9c1013d3096c239406bdbbf1123dd4e41f721826ea04434d02b3 | tamarin-prover/tamarin-prover | Interactive.hs | {-# LANGUAGE DeriveDataTypeable #-}
-- |
Copyright : ( c ) 2010 , 2011 &
-- License : GPL v3 (see LICENSE)
--
Maintainer : < >
Portability : GHC only
--
Main module for the Tamarin prover .
module Main.Mode.Interactive (
interactiveMode
) where
import Control.Basics
import ... | null | https://raw.githubusercontent.com/tamarin-prover/tamarin-prover/cd9b3a518ee8c2e6c7c5875e2e0fc09f072581c2/src/Main/Mode/Interactive.hs | haskell | # LANGUAGE DeriveDataTypeable #
|
License : GPL v3 (see LICENSE)
----------------------------------------------------------------------------
Run
----------------------------------------------------------------------------
| Batch processing mode.
, flagNone ["autosave"] (addEmptyArg "autosave") "Automatical... | Copyright : ( c ) 2010 , 2011 &
Maintainer : < >
Portability : GHC only
Main module for the Tamarin prover .
module Main.Mode.Interactive (
interactiveMode
) where
import Control.Basics
import Control.Exception (IOException, handle)
import Data.Char... |
b56c2aa1423dc12e6f28f6ab7bde42427d24f88d10351357da7b8d2724096d06 | stritzinger/opcua | opcua.erl | -module(opcua).
-behaviour(application).
TODO % %
%%
%% - Add security checks:
- The ApplicationUri specified in the Server Certificate is the same as the ApplicationUri provided in the EndpointDescription .
- The Server Certificate returned in CreateSession response is the same as the Certificate used to c... | null | https://raw.githubusercontent.com/stritzinger/opcua/a9802f829f80e6961871653f4d3c932f9496ba99/src/opcua.erl | erlang | %
- Add security checks:
- Verifiy all certificates against a trusted keychain
- Support sending/receiving certificate chains
- Verify we are enforcing the buffer size restriction correctly (Big certificate chain?)
- Stongly validate the security header
INCLUDES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... | -module(opcua).
-behaviour(application).
- The ApplicationUri specified in the Server Certificate is the same as the ApplicationUri provided in the EndpointDescription .
- The Server Certificate returned in CreateSession response is the same as the Certificate used to create the SecureChannel .
- The Endp... |
6a8938caf692fe17c46bbeb3cde5582aab49dbfd74c3363b63ba7bdde07b5165 | goblint/analyzer | localFixpoint.ml | * iteration solvers local to a single transfer function ( do n't use a constraint system ) .
module Make (D: Lattice.S) =
struct
let lfp ?(init=D.bot ()) (f: D.t -> D.t): D.t =
let rec widening x =
let x' = f x in
let x'' = D.widen x (D.join x x') in
if D.equal x x'' then
narrowing_reu... | null | https://raw.githubusercontent.com/goblint/analyzer/9ce9249ac2f8025084e4168a6202ec09feba92fb/src/solvers/localFixpoint.ml | ocaml | switch to narrowing phase
end iteration | * iteration solvers local to a single transfer function ( do n't use a constraint system ) .
module Make (D: Lattice.S) =
struct
let lfp ?(init=D.bot ()) (f: D.t -> D.t): D.t =
let rec widening x =
let x' = f x in
let x'' = D.widen x (D.join x x') in
if D.equal x x'' then
else
wi... |
4d3a21e577ca12d2679b0c6de750ae6787a16fb90cfa28cba307a1948ba45b4f | emqx/emqx | emqx_SUITE.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2017 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy o... | null | https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx/test/emqx_SUITE.erl | erlang | --------------------------------------------------------------------
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ... | Copyright ( c ) 2017 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(emqx_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-include_lib("emqx/inc... |
aac98eb291ba91fae217ab4df46a050435997cf85872c4a2245496f4a8cb64f7 | incoherentsoftware/defect-process | Hitbox.hs | module Collision.Hitbox
( module Collision.Hitbox.Types
, rectHitbox
, rectHitboxEx
, polyHitbox
, lineHitbox
, dummyHitbox
, hitboxTopLeft
, hitboxTopRight
, setHitboxTopLeft
, setHitboxTopLeftEx
, moveHitbox
, hitboxWidth
, hitboxHeight
, hitboxVertices
, hi... | null | https://raw.githubusercontent.com/incoherentsoftware/defect-process/a05dec4565153718834781a212def825488201bf/src/Collision/Hitbox.hs | haskell | this is a very hazy interpretation of average intersect position | module Collision.Hitbox
( module Collision.Hitbox.Types
, rectHitbox
, rectHitboxEx
, polyHitbox
, lineHitbox
, dummyHitbox
, hitboxTopLeft
, hitboxTopRight
, setHitboxTopLeft
, setHitboxTopLeftEx
, moveHitbox
, hitboxWidth
, hitboxHeight
, hitboxVertices
, hi... |
5691fc6a2de1cf22a4761de54d4f449bbbc0e40eb4eb1436103d0b62cd242c54 | CIFASIS/QuickFuzz | Fuzzers.hs | module Fuzzers where
data Fuzzer = Zzuf | Radamsa deriving Show
type FuzzerCommand = Int -> (String, [String])
defaultZzuf :: FuzzerCommand
defaultZzuf seed = ("zzuf", ["-r", "0.000001:0.04", "-s", show seed])
defaultRadamsa :: FuzzerCommand
defaultRadamsa seed = ("radamsa", ["-s", show seed])
-- | Fuzzers to raw c... | null | https://raw.githubusercontent.com/CIFASIS/QuickFuzz/a1c69f028b0960c002cb83e8145f039ecc0e0a23/app/Fuzzers.hs | haskell | | Fuzzers to raw commands mapping | module Fuzzers where
data Fuzzer = Zzuf | Radamsa deriving Show
type FuzzerCommand = Int -> (String, [String])
defaultZzuf :: FuzzerCommand
defaultZzuf seed = ("zzuf", ["-r", "0.000001:0.04", "-s", show seed])
defaultRadamsa :: FuzzerCommand
defaultRadamsa seed = ("radamsa", ["-s", show seed])
getFuzzerCommand :: F... |
41004d1e2a3f6a55e55c645efc3734e6b25556a8cda30ec38dbfa552ec63e83b | facebook/duckling | Tests.hs | Copyright ( c ) 2016 - present , Facebook , Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
module Duckling.Numeral.NB.Tests
( tests ) where
import Prelude
import Data.String
import Test.Tasty
imp... | null | https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/Numeral/NB/Tests.hs | haskell | All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. | Copyright ( c ) 2016 - present , Facebook , Inc.
module Duckling.Numeral.NB.Tests
( tests ) where
import Prelude
import Data.String
import Test.Tasty
import Duckling.Dimensions.Types
import Duckling.Numeral.NB.Corpus
import Duckling.Testing.Asserts
tests :: TestTree
tests = testGroup "NB Tests"
[ makeCorpusT... |
e7c667ec457d44010021c2b585e342140a63353f266a9885988370fe0dafe8cf | jeromesimeon/Galax | fn_error.mli | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | null | https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/stdlib/fn_error.mli | ocaml | *********************************************************************
GALAX
XQuery Engine
... | Copyright 2001 - 2007 .
$ I d : fn_error.mli , v 1.11 2007/02/01 22:08:54 simeon Exp $
type xquery_error_msg = Physical_value.item * Physical_value.item option * Physical_value.item list
exception Xquery_error of xquery_error_msg
val raise_error : Processing_con... |
7280422823948f2816db50e8708b37a2a6f9986cd0e45ab701f2aaa65ce0ec3b | Vincibean/real-world-haskell | ex03.hs | -- Using id as a control function, traverse id performs a preorder traversal of a tree: it returns a parent directory before its children. Write a control function that makes traverse perform a postorder traversal, in which it returns children before their parent.
import Data.List (sortBy)
import Data.Ord (comparing)
... | null | https://raw.githubusercontent.com/Vincibean/real-world-haskell/705a1e75eca318fa71d1bb44c16c7c7e2912f8cc/ch09/ex03.hs | haskell | Using id as a control function, traverse id performs a preorder traversal of a tree: it returns a parent directory before its children. Write a control function that makes traverse perform a postorder traversal, in which it returns children before their parent.
Assume that the parent directory will always be names ".... |
import Data.List (sortBy)
import Data.Ord (comparing)
import ControlledVisit
import qualified ControlledVisit as P (traverse)
postOrder :: [Info] -> [Info]
postOrder = reverse
postOrder' :: [Info] -> [Info]
postOrder' = sortBy $ flip $ comparing infoSize
postOrder'' :: [Info] -> [Info]
postOrder'' = sortBy $ flip ... |
59dafa94b345190be9bf97f9a277dc3a97ad2ccc02e3ab17b1c4e72d76d5cbdd | egri-nagy/lambdago | sgf_test.clj | (ns lgo.sgf-test
(:require [clojure.test :refer :all]
[lgo.sgf :refer :all]))
| null | https://raw.githubusercontent.com/egri-nagy/lambdago/b233ddc8c77d7b8f969045ebea972c30456726aa/test/lgo/sgf_test.clj | clojure | (ns lgo.sgf-test
(:require [clojure.test :refer :all]
[lgo.sgf :refer :all]))
| |
a9c11494e0a342137e8d6a664ff26695f0c4850ec3ccf73e5fca2e30004425a1 | viesti/clj-tf | core.clj | (ns clj-tf.core
(:require [clojure.java.shell :refer [sh]]
[jsonista.core :as json]
[clojure.string :as str]))
(defn sh! [& args]
(let [result (apply sh args)]
(when-not (zero? (:exit result))
(throw (Exception. (str (:out result) \newline (str (:err result))))))
result))
(de... | null | https://raw.githubusercontent.com/viesti/clj-tf/3a3732e15e81d9612ccbf68a83c13d0a60868a1d/src/clj_tf/core.clj | clojure | Intermediate nodes
Leaf nodes
Reading via encoding keys to keywords gives us keywords without namespace, which might be useful too | (ns clj-tf.core
(:require [clojure.java.shell :refer [sh]]
[jsonista.core :as json]
[clojure.string :as str]))
(defn sh! [& args]
(let [result (apply sh args)]
(when-not (zero? (:exit result))
(throw (Exception. (str (:out result) \newline (str (:err result))))))
result))
(de... |
721ca8ddc2a08f39509e14bccc75dbcbaffe7b0dce0bad0ec5774004985d6e83 | racket/htdp | htdp-beginner-abbr.rkt | #lang scheme/base
(require mzlib/etc
mzlib/list
mzlib/math
syntax/docprovide
test-engine/racket-tests)
(require "private/provide-and-scribble.rkt")
;; Implements the forms:
(require "private/teach.rkt"
"private/teach-module-begin.rkt")
;; syntax:
(provide (rename-out
... | null | https://raw.githubusercontent.com/racket/htdp/aa78794fa1788358d6abd11dad54b3c9f4f5a80b/htdp-lib/lang/htdp-beginner-abbr.rkt | racket | Implements the forms:
syntax:
cons-of
Property
check-property for-all ==> expect expect-within expect-member-of expect-range
procedures: | #lang scheme/base
(require mzlib/etc
mzlib/list
mzlib/math
syntax/docprovide
test-engine/racket-tests)
(require "private/provide-and-scribble.rkt")
(require "private/teach.rkt"
"private/teach-module-begin.rkt")
(provide (rename-out
[beginner-define define]
... |
d0ee28fa6c01b33918893911ed11680f0366e24443d24080529556130319d7d9 | mfoemmel/erlang-otp | syntax_tools_SUITE.erl | ` ` The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Public License along with this software. If not, it can be
%% retrieved via the world wide... | null | https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/syntax_tools/test/syntax_tools_SUITE.erl | erlang | compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved via the world wide web at /.
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limitations
... | ` ` The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
The Initial Developer of the Original Code is Ericsson Utvecklings AB .
Portions created by Eri... |
5fd57560d38e1be4298b4496b5d92344f0f8566f793c1a4169dad44b08c45523 | ocaml-multicore/ocaml-tsan | polling_insertion.ml | (* TEST
modules = "polling.c"
compare_programs = "false"
* arch64
** native
*)
This set of tests examine poll insertion behaviour . We do this by requesting
and checking the number of minor collections at various points to determine
whether a poll was correctly added . There are some subtleties... | null | https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/ae9c1502103845550162a49fcd3f76276cdfa866/testsuite/tests/asmcomp/polling_insertion.ml | ocaml | TEST
modules = "polling.c"
compare_programs = "false"
* arch64
** native
This function tests that polls are added to loops
This function should have no prologue poll but will have
one in the loop.
this function does not have indirect or 'forward' tail call nor
does it call a synthesised func... |
This set of tests examine poll insertion behaviour . We do this by requesting
and checking the number of minor collections at various points to determine
whether a poll was correctly added . There are some subtleties because
[ caml_empty_minor_heap ] will not increment the minor_collections stat if
... |
9bd10de0538c08395dd167d14d94eabb203a7fb5669b1f235750a8e521960096 | janestreet/universe | main.ml | open! Core
open! Async
open! Notty_async
module Pos = struct
include Tuple.Make (Int) (Int)
include Tuple.Comparable (Int) (Int)
let (+) (x1,y1) (x2,y2) = (x1 + x2, y1 + y2)
end
module Model : sig
type t = private
{ dim : Pos.t
; marks : Notty.A.color Map.M(Pos).t
; mark_color : Notty.... | null | https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/notty_async/example/clickable_map/main.ml | ocaml | This case doesn't ever seem to happen... | open! Core
open! Async
open! Notty_async
module Pos = struct
include Tuple.Make (Int) (Int)
include Tuple.Comparable (Int) (Int)
let (+) (x1,y1) (x2,y2) = (x1 + x2, y1 + y2)
end
module Model : sig
type t = private
{ dim : Pos.t
; marks : Notty.A.color Map.M(Pos).t
; mark_color : Notty.... |
f0e2d12c2d90fb15fde96afdf2f4c723aeb3c2435a76799d3d119e36ce31e85c | GrammaTech/sel | clang-tokenizer.lisp | ;;;; clang-tokenizer.lisp --- Clang tokenizer tests.
(defpackage :software-evolution-library/test/clang-tokenizer
(:nicknames :sel/test/clang-tokenizer)
(:use
:gt/full
#+gt :testbot
:software-evolution-library/test/util
:software-evolution-library/test/util-clang
:stefil+
:software-evolution-libra... | null | https://raw.githubusercontent.com/GrammaTech/sel/cd6975ad9f61a060e77d8aea0c8f74698cf8ff3e/test/clang-tokenizer.lisp | lisp | clang-tokenizer.lisp --- Clang tokenizer tests.
+ argc);
do {
run.foo++
} while (run.foo
< 8)
int add3(int x) {
printf("...", __func__)
return x + 3 }
tun -> foo = _Generic(
, char: 'q')
while((next = va_arg(nums, int))
&& num_args > 0) {
sum += next
num_args-- } | (defpackage :software-evolution-library/test/clang-tokenizer
(:nicknames :sel/test/clang-tokenizer)
(:use
:gt/full
#+gt :testbot
:software-evolution-library/test/util
:software-evolution-library/test/util-clang
:stefil+
:software-evolution-library
:software-evolution-library/software/parseable
... |
d5b2b68e89052f7ffaddf7dedadad547cd7128a0b3e823b9323b51b88798ea58 | mhwombat/creatur | FileSystem.hs | ------------------------------------------------------------------------
-- |
Module : ALife . . Database . FileSystem
Copyright : ( c ) 2012 - 2022
-- License : BSD-style
-- Maintainer :
-- Stability : experimental
-- Portability : portable
--
-- A ridiculously simple database that sto... | null | https://raw.githubusercontent.com/mhwombat/creatur/c715f4de16d29b646b27f3185d1d073df0fc9cb6/src/ALife/Creatur/Database/FileSystem.hs | haskell | ----------------------------------------------------------------------
|
License : BSD-style
Maintainer :
Stability : experimental
Portability : portable
A ridiculously simple database that stores each record in a
separate file. The name of the file is the record's key.
----------------------------... | Module : ALife . . Database . FileSystem
Copyright : ( c ) 2012 - 2022
# LANGUAGE FlexibleContexts #
# LANGUAGE TypeFamilies #
module ALife.Creatur.Database.FileSystem
(
FSDatabase,
mkFSDatabase
) where
import Prelude hiding (readFile, writeFile)
import ... |
835b6e542c49d5a985137cb06f8f98d862bac24c064aadb6245302a8a09fecdf | sicmutils/sicmutils | connection.cljc | #_"SPDX-License-Identifier: GPL-3.0"
(ns sicmutils.calculus.connection
(:require [sicmutils.calculus.basis :as b]
[sicmutils.calculus.covariant :as cov]
[sicmutils.calculus.manifold :as m]
[sicmutils.calculus.metric :as metric]
[sicmutils.function :as f]
[s... | null | https://raw.githubusercontent.com/sicmutils/sicmutils/ce763b31153eb9253f165bd5b4e4e6a6087bf730/src/sicmutils/calculus/connection.cljc | clojure | A metric induces a torsion-free connection.
Connections for non-coordinate basis -- MTW p.210
c_ijk = g_kl c_ij^l = g_kl e^l([e_i, e_j]) | #_"SPDX-License-Identifier: GPL-3.0"
(ns sicmutils.calculus.connection
(:require [sicmutils.calculus.basis :as b]
[sicmutils.calculus.covariant :as cov]
[sicmutils.calculus.manifold :as m]
[sicmutils.calculus.metric :as metric]
[sicmutils.function :as f]
[s... |
6f060661061e91afb736f4448311dd02071209b471fc18268d5d3f6c939ac1fe | heraldry/heraldicon | export_svg.cljs | (ns heraldicon.frontend.entity.action.export-svg
(:require
[cljs.core.async :refer [go]]
[com.wsscode.async.async-cljs :refer [<?]]
[heraldicon.frontend.entity.core :as entity]
[heraldicon.frontend.entity.form :as form]
[heraldicon.frontend.modal :as modal]
[heraldicon.frontend.repository.api :as ap... | null | https://raw.githubusercontent.com/heraldry/heraldicon/6900d5644e930906b8195a1fd04b1e48ca635fdf/src/heraldicon/frontend/entity/action/export_svg.cljs | clojure | TODO: this can probably live elsewhere | (ns heraldicon.frontend.entity.action.export-svg
(:require
[cljs.core.async :refer [go]]
[com.wsscode.async.async-cljs :refer [<?]]
[heraldicon.frontend.entity.core :as entity]
[heraldicon.frontend.entity.form :as form]
[heraldicon.frontend.modal :as modal]
[heraldicon.frontend.repository.api :as ap... |
995bac015a69e1299beff52e0f46baf3d4bd7ebeb557aa606557642676a9a8a1 | AbstractMachinesLab/caramel | or_exn.ml | let equal eq x y = Result.equal eq Exn.equal x y
let hash h = Result.hash h Exn.hash
let to_dyn f = Result.to_dyn f Exn.to_dyn
type 'a t = ('a, exn) Result.t
include Monad.Make (struct
type nonrec 'a t = 'a t
let return = Result.return
let ( >>= ) = Result.( >>= )
end)
| null | https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/vendor/stdune/or_exn.ml | ocaml | let equal eq x y = Result.equal eq Exn.equal x y
let hash h = Result.hash h Exn.hash
let to_dyn f = Result.to_dyn f Exn.to_dyn
type 'a t = ('a, exn) Result.t
include Monad.Make (struct
type nonrec 'a t = 'a t
let return = Result.return
let ( >>= ) = Result.( >>= )
end)
| |
b47f613f00b6085b5c56ebab17001340123b773117ee01b66e06ab34fcbf4a11 | alvatar/spheres | debug-server.scm | #!/usr/bin/env gsi-script
;; Sense (debug-server) used in conjuction with remote debugging functionality
(include "rdi.scm")
;;;----------------------------------------------------------------------------
(define console-window-num 0)
(define (new-console-window-num)
(let ((x (+ console-window-num 1)))
(set! ... | null | https://raw.githubusercontent.com/alvatar/spheres/568836f234a469ef70c69f4a2d9b56d41c3fc5bd/spheres/net/debug-repl/debug-server.scm | scheme | Sense (debug-server) used in conjuction with remote debugging functionality
----------------------------------------------------------------------------
wait until the pump starts
-----------------------------------------------------------------------------
------------------------------------------------------------... | #!/usr/bin/env gsi-script
(include "rdi.scm")
(define console-window-num 0)
(define (new-console-window-num)
(let ((x (+ console-window-num 1)))
(set! console-window-num x)
x))
(define *within-emacs* #f)
(define (open-console-window console-id)
(let ((tcp-port (+ 9000 (new-console-window-num))))
(... |
31b5b6ae34de455e3caf4ae591231863d36235d78c97827459c17acc559dc778 | dizengrong/erlang_game | cfg_map.erl | %% @doc 地图配置
-module (cfg_map).
-compile([export_all]).
%% @doc 所有的地图id
all_maps() -> [10000, 10001].
get(MapId) -> (get_module(MapId)):get().
@doc
born_pos(MapId) -> (get_module(MapId)):born_pos().
-spec jump_points(SrcMap::integer(),
DestMap::integer()) -> {X::integer(), Y::integer()} | [].
%% @doc 从源... | null | https://raw.githubusercontent.com/dizengrong/erlang_game/4598f97daa9ca5eecff292ac401dd8f903eea867/gerl/config/maps/cfg_map.erl | erlang | @doc 地图配置
@doc 所有的地图id
@doc 从源地图跳转到目的地图的跳转点 |
-module (cfg_map).
-compile([export_all]).
all_maps() -> [10000, 10001].
get(MapId) -> (get_module(MapId)):get().
@doc
born_pos(MapId) -> (get_module(MapId)):born_pos().
-spec jump_points(SrcMap::integer(),
DestMap::integer()) -> {X::integer(), Y::integer()} | [].
jump_points(10000, 10001) -> {20, 20};
... |
a9efc5f0af84359d9688a8beb9ca3e77c5610e6f616665059745f81fc7598211 | SquidDev/urn | match.lisp | (import test ())
(import lua/basic (pcall))
(describe "The matcher"
(it "can match for a specified amount of list values"
(affirm (eq? 2 (destructuring-bind [[?x ?y] '(1 2)] y))
(eq? false (pcall (lambda () (destructuring-bind [[?x ?y] '(1 2 3)] y))))))
(may "compile variable patterns"
(destruc... | null | https://raw.githubusercontent.com/SquidDev/urn/6e6717cf1376b0950e569e3771cb7e287aed291d/tests/lib/core/match.lisp | lisp | (import test ())
(import lua/basic (pcall))
(describe "The matcher"
(it "can match for a specified amount of list values"
(affirm (eq? 2 (destructuring-bind [[?x ?y] '(1 2)] y))
(eq? false (pcall (lambda () (destructuring-bind [[?x ?y] '(1 2 3)] y))))))
(may "compile variable patterns"
(destruc... | |
15bcf07c848a836ef2ebe1a4c79d6e12bfc73c69faa63bf77d64ee671d2f4eb0 | ragkousism/Guix-on-Hurd | autotools.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2012 < >
Copyright © 2012 , 2013 , 2014 , 2015 , 2016 < >
Copyright © 2015 >
Copyright © 2014 < >
Copyright © 2015 < >
Copyright © 2016 < >
Copyright © 2017 ng0 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is... | null | https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/autotools.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 © 2012 < >
Copyright © 2012 , 2013 , 2014 , 2015 , 2016 < >
Copyright © 2015 >
Copyright © 2014 < >
Copyright © 2015 < >
Copyright © 2016 < >
Copyright © 2017 ng0 < >
under the terms of the GNU General Public License as published by
You should have received a copy of th... |
b356ccff79e4891d7807d296039b6ce3010acf35f2ca017f520dd35794e42524 | standard-fish/summer-competititon-2019 | door.rkt | #lang racket
(require pict)
(require racket/gui/base)
(require racket/random)
(define (show tag thing) (print (cons tag thing)) thing)
( list ' random ( random 1 10 ) ( random 1 2 ) ( random 1 234 ) )
; (list 'chosen (random-ref '(a b c d e f)))
; (list 'nope)
( show ' showtest ' showdatum )
; TODO:
; Attribut... | null | https://raw.githubusercontent.com/standard-fish/summer-competititon-2019/2e8d74f79b493e0307aa278b4500901c5d5157a8/entries/hboom/door.rkt | racket | (list 'chosen (random-ref '(a b c d e f)))
(list 'nope)
TODO:
Attributes need to have constraints -- such as a list of colours to choose from, possibly with possibilities.
And then further bindings, instead of choosing, could further restrict the list. Or adjust probabilities.
And sizes, such as length and width... | #lang racket
(require pict)
(require racket/gui/base)
(require racket/random)
(define (show tag thing) (print (cons tag thing)) thing)
( list ' random ( random 1 10 ) ( random 1 2 ) ( random 1 234 ) )
( show ' showtest ' showdatum )
(define (looker name ali succeed fail)
(letrec (
(lookup2 (lam... |
ff01db8c35fabb1354770c5a58846c333d654630dfff562e90f407977115135c | awslabs/s2n-bignum | bignum_montsqr_sm2_alt.ml |
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved .
* SPDX - License - Identifier : Apache-2.0 OR ISC
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0 OR ISC
*)
(* =================================================================... | null | https://raw.githubusercontent.com/awslabs/s2n-bignum/6b53f075a0e28e6b89db12301de5f59ec788855c/arm/proofs/bignum_montsqr_sm2_alt.ml | ocaml | =========================================================================
=========================================================================
*** print_literal_from_elf "arm/sm2/bignum_montsqr_sm2_alt.o";;
***
arm_ADDS X9 X9 X9
arm_ADCS X11 X11 X11
arm_ADDS X8 X8 X12
arm_MOV X3 (rvalue (word 184467440... |
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved .
* SPDX - License - Identifier : Apache-2.0 OR ISC
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0 OR ISC
*)
Montgomery squaring modulo p_sm2 . ... |
7042dd1b87dc626e0d15cde6a0233f61ab526c55b0f9460238ab04cf831b6be0 | bytekid/mkbtt | fixedBaseElementary.ml | Copyright 2013 ,
* GNU Lesser General Public License
*
* This file is part of TTT2 .
*
* TTT2 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 , either version 3 of the License... | null | https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/processors/src/termination/interpretations/fixedBaseElementary.ml | ocaml | ** OPENS *******************************************************************
** TYPES *******************************************************************
shape: p + (base^exp)q
** mostly ignored **
non-linear coefficients
** GLOBALS *****************************************************************
functions lifted f... | Copyright 2013 ,
* GNU Lesser General Public License
*
* This file is part of TTT2 .
*
* TTT2 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 , either version 3 of the License... |
1a5b8280662402b41855f03e77b6863d2bf4faafe3641c26f9ca7ab6e57f6948 | byorgey/AoC | 05.hs | # LANGUAGE ParallelListComp #
# LANGUAGE TypeApplications #
import Control.Arrow
import Data.Array.Unboxed
import Data.List
import Data.List.Split
main = interact $
readInput >>> applyAll [solveA,solveB] >>> map show >>> unlines
type P2 = [Int]
type Line = [P2]
type Input = ... | null | https://raw.githubusercontent.com/byorgey/AoC/7d964ee131a80252eba2833ea762e9c739e58378/2021/05/05.hs | haskell | ----------------------------------------------------------
---------------------------------------------------------- | # LANGUAGE ParallelListComp #
# LANGUAGE TypeApplications #
import Control.Arrow
import Data.Array.Unboxed
import Data.List
import Data.List.Split
main = interact $
readInput >>> applyAll [solveA,solveB] >>> map show >>> unlines
type P2 = [Int]
type Line = [P2]
type Input = ... |
7b00653c951b63f0001cc9745dc599eea21f0a63814fc400b24042984f2edd2b | RichiH/git-annex | PID.hs | process ids
-
- Copyright 2014 < >
-
- License : BSD-2 - clause
-
- Copyright 2014 Joey Hess <>
-
- License: BSD-2-clause
-}
# LANGUAGE CPP #
module Utility.PID where
#ifndef mingw32_HOST_OS
import System.Posix.Types (ProcessID)
import System.Posix.Process (getProcessID)
#else
import System.... | null | https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Utility/PID.hs | haskell | process ids
-
- Copyright 2014 < >
-
- License : BSD-2 - clause
-
- Copyright 2014 Joey Hess <>
-
- License: BSD-2-clause
-}
# LANGUAGE CPP #
module Utility.PID where
#ifndef mingw32_HOST_OS
import System.Posix.Types (ProcessID)
import System.Posix.Process (getProcessID)
#else
import System.... | |
99bf3a81831d00b896db30f909abce75833cadfbd556e9fd8d5147908ee9b959 | takikawa/racket-ppa | string.rkt | (module string "pre-base.rkt"
(provide real->decimal-string
regexp-quote
regexp-replace-quote
regexp-match*
regexp-match-positions*
regexp-match-peek-positions*
regexp-split
regexp-match-exact?
regexp-try-match
-regexp... | null | https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/collects/racket/private/string.rkt | racket | exported from "base.rkt" as `regexp-replace*`
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
the tweaker is allowed to return a regexp
allow getting a string, so if someone needs to go
from a string to a regexp, there's no penalty
because of the intermediate regexp being recrea... | (module string "pre-base.rkt"
(provide real->decimal-string
regexp-quote
regexp-replace-quote
regexp-match*
regexp-match-positions*
regexp-match-peek-positions*
regexp-split
regexp-match-exact?
regexp-try-match
regexp-... |
b77efbf957ac80cd5e6632cb68527bc371c5fea2b6d67473970fdbcd0bf04c23 | wargrey/w3s | background.rkt | #lang typed/racket/base
(provide (all-defined-out))
(require bitmap/digitama/paint)
(require bitmap/digitama/source)
(require "digitama/syntax/digicore.rkt")
(require "digitama/background.rkt")
(require "recognizer.rkt")
(require "color.rkt")
;;; WARNING
;; All properties in this specification are *not* inheritable... | null | https://raw.githubusercontent.com/wargrey/w3s/54257dcc11402de0fefac55dee6a14a2b4263ad4/css/background.rkt | racket | WARNING
All properties in this specification are *not* inheritable.
#box-model
-backgrounds/#borders | #lang typed/racket/base
(provide (all-defined-out))
(require bitmap/digitama/paint)
(require bitmap/digitama/source)
(require "digitama/syntax/digicore.rkt")
(require "digitama/background.rkt")
(require "recognizer.rkt")
(require "color.rkt")
(define css-background-property-parsers : (-> Symbol (Option CSS-Declara... |
015c52abf35873b91777c6dc7e41c9873f69b5732dbe1233ec3c2c901399c2df | tisnik/clojure-examples | module_b.clj | (ns codoxtest.module-b
"Popis modulu se jmenem 'module-b'")
(defn f1
"Popis funkce f1."
[])
(defn f2
"Popis funkce f2."
[x]
(inc x))
(defn f3
"Popis funkce f2."
[x y]
(+ x y))
(def answer
"The Answer to the Ultimate Question of Life, the Universe, and Everything"
42)
(de... | null | https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/codoxtest/src/codoxtest/module_b.clj | clojure | (ns codoxtest.module-b
"Popis modulu se jmenem 'module-b'")
(defn f1
"Popis funkce f1."
[])
(defn f2
"Popis funkce f2."
[x]
(inc x))
(defn f3
"Popis funkce f2."
[x y]
(+ x y))
(def answer
"The Answer to the Ultimate Question of Life, the Universe, and Everything"
42)
(de... | |
d4f5c9992dfee3088185df99a6f460c037a6ab72408e1a7cf6648ec0c914242b | gafiatulin/codewars | PigLatin.hs | Single Word Pig Latin
-- /
module Codewars.PigLatin where
import Data.Char (isLetter, toLower)
pigLatin :: String -> Maybe String
pigLatin xs | any (not . isLetter) xs' = Nothing
| all (not . isVowel) xs' = Just (xs' ++ "ay")
| isVowel . head $ xs' = Just (xs' ++ "way")
| otherw... | null | https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/6%20kyu/PigLatin.hs | haskell | / | Single Word Pig Latin
module Codewars.PigLatin where
import Data.Char (isLetter, toLower)
pigLatin :: String -> Maybe String
pigLatin xs | any (not . isLetter) xs' = Nothing
| all (not . isVowel) xs' = Just (xs' ++ "ay")
| isVowel . head $ xs' = Just (xs' ++ "way")
| otherwise =... |
99c5335a2acb0ed3d0fefb20bd62e1e88b2f126ed375510c0f354aa7929c8b71 | evolutics/haskell-formatter | Input.hs | predecessor = predecessor
-- |comment 0
-- |comment 1
successor :: a
successor = successor
| null | https://raw.githubusercontent.com/evolutics/haskell-formatter/3919428e312db62b305de4dd1c84887e6cfa9478/testsuite/resources/source/comments/depends_on_displacement/single_annotation/line_pair/before_before/Input.hs | haskell | |comment 0
|comment 1 | predecessor = predecessor
successor :: a
successor = successor
|
84de085213bd6e25c642b0cf8eea1f019f6cf4124d4aa160bd03ae32c587b84d | RichiH/git-annex | TransferWatcher.hs | git - annex assistant transfer watching thread
-
- Copyright 2012 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2012 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Assistant.Threads.TransferWatcher where
import Assistant.Common
import Assis... | null | https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Assistant/Threads/TransferWatcher.hs | haskell | Runs an action handler.
-
- Exceptions are ignored, otherwise a whole thread could be crashed.
Called when there's an error with inotify.
Called when a new transfer information file is written.
transfer already finished
Called when a transfer information file is removed.
Run transfer hook.
XXX race workar... | git - annex assistant transfer watching thread
-
- Copyright 2012 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2012 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Assistant.Threads.TransferWatcher where
import Assistant.Common
import Assis... |
1732e12f88d8e223c4a5f55ffa701134dff06fbd4daae1f3c240f3c947c151c1 | rxsi/Chatroom | packet.erl | %%%-------------------------------------------------------------------
@author Rxsi
( C ) 2018 , < COMPANY >
%%% @doc
%%%
%%% @end
Created : 05 . 十二月 2018 13:43
%%%-------------------------------------------------------------------
-module(packet).
-author("Rxsi").
-compile(export_all).
-include("proto.hrl").
c... | null | https://raw.githubusercontent.com/rxsi/Chatroom/df961de25f94d65dfcdb0df02552c4256d897e67/Chat/_build/default/lib/Chat/src/app/packet.erl | erlang | -------------------------------------------------------------------
@doc
@end
------------------------------------------------------------------- | @author Rxsi
( C ) 2018 , < COMPANY >
Created : 05 . 十二月 2018 13:43
-module(packet).
-author("Rxsi").
-compile(export_all).
-include("proto.hrl").
client(?NEW, [Id, Password]) ->
Data1 = term_to_binary(Id),
Data2 = term_to_binary(Password),
Len1 = byte_size(Data1),
Len2 = byte_size(Data2),
Packet = <<... |
e75d2a9021ab258af806e60d3619ac8447dbc48f31490f67ae334f4fd9f5aa35 | cyverse-archive/DiscoveryEnvironmentBackend | core.clj | (ns clojure-commons.core
"General-purpose Clojure functions."
(:use [medley.core :only [remove-vals]]))
(defn remove-nil-values
"Removes entries containing nil values from a map."
[m]
(assert (map? m) "the argument to remove-nil-values must be a map")
(remove-vals nil? m))
| null | https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/libs/iplant-clojure-commons/src/clojure_commons/core.clj | clojure | (ns clojure-commons.core
"General-purpose Clojure functions."
(:use [medley.core :only [remove-vals]]))
(defn remove-nil-values
"Removes entries containing nil values from a map."
[m]
(assert (map? m) "the argument to remove-nil-values must be a map")
(remove-vals nil? m))
| |
184a2bda4451d0195e661404d51888f1c6c09b6c9b14461542074dd2f34e4457 | yutopp/rill | module.ml |
* Copyright yutopp 2021 - .
*
* Distributed under the Boost Software License , Version 1.0 .
* ( See accompanying file LICENSE_1_0.txt or copy at
* )
* Copyright yutopp 2021 - .
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* )... | null | https://raw.githubusercontent.com/yutopp/rill/375b67c03ab2087d0a2a833bd9e80f3e51e2694f/rillc/lib/rir/tests/module.ml | ocaml |
* Copyright yutopp 2021 - .
*
* Distributed under the Boost Software License , Version 1.0 .
* ( See accompanying file LICENSE_1_0.txt or copy at
* )
* Copyright yutopp 2021 - .
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* )... | |
85df1960a3f537f29b78b5fd0f1dc63725be8df0f39c0c83f197d5a4addbb869 | ocaml-multicore/tezos | test_sc_rollup.ml | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2021 Nomadic Labs < >
(* ... | null | https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_alpha/lib_protocol/test/integration/operations/test_sc_rollup.ml | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 2021 Nomadic Labs < >
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
LIABILITY , WHETHER IN AN... |
c9eee796350c821fe5fd1dad5a734ba3804106bbf29c02caa670a46f45fcd53e | ocurrent/ocurrent | post.ml | open Lwt.Infix
type t = Uri.t
let id = "slack-post"
module Key = Current.String
module Value = Current.String
module Outcome = Current.Unit
let publish t job _key message =
Current.Job.start job ~level:Current.Level.Above_average >>= fun () ->
let headers = Cohttp.Header.of_list [
"Content-type", "applica... | null | https://raw.githubusercontent.com/ocurrent/ocurrent/344af83279e9ba17f5f32d0a0351c228a6f42863/plugins/slack/post.ml | ocaml | open Lwt.Infix
type t = Uri.t
let id = "slack-post"
module Key = Current.String
module Value = Current.String
module Outcome = Current.Unit
let publish t job _key message =
Current.Job.start job ~level:Current.Level.Above_average >>= fun () ->
let headers = Cohttp.Header.of_list [
"Content-type", "applica... | |
d5008c6c4ea577fd8b2164bc0db7355ab4d0b74350d351fe76ef751e924ecc07 | arohner/spectrum | analyzer.clj | Copyright ( c ) , Rich Hickey & contributors .
;; The use and distribution terms for this software are covered by the
;; Eclipse Public License 1.0 (-1.0.php)
;; which can be found in the file epl-v10.html at the root of this distribution.
;; By using this software in any fashion, you are agreeing to be b... | null | https://raw.githubusercontent.com/arohner/spectrum/72b47a91a5ce4567eed547507d25b2528f48c2d1/src/spectrum/analyzer.clj | clojure | The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 (-1.0.php)
which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove ... | Copyright ( c ) , Rich Hickey & contributors .
(ns spectrum.analyzer
"Analyzer for clojure code, extends tools.analyzer with JVM specific passes/forms"
(:require [clojure.spec.alpha :as s]
[clojure.tools.analyzer.jvm :as ana.jvm]
[clojure.tools.analyzer.jvm.utils :as utils]
... |
2ac6beb1b65a926fc02d2fd7363e8c68689debb1bf4118fed8bc1703d5a16812 | modular-macros/ocaml-macros | dumpobj.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/tools/dumpobj.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
Disassembler for executable and .cmo object files
open Asttypes
open Config
open Instruct
open Lambda
... |
dcf7d1a4384faac0907bb4a53e4b839b116968a0ff846c3e5bbb8568674531ee | ocamllabs/ocaml-modular-implicits | ignored_scan_counters.ml | Benoît 's patch did not support % _ [ nlNL ] ; test their behavior
not supported by Printf or Format : fails at runtime
let () = Printf.printf "%_n"
;;
let () = Printf.printf "%_N"
;;
let () = Printf.printf "%_l"
;;
let () = Printf.printf "%_L"
;;
let () = Format.printf "%_n"
;;
let () = Format.printf "%_N"
;;
le... | null | https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/formats-transition/ignored_scan_counters.ml | ocaml | identity for Scanf | Benoît 's patch did not support % _ [ nlNL ] ; test their behavior
not supported by Printf or Format : fails at runtime
let () = Printf.printf "%_n"
;;
let () = Printf.printf "%_N"
;;
let () = Printf.printf "%_l"
;;
let () = Printf.printf "%_L"
;;
let () = Format.printf "%_n"
;;
let () = Format.printf "%_N"
;;
le... |
aa0c95eb6b59d550c9f849be5bd8e2373a7e09c8b81ec1c61d5d79655f5c021d | rgrinberg/ocaml-mustache | test_mustache.ml | [@@@warning "-6"]
open OUnit2
open Mustache
module List = ListLabels
module String = StringLabels
[ ( Parser input , expected parser output ,
* [ ( json data , expected rendering ) ] ) ]
* [ (json data, expected rendering) ] ) ] *)
let tests =
[ ( "Hello {{ name }}!"
, concat [ raw "Hello "; esc... | null | https://raw.githubusercontent.com/rgrinberg/ocaml-mustache/d0c45499f9a5ee91c38cf605ae20ecee47142fd8/lib_test/test_mustache.ml | ocaml | check that a whitespace line is omitted if it contains (several)
standalone tokens | [@@@warning "-6"]
open OUnit2
open Mustache
module List = ListLabels
module String = StringLabels
[ ( Parser input , expected parser output ,
* [ ( json data , expected rendering ) ] ) ]
* [ (json data, expected rendering) ] ) ] *)
let tests =
[ ( "Hello {{ name }}!"
, concat [ raw "Hello "; esc... |
74df6d1d903b0e53b2fc06daea53907847a93b5322ecf5a4da9ef46549cb51e3 | bcc32/advent-of-code | program.mli | open! Core
open! Async
open! Import
type t [@@deriving sexp_of]
val of_string : string -> t
* { 2 Copying program states }
module Snapshot : sig
type program := t
type t [@@deriving sexp_of]
val instantiate : t -> program
end
val snapshot : t -> Snapshot.t
val restore : t -> from:Snapshot.t -> unit
(** {2 ... | null | https://raw.githubusercontent.com/bcc32/advent-of-code/653c0f130e2fb2f599d4e76804e02af54c9bb19f/2019/intcode/program.mli | ocaml | * {2 Accessing memory}
* [t.$(i)] gets the [i]th value in program memory.
* [t.$(i) <- x] sets the [i]th value in program memory to [x].
* [provide_input' t ~from] transfers input from [from] to [t]'s input queue.
Removes elements from queue. | open! Core
open! Async
open! Import
type t [@@deriving sexp_of]
val of_string : string -> t
* { 2 Copying program states }
module Snapshot : sig
type program := t
type t [@@deriving sexp_of]
val instantiate : t -> program
end
val snapshot : t -> Snapshot.t
val restore : t -> from:Snapshot.t -> unit
module... |
23adb7f41a8cbcf08dec27ef8e588adcb4796e0300a86cbe58b09ebd01c60d4f | FreeProving/free-compiler | ImportPass.hs | -- | This module contains a compiler pass that adds all entries from imported
-- modules to the environment.
--
-- = Example
--
-- When a module @A@ that exports a data type @Foo@
--
-- > module A where
-- >
> data
--
is imported by a module @B@
--
-- > module B where
-- >
-- > import A
-- ... | null | https://raw.githubusercontent.com/FreeProving/free-compiler/6931b9ca652a185a92dd824373f092823aea4ea9/src/lib/FreeC/Pass/ImportPass.hs | haskell | | This module contains a compiler pass that adds all entries from imported
modules to the environment.
= Example
When a module @A@ that exports a data type @Foo@
> module A where
>
> module B where
>
> import A
>
> type Bar a = Foo -> a
then an entry for @Foo@ is added to the env... | > data
is imported by a module @B@
@Foo@ can be looked up in the translation of @B@.
When a module @C@ imports @B@
both @A.Foo@ and @B.Bar@ are added to the environment of @C@ since all
entries imported by @B@ are part of the @B@ 's module interface .
The resolver pass will make sure that... |
716429163e432e0cd2925a56d9d8caaeb9fa6e204ffdb081ef78e9049f2e66e7 | LeventErkok/sbv | MagicSquare.hs | -----------------------------------------------------------------------------
-- |
Module : TestSuite . Puzzles . MagicSquare
Copyright : ( c )
-- License : BSD3
-- Maintainer:
-- Stability : experimental
--
Test suite for Documentation . SBV.Examples . Puzzles . MagicSquare
-----------------------------... | null | https://raw.githubusercontent.com/LeventErkok/sbv/cfaa40b8c8ff8e1b7ff9ab71304654f6f531ba72/SBVTestSuite/TestSuite/Puzzles/MagicSquare.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD3
Maintainer:
Stability : experimental
---------------------------------------------------------------------------
# OPTIONS_GHC -Wall -Werror # | Module : TestSuite . Puzzles . MagicSquare
Copyright : ( c )
Test suite for Documentation . SBV.Examples . Puzzles . MagicSquare
module TestSuite.Puzzles.MagicSquare(tests) where
import Documentation.SBV.Examples.Puzzles.MagicSquare
import Utils.SBVTestFramework
tests :: TestTree
tests =
testGroup "P... |
ed149deac227f10a09c476c85ee3347cb6dbece725c9d112d8b89b307ca5d870 | basho/clique | clique_table.erl | %% -------------------------------------------------------------------
%%
Copyright ( c ) 2013 , 2014 Basho Technologies , Inc.
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except in compliance with the License . You may obtain
%% a copy of... | null | https://raw.githubusercontent.com/basho/clique/01a99227a4eb546a9beda763bb5aea6189285a4f/src/clique_table.erl | erlang | -------------------------------------------------------------------
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either express or implied. See the License for the
specific language governing permissio... | Copyright ( c ) 2013 , 2014 Basho Technologies , Inc.
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
-module(clique_table).
... |
cb6c4741ea91fb9c56a8bd2b0f0066a24f4a321bcc7d1eddb00f53ec50ceac02 | arrdem/shelving | impl.clj | (ns shelving.impl
"Implementer API for Shelving stores.
Store consumers should prefer the API provided by `shelving.core`."
{:authors ["Reid \"arrdem\" McKenzie <>"],
:license "Eclipse Public License 1.0",
:added "0.0.0"}
(:refer-clojure :exclude [flush get])
(:require [clojure.tools.logging :as log]... | null | https://raw.githubusercontent.com/arrdem/shelving/27439bfcb2f3438d5b23fcd468360bda491002f1/src/main/clj/shelving/impl.clj | clojure | Intentional interface for shelves
--------------------------------------------------------------------------------------------------
FIXME: doesn't handle :default, or dispatch preference correctly | (ns shelving.impl
"Implementer API for Shelving stores.
Store consumers should prefer the API provided by `shelving.core`."
{:authors ["Reid \"arrdem\" McKenzie <>"],
:license "Eclipse Public License 1.0",
:added "0.0.0"}
(:refer-clojure :exclude [flush get])
(:require [clojure.tools.logging :as log]... |
2003efab59c2215f27d70f8ba528089c99d3c9594053d38d72fa32d984766aaf | vbmithr/ocaml-kraken | kraken_ws.mli | open Kraken
val url_public : Uri.t
(** For public channels only. *)
val url_auth : Uri.t
(** For public and private channels, auth is required in all cases. *)
val url_beta : Uri.t
(** Beta endpoint, do not use in prod. *)
type subscription = private
| Ticker
| OHLC of int
| Trade
| Book of int
| Spread
... | null | https://raw.githubusercontent.com/vbmithr/ocaml-kraken/a330826b5f2ce1a20d34c67f5080e6d7ebccd177/src/kraken_ws.mli | ocaml | * For public channels only.
* For public and private channels, auth is required in all cases.
* Beta endpoint, do not use in prod. | open Kraken
val url_public : Uri.t
val url_auth : Uri.t
val url_beta : Uri.t
type subscription = private
| Ticker
| OHLC of int
| Trade
| Book of int
| Spread
| All
| OwnTrades of string
| OpenOrders of string
type status = {
connectionID: float ;
status: string ;
version: string
}
type sub... |
33f4526beeebe831cc1fd9818fe638578a7a74c899190696d5041d3db287a36e | oliyh/re-learn | actions.cljs | (ns todomvc.actions
(:require [todomvc.session :as session]
[todomvc.helpers :as helpers]))
(defn add-todo [title default]
(let [id (helpers/create-todo-id)
trimmed-title (helpers/trim-title @title)]
(swap! session/todos assoc id {:id id
:title trimmed-tit... | null | https://raw.githubusercontent.com/oliyh/re-learn/8fb3307554debb28b6545a4d38fa3b1ccfa43419/example/todomvc/todomvc/todomvc/actions.cljs | clojure | (ns todomvc.actions
(:require [todomvc.session :as session]
[todomvc.helpers :as helpers]))
(defn add-todo [title default]
(let [id (helpers/create-todo-id)
trimmed-title (helpers/trim-title @title)]
(swap! session/todos assoc id {:id id
:title trimmed-tit... | |
58b2c75147502ffbb28b218fa749333a23b6f0ba99e8970d06c96066701940d7 | haskell-lisp/yale-haskell | ix-enum.scm | ;;; ----------------------------------------------------------------
;;; Ix
;;; ----------------------------------------------------------------
(define (ix-fns algdata)
(if (algdata-enum? algdata)
(ix-fns/enum algdata)
(ix-fns/tuple algdata)))
(define (ix-fns/enum algdata)
(list
(**define '|range... | null | https://raw.githubusercontent.com/haskell-lisp/yale-haskell/4e987026148fe65c323afbc93cd560c07bf06b3f/derived/ix-enum.scm | scheme | ----------------------------------------------------------------
Ix
----------------------------------------------------------------
----------------------------------------------------------------
---------------------------------------------------------------- |
(define (ix-fns algdata)
(if (algdata-enum? algdata)
(ix-fns/enum algdata)
(ix-fns/tuple algdata)))
(define (ix-fns/enum algdata)
(list
(**define '|range| '((tuple |l| |u|))
(**let
(list
(**define '|cl| '() (**con-number (**var '|l|) algdata))
(**define '|cu| '() (**con-num... |
86502bad6146a090e974329e88f406a32fdc20c0ad8edc7cb05be471db429f48 | jellelicht/guix | cmake.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2013 , 2014 , 2015 < >
Copyright © 2013 < >
;;;
;;; 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 F... | null | https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/guix/build-system/cmake.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 © 2013 , 2014 , 2015 < >
Copyright © 2013 < >
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 cmake)
#:use-module (guix store)
#:u... |
8dc472a02fab09f7184649f84d2852eb81fce84aed32f96efba091a06584cb66 | racket/sgl | main.rkt | #lang scheme/base
(require (prefix-in gl- "sgl.rkt"))
(provide (all-from-out "sgl.rkt"))
| null | https://raw.githubusercontent.com/racket/sgl/7999abdf79058cc709da0e49dee4ec0569249085/main.rkt | racket | #lang scheme/base
(require (prefix-in gl- "sgl.rkt"))
(provide (all-from-out "sgl.rkt"))
| |
22ee94a998698fec85a3c5cdbca93ae635d17a9c035c7ba74f4163b42c89fc5f | Gbury/archsat | tag.ml | This file is free software , part of Archsat . See file " LICENSE " for more details .
(*
Arbitrary tags for expressions.
Uses a mixed map (see containers.data.CCMixmap)
*)
(* Type definitions *)
(* ************************************************************************ *)
module M = CCMixmap.Make(struct
... | null | https://raw.githubusercontent.com/Gbury/archsat/322fbefa4a58023ddafb3fa1a51f8199c25cde3d/src/base/tag.ml | ocaml |
Arbitrary tags for expressions.
Uses a mixed map (see containers.data.CCMixmap)
Type definitions
************************************************************************ | This file is free software , part of Archsat . See file " LICENSE " for more details .
module M = CCMixmap.Make(struct
type t = int
let compare (a: int) (b: int) =
Pervasives.compare a b
end)
type map = M.t
type 'a t = {
id : int;
inj : 'a CCMixmap.injection;
}
let equal k k' = k.id = k'.id
... |
209da202f0a9971df405d04b9df8abc2bfcbac053d3196c56fc57bb63e661b84 | xmonad/xmonad-contrib | Droundy.hs | # LANGUAGE PatternGuards #
# LANGUAGE TupleSections #
# OPTIONS_GHC -fno - warn - missing - signatures -fno - warn - orphans #
-----------------------------------------------------------------------------
-- |
Module : XMonad . Config .
Description : xmonad config .
Copyright : ( c ) 2007
-- ... | null | https://raw.githubusercontent.com/xmonad/xmonad-contrib/e2ffa533da76e6375179eff942bb0647dd22fb58/XMonad/Config/Droundy.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD3-style (see LICENSE)
----------------------------------------------------------------------
----------------------------------------------------------------------
Key bindings:
| The xmonad key bindings. Add, modify or... | # LANGUAGE PatternGuards #
# LANGUAGE TupleSections #
# OPTIONS_GHC -fno - warn - missing - signatures -fno - warn - orphans #
Module : XMonad . Config .
Description : xmonad config .
Copyright : ( c ) 2007
# DEPRECATED " This module contains a personal configuration , to be removed from xmon... |
38f68f0ae498a7a825e58ec90300c4728e26927ef7003c2e2d69ebdc980c534d | dmitryvk/sbcl-win32-threads | funutils.lisp | ;;;; miscellaneous operations on functions, returning functions, or
;;;; primarily useful for functional programming
This software is part of the SBCL system . See the README file for
;;;; more information.
;;;;
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and... | null | https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/code/funutils.lisp | lisp | miscellaneous operations on functions, returning functions, or
primarily useful for functional programming
more information.
public domain. The software is in the public domain and is
provided with absolutely no warranty. See the COPYING and CREDITS
files for more information.
all its arguments without consing ... |
This software is part of the SBCL system . See the README file for
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
(in-package "SB!IMPL")
(defun identity (thing)
#!+sb-doc
"This function simply returns what was passed to it."
thing)
... |
f1c132b1bc1c1579ab5f8e5e5f673c6467f13183d6158a634306faf7adea0520 | ArseniyBorezkiy/arda_compiler_collection | acc_debug.erl | %% @doc Flexible debug service.
%% @end
@author < >
, 2016
-module (acc_debug).
%
% api
%
-export ([
% supervisor
start_link/4,
% settings
set_console_level/1,
set_log_level/1,
set_language/1,
get_language/0,
% print
... | null | https://raw.githubusercontent.com/ArseniyBorezkiy/arda_compiler_collection/78f99c744ba14a3b2fc3863e429e3abe0becb302/src/auxiliary/acc_debug.erl | erlang | @doc Flexible debug service.
@end
api
supervisor
settings
print
tools
gen server callbacks
headers
basic types
=============================================================================
API
=============================================================================
supervisor
settings
... | @author < >
, 2016
-module (acc_debug).
-export ([
start_link/4,
set_console_level/1,
set_log_level/1,
set_language/1,
get_language/0,
log/3,
sprintf/2,
parse_int/1
]).
-export ([
init/1,
handle_... |
ec69514eeda59011bfd7d10762d2cef8e6100cad6557031203ad17bddcda0648 | tud-fop/vanda-haskell | Binarize.hs | -----------------------------------------------------------------------------
-- |
Copyright : ( c ) 2012
-- License : BSD-style
--
-- Stability : unknown
-- Portability : portable
-----------------------------------------------------------------------------
# LANGUAGE BangPatterns , Rank2Types , Rec... | null | https://raw.githubusercontent.com/tud-fop/vanda-haskell/3214966361b6dbf178155950c94423eee7f9453e/library/Vanda/Grammar/XRS/Binarize.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD-style
Stability : unknown
Portability : portable
---------------------------------------------------------------------------
import Debug.Trace ( traceShow )
myshow WTA { .. } = "Final state: " ++ show finalState... | Copyright : ( c ) 2012
# LANGUAGE BangPatterns , Rank2Types , RecordWildCards #
module Vanda.Grammar.XRS.Binarize ( binarizeXRS ) where
import Prelude hiding ( sequence )
import qualified Control.Error
import Control.Monad ( forM_, forM )
import Control.Monad.ST
import qualified Data.Array as A
import Data... |
264823c82df923069097234393cd04a7285b846683619753dfb40b6b09c5846d | poscat0x04/telegram-types | EncryptedPassportElement.hs | module Web.Telegram.Types.Internal.EncryptedPassportElement where
import Common
import Web.Telegram.Types.Internal.PassportFile
data EncryptedPassportElementType
= PersonalDetails
| Passport
| DriverLicense
| IdentityCard
| InternalPassport
| Address
| UtilityBill
| BankStatement
| RentalAgreement
... | null | https://raw.githubusercontent.com/poscat0x04/telegram-types/c09ccc81cff10399538894cf2d1273022c797e18/src/Web/Telegram/Types/Internal/EncryptedPassportElement.hs | haskell | | Base64-encoded element hash for using in
'Web.Telegram.Types.Internal.PassportElementError.PassportElementErrorUnspecified'
Can be decrypted and verified using the accompanying
| Encrypted file with the front side of the document
The file be decrypted and verified using the accompanying
| Encrypted file w... | module Web.Telegram.Types.Internal.EncryptedPassportElement where
import Common
import Web.Telegram.Types.Internal.PassportFile
data EncryptedPassportElementType
= PersonalDetails
| Passport
| DriverLicense
| IdentityCard
| InternalPassport
| Address
| UtilityBill
| BankStatement
| RentalAgreement
... |
f76b21527bfe9dc3ba7f5a9bd396f371b40a04ca742ed09f4787a6f2a6573be1 | fmw/vix | feed.cljs | ;; cljs/src/views/feed.cljs: UI implementation for feed management.
Copyright 2011 - 2013 , Vixu.com , F.M. ( Filip ) de Waard < > .
;;
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License a... | null | https://raw.githubusercontent.com/fmw/vix/112a45d6e376f099ad0a3f5bff9cc07511f2ff5e/src/cljs/src/views/feed.cljs | clojure | cljs/src/views/feed.cljs: UI implementation for feed management.
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or i... | Copyright 2011 - 2013 , Vixu.com , F.M. ( Filip ) de Waard < > .
distributed under the License is distributed on an " AS IS " BASIS ,
(ns vix.views.feed
(:use-macros [vix.crossover.macros :only [defhandler]])
(:require [vix.document :as document]
[vix.util :as util]
[vix.ui :as ui]
... |
b44218ec4a29552dd1cbb0ffbece31c379e742bb1c6632da4a22ab2998cd92b7 | pariyatti/kosa | dispatch_fixtures.clj | (ns kuti.fixtures.dispatch-fixtures
(:refer-clojure :exclude [update]))
(defn index [_] nil)
(defn create [_] nil)
(defn new [_] nil)
(defn show [_] nil)
(defn update [_] nil)
(defn destroy [_] nil)
(defn edit [_] nil)
| null | https://raw.githubusercontent.com/pariyatti/kosa/593a84d769ef72e459a68e194e2f344e0a851a9a/test/kuti/fixtures/dispatch_fixtures.clj | clojure | (ns kuti.fixtures.dispatch-fixtures
(:refer-clojure :exclude [update]))
(defn index [_] nil)
(defn create [_] nil)
(defn new [_] nil)
(defn show [_] nil)
(defn update [_] nil)
(defn destroy [_] nil)
(defn edit [_] nil)
| |
4847440b8c9b7da7f23524f4ffd9a9d42b3092e1626037c1c508ad6723f8624a | fulcro-legacy/semantic-ui-wrapper | ui_responsive.cljs | (ns fulcrologic.semantic-ui.addons.responsive.ui-responsive
(:require
[fulcrologic.semantic-ui.factory-helpers :as h]
["semantic-ui-react/dist/commonjs/addons/Responsive/Responsive" :default Responsive]))
(def ui-responsive
"Responsive can control visibility of content.
Props:
- as (custom): An el... | null | https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/addons/responsive/ui_responsive.cljs | clojure | (ns fulcrologic.semantic-ui.addons.responsive.ui-responsive
(:require
[fulcrologic.semantic-ui.factory-helpers :as h]
["semantic-ui-react/dist/commonjs/addons/Responsive/Responsive" :default Responsive]))
(def ui-responsive
"Responsive can control visibility of content.
Props:
- as (custom): An el... | |
af84dadfd4c32fc0eda6098548af8a4b5cf08c9a3ad690a7521b6a8a4863a293 | softwarelanguageslab/maf | R5RS_various_quasiquoting-simple-5.scm | ; Changes:
* removed : 0
* added : 0
* swaps : 0
* negated predicates : 2
* swapped branches : 1
; * calls to id fun: 0
(letrec ((day-of-week 'Sunday)
(make-greeting (lambda ()
(__toplevel_cons
'Welcome
(__toplevel_co... | null | https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_various_quasiquoting-simple-5.scm | scheme | Changes:
* calls to id fun: 0 | * removed : 0
* added : 0
* swaps : 0
* negated predicates : 2
* swapped branches : 1
(letrec ((day-of-week 'Sunday)
(make-greeting (lambda ()
(__toplevel_cons
'Welcome
(__toplevel_cons
... |
80c1ace90ffbeb7a04898bbf08ae7864dbba4da70bf4d1d95cab8ebf11bfe459 | huangz1990/SICP-answers | test-37-matrix-*-matrix-another.scm | (load "test-manager/load.scm")
(load "37-transpose.scm")
(load "37-matrix-*-matrix-another.scm")
(define m (list (list 1 2 3 4)
(list 4 5 6 6)
(list 6 7 8 9)))
(define n (transpose m))
(define-each-check
(equal? (matrix-*-matrix m n)
(list (list 30 56 80)
... | null | https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/test-37-matrix-*-matrix-another.scm | scheme | (load "test-manager/load.scm")
(load "37-transpose.scm")
(load "37-matrix-*-matrix-another.scm")
(define m (list (list 1 2 3 4)
(list 4 5 6 6)
(list 6 7 8 9)))
(define n (transpose m))
(define-each-check
(equal? (matrix-*-matrix m n)
(list (list 30 56 80)
... | |
45d411cc13e8a09ff70fa5fa6fafa4658f454b6fdfa706472a4e1f9cae77d378 | mbj/stratosphere | RuleProperty.hs | module Stratosphere.SSM.PatchBaseline.RuleProperty (
module Exports, RuleProperty(..), mkRuleProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SSM.PatchBaseline.PatchFilterGroupProperty as Exp... | null | https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/ssm/gen/Stratosphere/SSM/PatchBaseline/RuleProperty.hs | haskell | # SOURCE #
# SOURCE # | module Stratosphere.SSM.PatchBaseline.RuleProperty (
module Exports, RuleProperty(..), mkRuleProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RuleProperty
... |
868dd8b8f7b2ca32b192c7f621fe79a12d3e55ab810731b415142dbb9c7905bc | binsec/haunted | guideAsBFS.mli | (**************************************************************************)
This file is part of BINSEC .
(* *)
Copyright ( C ) 2016 - 2019
(* VERIMAG... | null | https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/dynamic/dse/path_exploration/guideAsBFS.mli | ocaml | ************************************************************************
VERIMAG
you can redistribute it an... | This file is part of BINSEC .
Copyright ( C ) 2016 - 2019
Lesser General Public License as published by the Free Software
Foundation , version 2.1 .
See the GNU Le... |
67730725a410f126a44960088b6514cfbe0be10a2eda292a4d96ec959c90a232 | mbenelli/klio | input-parse#.scm | (##namespace
("input-parse#"
peek-next-char
assert-curr-char
skip-until
skip-while
input-parse:init-buffer
next-token
next-token-of
read-text-line
read-string)) | null | https://raw.githubusercontent.com/mbenelli/klio/33c11700d6080de44a22a27a5147f97899583f6e/klio/input-parse%23.scm | scheme | (##namespace
("input-parse#"
peek-next-char
assert-curr-char
skip-until
skip-while
input-parse:init-buffer
next-token
next-token-of
read-text-line
read-string)) | |
65583ac6acf6054676d92529094e2a30413c2f2e6889bf5dfd1513e40cb3119f | kupl/FixML | sub1.ml |
let rec sigma : (int -> int) -> int -> int -> int
=fun f a b ->
if b = a then a
else
f b + sigma f a (b-1)
| null | https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/sigma/sigma1/submissions/sub1.ml | ocaml |
let rec sigma : (int -> int) -> int -> int -> int
=fun f a b ->
if b = a then a
else
f b + sigma f a (b-1)
| |
cf0c0e9a7676a2440a28dda78a3005c23e9b42f2a5143ac713699bbb604f77b6 | Snapbrillia/quadraticvoting | OffChainFileNames.hs | {-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DeriveGeneric #
module CLI.OffChainFileNames
( OffChainFileNames
, projectsInfoFile
, projectsDatumFile
, governanceMinter
, registrationMinter
, donationMinter
, qvfMainValidator
, deadlineSlot
, deadlineDatum
, initialGovDatum
, currentDatum
... | null | https://raw.githubusercontent.com/Snapbrillia/quadraticvoting/f5de63ea38eed7d2a19423e4a3e71a7e7cbd5c90/quadraticVoting/src/CLI/OffChainFileNames.hs | haskell | # LANGUAGE DeriveAnyClass # | # LANGUAGE DeriveGeneric #
module CLI.OffChainFileNames
( OffChainFileNames
, projectsInfoFile
, projectsDatumFile
, governanceMinter
, registrationMinter
, donationMinter
, qvfMainValidator
, deadlineSlot
, deadlineDatum
, initialGovDatum
, currentDatum
, updatedDatum
, newDatum
, qv... |
aea559f6ea5f9c6450403a0c876e541dbe65fd575a076e3546967ab5bf35aac5 | jfacorro/klarna-loves-erlang-meetup-2020 | bank_proper_account_request.erl | -module(bank_proper_account_request).
-include("bank_proper.hrl").
-export([bank_proper_account_request/0]).
-export([bank_proper_account_request/1]).
-export_type([bank_proper_account_request/0]).
-type bank_proper_account_request() ::
[ {'account_holder_id', binary() }
| {'balance', integer() }
].
bank_p... | null | https://raw.githubusercontent.com/jfacorro/klarna-loves-erlang-meetup-2020/61795af0ac80ac7afa4a00a215342988e5aac45f/apps/bank_proper/src/model/bank_proper_account_request.erl | erlang | -module(bank_proper_account_request).
-include("bank_proper.hrl").
-export([bank_proper_account_request/0]).
-export([bank_proper_account_request/1]).
-export_type([bank_proper_account_request/0]).
-type bank_proper_account_request() ::
[ {'account_holder_id', binary() }
| {'balance', integer() }
].
bank_p... | |
a830f543c2848077260c08eacab71299b624eba89f71df029f75c7b1775d32ac | haskell/haskell-language-server | HideQualifyDuplicateRecordFields.hs | module HideQualifyDuplicateRecordFields where
import AVec
import BVec
import CVec
import DVec
import EVec
import FVec
theFun = fromList | null | https://raw.githubusercontent.com/haskell/haskell-language-server/fdbc555a9245cb3761c2bf7335f3d18b8cf7673c/plugins/hls-refactor-plugin/test/data/hiding/HideQualifyDuplicateRecordFields.hs | haskell | module HideQualifyDuplicateRecordFields where
import AVec
import BVec
import CVec
import DVec
import EVec
import FVec
theFun = fromList | |
674a6093e5eb14ddb41eca0788194d192d9d04bc43c3f272fb21cfcb34e7b3ca | ghc/testsuite | simpl002.hs | ! ! ! class / instance mumble that failed at one time
--
module ShouldCompile where
class Foo a where
op :: Int -> a -> Bool
data Wibble a b c = MkWibble a b c
instance (Foo a, Foo b, Foo c) => Foo (Wibble a b c) where
op x y = error "xxx"
| null | https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/simplCore/should_compile/simpl002.hs | haskell | ! ! ! class / instance mumble that failed at one time
module ShouldCompile where
class Foo a where
op :: Int -> a -> Bool
data Wibble a b c = MkWibble a b c
instance (Foo a, Foo b, Foo c) => Foo (Wibble a b c) where
op x y = error "xxx"
| |
898b2529798a1398c1f5b6bdc1675bf7e20a6daeaf9a951721aa7e194766b082 | active-group/reacl | figwheel_test_runner.cljs | (ns reacl2.test.figwheel-test-runner
(:require [figwheel.main.testing :refer-macros [run-tests-async]]
[reacl2.test.core]))
(defn -main [& args]
(run-tests-async 10000))
| null | https://raw.githubusercontent.com/active-group/reacl/946e85a946d9659706b8875f9d1d2a7e0da55592/test-dom/reacl2/test/figwheel_test_runner.cljs | clojure | (ns reacl2.test.figwheel-test-runner
(:require [figwheel.main.testing :refer-macros [run-tests-async]]
[reacl2.test.core]))
(defn -main [& args]
(run-tests-async 10000))
| |
68dffcaa6ddd6659f25ab4c4438e6d52bb9b59bd0446652994df4857585bb0b5 | ymilky/franzy-admin | configuration.clj | (ns franzy.admin.configuration
(:require [franzy.admin.codec :as codec]
[franzy.common.configuration.codec :as config-codec])
(:import (kafka.admin AdminUtils)
(kafka.utils ZkUtils)
(kafka.server ConfigType)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... | null | https://raw.githubusercontent.com/ymilky/franzy-admin/94588c5ce1b50f4a61b2fb4a4ec4d47568b83287/src/franzy/admin/configuration.clj | clojure |
Configuration
avoid the extra transduction if we don't want it, otherwise we could do identity as the xf
TODO: need to check if any internal configs get returned here, in which case we will call the all-entity-configs with the include param false
TODO: need to check if any internal configs get returned here, in whic... | (ns franzy.admin.configuration
(:require [franzy.admin.codec :as codec]
[franzy.common.configuration.codec :as config-codec])
(:import (kafka.admin AdminUtils)
(kafka.utils ZkUtils)
(kafka.server ConfigType)))
(def default-config-xf
"Transducer to remove defaukt configurations."... |
42d890b13b13e5408eb6c7dfacc63c02829db9d59c65becb92581e2dd382b265 | metabase/metabase | hive_like.clj | (ns metabase.driver.hive-like
(:require
[buddy.core.codecs :as codecs]
[clojure.string :as str]
[honey.sql :as sql]
[java-time :as t]
[metabase.driver :as driver]
[metabase.driver.sql-jdbc.connection :as sql-jdbc.conn]
[metabase.driver.sql-jdbc.execute :as sql-jdbc.execute]
[metabase.driver.sq... | null | https://raw.githubusercontent.com/metabase/metabase/df181c415680faa5b8c7de7db5bcd4743502d9ce/modules/drivers/sparksql/src/metabase/driver/hive_like.clj | clojure | placeholder (yes, even if the identifier is quoted... (:unamused:)
`_QMARK_` is kind of arbitrary but that's what [[munge]] does and it seems like it would lead to less potential
name clashes than if we just used underscores.
validate connections upon checkout.
other units are supported too but we're not currentl... | (ns metabase.driver.hive-like
(:require
[buddy.core.codecs :as codecs]
[clojure.string :as str]
[honey.sql :as sql]
[java-time :as t]
[metabase.driver :as driver]
[metabase.driver.sql-jdbc.connection :as sql-jdbc.conn]
[metabase.driver.sql-jdbc.execute :as sql-jdbc.execute]
[metabase.driver.sq... |
59974eae9aad0176832a60a86e799a4f76be2fa3707a3dd2a1c94bf31b865260 | testdouble/baizen | account_identifier.clj | (ns baizen.formats.account-identifier
(:require [baizen.formats :refer [BaiFormat index-of drop-slash lookup-type-code]]))
(defn- hashify-summary-fields [line]
(let [fields (subvec line 0 3)
summary-field-keys [:type-code :amount :item-count :funds-type]
summary-fields (partition 4 (subvec line 3))... | null | https://raw.githubusercontent.com/testdouble/baizen/66bc3da3b660bc88317e1be6fce266a95db883fb/src/baizen/formats/account_identifier.clj | clojure | (ns baizen.formats.account-identifier
(:require [baizen.formats :refer [BaiFormat index-of drop-slash lookup-type-code]]))
(defn- hashify-summary-fields [line]
(let [fields (subvec line 0 3)
summary-field-keys [:type-code :amount :item-count :funds-type]
summary-fields (partition 4 (subvec line 3))... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.