_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
e84cf3b539da99f7ebe2569ca325cfd4ecb29c71d28f21c0a0ac4e0d2f5c32a0
bdeket/rktsicm
Lagrangian-transformations.rkt
#lang s-exp "../../main.rkt" (require rackunit "../helper.rkt") (rename-part 'derivative 'D) (define the-tests (test-suite "mechanics/Lagrangian-transformation" (check-simplified? (velocity ((F->C p->r) (->local 't (coo...
null
https://raw.githubusercontent.com/bdeket/rktsicm/9a6177d98040f058214add392bd791f5259b83b5/rktsicm/sicm/tests/mechanics/Lagrangian-transformations.rkt
racket
#lang s-exp "../../main.rkt" (require rackunit "../helper.rkt") (rename-part 'derivative 'D) (define the-tests (test-suite "mechanics/Lagrangian-transformation" (check-simplified? (velocity ((F->C p->r) (->local 't (coo...
2854a5b62bcb1591beb855c507e741c09690f9332c2204adb43e270042686bce
marigold-dev/deku
state_entry.mli
open Deku_ledger type t = | Entry : { encoded_module : string; storage : Value.t; originated_by : Address.t; entrypoints : Entrypoints.t; constants : (int * Value.t) array; module_ : Wasm.Ast.module_'; } -> t [@@deriving show, ord] val make : entrypoints:Entrypoints.t...
null
https://raw.githubusercontent.com/marigold-dev/deku/cdf82852196b55f755f40850515580be4fd9a3fa/deku-c/wasm-vm-ocaml/state_entry.mli
ocaml
open Deku_ledger type t = | Entry : { encoded_module : string; storage : Value.t; originated_by : Address.t; entrypoints : Entrypoints.t; constants : (int * Value.t) array; module_ : Wasm.Ast.module_'; } -> t [@@deriving show, ord] val make : entrypoints:Entrypoints.t...
a4c6442feb8fdef6ef6965ff310a0d99dfcd0b9c429eedc1e86b40ca7765c1e1
brendanhay/terrafomo
Provider.hs
-- This module is auto-generated. # LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # # OPTIONS_GHC -fno - warn - unused - imports # -- | Module : Terrafomo . AzureRM.Provider Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . ...
null
https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/provider/terrafomo-azurerm/gen/Terrafomo/AzureRM/Provider.hs
haskell
This module is auto-generated. | Stability : auto-generated * AzureRM Specific Aliases * AzureRM Configuration ^ @client_id@ - (Optional) ^ @client_secret@ - (Optional) ^ @environment@ - (Required) - (Optional) ^ @skip_credentials_validation@ - (Optional) ^ @skip_provider_registration@ - (Optional) ...
# LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # # OPTIONS_GHC -fno - warn - unused - imports # Module : Terrafomo . AzureRM.Provider Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > P...
221199f17a7be4ae624bf4160f7b068d0be000ec9a8e7821a70092756d5da204
michaelklishin/welle
links_test.clj
(ns clojurewerkz.welle.test.links-test (:require [clojurewerkz.welle.kv :as kv] [clojurewerkz.welle.buckets :as wb] [clojurewerkz.welle.mr :as mr] [clojure.test :refer :all] [clojurewerkz.welle.testkit :refer [drain]] [clojurewerkz.welle.test.test-helper...
null
https://raw.githubusercontent.com/michaelklishin/welle/3f3cd24af7c0d95489298e4096b362b6943f85ef/test/clojurewerkz/welle/test/links_test.clj
clojure
(ns clojurewerkz.welle.test.links-test (:require [clojurewerkz.welle.kv :as kv] [clojurewerkz.welle.buckets :as wb] [clojurewerkz.welle.mr :as mr] [clojure.test :refer :all] [clojurewerkz.welle.testkit :refer [drain]] [clojurewerkz.welle.test.test-helper...
a0bf94a9a2d5fc2160f5dbad363f4620f246ede88e83276d708792e37ced3739
puppetlabs/trapperkeeper
custom_exit_behavior_test.clj
(ns puppetlabs.trapperkeeper.custom-exit-behavior-test (:require [puppetlabs.trapperkeeper.core :as core])) (defprotocol CustomExitBehaviorTestService) (core/defservice custom-exit-behavior-test-service CustomExitBehaviorTestService [[:ShutdownService request-shutdown]] (init [this context] context) (sta...
null
https://raw.githubusercontent.com/puppetlabs/trapperkeeper/3e5e7e286287d75e7fdf7eb1dabb2fa534091329/test/puppetlabs/trapperkeeper/custom_exit_behavior_test.clj
clojure
(ns puppetlabs.trapperkeeper.custom-exit-behavior-test (:require [puppetlabs.trapperkeeper.core :as core])) (defprotocol CustomExitBehaviorTestService) (core/defservice custom-exit-behavior-test-service CustomExitBehaviorTestService [[:ShutdownService request-shutdown]] (init [this context] context) (sta...
e2a644412890979d4629d5b01b9b809d07342c31116a59b067e141268db7a50c
noprompt/lein-describe
project.clj
(defproject lein-describe "0.3.0-SNAPSHOT" :description "A Leiningen plugin for displaying detailed project information." :url "-describe" :license {:name "Unlicense" :url ""} :eval-in-leiningen true)
null
https://raw.githubusercontent.com/noprompt/lein-describe/ad23cf1a8c8a75946f4046f854533d71dea77b63/project.clj
clojure
(defproject lein-describe "0.3.0-SNAPSHOT" :description "A Leiningen plugin for displaying detailed project information." :url "-describe" :license {:name "Unlicense" :url ""} :eval-in-leiningen true)
cf25b748d6b8a33c64487324f1290a62a5859e2aad3316996173796021556759
static-analysis-engineering/codehawk
jCHAnalysisUtils.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) ...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchpoly/jCHAnalysisUtils.ml
ocaml
chutil jchlib jchpre jchsys used for debugging only checks that a ref is of a certain type, return same variable or throws exception. NOT SURE larger level -> more precise analysis if true then use type intervals if true then use only intervals for all analysis form the ...
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) ...
2ea2179d7c81af1edfe8d44a408c2b45d929670f29f43331132a670a8f2e9eb1
typedclojure/typedclojure
unanalyzed.clj
Copyright ( c ) , contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/514f2a46ae0145f34bef0400495079ba3292b82b/typed/clj.checker/src/typed/clj/checker/check/unanalyzed.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , contributors . (ns ^:no-doc typed.clj.checker.check.unanalyzed (:require [typed.cljc.checker.check.unanalyzed :as un])) (def ^:private this-impl :clojure) (defn install-unanalyzed-special [v impl-sym] (un/install-unanalyzed-special #{this-impl} v impl-sym)) (defn install-defuspecia...
557a4017d91c615331e195e09b3aaaf9f7af1531d9d32690b3653bbaeb1178b0
Helium4Haskell/helium
DerivingNone.hs
data A = A Int | B Float deriving () data B = C Int | D Float
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/parser/DerivingNone.hs
haskell
data A = A Int | B Float deriving () data B = C Int | D Float
255ebf997985fa775deffc94b55d23ea76c9e18c752a5b031a6e0a442317ff51
ddmcdonald/sparser
vectors.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : SPARSER -*- ; ; ; copyright ( c ) 1990,1991 Content Technologies Inc. copyright ( c ) 1992 - 1994,2013,2019 - 2021 -- all rights reserved ;;; ;;; File: "vectors" ;;; Module: "objects/chart/edge vectors/" Version : August 2021 ;; 2.0 (11/26/9...
null
https://raw.githubusercontent.com/ddmcdonald/sparser/ad3aae62e6c581fc6e912c143b994af0ca77964d/Sparser/code/s/objects/chart/edge-vectors/vectors.lisp
lisp
Syntax : Common - Lisp ; Package : SPARSER -*- ; ; ; copyright ( c ) 1990,1991 Content Technologies Inc. File: "vectors" Module: "objects/chart/edge vectors/" 2.0 (11/26/92 v2.3) bumped on general principles anticipating changes. (7/30/13) Added a set of function to lift up the fringe of an e...
copyright ( c ) 1992 - 1994,2013,2019 - 2021 -- all rights reserved Version : August 2021 2.1 ( 4/6/93 ) Put in switch for vs. vector versions 2.2 ( 4/1/94 ) added remove - edge - from - chart (in-package :sparser) (defun knit-edge-into-positions (edge starting-vec...
5222c9ab930105bc61919a31f89142efd1c9c8af7b1b04e8ff7d65c520d03934
peak6/mmd_core
mmd_core_app.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2011 , %%% @doc %%% %%% @end Created : 17 Mar 2011 by < > %%%------------------------------------------------------------------- -module(mmd_core_app). -behaviour(application). %% Application callbacks -export([sta...
null
https://raw.githubusercontent.com/peak6/mmd_core/f90469ea9eac8cd607aa6ec5b9ad6ff003a35572/src/mmd_core_app.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- Application callbacks =================================================================== Application callbacks =========================================================...
@author < > ( C ) 2011 , Created : 17 Mar 2011 by < > -module(mmd_core_app). -behaviour(application). -export([start/2, stop/1]). -include("mmd.hrl"). @private application : start/[1,2 ] , and should start the processes of the @spec start(StartType , ) - > { ok , Pid } | ...
fbb3a7cfdbc2d71af470b98753a074db64440368b7ac39d761cc41c0e06f5a6c
ocamllabs/ocaml-effects
misc.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-effects/36008b741adc201bf9b547545344507da603ae31/utils/misc.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . exception Fatal_error let fatal_error...
778142dc600a04e5e1d84a7c4c843197222fd29dbee66c21c99565bc152adb93
spl/ivy
stypechecker.ml
(* * stypechecker.ml * * The SharC type checker. * * *) open Cil open Expcompare open Pretty open Ivyoptions open Ivyutil open Sfunctions open Sutil module E = Errormsg module UD = Usedef module VS = UD.VS type compatType = | Equal | CheckRead of attrparam * attrparam option (* attrparam is size in by...
null
https://raw.githubusercontent.com/spl/ivy/b1b516484fba637eb24e83d27555d273495e622b/src/sharC/stypechecker.ml
ocaml
* stypechecker.ml * * The SharC type checker. * * attrparam is size in bytes The Comp is castable if there are no sctx qualifiers on the target types of pointers Casting to and from void * is allowed if the sharing doesn't change. Casting pointers to structures is allowed when all pointers in th...
open Cil open Expcompare open Pretty open Ivyoptions open Ivyutil open Sfunctions open Sutil module E = Errormsg module UD = Usedef module VS = UD.VS type compatType = | Equal | CheckWrite of attrparam * attrparam option | Cast | NotEqual let ptrQualsCompatible (da : attributes) (sa : attributes) : ...
019a6409994a23668b2a71999315dc9b5b8bbfb212af2bf787274e8fb69fbe4e
herbelin/coq-hh
retroknowledge.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/kernel/retroknowledge.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** This file defines the knowledge tha...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Created by , May 2007 A...
cc3603b39530ed50c7a834120d7c0b6e9a681d3c77945c379562602b473e2fea
acatton/yamlkeysdiff
Main.hs
Copyright ( c ) 2015 -- -- This file is part of YAMLKeysDiff and is distributed under EUPLv1.1, -- see the LICENSE file for more information. If a LICENSE file wasn't -- provided with this piece of software, you will find a copy at: -- <> -- THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPR...
null
https://raw.githubusercontent.com/acatton/yamlkeysdiff/1728b099ff17a003d6bf47d300384841471b4924/src/Main.hs
haskell
This file is part of YAMLKeysDiff and is distributed under EUPLv1.1, see the LICENSE file for more information. If a LICENSE file wasn't provided with this piece of software, you will find a copy at: <> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND...
Copyright ( c ) 2015 THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN ACTION OF CONTRACT , TORT OR OTHERWISE , ARISING FROM , import System.Environment (getArgs, getProgName) import System.Exit (exitWith, ExitCode(ExitSuccess, ExitFailure)) import qualifi...
32019b46b7259fcddc8051dc5f03a955922c5676911421ec5eccd97c5f283c5c
GaloisInc/macaw
RegisterUse.hs
| This analyzes a function to compute information about what information must be available for the code to execute . It is a key analysis task needed before deleting unused code . information must be available for the code to execute. It is a key analysis task needed before deleting unused code. -} # LANGUAGE...
null
https://raw.githubusercontent.com/GaloisInc/macaw/9d2e1d4b9f163c8947a284c2031000c54a3a9330/base/src/Data/Macaw/Analysis/RegisterUse.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # * Exports for function recovery ** Input information * Architecture specific summarization ** Inferred information. *** Use information ----------------------------------------------------------------------------- | A map from each starting block address @l@ ...
| This analyzes a function to compute information about what information must be available for the code to execute . It is a key analysis task needed before deleting unused code . information must be available for the code to execute. It is a key analysis task needed before deleting unused code. -} # LANGUAGE...
685347834a37e5d3620adec7704ff6286cebc1ecdfd9565d64553f828db6d892
pkhuong/Napa-FFT
windowing.lisp
(in-package "NAPA-FFT") Windowing code by Originally part of Bordeaux - FFT , now dual - licensed as BSD (defun rectangular (i n) (declare (ignore i n)) 1.0f0) (defun hann (i n) (* 0.5 (- 1.0 (cos (/ (* 2 pi i) (1- n)))))) (defun blackman* (alpha i n) (let ((a0 (/ (- 1 alpha) 2)) (a1 0.5) ...
null
https://raw.githubusercontent.com/pkhuong/Napa-FFT/4a5ee157b5db8006e7a7bdbed47e23ad85bf184e/windowing.lisp
lisp
(in-package "NAPA-FFT") Windowing code by Originally part of Bordeaux - FFT , now dual - licensed as BSD (defun rectangular (i n) (declare (ignore i n)) 1.0f0) (defun hann (i n) (* 0.5 (- 1.0 (cos (/ (* 2 pi i) (1- n)))))) (defun blackman* (alpha i n) (let ((a0 (/ (- 1 alpha) 2)) (a1 0.5) ...
5d717d994994d61f58333aa19222d8f459572b9940330e19fd605771c99b5b38
goodell/cppmem
xmlHttpRequest.ml
Js_of_ocaml library * / * Copyright ( C ) 2010 * Laboratoire PPS - CNRS Université Paris Diderot * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking ...
null
https://raw.githubusercontent.com/goodell/cppmem/eb3ce19b607a5d6ec81138cd8cacd236f9388e87/js_of_ocaml-1.2/lib/xmlHttpRequest.ml
ocaml
TODO: test with elements = [] Higher level interface: * type of the http headers If we didn't catch a previous event, we check the header.
Js_of_ocaml library * / * Copyright ( C ) 2010 * Laboratoire PPS - CNRS Université Paris Diderot * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking ...
5440d5e5e1f30de4f03c50a36bf78cea964b62e1d5ed485fd95f1b4d44d5babd
albertoruiz/easyVision
param2.hs
import EasyVision import Graphics.UI.GLUT import Control.Arrow import Control.Applicative camera' = camera ~> (grayscale >>> float) data Param = Param { sigma :: Float, rad :: Int, thres :: Float } main = run $ (camera' .&. userParam) ~> fst &&& corners >>= monitor "corners" (mpSize 20) sh corner...
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/projects/old/tutorial/param2.hs
haskell
import EasyVision import Graphics.UI.GLUT import Control.Arrow import Control.Applicative camera' = camera ~> (grayscale >>> float) data Param = Param { sigma :: Float, rad :: Int, thres :: Float } main = run $ (camera' .&. userParam) ~> fst &&& corners >>= monitor "corners" (mpSize 20) sh corner...
fa6ec62717cefdb228e1a5b0c0a9b55e697a62c3ad8b607e794e1042ce4f3496
day8/re-frame-10x
views.cljs
(ns day8.re-frame-10x.panels.app-db.views (:require-macros [day8.re-frame-10x.components.re-com :refer [handler-fn]]) (:require [clojure.data] [devtools.prefs] [devtools.formatters.core] [day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.units :refer [px]] [day8...
null
https://raw.githubusercontent.com/day8/re-frame-10x/1a7ea3e65070648bf0aac54f3644938b6e1e2db8/src/day8/re_frame_10x/panels/app_db/views.cljs
clojure
(fn [input-string] (rf/dispatch [:app-db/search-string input-string])) #(rf/dispatch [::app-db.events/add-path %]) :class "app-db-path--label" 50px + 1 border 50px + 1 border 50px + 1 border 50px + 1 border 31px + 1 border Add extra space to look better when there is/aren't scrollbars
(ns day8.re-frame-10x.panels.app-db.views (:require-macros [day8.re-frame-10x.components.re-com :refer [handler-fn]]) (:require [clojure.data] [devtools.prefs] [devtools.formatters.core] [day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.units :refer [px]] [day8...
fe09c44893e41fabd0f6d30d579231f6db1ce89a980e1854221269c550b8f829
spechub/Hets
UndoRedo.hs
| Module : ./CMDL / UndoRedo.hs Description : description of undo and redo functions Copyright : uni - bremen and DFKI License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable contains the implementation of the undo and redo commads ...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/CMDL/UndoRedo.hs
haskell
| Undoes the last command entered | Redoes the last undo command
| Module : ./CMDL / UndoRedo.hs Description : description of undo and redo functions Copyright : uni - bremen and DFKI License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable contains the implementation of the undo and redo commads ...
a1504b87c5d92386e8e26493a195b4b25c833a9e49b1ff423dfbf43555976e95
fakedata-haskell/fakedata
CoffeeSpec.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module CoffeeSpec where import Control.Monad.Catch import Control.Monad.IO.Class import qualified Data.Map as M import Data.Text hiding (all, map) import qualified Data.Text as T import Data.Vector (Vector) import qualified Data.Vector as V import Fa...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/4182ff14bb0aa8513ac30f5860506b3bb96482a0/test/CoffeeSpec.hs
haskell
# LANGUAGE OverloadedStrings # it "Nested field" $ do ctries <- coffeeRegionsColombiaProvider defaultFakerSettings
# LANGUAGE ScopedTypeVariables # module CoffeeSpec where import Control.Monad.Catch import Control.Monad.IO.Class import qualified Data.Map as M import Data.Text hiding (all, map) import qualified Data.Text as T import Data.Vector (Vector) import qualified Data.Vector as V import Faker hiding (defaultFakerSettings) i...
56b7a29995e7f910372912acd893d3bbe8255a57d7c5deae446781f26685df2e
jdsandifer/AutoLISP
PCO_COUNT.lsp
;;;;;;;[ Post Call Out Counting ];;;;;;;;;;;;;;; ;; ;; ;; Counts post call-outs within a selected ;; area based on 2 hard - coded block names . ; ; ;; ;; ;;::::::::::::::::::::::::::::::::::::::::::::::;; ;; ...
null
https://raw.githubusercontent.com/jdsandifer/AutoLISP/054c8400fae84c223c3113e049a1ab87d374ba37/Old/PCO_COUNT.lsp
lisp
[ Post Call Out Counting ];;;;;;;;;;;;;;; ;; Counts post call-outs within a selected ;; ; ;; ::::::::::::::::::::::::::::::::::::::::::::::;; ;; ; Written: 10/28/2015 ...
(defun c:pcocount (/ resultList postCallOut postCallOut2 postCallOut3 cableMultiplier layer1) (setq postCallOut "POST-DRILLED CALL-OUT") (setq postCallOut2 "PICKET PANEL CALL-OUT") (setq postCallOut3 "CABLE TAG") (setq layer1 "Cable") (setq cableMultiplier 13) (DisplayCountTable (CountPostCallO...
977022b8b592cc91fa7f77598d2b14d83826368b80add5be98029eeb699e0142
bobeff/playground
009.rkt
Exercise 9 . Add the following line to the definitions area of : ; ; (define in ...) ; ; Then create an expression that converts the value of in to a non negative ; number. - For a String , it determines how long the is . ; - For an Image, it uses the area. ; - For a Number, it takes its absolute valu...
null
https://raw.githubusercontent.com/bobeff/playground/7072dbd7e0acd690749abe1498dd5f247cc21637/htdp-second-edition/exercises/009.rkt
racket
(define in ...) Then create an expression that converts the value of in to a non negative number. - For an Image, it uses the area. - For a Number, it takes its absolute value.
Exercise 9 . Add the following line to the definitions area of : - For a String , it determines how long the is . - For # true it uses 1 and for # false 0 . #lang racket (require 2htdp/image) (include "../data/cat-image.rkt") (define (abs-complex complex-number) (sqrt (+ (sqr (real-part complex-numb...
8f3d7ec3586ababf0154123ab72c57517b1cc6ca57a935d90f137b526d2f6bfd
haskell-suite/base
Base.hs
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , MagicHash # #ifdef __GLASGOW_HASKELL__ {-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-} #endif #include "Typeable.h" ----------------------------------------------------------------------------- -- | -- Module : Control.Exception.Base Copyri...
null
https://raw.githubusercontent.com/haskell-suite/base/1ee14681910c76d0a5a436c33ecf3289443e65ed/Control/Exception/Base.hs
haskell
# LANGUAGE DeriveDataTypeable, StandaloneDeriving # --------------------------------------------------------------------------- | Module : Control.Exception.Base License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : non-portable (extended...
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , MagicHash # #ifdef __GLASGOW_HASKELL__ #endif #include "Typeable.h" Copyright : ( c ) The University of Glasgow 2001 module Control.Exception.Base ( #ifdef __HUGS__ SomeException, #else SomeException(..), #endif Exception(....
2e499948de0cf76d0eb8f9c492e63642c9e9dd5b9457851b1bacf01079d77e7d
xtdb/core2
align.clj
(ns core2.align (:require [core2.vector.indirect :as iv] [core2.vector :as vec]) (:import (core2.vector IIndirectRelation IIndirectVector) [java.util HashMap LinkedList List Map] java.util.function.BiFunction java.util.stream.IntStream org.roaringbitmap.longlo...
null
https://raw.githubusercontent.com/xtdb/core2/3adeb391ca4dd73a3f79faba8024289376597d23/core/src/main/clojure/core2/align.clj
clojure
assumption: temporal-rel is sorted by row-id
(ns core2.align (:require [core2.vector.indirect :as iv] [core2.vector :as vec]) (:import (core2.vector IIndirectRelation IIndirectVector) [java.util HashMap LinkedList List Map] java.util.function.BiFunction java.util.stream.IntStream org.roaringbitmap.longlo...
ea89b6e350ec63854fc14abe8521faaf802459147bdeaed5d656a1e175c80a98
AndrasKovacs/ELTE-func-lang
Interpreter.hs
# LANGUAGE RecordWildCards # module Interpreter where import Control.Monad.Identity import Control.Monad.Trans.State import Control.Monad.Trans.Except import Control.Monad.Error.Class import Data.Map (Map(..)) import qualified Data.Map as Map import Syntax newtype RTVal = RTLit Lit deriving (Eq, Ord, Show) type V...
null
https://raw.githubusercontent.com/AndrasKovacs/ELTE-func-lang/88d41930999d6056bdd7bfaa85761a527cce4113/2019-20-1/jan6-pre/Interpreter.hs
haskell
# LANGUAGE RecordWildCards # module Interpreter where import Control.Monad.Identity import Control.Monad.Trans.State import Control.Monad.Trans.Except import Control.Monad.Error.Class import Data.Map (Map(..)) import qualified Data.Map as Map import Syntax newtype RTVal = RTLit Lit deriving (Eq, Ord, Show) type V...
63163fb69593b8e17b91c6ad4be8253c4a834bb7064bd8b14f278a1eb420cc00
ds-wizard/engine-backend
List_GET.hs
module Wizard.Specs.API.Info.List_GET ( list_get, ) where import Data.Aeson (encode) import Network.HTTP.Types import Network.Wai (Application) import Test.Hspec import Test.Hspec.Wai hiding (shouldRespondWith) import Test.Hspec.Wai.Matcher import Shared.Api.Resource.Info.InfoJM () import Shared.Database.Migration....
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/b87f6d481205dd7f0f00fd770145f8ee5c4be193/engine-wizard/test/Wizard/Specs/API/Info/List_GET.hs
haskell
------------------------------------------------------------------------ GET / ------------------------------------------------------------------------ ---------------------------------------------------- ---------------------------------------------------- ---------------------------------------------------- --...
module Wizard.Specs.API.Info.List_GET ( list_get, ) where import Data.Aeson (encode) import Network.HTTP.Types import Network.Wai (Application) import Test.Hspec import Test.Hspec.Wai hiding (shouldRespondWith) import Test.Hspec.Wai.Matcher import Shared.Api.Resource.Info.InfoJM () import Shared.Database.Migration....
bdbce2390f88094d1dbda443e58afdaa7cc537da4572bf81f51696c0520edd61
tweag/ormolu
fancy-forall-1-out.hs
magnify :: forall outertag innertag t outer inner m a. ( forall x. Coercible (t m x) (m x), forall m'. (HasReader outertag outer m') => HasReader innertag inner (t m'), HasReader outertag outer m ) => (forall m'. (HasReader innertag inner m') => m' a) -> m a
null
https://raw.githubusercontent.com/tweag/ormolu/a4a9f4500b6c25f104cfbde82d9c16c6875b6d1e/data/examples/declaration/value/function/fancy-forall-1-out.hs
haskell
magnify :: forall outertag innertag t outer inner m a. ( forall x. Coercible (t m x) (m x), forall m'. (HasReader outertag outer m') => HasReader innertag inner (t m'), HasReader outertag outer m ) => (forall m'. (HasReader innertag inner m') => m' a) -> m a
3c3790b414eb483e001ffaa92b5f1c0b578d04d2a3eb145dd82665d6dc7c132e
bmeurer/ocaml-arm
command_line.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet Cr...
null
https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/debugger/command_line.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt OCaml port by and 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 . $ Id$ ...
ae59504c18a84c1bdf5fbb6245aa6c705c6979d7d3e48eea1bbbfc19eb7c1f4f
melhadad/fuf
copypath.lisp
;;; -*- Mode:Lisp; Syntax:Common-Lisp; Package: FUG5 -*- ;;; ----------------------------------------------------------------------- ;;; File: copypath.l Description : 's copying path instead of conflating Author : Created : 23 Feb 1993 ;;; Modified: Package : FUG5 ;;; ----------...
null
https://raw.githubusercontent.com/melhadad/fuf/57bd0e31afc6aaa03b85f45f4c7195af701508b8/src/copypath.lisp
lisp
-*- Mode:Lisp; Syntax:Common-Lisp; Package: FUG5 -*- ----------------------------------------------------------------------- File: copypath.l Modified: ----------------------------------------------------------------------- Permission to use, copy, and/or distribute for any purpose and without fee is ...
Description : 's copying path instead of conflating Author : Created : 23 Feb 1993 Package : FUG5 FUF - a functional unification - based text generation system . ( . 5.4 ) Copyright ( c ) 1987 - 2014 by . all rights reserved . THIS SOFTWARE IS PROVIDED ` ` AS IS '' WITHOUT EXPRE...
ce2833d1d62175f6e568f427278bf113086c30aea1008871bc39e084a0a65e31
finnishtransportagency/harja
tieluvat_kartalla.cljs
(ns harja.tiedot.tieluvat.tieluvat-kartalla (:require [harja.domain.tielupa :as tielupa] [harja.ui.kartta.esitettavat-asiat :refer [kartalla-esitettavaan-muotoon]] [harja.tiedot.tieluvat.tielupa-tiedot :as tiedot] [clojure.set :as set]) (:require-macros [reagent.ratom :refer [rea...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/110c979dc11526dcde966445e82d326b4ee05991/src/cljs/harja/tiedot/tieluvat/tieluvat_kartalla.cljs
clojure
(ns harja.tiedot.tieluvat.tieluvat-kartalla (:require [harja.domain.tielupa :as tielupa] [harja.ui.kartta.esitettavat-asiat :refer [kartalla-esitettavaan-muotoon]] [harja.tiedot.tieluvat.tielupa-tiedot :as tiedot] [clojure.set :as set]) (:require-macros [reagent.ratom :refer [rea...
005404be11fa89e9bf00912926b6fe9c89d6e0fae58c6bfda168f9f3c5b3f321
compiling-to-categories/concat
NatArr.hs
# LANGUAGE CPP # # LANGUAGE ViewPatterns # # LANGUAGE UndecidableInstances # # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeOperators # # LANGU...
null
https://raw.githubusercontent.com/compiling-to-categories/concat/49e554856576245f583dfd2484e5f7c19f688028/examples/src/ConCat/NatArr.hs
haskell
# LANGUAGE DeriveAnyClass # Needed for HasCard instances # OPTIONS -Wno-orphans # | Experiments with statically sized arrays ------------------------------------------------------------------- Domain-typed arrays ------------------------------------------------------------------- Type cardinality. • Illegal nes...
# LANGUAGE CPP # # LANGUAGE ViewPatterns # # LANGUAGE UndecidableInstances # # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeOperators # # LANGUAGE TupleSections # # LANGUAGE D...
84daf2447d338802bd4473f13a084424624ea64c05906ae42ae61776c2698bf9
talex5/ocaml-wayland
connection.ml
open Lwt.Syntax open Internal type 'a t = 'a Internal.connection (* Dispatch all complete messages in [recv_buffer]. *) let rec process_recv_buffer t recv_buffer = let* () = t.paused in match Msg.parse ~fds:t.incoming_fds (Recv_buffer.data recv_buffer) with | None -> Lwt.return_unit | Some msg -> begin ...
null
https://raw.githubusercontent.com/talex5/ocaml-wayland/1513420d35f3edb6ad2d9e1db0227e3cd9b9b76c/lib/connection.ml
ocaml
Dispatch all complete messages in [recv_buffer].
open Lwt.Syntax open Internal type 'a t = 'a Internal.connection let rec process_recv_buffer t recv_buffer = let* () = t.paused in match Msg.parse ~fds:t.incoming_fds (Recv_buffer.data recv_buffer) with | None -> Lwt.return_unit | Some msg -> begin let obj = Msg.obj msg in match Objects.find_o...
f626c2e6f70ab3966f956bc19545e7b7cc06e2b8dd660618fd742c85c4971a52
fragnix/fragnix
GHC.Char.hs
{-# LINE 1 "GHC.Char.hs" #-} # LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude , MagicHash # module GHC.Char ( -- * Utilities chr * equality operators -- | See GHC.Classes#matching_overloaded_methods_in_rules , eqChar, neChar ) where import GHC.Base import GHC.Show | The ' Prelude.t...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/builtins/base/GHC.Char.hs
haskell
# LINE 1 "GHC.Char.hs" # * Utilities | See GHC.Classes#matching_overloaded_methods_in_rules
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude , MagicHash # module GHC.Char chr * equality operators , eqChar, neChar ) where import GHC.Base import GHC.Show | The ' Prelude.toEnum ' method restricted to the type ' Data . . ' . chr :: Int -> Char chr i@(I# i#) | isTrue# (int2Word# i# `...
f6e85c0151d67c19242d87c9ee1b8cf5d2db797c9749f38caf99912c65d102ed
alpmestan/probable
simple.hs
module Main where import Control.Applicative import Control.Monad import Math.Probable import qualified Data.Vector.Unboxed as VU data Person = Person { age :: Int , weight :: Double , salary :: Int } deriving (Eq, Show) person :: RandT IO Person person = Person <$> uniformIn (1, 100) ...
null
https://raw.githubusercontent.com/alpmestan/probable/36b339bb54ddaf13b674d6ee0dee8bdcb53a721d/examples/simple.hs
haskell
module Main where import Control.Applicative import Control.Monad import Math.Probable import qualified Data.Vector.Unboxed as VU data Person = Person { age :: Int , weight :: Double , salary :: Int } deriving (Eq, Show) person :: RandT IO Person person = Person <$> uniformIn (1, 100) ...
8d2f79d06c56b0de230fdc8b7e70b8ff1d664cd2ddce08a718467f80e06fba61
appleshan/cl-http
tcp-stream.lisp
;;; -*- Mode: lisp; Package: IPC; -*- ;;; LispWorks 4 interface to TCP / IP streams ;;; Copyright ( C ) 1997 - 2000 Xanalys Inc. All rights reserved . ;;; Enhancements Copyright ( C ) 2003 , 2006 , . All rights reserved . ;;; (in-package :IPC) Added SSL support conditionalized by # + CL - HTTP - SSL -- J...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lw/server/tcp-stream.lisp
lisp
-*- Mode: lisp; Package: IPC; -*- released system pending investigation of a memory corruption bug. 12/17/2003 -- JCMa. ssl-condition ssl-closed - The condition class ssl-closed corresponds to SSL_ERROR_ZERO_RETURN . It means the underlying socket is dead. ssl-error - The condition class ssl-er...
LispWorks 4 interface to TCP / IP streams Copyright ( C ) 1997 - 2000 Xanalys Inc. All rights reserved . Enhancements Copyright ( C ) 2003 , 2006 , . All rights reserved . (in-package :IPC) Added SSL support conditionalized by # + CL - HTTP - SSL -- JCMa 3/24/2006 Some optimization declarations condit...
5cab4f4975d6c3fdd35fe1fb9e42522ed1731ee4e14bfda9e83b36583e410144
tpapp/cl-random
continuous-time.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Coding : utf-8 -*- (in-package #:cl-random) (define-rv r-uniformized-markov-jump (rates &key transition-rate keys no-change) (:documentation "Define a random variable for uniformized markov jumps, which returns two values: the time spent in the state, and the inde...
null
https://raw.githubusercontent.com/tpapp/cl-random/5bb65911037f95a4260bd29a594a09df3849f4ea/src/continuous-time.lisp
lisp
Syntax : ANSI - Common - Lisp ; Coding : utf-8 -*- (assert (every #'plusp rates) () "Rates need to be positive.")
(in-package #:cl-random) (define-rv r-uniformized-markov-jump (rates &key transition-rate keys no-change) (:documentation "Define a random variable for uniformized markov jumps, which returns two values: the time spent in the state, and the index of the next state (or the corresponding element in KEYS, which is a v...
1af35fa348e4736c30e7c9f6c58c3f241693af28b42a4522ab3691bb18195252
heraldry/heraldicon
highlight.cljs
(ns heraldicon.frontend.highlight) (def ^:private pattern-id "selected-pattern") (def fill-url (str "url(#" pattern-id ")")) (defn defs [& {:keys [scale] :or {scale 1}}] [:defs (let [size (* 2 scale) r (* 0.25 scale)] [:pattern {:id pattern-id :width size ...
null
https://raw.githubusercontent.com/heraldry/heraldicon/c1d5afdc61919f9eccd2c274cb46274467d39768/src/heraldicon/frontend/highlight.cljs
clojure
(ns heraldicon.frontend.highlight) (def ^:private pattern-id "selected-pattern") (def fill-url (str "url(#" pattern-id ")")) (defn defs [& {:keys [scale] :or {scale 1}}] [:defs (let [size (* 2 scale) r (* 0.25 scale)] [:pattern {:id pattern-id :width size ...
3b58f5fdefd2af77b3b76e2249a0dd45aff36a382f02050fdfbc9ea254bcc41a
erlang/otp
systools_make.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2022 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/c696ab8951f3a02dd588e686bd041c6259bede7f/lib/sasl/src/systools_make.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 1996 - 2022 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(systools_make). Purpose : Create start script . RelName.rel -- > RelName.{script , boot } . -export([make...
1d0de20a3126cd722f5a3102d23514985a2028648435e776e0fa78f656a6a150
aigarashi/copl-tools
pp.ml
open Format open Core let g = "MLi" let pr = fprintf (* generic functions to generate parens depending on precedence *) let with_paren lt ppf_e e_up ppf e = let (<) = lt in if e < e_up then pr ppf "(%a)" ppf_e e else pr ppf "%a" ppf_e e (* precedence for expressions *) let rec is_last_longexp = function Bin...
null
https://raw.githubusercontent.com/aigarashi/copl-tools/3c4da117083a0870334c8eef270206b11060514e/checker/EvalML1/pp.ml
ocaml
generic functions to generate parens depending on precedence precedence for expressions if e is the left operand of e_up, do you need parentheses for e? mult associates stronger than plus or minus if e is the right operand of e_up, do you need parentheses for e? mult associates stronger than plus or minus, ...
open Format open Core let g = "MLi" let pr = fprintf let with_paren lt ppf_e e_up ppf e = let (<) = lt in if e < e_up then pr ppf "(%a)" ppf_e e else pr ppf "%a" ppf_e e let rec is_last_longexp = function BinOp(_,_,e) -> is_last_longexp e | If(_,_,_) -> true | _ -> false let (<) e e_up = match e, e_up ...
df1795440d0c37729db3327d69419ed29df1c8dbcfc6e415051bc0c6cf031e92
kidpollo/jackdaw-literate-examples
exception.clj
(ns prod-app.exception (:require [prod-app.log :as log] [honeybadger.core :as honeybadger] [integrant.core :as ig])) (def magic-keys "The keys that honeybadger treats special in its metadata." [:tags :component :action :context :request]) (defn with-app-meta [app raw-metadata] (assoc...
null
https://raw.githubusercontent.com/kidpollo/jackdaw-literate-examples/9f3eca7415c0c4d460ab114eca675901a6c32114/prod-app/src/prod_app/exception.clj
clojure
all the special keys are in this map this may be a no-op
(ns prod-app.exception (:require [prod-app.log :as log] [honeybadger.core :as honeybadger] [integrant.core :as ig])) (def magic-keys "The keys that honeybadger treats special in its metadata." [:tags :component :action :context :request]) (defn with-app-meta [app raw-metadata] (assoc...
53bfd5bb34cad1a43222d834dea7171239e9c0933f8bdeb79613b24e1955ec36
intermine/bluegenes
events.cljs
(ns bluegenes.components.tools.events (:require [re-frame.core :as re-frame :refer [reg-event-db reg-event-fx reg-fx dispatch subscribe]] [bluegenes.effects :as fx] [bluegenes.crud.tools :as crud])) (reg-event-fx ::fetch-tools (fn [{db :db} [evt]] {:db db ::fx/http {:method :get ...
null
https://raw.githubusercontent.com/intermine/bluegenes/77d3d011b2c8436633d1f711e70c4ec943d9b46d/src/cljs/bluegenes/components/tools/events.cljs
clojure
Use :dispatch-after-boot since [:results :queries] is cleared when switching mines.
(ns bluegenes.components.tools.events (:require [re-frame.core :as re-frame :refer [reg-event-db reg-event-fx reg-fx dispatch subscribe]] [bluegenes.effects :as fx] [bluegenes.crud.tools :as crud])) (reg-event-fx ::fetch-tools (fn [{db :db} [evt]] {:db db ::fx/http {:method :get ...
cf9ad79fe3f1fb41918969f00ea45134089f6d75a9e7c10244a4b20c95294b60
samth/gcstats
info.rkt
#lang setup/infotab (define collection 'multi) (define deps '("base"))
null
https://raw.githubusercontent.com/samth/gcstats/c1112a07155f2a8e8a8ad999c9980d544d56b970/info.rkt
racket
#lang setup/infotab (define collection 'multi) (define deps '("base"))
9d29a32dfc6730cf4092c2552ec5222dad7547d8556f2187681464a53980df66
Kalimehtar/gtk-cffi
table.lisp
(in-package :gtk-cffi) (defclass table (container) ()) (defcfun gtk-table-new :pointer (rows :uint) (columns :uint) (homogeneous :boolean)) (defmethod gconstructor ((table table) &key homogeneous (rows 1) (columns 1) &allow-other-keys) (gtk-table-new rows co...
null
https://raw.githubusercontent.com/Kalimehtar/gtk-cffi/fbd8a40a2bbda29f81b1a95ed2530debfe2afe9b/gtk/table.lisp
lisp
(in-package :gtk-cffi) (defclass table (container) ()) (defcfun gtk-table-new :pointer (rows :uint) (columns :uint) (homogeneous :boolean)) (defmethod gconstructor ((table table) &key homogeneous (rows 1) (columns 1) &allow-other-keys) (gtk-table-new rows co...
b06b1930050af1c4d64155c6b62cd2ba06bbbae63aa4ec11c0328ef35bf41ede
theiceshelf/trunk
components.cljs
(ns app.renderer.components (:require [app.renderer.events :as events :refer [|>]] [app.renderer.subs :as subs :refer [<|]] [app.shared.ipc-events :refer [s-ev]] [app.shared.util :as u] [reagent.core :as r] [re-frame.core :as rf])) (defn input-label [label-text] [:label.flex.mb-2.text-xs.italic...
null
https://raw.githubusercontent.com/theiceshelf/trunk/d6e275bcfb7ae6cc23b5f9e3e2f39186a74544ec/src/app/renderer/components.cljs
clojure
patch on-change to alter the internal state to show the field has been touched current-article (<| [::subs/current-article]) NOTE: show the currently reading article in the nav: not sure I want this as part of the ux so I'm commenting out for now. newlines that are just from textarea... it's a phrase ie - it's p...
(ns app.renderer.components (:require [app.renderer.events :as events :refer [|>]] [app.renderer.subs :as subs :refer [<|]] [app.shared.ipc-events :refer [s-ev]] [app.shared.util :as u] [reagent.core :as r] [re-frame.core :as rf])) (defn input-label [label-text] [:label.flex.mb-2.text-xs.italic...
4f7b37dc8acd8de343734f89de89581492057a219788b9e79caea2d3120aab91
denisidoro/rosebud
config.clj
(ns quark.beta.server.protocols.config "Store and retrieve the last error for debugging purposes.") (defprotocol Config "Runtime configuration" (get! [component config-path] "Get an item based on a [:path :to :item], or raise an exception if not found.") (get-env-var [component name fallback]) (get-optional ...
null
https://raw.githubusercontent.com/denisidoro/rosebud/90385528d9a75a0e17803df487a4f6cfb87e981c/server/src/quark/beta/server/protocols/config.clj
clojure
(ns quark.beta.server.protocols.config "Store and retrieve the last error for debugging purposes.") (defprotocol Config "Runtime configuration" (get! [component config-path] "Get an item based on a [:path :to :item], or raise an exception if not found.") (get-env-var [component name fallback]) (get-optional ...
c34c3ed24dc6cba16ab55cbbbb2f81094ae5ea4afbe640d7c1343e4d2bc93f2e
ksseono/the-joy-of-clojure
externs_for_cljs.clj
(ns joy.externs-for-cljs (:require [cljs.compiler :as comp] [cljs.analyzer :as ana] [clojure.walk :refer [prewalk]] [clojure.pprint :refer [pprint]] [clojure.java.io :as io]) (:import (clojure.lang LineNumberingPushbackReader))) (def code-string "(defn hello [x] (js/...
null
https://raw.githubusercontent.com/ksseono/the-joy-of-clojure/4fee3fb2750236b85b59ae9d7a83e0929040e4f0/src/clj/ch13/joy/externs_for_cljs.clj
clojure
{:op :def, :form :name cljs.user/hello, :children [{:op :fn, :form (fn* ([x] (js/alert (pr-str 'greetings x)))), :name {:name hello}, :children [{:op :do, :form (do (js/alert (pr-str 'greetings x))), :children [{:op :invoke, :form (js/alert (pr-str 'greetings x)), ...
(ns joy.externs-for-cljs (:require [cljs.compiler :as comp] [cljs.analyzer :as ana] [clojure.walk :refer [prewalk]] [clojure.pprint :refer [pprint]] [clojure.java.io :as io]) (:import (clojure.lang LineNumberingPushbackReader))) (def code-string "(defn hello [x] (js/...
24da67a52f326324e0bdd9ed2e08b5e5569dee75e6a7da181e59c24468a47566
typedclojure/typedclojure
reify.clj
Copyright ( c ) , contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/668ee1ef3953eb37f2c748209a6ad25bbfb6165c/typed/clj.checker/src/typed/clj/checker/check/reify.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , contributors . TODO share with typed.clj.checker.check.deftype (ns typed.clj.checker.check.reify (:require [clojure.core.typed.errors :as err] [typed.cljc.checker.type-ctors :as c] [typed.cljc.checker.type-rep :as r] [clojure.core.typed.util-vars :as v...
8b5a208d91486173d07a8432507cb190b448e01096d84edf641901f2c71d5f68
lambdageek/centrinel
Env.hs
-- | Defines the environment type for the naked pointer analysis module Centrinel.NakedPointer.Env where import Centrinel.Data.CodePosition (NPEPosn) -- | The environment for the naked pointer analysis data AnalysisEnv = AnalysisEnv { _analysisPosn :: NPEPosn -- ^ position to report if analysis finds a problem ...
null
https://raw.githubusercontent.com/lambdageek/centrinel/412b620b77c6cb569811fec845b89d04585c1332/src/Centrinel/NakedPointer/Env.hs
haskell
| Defines the environment type for the naked pointer analysis | The environment for the naked pointer analysis ^ position to report if analysis finds a problem ^ 'True' if analysis is suppressed by a local pragma
module Centrinel.NakedPointer.Env where import Centrinel.Data.CodePosition (NPEPosn) data AnalysisEnv = AnalysisEnv { } analysisPosn :: Functor f => (NPEPosn -> f NPEPosn) -> AnalysisEnv -> f AnalysisEnv analysisPosn inj (AnalysisEnv p s) = flip AnalysisEnv s <$> inj p # INLINE analysisPosn # analysisSuppress :...
b974fcb9d2f1fd2407192d23359da240a4ae5aae42fceb4a7a1798955ff2e8eb
modular-macros/ocaml-macros
parse.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/parsing/parse.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the let rec skip_phrase lexbuf = try match Lexer.token lexbuf with Parser.SEMISEMI | Parser.EOF...
3a7365abf73090e989bafa240abc866801d63b50cf4c5440cd4955ed7e218e17
ghcjs/jsaddle-dom
SVGTests.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.SVGTests (hasExtension, hasExtension_, getRequiredFeatures, getRequiredExtensions, getSystemLanguage, SVGTe...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/SVGTests.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/SVGTests.hasExtension Mozilla SVGTests.hasExtension documentation> | <-US/docs/Web/API/SVGTests.hasExtension Mozilla SVGTests.hasExtension documentation> | <-US/docs/Web/API/SVGTests.requiredFeatures Mo...
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.SVGTests (hasExtension, hasExtension_, getRequiredFeatures, getRequiredExtensions, getSystemLanguage, SVGTests(..), gTypeSVGTests, IsSVGTests, toSVGTests) where import Prelude ((.), (==), (>>...
0269a295927fb12f2b24944f24fa58bf35770d9ab0cdb01e73907d09d3220342
moss/haskell-roguelike-challenge
rfk.hs
module RobotFindsKitten where import Control.Monad import Data.List import System.Console.ANSI import System.IO import System.Random type Position = (Int, Int) data GameState = Playing Position | FoundKitten | FoundNKI | Over deriving (Eq) data Command = MoveLeft ...
null
https://raw.githubusercontent.com/moss/haskell-roguelike-challenge/2163c3aa6f14051bc2360de0d7a1694b54ef73a3/6-robot-finds-kitten/rfk.hs
haskell
>>> chunkyscanl (\ latest new -> [latest + new]) 0 [1,2,3] [0,1,3,6] |Show a simple representation of a series of gameplay states |Play a game |takeThrough, applied to a predicate @p@ and a list @xs@, returns the [1,2,3]
module RobotFindsKitten where import Control.Monad import Data.List import System.Console.ANSI import System.IO import System.Random type Position = (Int, Int) data GameState = Playing Position | FoundKitten | FoundNKI | Over deriving (Eq) data Command = MoveLeft ...
b29368d23c871a064a82a44dd386103fdcfb2ed29d16690b02a63d5e3db7bcd3
commsor/titanoboa
api.clj
Copyright ( c ) Commsor Inc. All rights reserved . ; The use and distribution terms for this software are covered by the ; GNU Affero General Public License v3.0 (/#AGPL) ; which can be found in the LICENSE at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; th...
null
https://raw.githubusercontent.com/commsor/titanoboa/ffe3e1e58f89169092d7b6a3a45e1707a0ecc9ee/src/clj/titanoboa/api.clj
clojure
The use and distribution terms for this software are covered by the GNU Affero General Public License v3.0 (/#AGPL) which can be found in the LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice,...
Copyright ( c ) Commsor Inc. All rights reserved . (ns titanoboa.api (:require [com.stuartsierra.component :as component] [clojure.tools.logging :as log] [clojure.core.async :as async :refer [>!! <!! chan]] [titanoboa.system :as system] [titanoboa.util :as util] ...
7f512b5a9b25c08a2cd4ab701942ca6558d74f12a496190c2cc72354b67a9791
Perry961002/SICP
exa2.1.1-rational-number.scm
(load "Chap1\\example\\exa1.2.5-GCD.scm") 返回一个有理数 , (define (make-rat n d) (let ((g (gcd n d))) (cons (/ n g) (/ d g)))) 取得分子 (define (number x) (car x)) ;取得分母 (define (denom x) (cdr x)) ;打印一个有理数 (define (print-rat x) (newline) (display (number x)) (display "/") (display (denom x)))...
null
https://raw.githubusercontent.com/Perry961002/SICP/89d539e600a73bec42d350592f0ac626e041bf16/Chap2/example/exa2.1.1-rational-number.scm
scheme
取得分母 打印一个有理数 两个有理数相加 减法 乘法 除法 判断相等
(load "Chap1\\example\\exa1.2.5-GCD.scm") 返回一个有理数 , (define (make-rat n d) (let ((g (gcd n d))) (cons (/ n g) (/ d g)))) 取得分子 (define (number x) (car x)) (define (denom x) (cdr x)) (define (print-rat x) (newline) (display (number x)) (display "/") (display (denom x))) (define (add-r...
e8a6804a09e8a07feadc5761273be768fe0be1684eeee313a43e05377881bcdc
emqx/minirest
minirest_json_encoder.erl
Copyright ( c ) 2013 - 2022 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law...
null
https://raw.githubusercontent.com/emqx/minirest/e08265f8d5a2ce157912614e7c6293c7c1528ab1/src/body_encoder/minirest_json_encoder.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright ( c ) 2013 - 2022 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(minirest_json_encoder). -include("minirest_http.hrl"). -export([encode/1]). encode(Bod...
0fd26dda9c29f76c0c87da09512c78f42870a5dfeeb6c62cbc9fa65dc0fbf98e
haroldcarr/learn-haskell-coq-ml-etc
Lec4HS.hs
module Lec4HS where import System.IO mainLoop :: s -> (s -> Bool -> ([Bool], Maybe s)) -> IO () mainLoop s f = do hSetBuffering stdout NoBuffering hSetBuffering stdin NoBuffering hSetEcho stdin False innerLoop s where getBit = do c <- getChar case c of '0' -> return False ...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/56093b549c1b715ee76581fb65e2c371dba3f455/agda/course/2017-conor_mcbride_cs410/CS410-17-master/lectures/Lec4HS.hs
haskell
module Lec4HS where import System.IO mainLoop :: s -> (s -> Bool -> ([Bool], Maybe s)) -> IO () mainLoop s f = do hSetBuffering stdout NoBuffering hSetBuffering stdin NoBuffering hSetEcho stdin False innerLoop s where getBit = do c <- getChar case c of '0' -> return False ...
8724edf7d706f3fa35e38380d4bc5957a15c77e3818be5980eb96ca0320e38f1
pablomarx/Thomas
common.scm
* Copyright 1992 Digital Equipment Corporation ;* All Rights Reserved ;* ;* Permission to use, copy, and modify this software and its documentation is ;* hereby granted only under the following terms and conditions. Both the ;* above copyright notice and this permission notice mus...
null
https://raw.githubusercontent.com/pablomarx/Thomas/c8ab3f6fa92a9a39667fe37dfe060b651affb18e/src/common.scm
scheme
* All Rights Reserved * * Permission to use, copy, and modify this software and its documentation is * hereby granted only under the following terms and conditions. Both the * above copyright notice and this permission notice must appear in all copies * of the software, derivative works or modi...
* Copyright 1992 Digital Equipment Corporation * and hereby grant back to Digital a non - exclusive , unrestricted , royalty - free * their best efforts to return to Digital any such changes , enhancements or * extensions that they make and inform Digital of noteworthy uses of this * software . Correspo...
ff3326cc3d0f3c32387f76a42cebc0c4b9172bacaf8aa153712dc4fb573ba9aa
melhadad/fuf
generator.lisp
;;; -*- Mode:Lisp; Syntax:Common-Lisp; Package:FUG5 -*- ;;; ----------------------------------------------------------------------- ;;; File : GENERATOR.L ;;; Description: Generator manipulation functions Author : Created : 22 - Jul-87 ;;; Modified : 02-Nov-87 17 May 90 : moved m...
null
https://raw.githubusercontent.com/melhadad/fuf/57bd0e31afc6aaa03b85f45f4c7195af701508b8/src/generator.lisp
lisp
-*- Mode:Lisp; Syntax:Common-Lisp; Package:FUG5 -*- ----------------------------------------------------------------------- File : GENERATOR.L Description: Generator manipulation functions Modified : 02-Nov-87 Tag file: TAGS ----------------------------------------------------------------------- ...
Author : Created : 22 - Jul-87 17 May 90 : moved macros to macros.l 17 Dec 91 : renamed first to gen - first Package : FUG5 Macros : empty , freeze , cons - gen FUF - a functional unification - based text generation system . ( . 5.4 ) Copyright ( c ) 1987...
b8e6ab6dfeb036c3803ddfdbaa6b82a1e8b1a863d5c517aa856d725f71c3aea3
pink-gorilla/notebook
services.clj
(ns pinkgorilla.notebook-ui.app.services (:require [taoensso.timbre :refer [info warn]] ; webly [webly.config :refer [get-in-config]] [webly.web.handler :refer [add-ring-handler]] ; explorer [pinkgorilla.explore.handler :refer [explore-directories-start]] [pinkgorilla.explorer.default-config] ; s...
null
https://raw.githubusercontent.com/pink-gorilla/notebook/e25bfb57a9ad4595e34175a57eb65a767206c260/src/pinkgorilla/notebook_ui/app/services.clj
clojure
webly explorer side-effects side-effects nrepl relay notebook app goldly relay: see resources/config.edn :jetty-ws
(ns pinkgorilla.notebook-ui.app.services (:require [taoensso.timbre :refer [info warn]] [webly.config :refer [get-in-config]] [webly.web.handler :refer [add-ring-handler]] [pinkgorilla.explore.handler :refer [explore-directories-start]] [picasso.default-config] [pinkgorilla.nrepl.relay.jetty :as rel...
4504e17082e4249e526b87d36934e936d718d89e14d3de8f67621416d39c0ff4
dyzsr/ocaml-selectml
ccomp.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/utils/ccomp.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the let command cmdline = if !Clflags.verbose then begin prerr_string "+ "; prerr_string cmdline; ...
74aefca17204dd2c3eec33eeb3aa5eaf62481982c3127f593dc54ac1ed25d8a4
noinia/hgeometry
IntersectionSpec.hs
# LANGUAGE UnicodeSyntax # module Geometry.IntersectionSpec where import Data.Ext import Geometry.Line import Geometry.LineSegment import Geometry.Point import Geometry.Polygon import Data.Intersection import Data.Proxy import Data.RealNumber.Rational import Data.Vinyl import Paths_hgeometry import Test.Hspec import T...
null
https://raw.githubusercontent.com/noinia/hgeometry/89cd3d3109ec68f877bf8e34dc34b6df337a4ec1/hgeometry/test/src/Geometry/IntersectionSpec.hs
haskell
------------------------------------------------------------------------------ |
# LANGUAGE UnicodeSyntax # module Geometry.IntersectionSpec where import Data.Ext import Geometry.Line import Geometry.LineSegment import Geometry.Point import Geometry.Polygon import Data.Intersection import Data.Proxy import Data.RealNumber.Rational import Data.Vinyl import Paths_hgeometry import Test.Hspec import T...
9f94f90c82455e0082d8d2058c160ea7e00006ae4eaf6ab9c3c87a00f62cfd3f
serras/hinc
Main.hs
# language NamedFieldPuns # {-# language OverloadedStrings #-} # language RecordWildCards # module Main where import Data.List (intercalate) import Hinc.Parser import Language.Haskell.Exts.Pretty (Pretty, prettyPrint) import Miso import Miso....
null
https://raw.githubusercontent.com/serras/hinc/219b9b15050d9684d7d55cb7edd3191c49f23835/web/Main.hs
haskell
# language OverloadedStrings #
# language NamedFieldPuns # # language RecordWildCards # module Main where import Data.List (intercalate) import Hinc.Parser import Language.Haskell.Exts.Pretty (Pretty, prettyPrint) import Miso import Miso.String (JSString, ...
f2a904c3a89ad4c99c6ca0761faf547f7a94fded79266e6f30364b2d439be906
haskell-unordered-containers/unordered-containers
HashMapStrict.hs
# LANGUAGE CPP # #define STRICT #include "HashMapLazy.hs"
null
https://raw.githubusercontent.com/haskell-unordered-containers/unordered-containers/c48237994d8a2476c5029e494feb052a7354e29a/tests/Properties/HashMapStrict.hs
haskell
# LANGUAGE CPP # #define STRICT #include "HashMapLazy.hs"
a494691c5b694dd088f456c1885ec1a56c6d9e55ec8e05905dd1df84da9e64d6
dgiot/dgiot
dgiot_udp_channel.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy...
null
https://raw.githubusercontent.com/dgiot/dgiot/a6b816a094b1c9bd024ce40b8142375a0f0289d8/apps/dgiot_bridge/src/channel/dgiot_udp_channel.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(dgiot_udp_channel). -behavior(dgiot_channelx). -include_lib("dgiot/include/logger.hrl"...
90a464357bd05325cdb4fd0218ca63e22c78f75f9b296d82355653114d5def09
pezipink/Pisemble
info.rkt
#lang info (define collection "pisemble") (define version "0.1.0") (define deps '("base")) (define build-deps '("scribble-lib" "racket-doc")) (define pkg-desc "ARM assembler") (define pkg-authors '("")) (define scribblings '(("pisemble/pisemble.scrbl" ())))
null
https://raw.githubusercontent.com/pezipink/Pisemble/ee6bf264bc8f9fb2b0d5b51c9a76503e3e80f768/info.rkt
racket
#lang info (define collection "pisemble") (define version "0.1.0") (define deps '("base")) (define build-deps '("scribble-lib" "racket-doc")) (define pkg-desc "ARM assembler") (define pkg-authors '("")) (define scribblings '(("pisemble/pisemble.scrbl" ())))
453a84496721224d43c650c29ced4fbeffbc0922c6f7e60ff2d1cdde42e7e5a2
dradtke/Lisp-Text-Editor
font.lisp
(in-package :cl-cairo2) ;;;; TODO: ;;;; ;;;; - text clusters (maybe) ;;;; ;;;; NOT TODO: ;;;; ;;;; - cairo_scaled_font_text_to_glyphs: this seems to be essentially identical to the toy interface , and neither Quartz nor ;;;; backends even seem to implement this, and there doesn't seem to ;;;; be a way to tell...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/cl-cairo2-20120208-git/src/font.lisp
lisp
TODO: - text clusters (maybe) NOT TODO: - cairo_scaled_font_text_to_glyphs: this seems to be essentially backends even seem to implement this, and there doesn't seem to be a way to tell. I'm not sure what the point is. Types These are mostly for specialization; specific implementations are Generic Func...
(in-package :cl-cairo2) identical to the toy interface , and neither Quartz nor needed to get a useful instance ( FreeType , etc ) . (defclass font-face (cairo-object) ()) (defclass scaled-font (cairo-object) ((font-face :initarg :font-face :initform nil :accessor scaled-font-face))) (defcla...
7c8c6683ebacfeb8f67469b2baf0557b6e56d11675df0cd4dee0df42a9286426
MinaProtocol/mina
mina_net2.mli
* An interface to limited libp2p functionality for Coda to use . A subprocess is spawned to run the go - libp2p code . This module communicates with that subprocess over an ad - hoc RPC protocol . TODO : separate internal helper errors from underlying libp2p errors . In general , functions in...
null
https://raw.githubusercontent.com/MinaProtocol/mina/a1185fc7b207cfec2a652ef7f3fdc3d9b2e202ea/src/lib/mina_net2/mina_net2.mli
ocaml
* Handle to all network functionality. * Formats this keypair to a comma-separated list of public key, secret key, and peer_id. * Undo [to_string t]. Only fails if the string has the wrong format, not if the embedded keypair data is corrupt. * [create ~logger ~conf_dir] starts a new [net] storing its st...
* An interface to limited libp2p functionality for Coda to use . A subprocess is spawned to run the go - libp2p code . This module communicates with that subprocess over an ad - hoc RPC protocol . TODO : separate internal helper errors from underlying libp2p errors . In general , functions in...
20cba054265a58936ee5c0ddd3ef30059f708165bffa01562896fda46153b923
philnguyen/json-type-provider
read.rkt
#lang typed/racket/base ;; Originally copied and modified from `json` package (provide JSNum Reader read-number read-integer read-float read-a-string read-bool read-true read-false read-null read-fold read-list read-list-rest read-empty-list skip-json make-sequence-reader skip-whitespace bad-inpu...
null
https://raw.githubusercontent.com/philnguyen/json-type-provider/f96d3f212519f4ff2aef828e7b891971b82babb8/json-type-provider/read.rkt
racket
Originally copied and modified from `json` package Readers for base types also we want to report decoding errors Combinators for reading lists and objects Helpers Check for delimiter, defined for our purposes as matching #rx"\\b":
#lang typed/racket/base (provide JSNum Reader read-number read-integer read-float read-a-string read-bool read-true read-false read-null read-fold read-list read-list-rest read-empty-list skip-json make-sequence-reader skip-whitespace bad-input err ) (require racket/match (only-in rac...
2c989d12752b01dfc4846786746a8e0769e0e16cbbbedd9d51bdbb82a865bb91
circuithub/rel8
Information.hs
# language GADTs # # language NamedFieldPuns # # language StandaloneKindSignatures # module Rel8.Type.Information ( TypeInformation(..) , mapTypeInformation , parseTypeInformation ) where -- base import Data.Bifunctor ( first ) import Data.Kind ( Type ) import Prelude -- hasql import qualified Hasql.Decoders...
null
https://raw.githubusercontent.com/circuithub/rel8/93638f8bdf98023fb5ac2d9b38867af51561a063/src/Rel8/Type/Information.hs
haskell
base hasql opaleye text from database queries. The @typeName@ is the name of the type in the database, which is used to accurately type literals. ^ The name of the SQL type. | Simultaneously map over how a type is both encoded and decoded, while retaining the name of the type. This operation is useful if you ...
# language GADTs # # language NamedFieldPuns # # language StandaloneKindSignatures # module Rel8.Type.Information ( TypeInformation(..) , mapTypeInformation , parseTypeInformation ) where import Data.Bifunctor ( first ) import Data.Kind ( Type ) import Prelude import qualified Hasql.Decoders as Hasql import...
32ce1c42bad96120da387e21cf0eb00ea4d0d05e7c682eed62f9f110b85f3021
ml-in-barcelona/server-reason-react
belt_Array.ml
external length : 'a array -> int = "%array_length" external size : 'a array -> int = "%array_length" external getUnsafe : 'a array -> int -> 'a = "%array_unsafe_get" external setUnsafe : 'a array -> int -> 'a -> unit = "%array_unsafe_set" let getUndefined arr i = try Js.fromOpt (Some arr.(i)) with Invalid_argument ...
null
https://raw.githubusercontent.com/ml-in-barcelona/server-reason-react/a5d22907eb2633bcb8e77808f6c677802062953a/lib/belt/belt_Array.ml
ocaml
external length : 'a array -> int = "%array_length" external size : 'a array -> int = "%array_length" external getUnsafe : 'a array -> int -> 'a = "%array_unsafe_get" external setUnsafe : 'a array -> int -> 'a -> unit = "%array_unsafe_set" let getUndefined arr i = try Js.fromOpt (Some arr.(i)) with Invalid_argument ...
93f1548d8f34cedc0d3869d39d0566c37cef6a8de390dae61f497320031b95cf
MyDataFlow/ttalk-server
eunit_SUITE.erl
Copyright ( c ) 2013 - 2014 , < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISC...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/cowboy/test/eunit_SUITE.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2013 - 2014 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(eunit_SUITE). -compile(export_all). all() ->...
0a0b677573f142ae8ebc96664f1752990f864436bcdef11d82ea9117cb16f391
ubf/ubf-redis
ruf_driver.erl
%%% -*- mode: erlang -*- %%% %%% The MIT License %%% Copyright ( C ) 2012 - 2016 by < > %%% %%% 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 l...
null
https://raw.githubusercontent.com/ubf/ubf-redis/737c3c47ebeae76ab8d3758bed7b4f3eb22b13ea/src/ruf_driver.erl
erlang
-*- mode: erlang -*- The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following ...
Copyright ( C ) 2012 - 2016 by < > in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , E...
c20549797ac6e9ac3a50e6b491482b2b0c96b09cb4338082dd44f1ddefdf20e2
wdhowe/telegrambot-lib
games.clj
(ns telegrambot-lib.api.games "Telegram Bot API Games - function implementations. - <#games> Most functions are multi-arity with the following options: - Send all parameters in a 'content' map. - Send only the required parameters as simple values. - Send the required paraemters as simple values and th...
null
https://raw.githubusercontent.com/wdhowe/telegrambot-lib/590ed016f0dca394559f29ade8bb7ddddaeffa1a/src/telegrambot_lib/api/games.clj
clojure
a bot instance target chat id serves as unique id for the game id of the target thread of the forum. send message silently protect content from forwarding/saving id of original message true to send message even if replied-to message is not found inline keyboard markup" a bot instance id of target chat id of...
(ns telegrambot-lib.api.games "Telegram Bot API Games - function implementations. - <#games> Most functions are multi-arity with the following options: - Send all parameters in a 'content' map. - Send only the required parameters as simple values. - Send the required paraemters as simple values and th...
d317a46f3ba0aa26e68334bb56f9e22ce7f70c0369da7899ccd108e39b9b3972
lpeterse/koka
Newtypes.hs
------------------------------------------------------------------------------ Copyright 2012 Microsoft Corporation . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the ro...
null
https://raw.githubusercontent.com/lpeterse/koka/43feefed258b9a533f07967d3f8867b02384df0e/src/Kind/Newtypes.hs
haskell
---------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the --------------------------------------------------------------------------- Map type names to type definition schemes. ------------------------------------------...
Copyright 2012 Microsoft Corporation . terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the root of this distribution . Newtypes, DataInfo(..) , newtypesEmpty, newtypesExtend, newtypesLookup, newtypesFind ...
eb08000e04a1477f271cfd42fb34a324f5d64c213729c63a5434f44e1a97f802
quil/quil
calculation.cljc
(ns quil.snippets.math.calculation (:require #?(:clj [quil.snippets.macro :refer [defsnippet]]) [quil.core :as q :include-macros true] quil.snippets.all-snippets-internal) #?(:cljs (:use-macros [quil.snippets.macro :only [defsnippet]]))) (defsnippet abs "abs" {} (q/background 25...
null
https://raw.githubusercontent.com/quil/quil/1f214e712d834ede311fdc652eafe9cc0232c96e/src/cljc/quil/snippets/math/calculation.cljc
clojure
(ns quil.snippets.math.calculation (:require #?(:clj [quil.snippets.macro :refer [defsnippet]]) [quil.core :as q :include-macros true] quil.snippets.all-snippets-internal) #?(:cljs (:use-macros [quil.snippets.macro :only [defsnippet]]))) (defsnippet abs "abs" {} (q/background 25...
7e8462846bcc692c4aafd31168afafaf536c09ad7784edfe72ef6e1bef064210
tonyg/kali-scheme
type.scm
Copyright ( c ) 1994 . See file COPYING . (define-record-type base-type (name uid ; an integer ) ()) (define-record-discloser type/base-type (lambda (base-type) (list (base-type-name base-type) (base-type-uid base-type)))) (define *next-base-type-uid* 0) (define (next-base-type-uid)...
null
https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/ps-compiler/prescheme/type.scm
scheme
an integer no value single value an alias -------------------------------------------------- This won't terminate on recursive types. -------------------------------------------------- All done together to simplify the type walking set when finalized Pointer Tuple (used for arguments and returning multiple val...
Copyright ( c ) 1994 . See file COPYING . (define-record-type base-type (name ) ()) (define-record-discloser type/base-type (lambda (base-type) (list (base-type-name base-type) (base-type-uid base-type)))) (define *next-base-type-uid* 0) (define (next-base-type-uid) (let ((x *next-base-typ...
dea09d352762167c881e4fa4f5e80a901a8c669de9a6392f8453a9987916344e
aws-beam/aws-erlang
aws_mobile_analytics.erl
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! See -beam/aws-codegen for more details . @doc Amazon Mobile Analytics is a service for collecting , visualizing , and %% understanding app usage data at scale. -module(aws_mobile_analytics). -export([put_events/2, put_events/3]). -include_lib("hackney/includ...
null
https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_mobile_analytics.erl
erlang
WARNING: DO NOT EDIT, AUTO-GENERATED CODE! understanding app usage data at scale. ==================================================================== API ==================================================================== attribute or metric values. ===============================================================...
See -beam/aws-codegen for more details . @doc Amazon Mobile Analytics is a service for collecting , visualizing , and -module(aws_mobile_analytics). -export([put_events/2, put_events/3]). -include_lib("hackney/include/hackney_lib.hrl"). @doc The PutEvents operation records one or more events . You...
309acc0d1565e55d78a1bec26a9b7440afc46f1ca8698c5ba1e9b3f804758573
haskell-servant/servant
StreamSpec.hs
{-# LANGUAGE CPP #-} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # {-# LANGUAGE GADTs #-} # LANGU...
null
https://raw.githubusercontent.com/haskell-servant/servant/d06b65c4e6116f992debbac2eeeb83eafb960321/servant-client/test/Servant/StreamSpec.hs
haskell
# LANGUAGE CPP # # LANGUAGE ConstraintKinds # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving ...
# LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # # LANGUAGE RecordWildCards # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -freduction - depth=100 # # OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - ...
a00cd4786b0cbf55d1b9ff23be49a1149a0c02d6321819a91ef74340659af3bf
Lovesan/doors
dlls.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- Copyright ( C ) 2010 - 2011 , < > ;;; 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 lim...
null
https://raw.githubusercontent.com/Lovesan/doors/12a2fe2fd8d6c42ae314bd6d02a1d2332f12499e/system/dlls.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do...
Copyright ( C ) 2010 - 2011 , < > files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , (in-packag...
fd20c8b8f7c32ec3c2f1ff4da185fd8ff6c6eb757ee76ebafec40d612fc95300
zyrolasting/racket-vulkan
txexpr.rkt
#lang racket/base ;; Tagged X-expression procedures adapted to this project. (provide (all-defined-out) (all-from-out txexpr)) (require (only-in racket/string string-trim string-join) txexpr) (define (with-attr name L) (filter (λ (x) (attrs-have-key? x name)) L)) (define (tag=? t tx) (and (tx...
null
https://raw.githubusercontent.com/zyrolasting/racket-vulkan/4f743b4b2933173ee4f141e5ae94739895c54b67/private/txexpr.rkt
racket
Tagged X-expression procedures adapted to this project.
#lang racket/base (provide (all-defined-out) (all-from-out txexpr)) (require (only-in racket/string string-trim string-join) txexpr) (define (with-attr name L) (filter (λ (x) (attrs-have-key? x name)) L)) (define (tag=? t tx) (and (txexpr? tx) (equal? (get-tag tx) t))) (define (catego...
7e273dbf401bc495f401802dc0e648bcdbbb8d4ec8ada23493343562533dc2e0
lpeterse/koka
Pretty.hs
----------------------------------------------------------------------------- Copyright 2012 Microsoft Corporation . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the roo...
null
https://raw.githubusercontent.com/lpeterse/koka/43feefed258b9a533f07967d3f8867b02384df0e/src/Type/Pretty.hs
haskell
--------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the --------------------------------------------------------------------------- * Pretty ------------------------------------------------------------------------- -------...
Copyright 2012 Microsoft Corporation . terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the root of this distribution . ppType, ppScheme, ppTypeVar, ppDataInfo, ppSynInfo ,prettyDataInfo, prettyConInfo ...
461aec6a1da9866c16865cf89955990039aa578978d89efc9a3352eeb7a8e1a2
basho/riak_test
post_generate_key.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2012 Basho Technologies , Inc. %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the Li...
null
https://raw.githubusercontent.com/basho/riak_test/8170137b283061ba94bc85bf42575021e26c929d/tests/post_generate_key.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2012 Basho Technologies , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(post_generate_key). -beh...
72f06d6ca3eb07ad9a76d59f228ab0331c447cf393d3d973b4b57a93a3cfb269
cj1128/sicp-review
euclid-algorithm.scm
Using Euclid 's Algorithm to computer GCD (define (gcd a b) (if (= b 0) a (gcd b (remainder a b)))) (display (gcd 3 8))
null
https://raw.githubusercontent.com/cj1128/sicp-review/efaa2f863b7f03c51641c22d701bac97e398a050/chapter-1/1.2/euclid-algorithm.scm
scheme
Using Euclid 's Algorithm to computer GCD (define (gcd a b) (if (= b 0) a (gcd b (remainder a b)))) (display (gcd 3 8))
5a107cb8c32e3b3558027d5f443c5ef17c32dc94b3eb7448ff048a473265a1c4
dalaing/little-languages
Gen.hs
module Type.Gen where import Text.Trifecta.Rendering (Span) import Test.QuickCheck (Gen, Arbitrary(..), elements) import Loc import Type genType :: Gen (Type l) genType = elements [TyBool, TyNat] genNotType :: Type l -> Gen (Type l) genNotType TyBool = return TyNat genNotType TyNat = return TyBool genNotType (TyLo...
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/multityped/nb-srcloc/src/Type/Gen.hs
haskell
module Type.Gen where import Text.Trifecta.Rendering (Span) import Test.QuickCheck (Gen, Arbitrary(..), elements) import Loc import Type genType :: Gen (Type l) genType = elements [TyBool, TyNat] genNotType :: Type l -> Gen (Type l) genNotType TyBool = return TyNat genNotType TyNat = return TyBool genNotType (TyLo...
3bf9141641a3a268110ea7e0c760f518ee7c73e0919e83ff25bc277217c57f8e
Clojure2D/clojure2d-examples
material.clj
(ns rt4.in-one-weekend.ch13.material (:require [rt4.common :as common] [rt4.in-one-weekend.ch13.ray :as ray] [fastmath.vector :as v] [fastmath.core :as m] [fastmath.random :as r])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/ead92d6f17744b91070e6308157364ad4eab8a1b/src/rt4/in_one_weekend/ch13/material.clj
clojure
(ns rt4.in-one-weekend.ch13.material (:require [rt4.common :as common] [rt4.in-one-weekend.ch13.ray :as ray] [fastmath.vector :as v] [fastmath.core :as m] [fastmath.random :as r])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive...
55c68ba1837ae1d2cf57e919307d8b4b7ff480ba58688340a9dd9251d9969b44
SamB/coq
command.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/toplevel/command.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i $Id$ i i i s Declaration functions...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Util open Names open ...
b4a24f1e6dc1ca10ef9ed483d5a490ee250183b28339d00368a07ecdf895f244
metareflection/poof
enumitem.rkt
#lang racket/base (provide enumparenalph) (require racket/runtime-path (only-in scribble/core style) (only-in scribble/latex-properties tex-addition)) (define-runtime-path enumitem.tex "../tex/enumitem.tex") (define enumparenalph (style "enumparenalph" `(,(tex-addition enumitem.tex))))
null
https://raw.githubusercontent.com/metareflection/poof/72fe1b4bce02acb86ff5f6b30274e44ac1f34296/util/enumitem.rkt
racket
#lang racket/base (provide enumparenalph) (require racket/runtime-path (only-in scribble/core style) (only-in scribble/latex-properties tex-addition)) (define-runtime-path enumitem.tex "../tex/enumitem.tex") (define enumparenalph (style "enumparenalph" `(,(tex-addition enumitem.tex))))
c5c183297322630978ab80ab975c06dda1cd15466980216f627d2fbee68dd341
clj-commons/seesaw
icon.clj
Copyright ( c ) , 2011 . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this ; distribution. ; By using this software in any fashion, you are agreeing to be ...
null
https://raw.githubusercontent.com/clj-commons/seesaw/4ca89d0dcdf0557d99d5fa84202b7cc6e2e92263/test/seesaw/test/icon.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not rem...
Copyright ( c ) , 2011 . All rights reserved . (ns seesaw.test.icon (:use seesaw.icon) (:require [seesaw.graphics :as g] [clojure.java.io :as jio]) (:use [lazytest.describe :only (describe it testing)] [lazytest.expect :only (expect)])) (describe icon (it "returns nil given nil" ...
068a4b6f1c87682139e3025ba1fd805448708f3d599d5f5035e60d2b414baf60
MaybeJustJames/zephyr
Main.hs
# LANGUAGE CPP # module Main (main) where import System.IO (hSetEncoding, stderr, stdout, utf8) import qualified Test.CoreFn import qualified Test.Eval import Test.Hspec import qualified Test.Lib #ifdef TEST_CORE_LIBS import qualified Test.CoreLib #endif main :: IO () main = do hSetEncoding stdout utf8 hSetEncod...
null
https://raw.githubusercontent.com/MaybeJustJames/zephyr/30b6d25813592123dd4dadc34b4df4eb0d150a0b/test/Main.hs
haskell
Tree shaking of core libraries is disabled by default because it's not reliable.
# LANGUAGE CPP # module Main (main) where import System.IO (hSetEncoding, stderr, stdout, utf8) import qualified Test.CoreFn import qualified Test.Eval import Test.Hspec import qualified Test.Lib #ifdef TEST_CORE_LIBS import qualified Test.CoreLib #endif main :: IO () main = do hSetEncoding stdout utf8 hSetEncod...
38e9d2bb14d299a3009b530f4e8c34f75e5fc3ed2288e5a43feb1e11890b3bdf
Bogdanp/koyo
koyo.rkt
#lang racket/base (require (for-label koyo racket/base) (for-syntax racket/base) racket/runtime-path racket/sandbox scribble/example scribble/manual) (provide (all-from-out scribble/example scribble/manual) media-path ...
null
https://raw.githubusercontent.com/Bogdanp/koyo/2dd096940da875085855124ef04421657f9c4581/koyo-doc/scribblings/koyo.rkt
racket
#lang racket/base (require (for-label koyo racket/base) (for-syntax racket/base) racket/runtime-path racket/sandbox scribble/example scribble/manual) (provide (all-from-out scribble/example scribble/manual) media-path ...
ede380ce64dabd4b4d8721184f0f39edf77bfc25140536e8fdbbcf51a13c33de
open-company/open-company-web
label.cljs
(ns oc.web.utils.label (:require [oc.lib.hateoas :as hateoas] [oc.web.dispatcher :as dis] [clojure.set :as clj-set] [oc.web.local-settings :as ls])) ;; Labels comparison (defn label-compare-set [label deep-check?] (set (remove nil? [(:slug label) ...
null
https://raw.githubusercontent.com/open-company/open-company-web/700f751b8284d287432ba73007b104f26669be91/src/main/oc/web/utils/label.cljs
clojure
Labels comparison Data parse Clean
(ns oc.web.utils.label (:require [oc.lib.hateoas :as hateoas] [oc.web.dispatcher :as dis] [clojure.set :as clj-set] [oc.web.local-settings :as ls])) (defn label-compare-set [label deep-check?] (set (remove nil? [(:slug label) (:uuid label) ...
026a07d0a9d6e2aae6b3781fc834ba9a7c3ebeebdd22d8db67d3cbfa6cffccd2
eta-lang/eta-prelude
Alternative.hs
module Eta.Classes.Alternative ( Alternative(..) ) where import Control.Applicative
null
https://raw.githubusercontent.com/eta-lang/eta-prelude/e25e9aa42093e090a86d2728b0cac288a25bc52e/src/Eta/Classes/Alternative.hs
haskell
module Eta.Classes.Alternative ( Alternative(..) ) where import Control.Applicative
5f7f6b727c5faf4e5a64a8383f37ff379271d810516d3277b7e9915f4ae1aa05
reflex-frp/reflex-native
Layout.hs
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # |Functionality for applying " Reflex . Native " layouts to views . module Reflex.UIKit.Layout ( applyLayout ) where import CoreGraphics (CGPoint(..), CGRect(..), CGSize(..)) import ObjC (ObjPtr, SafeObjCoerce) import Reflex.Nativ...
null
https://raw.githubusercontent.com/reflex-frp/reflex-native/5fb6a07845e4f7c51f97e9c8ce1a48009f341246/reflex-native-uikit/src/Reflex/UIKit/Layout.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # |Functionality for applying " Reflex . Native " layouts to views . module Reflex.UIKit.Layout ( applyLayout ) where import CoreGraphics (CGPoint(..), CGRect(..), CGSize(..)) import ObjC (ObjPtr, SafeObjCoerce) import Reflex.Nativ...
e81d0a68c76d2ec235ee32fd2588c4ae174c691802bf0699918331d273b4d59e
jacekschae/learn-reitit-course-files
db.clj
(ns cheffy.recipe.db (:require [next.jdbc.sql :as sql] [next.jdbc :as jdbc] [clojure.string :as str])) (defn find-all-recipes [db uid] (with-open [conn (jdbc/get-connection db)] (let [public (sql/find-by-keys conn :recipe {:public true})] (if uid (let [drafts (sql/find-b...
null
https://raw.githubusercontent.com/jacekschae/learn-reitit-course-files/c13a8eb622a371ad719d3d9023f1b4eff9392e4c/increments/37-step-tests/src/cheffy/recipe/db.clj
clojure
(ns cheffy.recipe.db (:require [next.jdbc.sql :as sql] [next.jdbc :as jdbc] [clojure.string :as str])) (defn find-all-recipes [db uid] (with-open [conn (jdbc/get-connection db)] (let [public (sql/find-by-keys conn :recipe {:public true})] (if uid (let [drafts (sql/find-b...
388034a1b7293031d294384afab20d2f33b15d1032511bd280b193d2429c6f7d
wattlebirdaz/rclref
http_api_SUITE.erl
-module(http_api_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([all/0, init_per_suite/1, end_per_suite/1]). -export([http_api_test/1]). all() -> [http_api_test]. init_per_suite(Config) -> application:ensure_all_started(rclref), Names = [node1], ...
null
https://raw.githubusercontent.com/wattlebirdaz/rclref/0e31857de43e3930f69d4063f79a518fe9fdbb79/test/single_node/http_api_SUITE.erl
erlang
check not_found put values confirm values delete values confirm not_found
-module(http_api_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([all/0, init_per_suite/1, end_per_suite/1]). -export([http_api_test/1]). all() -> [http_api_test]. init_per_suite(Config) -> application:ensure_all_started(rclref), Names = [node1], ...
56997210e9803842b572b1fe048cf24546a6cc5ca474011a08fa08a8913585cf
fare/lisp-interface-library
encoded-key-map.lisp
;;;;; Functional mapping where key is encoded. (uiop:define-package :lil/pure/encoded-key-map (:use :closer-common-lisp :lil/core :lil/interface/base) (:use-reexport :lil/pure/map) (:export #:<encoded-key-map> #:<parametric-encoded-key-map>)) (in-package :lil/pure/encoded-key-map) (define-i...
null
https://raw.githubusercontent.com/fare/lisp-interface-library/ac2e0063dc65feb805f0c57715d52fda28d4dcd8/pure/encoded-key-map.lisp
lisp
Functional mapping where key is encoded.
(uiop:define-package :lil/pure/encoded-key-map (:use :closer-common-lisp :lil/core :lil/interface/base) (:use-reexport :lil/pure/map) (:export #:<encoded-key-map> #:<parametric-encoded-key-map>)) (in-package :lil/pure/encoded-key-map) (define-interface <encoded-key-map> (<encoded-key-co...
0943c66c886c04b4cf6a4059f99ec1a518727c12381ff3e596f01efb57839a4f
rixed/ramen
RamenOrc.ml
ORC types and mapping with Ramen types . * * No comprehensive doc for ORC but see : * -data-types-examples/ * * Note : in all this private fields are not taken into account . * This is because it is easier to deal with them in the ocaml code than the * C++ code ( especially reading them back as `...
null
https://raw.githubusercontent.com/rixed/ramen/e9f94e4f4d0935844fc7f6df63a75462c295d9e9/src/RamenOrc.ml
ocaml
It seems that precision is the number of digits and scale the number of * those after the fractional dot: max length Compound types: Keep the order of definition but ignore private fields * that are going to be skipped over when serializing. * (TODO: also ignore shadowed fields): No values of ...
ORC types and mapping with Ramen types . * * No comprehensive doc for ORC but see : * -data-types-examples/ * * Note : in all this private fields are not taken into account . * This is because it is easier to deal with them in the ocaml code than the * C++ code ( especially reading them back as `...
e4b45eed1c0ded0d03fff9dea95f95f632d9c46a3345361a78441cdec0d12625
nasa/Common-Metadata-Repository
core.clj
(ns cmr.exchange.common.results.core (:require [clojusc.results.core :as core])) (defrecord CollectionResults [;; The number of results returned hits ;; Number of milleseconds elapsed from start to end of call took ;; Search-after header search-after ;; The actual items in the result set i...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/3215ee6945cb1fa82499c3c3d74841c3284eec6e/other/cmr-exchange/exchange-common/src/cmr/exchange/common/results/core.clj
clojure
The number of results returned Number of milleseconds elapsed from start to end of call Search-after header The actual items in the result set The randomly generated request-id string Any non-error messages that need to be returned
(ns cmr.exchange.common.results.core (:require [clojusc.results.core :as core])) (defrecord CollectionResults hits took search-after items request-id warnings]) (defn create [results & {:keys [request-id elapsed sa-header hits-header warnings]}] (map->CollectionResults (merge { ...
c1f6f1ccc48e801fb6bbd9051b0620e7f462428c0265f2cec66989c9315a7fea
huangz1990/SICP-answers
44-up-split.scm
;;; 44-up-split.scm (define (up-split painter n) (if (= n 0) painter (let ((smaller (up-split painter (- n 1)))) (below painter (beside smaller smaller)))))
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/44-up-split.scm
scheme
44-up-split.scm
(define (up-split painter n) (if (= n 0) painter (let ((smaller (up-split painter (- n 1)))) (below painter (beside smaller smaller)))))