_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
0983edd35977b73f9741bcba5d65f97624be1eb67ff3910059ef24a70350e2fe
sdiehl/elliptic-curve
BrainpoolP256T1.hs
module Data.Curve.Weierstrass.BrainpoolP256T1 ( module Data.Curve.Weierstrass , Point(..) * BrainpoolP256T1 curve , module Data.Curve.Weierstrass.BrainpoolP256T1 ) where import Protolude import Data.Field.Galois import GHC.Natural (Natural) import Data.Curve.Weierstrass -----------------------------------...
null
https://raw.githubusercontent.com/sdiehl/elliptic-curve/445e196a550e36e0f25bd4d9d6a38676b4cf2be8/src/Data/Curve/Weierstrass/BrainpoolP256T1.hs
haskell
----------------------------------------------------------------------------- Types ----------------------------------------------------------------------------- # INLINABLE a_ # # INLINABLE h_ # | Projective BrainpoolP256T1 point. ----------------------------------------------------------------------------- Paramet...
module Data.Curve.Weierstrass.BrainpoolP256T1 ( module Data.Curve.Weierstrass , Point(..) * BrainpoolP256T1 curve , module Data.Curve.Weierstrass.BrainpoolP256T1 ) where import Protolude import Data.Field.Galois import GHC.Natural (Natural) import Data.Curve.Weierstrass | BrainpoolP256T1 curve . data B...
f1bf48920142da853500aa1d9ee2cb0a1172cc0d2410379c874d91cb0a0b41df
mhuebert/chia
build.cljs
;; EXPERIMENTAL (ns chia.material-ui.build (:require ["fs" :as fs] ["typescript" :as ts] ["ts-morph" :as tsm] [clojure.string :as str] [applied-science.js-interop :as j])) (defn walk-dir [path] (let [{files false dirs true} (->> (fs/readdirSync path) ...
null
https://raw.githubusercontent.com/mhuebert/chia/74ee3ee9f86efbdf81d8829ab4f0a44d619c73d3/material-ui/build/chia/material_ui/build.cljs
clojure
EXPERIMENTAL
(ns chia.material-ui.build (:require ["fs" :as fs] ["typescript" :as ts] ["ts-morph" :as tsm] [clojure.string :as str] [applied-science.js-interop :as j])) (defn walk-dir [path] (let [{files false dirs true} (->> (fs/readdirSync path) ...
8ff2f3c88dddf848f9c098287058b7ac3b94865f7497fb9e66956259d3f1c011
Javran/advent-of-code
Day1.hs
module Javran.AdventOfCode.Y2021.Day1 ( ) where import Data.List.Split import Javran.AdventOfCode.Prelude data Day1 deriving (Generic) countIncr :: [Int] -> Int countIncr xs = countLength id $ zipWith (<) xs (tail xs) instance Solution Day1 where solutionRun _ SolutionContext {getInputS, answerShow} = do xs...
null
https://raw.githubusercontent.com/Javran/advent-of-code/676ef13c2f9d341cf7de0f383335a1cf577bd73d/src/Javran/AdventOfCode/Y2021/Day1.hs
haskell
module Javran.AdventOfCode.Y2021.Day1 ( ) where import Data.List.Split import Javran.AdventOfCode.Prelude data Day1 deriving (Generic) countIncr :: [Int] -> Int countIncr xs = countLength id $ zipWith (<) xs (tail xs) instance Solution Day1 where solutionRun _ SolutionContext {getInputS, answerShow} = do xs...
6b725189aea0d7f80bd198e9f0466dc9014340806a4c68fc1c53d797e54ac523
hellonico/origami-fun
drawsegments.clj
(ns opencv4.drawsegments (:require [opencv4.utils :as u] [opencv4.colors.rgb :as color] [opencv4.core :refer :all])) ; ; find liines in a picture using draw segment ; ; (def parking2 (imread "resources/images/lines/parking.png" CV_8UC1)) (def det (create-line-segment-detector)) (def...
null
https://raw.githubusercontent.com/hellonico/origami-fun/80117788530d942eaa9a80e2995b37409fa24889/test/opencv4/drawsegments.clj
clojure
find liines in a picture using draw segment
(ns opencv4.drawsegments (:require [opencv4.utils :as u] [opencv4.colors.rgb :as color] [opencv4.core :refer :all])) (def parking2 (imread "resources/images/lines/parking.png" CV_8UC1)) (def det (create-line-segment-detector)) (def lines (new-mat)) (def result (clone parking2)) (.detec...
e58fad31cf1ffb989dbb9de421f298694359234c1231171370ffb093b198ab91
alexandergunnarson/quantum
refs.cljc
(ns quantum.untyped.core.refs (:require [quantum.untyped.core.core :as ucore]) #?(:clj (:import [clojure.lang IDeref IAtom]))) (ucore/log-this-ns) (defn atom? [x] (#?(:clj instance? :cljs satisfies?) IAtom x)) (defn derefable? [x] (#?(:clj instance? :cljs satisfies?) IDeref x)) (defn ?deref [x] (if (de...
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src-untyped/quantum/untyped/core/refs.cljc
clojure
(ns quantum.untyped.core.refs (:require [quantum.untyped.core.core :as ucore]) #?(:clj (:import [clojure.lang IDeref IAtom]))) (ucore/log-this-ns) (defn atom? [x] (#?(:clj instance? :cljs satisfies?) IAtom x)) (defn derefable? [x] (#?(:clj instance? :cljs satisfies?) IDeref x)) (defn ?deref [x] (if (de...
2567f7180636d40f5ead7efefc6d497c9676aafbd2e60da99407022c65887d44
zkincaid/duet
cache.ml
type cache_params = { max_size : int; hard_limit : int; keys_hit_rate : float; min_hits : float; aging_factor : float; } let default_params = { max_size = 1000; hard_limit = 0; keys_hit_rate = 0.9; min_hits = 0.9; aging_factor = 0.95; } module type S = sig type ('a, 'b) t val creat...
null
https://raw.githubusercontent.com/zkincaid/duet/eb3dbfe6c51d5e1a11cb39ab8f70584aaaa309f9/srk/src/cache.ml
ocaml
head is most recently updated, tail is least recently updated number of keys that surpass min_hit threshold head is most recently updated, tail is least recently updated number of keys that surpass min_hit threshold
type cache_params = { max_size : int; hard_limit : int; keys_hit_rate : float; min_hits : float; aging_factor : float; } let default_params = { max_size = 1000; hard_limit = 0; keys_hit_rate = 0.9; min_hits = 0.9; aging_factor = 0.95; } module type S = sig type ('a, 'b) t val creat...
d16b1422e2e50f75fdd5df754e8e85a51331e340e80d7b7f2ea6bedc18588d8f
RolfRolles/PandemicML
CacheVerifiedResults.ml
open FrameworkUtil open DataStructures open Encodable (* No encoding required *) let cache_write_binops gc enc s_clobbered size s_vbvi = VarBinopVarInt32Set.iter (fun (vr,b,vm,d32) -> GadgetCache.accept_write_binop gc size vr b vm d32 enc s_clobbered) s_vbvi let cache_write_binops gc enc s_clobbered s_vbvi...
null
https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/Projects/Nxcroticism/CacheVerifiedResults.ml
ocaml
No encoding required No encoding required No encoding required No encoding required No encoding required No encoding required Is this correct? Wrong ordering? Some syntax sugar to make the checks below shorter. Determine the presence of memory read / write operations Compute some statistics about the...
open FrameworkUtil open DataStructures open Encodable let cache_write_binops gc enc s_clobbered size s_vbvi = VarBinopVarInt32Set.iter (fun (vr,b,vm,d32) -> GadgetCache.accept_write_binop gc size vr b vm d32 enc s_clobbered) s_vbvi let cache_write_binops gc enc s_clobbered s_vbvi_t = triplicate_iter (cac...
5130bd85b9776ec85988b20a83741b888e2325da1a835eb16152adf73ba0138a
vouch-opensource/krell
deps.clj
(ns krell.deps (:require [cljs.analyzer.api :as ana-api] [cljs.compiler.api :as comp-api] [cljs.build.api :as build-api] [cljs.closure :as closure] [cljs.module-graph :as mg] [cljs.repl :as repl] [clojure.java.io :as io] [krell.util :...
null
https://raw.githubusercontent.com/vouch-opensource/krell/61546493f3891d5603f3d2fbd03662230e9e6ee6/src/krell/deps.clj
clojure
(ns krell.deps (:require [cljs.analyzer.api :as ana-api] [cljs.compiler.api :as comp-api] [cljs.build.api :as build-api] [cljs.closure :as closure] [cljs.module-graph :as mg] [cljs.repl :as repl] [clojure.java.io :as io] [krell.util :...
984773fa3a8f69232702d28b37f1f499357403bddc15362d98c7d81448bfd216
kowey/GenI
geni.hs
-- GenI surface realiser Copyright ( C ) 2005 and -- -- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . -- -- T...
null
https://raw.githubusercontent.com/kowey/GenI/570a6ef70e61a7cb01fe0fc29732cd9c1c8f2d7a/geni/geni.hs
haskell
GenI surface realiser This program is free software; you can redistribute it and/or This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more det...
Copyright ( C ) 2005 and modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple ...
d86ae0117a0defdc921433c8aba2a57e8484281e918f6c116beddebc85f51018
amnh/ocamion
multiOptimize.mli
* { 1 Numerical Optimization Module } This module unifies the signatures of the multi - dimensional optimization routines by hiding and exploiting defaults to the functions in question . This is used when one would like to test the efficacy of the functions easily . Accessing the opti...
null
https://raw.githubusercontent.com/amnh/ocamion/699c2471b7fdac12f061cf24b588f9eef5bf5cb8/lib/multiOptimize.mli
ocaml
* {2 Types} * Define a module containing a single function to optimize a function. {2 Implementations} * Broyden-Fletcher-Goldfarb-Shanno method * Brents method with multiple dimensions * The Simplex method * A list of all the methods above.
* { 1 Numerical Optimization Module } This module unifies the signatures of the multi - dimensional optimization routines by hiding and exploiting defaults to the functions in question . This is used when one would like to test the efficacy of the functions easily . Accessing the opti...
c3f257ba2841182d46148bd212e19bdc102e7d55f1e3d971cfe6c351a83762f5
barrucadu/dejafu
SingleThreaded.hs
# LANGUAGE FlexibleContexts # module Integration.SingleThreaded where import Control.Exception (ArithException(..), ArrayException(..), MaskingState(..)) import Test.DejaFu (Condition(..),...
null
https://raw.githubusercontent.com/barrucadu/dejafu/f805783398e2be60ebabb56fce9f23506b9d1879/dejafu-tests/lib/Integration/SingleThreaded.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ avoid an ambiguous type avoid an ambiguous type ---------------------------------...
# LANGUAGE FlexibleContexts # module Integration.SingleThreaded where import Control.Exception (ArithException(..), ArrayException(..), MaskingState(..)) import Test.DejaFu (Condition(..),...
e5840aa74a8a9ba1bf7838ca6b593ef3f5c8fb1fb65ab7ed3b8408aad23e47de
tlehman/sicp-exercises
ex-1.23.scm
Exercise 1.23 : The smallest - divisor procedure shown at the start of this section does lots of needless testing : After it checks to see if the number is divisble by 2 , there is no point in checking to see if it is divisible by any larger even numbers . This suggests that the values used for test - divisor ( d ) s...
null
https://raw.githubusercontent.com/tlehman/sicp-exercises/57151ec07d09a98318e91c83b6eacaa49361d156/ex-1.23.scm
scheme
Since this modification halves the number of test steps, you should expect it to run about twice as fast. (search-for-primes 100000000000000001 999999999999999999) The data: Is this expectation confirmed? No.
Exercise 1.23 : The smallest - divisor procedure shown at the start of this section does lots of needless testing : After it checks to see if the number is divisble by 2 , there is no point in checking to see if it is divisible by any larger even numbers . This suggests that the values used for test - divisor ( d ) s...
f47e3b537d9d5baea4480a1be6eff12bc32585a5ac4d5af44b5cd812334fbffc
mhjort/clj-gatling
example.clj
(ns clj-gatling.example) (def test-simu {:name "Test simulation" :scenarios [{:name "Test scenario" :steps [{:name "Step1" :request (fn [_] (Thread/sleep 10) true)} {:name "S...
null
https://raw.githubusercontent.com/mhjort/clj-gatling/0130622bd18cee9abad5085eaca0e868d3a5abd7/test/clj_gatling/example.clj
clojure
(ns clj-gatling.example) (def test-simu {:name "Test simulation" :scenarios [{:name "Test scenario" :steps [{:name "Step1" :request (fn [_] (Thread/sleep 10) true)} {:name "S...
065b28f58c35951390a3936ba3c4b7593af97f80fa29c70b04e4ea9a855f515a
haskell-opengl/GLUT
Checker.hs
Checker.hs ( adapted from checker.c which is ( c ) Silicon Graphics , Inc ) Copyright ( c ) 2002 - 2018 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program texture maps a checkerboard image onto two rectangles ....
null
https://raw.githubusercontent.com/haskell-opengl/GLUT/36207fa51e4c1ea1e5512aeaa373198a4a56cad0/examples/RedBook4/Checker.hs
haskell
Create checkerboard image resolve overloading, not needed in "real" programs
Checker.hs ( adapted from checker.c which is ( c ) Silicon Graphics , Inc ) Copyright ( c ) 2002 - 2018 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program texture maps a checkerboard image onto two rectangles ....
1514cd14eb75c67fa81bff695a7a228a7a12df7833c19d116d930c54694baed7
MyDataFlow/ttalk-server
proper_gen.erl
Copyright 2010 - 2015 < > , < > and < > %%% This file is part of PropEr . %%% %%% PropEr 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 o...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/proper/src/proper_gen.erl
erlang
PropEr is free software: you can redistribute it and/or modify (at your option) any later version. PropEr 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 fo...
Copyright 2010 - 2015 < > , < > and < > This file is part of PropEr . 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 Pub...
03f920d7670e844a9784d8f08e37cec55debf56af7deebd0df58a22b8216665a
mikera/core.matrix
test_load.clj
(ns test.misc.test-load (:require [clojure.core.matrix.macros :refer [error]])) (defn foo [] (doall (map deref (for [i (range 10)] (future (require 'test.misc.loading-test) (if (not (deref (resolve 'test.misc.loading-test/loaded))) (error "...
null
https://raw.githubusercontent.com/mikera/core.matrix/0a35f6e3d6d2335cb56f6f3e5744bfa1dd0390aa/src/test/clojure/test/misc/test_load.clj
clojure
(ns test.misc.test-load (:require [clojure.core.matrix.macros :refer [error]])) (defn foo [] (doall (map deref (for [i (range 10)] (future (require 'test.misc.loading-test) (if (not (deref (resolve 'test.misc.loading-test/loaded))) (error "...
30073b73653adabfb2cfb169abf51aba388914692fdec9747fff7d1dc6a2dc0c
googleson78/fp-lab-2022-23
TicTacToe.hs
module MinMax.TicTacToe where optimiseFor :: a optimiseFor = undefined
null
https://raw.githubusercontent.com/googleson78/fp-lab-2022-23/0d5b8aa7a1c572352658cd41b082da6a29ad07ad/homeworks/draft-minmax/src/MinMax/TicTacToe.hs
haskell
module MinMax.TicTacToe where optimiseFor :: a optimiseFor = undefined
f02e139f6104630fe2e2d1281f0d4a915b09293a91a01a778d2c973f98f08079
data61/Mirza
Main.hs
# LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # module Mirza.Trails.Main where import Mirza.Trails.API import Mirza.Trails.Database.Migrate import Mirza.Trails.Service import Mirza.Trails.Types import Mirza.Common....
null
https://raw.githubusercontent.com/data61/Mirza/24e5ccddfc307cceebcc5ce26d35e91020b8ee10/projects/trails/src/Mirza/Trails/Main.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ Constants ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Command Line Options Data Types --------...
# LANGUAGE DataKinds # # LANGUAGE TypeApplications # module Mirza.Trails.Main where import Mirza.Trails.API import Mirza.Trails.Database.Migrate import Mirza.Trails.Service import Mirza.Trails.Types import Mirza.Common.Types import Katip ...
3434dd32c17d6d235280af21e0b9d2832758226b2e3db5f59b3b98c40af73ea7
fantasytree/fancy_game_server
emysql_conn.erl
Copyright ( c ) 2009 - 2012 < > , < > , < > , %% Eonblast Corporation <> %% %% 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 restric- %% tion, including with...
null
https://raw.githubusercontent.com/fantasytree/fancy_game_server/4ca93486fc0d5b6630170e79b48fb31e9c6e2358/apps/emysql/src/emysql_conn.erl
erlang
Eonblast Corporation <> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation tion, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to...
Copyright ( c ) 2009 - 2012 < > , < > , < > , files ( the " Software"),to deal in the Software without restric- included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , HOLDERS BE LIABLE FOR ANY CLAIM , DAMAGES OR...
40095d03d1a0c672b1f650415b5ed0da4e71f42ed8f10e3ba1e0592b20037279
eclipse-archived/agent
heartbeat.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright ( c ) 2020 ADLINK Technology Inc. * * This program and the accompanying materials are made available under the * terms of the Eclipse Pu...
null
https://raw.githubusercontent.com/eclipse-archived/agent/e2ee78050157eba3aa35f52496b590806c6d1d88/fos-agent/heartbeat.ml
ocaml
type status = ping_tasks list recv with timeout result is (bool * int * float * string) find peer tasks removing peer tasks it will be readded after the check get task associated with this ip removing task will be added after check checking dropping if received after timeout adding single task add...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright ( c ) 2020 ADLINK Technology Inc. * * This program and the accompanying materials are made available under the * terms of the Eclipse Pu...
59d830a102392c4d4ca3f2038d24e7edf70aba1a56be2d7ba1ff310ea79f9ac2
kompendium-ano/api-factom
Config.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} module Factom.Rest.Server.Config ( AppConfig(..) , ConnectConfig(..) , MetaConfig(..) , defaultConnectConfig , readCfg , readEvalCfg , viewCfg ) where import Data.Aeson import qualified Data...
null
https://raw.githubusercontent.com/kompendium-ano/api-factom/68359e60d82515c6fd66134f8b3661e827eb6599/factom-oapi-server/src/Factom/Rest/Server/Config.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ ^ Internal configuration representation ^ Representation used by Postgresql.Simple ------------------------------------------------------------------------------ | Top level st...
# LANGUAGE DeriveGeneric # module Factom.Rest.Server.Config ( AppConfig(..) , ConnectConfig(..) , MetaConfig(..) , defaultConnectConfig , readCfg , readEvalCfg , viewCfg ) where import Data.Aeson import qualified Data.ByteString.Char8 as BS import Data.Lis...
3d0fd37947c10e4ed5207c8e890de38cb68081f1cf280418596a55966ee9ec1f
owickstrom/komposition
Focus.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE ExplicitForAll #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE KindSignatures # {-# LANGUAGE LambdaCase #-} # LANGUAGE MultiP...
null
https://raw.githubusercontent.com/owickstrom/komposition/64893d50941b90f44d77fea0dc6d30c061464cf3/src/Komposition/Focus.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE ExplicitForAll # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE RankNTypes # # LANGUAGE TypeOperators # | Changes a focus with respect to a composition (timeline, sequence, para...
# LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # module Komposition.Focus where import Komposition.Prelude ...
97440aa5c17d489cae4c66f70e2f4ec7db042b289950c7e5b5dff1ff18aea505
pascal-knodel/haskell-craft
E'11'16.hs
-- -- -- ------------------ Exercise 11.16 . ------------------ -- -- -- module E'11'16 where import Test.QuickCheck prop_uncurryZip :: [Bool] -> [Bool] -> Property prop_uncurryZip leftList rightList ( -- 1 ) ==> ( unzip $ (uncurry zip) (leftList , rightLis...
null
https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/Chapter%C2%A011/E'11'16.hs
haskell
---------------- ---------------- 1 ) GHCi> quickCheck prop_uncurryZip Note: Not nice. I have the feeling the authors want us to suffer a little. I guess, that it will be possible to define ELLs (Equal Lengths Lists) later. Other solutions for "prop_uncurryZip": 1 ) GHCi> quickCheck prop_uncurryZip'
Exercise 11.16 . module E'11'16 where import Test.QuickCheck prop_uncurryZip :: [Bool] -> [Bool] -> Property prop_uncurryZip leftList rightList ==> ( unzip $ (uncurry zip) (leftList , rightList) ) == (leftList , rightList) * * * Gave up ! Passed only 50 te...
29828d20b961f6bf213e717dc882bf9d8e67ee6f2578bd46d35593e500deb5ad
philnguyen/soft-contract
app.rkt
#lang typed/racket/base (provide app@) (require racket/set racket/list racket/match racket/vector typed/racket/unit syntax/parse/define set-extras bnf unreachable "../utils/patterns.rkt" "../utils/map.rkt" "../ast/signa...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/execution/app.rkt
racket
A call history tracks the call chain that leads to the current expression, modulo loops Global table remembering the widest store for each chain FIXME: memory leak. Reset for each program. TODO: clean this up so only need to gc once? TODO: code dup TODO: clean this up so only need to gc once? no `ΔΣₓ` in result ...
#lang typed/racket/base (provide app@) (require racket/set racket/list racket/match racket/vector typed/racket/unit syntax/parse/define set-extras bnf unreachable "../utils/patterns.rkt" "../utils/map.rkt" "../ast/signa...
2b84e30e934c85c83ab917ef8ad475fc4d17333fdf1eda421d1cae4ed17e1e81
reborg/clojure-essential-reference
1.clj
(eduction [& xforms])
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/ReducersandTransducers/Transducers/eduction/1.clj
clojure
(eduction [& xforms])
45f8e36cccb7cf003a181e7398c1f73718177e1426bb65b6a9672bb60f1a8ad3
techascent/tech.datatype
binary_reader.clj
(ns tech.v2.datatype.binary-reader (:require [tech.v2.datatype.typecast :as typecast] [tech.v2.datatype.protocols :refer [default-endianness] :as dtype-proto] [tech.v2.datatype.binary-impl-helper :refer [reify-binary-reader-header]]) (:import [tech.v2.datatype Binar...
null
https://raw.githubusercontent.com/techascent/tech.datatype/8cc83d771d9621d580fd5d4d0625005bd7ab0e0c/src/tech/v2/datatype/binary_reader.clj
clojure
I know that sub-buffer produces a new nio buffer that is safe to change.
(ns tech.v2.datatype.binary-reader (:require [tech.v2.datatype.typecast :as typecast] [tech.v2.datatype.protocols :refer [default-endianness] :as dtype-proto] [tech.v2.datatype.binary-impl-helper :refer [reify-binary-reader-header]]) (:import [tech.v2.datatype Binar...
bb1ab51b30dbb8f4b4d6c0490b44d1dc0e693c23ba54350c78e2f7470d53b5fd
2600hz/kazoo
cb_tests.erl
%%%----------------------------------------------------------------------------- ( C ) 2010 - 2020 , 2600Hz %%% @doc This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %%% %%% @end %%%--------...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/applications/crossbar/src/cb_tests.erl
erlang
----------------------------------------------------------------------------- @doc @end -----------------------------------------------------------------------------
( C ) 2010 - 2020 , 2600Hz This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(cb_tests). -export([start/0, start/1]). -spec start() -> tuple(). start() -> start(100). -spec sta...
085c2328e2009a4d435e00ea07a442892315e966e7ee0cbe445a442d0cb85cf9
ericfinster/catt.io
typecheck.ml
(*****************************************************************************) (* *) (* Typechecking *) (* *) ...
null
https://raw.githubusercontent.com/ericfinster/catt.io/0f2446860b7daba8ac2c343f933056195151a819/lib/typecheck.ml
ocaml
*************************************************************************** Typechecking ****************...
open Format open Pd open Suite open Term open Expr open Mtl type normalization_type = | None | StrictlyUnital type tc_config = { norm_type: normalization_type; debug_streams: (string * int) list; } let default_config = { norm_type = None; ...
e01b2db368d74df25bf258262c255f4d147a84ecb69a7247a7a2d80db1a77804
chef/chef-server
bksw_wm_base.erl
Copyright Chef Software , 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 may obtain %% a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agr...
null
https://raw.githubusercontent.com/chef/chef-server/775e6b24229e46884dcd8801e0534a07627327b2/src/bookshelf/src/bksw_wm_base.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 permissions and limitations under the License. Helper functions presigned...
Copyright Chef Software , 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 @author Hsiao < > ...
b4af5867ea7b4b1a721f93400dbdfbddeefa7f0cccca2660d7abbea31df6f369
rizo/streaming-zoo
iterator.ml
module A = struct type ('a, 's) iter = ('s * ('s -> ('a * 's) option)) let take n ((init, next)) = let next' (i, s) = if i <= 0 then None else match next s with | Some (a, s') -> Some (a, (i - 1, s')) | None -> None in ((n, init), next') let init n f = let next i = ...
null
https://raw.githubusercontent.com/rizo/streaming-zoo/bf586c8b986a41353f5e3963de01047b83e7649a/src/iterator.ml
ocaml
module A = struct type ('a, 's) iter = ('s * ('s -> ('a * 's) option)) let take n ((init, next)) = let next' (i, s) = if i <= 0 then None else match next s with | Some (a, s') -> Some (a, (i - 1, s')) | None -> None in ((n, init), next') let init n f = let next i = ...
6a656a2249205510f33010294f99ae07d27a90449da2b2bf2f77464c9c7f6ff3
cardmagic/lucash
errno.scm
;;; Errno constant definitions. Copyright ( c ) 1993 by . See file COPYING . These are the correct values for the GNU . (define (hurd-errno n) (bitwise-ior (arithmetic-shift #x10 26) (bitwise-and n #x3fff))) (define errno/perm (hurd-errno 1)) ; Operation not permitted (define errno/noent (hurd-errno 2)) ;...
null
https://raw.githubusercontent.com/cardmagic/lucash/0452d410430d12140c14948f7f583624f819cdad/reference/scsh-0.6.6/scsh/gnu/errno.scm
scheme
Errno constant definitions. Operation not permitted No such file or directory No such process Interrupted system call Input/output error No such device or address Argument list too long Bad file descriptor No child processes Cannot allocate memory Permission denied Bad address Block device required Devic...
Copyright ( c ) 1993 by . See file COPYING . These are the correct values for the GNU . (define (hurd-errno n) (bitwise-ior (arithmetic-shift #x10 26) (bitwise-and n #x3fff))) Exec format error Resource deadlock avoided Invalid cross - device link Invalid argument Protocol family not supported N...
4e06bd11c7f4d9567a2147e6656727478c1547160b22e2388edb0a56d3083476
mishun/tangles
PatternMatching.hs
# LANGUAGE FlexibleContexts , FlexibleInstances , RankNTypes # module Math.Topology.KnotTh.Moves.PatternMatching ( Pattern , PatternM , subTangleP , crossingP , connectionP , reconnectP , makePattern , searchMoves ) where import Control.Applicative (Alternative(..)) import Control.M...
null
https://raw.githubusercontent.com/mishun/tangles/9af39dd48e3dcc5e3944f8d060c8769ff3d81d02/src/Math/Topology/KnotTh/Moves/PatternMatching.hs
haskell
# LANGUAGE FlexibleContexts , FlexibleInstances , RankNTypes # module Math.Topology.KnotTh.Moves.PatternMatching ( Pattern , PatternM , subTangleP , crossingP , connectionP , reconnectP , makePattern , searchMoves ) where import Control.Applicative (Alternative(..)) import Control.M...
f115c539b7de5b46570733f016aaa9dd78c2dc5b67663f12e215bf98518426f6
pink-gorilla/notebook
component.cljs
(ns pinkgorilla.notebook-ui.completion.component (:require-macros [cljs.core.async.macros :refer [go go-loop]] [reagent.ratom :refer [reaction]]) (:require [taoensso.timbre :refer-macros [debug info]] [cljs.core.async :as async :refer [<! >! chan timeout close!]] [reagent.core :as r] [re-frame.cor...
null
https://raw.githubusercontent.com/pink-gorilla/notebook/b01c806535f204c1c6e24c75a6619d747aba5655/src/pinkgorilla/notebook_ui/completion/component.cljs
clojure
active completion component: (when i [completion-view cc ds]
(ns pinkgorilla.notebook-ui.completion.component (:require-macros [cljs.core.async.macros :refer [go go-loop]] [reagent.ratom :refer [reaction]]) (:require [taoensso.timbre :refer-macros [debug info]] [cljs.core.async :as async :refer [<! >! chan timeout close!]] [reagent.core :as r] [re-frame.cor...
64f93deb64975ba5aef34baece7d0ab9da603d87768159b55d2bdac5ddb903b8
haskell-works/hw-xml
Parser.hs
module App.XPath.Parser ( path ) where import Control.Applicative import Data.Attoparsec.Text import Data.Text (Text) import qualified App.XPath.Types as XP import qualified Data.Text as T tag :: Parser Text tag = T.cons <$> letter <*> tagTail tagTail :: Parser Text tagTail = T.pack <$> many (l...
null
https://raw.githubusercontent.com/haskell-works/hw-xml/e30a4cd8e6dc7451263a3d45c1ae28b3f35d0079/app/App/XPath/Parser.hs
haskell
module App.XPath.Parser ( path ) where import Control.Applicative import Data.Attoparsec.Text import Data.Text (Text) import qualified App.XPath.Types as XP import qualified Data.Text as T tag :: Parser Text tag = T.cons <$> letter <*> tagTail tagTail :: Parser Text tagTail = T.pack <$> many (l...
e4a8b87570a9aa181b4dfb79bca815468eb1f97993a7c0a18735033a18f10260
scslab/hails
TCB.hs
# LANGUAGE Unsafe # {-# LANGUAGE DeriveDataTypeable #-} | This module exports the type for a Hails BSON document , ' HsonDoc ' . A Hails document is akin to " Data . 's documents , but differs in two ways . First , Hails restricts the number of types to a subset of BSON 's ( see ' BsonVal ' ) . This res...
null
https://raw.githubusercontent.com/scslab/hails/4d4dfe0cdfb7c8941a55ce882cba20d82c6d9cfd/Hails/Data/Hson/TCB.hs
haskell
# LANGUAGE DeriveDataTypeable # * Documents * Fields * Values * Internal | Strict ByeString Document Fields | The name of a field. Values @BsonValue@ cannot contain any labeled values; all labeled values may be arbitrarily nested. ^ Float value ^ String value ^ Inner document ^ List of values ^ Bi...
# LANGUAGE Unsafe # | This module exports the type for a Hails BSON document , ' HsonDoc ' . A Hails document is akin to " Data . 's documents , but differs in two ways . First , Hails restricts the number of types to a subset of BSON 's ( see ' BsonVal ' ) . This restriction is primarily due to the fac...
c07899412306a10eefbdc6d94307c28e5136d19a34f09b2a40ae7c4dd4ad01ce
zkincaid/duet
test_transition.ml
open Srk open OUnit open Syntax open Test_pervasives module V = struct type t = string let typ_table = Hashtbl.create 991 let sym_table = Hashtbl.create 991 let rev_sym_table = Hashtbl.create 991 let register_var name typ = assert (not (Hashtbl.mem typ_table name)); let sym = Ctx.mk_symbol ~name (t...
null
https://raw.githubusercontent.com/zkincaid/duet/162d3da830f12ab8e8d51f7757cddcb49c4084ca/srk/test/test_transition.ml
ocaml
Needed w/o forward inv gen Needed w/o forward inv gen Needed w/o forward inv gen Needed w/o forward inv gen Needed w/o forward inv gen havoc
open Srk open OUnit open Syntax open Test_pervasives module V = struct type t = string let typ_table = Hashtbl.create 991 let sym_table = Hashtbl.create 991 let rev_sym_table = Hashtbl.create 991 let register_var name typ = assert (not (Hashtbl.mem typ_table name)); let sym = Ctx.mk_symbol ~name (t...
f0a13e2c0fc4b5db4f53b9cbaa3170c5fa888d172f9e1ff0382b5436159e2ad5
haskell-opengl/GLUT
Functions.hs
# LANGUAGE CPP # {-# OPTIONS_HADDOCK hide #-} -------------------------------------------------------------------------------- -- | -- Module : Graphics.UI.GLUT.Raw.Functions Copyright : ( c ) 2018 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- ...
null
https://raw.githubusercontent.com/haskell-opengl/GLUT/36207fa51e4c1ea1e5512aeaa373198a4a56cad0/src/Graphics/UI/GLUT/Raw/Functions.hs
haskell
# OPTIONS_HADDOCK hide # ------------------------------------------------------------------------------ | Module : Graphics.UI.GLUT.Raw.Functions License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ Make the forei...
# LANGUAGE CPP # Copyright : ( c ) 2018 Maintainer : < > All raw functions from GLUT and freeglut . module Graphics.UI.GLUT.Raw.Functions ( isKnown, glutAddMenuEntry, glutAddSubMenu, glutAppStatusFunc, glutAttachMenu, glutBitmapCharacter, glutBitmapHeight, glutBitmapLength,...
1963ae437ae9e148355df998ebc99c20242e9fd2e89a812b4765a4689deaeab6
bfontaine/grape
parsing.clj
(ns grape.impl.parsing "Internal parsing utilities." (:require [parcera.core :as parcera] [grape.impl.models :as m])) (defn parse-code "Parse code. Options are passed to parcera.core/ast." ([code] (parse-code code nil)) ([code options] ; parcera/ast takes options as [code & {:as options}] ...
null
https://raw.githubusercontent.com/bfontaine/grape/51d741943595f55fd51c34b0213037ca484a1bfb/src/grape/impl/parsing.clj
clojure
parcera/ast takes options as [code & {:as options}]
(ns grape.impl.parsing "Internal parsing utilities." (:require [parcera.core :as parcera] [grape.impl.models :as m])) (defn parse-code "Parse code. Options are passed to parcera.core/ast." ([code] (parse-code code nil)) ([code options] (apply parcera/ast code (mapcat vec options)))) (defn ...
cccaaa60c3b791c33ec0427a824c18d3a9e1442c86043d99e53cd0182b17d504
NorfairKing/validity
Persist.hs
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # module Data.GenValidity.Persist where import Data.GenValidity import Data.GenValidity.Containers import Data.List.NonEmpty (NonEmpty (..)) import qualified Data.List.NonEmpty as NE im...
null
https://raw.githubusercontent.com/NorfairKing/validity/35bc8d45b27e6c21429e4b681b16e46ccd541b3b/genvalidity-persistent/src/Data/GenValidity/Persist.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # module Data.GenValidity.Persist where import Data.GenValidity import Data.GenValidity.Containers import Data.List.NonEmpty (NonEmpty (..)) import qualified Data.List.NonEmpty as NE im...
b5722e828155e64ad2122e6785fd02de991ff60eb5a9a692d8dac47b07760986
janestreet/async_unix
interruptor.mli
* An interruptor provides a file descriptor that can be used to cause a file - descr - watcher to detect the file descriptor is ready for reading . We use an interruptor when a thread needs the Async scheduler to service a request . Knock , knock . Who 's there ? Interruptor cow . ...
null
https://raw.githubusercontent.com/janestreet/async_unix/e5d9e9d388a23237cec3bf42d7e310c459de4309/src/interruptor.mli
ocaml
* [thread_safe_interrupt t] causes [read_fd t] to become ready for reading. * [clear t] causes [read_fd t] to become not ready for reading. It is guaranteed that any calls to [thread_safe_interrupt] after [clear t] returns (and prior to another call to [clear t]) will cause [read_fd] to become ready for readi...
* An interruptor provides a file descriptor that can be used to cause a file - descr - watcher to detect the file descriptor is ready for reading . We use an interruptor when a thread needs the Async scheduler to service a request . Knock , knock . Who 's there ? Interruptor cow . ...
5f662cb3710b5c488426f1442086f0d8a81a25149220a404758ea4f5015cca2e
spechub/Hets
ProveCommands.hs
module HetsAPI.ProveCommands ( availableComorphisms , usableProvers , usableConsistencyCheckers , autoProveNode , proveNode , checkConsistency , checkConservativityNode ) where import Data.Functor () import Control.Monad.Trans ( MonadTrans(lift) ) import Common.LibName (LibName) import Co...
null
https://raw.githubusercontent.com/spechub/Hets/0dfcaf6a049bd686ee64f0cb245b0d3694a5f8ac/HetsAPI/ProveCommands.hs
haskell
| @availableComorphisms theory@ yields all available comorphisms for @theory@ for @theory@ available on the machine | @usableProvers theory@ checks for usable provers available on the machine | @proveNode theory prover comorphism@ proves all goals in @theory@ using all usable prover or comorphism, respectively...
module HetsAPI.ProveCommands ( availableComorphisms , usableProvers , usableConsistencyCheckers , autoProveNode , proveNode , checkConsistency , checkConservativityNode ) where import Data.Functor () import Control.Monad.Trans ( MonadTrans(lift) ) import Common.LibName (LibName) import Co...
6434b953d34cbf0bafd5849a3487bcf30971563be365e163b9e7392f1087d701
UCSD-PL/nano-smt
Tests.hs
-- | Module with candidate test Values for Each Type module Language.Nano.SMT.Tests (runTests, tests) where import Test.HUnit import Language.Nano.SMT.Types import Language.Nano.SMT.SAT runTests :: IO () runTests = runTestTT tests >>= putStrLn . show --------------------------------------------------------------...
null
https://raw.githubusercontent.com/UCSD-PL/nano-smt/0fe3be6cf5ecf82f61ea9b3b3a4047d8f72c04f1/Language/Nano/SMT/Tests.hs
haskell
| Module with candidate test Values for Each Type ------------------------------------------------------------------------- Tests for SAT ---------------------------------------------------------- -------------------------------------------------------------------------
module Language.Nano.SMT.Tests (runTests, tests) where import Test.HUnit import Language.Nano.SMT.Types import Language.Nano.SMT.SAT runTests :: IO () runTests = runTestTT tests >>= putStrLn . show tests = test $ zipWith satTest [0..] satTests satTest i (b, f) = name ~: name ~: b ~=? exec f where ...
9e6e4a2b431f7c216b841bb5a52b889cbc51f6180f375e5300c96756ebc3a4b6
kahua/Kahua
gsid.scm
;; Manages global session ID ;; Copyright ( c ) 2003 - 2007 Scheme Arts , L.L.C. , All rights reserved . Copyright ( c ) 2003 - 2007 Time Intermedia Corporation , All rights reserved . ;; See COPYING for terms and conditions of using this software ;; (define-module kahua.gsid (use gauche.uvector) (use gauch...
null
https://raw.githubusercontent.com/kahua/Kahua/c90fe590233e4540923e4e5cc9f61da32873692c/src/kahua/gsid.scm
scheme
Manages global session ID See COPYING for terms and conditions of using this software corresponds to a continuation of the session. It can be restartable, that is, the same continuation ID can be reused to backtrack the session as far as it hasn't explicitly invalidated. In other word, a continuation ID ha...
Copyright ( c ) 2003 - 2007 Scheme Arts , L.L.C. , All rights reserved . Copyright ( c ) 2003 - 2007 Time Intermedia Corporation , All rights reserved . (define-module kahua.gsid (use gauche.uvector) (use gauche.net) (use file.util) (use srfi-1) (use srfi-27) (export make-gsid decompose-gsid gsid->wo...
28a26fa341eddf6efc7020b96fc7fbf666e721eb722dfaa63a1906c03ebe1d22
esl/lager_graylog
lager_graylog_gelf_formatter_SUITE.erl
-module(lager_graylog_gelf_formatter_SUITE). -include_lib("eunit/include/eunit.hrl"). -compile(export_all). %% Suite configuration all() -> [formats_log_with_mandatory_attributes, formats_all_metadata_by_default, formats_only_selected_metadata, formats_all_metadata_if_configured, doesnt_form...
null
https://raw.githubusercontent.com/esl/lager_graylog/6ed0f8d5b5aa5b63702944a585ed8ac0ae51c0eb/test/lager_graylog_gelf_formatter_SUITE.erl
erlang
Suite configuration Test cases Helpers
-module(lager_graylog_gelf_formatter_SUITE). -include_lib("eunit/include/eunit.hrl"). -compile(export_all). all() -> [formats_log_with_mandatory_attributes, formats_all_metadata_by_default, formats_only_selected_metadata, formats_all_metadata_if_configured, doesnt_format_default_timestamp_if...
01792ab2c22189d33bde980c0a564570a45175e197c51e7a12786edd8322d487
chaoxu/fancy-walks
B.hs
{-# OPTIONS_GHC -O2 #-} import Data.List import Data.Maybe import Data.Char import Data.Array import Data.Int import Data.Ratio import Data.Bits import Data.Function import Data.Ord import Control.Monad.State import Control.Monad import Control.Applicative import Data.ByteString.Char8 (ByteString) import qualified Dat...
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/code.google.com/codejam/Code%20Jam%20Africa%20and%20Arabia%202011/Online%20Competition/B.hs
haskell
# OPTIONS_GHC -O2 #
import Data.List import Data.Maybe import Data.Char import Data.Array import Data.Int import Data.Ratio import Data.Bits import Data.Function import Data.Ord import Control.Monad.State import Control.Monad import Control.Applicative import Data.ByteString.Char8 (ByteString) import qualified Data.ByteString.Char8 as BS...
14fbba1c3d3565297dc9afc5e30e6c55c3ef6ec9c5a94847b7d0e6b9cf02595a
monadbobo/ocaml-core
common_test.ml
open OUnit;; open Core.Std let test = "common" >::: [ "% and /%" >:: (fun () -> let gen_int_pair () = (Quickcheck.uig (), abs (Quickcheck.uig ())) in let modulus_invariant (a, b) = let r = a % b in let q = a /% b in r >= 0 && a = q * b + r ...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/lib_test/common_test.ml
ocaml
open OUnit;; open Core.Std let test = "common" >::: [ "% and /%" >:: (fun () -> let gen_int_pair () = (Quickcheck.uig (), abs (Quickcheck.uig ())) in let modulus_invariant (a, b) = let r = a % b in let q = a /% b in r >= 0 && a = q * b + r ...
c0db3922ca132ccbcb7420a62f9fdbe6db5407af58e7d1b238927bd9b226054f
mikera/clisk
test_core.clj
(ns clisk.test-core (:use clojure.test) (:use clisk.core) (:use clisk.node) (:use clisk.functions) (:require [mikera.vectorz.core :as v]) (:import clisk.Util) (:import [mikera.vectorz Vector])) (deftest test-colour (testing "Colours" (is (= (unchecked-int 0xFF000000) (Util/toARGB 0.0 0.0 0.0))) ...
null
https://raw.githubusercontent.com/mikera/clisk/44dd35fabbae68ad44f0e8ac2dec4c580203f7b9/src/test/clojure/clisk/test_core.clj
clojure
(ns clisk.test-core (:use clojure.test) (:use clisk.core) (:use clisk.node) (:use clisk.functions) (:require [mikera.vectorz.core :as v]) (:import clisk.Util) (:import [mikera.vectorz Vector])) (deftest test-colour (testing "Colours" (is (= (unchecked-int 0xFF000000) (Util/toARGB 0.0 0.0 0.0))) ...
42cd88c8ff59c81654a24cccebdc71c63943dff6aeb6ddf9016da0a811e13d3f
IUCompilerCourse/public-student-support-code
interp.rkt
#lang racket (require racket/fixnum) (require "utilities.rkt" (prefix-in runtime-config: "runtime-config.rkt")) (provide interp-F1 interp-F2 interp-F3 interp-F4 interp-pseudo-x86-0 interp-x86-0 interp-pseudo-x86-1 interp-x86-1 interp-pseudo-x86-2 interp-x86-2 interp-pseudo-x86-3 inte...
null
https://raw.githubusercontent.com/IUCompilerCourse/public-student-support-code/fe5f4a657f4622eba596454c14bc8f72765004d9/interp.rkt
racket
The interpreters in this file are for the intermediate languages produced by the various passes of the compiler. Interpreters for x86 with names that correspond to the book. TODO: update the following names! The interp-x86-2 interpreter takes a program of the form (X86Program info blocks) Also, the info field ...
#lang racket (require racket/fixnum) (require "utilities.rkt" (prefix-in runtime-config: "runtime-config.rkt")) (provide interp-F1 interp-F2 interp-F3 interp-F4 interp-pseudo-x86-0 interp-x86-0 interp-pseudo-x86-1 interp-x86-1 interp-pseudo-x86-2 interp-x86-2 interp-pseudo-x86-3 inte...
cc1830488e14c654022465cae280e17ca84f0e6b01cb1dff08fcc69aed1cf9e9
lpw25/ocaml-typed-effects
includecore.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/lpw25/ocaml-typed-effects/79ea08b285c1fd9caf3f5a4d2aa112877f882bea/typing/includecore.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . open open Typedtree open Types exc...
b9e09aaabf57f204d9958930e09105be9413d9ef169ca4c48be28d814b329414
tek/polysemy-hasql
DeriveStatement.hs
module Polysemy.Hasql.DeriveStatement where import Hasql.Statement (Statement(Statement)) import Polysemy.Db.Data.Rep (Auto) import Polysemy.Hasql.Data.SqlCode (SqlCode(SqlCode)) import Polysemy.Hasql.QueryParams (QueryParams, queryParams) import Polysemy.Hasql.QueryRows (QueryRows, queryRows) import Polysemy.Hasql.T...
null
https://raw.githubusercontent.com/tek/polysemy-hasql/e0570eeb51d0f1362029e93de4a9d9f04e3f2434/packages/hasql/lib/Polysemy/Hasql/DeriveStatement.hs
haskell
module Polysemy.Hasql.DeriveStatement where import Hasql.Statement (Statement(Statement)) import Polysemy.Db.Data.Rep (Auto) import Polysemy.Hasql.Data.SqlCode (SqlCode(SqlCode)) import Polysemy.Hasql.QueryParams (QueryParams, queryParams) import Polysemy.Hasql.QueryRows (QueryRows, queryRows) import Polysemy.Hasql.T...
e886efd67d71a20ad8d931536ec8cc1a48f2871ac7964bebd4f3d3c9bf335a2a
codinuum/cca
common.ml
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
null
https://raw.githubusercontent.com/codinuum/cca/88ea07f3fe3671b78518769d804fdebabcd28e90/src/ast/analyzing/langs/astml/common.ml
ocaml
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
9f6c67b3fa380087079ab6c53434b0fefaa2fd446e53a2f4474549125ae5ee1e
borkdude/advent-of-cljc
dfuenzalida.cljc
(ns aoc.y2017.d05.dfuenzalida (:refer-clojure :exclude [read-string format]) (:require [aoc.utils :as u :refer [deftest read-string format]] [aoc.y2017.d05.data :refer [input answer-1 answer-2]] [clojure.test :as t :refer [is testing]])) (defn iter-offsets [pos offsets steps] (if (>= pos (count offsets)...
null
https://raw.githubusercontent.com/borkdude/advent-of-cljc/17c8abb876b95ab01eee418f1da2e402e845c596/src/aoc/y2017/d05/dfuenzalida.cljc
clojure
we escaped! we escaped! Scratch
(ns aoc.y2017.d05.dfuenzalida (:refer-clojure :exclude [read-string format]) (:require [aoc.utils :as u :refer [deftest read-string format]] [aoc.y2017.d05.data :refer [input answer-1 answer-2]] [clojure.test :as t :refer [is testing]])) (defn iter-offsets [pos offsets steps] (if (>= pos (count offsets)...
093ae958fd358a3bbd730aed586d28fd9fa4aa14c5f85e32963be287ec404742
clojure-interop/google-cloud-clients
WebRiskServiceV1Beta1StubSettings$Builder.clj
(ns com.google.cloud.webrisk.v1beta1.stub.WebRiskServiceV1Beta1StubSettings$Builder "Builder for WebRiskServiceV1Beta1StubSettings." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.webrisk.v1beta1.stub WebRiskServiceV1Beta1StubSettings$Builder])) (defn apply-to-all-unary-methods "Ap...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.webrisk/src/com/google/cloud/webrisk/v1beta1/stub/WebRiskServiceV1Beta1StubSettings%24Builder.clj
clojure
(ns com.google.cloud.webrisk.v1beta1.stub.WebRiskServiceV1Beta1StubSettings$Builder "Builder for WebRiskServiceV1Beta1StubSettings." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.webrisk.v1beta1.stub WebRiskServiceV1Beta1StubSettings$Builder])) (defn apply-to-all-unary-methods "Ap...
dd8242f63574bbcf6ee0c387a5d80f2b0ac6e9a361c88306d9ab8df814fdde64
janestreet/shexp
env.mli
(** Runtime environment If we were to compile a script to an OCaml program, all functions would have to take this environment as argument. *) open Import type t module Working_dir_spec : sig type t = | Inherit | Path of string | Physical of { path : string ; fd : Unix.file_desc...
null
https://raw.githubusercontent.com/janestreet/shexp/635989a9065f94e309707f113d6647dc62d6932f/process-lib/src/env.mli
ocaml
* Runtime environment If we were to compile a script to an OCaml program, all functions would have to take this environment as argument. * Increment the reference of the working directory * Decrement the reference of the working directory * Unix environment
open Import type t module Working_dir_spec : sig type t = | Inherit | Path of string | Physical of { path : string ; fd : Unix.file_descr } end val create : ?stdin:Unix.file_descr -> ?stdout:Unix.file_descr -> ?stderr:Unix.file_descr -> ?cwd:Working_dir_spec.t -> ?un...
1685a25899144cfc1332724f11a51657ac75d9b2ca74437803a5aead7ca08102
geophf/1HaskellADay
Solution.hs
module Y2021.M03.D11.Solution where import Data.Map (Map) import qualified Data.Map as Map - Today 's # haskell problem , we 're going to provide unique identifier for words . This is very computer - science - y , and is well - suited to take on this problem . For example , variables , bound or unbound ( '...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2021/M03/D11/Solution.hs
haskell
} give a set of unique ids for the following - >>> uniqueIds names fromList [("Dick",2),("Harry",3),("Tom",1)] -
module Y2021.M03.D11.Solution where import Data.Map (Map) import qualified Data.Map as Map - Today 's # haskell problem , we 're going to provide unique identifier for words . This is very computer - science - y , and is well - suited to take on this problem . For example , variables , bound or unbound ( '...
65f73d4445e5720b1e9fe759233d993f2cc3b39c6d8f4583c2f1db287d496c45
bobot/FetedelascienceINRIAsaclay
test_threads.ml
open Printf module Sensor = Mindstorm.Sensor module Motor = Mindstorm.Motor let c_touch = Condition.create () let m = Mutex.create () let test_touch conn = Sensor.set conn `S1 `Switch `Bool; while true do let sensor = Sensor.get conn `S1 in printf "sensor = %i\n%!" sensor.Sensor.scaled; if sensor.Sensor.sc...
null
https://raw.githubusercontent.com/bobot/FetedelascienceINRIAsaclay/87765db9f9c7211a26a09eb93e9c92f99a49b0bc/2010/robot/mindstorm-bzr/examples/test_threads.ml
ocaml
open Printf module Sensor = Mindstorm.Sensor module Motor = Mindstorm.Motor let c_touch = Condition.create () let m = Mutex.create () let test_touch conn = Sensor.set conn `S1 `Switch `Bool; while true do let sensor = Sensor.get conn `S1 in printf "sensor = %i\n%!" sensor.Sensor.scaled; if sensor.Sensor.sc...
41789193772312dca0ea19960a527e23d644b50f7f1a131246e0056ac07c53bf
grin-compiler/ghc-grin
genObj.hs
# LANGUAGE RecordWildCards # module Main where import Control.Monad import Control.Monad.IO.Class import System.Environment import StgLoopback import Stg.Util import Stg.ToStg import Stg.DeadFunctionElimination.StripModule import qualified GHC.Driver.Types as GHC import GHC import GHC.Paths ( libdir ) = StgM...
null
https://raw.githubusercontent.com/grin-compiler/ghc-grin/ebc4dca2e1f5b3581d4b84726730564ce909d786/patched-lambda-to-ghc-stg/mini-ghc-grin/app/genObj.hs
haskell
stgbinName TODO: fix liveness input name HINT: the stubs are compiled at link time
# LANGUAGE RecordWildCards # module Main where import Control.Monad import Control.Monad.IO.Class import System.Environment import StgLoopback import Stg.Util import Stg.ToStg import Stg.DeadFunctionElimination.StripModule import qualified GHC.Driver.Types as GHC import GHC import GHC.Paths ( libdir ) = StgM...
deaa5c1da5a8cd3ac6c54f643415fa5e5a49b41c142cda9b241b3356076082d9
camfort/camfort
DenotationalSemantics.hs
# LANGUAGE LambdaCase # # LANGUAGE TypeFamilies # # LANGUAGE ScopedTypeVariables # # LANGUAGE DataKinds # module Camfort.Specification.Stencils.DenotationalSemantics ( intervalsToRegions , regionsToIntervals ) where import Algebra.Lattice import qualified Da...
null
https://raw.githubusercontent.com/camfort/camfort/3421e85f6fbbcaa6503a266b3fae029a09d2ff24/src/Camfort/Specification/Stencils/DenotationalSemantics.hs
haskell
preconditions: Final subsumption optimisation
# LANGUAGE LambdaCase # # LANGUAGE TypeFamilies # # LANGUAGE ScopedTypeVariables # # LANGUAGE DataKinds # module Camfort.Specification.Stencils.DenotationalSemantics ( intervalsToRegions , regionsToIntervals ) where import Algebra.Lattice import qualified Da...
c826be46bfde33ef8e0fa7bbb6b740b8643d2d21e175791722510999f0b9ddbd
MLanguage/mlang
common.ml
let ( => ) x l = List.mem x l let ( =: ) x (l, u) = x >= l && x <= u module StrMap = Map.Make(String) type nature = Indefinie | Revenu | Charge type genre = Saisie | Calculee | Base type type_ = Reel | Booleen | Date type domaine = Indefini | Contexte | Famille | Revenu | RevenuCorr | Variation | ...
null
https://raw.githubusercontent.com/MLanguage/mlang/7b8dec6010e1d4124bedc1c0a8dac5dc1eb8987d/examples/dgfip_c/ml_primitif/common.ml
ocaml
let ( => ) x l = List.mem x l let ( =: ) x (l, u) = x >= l && x <= u module StrMap = Map.Make(String) type nature = Indefinie | Revenu | Charge type genre = Saisie | Calculee | Base type type_ = Reel | Booleen | Date type domaine = Indefini | Contexte | Famille | Revenu | RevenuCorr | Variation | ...
ff58ef077ad4556476d08502d93f6d9c846f65c279e54862e2f26ce3a902b835
s-expressionists/Cleavir
definitions.lisp
(in-package #:cleavir-primop-info) (macrolet ((defprimops (&rest specs) `(progn ,@(loop for spec in specs collect `(defprimop ,@spec))))) (defprimops (cleavir-primop:car 1 :value :flushable) (cleavir-primop:cdr 1 :value :flushable) (cleavir-primop:...
null
https://raw.githubusercontent.com/s-expressionists/Cleavir/cb66dc81b880a096edbd5a7028b74f7fda0daef3/Primop/definitions.lisp
lisp
(in-package #:cleavir-primop-info) (macrolet ((defprimops (&rest specs) `(progn ,@(loop for spec in specs collect `(defprimop ,@spec))))) (defprimops (cleavir-primop:car 1 :value :flushable) (cleavir-primop:cdr 1 :value :flushable) (cleavir-primop:...
49cd2a819842e855b565c032d67390c0e4bacadb12f3e58aa59eca407335784f
metosin/compojure-api
server.clj
(ns examples.server (:gen-class) (:require [org.httpkit.server :as httpkit] [compojure.api.middleware :refer [wrap-components]] [com.stuartsierra.component :as component] [examples.thingie :refer [app]] [reloaded.repl :refer [go set-init!]])) (defrecord Example [] ...
null
https://raw.githubusercontent.com/metosin/compojure-api/5c88f32fe56cdb6fcdb3cc506bb956943fcd8c17/examples/thingie/src/examples/server.clj
clojure
(ns examples.server (:gen-class) (:require [org.httpkit.server :as httpkit] [compojure.api.middleware :refer [wrap-components]] [com.stuartsierra.component :as component] [examples.thingie :refer [app]] [reloaded.repl :refer [go set-init!]])) (defrecord Example [] ...
289bbe7f75d998bafc8d7e8b64515660f952d2cd1972216fab331dc06767fe7b
chaw/r7rs-libs
format-test.sps
" formatst.scm " SLIB FORMAT Version 3.0 conformance test Written by ( ) ; ; This code is in the public domain. Packaged for R7RS Scheme and SRFI 64 tests by , 2017 ;; -- passes all but 3 tests (import (scheme base) (scheme char) (scheme write) (slib format) (slib string-c...
null
https://raw.githubusercontent.com/chaw/r7rs-libs/b8b625c36b040ff3d4b723e4346629a8a0e8d6c2/slib-tests/format-test.sps
scheme
This code is in the public domain. any object test this is ugly # argument test numerical test roman numeral test old roman numeral test character test plural test tilde test whitespace character test tabulate test indirection test field test pad character test min. padchar length slashify test symb...
" formatst.scm " SLIB FORMAT Version 3.0 conformance test Written by ( ) Packaged for R7RS Scheme and SRFI 64 tests by , 2017 -- passes all but 3 tests (import (scheme base) (scheme char) (scheme write) (slib format) (slib string-case) (srfi 64)) (define (test for...
1c10567d9d2d8db807df25a834ab22a725d7c130ed0de5b9c858c9afc501d104
beerose/proof-checker
rules.ml
(** Module implementing natural deduction rules *) (** They are applied in inverse way - it checks if all facts needed to inferr an expression are already proven. Flags: bind - allows to use already proven facts in further proofs *) open Expr (** Common type for all inversed rules *) type inverse_nd_rule = (expr...
null
https://raw.githubusercontent.com/beerose/proof-checker/19da83a54d728017f6699c8a6d8e69c9d5efd1ba/src/rules.ml
ocaml
* Module implementing natural deduction rules * They are applied in inverse way - it checks if all facts needed to inferr an expression are already proven. Flags: bind - allows to use already proven facts in further proofs * Common type for all inversed rules */* * Expressions comparator * Function find looks f...
open Expr type inverse_nd_rule = (expr * expr list) -> bool let (===) expr1 expr2 = to_string expr1 = to_string expr2 || expr1 = expr2 || (`Paren(expr1)) = expr2 || expr1 = (`Paren(expr2)) let find = fun (expr, env) -> List.length (List.find_all (fun x -> x === expr) env) > 0 let negAksj = fun (expr1, exp...
c5feaa572a97fbc32db1695aa1c1e8e4547312622f69f35b3a7a68b0f46608de
khotyn/4clojure-answer
146-trees-into-tables.clj
(fn [t] (apply hash-map (apply concat (apply concat (for [key (keys t)] (for [inner-key (keys (get t key))] [[key inner-key] (get (get t key) inner-key)]))))))
null
https://raw.githubusercontent.com/khotyn/4clojure-answer/3de82d732faedceafac4f1585a72d0712fe5d3c6/146-trees-into-tables.clj
clojure
(fn [t] (apply hash-map (apply concat (apply concat (for [key (keys t)] (for [inner-key (keys (get t key))] [[key inner-key] (get (get t key) inner-key)]))))))
a1509cdf72fa2856914101dc365370cfb3176d95b70b715bb7d78d6eac044ee9
swlkr/majestic-web
logic.clj
(ns {{name}}.users.logic (:require [buddy.hashers :as hashers] [{{name}}.users.db :as users.db] [{{name}}.utils :as utils])) (defn email? [str] (and (string? str) (not (nil? (re-find #".+@.+\." str))))) (defn decent-password? [password] (let [min-length 12] (and (string...
null
https://raw.githubusercontent.com/swlkr/majestic-web/3d247f6b5ccc4ff3662a64544a4ca27beada971b/resources/leiningen/new/majestic_web/src/users/logic.clj
clojure
(ns {{name}}.users.logic (:require [buddy.hashers :as hashers] [{{name}}.users.db :as users.db] [{{name}}.utils :as utils])) (defn email? [str] (and (string? str) (not (nil? (re-find #".+@.+\." str))))) (defn decent-password? [password] (let [min-length 12] (and (string...
90539fa3dca80103924add3a8ddb4a41bf4fd16c2060e63c8b13322a65e1d1ba
amosr/folderol
Unagi.hs
{-# LANGUAGE BangPatterns #-} module Bench.Chan.Unagi where import Bench.Chan.Chunk import Folderol.Spawn import Control.Concurrent.Chan.Unagi import qualified Data.Vector as Vector runMaybe :: Vector.Vector a -> IO () runMaybe v = do (i,o) <- newChan join2 (pushMaybe v i) (pullMaybe o) pushMaybe :: Vector.Vec...
null
https://raw.githubusercontent.com/amosr/folderol/9b8c0cd30cfb798dadaa404cc66404765b1fc4fe/bench/Bench/Chan/Unagi.hs
haskell
# LANGUAGE BangPatterns #
module Bench.Chan.Unagi where import Bench.Chan.Chunk import Folderol.Spawn import Control.Concurrent.Chan.Unagi import qualified Data.Vector as Vector runMaybe :: Vector.Vector a -> IO () runMaybe v = do (i,o) <- newChan join2 (pushMaybe v i) (pullMaybe o) pushMaybe :: Vector.Vector a -> InChan (Maybe a) -> I...
5267b7d62e96a44a0bf00ec858bb66e823dd3a92a234cf027478214a1cbdda45
simonmichael/hledger
JournalReader.hs
--- * -*- outline-regexp:"--- *"; -*- --- ** doc In Emacs , use TAB on lines beginning with " -- * " to collapse / expand sections . | A reader for hledger 's journal file format ( < #the-journal-file > ) . hledger 's journal format is a compatible subset of ( < -cli.org/3.0/doc/ledger3.html#Journal-For...
null
https://raw.githubusercontent.com/simonmichael/hledger/fa70f160aef091fa672050adb704a1d88d14ea20/hledger-lib/Hledger/Read/JournalReader.hs
haskell
- * -*- outline-regexp:"--- *"; -*- - ** doc - ** language # LANGUAGE FlexibleContexts # # LANGUAGE NoMonoLocalBinds # # LANGUAGE OverloadedStrings # # LANGUAGE PackageImports # - ** exports * Reader-finding utils * Reader * Parsing utils * Tests - ** imports - ** doctest setup $setup >>> :set -XOver...
In Emacs , use TAB on lines beginning with " -- * " to collapse / expand sections . | A reader for hledger 's journal file format ( < #the-journal-file > ) . hledger 's journal format is a compatible subset of ( < -cli.org/3.0/doc/ledger3.html#Journal-Format > ) , so this reader should handle many led...
26929e224578234132bf044cfe26d26132cfc436b5a3895c0da8178fdc8240e0
lambdaisland/deep-diff2
ansi.cljc
(ns lambdaisland.deep-diff2.puget.color.ansi "Coloring implementation that applies ANSI color codes to text designed to be output to a terminal. Use with a `:color-markup` of `:ansi`." (:require [clojure.string :as str] [lambdaisland.deep-diff2.puget.color :as color])) (def sgr-code "Map of symbols ...
null
https://raw.githubusercontent.com/lambdaisland/deep-diff2/2ef429227ac9986024e6c8f63ded9a88eb3fe9c2/src/lambdaisland/deep_diff2/puget/color/ansi.cljc
clojure
codes)]
(ns lambdaisland.deep-diff2.puget.color.ansi "Coloring implementation that applies ANSI color codes to text designed to be output to a terminal. Use with a `:color-markup` of `:ansi`." (:require [clojure.string :as str] [lambdaisland.deep-diff2.puget.color :as color])) (def sgr-code "Map of symbols ...
06762882b4052234ccf09cca4f2d7ae6ba2269790e9915e88dbd9ddca5412a5b
MyDataFlow/ttalk-server
proper_symb.erl
Copyright 2010 - 2013 < > , < > and < > %%% This file is part of PropEr . %%% %%% PropEr 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 o...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/proper/src/proper_symb.erl
erlang
PropEr is free software: you can redistribute it and/or modify (at your option) any later version. PropEr 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 fo...
Copyright 2010 - 2013 < > , < > and < > This file is part of PropEr . 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 Pub...
c1e66b131c2c6a2e693f1b51e5f3fe9cebb34c55d6c591ee42be0668d599f5e1
wireless-net/erlang-nommu
wxPaintEvent.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2013 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/wx/src/gen/wxPaintEvent.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 2008 - 2013 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(wxPaintEvent). -include("wxe.hrl"...
ec68825f7ab95ff901d1d9c157ffb4d7a72fa8a81341eeae04918078db158511
janestreet/rpc_parallel
rpc_settings.mli
open! Core open! Async type t = { max_message_size : int option ; handshake_timeout : Time_float.Span.t option ; heartbeat_config : Rpc.Connection.Heartbeat_config.t option } [@@deriving bin_io, sexp] (** [env_var] is the name of the environment variable read by rpc-parallel on start-up to inject addition...
null
https://raw.githubusercontent.com/janestreet/rpc_parallel/968259d389c35aa33cc1c02e089bfc442fb4294d/src/rpc_settings.mli
ocaml
* [env_var] is the name of the environment variable read by rpc-parallel on start-up to inject additional rpc-settings for the application. * Use all the default rpc settings. This is the record with [None] in every field. * [to_string_for_env_var] generates the expected string format from the arguments match...
open! Core open! Async type t = { max_message_size : int option ; handshake_timeout : Time_float.Span.t option ; heartbeat_config : Rpc.Connection.Heartbeat_config.t option } [@@deriving bin_io, sexp] val env_var : string val default : t val to_string_for_env_var : ?max_message_size:int -> ?handshake_t...
f2daa61b986928362fae38a862c20aed14220a8f931d0c84a044e3379b96e0b5
basho/riak_search
solr_search.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved . %% %% ------------------------------------------------------------------- -module(solr_search). -export([ index_dir/1, index_dir/2 ]). -include("riak_search...
null
https://raw.githubusercontent.com/basho/riak_search/79c034350f37706a1db42ffca8f6449d4cce99e1/src/solr_search.erl
erlang
------------------------------------------------------------------- ------------------------------------------------------------------- Full text index the specified file or directory, which is expected to contain a solr formatted file. Full text index the specified file or directory, which is expected to conta...
Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved . -module(solr_search). -export([ index_dir/1, index_dir/2 ]). -include("riak_search.hrl"). index_dir(Directory) -> index_dir(?DEFAULT_INDEX, Directory). index_dir(Index, Directory) -> {ok, SolrClient} = riak_search:local_...
51d455059e0eab0ac2bec6e6d4623368dbf06a954acd09c5a8c68ffc090f159a
sealchain-project/sealchain
Context.hs
{-# LANGUAGE DeriveAnyClass #-} # OPTIONS_GHC -fno - warn - orphans # -- | Context needed for the translation between DSL and Cardano types module UTxO.Context ( -- * Cardano provided context CardanoContext(..) , initCardanoContext -- * Actors , Actors(..) , Rich(..) , Poor(..) , Stakeholder(..)...
null
https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/utxo/src/UTxO/Context.hs
haskell
# LANGUAGE DeriveAnyClass # | Context needed for the translation between DSL and Cardano types * Cardano provided context * Actors * Mapping between addresses * Our custom context * Derived information ** Block sign info ---------------------------------------------------------------------------- --------------...
# OPTIONS_GHC -fno - warn - orphans # module UTxO.Context ( CardanoContext(..) , initCardanoContext , Actors(..) , Rich(..) , Poor(..) , Stakeholder(..) , Avvm(..) , initActors , ActorIx(..) , AddrIx , Addr(..) , maxAddrSize , isAvvmAddr , isPoorAddr , AddrInfo(..) , AddrMap(..) , ...
61ee2cb3376a353eb9fd696a130f6bddc96765b5962e3d4398a87a574dd92d25
chebert/schemeish
expand-stream-collect.lisp
(in-package #:schemeish.backend) (install-syntax!) (define (stream-collect-bindings-fn binding-names body) (let ((arg-name (gensym))) `(lambda (,arg-name) (destructuring-bind ,binding-names ,arg-name (declare (ignorable ,@binding-names)) ,@body)))) (define (stream-collect-filter-form binding-names t...
null
https://raw.githubusercontent.com/chebert/schemeish/93ea08b17e6d8876f086e1a34a21b538174b2c39/src/expand-stream-collect.lisp
lisp
(in-package #:schemeish.backend) (install-syntax!) (define (stream-collect-bindings-fn binding-names body) (let ((arg-name (gensym))) `(lambda (,arg-name) (destructuring-bind ,binding-names ,arg-name (declare (ignorable ,@binding-names)) ,@body)))) (define (stream-collect-filter-form binding-names t...
f6395c62a328a8720fb9de60814a2b9fa941bfdda3fa7c14ba667ac72ac36c23
chef/mixer
multiple.erl
-module(multiple). -include("mixer.hrl"). -mixin([{foo, [doit/0]}, bar, {foo, except, [doit/0, doit/1]}]).
null
https://raw.githubusercontent.com/chef/mixer/0d1322433e7e2237eb1270dc5a028fa014335134/test/multiple.erl
erlang
-module(multiple). -include("mixer.hrl"). -mixin([{foo, [doit/0]}, bar, {foo, except, [doit/0, doit/1]}]).
6aba16b5c8be69b685fd1f9664c5c464368b058d62203cdb923907f7f094c410
emil0r/reverie
module.clj
(ns reverie.module (:require [clojure.core.match :refer [match]] [reverie.auth :refer [with-access]] [reverie.http.response :as response] [reverie.http.route :as route] [reverie.module.entity :as entity] [reverie.page :as page] [reverie.render :a...
null
https://raw.githubusercontent.com/emil0r/reverie/a29c223b7326e6d5a5e0874d33c37ff2fa0dfd4d/reverie-core/src/reverie/module.clj
clojure
raw response renderer routes map template raw response ~renderer, _ , map, template renderer, routes, map, template renderer, ~routes, map, template default
(ns reverie.module (:require [clojure.core.match :refer [match]] [reverie.auth :refer [with-access]] [reverie.http.response :as response] [reverie.http.route :as route] [reverie.module.entity :as entity] [reverie.page :as page] [reverie.render :a...
66fb91a85e46e273380b7dcc2b036161c57d1fd875d9fe6ff895aa13fcdf5e1a
daigotanaka/mern-cljs
models.cljs
(ns common.models (:require-macros [mern-utils.macros :refer [node-require]]) (:require [cljs.nodejs :as nodejs] [mern-utils.db :as db] [common.models.user-schema :refer [user-schema api-token-schema facebook-account-schema ...
null
https://raw.githubusercontent.com/daigotanaka/mern-cljs/a9dedbb3b622f96dd0b06832733b4fd961e6437d/example/common/src/common/models.cljs
clojure
(ns common.models (:require-macros [mern-utils.macros :refer [node-require]]) (:require [cljs.nodejs :as nodejs] [mern-utils.db :as db] [common.models.user-schema :refer [user-schema api-token-schema facebook-account-schema ...
8c29fe29a85428afa607abdb9e9bc41fbcfe6cb81d9b02041422d94dac5529fb
slyrus/mcclim-old
utils.lisp
;;; -*- Mode: Lisp; Package: ESA-UTILS -*- ( c ) copyright 2006 by ( ) ;;; This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at ...
null
https://raw.githubusercontent.com/slyrus/mcclim-old/354cdf73c1a4c70e619ccd7d390cb2f416b21c1a/ESA/utils.lisp
lisp
-*- Mode: Lisp; Package: ESA-UTILS -*- This library is free software; you can redistribute it and/or either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU License al...
( c ) copyright 2006 by ( ) modify it under the terms of the GNU Library General Public version 2 of the License , or ( at your option ) any later version . Library General Public License for more details . You should have received a copy of the GNU Library General Public Free Software Fou...
e6294387729d6b86c251c03e79a7a8481948a5c63d185c221fdf3c8cccea15d5
sjl/coding-math
make-quickutils.lisp
(ql:quickload 'quickutil) (qtlc:save-utils-as "quickutils.lisp" :utilities '(:define-constant :switch ; :while :ensure-boolean :with-gensyms :once-only :iota :curry :rcurry :compos...
null
https://raw.githubusercontent.com/sjl/coding-math/8e2add14d033da41cb3ac0aac63ad67edb4dd66a/make-quickutils.lisp
lisp
:while
(ql:quickload 'quickutil) (qtlc:save-utils-as "quickutils.lisp" :utilities '(:define-constant :switch :ensure-boolean :with-gensyms :once-only :iota :curry :rcurry :compose :n-gram...
b2395cf6a4bd56aa54ae46380b8535129344ded04eb1081f96ecd2f6222bb22c
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
InvoicesPaymentMethodOptions.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the types generated from the schema InvoicesPaymentMethodOptions module StripeAPI.Types.InvoicesPaymentMethodOp...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/InvoicesPaymentMethodOptions.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the types generated from the schema InvoicesPaymentMethodOptions # SOURCE # # SOURCE # # SOURCE # # SOURCE # # SOURCE # # SOURCE # # SOURCE # # SOURCE # | Defines the object schema located at @components.schemas.invoices_payment_method_options@ in the ...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Types.InvoicesPaymentMethodOptions where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson as Data.Aeson.Encoding.Internal impor...
a8f9dcaa04eedbfd265d0fb82671357e4eca53c7ac55028864c4380a22653f9a
objecthub/swift-lispkit
EUStats.scm
;;; Text table demo ;;; ;;; This is a short example showcasing how library `(lispkit text-tables)` works. ;;; A new text table is created and populated with data from countries of the European Union . Finally , the text table is printed on the console . ;;; Author : Copyright © 2021 . All rights reserved . ;...
null
https://raw.githubusercontent.com/objecthub/swift-lispkit/c9a3dc13216e121da266244d576ad032322ab77c/Sources/LispKit/Resources/Examples/EUStats.scm
scheme
Text table demo This is a short example showcasing how library `(lispkit text-tables)` works. A new text table is created and populated with data from countries of the 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 applicab...
European Union . Finally , the text table is printed on the console . Author : Copyright © 2021 . All rights reserved . License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , (import (lispkit base) (lispkit text-table)) Make a new text table , consisting of...
45d712d6b1775cca3fea1e5a1496721d3fe6902ce148862f640dbf14734829e6
cs136/seashell
updates.rkt
#lang typed/racket Seashell 's SQLite3 + Dexie bindings . Copyright ( C ) 2013 - 2015 The Seashell Maintainers . ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the ...
null
https://raw.githubusercontent.com/cs136/seashell/17cc2b0a6d2cdac270d7168e03aa5fed88f9eb02/src/collects/seashell/db/updates.rkt
racket
This program is free software: you can redistribute it and/or modify (at your option) any later version. See also 'ADDITIONAL TERMS' at the end of the included LICENSE file. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTAB...
#lang typed/racket Seashell 's SQLite3 + Dexie bindings . Copyright ( C ) 2013 - 2015 The Seashell Maintainers . 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 Li...
fed48a46fdaee4a2ec217359bb9df12ec34b12921b335d242db23d22c3176104
pietervdvn/ALGT
SyntaxStyle.hs
# LANGUAGE TemplateHaskell , TypeSynonymInstances , FlexibleInstances , MultiParamTypeClasses # module TypeSystem.SyntaxStyle where {- This module defines style highlightings for rules -} import Utils.Utils import Utils.ToString import Data.Map as M hiding (filter) import Data.List (sort, intercalate, tails) import D...
null
https://raw.githubusercontent.com/pietervdvn/ALGT/43a2811931be6daf1362f37cb16f99375ca4999e/src/TypeSystem/SyntaxStyle.hs
haskell
This module defines style highlightings for rules A little extra, cause I like fancy colors
# LANGUAGE TemplateHaskell , TypeSynonymInstances , FlexibleInstances , MultiParamTypeClasses # module TypeSystem.SyntaxStyle where import Utils.Utils import Utils.ToString import Data.Map as M hiding (filter) import Data.List (sort, intercalate, tails) import Data.Maybe (catMaybes, listToMaybe) import TypeSystem.Ty...
929fa3dccdbe4267a7001e7ce50097234338da3b0a44f818d5f42b02af74cb1b
funimagej/fun.imagej
fast_segmentation.clj
(ns fun.imagej.segmentation.fast-segmentation (:require [fun.imagej.img :as img] [fun.imagej.core :as imagej] [fun.imagej.img.shape :as shape] [fun.imagej.ops :as ops] [random-forests.core :as rf]) (:import [org.apache.commons.math3.linear QRDecomposition Array2DRowRe...
null
https://raw.githubusercontent.com/funimagej/fun.imagej/dcbe14581ba9394d8ecc6e254e02fac8130a942d/src/fun/imagej/segmentation/fast_segmentation.clj
clojure
The Fast Segmentation paradigm uses a hash map as the base data structure (println "generate-sample-points " (class label)) (println "Positive " (count (:positive-samples seg)) " Negative " (count (:negative-samples seg)) " val " candidate-val) True, and need positive samples False, and need negative samples Maybe ...
(ns fun.imagej.segmentation.fast-segmentation (:require [fun.imagej.img :as img] [fun.imagej.core :as imagej] [fun.imagej.img.shape :as shape] [fun.imagej.ops :as ops] [random-forests.core :as rf]) (:import [org.apache.commons.math3.linear QRDecomposition Array2DRowRe...
de437de3e8599529877407482580b79ac9c0de5482d5507ee52c8d3f98ae6f05
solita/mnt-teet
owner_opinion_style.cljs
(ns teet.land.owner-opinion-style (:require [teet.theme.theme-colors :as theme-colors])) (defn opinion-container-heading-box [] {:width "100%" :display :flex :justify-content :space-between :align-items :center}) (defn opinion-container-heading [] {:border-bottom (str "1px solid " theme-colors/gray...
null
https://raw.githubusercontent.com/solita/mnt-teet/7a5124975ce1c7f3e7a7c55fe23257ca3f7b6411/app/frontend/src/cljs/teet/land/owner_opinion_style.cljs
clojure
(ns teet.land.owner-opinion-style (:require [teet.theme.theme-colors :as theme-colors])) (defn opinion-container-heading-box [] {:width "100%" :display :flex :justify-content :space-between :align-items :center}) (defn opinion-container-heading [] {:border-bottom (str "1px solid " theme-colors/gray...
9ea9abf54d929c4806e494c0f7e27300c2051152df312984d89e8402ea724b29
g-andrade/tls_certificate_check
tls_certificate_check_cross_signing_SUITE.erl
Copyright ( c ) 2021 - 2023 %% %% Permission is hereby granted, free of charge, to any person obtaining a %% copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation %% the rights to use, copy, modify, merge, publish, di...
null
https://raw.githubusercontent.com/g-andrade/tls_certificate_check/fbdfcc9779d3448e66375f2a73257f74813f2f8a/test/tls_certificate_check_cross_signing_SUITE.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Software is furnished to do so, subject to the following conditions: The above copyright not...
Copyright ( c ) 2021 - 2023 to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR ...
529db8467e4cb046959ea8509c0fec1a4b1818268d9f30f88a9114fb4b71be3d
ijvcms/chuanqi_dev
map_20211.erl
-module(map_20211). -export([ range/0, data/0 ]). range() -> {60, 52}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/map_data/map_20211.erl
erlang
-module(map_20211). -export([ range/0, data/0 ]). range() -> {60, 52}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1...
03554d5d2678cd513959a15931a45c2498e8b9cbdad2e92d8bd15d725978ae4a
ucsd-progsys/liquidhaskell
CyclicExprAlias2.hs
{-@ LIQUID "--expect-error-containing=Cyclic type alias definition" @-} module CyclicExprAlias2 () where @ expression CyclicC1 Q = ( CyclicC2 Q ) & & ( CyclicC3 Q ) @ {-@ expression CyclicC2 Q = CyclicC1 Q @-} {-@ expression CyclicC3 Q = CyclicC1 Q @-}
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/errors/CyclicExprAlias2.hs
haskell
@ LIQUID "--expect-error-containing=Cyclic type alias definition" @ @ expression CyclicC2 Q = CyclicC1 Q @ @ expression CyclicC3 Q = CyclicC1 Q @
module CyclicExprAlias2 () where @ expression CyclicC1 Q = ( CyclicC2 Q ) & & ( CyclicC3 Q ) @
bf29535cd07e86b4d4c37092971772bd09af00b8ff68e58d486543a9547b019a
ksuandi/role-based-auth-api
pool.clj
(ns role-based-auth-api.db.pool (:import com.mchange.v2.c3p0.ComboPooledDataSource) (:require [taoensso.timbre :as log])) (def ^:private db-spec {:host "127.0.0.1" :port 3306 :user "root" :password "" :database "testdb"}) (def ds (doto (ComboPooledDataSource.) (.set...
null
https://raw.githubusercontent.com/ksuandi/role-based-auth-api/e22af336650a2e3663292775c29ac1b3bead05dd/src/role_based_auth_api/db/pool.clj
clojure
Connection eviction
(ns role-based-auth-api.db.pool (:import com.mchange.v2.c3p0.ComboPooledDataSource) (:require [taoensso.timbre :as log])) (def ^:private db-spec {:host "127.0.0.1" :port 3306 :user "root" :password "" :database "testdb"}) (def ds (doto (ComboPooledDataSource.) (.set...
ee1e547a1df9324001122e018ce3e2dec1bc5c17931a4a58040ec63cee2f156e
binsec/haunted
binstream.ml
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2019 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/base/binstream.ml
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
63e1aba0bcdc9770c356013f66c18b07a5f71b1243084348f782199d05ab2cfa
CrossRef/cayenne
doi.clj
(ns cayenne.tasks.doi (:require [cayenne.conf :as conf] [cayenne.ids.doi :as doi-id] [somnium.congomongo :as m])) ;; calculate stats about DOIs rfc 3986 (def url-reserved #{\: \/ \? \# \[ \] \@ \! \$ \& \' \( \) \* \+ \, \; \=}) (def doi-stats (agent {:count 0 :max-...
null
https://raw.githubusercontent.com/CrossRef/cayenne/02321ad23dbb1edd3f203a415f4a4b11ebf810d7/src/cayenne/tasks/doi.clj
clojure
calculate stats about DOIs \=}) :count-with-url-char :prefix max min avg len
(ns cayenne.tasks.doi (:require [cayenne.conf :as conf] [cayenne.ids.doi :as doi-id] [somnium.congomongo :as m])) rfc 3986 (def doi-stats (agent {:count 0 :max-string "" :min-string "" :max-length Integer/MIN_VALUE ...
bb3945060863435254937081f6d53b1bf3e6242167d8e4cfad1987e01af5e663
pyr/recordbus
project.clj
(defproject org.spootnik/recordbus "0.1.1" :description "MySQL binlog to kafka" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :aot :all :main org.spootnik.recordbus :dependencies [[org.clojure/clojure "1.7.0"] [org.clojure/tools.log...
null
https://raw.githubusercontent.com/pyr/recordbus/fdfb753645bac9be11dfdd6825731904219c7275/project.clj
clojure
(defproject org.spootnik/recordbus "0.1.1" :description "MySQL binlog to kafka" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :aot :all :main org.spootnik.recordbus :dependencies [[org.clojure/clojure "1.7.0"] [org.clojure/tools.log...
e3505c9d014ab011779c42a6b46019c2930cd560cffe0649d04d6a0b2bd9f611
nominolo/lambdachine
Bc0011.hs
# LANGUAGE NoImplicitPrelude , BangPatterns , MagicHash # -- RUN: %bc_vm_chk CHECK : @Result@ IND - > GHC.Bool . True`con_info module Bc.Bc0011 where import GHC.Base import GHC.Integer import GHC.Num import GHC.Classes fib :: Int -> Int fib n | n <= 1 = 1 | otherwise = fib (n - 2) + fib (n - 1) test = fib 5 ...
null
https://raw.githubusercontent.com/nominolo/lambdachine/49d97cf7a367a650ab421f7aa19feb90bfe14731/tests/Bc/Bc0011.hs
haskell
RUN: %bc_vm_chk
# LANGUAGE NoImplicitPrelude , BangPatterns , MagicHash # CHECK : @Result@ IND - > GHC.Bool . True`con_info module Bc.Bc0011 where import GHC.Base import GHC.Integer import GHC.Num import GHC.Classes fib :: Int -> Int fib n | n <= 1 = 1 | otherwise = fib (n - 2) + fib (n - 1) test = fib 5 == 8
2cfde096944843c559aa480dcc240e31f69a2f2b43fd676c1344908be28e4971
oakes/Nightcode
project.clj
(defproject {{app-name}} "0.0.1-SNAPSHOT" :description "FIXME: write description" :dependencies [[org.clojure/clojure "1.10.1"]] :aot [{{namespace}}] :main {{namespace}})
null
https://raw.githubusercontent.com/oakes/Nightcode/2e112c59cddc5fdec96059a08912c73b880f9ae8/resources/leiningen/new/console/project.clj
clojure
(defproject {{app-name}} "0.0.1-SNAPSHOT" :description "FIXME: write description" :dependencies [[org.clojure/clojure "1.10.1"]] :aot [{{namespace}}] :main {{namespace}})
0b4bbc4720cb25a631b5c23f3a51e590c95306ec8fc43e7c3a429dd4623e22b5
linkfluence/inventory
leaseweb.clj
(ns com.linkfluence.inventory.leaseweb (:require [clojure.string :as str] [clojure.tools.logging :as log] [com.linkfluence.inventory.core :as inventory] [com.linkfluence.inventory.caller :as caller] ;; to set ssh keys [clojure.java.shell :as shell] [com.link...
null
https://raw.githubusercontent.com/linkfluence/inventory/b69110494f8db210d14cc7093834c441440cd4e8/src/clj/com/linkfluence/inventory/leaseweb.clj
clojure
to set ssh keys this inventory is based on lsw server name contain list of server to be setup default use s3 default use s3 send delete update to main inventory in not check that it is not in main inventory check that we can't ping this address mark as installed mark server has not setup update install save to inven...
(ns com.linkfluence.inventory.leaseweb (:require [clojure.string :as str] [clojure.tools.logging :as log] [com.linkfluence.inventory.core :as inventory] [clojure.java.shell :as shell] [com.linkfluence.store :as store] [com.linkfluence.utils :as u] ...
0838695b3db780262c1b4a731eb7ea782c8782b5f9845fc3753cb715f8c3abf2
karamellpelle/grid
OutputState.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid 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 optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/designer/source/Game/LevelPuzzleMode/LevelPuzzleWorld/OutputState.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid 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 GN...
grid is a game written in Haskell Copyright ( C ) 2018 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License module Game.LevelPuzzleMode.LevelPuzzleWorld.Output...
24cf6f75285d10d32cb234e8d78bc69d41dcc85b19f5f55b67b18f602d09cecf
mbj/stratosphere
PagerDutyIncidentConfigurationProperty.hs
module Stratosphere.SSMIncidents.ResponsePlan.PagerDutyIncidentConfigurationProperty ( PagerDutyIncidentConfigurationProperty(..), mkPagerDutyIncidentConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/ssmincidents/gen/Stratosphere/SSMIncidents/ResponsePlan/PagerDutyIncidentConfigurationProperty.hs
haskell
module Stratosphere.SSMIncidents.ResponsePlan.PagerDutyIncidentConfigurationProperty ( PagerDutyIncidentConfigurationProperty(..), mkPagerDutyIncidentConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import...
ca5647db411daeaf93e4a418c49324f75af82a38f73c8402bfdb33fdf890a14d
input-output-hk/project-icarus-importer
Poll.hs
module Pos.Binary.Update.Poll ( ) where import Universum import Pos.Binary.Class (Bi (..), Cons (..), Field (..), decodeListLenCanonical, deriveSimpleBi, encodeListLen) import Pos.Binary.Infra () import Pos.Core (ApplicationName,...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/update/Pos/Binary/Update/Poll.hs
haskell
module Pos.Binary.Update.Poll ( ) where import Universum import Pos.Binary.Class (Bi (..), Cons (..), Field (..), decodeListLenCanonical, deriveSimpleBi, encodeListLen) import Pos.Binary.Infra () import Pos.Core (ApplicationName,...
901b257cbee2888473cf9a7784f5f757b974eb0049cb1603d30a378fdb622d1b
kutyel/haskell-book
Database.hs
module Database where import Control.Applicative import Data.Bool import Data.Time data DatabaseItem = DbString String | DbNumber Integer | DbDate UTCTime deriving (Eq, Ord, Show) theDatabase :: [DatabaseItem] theDatabase = [ DbDate (UTCTime (fromGregorian 1911 5 1) (secondsToDiffTime 34123)), DbNumber...
null
https://raw.githubusercontent.com/kutyel/haskell-book/fd4dc0332b67575cfaf5e3fb0e26687dc01772a0/src/Database.hs
haskell
module Database where import Control.Applicative import Data.Bool import Data.Time data DatabaseItem = DbString String | DbNumber Integer | DbDate UTCTime deriving (Eq, Ord, Show) theDatabase :: [DatabaseItem] theDatabase = [ DbDate (UTCTime (fromGregorian 1911 5 1) (secondsToDiffTime 34123)), DbNumber...
3fcbba6d9860b26437e6e55b62373a41c760cc6579b62be6579401ad7e76f39c
CodyReichert/qi
mop.lisp
;; -*- lisp -*- (in-package :it.bese.arnesi) * Messing with the MOP The code pre - dates closer - mop package . If ;;;; you're looking for a compatability layer you should probably look ;;;; there instead. (defmacro with-class-slots ((object class-name &key except) &body body) "Execute BODY as if in a with...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/arnesi-master/src/mop.lisp
lisp
-*- lisp -*- you're looking for a compatability layer you should probably look there instead. ** wrapping-standard method combination reorder the methods based on the -order arguments inital value of the effective call is a call its primary method(s) wrap form in call to the wrapping methods wrap FORM in calls...
(in-package :it.bese.arnesi) * Messing with the MOP The code pre - dates closer - mop package . If (defmacro with-class-slots ((object class-name &key except) &body body) "Execute BODY as if in a with-slots form containig _all_ the slots of (find-clas CLASS-NAME). This macro, which is something of an u...