_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 |
|---|---|---|---|---|---|---|---|---|
c85f6ca3dd8607e40044f7992d352b6387a216d41ef736d4c3a74fcde7c93ede | otakar-smrz/elixir-fm | H.hs |
module Elixir.Data.Moony.Foreign.H (section) where
import Elixir.Lexicon
lexicon = include section
cluster_1 = cluster
|> ['^','g','i','y','U','f','A','n','I'] <| [
_____ `xtra` {- <^giyUfAnI> -} [ ['G','i','o','v','a','n','n','i'] ] ]
cluster_2 = cluster
|> ['^','g','i'... | null | https://raw.githubusercontent.com/otakar-smrz/elixir-fm/fae5bab6dd53c15d25c1e147e7787b2c254aabf0/Haskell/ElixirFM/Elixir/Data/Moony/Foreign/H.hs | haskell | <^giyUfAnI>
<^giyAn.g>
<^gAymI>
<^grInIt^s>
<^grInit^s>
<^glAznUst>
<^glUkUmA>
<^ghArqand>
<^gwAntAnAmU>
<^gwAntanAmU>
<.h>
<.himalAyA>
<.hAyIm>
<_h>
<_hUr_hI>
<_hAsAnsk>
<_hUsIh>
<_hUlU>
<_hUlIt>
<_hAnyUnis>
<_huwAn>
<_hAymI>
<`>
<`>
<`ubayd-al-l_ah>
<`abd-at-tawwAb> ... |
module Elixir.Data.Moony.Foreign.H (section) where
import Elixir.Lexicon
lexicon = include section
cluster_1 = cluster
|> ['^','g','i','y','U','f','A','n','I'] <| [
cluster_2 = cluster
|> ['^','g','i','y','A','n','.','g'] <| [
cluster_3 = cluster
|> ['^','g','A','y','m','I'] <| [
cluster_4 ... |
520ae9a0656b8ec73fb53952bf12a9295e6ae525c310d0b2f5f3c81b83efb444 | naoiwata/sicp | q-1.10.scm | ;
; -> @author naoiwata
- > SICP Chapter1
; -> q-1.10
;
(define (A x y)
(cond ((= y 0) 0)
((= x 0) (* 2 y))
((= y 1) 2)
(else (A (- x 1)
(A x (- y 1))))))
( 1 )
(print (A 1 10))
( A 1 10 ) = 2 * ( A 1 9 ) = 2 * 2 * ( A 1 8) ... = 2 ^ 10 = 1024
( 2 )
(print (A 2 4))
( A 2 4 ) = ( A 1 ( A 1 ... | null | https://raw.githubusercontent.com/naoiwata/sicp/7314136c5892de402015acfe4b9148a3558b1211/chapter1/q-1.10.scm | scheme |
-> @author naoiwata
-> q-1.10
| - > SICP Chapter1
(define (A x y)
(cond ((= y 0) 0)
((= x 0) (* 2 y))
((= y 1) 2)
(else (A (- x 1)
(A x (- y 1))))))
( 1 )
(print (A 1 10))
( A 1 10 ) = 2 * ( A 1 9 ) = 2 * 2 * ( A 1 8) ... = 2 ^ 10 = 1024
( 2 )
(print (A 2 4))
( A 2 4 ) = ( A 1 ( A 1 3 ) ) = 2^(A 1 3 ) = 2^(2 ^ 4 ) = 6553... |
d313e4cb0c041bee8bf5abec29f867117ab5e11052a1062dfb7f01fb95aa740f | fredlund/JavaErlang | swing_hello_world.erl | Copyright ( c ) 2009 ,
%% All rights reserved.
%%
%% Redistribution and use in source and binary forms, with or without
%% modification, are permitted provided that the following conditions are met:
%% %% Redistributions of source code must retain the above copyright
%% notice, this list of conditions a... | null | https://raw.githubusercontent.com/fredlund/JavaErlang/29f5a9e54bdf750688048d621e67abc9e79de146/test/demo/swing_hello_world.erl | erlang | All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
%% Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
%% Redi... | Copyright ( c ) 2009 ,
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR
@author ( )
2011
A simple Swing example using the proxy facilities of JavaErlang .
-module(swing_hello_world).
-expor... |
d82dacdf33f26b2c25af63b3334b97b5f9c6b9eecba5352846ca7dd87842b5cc | digikar99/numericals | two-arg-fn-float.lisp | (numericals.common:compiler-in-package numericals.common:*compiler-package*)
(5am:in-suite nu::array)
(define-polymorphic-function two-arg-fn/float (name x y &key out broadcast) :overwrite t)
(defpolymorph two-arg-fn/float ((name symbol) (x number) (y number)
&key ((out null)) broadca... | null | https://raw.githubusercontent.com/digikar99/numericals/37fa312703a8d0191f848109b151e49ea9a7b56c/src/two-arg-fn-float.lisp | lisp | cases of optimality of polymorphs:
this can in fact be inlined
- no note is necessary in this case; this is the most optimal case
- this necessitates code that handles broadcasting
- we point to the more optimal polymorph in this case
The very fact that we are allowing Y to be NUMBER implies
The very fact... | (numericals.common:compiler-in-package numericals.common:*compiler-package*)
(5am:in-suite nu::array)
(define-polymorphic-function two-arg-fn/float (name x y &key out broadcast) :overwrite t)
(defpolymorph two-arg-fn/float ((name symbol) (x number) (y number)
&key ((out null)) broadca... |
1d42e2eb5394f7676546bddecc14d228aaef3711e5f6d24fdda92ae5f9f082b0 | qfpl/applied-fp-course | Core.hs | {-# LANGUAGE OverloadedStrings #-}
module Level02.Core (runApp, app) where
import Network.Wai (Application, Request, Response,
pathInfo, requestMethod, responseLBS,
strictRequestBody)
import Network.W... | null | https://raw.githubusercontent.com/qfpl/applied-fp-course/d5a94a9dcee677bc95a5184c2ed13329c9f07559/src/Level02/Core.hs | haskell | # LANGUAGE OverloadedStrings #
|-------------------------------------------|
|- Don't start here, go to Level02.Types! -|
|-------------------------------------------|
|----------------------------------------------------------------------------------
These next few functions will take raw request information and... | module Level02.Core (runApp, app) where
import Network.Wai (Application, Request, Response,
pathInfo, requestMethod, responseLBS,
strictRequestBody)
import Network.Wai.Handler.Warp (run)
import ... |
ff6298de4e6bc719255aa930c981a729acc8228dfe1e7fb3a39cf51af284e280 | metasoarous/dynamatch | dynamatch.cljc | (ns ^{:author "Chris Small <>"
:doc "A macro to define clojure functions with parameter pattern matching
based on core.match, but with multimethod-like extensibility. Please see
"}
dynamatch
#?(:clj (:refer-clojure :exclude [alter-var-root]))
(:require #?(:clj [clojure.core.match :as... | null | https://raw.githubusercontent.com/metasoarous/dynamatch/3bde8478020dccfd7f0e85b096ace2deca1df9d0/src/dynamatch.cljc | clojure | A portable version of alter var root
From
Separate namespace?
# Dynamatch
We'd like to be able to construct function objects -- based on pattern matching -- which allow us to extend
the set of patterns and actions we match on.
The goal of this is to strike a balance between the flexibility and expressiveness of... | (ns ^{:author "Chris Small <>"
:doc "A macro to define clojure functions with parameter pattern matching
based on core.match, but with multimethod-like extensibility. Please see
"}
dynamatch
#?(:clj (:refer-clojure :exclude [alter-var-root]))
(:require #?(:clj [clojure.core.match :as... |
8531f20a7c106cb4f40b3539e5f09d673008c3dee5a4c0817fc744cc8275bd5f | nasa/Common-Metadata-Repository | ingest_util.clj | (ns cmr.system-int-test.utils.ingest-util
(:require
[cheshire.core :as json]
[clj-http.client :as client]
[clojure.data :as d]
[clojure.data.xml :as x]
[clojure.string :as str]
[clojure.test :refer :all]
[cmr.acl.core :as acl]
[cmr.common-app.config :as common-config]
[cmr.common-app.test.s... | null | https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/ef1fdf1dd6e90a5e686a324a4c905e04ba0b8cad/system-int-test/src/cmr/system_int_test/utils/ingest_util.clj | clojure | Temporary function, this calls the subscription routes under the ingest root url, will be removed in CMR-8270
clj-http has a specific format for the multipart params.
added to allow testing of the raw response
Validation only returns a response body if there are errors.
Use the regular validation endpoint in this ... | (ns cmr.system-int-test.utils.ingest-util
(:require
[cheshire.core :as json]
[clj-http.client :as client]
[clojure.data :as d]
[clojure.data.xml :as x]
[clojure.string :as str]
[clojure.test :refer :all]
[cmr.acl.core :as acl]
[cmr.common-app.config :as common-config]
[cmr.common-app.test.s... |
e3da9ff50d45ea176d0f589cbf2673e93b4b3f5f3795cc9b2f0291e8cae76782 | puppetlabs/jruby-utils | jruby_core_test.clj | (ns puppetlabs.services.jruby-pool-manager.jruby-core-test
(:require [clojure.test :refer :all]
[schema.test :as schema-test]
[puppetlabs.services.jruby-pool-manager.jruby-core :as jruby-core]
[puppetlabs.trapperkeeper.testutils.logging :as logutils]
[puppetlabs.service... | null | https://raw.githubusercontent.com/puppetlabs/jruby-utils/7b53c3c6a0c61635362402313bcec809abf5a856/test/unit/puppetlabs/services/jruby_pool_manager/jruby_core_test.clj | clojure | The choice of json is arbitrary, just need something to scan for
TODO: consider bringing the CLI clj files back into the repo? (TK-378) | (ns puppetlabs.services.jruby-pool-manager.jruby-core-test
(:require [clojure.test :refer :all]
[schema.test :as schema-test]
[puppetlabs.services.jruby-pool-manager.jruby-core :as jruby-core]
[puppetlabs.trapperkeeper.testutils.logging :as logutils]
[puppetlabs.service... |
f7927a54d825b41fb6c46cf9085e8828e2ea08d6ed973227fc1cac0ebd0d2de1 | schernichkin/partial-isomorphisms | Derived.hs | module Control.Isomorphism.Partial.Derived
( foldl
) where
import Prelude ()
import Control.Category (Category (id, (.)))
import Control.Isomorphism.Partial.Prim (Iso, inverse, unit, associate, iterate, (***))
import Control.Isomorphism.Partial.Constructors (cons, nil)
foldl :: Iso (alpha, beta) alpha -> Iso (al... | null | https://raw.githubusercontent.com/schernichkin/partial-isomorphisms/16e16aedab5bd77391f701c232983386ec3bba34/src/Control/Isomorphism/Partial/Derived.hs | haskell | module Control.Isomorphism.Partial.Derived
( foldl
) where
import Prelude ()
import Control.Category (Category (id, (.)))
import Control.Isomorphism.Partial.Prim (Iso, inverse, unit, associate, iterate, (***))
import Control.Isomorphism.Partial.Constructors (cons, nil)
foldl :: Iso (alpha, beta) alpha -> Iso (al... | |
a5488c68f913d5459acf943c9a50fd9787eb33991603f1b451d79b8eda4f5f33 | willowtreeapps/wombats-api | zakano_code.clj | (ns wombats.game.zakano-code
(:refer-clojure :exclude [fn])
(:require [serializable.fn :refer :all]))
(defmacro defsource
"Similar to clojure.core/defn, but saves the function's definition in the var's
:source meta-data.
-can-i-display-the-definition-of-a-function-in-clojure-at-the-repl"
{:arglists (:arg... | null | https://raw.githubusercontent.com/willowtreeapps/wombats-api/738e4cc8d7011998695ec85e663f650be71f60ae/src/wombats/game/zakano_code.clj | clojure | Default to false because this is currently only used for the partial arena
which has no notion of wrapping.
All frontiers have been explored, break out with sorted-arena
attached to state.
if the zakano doesn't know what to do next, it's
defense mechanism is to spin and shoot.
Format Zakano Response | (ns wombats.game.zakano-code
(:refer-clojure :exclude [fn])
(:require [serializable.fn :refer :all]))
(defmacro defsource
"Similar to clojure.core/defn, but saves the function's definition in the var's
:source meta-data.
-can-i-display-the-definition-of-a-function-in-clojure-at-the-repl"
{:arglists (:arg... |
390807b70c545453f6903c34fed61852cd1ce3710a72c5d616301b5cadee9d9b | OCamlPro/drom | main.ml | (**************************************************************************)
(* *)
Copyright ( c ) 2023 OCamlPro SAS & Origin Labs SAS
(* *)
(* All right... | null | https://raw.githubusercontent.com/OCamlPro/drom/b4edd50f040f88c2d57f8893e3bb18ae37f5f3ab/src/drom/main.ml | ocaml | ************************************************************************
All rights reserved.
This file is distributed u... | Copyright ( c ) 2023 OCamlPro SAS & Origin Labs SAS
Public License version 2.1 , with the special exception on linking
let () = Drom_lib.Main.main ()
|
ce504f08979ba0520b54945f5539bceb2e2f9b62a4c61bfa30ba9fb6d9e2118b | clj-commons/seesaw | make_widget.clj | Copyright ( c ) , 2011 . All rights reserved .
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (-1.0.php)
; which can be found in the file epl-v10.html at the root of this
; distribution.
; By using this software in any fashion, you are agreeing to be ... | null | https://raw.githubusercontent.com/clj-commons/seesaw/4ca89d0dcdf0557d99d5fa84202b7cc6e2e92263/src/seesaw/make_widget.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 rem... | Copyright ( c ) , 2011 . All rights reserved .
(ns seesaw.make-widget
(:use [seesaw.icon :only [icon]])
(:import [java.awt Dimension]
[javax.swing Box JLabel JButton]))
(defprotocol MakeWidget
(make-widget* [v]))
(defmacro ^{:private true} def-make-widget [t b & forms]
`(extend-type
~t... |
80c0d03694f170ae34790d09d3e51858c0cc2826695a58c306ccbe639f515e7b | wasamasa/breadline | breadline.scm | (module breadline
(history-length history-file add-history! read-history! write-history!
stifle-history! unstifle-history!
completer-set! completer-word-break-characters-set!
variable-bind! variable-value
event-hook-set! pre-input-hook-set!
insert-text delete-text stuff-char redisplay
basic-quote-ch... | null | https://raw.githubusercontent.com/wasamasa/breadline/aa18d6775b3fb19d1f606d9cb8f7d3b42e4cf3e3/breadline.scm | scheme | (module breadline
(history-length history-file add-history! read-history! write-history!
stifle-history! unstifle-history!
completer-set! completer-word-break-characters-set!
variable-bind! variable-value
event-hook-set! pre-input-hook-set!
insert-text delete-text stuff-char redisplay
basic-quote-ch... | |
03b323b1e6c3798131ad873e71c1427caf12e05d61434f7b1aa45ad2494b0808 | pariyatti/kosa | videosearch.cljs | (ns kosa.videosearch
(:require [json-html.core :refer [edn->hiccup]]
[reagent.core :as r]
[reagent-forms.core :refer [bind-fields init-field value-of]]
[lambdaisland.fetch :as fetch]
[kuti.mediabox]))
(defn row [input]
[:div.row
[:div.col-md-5 input]])
(def resul... | null | https://raw.githubusercontent.com/pariyatti/kosa/75896fea96b3ff3f47551e272be2c45616af074e/src-cljs/kosa/videosearch.cljs | clojure | ; for debugging
[:hr]
[:h1 "Document State"]
[edn->hiccup @doc] | (ns kosa.videosearch
(:require [json-html.core :refer [edn->hiccup]]
[reagent.core :as r]
[reagent-forms.core :refer [bind-fields init-field value-of]]
[lambdaisland.fetch :as fetch]
[kuti.mediabox]))
(defn row [input]
[:div.row
[:div.col-md-5 input]])
(def resul... |
e95ed721320a1d05d1703f6f43d92a20d5edcbaa1cb048d074b5b872cc0befe7 | lspector/Clojush | fizz_buzz.clj | ;; fizz_buzz.clj
,
;;
;; Problem inspired by:
(ns clojush.problems.psb2.fizz-buzz
(:use clojush.pushgp.pushgp
[clojush pushstate interpreter random util globals]
clojush.instructions.tag
[clojure.math numeric-tower]))
; Atom generators
(def atom-generators
(make-proportional-atom-gen... | null | https://raw.githubusercontent.com/lspector/Clojush/8f8c6dcb181e675a3f514e6c9e9fc92cf76ac566/src/clojush/problems/psb2/fizz_buzz.clj | clojure | fizz_buzz.clj
Problem inspired by:
Atom generators
stacks
tags
inputs
constants
A list of data domains for the problem. Each domain is a vector containing
should be used as training and testing cases respectively. Each "set" of
inputs is either a list or a function that, when called, will create a
random e... | ,
(ns clojush.problems.psb2.fizz-buzz
(:use clojush.pushgp.pushgp
[clojush pushstate interpreter random util globals]
clojush.instructions.tag
[clojure.math numeric-tower]))
(def atom-generators
(make-proportional-atom-generators
(concat
(tagged-instruction-erc 1000)))
... |
9762bb7bdefd2f53593ecedc20b1c7b1e32ebb61aa02eefda4249a0ba9a5d504 | project-oak/hafnium-verification | Procdesc.ml |
* Copyright ( c ) 2009 - 2013 , Monoidics ltd .
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) Facebook, In... | null | https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/IR/Procdesc.ml | ocaml | =============== START of module Node ===============
* (true/false branch, if_kind, comment)
* a node
* unique id of the node
* distance to the exit node
* exception nodes in the cfg
* instructions for symbolic execution
* kind of node
* location in the source code
* predecessor nodes in the cfg
* name of th... |
* Copyright ( c ) 2009 - 2013 , Monoidics ltd .
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) Facebook, In... |
f7f6471f30ba800731ebea2a54224dcd10b94fb0aa76e93f7f3a9e7c73f8edf6 | haskellweekly/haskellweekly | Date.hs | -- | This module defines a type for a date on a calendar. The things that
Haskell Weekly produces ( newsletters and podcasts ) do n't really need more
-- precision than that. It's easier to say that something was published on
" July 6th , 2019 " without adding the unnecessarily precise " at 7:54 AM ET " .
module HW... | null | https://raw.githubusercontent.com/haskellweekly/haskellweekly/615526de6f1e590fff3bac5a7911aaaacf149b09/source/library/HW/Type/Date.hs | haskell | | This module defines a type for a date on a calendar. The things that
precision than that. It's easier to say that something was published on
| Formats a date along with a time. The time is arbitrarily chosen to be
landing on the correct date regardless of time zone.
| Formats a date along with a time in the RFC ... | Haskell Weekly produces ( newsletters and podcasts ) do n't really need more
" July 6th , 2019 " without adding the unnecessarily precise " at 7:54 AM ET " .
module HW.Type.Date
( Date,
toLongText,
toRfc2822,
toShortText,
fromGregorian,
)
where
import qualified Data.Text as Text
import qualifie... |
87a7f9adbb177b67ceca3b84dfdbbbc35869a69588b01ef4ce29bb5c5a9a1900 | inaka/beam_olympics | bo_coverage_SUITE.erl | -module(bo_coverage_SUITE).
-export([ all/0
, bo_server/1
]).
-type config() :: proplists:proplist().
-spec all() -> [atom()].
all() -> [bo_server].
-spec bo_server(config()) -> {comment, string()}.
bo_server(_Config) ->
ct:comment("Build State"),
{ok, State} = bo_server:init(noargs),
ct:comm... | null | https://raw.githubusercontent.com/inaka/beam_olympics/9b16afd54f25c0996430139e9646c3cfdfbdf86b/test/bo_coverage_SUITE.erl | erlang | -module(bo_coverage_SUITE).
-export([ all/0
, bo_server/1
]).
-type config() :: proplists:proplist().
-spec all() -> [atom()].
all() -> [bo_server].
-spec bo_server(config()) -> {comment, string()}.
bo_server(_Config) ->
ct:comment("Build State"),
{ok, State} = bo_server:init(noargs),
ct:comm... | |
96c0b4894749384a73e8a83ccee2e68c55c9f959f94b096ef0a139990f2b0089 | ewestern/geos | STRTree.hs | # LANGUAGE ScopedTypeVariables #
module Data.Geometry.Geos.Raw.STRTree where
import Prelude hiding ( foldr )
import qualified Data.Geometry.Geos.Raw.Internal
as I
import qualified Data.Geometry.Geos.Raw.Geometry
... | null | https://raw.githubusercontent.com/ewestern/geos/3568c3449efe180bd89959c9247d4667137662b6/src/Data/Geometry/Geos/Raw/STRTree.hs | haskell | |
A query-only data structure
|
A mutable data structure. Must `build` into an STRTree before querying.
|
"Builds" the STRTree by performing a trivial query on it.
| # LANGUAGE ScopedTypeVariables #
module Data.Geometry.Geos.Raw.STRTree where
import Prelude hiding ( foldr )
import qualified Data.Geometry.Geos.Raw.Internal
as I
import qualified Data.Geometry.Geos.Raw.Geometry
... |
bee596dffe55197e0a6299aee578b405e54e020400c8a33477730feb2e03d9a8 | mathematical-systems/clml | swank-ppcre.lisp | ;;; swank-ppcre.lisp --- ppcre based find / replace in asdf components
;;
Author : Kilian Sprotte < >
;; License: Public Domain
;;
;;; this file definitely needs cleaning up...
(eval-when (:compile-toplevel :load-toplevel :execute)
(asdf:oos 'asdf:load-op :cl-ppcre)
(asdf:oos 'asdf:load-op :iterate)
(defpa... | null | https://raw.githubusercontent.com/mathematical-systems/clml/918e41e67ee2a8102c55a84b4e6e85bbdde933f5/addons/slime/contrib/swank-ppcre.lisp | lisp | swank-ppcre.lisp --- ppcre based find / replace in asdf components
License: Public Domain
this file definitely needs cleaning up...
"2" seems to be correct here - I have forgotten why...
| Author : Kilian Sprotte < >
(eval-when (:compile-toplevel :load-toplevel :execute)
(asdf:oos 'asdf:load-op :cl-ppcre)
(asdf:oos 'asdf:load-op :iterate)
(defpackage :swank-ppcre
(:use :cl :iterate :asdf)
(:export #:all-systems
#:find-regex-systems-to-file
#:replace-regex-sy... |
9d089fea10ff255bef29c1745f3c5e7db1d686a7b52a99189af3ca535e065c21 | incoherentsoftware/defect-process | JSON.hs | module Level.Room.Item.Jukebox.JSON
( JukeboxJSON(..)
) where
import Data.Aeson.Types (FromJSON, genericParseJSON, parseJSON)
import GHC.Generics (Generic)
import Level.Room.Item.Jukebox.Types
import Util
data JukeboxJSON = JukeboxJSON
{ _pos :: Pos2
, _type :: JukeboxType
}
deriving Gen... | null | https://raw.githubusercontent.com/incoherentsoftware/defect-process/15f2569e7d0e481c2e28c0ca3a5e72d2c049b667/src/Level/Room/Item/Jukebox/JSON.hs | haskell | module Level.Room.Item.Jukebox.JSON
( JukeboxJSON(..)
) where
import Data.Aeson.Types (FromJSON, genericParseJSON, parseJSON)
import GHC.Generics (Generic)
import Level.Room.Item.Jukebox.Types
import Util
data JukeboxJSON = JukeboxJSON
{ _pos :: Pos2
, _type :: JukeboxType
}
deriving Gen... | |
b325eb0740b12e8f29578339369574bd92289c3904cc50f4b827b0b7a1fff6a3 | may-liu/qtalk | mod_announce.erl | %%%----------------------------------------------------------------------
%%% File : mod_announce.erl
Author : < >
%%% Purpose : Manage announce messages
Created : 11 Aug 2003 by < >
%%%
%%%
ejabberd , Copyright ( C ) 2002 - 2014 ProcessOne
%%%
%%% This program is free software; you can redistribute... | null | https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/src/mod_announce.erl | erlang | ----------------------------------------------------------------------
File : mod_announce.erl
Purpose : Manage announce messages
This program is free software; you can redistribute it and/or
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but... | Author : < >
Created : 11 Aug 2003 by < >
ejabberd , Copyright ( C ) 2002 - 2014 ProcessOne
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation ; either version 2 of the
You should have received a copy of the GNU General Public License along
... |
ebd180e6dcb0beea9284809f540c13fa96b017041556ad954f257c5e59ad3e83 | kyleburton/sandbox | app.cljs | (ns ^:figwheel-no-load text-adventure-engine.app
(:require [text-adventure-engine.core :as core]
[devtools.core :as devtools]))
(enable-console-print!)
(devtools/install!)
(core/init!)
| null | https://raw.githubusercontent.com/kyleburton/sandbox/cccbcc9a97026336691063a0a7eb59293a35c31a/examples/common-lisp/land-of-lisp/text-adventure-engine/env/dev/cljs/text_adventure_engine/app.cljs | clojure | (ns ^:figwheel-no-load text-adventure-engine.app
(:require [text-adventure-engine.core :as core]
[devtools.core :as devtools]))
(enable-console-print!)
(devtools/install!)
(core/init!)
| |
882bef68153207a07a0b21d7d7f7121d3b92c64c529cc951310feaffdeae91dd | scalaris-team/scalaris | rbr_interleaving_SUITE.erl | 2013 - 2019 Zuse Institute Berlin
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
% you may not use this file except in compliance with the License.
% You may obtain a copy of the License at
%
% -2.0
%
% Unless required by applicable law or agreed to in writing, software
dis... | null | https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/test/rbr_interleaving_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 or implied.
See the License for the specific language gov... | 2013 - 2019 Zuse Institute Berlin
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
@author < >
@doc Unit tests for which simulate specific interleaving of messages .
Each test case assumes a speci... |
0a65de87ee98fa739b195ded33ae372928f6379528f72f785b913ec441b9f0ed | ThoughtWorksInc/clj-http-s3 | project.clj | (defproject clj-http-s3 "0.3.0"
:description "Middleware to allow cli-http to authenticate with s3"
:url "-http-s3"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[clj-http "3.0.1"]
[clj-time "0.11.0"]
... | null | https://raw.githubusercontent.com/ThoughtWorksInc/clj-http-s3/d5523b9448d3910978f09c709697adc167c9496c/project.clj | clojure | (defproject clj-http-s3 "0.3.0"
:description "Middleware to allow cli-http to authenticate with s3"
:url "-http-s3"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[clj-http "3.0.1"]
[clj-time "0.11.0"]
... | |
bacdff46d0a0bcc99bdbe6d64ecfd22503acc2f1a0e82784a5e4704b18f8e60f | thosmos/riverdb | logger.clj | (ns riverdb.model.logger
(:require
[theta.log :as log]
[datomic.api :as d]
[riverdb.db :refer [remap-query limit-fn]]
[riverdb.state :refer [db cx]]))
(defn get-loggers [db query {:keys [agencyRef projectRef stationRef parameterRef] :as args}]
(log/debug "GET-LOGGERS" args)
(try
(let [q {:q... | null | https://raw.githubusercontent.com/thosmos/riverdb/08ab3b6801ed1ccdf769d0e210da0f5a4d0586d6/src/server/riverdb/model/logger.clj | clojure | if there's an `active` arg, add the conditions
(some? active)
(->
(update-in [:query :in] conj '?active)
last one, in case there are no conditions, get all stations
limit (get args :limit)
offset (get args :offset)
if there's an `active` arg, add the conditions
(some? active)
(->
(update-in [:query :in] conj '?... | (ns riverdb.model.logger
(:require
[theta.log :as log]
[datomic.api :as d]
[riverdb.db :refer [remap-query limit-fn]]
[riverdb.state :refer [db cx]]))
(defn get-loggers [db query {:keys [agencyRef projectRef stationRef parameterRef] :as args}]
(log/debug "GET-LOGGERS" args)
(try
(let [q {:q... |
b8d5c7aa5823397b23bfeb75d9c9601c886abfe6491ce01063dd2cc0df619781 | anoma/juvix | Eta.hs | module Juvix.Compiler.Core.Transformation.Eta
( module Juvix.Compiler.Core.Transformation.Eta,
module Juvix.Compiler.Core.Transformation.Base,
)
where
import Data.HashMap.Strict qualified as HashMap
import Juvix.Compiler.Core.Extra
import Juvix.Compiler.Core.Transformation.Base
etaExpandBuiltins :: Node -> No... | null | https://raw.githubusercontent.com/anoma/juvix/d9b020ec2753aa3f68f03d902db90ae35deccd23/src/Juvix/Compiler/Core/Transformation/Eta.hs | haskell | module Juvix.Compiler.Core.Transformation.Eta
( module Juvix.Compiler.Core.Transformation.Eta,
module Juvix.Compiler.Core.Transformation.Base,
)
where
import Data.HashMap.Strict qualified as HashMap
import Juvix.Compiler.Core.Extra
import Juvix.Compiler.Core.Transformation.Base
etaExpandBuiltins :: Node -> No... | |
675110a6b5bd1a3463570f73ad2432374834308e6ece41158a21b733a3d14249 | balint99/sfpl | Instances.hs | # LANGUAGE StandaloneDeriving #
-- Instances for types needed for elaboration.
module SFPL.Elab.Instances where
import SFPL.Elab.Context
deriving instance Show TopLevelCxt -- ^ @since 1.0.0
deriving instance Show Namespaces -- ^ @since 1.0.0
deriving instance Show TyEntry -- ^ @since 1.0.0
deriving instance ... | null | https://raw.githubusercontent.com/balint99/sfpl/7cf8924e6f436704f578927ce2904e45caa76725/app/SFPL/Elab/Instances.hs | haskell | Instances for types needed for elaboration.
^ @since 1.0.0
^ @since 1.0.0
^ @since 1.0.0
^ @since 1.0.0
^ @since 1.0.0
^ @since 1.0.0 | # LANGUAGE StandaloneDeriving #
module SFPL.Elab.Instances where
import SFPL.Elab.Context
|
eaebf54d1bfe6136517f443b840fba8f0c453573d7b52d4f88598def049f5988 | janegca/htdp2e | Exercise-412-poly.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname Exercise-412-poly) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructo... | null | https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/05-GenerativeRecursion/Exercise-412-poly.rkt | racket | about the language level of this file in a form that our tools can easily process.
Consider the following function definition:
Number -> Number
computes the root of a binomial
Use poly to formulate a check-satisfied test for find-root.
Answer:
Also use poly to illustrate the root-finding process. Start with ... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname Exercise-412-poly) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ())))
Exercise 412 .
(check-expect (poly 2) 0)
(c... |
aa158ca0dc330555299230372067e0bad28b39ebd1ed96e06430cf26cc550d1b | levex/wacc | Strings.hs | # LANGUAGE RecordWildCards #
module WACC.CodeGen.Strings where
import Data.Set (Set)
import qualified Data.Set as Set
import Data.Char
import Data.Bool
import Control.Monad.State
import Control.Monad.Writer
import WACC.Parser.Types
import WACC.CodeG... | null | https://raw.githubusercontent.com/levex/wacc/c77164f0c9aeb53d3d13a0370fdedc448b6009a3/src/WACC/CodeGen/Strings.hs | haskell | " ", ".word ", show . length $ str, "\n", | # LANGUAGE RecordWildCards #
module WACC.CodeGen.Strings where
import Data.Set (Set)
import qualified Data.Set as Set
import Data.Char
import Data.Bool
import Control.Monad.State
import Control.Monad.Writer
import WACC.Parser.Types
import WACC.CodeG... |
ca12506a677effc678579f78811d03375a3f9cbdde8913ad30851cc501884014 | jimweirich/sicp-study | ex2_06.scm | SICP 2.6
Exercise 2.6 . In case representing pairs as procedures was n't
;; mind-boggling enough, consider that, in a language that can
;; manipulate procedures, we can get by without numbers (at least
;; insofar as nonnegative integers are concerned) by implementing 0
and the operation of adding 1 as
( def... | null | https://raw.githubusercontent.com/jimweirich/sicp-study/bc5190e04ed6ae321107ed6149241f26efc1b8c8/scheme/chapter2/ex2_06.scm | scheme | mind-boggling enough, consider that, in a language that can
manipulate procedures, we can get by without numbers (at least
insofar as nonnegative integers are concerned) by implementing 0
(lambda (f) (lambda (x) (f ((n f) x)))))
This representation is known as Church numerals, after its
direct definition of the ... | SICP 2.6
Exercise 2.6 . In case representing pairs as procedures was n't
and the operation of adding 1 as
( define zero ( lambda ( f ) ( lambda ( x ) x ) ) )
( define ( add-1 n )
inventor , Alonzo Church , the logician who invented the calculus .
Define one and two directly ( not in terms of zero a... |
c0318b4adbb486ea80d2f4f0810f74defc05215b6520b704a550377c6223b6c3 | softwarelanguageslab/maf | R5RS_gambit_triangl-1.scm | ; Changes:
* removed : 5
* added : 3
* swaps : 2
* negated predicates : 1
* swapped branches : 1
; * calls to id fun: 0
(letrec ((*board* (list->vector
(__toplevel_cons
1
(__toplevel_cons
1
(_... | null | https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_gambit_triangl-1.scm | scheme | Changes:
* calls to id fun: 0 | * removed : 5
* added : 3
* swaps : 2
* negated predicates : 1
* swapped branches : 1
(letrec ((*board* (list->vector
(__toplevel_cons
1
(__toplevel_cons
1
(__toplevel_cons
... |
645a5e619ca6f9edcbd23ccfa1cc90f605b88bba98851010a98a82cee5af83b9 | kadena-io/chainweb-node | Pact.hs | {-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE FlexibleContexts #
# LANGUAGE GeneralizedNewtypeDeriving #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TemplateHaskell #
-- |
Module : Chainweb . . Pact
Copyright : Copyright © 201... | null | https://raw.githubusercontent.com/kadena-io/chainweb-node/62e5eeccd1ae4a5e4ca56452f7c85d07cdb483c4/src/Chainweb/Miner/Pact.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE DeriveAnyClass #
# LANGUAGE OverloadedStrings #
|
Stability: experimental
* Data
* Combinators
* Optics
* Defaults
internal modules
-------------------------------------------------------------------------- --
Miner data
addresses.
| `MinerKeys` are a thin wrapper aroun... | # LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE FlexibleContexts #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE TemplateHaskell #
Module : Chainweb . . Pact
Copyright : Copyright © 2018 - 2020 Kadena LLC .
License : MIT
Maintainer : < >
The definition of the Pact miner and the... |
cf9069f9aba7c1a37cb89dd2369480fc344da7c9da09f3b670e296bca9926982 | REPROSEC/dolev-yao-star | Spec_HMAC_Test.ml | open Prims
let (test1_key : FStar_UInt8.t Prims.list) =
FStar_List_Tot_Base.map (fun x -> x)
[FStar_UInt8.uint_to_t (Prims.of_int (0x0b));
FStar_UInt8.uint_to_t (Prims.of_int (0x0b));
FStar_UInt8.uint_to_t (Prims.of_int (0x0b));
FStar_UInt8.uint_to_t (Prims.of_int (0x0b));
FStar_UInt8.uint_to_t (P... | null | https://raw.githubusercontent.com/REPROSEC/dolev-yao-star/d97a8dd4d07f2322437f186e4db6a1f4d5ee9230/concrete/hacl-star-snapshot/ml/Spec_HMAC_Test.ml | ocaml | open Prims
let (test1_key : FStar_UInt8.t Prims.list) =
FStar_List_Tot_Base.map (fun x -> x)
[FStar_UInt8.uint_to_t (Prims.of_int (0x0b));
FStar_UInt8.uint_to_t (Prims.of_int (0x0b));
FStar_UInt8.uint_to_t (Prims.of_int (0x0b));
FStar_UInt8.uint_to_t (Prims.of_int (0x0b));
FStar_UInt8.uint_to_t (P... | |
5e9c1a91635111c80cc2bc3156cf8b8a8aefd564b7ad87c7270ef3449b536a55 | lemmaandrew/CodingBatHaskell | shiftLeft.hs | From
Return an array that is \"left shifted\ " by one -- so { 6 , 2 , 5 , 3 } returns { 2 , 5 ,
3 , 6 } . You may modify and return the given array , or return a new array .
Return an array that is \"left shifted\" by one -- so {6, 2, 5, 3} returns {2, 5,
3, 6}. You may modify and return the given array, or r... | null | https://raw.githubusercontent.com/lemmaandrew/CodingBatHaskell/d839118be02e1867504206657a0664fd79d04736/CodingBat/Array-2/shiftLeft.hs | haskell | so { 6 , 2 , 5 , 3 } returns { 2 , 5 ,
so {6, 2, 5, 3} returns {2, 5, | From
3 , 6 } . You may modify and return the given array , or return a new array .
3, 6}. You may modify and return the given array, or return a new array.
-}
import Test.Hspec ( hspec, describe, it, shouldBe )
shiftLeft :: [Int] -> [Int]
shiftLeft nums = undefined
main :: IO ()
main = hspec $ describe "Test... |
7d95e61291d42f5987793d92aa82650c491a153c1027d8f2fe863a080fb72fbc | hellopatrick/xmas | main.ml | open Containers
module O = struct
type t = Add of int | Mult of int | Square
let handle i = function Add j -> i + j | Mult j -> i * j | Square -> i * i
end
type monkey = {
name : int;
items : int list;
op : O.t;
test : int;
if_true : int;
if_false : int;
seen : int;
}
module P = struct
open Angs... | null | https://raw.githubusercontent.com/hellopatrick/xmas/ff2cbbfb2d569aabd33905e1caece50f88c8c54e/2022/day11/main.ml | ocaml | open Containers
module O = struct
type t = Add of int | Mult of int | Square
let handle i = function Add j -> i + j | Mult j -> i * j | Square -> i * i
end
type monkey = {
name : int;
items : int list;
op : O.t;
test : int;
if_true : int;
if_false : int;
seen : int;
}
module P = struct
open Angs... | |
80a316161357cd32a056f45a08d1eb64a9c374e747ebf43f9172ea148e8acd6d | helium/erlang-tc | tc_secret_key.erl | -module(tc_secret_key).
-export([
SecretKey API
random/0,
from_fr/1,
public_key/1,
reveal/1,
sign/2,
decrypt/2
]).
-type sk() :: reference().
-export_type([sk/0]).
-spec random() -> sk().
random() ->
erlang_tc:sk_random().
-spec from_fr(Fr :: tc_fr:fr()) -> sk().
from_fr(Fr) ->
erl... | null | https://raw.githubusercontent.com/helium/erlang-tc/b3ef1d5541586f5c85b6d231345a921d57be32a3/src/tc_secret_key.erl | erlang | -module(tc_secret_key).
-export([
SecretKey API
random/0,
from_fr/1,
public_key/1,
reveal/1,
sign/2,
decrypt/2
]).
-type sk() :: reference().
-export_type([sk/0]).
-spec random() -> sk().
random() ->
erlang_tc:sk_random().
-spec from_fr(Fr :: tc_fr:fr()) -> sk().
from_fr(Fr) ->
erl... | |
cfbbb587ebfbf42a04d35452e4395ddb9208a78bfeed90cd39435e4604962ac4 | footprintanalytics/footprint-web | format_rows.clj | (ns metabase.query-processor.middleware.format-rows
"Middleware that formats the results of a query.
Currently, the only thing this does is convert datetime types to ISO-8601 strings in the appropriate timezone."
(:require [clojure.tools.logging :as log]
[java-time :as t]
[metabase.query-... | null | https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/src/metabase/query_processor/middleware/format_rows.clj | clojure | (ns metabase.query-processor.middleware.format-rows
"Middleware that formats the results of a query.
Currently, the only thing this does is convert datetime types to ISO-8601 strings in the appropriate timezone."
(:require [clojure.tools.logging :as log]
[java-time :as t]
[metabase.query-... | |
a997e98e7399617c80076e212386fa6f6a2c275ab2886e386a52428d0784cad2 | bobbae/gosling-emacs | inc-rs.ml | ; Incremental regular expression searches
; Written Wed Feb 24 00:23:03 1982 by Spencer W. Thomas
; Based on Incremental search package by Doug Phillips of CMU
(progn
; This code was written at CMU, on or about Sun Jan 25 07:41:13 1981
; by Doug Philips...
; This file attempts to define a reasonable incremental searc... | null | https://raw.githubusercontent.com/bobbae/gosling-emacs/8fdda532abbffb0c952251a0b5a4857e0f27495a/lib/maclib/purdue/inc-rs.ml | ocaml | ; Incremental regular expression searches
; Written Wed Feb 24 00:23:03 1982 by Spencer W. Thomas
; Based on Incremental search package by Doug Phillips of CMU
(progn
; This code was written at CMU, on or about Sun Jan 25 07:41:13 1981
; by Doug Philips...
; This file attempts to define a reasonable incremental searc... | |
87d2f5f1a99fc18d1c7918eff05c4d6958c52851d5a011998db4653a8deee489 | RolfRolles/PandemicML | typerec.ml | type tau_reg =
| Reg1_t
| Reg8_t
| Reg16_t
| Reg32_t
type tau_refined =
| Num8_t
| Num16_t
| Num32_t
| Uint8_t
| Uint16_t
| Uint32_t
| Int8_t
| Int16_t
| Int32_t
| Pointer of big_T
| Code_t
type tau_mem =
| ???
type tau_R =
| ???
type tau_fun = tau_mem * tau_R * big_T
type tau_base =
| Register of tau_reg
| Refine... | null | https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/Incubator/typerec.ml | ocaml | type tau_reg =
| Reg1_t
| Reg8_t
| Reg16_t
| Reg32_t
type tau_refined =
| Num8_t
| Num16_t
| Num32_t
| Uint8_t
| Uint16_t
| Uint32_t
| Int8_t
| Int16_t
| Int32_t
| Pointer of big_T
| Code_t
type tau_mem =
| ???
type tau_R =
| ???
type tau_fun = tau_mem * tau_R * big_T
type tau_base =
| Register of tau_reg
| Refine... | |
8fe44c503f23aac9f3dae5df56fb34ac750a34ce41915c72f2cfbf223635ae3f | phoe-trash/gateway | sexp.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; GATEWAY
" phoe " Herda 2016
;;;; sexp.lisp
(in-package #:gateway)
SEXP
(defmethod sexp (object)
(note "[!] SEXP: no method for ~S of type ~S. Bug?~%" object (type-of object))
object)
(defmethod sexp ((object number))
ob... | null | https://raw.githubusercontent.com/phoe-trash/gateway/a8d579ccbafcaee8678caf59d365ec2eab0b1a7e/_old/framework/sexp.lisp | lisp |
GATEWAY
sexp.lisp | " phoe " Herda 2016
(in-package #:gateway)
SEXP
(defmethod sexp (object)
(note "[!] SEXP: no method for ~S of type ~S. Bug?~%" object (type-of object))
object)
(defmethod sexp ((object number))
object)
(defmethod sexp ((object string))
object)
(defmethod sexp ((object symbol))
object)
(defmethod s... |
a0caa82a1d65de8dedbbf7c00dc33d5674d912061dc3be8fc03427f8a7b56791 | Hans-Halverson/myte | int8.mli | type t
val to_int32 : t -> Int32.t
val of_int32 : Int32.t -> t
val to_int64 : t -> Int64.t
val of_int64 : Int64.t -> t
val to_int : t -> int
val of_int : int -> t
val to_float : t -> float
val to_string : t -> string
val neg : t -> t
val lognot : t -> t
val add : t -> t -> t
val sub : t -> t -> t
val mul :... | null | https://raw.githubusercontent.com/Hans-Halverson/myte/ac873f41337470c3366844d56a40eda3d03fb7e9/src/common/int8.mli | ocaml | type t
val to_int32 : t -> Int32.t
val of_int32 : Int32.t -> t
val to_int64 : t -> Int64.t
val of_int64 : Int64.t -> t
val to_int : t -> int
val of_int : int -> t
val to_float : t -> float
val to_string : t -> string
val neg : t -> t
val lognot : t -> t
val add : t -> t -> t
val sub : t -> t -> t
val mul :... | |
69fc7123bd9f5ca56ca80a1dae88eac21e89fbd3642b1d88a658918a0c3f5c28 | xtdb/xtdb | main.clj | (ns ^:no-doc xtdb.soak.main
(:require [bidi.bidi :as bidi]
[bidi.ring :as br]
[clojure.java.io :as io]
[clojure.set :as set]
[clojure.string :as string]
[clojure.tools.logging :as log]
[xtdb.api :as xt]
[xtdb.rocksdb :as rocksdb]
... | null | https://raw.githubusercontent.com/xtdb/xtdb/e2f51ed99fc2716faa8ad254c0b18166c937b134/examples/soak/src/xtdb/soak/main.clj | clojure | (ns ^:no-doc xtdb.soak.main
(:require [bidi.bidi :as bidi]
[bidi.ring :as br]
[clojure.java.io :as io]
[clojure.set :as set]
[clojure.string :as string]
[clojure.tools.logging :as log]
[xtdb.api :as xt]
[xtdb.rocksdb :as rocksdb]
... | |
6a085848a70db496fc06bce76ec3c844201191234de8913eaa0bd75f459d1615 | exoscale/clojure-kubernetes-client | v1_group_version_for_discovery.clj | (ns clojure-kubernetes-client.specs.v1-group-version-for-discovery
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
)
(:import (java.io File)))
(declare v1-group-version-for-discovery-data v1-group-version-for-discovery)
(def v1-group-version-for-discovery-data
{
(ds... | null | https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_group_version_for_discovery.clj | clojure | (ns clojure-kubernetes-client.specs.v1-group-version-for-discovery
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
)
(:import (java.io File)))
(declare v1-group-version-for-discovery-data v1-group-version-for-discovery)
(def v1-group-version-for-discovery-data
{
(ds... | |
578202df6091d80242b559a0af9cf5fc5143770654c117cec71722f66eef57db | inaimathi/house | util.lisp | (in-package :house)
(defun split-at (elem seq)
(split-sequence:split-sequence elem seq :remove-empty-subseqs t))
(defun debug! (&optional (stream *standard-output*))
(flet ((dbg (label &rest msg) (format stream ">>>> ~a~%~{~s~%----------~%~}~%" label msg)))
(defmethod process-ready :after ((sock stream-server... | null | https://raw.githubusercontent.com/inaimathi/house/ba30a381670c681fa722c22c5a03f329d4c67c2e/util.lisp | lisp | TODO error trap here | (in-package :house)
(defun split-at (elem seq)
(split-sequence:split-sequence elem seq :remove-empty-subseqs t))
(defun debug! (&optional (stream *standard-output*))
(flet ((dbg (label &rest msg) (format stream ">>>> ~a~%~{~s~%----------~%~}~%" label msg)))
(defmethod process-ready :after ((sock stream-server... |
d4c2736a0e04ade05c9d69b647958521fa17e03c666cefbff36de9f748f638cb | cljfx/cljfx | translate_transition.clj | (ns cljfx.fx.translate-transition
"Part of a public API"
(:require [cljfx.composite :as composite]
[cljfx.lifecycle :as lifecycle]
[cljfx.coerce :as coerce]
[cljfx.fx.transition :as fx.transition])
(:import [javafx.animation TranslateTransition]))
(set! *warn-on-reflection* tr... | null | https://raw.githubusercontent.com/cljfx/cljfx/543f7409290051e9444771d2cd86dadeb8cdce33/src/cljfx/fx/translate_transition.clj | clojure | (ns cljfx.fx.translate-transition
"Part of a public API"
(:require [cljfx.composite :as composite]
[cljfx.lifecycle :as lifecycle]
[cljfx.coerce :as coerce]
[cljfx.fx.transition :as fx.transition])
(:import [javafx.animation TranslateTransition]))
(set! *warn-on-reflection* tr... | |
08a3d1cc98e6359856761db8d90e55f74564c8e30a457d2760cadc9363ddf5e7 | SamirTalwar/advent-of-code | AOC_08_1.hs | {-# OPTIONS -Wall #-}
import Data.Functor (($>))
import Data.Set (Set)
import qualified Data.Set as Set
import Helpers.Parse
import Text.Parsec
type Input = [([Set Segment], [Set Segment])]
data Segment = A | B | C | D | E | F | G
deriving (Eq, Ord, Show)
main :: IO ()
main = do
input <- parseInput
let output... | null | https://raw.githubusercontent.com/SamirTalwar/advent-of-code/31c4f984767c1d91a915131087e071a1fbf839ab/2021/AOC_08_1.hs | haskell | # OPTIONS -Wall # |
import Data.Functor (($>))
import Data.Set (Set)
import qualified Data.Set as Set
import Helpers.Parse
import Text.Parsec
type Input = [([Set Segment], [Set Segment])]
data Segment = A | B | C | D | E | F | G
deriving (Eq, Ord, Show)
main :: IO ()
main = do
input <- parseInput
let outputValues = concatMap snd... |
7565eef06f55aed552b4d940b215082361074cfea17b8ac1c43a49f0019e611d | basho/machi | machi_admin_util_test.erl | %% -------------------------------------------------------------------
%%
Copyright ( c ) 2007 - 2015 Basho Technologies , Inc. All Rights Reserved .
%%
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... | null | https://raw.githubusercontent.com/basho/machi/e87bd59a9777d805b00f9e9981467eb28e28390c/test/machi_admin_util_test.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 ) 2007 - 2015 Basho Technologies , Inc. All Rights Reserved .
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
... |
e36e8d97fb340475a2d0748608a0701123e8a961a0ae19c3b9645727c96bf52a | samply/blaze | ensure_form_body.clj | (ns blaze.rest-api.middleware.ensure-form-body
(:require
[blaze.anomaly :as ba]
[blaze.async.comp :as ac]
[ring.util.request :as request]))
(defn wrap-ensure-form-body [handler]
(fn [request]
(if (request/urlencoded-form? request)
(handler request)
(ac/completed-future
(ba/inco... | null | https://raw.githubusercontent.com/samply/blaze/02919a79712e2321a2ffbba07c8b4b459dc736bd/modules/rest-api/src/blaze/rest_api/middleware/ensure_form_body.clj | clojure | (ns blaze.rest-api.middleware.ensure-form-body
(:require
[blaze.anomaly :as ba]
[blaze.async.comp :as ac]
[ring.util.request :as request]))
(defn wrap-ensure-form-body [handler]
(fn [request]
(if (request/urlencoded-form? request)
(handler request)
(ac/completed-future
(ba/inco... | |
3b4225ad44015efa5a24326d9e53d3121c5c18318ed82c754b272b0facb2666d | xh4/web-toolkit | package.lisp | (in-package :cl-user)
(defpackage :css
(:nicknames :wt.css)
(:use :cl :alexandria)
(:shadow :length :float :declaration :rem :time :position :shadow :rotate
:parse-error :function :function-name :function-value :block)
(:export
;; stylesheet
:stylesheet
;; rule
:rule :qualified-rule :sty... | null | https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/css/package.lisp | lisp | stylesheet
rule
declaration
serialize
tokenize
parse
length
angle
time
frequency
resolution
percentage
color
box
sizing
display
position
logical
overflow
text
fonts
background
border
flexbox
ui
list
content
transition
transform
animation
masking
pointer-events
filter-effects
tokens | (in-package :cl-user)
(defpackage :css
(:nicknames :wt.css)
(:use :cl :alexandria)
(:shadow :length :float :declaration :rem :time :position :shadow :rotate
:parse-error :function :function-name :function-value :block)
(:export
:stylesheet
:rule :qualified-rule :style-rule :at-rule
:rule-pr... |
89912cf4e34bb9d2c512afe4786d6022ed4cfa036bcada718da436e3cd4bd8f4 | erlang/otp | fun_SUITE.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2000 - 2023 . 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/erlang/otp/93f444c27ec2a3a9001ea9d0930d8d19432628e5/lib/compiler/test/fun_SUITE.erl | erlang |
%CopyrightBegin%
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific l... | Copyright Ericsson AB 2000 - 2023 . 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(fun_SUITE).
-export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1,
init_per_group/2,end_per_... |
76d523f1583f8f750f0e0993cbc701589a3cbbc1a1f21f47b30fda8c6099982b | clojure-interop/java-jdk | MetalMenuBarUI.clj | (ns javax.swing.plaf.metal.MetalMenuBarUI
"Metal implementation of MenuBarUI. This class is responsible
for providing the metal look and feel for JMenuBars."
(:refer-clojure :only [require comment defn ->])
(:import [javax.swing.plaf.metal MetalMenuBarUI]))
(defn ->metal-menu-bar-ui
"Constructor."
(^MetalM... | null | https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/metal/MetalMenuBarUI.clj | clojure | (ns javax.swing.plaf.metal.MetalMenuBarUI
"Metal implementation of MenuBarUI. This class is responsible
for providing the metal look and feel for JMenuBars."
(:refer-clojure :only [require comment defn ->])
(:import [javax.swing.plaf.metal MetalMenuBarUI]))
(defn ->metal-menu-bar-ui
"Constructor."
(^MetalM... | |
cc7921aa55eb9d920de294a87b6eee66d9eca6eba156c0293ed0e0e6bc7ef5cd | haskell-tools/haskell-tools | RecordSpecResultType.hs | {-# LANGUAGE GADTs #-}
module RecordSpecResultType where
{-@ GADTs @-}
data T a b where
T1 :: { f1::a, f2::b } -> T [a] [b] {-* GADTSyntax, GADTs + ExistentialQuantification *-}
T2 :: { g1::a, g2::b } -> T a b {-* GADTSyntax *-}
| null | https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/test/ExtensionOrganizerTest/GADTsTest/RecordSpecResultType.hs | haskell | # LANGUAGE GADTs #
@ GADTs @
* GADTSyntax, GADTs + ExistentialQuantification *
* GADTSyntax * |
module RecordSpecResultType where
data T a b where
|
174aeb09fedae4b425d4390f4b4114d264b672e6b7efcd649a2a6bebe72db1e1 | jgm/citeproc | Main.hs | # LANGUAGE CPP #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ScopedTypeVariables #
module Main where
import Citeproc
import Citeproc.CslJson
import Control.Monad (when, unless, foldM)
import Control.Applicative ((<|>))
import Data.Bifunctor (second)
import Data.Maybe (fromMaybe)
import Data.Text (Text)
import qualifi... | null | https://raw.githubusercontent.com/jgm/citeproc/ad845a9fa67fa04d2ab0439c4fcea23cbd9cea3c/app/Main.hs | haskell | # LANGUAGE OverloadedStrings #
drop BOM | # LANGUAGE CPP #
# LANGUAGE ScopedTypeVariables #
module Main where
import Citeproc
import Citeproc.CslJson
import Control.Monad (when, unless, foldM)
import Control.Applicative ((<|>))
import Data.Bifunctor (second)
import Data.Maybe (fromMaybe)
import Data.Text (Text)
import qualified Data.Text as T
import qualified ... |
6482790e361f3391f1b8a96d456f0a74c24a14124c3b5e44334d4f1eecf8af66 | backtracking/mlpost | architecture.ml | open Mlpost
open Box
(* Some custom values *)
let padding = Num.bp 15.
let big_padding = Num.bp 30.
let delta = Num.bp 5.
let big_delta = Num.bp 10.
let big_title s = tex ("\\textbf{\\Large{" ^ s ^ "}}")
let small_title s = tex ("\\textbf{\\emph{\\large{" ^ s ^ "}}}")
let external_color = Color.rgb8 255 165 0
... | null | https://raw.githubusercontent.com/backtracking/mlpost/bd4305289fd64d531b9f42d64dd641d72ab82fd5/bugs/mp/architecture.ml | ocaml | Some custom values
Kernel Specific Services
Kernel General Services
Extended Cil
inter-services arrow | open Mlpost
open Box
let padding = Num.bp 15.
let big_padding = Num.bp 30.
let delta = Num.bp 5.
let big_delta = Num.bp 10.
let big_title s = tex ("\\textbf{\\Large{" ^ s ^ "}}")
let small_title s = tex ("\\textbf{\\emph{\\large{" ^ s ^ "}}}")
let external_color = Color.rgb8 255 165 0
let framac_color = Color.... |
84910e8bb90e5320115c2df6573dc6642892ca323ddedc1bc264fa39315910d2 | ds-wizard/engine-backend | Detail_DELETE.hs | module Wizard.Api.Handler.DocumentTemplateDraft.Detail_DELETE where
import Servant
import Shared.Api.Handler.Common
import Shared.Model.Context.TransactionState
import Wizard.Api.Handler.Common
import Wizard.Model.Context.BaseContext
import Wizard.Service.DocumentTemplate.Draft.DocumentTemplateDraftService
type Deta... | null | https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/src/Wizard/Api/Handler/DocumentTemplateDraft/Detail_DELETE.hs | haskell | module Wizard.Api.Handler.DocumentTemplateDraft.Detail_DELETE where
import Servant
import Shared.Api.Handler.Common
import Shared.Model.Context.TransactionState
import Wizard.Api.Handler.Common
import Wizard.Model.Context.BaseContext
import Wizard.Service.DocumentTemplate.Draft.DocumentTemplateDraftService
type Deta... | |
662aa730418a6975d1888ab8c6f4d490109994615027323ee85dbdddc257161f | fulcro-legacy/fulcro-todomvc | cards.cljs | (ns fulcro-todomvc.cards
(:require [fulcro-todomvc.intro]))
| null | https://raw.githubusercontent.com/fulcro-legacy/fulcro-todomvc/928ec1f5bf790e83093bfb595667d895f319068e/src/cards/fulcro_todomvc/cards.cljs | clojure | (ns fulcro-todomvc.cards
(:require [fulcro-todomvc.intro]))
| |
fe5abb6dc45f9ee4d18a48da49054653391ca3d3bee30bf3aef3158072064b50 | efcasado/chorderl | chorderl.erl | %%%-------------------------------------------------------------------
@author < >
( C ) 2013 ,
%%% @doc
Erlang implementation of the Chord protocol
%%% @end
Created : 22 Apr 2013 by < >
%%%-------------------------------------------------------------------
-module(chorderl).
-behaviour(gen_server)... | null | https://raw.githubusercontent.com/efcasado/chorderl/0b61f9e9abf1491d46ad3cfcf9e4e386f7438e01/src/chorderl.erl | erlang | -------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------------
API
gen_server callbacks
===================================================================
API
===================================================================
@do... | @author < >
( C ) 2013 ,
Erlang implementation of the Chord protocol
Created : 22 Apr 2013 by < >
-module(chorderl).
-behaviour(gen_server).
-include("../include/chorderl.hrl").
-export([create/0, create/1, join/1, join/2, lookup/1, info/0]).
-export([start_link/1]).
-export([init/1, handle_call... |
9cb89054a022fa4d5acef2e3152a39480562b6bedaeb548f4ca882205e672766 | byorgey/haxr | Internals.hs | # LANGUAGE CPP #
-----------------------------------------------------------------------------
-- |
Module : Network . XmlRpc . Internals
Copyright : ( c ) 2003
-- License : BSD-style
--
-- Maintainer :
-- Stability : experimental
-- Portability : non-portable (requires extensions and non... | null | https://raw.githubusercontent.com/byorgey/haxr/0a643b9b8ce1265736b1bc454d7df47c57bd9f50/Network/XmlRpc/Internals.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD-style
Maintainer :
Stability : experimental
Portability : non-portable (requires extensions and non-portable libraries)
This module contains the core functionality of the XML-RPC library.
Most applications s... | # LANGUAGE CPP #
Module : Network . XmlRpc . Internals
Copyright : ( c ) 2003
use " Network . XmlRpc . Server " .
The XML - RPC specifcation is available at < > .
#if __GLASGOW_HASKELL__ >= 710
#else
# LANGUAGE OverlappingInstances #
#define OVERLAPPABLE_
#define OVERLAPPING_
#endif
module Net... |
66510f4ab3ce2b5897ec1168d6cf0d562f0ef4473e6fa04c946904fdbcbe208a | returntocorp/semgrep | parsing_hacks_lib.mli | val pr2_pp : string -> unit
val set_as_comment :
Token_cpp.cppcommentkind -> Token_views_cpp.token_extended -> unit
val msg_context : Parser_cpp.token -> Token_views_cpp.context -> unit
val change_tok : Token_views_cpp.token_extended -> Parser_cpp.token -> unit
val fresh_tok : Parser_cpp.token -> Parser_cpp.token
v... | null | https://raw.githubusercontent.com/returntocorp/semgrep/00f1e67bbb80f00e29db3381288fc00398b6868a/languages/cpp/menhir/parsing_hacks_lib.mli | ocaml | val pr2_pp : string -> unit
val set_as_comment :
Token_cpp.cppcommentkind -> Token_views_cpp.token_extended -> unit
val msg_context : Parser_cpp.token -> Token_views_cpp.context -> unit
val change_tok : Token_views_cpp.token_extended -> Parser_cpp.token -> unit
val fresh_tok : Parser_cpp.token -> Parser_cpp.token
v... | |
b0cf72697ab63ed5b946db9fb6d31d44c57fb08246d5661720b11816f82070e2 | serokell/time-warp | Main.hs | module Main where
import Control.Applicative (empty)
import Control.Monad (when)
import Control.Monad.Trans (liftIO)
import GHC.IO.Encoding (setLocaleEncoding, utf8)
import Bench.Network.Commons (MeasureEvent (..), Ping (..),... | null | https://raw.githubusercontent.com/serokell/time-warp/2783f81957a2e5b02e9d3425d760247a6c5a766b/bench/Network/Receiver/Main.hs | haskell | module Main where
import Control.Applicative (empty)
import Control.Monad (when)
import Control.Monad.Trans (liftIO)
import GHC.IO.Encoding (setLocaleEncoding, utf8)
import Bench.Network.Commons (MeasureEvent (..), Ping (..),... | |
c9488cb3baca1a8847bbd6657e9f08d26171d55481b1156ed1df88afe1b4a413 | HaxeFoundation/ocamllibs | main.ml | open TTFData
exception Abort
let gen_hxswfml_debug fontname =
let xml = "<?xml version=\"1.0\" ?>
<swf>
<FileAttributes/>
<Custom tagId=\"75\" file=\"" ^ fontname ^ ".dat\" comment=\"DefineFont3\"/>
<SymbolClass id=\"1\" class=\"TestFont\" base=\"flash.text.Font\"/>
<DefineABC file=\"Main.swf\" is... | null | https://raw.githubusercontent.com/HaxeFoundation/ocamllibs/97e498e1b3bc2b3f08cfcae874b8529e4292bc3d/ttflib/main.ml | ocaml | open TTFData
exception Abort
let gen_hxswfml_debug fontname =
let xml = "<?xml version=\"1.0\" ?>
<swf>
<FileAttributes/>
<Custom tagId=\"75\" file=\"" ^ fontname ^ ".dat\" comment=\"DefineFont3\"/>
<SymbolClass id=\"1\" class=\"TestFont\" base=\"flash.text.Font\"/>
<DefineABC file=\"Main.swf\" is... | |
067e9aeec04654fd967665aff53aaf9109b9942ed2d16a3a8a78f802e14f48ba | IvanIvanov/fp2013 | occurrences.scm | (define (count-n l n)
(apply + 0 (map (lambda (x)
(cond
( (= x n) 1)
(else 0))
)
l)
)
)
заменяме всеки елемент от l1 с броя срещания в l2
(define (occurrences l1 l2)
(map (lambda (x) (count-n l2 x) ) l1)) | null | https://raw.githubusercontent.com/IvanIvanov/fp2013/2ac1bb1102cb65e0ecbfa8d2fb3ca69953ae4ecf/lab2-and-3/homework5/occurrences.scm | scheme | (define (count-n l n)
(apply + 0 (map (lambda (x)
(cond
( (= x n) 1)
(else 0))
)
l)
)
)
заменяме всеки елемент от l1 с броя срещания в l2
(define (occurrences l1 l2)
(map (lambda (x) (count-n l2 x) ) l1)) | |
c9c0cc2f22e9db0e6331abd6a1d7b8be74ceee2089cb2c2d1dcad1c2241f5980 | ermine/kombain | es_test.ml |
let () =
let file = Sys.argv.(1) in
let input = Kmb_input.of_file file in
let result = Ecmascript_parser.parse input in
match result with
| Kmb_lib.Failed ->
Printf.printf "failed"
| Kmb_lib.Parsed (ast, rest) ->
Printf.printf "Parsed\n";
Printf.printf "Remaining input is:... | null | https://raw.githubusercontent.com/ermine/kombain/07f643c892b0b9c2ef08d67428bb9125d5251f82/ecmascript/es_test.ml | ocaml |
let () =
let file = Sys.argv.(1) in
let input = Kmb_input.of_file file in
let result = Ecmascript_parser.parse input in
match result with
| Kmb_lib.Failed ->
Printf.printf "failed"
| Kmb_lib.Parsed (ast, rest) ->
Printf.printf "Parsed\n";
Printf.printf "Remaining input is:... | |
7543e16b6699d4028385072b8e9fe1022a43d6e3554a0d45203974fe837495df | dalaing/little-languages | Eval.hs | module Test.Term.Eval where
import Test.Tasty
import Test.Tasty.QuickCheck
import Data.Maybe (isJust, mapMaybe)
import Term.Gen
import Term
import Term.Eval.Value
import Term.Eval.SmallStep
import Term.Eval.BigStep
evalTests :: TestTree
evalTests =
testGroup "eval" [
testProperty "smallUnique" propSmallUniq... | null | https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/multityped/nb-srcloc/tests/Test/Term/Eval.hs | haskell | module Test.Term.Eval where
import Test.Tasty
import Test.Tasty.QuickCheck
import Data.Maybe (isJust, mapMaybe)
import Term.Gen
import Term
import Term.Eval.Value
import Term.Eval.SmallStep
import Term.Eval.BigStep
evalTests :: TestTree
evalTests =
testGroup "eval" [
testProperty "smallUnique" propSmallUniq... | |
33d71854ef9a308d575c15d9670136bc5ab043f73db028a855c6170a680e80b7 | BrianChevalier/numpy-clj | user.clj | (ns user
(:require [portal.api :as p]))
(p/open)
(p/tap) | null | https://raw.githubusercontent.com/BrianChevalier/numpy-clj/f9d9fb82bd6e80704d44c72ad7aecf80321c409f/dev/user.clj | clojure | (ns user
(:require [portal.api :as p]))
(p/open)
(p/tap) | |
2ff21ebb26c3b487b41b59fa190b93ed112c9cdcc0ac62eabc8735d9c93f6d9d | cl-plus-ssl/cl-plus-ssl | conditions.lisp | -*- Mode : LISP ; Syntax : COMMON - LISP ; indent - tabs - mode : nil ; coding : utf-8 ; show - trailing - whitespace : t -*-
;;;
Copyright ( C ) 2001 , 2003
Copyright ( C ) 2005
" the conditions and ENSURE - SSL - FUNCALL are by . "
;;; Copyright (C) contributors as per cl+ssl git history
;;;
;;; See... | null | https://raw.githubusercontent.com/cl-plus-ssl/cl-plus-ssl/488263b9b538cdfbab2646fdb0ff006928a10b44/src/conditions.lisp | lisp | Syntax : COMMON - LISP ; indent - tabs - mode : nil ; coding : utf-8 ; show - trailing - whitespace : t -*-
Copyright (C) contributors as per cl+ssl git history
See LICENSE for details.
Condition hierarchy
If printed-queue is present, just use it
Stores list of error codes
The queue formatted using ERR_print_... | Copyright ( C ) 2001 , 2003
Copyright ( C ) 2005
" the conditions and ENSURE - SSL - FUNCALL are by . "
#+xcvb (module (:depends-on ("package")))
(in-package :cl+ssl)
(eval-when (:compile-toplevel :load-toplevel :execute)
(defconstant +ssl-error-none+ 0)
(defconstant +ssl-error-ssl+ 1)
(defcons... |
7ea3c7c09feeb7e24bc1030e0d6188e29938e01cb4f49e189feebb00ff577613 | cl-rabbit/cl-bunny | consumer.lisp | (in-package :cl-bunny.test)
(plan 1)
(subtest "Sync consumer test"
(subtest "Consume on closed channel should signal channel-closed-error"
(with-connection ()
(with-channel ()
(channel.close 200 0 0)
(is-error (consume) 'channel-closed-error))))
(subtest "Consume should signal amqp-erro... | null | https://raw.githubusercontent.com/cl-rabbit/cl-bunny/6da7fe161efc8d6bb0b8b09ac8efad03553d765c/t/integration/consumer.lisp | lisp | (in-package :cl-bunny.test)
(plan 1)
(subtest "Sync consumer test"
(subtest "Consume on closed channel should signal channel-closed-error"
(with-connection ()
(with-channel ()
(channel.close 200 0 0)
(is-error (consume) 'channel-closed-error))))
(subtest "Consume should signal amqp-erro... | |
1ee9c74096b9e20035571ef21c36ba24664ceca5c7c380806430c67e044ee298 | mbutterick/beautiful-racket | expander.rkt | #lang br
(require (for-syntax racket/string))
(provide define-verbs
define-thing
define-place
define-everywhere
show-current-place
show-inventory
have-thing?
take-thing!
drop-thing!
thing-state
set-thing-state... | null | https://raw.githubusercontent.com/mbutterick/beautiful-racket/f0e2cb5b325733b3f9cbd554cc7d2bb236af9ee9/beautiful-racket-demo/txtadv-demo/expander.rkt | racket | ============================================================
Overall module:
==============================================================
Process parse trees from the reader:
todo: consolidate the game-starters.
`start-game-at` works with s-exp language,
`start-section` works with text lang.
================... | #lang br
(require (for-syntax racket/string))
(provide define-verbs
define-thing
define-place
define-everywhere
show-current-place
show-inventory
have-thing?
take-thing!
drop-thing!
thing-state
set-thing-state... |
0a2b18533ef148d506c3a47455b081efd6c86e37e8c161e7f8e5e34f2853dc0a | processone/tsung | oauth_plaintext.erl | Copyright ( c ) 2008 - 2009 < / >
%%
%% Permission is hereby granted, free of charge, to any person
%% obtaining a copy of this software and associated documentation
files ( the " Software " ) , to deal in the Software without
%% restriction, including without limitation the rights to use,
%% copy, modify, merge... | null | https://raw.githubusercontent.com/processone/tsung/e9babe2acfb4298e3b51bd56886561b052979884/src/lib/oauth_plaintext.erl | erlang |
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
Software is furnished to do so, subject to the following
condi... | Copyright ( c ) 2008 - 2009 < / >
files ( the " Software " ) , to deal in the Software without
copies of the Software , and to permit persons to whom the
included in all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND ,
-module(oauth_plaint... |
2aeb755a704c29ad8c975c16ddcccc264d6e60fd2552742c506657848e624443 | haskell-compat/base-compat | Compat.hs | # LANGUAGE CPP , NoImplicitPrelude #
module Foreign.ForeignPtr.Unsafe.Compat (
-- ** Unsafe low-level operations
unsafeForeignPtrToPtr
) where
#if MIN_VERSION_base(4,6,0)
import Foreign.ForeignPtr.Unsafe (unsafeForeignPtrToPtr)
#else
import Foreign.ForeignPtr (unsafeForeignPtrToPtr)
#endif
| null | https://raw.githubusercontent.com/haskell-compat/base-compat/847aa35c4142f529525ffc645cd035ddb23ce8ee/base-compat/src/Foreign/ForeignPtr/Unsafe/Compat.hs | haskell | ** Unsafe low-level operations | # LANGUAGE CPP , NoImplicitPrelude #
module Foreign.ForeignPtr.Unsafe.Compat (
unsafeForeignPtrToPtr
) where
#if MIN_VERSION_base(4,6,0)
import Foreign.ForeignPtr.Unsafe (unsafeForeignPtrToPtr)
#else
import Foreign.ForeignPtr (unsafeForeignPtrToPtr)
#endif
|
eb8209cf1327b27160426b4117076b21493461a9a32e9b8ed1d0064c018a0fd0 | quchen/stgi | GarbageCollection.hs | # LANGUAGE FlexibleInstances #
-- | Remove unused heap objects.
module Stg.Machine.GarbageCollection (
garbageCollect,
-- * Algorithms
GarbageCollectionAlgorithm,
triStateTracing,
twoSpaceCopying,
) where
import qualified Data.Set as S
import Stg.Machine.GarbageCollection.Common
import Stg.Mac... | null | https://raw.githubusercontent.com/quchen/stgi/dacd45cb0247f73889713dc92a911aaa835afd19/src/Stg/Machine/GarbageCollection.hs | haskell | | Remove unused heap objects.
* Algorithms
| Apply a garbage collection algorithm to the heap of the current machine
state, and return the resulting cleaned state. | # LANGUAGE FlexibleInstances #
module Stg.Machine.GarbageCollection (
garbageCollect,
GarbageCollectionAlgorithm,
triStateTracing,
twoSpaceCopying,
) where
import qualified Data.Set as S
import Stg.Machine.GarbageCollection.Common
import Stg.Machine.GarbageCollection.TriStateTracing
import Stg.Mac... |
bf75eec34b91d48d421442d01cfa7fbe5f9f75fd78d386e444ba8be708c8d04f | guildhall/guile-sly | package.scm |
Copyright ( C ) 2014 < >
;;;
is free software : you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
;;; (at your option) any later version.
;;;
;;; Sly is distributed in the hope tha... | null | https://raw.githubusercontent.com/guildhall/guile-sly/92f5f21da76986c5b606b36afc4bb984cc63da5b/package.scm | scheme |
(at your option) any later version.
Sly is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
License for more details.
along with this program. If not, see
</>.
Comme... |
Copyright ( C ) 2014 < >
is free software : you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Public License
(use-modules (gu... |
a80fc2a4b7e3e2662ee03dd2a0570447173f971d91fe96971c9252b1fb72e536 | philnguyen/soft-contract | issue-80.rkt | #lang racket
(struct foo (x))
(define foo/c (struct/c foo (-> (recursive-contract foo/c))))
| null | https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/unsafe/issues/issue-80.rkt | racket | #lang racket
(struct foo (x))
(define foo/c (struct/c foo (-> (recursive-contract foo/c))))
| |
be0b03c46b233f0c321e4f621a74280a797f83865df3b3e6ba5238747fa64de0 | kupl/FixML | sub21.ml |
type exp =
| V of var
| P of var * exp
| C of exp * exp
and var = string
let rec find : var list * var -> bool
= fun (lst,v) ->
match lst with
| hd::tl -> if hd=v then true else find(tl,v)
| _-> false
let rec f: var list * exp -> bool
= fun (lst,e) ->
match e with
| V v -> if find(lst, v) then... | null | https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/wellformedness/wellformedness/submissions/sub21.ml | ocaml |
type exp =
| V of var
| P of var * exp
| C of exp * exp
and var = string
let rec find : var list * var -> bool
= fun (lst,v) ->
match lst with
| hd::tl -> if hd=v then true else find(tl,v)
| _-> false
let rec f: var list * exp -> bool
= fun (lst,e) ->
match e with
| V v -> if find(lst, v) then... | |
dcd719cde2a4dc187a9eb880b3284a9de4a081386b07ebf86f6d2f3aba3ad426 | appleby/Lisp-In-Small-Pieces | toplevel.scm | ;;;(((((((((((((((((((((((((((((((( L i S P ))))))))))))))))))))))))))))))))
;;; This file is derived from the files that accompany the book:
LISP Implantation Semantique Programmation ( InterEditions , France )
or Lisp In Small Pieces ( Cambridge University Press ) .
By Christian Queinnec < >
;;; The ... | null | https://raw.githubusercontent.com/appleby/Lisp-In-Small-Pieces/af4139232bb7170f32470774a92d647e83254721/common/toplevel.scm | scheme | (((((((((((((((((((((((((((((((( L i S P ))))))))))))))))))))))))))))))))
This file is derived from the files that accompany the book:
The original sources can be downloaded from the author's website at
-systeme.lip6.fr/Christian.Queinnec/WWW/LiSP.html
This file may have been altered from the original in order to... | LISP Implantation Semantique Programmation ( InterEditions , France )
or Lisp In Small Pieces ( Cambridge University Press ) .
By Christian Queinnec < >
loading might prove useful for debugging . -- appleby
(define *syntax-case-load-verbose?* #f)
(define (syntax-case-load file)
(call-with-input... |
a5ea0e3166a9ec7c0d7abcd2ef094a873346085398c5c75ac24fcc08cd6cc4a3 | rjnw/sham | basic.rkt | #lang racket
(require sham/sam/ast
sham/sam/custom
sham/sam/runtime
(for-syntax sham/sam/syntax/spec))
(provide (all-defined-out))
(define-ast basic
(expr
[zer]
[seq (a:expr b:expr c:expr)]
[rep (a:expr ...)]
[sr1 (a:expr ... b:expr)]
[sr2 (a:expr (b:expr ...))]
[dr2 (a... | null | https://raw.githubusercontent.com/rjnw/sham/6e0524b1eb01bcda83ae7a5be6339da4257c6781/sham-sam/sham/sam/test/ast/basic.rkt | racket | #lang racket
(require sham/sam/ast
sham/sam/custom
sham/sam/runtime
(for-syntax sham/sam/syntax/spec))
(provide (all-defined-out))
(define-ast basic
(expr
[zer]
[seq (a:expr b:expr c:expr)]
[rep (a:expr ...)]
[sr1 (a:expr ... b:expr)]
[sr2 (a:expr (b:expr ...))]
[dr2 (a... | |
e2dc5b781fa7ec4ac6f272de3f2415e6928e8cd8024caab49ab75dc5d1026345 | antitypical/Surface | Typing.hs | # LANGUAGE DeriveFunctor , , DeriveTraversable #
module Data.Typing where
data Typing f term
= Type Int
| Annotation term term
| Binding (f term)
| Implicit
deriving (Show, Eq, Functor, Foldable, Traversable)
| null | https://raw.githubusercontent.com/antitypical/Surface/9f36a39da8b93ff6f5bdf00af402bcc536f6e382/src/Data/Typing.hs | haskell | # LANGUAGE DeriveFunctor , , DeriveTraversable #
module Data.Typing where
data Typing f term
= Type Int
| Annotation term term
| Binding (f term)
| Implicit
deriving (Show, Eq, Functor, Foldable, Traversable)
| |
62a802d271454486b10c337c09e95c672e2ddc051371082f7f27529f2f90797c | igarnier/prbnmcn-clustering | k_means.ml | (* We require elements to have the structure of a
metric space and to support the computing of geometric means. *)
module type Element = sig
include Intf.Metric
val mean : t array -> t
end
type init = Forgy | RandomPartition | KmeansPP
K - means++
type termination = Num_iter of int | Threshold of float | M... | null | https://raw.githubusercontent.com/igarnier/prbnmcn-clustering/9cb96db1a739beeac840568058855d81c0b2f317/k_means.ml | ocaml | We require elements to have the structure of a
metric space and to support the computing of geometric means.
[compute_classes centroids elements] computes for each centroid
the set of elements which are closest to it, i.e. it computes the
voronoi partition of [elements] according to [centroids].
[comp... | module type Element = sig
include Intf.Metric
val mean : t array -> t
end
type init = Forgy | RandomPartition | KmeansPP
K - means++
type termination = Num_iter of int | Threshold of float | Min of constraints
and constraints = { max_iter : int; threshold : float }
exception KmeansError of string
module Ma... |
189959e609766aea64966086341ec3fef01eab6ff29dc07e1005c2f477248842 | bcc32/advent-of-code | b.ml | open! Core
type patt = char array array [@@deriving sexp]
type rule =
| Two of patt * patt
| Three of patt * patt
[@@deriving sexp]
let to_array pattern =
String.split pattern ~on:'/'
|> List.map ~f:String.to_list
|> List.map ~f:List.to_array
|> List.to_array
;;
let rotate_cw grid =
let grid = Array.t... | null | https://raw.githubusercontent.com/bcc32/advent-of-code/653c0f130e2fb2f599d4e76804e02af54c9bb19f/2017/21/b.ml | ocaml | open! Core
type patt = char array array [@@deriving sexp]
type rule =
| Two of patt * patt
| Three of patt * patt
[@@deriving sexp]
let to_array pattern =
String.split pattern ~on:'/'
|> List.map ~f:String.to_list
|> List.map ~f:List.to_array
|> List.to_array
;;
let rotate_cw grid =
let grid = Array.t... | |
71a73273f1cc1f0daf987cdd212c2268e4ead88cfd5550fc8cfce08f47718586 | dsheets/ocaml-unix-sys-stat | sys_stat_srcgen.ml |
* Copyright ( c ) 2015 - 2016 < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND... | null | https://raw.githubusercontent.com/dsheets/ocaml-unix-sys-stat/6e1b61bc9bc19933d4b28e4dccd146089808da95/src/sys_stat_srcgen.ml | ocaml |
* Copyright ( c ) 2015 - 2016 < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND... | |
1daf5a69406988a034d22152f43cec68109f31d0d8dd6702f5de64d1c4d93e75 | zotonic/z_stdlib | z_cssmin.erl | @author < >
2018
%% @doc Javascript minifier. Based on cssmin.c
Copyright 2018
%%
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 requir... | null | https://raw.githubusercontent.com/zotonic/z_stdlib/da120ed8128dd811b0b1a2aeaa62e89c9134204a/src/z_cssmin.erl | erlang | @doc Javascript minifier. Based on cssmin.c
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 Lic... | @author < >
2018
Copyright 2018
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
cssmin is Copyright ( c ) 2010 ( www.ryanday.org )
see
-module(z_cssmin).
-export([
minify/1
]).
-spec mi... |
0df8a4619ac457a705f4dcdfde3dcd4369322e0c8462c19e4def807e7afa6c28 | glguy/advent | 16.hs | {-# LANGUAGE ImportQualifiedPost, QuasiQuotes #-}
|
Module : Main
Description : Day 16 solution
Copyright : ( c ) , 2021
License : ISC
Maintainer :
< >
Module : Main
Description : Day 16 solution
Copyright : (c) Eric Mertens, 2021
License : ISC
Maintainer :
<>
-}
modul... | null | https://raw.githubusercontent.com/glguy/advent/1d4a989e4aafccbf45f979c4164a089316d244fe/solutions/src/2016/16.hs | haskell | # LANGUAGE ImportQualifiedPost, QuasiQuotes #
| >>> :main | |
Module : Main
Description : Day 16 solution
Copyright : ( c ) , 2021
License : ISC
Maintainer :
< >
Module : Main
Description : Day 16 solution
Copyright : (c) Eric Mertens, 2021
License : ISC
Maintainer :
<>
-}
module Main where
import Advent (format)
import Data.V... |
61e3c21d72190c75629753369ca4d7a17ba38a404e491495b0874e0af70120c4 | ocaml-multicore/effects-examples | sched.mli | type 'a cont
(** Represents a blocked computation that waits for a value of type 'a. *)
type _ Effect.t += Suspend : ('a cont -> unit) -> 'a Effect.t
(** [Perform @@ Suspend f] applies [f] to the current continuation, and suspends the
execution of the current thread, and switches to the next thread in the
sche... | null | https://raw.githubusercontent.com/ocaml-multicore/effects-examples/4f07e1774b726eec0f6769da0a16b402582d37b5/mvar/sched.mli | ocaml | * Represents a blocked computation that waits for a value of type 'a.
* [Perform @@ Suspend f] applies [f] to the current continuation, and suspends the
execution of the current thread, and switches to the next thread in the
scheduler's queue.
* [perform @@ Resume (k,v)] prepares the suspended continuation [k... | type 'a cont
type _ Effect.t += Suspend : ('a cont -> unit) -> 'a Effect.t
type _ Effect.t += Resume : ('a cont * 'a) -> unit Effect.t
type _ Effect.t += Fork : (unit -> unit) -> unit Effect.t
type _ Effect.t += Yield : unit Effect.t
val run : (unit -> unit) -> unit
|
83596cf89220e0fe0016703dab27a44a478a15356bd13393d13f9ea28aa3df3a | input-output-hk/plutus-apps | MultiSig.hs | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeApplications #
module Spec.MultiSig(tests, failingTrace, succeedingTrace) where
import Control.Monad (void)
import Ledger.CardanoWallet qualified as CW
import Plutus.Contr... | null | https://raw.githubusercontent.com/input-output-hk/plutus-apps/e8688b8f86a92b285e7d93eb418ccc314ad41bf9/plutus-use-cases/test/Spec/MultiSig.hs | haskell | # LANGUAGE OverloadedStrings #
| Lock some funds, then attempt to unlock them with a transaction
that doesn't have the required number of signatures
| Lock some funds, then unlock them with a transaction that has the | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeApplications #
module Spec.MultiSig(tests, failingTrace, succeedingTrace) where
import Control.Monad (void)
import Ledger.CardanoWallet qualified as CW
import Plutus.Contract (Contract, ContractError)
impor... |
8c08b9427ef1ea39a075c5fed892b437cd28227dc77037092a9867d4ab883387 | reborg/clojure-essential-reference | 7.clj | (ns bookgenclass2
< 1 >
< 2 >
(println "More greetings from Java!")) | null | https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/Types%2CClasses%2CHierarchiesandPolymorphism/gen-classandgen-interface/7.clj | clojure | (ns bookgenclass2
< 1 >
< 2 >
(println "More greetings from Java!")) | |
a352beeb5d78bf4938b319e309af045ca487dbdfe4390d33264bed493264b6ad | inconvergent/cl-veq | init.lisp |
(in-package :veq)
; from: -cookbook.sourceforge.net/os.html
(defun vgetenv (name &optional default)
#+CMU (let ((x (assoc name ext:*environment-list* :test #'string=)))
(if x (cdr x) default))
#-CMU (or #+Allegro (sys:getenv name)
#+CLISP (ext:getenv name)
#+ECL (si:getenv name)
... | null | https://raw.githubusercontent.com/inconvergent/cl-veq/7566e67782a4890c2b198a41eb9c1c21d8dd845e/src/init.lisp | lisp | from: -cookbook.sourceforge.net/os.html |
(in-package :veq)
(defun vgetenv (name &optional default)
#+CMU (let ((x (assoc name ext:*environment-list* :test #'string=)))
(if x (cdr x) default))
#-CMU (or #+Allegro (sys:getenv name)
#+CLISP (ext:getenv name)
#+ECL (si:getenv name)
#+SBCL (sb-unix::posix-getenv ... |
6c04404054f91f13ab9e29ea84269ad7f3012db89fef32810d2a30fe73dd49ea | danr/hipspec | Filter.hs | module Filter where
import Prelude (Bool(..))
data Nat = Succ Nat | Zero
data List a = Nil | Cons a (List a)
filter0 p Nil = Nil
filter0 p (x `Cons` xs) = case p x of
True -> x `Cons` filter0 p xs
False -> filter0 p xs
filter1 p Nil = Nil
filter1 p (x `Cons` xs) = case p x... | null | https://raw.githubusercontent.com/danr/hipspec/a114db84abd5fee8ce0b026abc5380da11147aa9/tfp1/tests/Filter.hs | haskell | module Filter where
import Prelude (Bool(..))
data Nat = Succ Nat | Zero
data List a = Nil | Cons a (List a)
filter0 p Nil = Nil
filter0 p (x `Cons` xs) = case p x of
True -> x `Cons` filter0 p xs
False -> filter0 p xs
filter1 p Nil = Nil
filter1 p (x `Cons` xs) = case p x... | |
369bcefa6da339bae1023b65ac9138df1beb27c73deb21866119da1d186a39c4 | jtod/Hydra | Driver.hs | Driver : simulation drivers for Hydra circuits
This file is part of Hydra . See README ,
Copyright ( c ) 2022
# LANGUAGE NamedFieldPuns #
# LANGUAGE RecordWildCards #
|
Module : HDL.Hydra . Circuits . SimDriver
Description : Tools for writing simulation drivers
Copyright : ( ... | null | https://raw.githubusercontent.com/jtod/Hydra/f7479d546fb3400f88ff1848b5c8f0b52a625098/src/HDL/Hydra/Core/Driver.hs | haskell | This module supplies a wide variety of data formatting services,
including conversions between number systems, converting input
strings into internal signal representations, and converting
signals to readable strings for output.
* Configuration
* New from step driver
logFileName,
putLogStr, putLogSt... | Driver : simulation drivers for Hydra circuits
This file is part of Hydra . See README ,
Copyright ( c ) 2022
# LANGUAGE NamedFieldPuns #
# LANGUAGE RecordWildCards #
|
Module : HDL.Hydra . Circuits . SimDriver
Description : Tools for writing simulation drivers
Copyright : ( ... |
e54a1038bade8010ab417632893a528a694ee7dbeb1b2fdc290feb6611322672 | anuragsoni/poll | backend.ml | type t = ..
type t += Kqueue | Epoll | Wepoll
| null | https://raw.githubusercontent.com/anuragsoni/poll/ca983173a3e95f897cd02998810e6b4718e3c81a/src/backend.ml | ocaml | type t = ..
type t += Kqueue | Epoll | Wepoll
| |
1db67979bdb8848d6701e8b0dc346106e914be9fa13da460c4ebb0905d106a1c | finnishtransportagency/harja | yllapito.cljs | (ns harja.tiedot.urakka.yllapito
"Ylläpidon urakoiden yhteiset tiedot"
(:require
[reagent.core :refer [atom] :as r]
[harja.loki :refer [log tarkkaile!]]
[cljs.core.async :refer [<!]])
(:require-macros [reagent.ratom :refer [reaction]]
[cljs.core.async.macros :refer [go]]
... | null | https://raw.githubusercontent.com/finnishtransportagency/harja/488b1e096f0611e175221d74ba4f2ffed6bea8f1/src/cljs/harja/tiedot/urakka/yllapito.cljs | clojure | (ns harja.tiedot.urakka.yllapito
"Ylläpidon urakoiden yhteiset tiedot"
(:require
[reagent.core :refer [atom] :as r]
[harja.loki :refer [log tarkkaile!]]
[cljs.core.async :refer [<!]])
(:require-macros [reagent.ratom :refer [reaction]]
[cljs.core.async.macros :refer [go]]
... | |
cbe7680d685bbc56750e81f84368f745be6d3cbc6c8a1da9924d619cce92c765 | emillon/switch-builder | closure.mli | (** Reduce to a self-contained set.
That is, remove all dependencies that are not contained in the set itself.
*)
val apply : Repository.t -> OpamPackage.Set.t -> OpamPackage.Set.t
| null | https://raw.githubusercontent.com/emillon/switch-builder/bfe644f15b9a7b717532750dae7428783401d030/closure.mli | ocaml | * Reduce to a self-contained set.
That is, remove all dependencies that are not contained in the set itself.
|
val apply : Repository.t -> OpamPackage.Set.t -> OpamPackage.Set.t
|
f01130df2c854b4dba8ddcda1fb83d545ab8fd7ed193bee0634cdc8b24b3bb7e | wargrey/schema | empty.rkt | #lang typed/racket
(require "csv.rkt")
(require racket/logging)
(define empty.csv : Path-String (#%csv))
(displayln '===================================================================)
(displayln 'read-port)
(parameterize ([port-count-lines-enabled #true])
(list ((inst with-logging-to-port (U (Listof (Listof CSV... | null | https://raw.githubusercontent.com/wargrey/schema/4824a1fecea1dc557941b08f05a457da9f628f78/tamer/csv/reader/empty.rkt | racket | #lang typed/racket
(require "csv.rkt")
(require racket/logging)
(define empty.csv : Path-String (#%csv))
(displayln '===================================================================)
(displayln 'read-port)
(parameterize ([port-count-lines-enabled #true])
(list ((inst with-logging-to-port (U (Listof (Listof CSV... | |
9023b4829cfb0716a09286c9349ce6eefdb22d763e8e6875f3ae79708f3e204a | MinaProtocol/mina | empty_update.ml | open Transaction_snark_tests.Util
open Core_kernel
open Mina_base
open Signature_lib
module Impl = Pickles.Impls.Step
module Inner_curve = Snark_params.Tick.Inner_curve
module Nat = Pickles_types.Nat
module Local_state = Mina_state.Local_state
module Zkapp_command_segment = Transaction_snark.Zkapp_command_segment
let ... | null | https://raw.githubusercontent.com/MinaProtocol/mina/8904a8e8a9b2a557126cb6de2100fd488474f6aa/src/lib/transaction_snark/test/zkapps_examples/empty_update/empty_update.ml | ocaml | TODO: This is a pain.
TODO: This is a pain.
TODO: This is a pain.
TODO: This is a pain.
TODO: This is a pain.
TODO: Make this better. | open Transaction_snark_tests.Util
open Core_kernel
open Mina_base
open Signature_lib
module Impl = Pickles.Impls.Step
module Inner_curve = Snark_params.Tick.Inner_curve
module Nat = Pickles_types.Nat
module Local_state = Mina_state.Local_state
module Zkapp_command_segment = Transaction_snark.Zkapp_command_segment
let ... |
fb2769cc33c3425137ef169dea248c6dbdef150e8fd1516cf11431e3f6ea2e3d | TorXakis/TorXakis | LinearizeParallel.hs |
TorXakis - Model Based Testing
Copyright ( c ) 2015 - 2017 TNO and University of Twente
See LICENSE at root directory of this repository .
TorXakis - Model Based Testing
Copyright (c) 2015-2017 TNO and University of Twente
See LICENSE at root directory of this repository.
-}
-----------------------------------... | null | https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/sys/lpeq/src/texprs/LinearizeParallel.hs | haskell | ---------------------------------------------------------------------------
|
Module : LinearizeParallel
License : BSD3
Maintainer :
Stability : experimental
---------------------------------------------------------------------------
Function that should be used to recursively instantiate the pa... |
TorXakis - Model Based Testing
Copyright ( c ) 2015 - 2017 TNO and University of Twente
See LICENSE at root directory of this repository .
TorXakis - Model Based Testing
Copyright (c) 2015-2017 TNO and University of Twente
See LICENSE at root directory of this repository.
-}
Copyright : TNO and Universi... |
fd616aef368d7dbfc0f5d5712535519afb926887b6adde9d1a17c530fa7388f6 | Helium4Haskell/helium | FBHasTooMany1.hs | module FBHasTooMany1 where
f :: Int
f x = x + x
| null | https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/typeerrors/Heuristics/FBHasTooMany1.hs | haskell | module FBHasTooMany1 where
f :: Int
f x = x + x
| |
5a54d451c42a5a3badba75667ce272fc2eae29e8cb7299e994a070fb5c34d693 | OCamlPro/drom | commandDep.ml | (**************************************************************************)
(* *)
Copyright 2020 OCamlPro & Origin Labs
(* *)
(* All rights ... | null | https://raw.githubusercontent.com/OCamlPro/drom/dbbb5f9225df65c589e6f307ac28be4c408b9cae/src/drom_lib/commandDep.ml | ocaml | ************************************************************************
All rights reserved. This file is distributed under the terms of the
exception on linking descr... | Copyright 2020 OCamlPro & Origin Labs
GNU Lesser General Public License version 2.1 , with the special
open Ezcmd.V2
open EZCMD.TYPES
open Update
open Types
let cmd_name = "dep"
let print_dep (name, d) =
Printf.printf "Dependency: %S\n%!" name;
Printf.printf " versi... |
e3660a9dea5a4f6889d6f8a84c3206f58a8252a6383984ea1a0ed04fedaf1d84 | gfredericks/bitalgs | sha1.clj | (ns bitalgs.svg.sha1
(:require [bitalgs.data :as data]
[bitalgs.sha1 :as sha1]
[bitalgs.svg :as bsvg]
[bitalgs.svg.layout :as layout]
[bitalgs.util :refer [defmethods]]
[clojure.core.logic :as l]
[clojure.core.logic.fd :as fd]
[com.gf... | null | https://raw.githubusercontent.com/gfredericks/bitalgs/74ba26d76ea293f3487f7dcfef398b1a9c8f1912/src/bitalgs/svg/sha1.clj | clojure |
f-stuff
Lucas recommended making the colors brighter. | (ns bitalgs.svg.sha1
(:require [bitalgs.data :as data]
[bitalgs.sha1 :as sha1]
[bitalgs.svg :as bsvg]
[bitalgs.svg.layout :as layout]
[bitalgs.util :refer [defmethods]]
[clojure.core.logic :as l]
[clojure.core.logic.fd :as fd]
[com.gf... |
2b5ef0cb61896669caf09ee713f532e17f10a964672a97ebea1592407218a93a | ocurrent/clarke | models.ml | open Eio
let const ~clock f =
let module M = struct
type t = { clock : Time.clock }
let supported = true
module Info = Info
let collect { clock } =
Info.v (Option.get @@ Ptime.of_float_s (Time.now clock)) f
end in
S.Meter ((module M : S.Meter with type t = M.t), M.{ clock })
let time ~c... | null | https://raw.githubusercontent.com/ocurrent/clarke/521ec17a6c5d9333b7495561a77505adf7e03a0a/src/lib/models.ml | ocaml | open Eio
let const ~clock f =
let module M = struct
type t = { clock : Time.clock }
let supported = true
module Info = Info
let collect { clock } =
Info.v (Option.get @@ Ptime.of_float_s (Time.now clock)) f
end in
S.Meter ((module M : S.Meter with type t = M.t), M.{ clock })
let time ~c... | |
f99f4968c041f0a0b47f12861f6adbb2a5e613a6d1ad7d120f392524a3d84095 | whamtet/dogfort | file.cljs | (ns dogfort.middleware.file
(:require-macros [cljs.node-macros :as n])
(:use-macros [redlobster.macros :only [promise waitp let-realised]])
(:require [redlobster.io :as io]
[redlobster.promise :as p]
[dogfort.util.codec :as codec]
[dogfort.util.mime-type :as mime]
[... | null | https://raw.githubusercontent.com/whamtet/dogfort/75c2908355cc18bf350a5b761d2906e013ee9f94/src/dogfort/middleware/file.cljs | clojure | (ns dogfort.middleware.file
(:require-macros [cljs.node-macros :as n])
(:use-macros [redlobster.macros :only [promise waitp let-realised]])
(:require [redlobster.io :as io]
[redlobster.promise :as p]
[dogfort.util.codec :as codec]
[dogfort.util.mime-type :as mime]
[... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.