_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
666d68fba1d438fa906f3e5478b3d95fd12bc32616220eb32bb2d7f87f725bb9
fossas/fossa-cli
PaketSpec.hs
module NuGet.PaketSpec ( spec, ) where import Data.Map.Strict qualified as Map import Data.Text.IO qualified as TIO import DepTypes import GraphUtil import Strategy.NuGet.Paket import Test.Hspec qualified as T import Text.Megaparsec dependencyOne :: Dependency dependencyOne = Dependency { dependencyType = NuG...
null
https://raw.githubusercontent.com/fossas/fossa-cli/efc29b4f9c874e338f0b5a7d1c5b13cb9543156f/test/NuGet/PaketSpec.hs
haskell
module NuGet.PaketSpec ( spec, ) where import Data.Map.Strict qualified as Map import Data.Text.IO qualified as TIO import DepTypes import GraphUtil import Strategy.NuGet.Paket import Test.Hspec qualified as T import Text.Megaparsec dependencyOne :: Dependency dependencyOne = Dependency { dependencyType = NuG...
e1a1facd0bf711c681435bbcbd2bc14e93209b65ca0316a90f654098617f49c5
coccinelle/coccinelle
isomorphisms_c_c.mli
val iso_e_e : Ast_c.expression -> Ast_c.expression -> bool val iso_st_st : Ast_c.statement -> Ast_c.statement -> bool val iso_t_t : Ast_c.fullType -> Ast_c.fullType -> bool
null
https://raw.githubusercontent.com/coccinelle/coccinelle/57cbff0c5768e22bb2d8c20e8dae74294515c6b3/engine/isomorphisms_c_c.mli
ocaml
val iso_e_e : Ast_c.expression -> Ast_c.expression -> bool val iso_st_st : Ast_c.statement -> Ast_c.statement -> bool val iso_t_t : Ast_c.fullType -> Ast_c.fullType -> bool
b773ddd5463a7ac02e76840d53718703aef1f358119e64ae7a77df3b1193db61
ocamllabs/ocaml-modular-implicits
backtrace2.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/backtrace/backtrace2.ml
ocaml
********************************************************************* OCaml ...
, projet Gallium , INRIA Rocquencourt Copyright 2008 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 Error of string let rec f m...
ddfcb68b87dfa41d8e5c3a4a8dd8681759596656e7c3f5b96f08f51516f6443b
ramsay-t/mu2
mu2_mutation.erl
-module(mu2_mutation). -export([generate_mutants/4, random_mutation/2, all_mutations/0, generate_mutants/1, mutate/1]). -include("../include/mutations.hrl"). all_mutations() -> mu2_exchange_mutations:all() ++ mu2_case_mutations:all() ++ mu2_if_mutations:all() ++ mu2_datatype_mutations:all() ++ mu2_receive_mutatio...
null
https://raw.githubusercontent.com/ramsay-t/mu2/fd84a1966e81921f08f510e8876e6ad9b6eb89b1/src/mu2_mutation.erl
erlang
This is for use on the command line via -s Checks Number is exactly 0; this allows you to use -1 to generate ALL possible mutants
-module(mu2_mutation). -export([generate_mutants/4, random_mutation/2, all_mutations/0, generate_mutants/1, mutate/1]). -include("../include/mutations.hrl"). all_mutations() -> mu2_exchange_mutations:all() ++ mu2_case_mutations:all() ++ mu2_if_mutations:all() ++ mu2_datatype_mutations:all() ++ mu2_receive_mutatio...
54a0af41f811a2e33994df1a1c4cd2a97043e440406f66fc7ec820cdc515f6f2
degree9/uikit-hl
sticky.cljs
(ns uikit-hl.sticky (:require [hoplon.core :as hl] [uikit-hl.core :as core])) (def ^:dynamic *uk-sticky* "") (defmethod hl/do! :uk-sticky [elem _ v] (.sticky js/UIkit elem (clj->js v))) (hl/defelem sticky [attr kids] (let [sticky (:uk-sticky attr *uk-sticky*) attr (assoc attr :uk-sticky s...
null
https://raw.githubusercontent.com/degree9/uikit-hl/b226b1429ea50f8e9a6c1d12c082a3be504dda33/docs/docs.html.out/uikit_hl/sticky.cljs
clojure
(ns uikit-hl.sticky (:require [hoplon.core :as hl] [uikit-hl.core :as core])) (def ^:dynamic *uk-sticky* "") (defmethod hl/do! :uk-sticky [elem _ v] (.sticky js/UIkit elem (clj->js v))) (hl/defelem sticky [attr kids] (let [sticky (:uk-sticky attr *uk-sticky*) attr (assoc attr :uk-sticky s...
f07dc83931cc175445f320d5f53a2e203a956559000bfeeab6f1404e062cd108
apache/couchdb-rebar
foodep.erl
-module(foodep). -export([foodep/0]). foodep() -> bazdep:bazdep() =:= bazdep.
null
https://raw.githubusercontent.com/apache/couchdb-rebar/8578221c20d0caa3deb724e5622a924045ffa8bf/inttest/code_path_no_recurse/deps/foodep/src/foodep.erl
erlang
-module(foodep). -export([foodep/0]). foodep() -> bazdep:bazdep() =:= bazdep.
e1289072bfb5597d74b1b7032f0ef47ce60c52964fea8534d0bdce6960c6c8d6
charlieg/Sparser
binary1.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- copyright ( c ) 1992,1993,1994,1994 -- all rights reserved ;;; ;;; File: "binary" ;;; Module: "analyzers;psp:edges:" Version : 1.0 September 1994 initiated in August 1990 0.1 ( 3/5/91 v1.8.1 ) Changed the return value o...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/analyzers/psp/edges/binary1.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- File: "binary" Module: "analyzers;psp:edges:" to be Nil if the edge was aborted by the referent calculation. the chart wrapped and we're consuming edges still in use. called from Create-edge-for-rule-completion/rightwards & /lef...
copyright ( c ) 1992,1993,1994,1994 -- all rights reserved Version : 1.0 September 1994 initiated in August 1990 0.1 ( 3/5/91 v1.8.1 ) Changed the return value of Make - default - binary - edge ( 3/8/93 v2.3 ) added a trace message 0.2 ( 4/7 ) Added a check for a null ev on the left - edg...
8575161d3752ee5c36848df94f1cbc0b0852cf0ef4a1474ec6c66fb149697576
janestreet/universe
functor.ml
module M () = struct let%expect_test _ = print_string "hello world"; [%expect {| hello world |}] ;; end module A = M () module B = M ()
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/ppx_expect/example/functor.ml
ocaml
module M () = struct let%expect_test _ = print_string "hello world"; [%expect {| hello world |}] ;; end module A = M () module B = M ()
353802c8b59866f9322526615a32aec948d28bdf6c513593c0c992a6feb9e772
screenshotbot/screenshotbot-oss
installation.lisp
;;;; Copyright 2018-Present Modern Interpreters Inc. ;;;; This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (defpackage :core/installation/installation (:use #:cl) (:local-nicknames (#:a #:...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/a4f32520ca2faad6393157190a3d06f85be43075/src/core/installation/installation.lisp
lisp
Copyright 2018-Present Modern Interpreters Inc.
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (defpackage :core/installation/installation (:use #:cl) (:local-nicknames (#:a #:alexandria)) (:export #:abstract-installation #:in...
8aecb6d3204d90b6fd4dbc0722b7fa70185410ee05f43d7c09dff82911262203
jamesmacaulay/shopify-clj
resources.clj
(ns shopify.resources "Functions for making requests against a shop's authenticated API." (:use [shopify.resources.names :only [member-keyword collection-keyword]]) (:require [shopify.resources.client :as client] [shopify.resources.routes :as routes] ...
null
https://raw.githubusercontent.com/jamesmacaulay/shopify-clj/dcac775d260e4a7f4d54e0fd2aa84f74c864e338/src/shopify/resources.clj
clojure
(ns shopify.resources "Functions for making requests against a shop's authenticated API." (:use [shopify.resources.names :only [member-keyword collection-keyword]]) (:require [shopify.resources.client :as client] [shopify.resources.routes :as routes] ...
9ee9c1d9f79ed619ab725dc4d0733443593d8f33173d6ed9fd2bccbc36c98f43
lambdaisland/ansi
ansi.cljc
(ns lambdaisland.ansi (:require [clojure.string :as str])) (def ^String ESC "ASCII escape character (codepoint 27, hex 1b, octal 33)." #?(:clj "\u001b[" :cljs "\033[")) (def =i #?(:clj = :cljs identical?)) (defn str-length "Fast string length" [s] #?(:clj (.length ^String s) :cljs (...
null
https://raw.githubusercontent.com/lambdaisland/ansi/76a239f820e8f85790cf5b578ad0f08c8e24cf75/src/lambdaisland/ansi.cljc
clojure
|----------------+----+-----+-------------+-------------+--------------+-------------+-------------+-------------+-------------| | Bright Magenta | 95 | 105 | 255,85,255 | 255,0,255 | 249,53,248 | 255,85,255 | 255,0,255 | 255,0,255 | 255,0,255 | r;g;bm ) . Returns the map of properties that #CSI_sequence...
(ns lambdaisland.ansi (:require [clojure.string :as str])) (def ^String ESC "ASCII escape character (codepoint 27, hex 1b, octal 33)." #?(:clj "\u001b[" :cljs "\033[")) (def =i #?(:clj = :cljs identical?)) (defn str-length "Fast string length" [s] #?(:clj (.length ^String s) :cljs (...
43222d37b86b2ddfe1e16e4f93834119c9f8ef79302ed1a70aaefaa072658444
chrislloyd/kepler
pt.clj
(ns kepler.pt) (defn pt [x y] {:x x :y y}) (defn distance [a b] (Math/sqrt (+ (Math/pow (- (:x b) (:x a)) 2) (Math/pow (- (:y b) (:y a)) 2)))) (defn- rad->deg [d] (* (/ 180 Math/PI) d)) (defn angle [a b] (mod (+ (rad->deg (Math/atan2 (- (:x a) (:x b)) (- (:y a...
null
https://raw.githubusercontent.com/chrislloyd/kepler/bd6f30c20ff9e5ad6749bab0d3589d9ccce6f14f/src/kepler/pt.clj
clojure
(ns kepler.pt) (defn pt [x y] {:x x :y y}) (defn distance [a b] (Math/sqrt (+ (Math/pow (- (:x b) (:x a)) 2) (Math/pow (- (:y b) (:y a)) 2)))) (defn- rad->deg [d] (* (/ 180 Math/PI) d)) (defn angle [a b] (mod (+ (rad->deg (Math/atan2 (- (:x a) (:x b)) (- (:y a...
cc80f61186c1abe3ba2a4154bc841e1460fd1b3b16509270e4aa668819f21e3a
avh4/elm-format
Test.hs
module Main where import Test.Tasty import Test.Tasty.Hspec (testSpec) import qualified Test.Property -- import qualified CommonMarkTests import qualified Integration.CliTest import qualified Integration.LiteralTest main :: IO () main = do -- markdownTests <- CommonMarkTests.construct spec <- te...
null
https://raw.githubusercontent.com/avh4/elm-format/57f77ee0a667869ceed3a61a0f4eeaca56a3964f/tests/Test.hs
haskell
import qualified CommonMarkTests markdownTests <- CommonMarkTests.construct
module Main where import Test.Tasty import Test.Tasty.Hspec (testSpec) import qualified Test.Property import qualified Integration.CliTest import qualified Integration.LiteralTest main :: IO () main = do spec <- testSpec "" Integration.CliTest.spec_spec defaultMain $ testGroup "elm-format" $ ...
e0dcf143aa15cde146bf3b083080ce9b9a1da1fc72b8f49a4297a80e7fac950f
softlab-ntua/bencherl
dialyzer_utils.erl
-*- erlang - indent - level : 2 -*- %%----------------------------------------------------------------------- %% %CopyrightBegin% %% Copyright Ericsson AB 2006 - 2011 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not u...
null
https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/dialyzer/src/dialyzer_utils.erl
erlang
----------------------------------------------------------------------- %CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Se...
-*- erlang - indent - level : 2 -*- Copyright Ericsson AB 2006 - 2011 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " Au...
d4683e529320afc63fc23b9b22df15a40df9ad75363c3a52437de71772da6768
lehins/hip
Histogram.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # -- | -- Module : Graphics.Image.Processing.Histogram Copyright : ( c ) 2017 - 2022 -- License : ...
null
https://raw.githubusercontent.com/lehins/hip/11bb2b9d306b95603386625098243e911c2a2f49/hip/src/Graphics/Image/Processing/Histogram.hs
haskell
# LANGUAGE BangPatterns # | Module : Graphics.Image.Processing.Histogram License : BSD3 Stability : experimental Portability : non-portable ^ Vector containing counts of pixels with the same value. Index of a vector serves as the original pixel value. Length of the vector is the number of bins that w...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # Copyright : ( c ) 2017 - 2022 Maintainer : < > module Graphics.Image.Processing.Histogram ( Histogram(..) , histogram , Hi...
5fa1370ddb8c22057d4b2ab6a3be1e87849eee8f0e85e033643060a5f09bb12f
mzp/coq-ide-for-ios
inductive.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/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/kernel/inductive.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** raise Not_found if not an inductive...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : inductive.ml 13368 ...
6d42c7db82c4ff19ee205d6829b1b3b5ce7c774eec6f2a65d7be3729ea4e8d44
mfelleisen/RacketSchool
9-house.rkt
#lang s-exp "9-form.rkt" (form Box1HouseOwning [hasSoldHouse "Did you sell a house in 2010?" boolean] (when hasSoldHouse ; <- using `sellingPrice` here should be a type error [sellingPrice "Price the house was sold for:" money] [privateDebt "Private debts for the sold house:" money] ...
null
https://raw.githubusercontent.com/mfelleisen/RacketSchool/ada599f31d548a538a37d998b32d80aa881d699a/Plan/ql/9-house.rkt
racket
<- using `sellingPrice` here should be a type error `hasSoldHouse` here should be a type error:
#lang s-exp "9-form.rkt" (form Box1HouseOwning [hasSoldHouse "Did you sell a house in 2010?" boolean] [sellingPrice "Price the house was sold for:" money] [privateDebt "Private debts for the sold house:" money] [valueResidue "Value residue:" money (- sellingPrice pri...
a1df766c01f671c7cef9712105c63c5463e28f8b62cfe973ba40a22a1804151e
crownedgrouse/swab
swab_asn1.erl
%%%----------------------------------------------------------------------- File : swab_asn1.erl @author < > 2014 crownedgrouse.com %%% @doc %%% @end %%% %%% Permission to use, copy, modify, and/or distribute this software %%% for any purpose with or without fee is hereby granted, provided %%% th...
null
https://raw.githubusercontent.com/crownedgrouse/swab/88d6d7772ec9a8979b45297436c7523683e9089b/src/swab_asn1.erl
erlang
----------------------------------------------------------------------- @doc @end 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. WARRANTIES WITH...
File : swab_asn1.erl @author < > 2014 crownedgrouse.com THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , Created : 2014 - 07 - 14 -module(swab_asn1). -export([asn1_pp/1, asn1_pp/2]). -include("swab_hexdump.hrl"...
418a7b3f8a891b90f3f7f43737322b8a4f8739188af599e11fd613688e59a055
gigamonkey/toot
tests.lisp
Copyright ( c ) 2004 - 2010 , Dr. . All rights reserved . Copyright ( c ) 2011 , . All rights reserved . ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; * Redistributions of source code must r...
null
https://raw.githubusercontent.com/gigamonkey/toot/90f3854f2e548c9ad102c53caba834255dfabfa2/tests.lisp
lisp
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form m...
Copyright ( c ) 2004 - 2010 , Dr. . All rights reserved . Copyright ( c ) 2011 , . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package :toot-tests) (defvar *test-acceptor* nil) (defun t...
782852f20f844c71a5d0db0319f01cfeb45aa59090d754d59a9b1134fadfdd05
serioga/webapp-clojure-2020
session_immutant.clj
(ns lib.ring-middleware.session-immutant (:require [immutant.web.middleware :as immutant] [ring.middleware.flash :as flash])) (set! *warn-on-reflection* true) •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• (defn wrap-session "Wrap handler with immut...
null
https://raw.githubusercontent.com/serioga/webapp-clojure-2020/215c4419564c65cb69565774758b4912cafac6e6/src/lib/ring_middleware/session_immutant.clj
clojure
(ns lib.ring-middleware.session-immutant (:require [immutant.web.middleware :as immutant] [ring.middleware.flash :as flash])) (set! *warn-on-reflection* true) •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• (defn wrap-session "Wrap handler with immut...
3fa8599fec3f372377e86ad108e99b992e57fce6f518c16a96ac675a940d392c
utkarshkukreti/reaml
1.ml
let _foo _ = let[@reaml] _ = () in ()
null
https://raw.githubusercontent.com/utkarshkukreti/reaml/5640a36293ba2a765171225deddb644f4d6c5d26/ppx/tests/failing/1.ml
ocaml
let _foo _ = let[@reaml] _ = () in ()
48b2acabb87945cd21c3b6e5168e4b634c2e121799801fa3190e66fcc1469be7
ashinkarov/heh
globals.ml
* Copyright ( c ) 2017 - 2018 , < > * * 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 ...
null
https://raw.githubusercontent.com/ashinkarov/heh/42866803b2ffacdc42b8f06203bf4e5bd18e03b0/globals.ml
ocaml
XXX these variables are not in use and serve an example on how to handle command line arguments. Whether debug output is on. Whether we evaluate imaps of finite shape strictly. Whether we print the storage after the result has been evaluated. Whether we lift lambdas and use them in evaluation. The na...
* Copyright ( c ) 2017 - 2018 , < > * * 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 ...
09a69534669a71f09ba7e4bbad6e4cdc443e1c396a91dec6085928f4708c7b2e
quchen/generative-art
FindRoot.hs
| Solve \(f(x ) = 0\ ) for \(x\ ) . module Numerics.FindRoot (newtonStep) where | Single step for ’s method for root finding . -- -- -- -- \[ -- t_{n+1} = t_n - \frac{f(t_n)}{f'(t_n)} -- \] -- -- Useful as a parameter to 'Numerics.ConvergentRecursion.recurseUntilPrecision'. newtonStep :: Double -...
null
https://raw.githubusercontent.com/quchen/generative-art/7d0991b426a374dc72689d0db7a46d9645c8c5c2/src/Numerics/FindRoot.hs
haskell
\[ t_{n+1} = t_n - \frac{f(t_n)}{f'(t_n)} \] Useful as a parameter to 'Numerics.ConvergentRecursion.recurseUntilPrecision'. ^ \(h\) to calculate the derivative, as in \(\frac{f(x+h)-f(x)}h\) ^ \( f(t_n) \) ^ \( t_n \) ^ \( t_{n+1} \) | Derivative. ^ \(h\) as in \(\frac{f(x+h)-f(x)}h\) ^ \(f\) ^ \(...
| Solve \(f(x ) = 0\ ) for \(x\ ) . module Numerics.FindRoot (newtonStep) where | Single step for ’s method for root finding . newtonStep newtonStep h f t = t - f t / d h f t ^ \(\partial_xf(x)\ ) d h f t = (f (t+h) - f t) / h
82114fb521b266f6fe71f5803fe4a8ee7498237d1a2544d8c7000904a6d1182c
tonsky/advent-of-code
day9.clj
(ns advent-of-code.year2021.day9 (:require [advent-of-code.core :refer [cond+]] [clojure.java.io :as io] [clojure.java.math :as math] [clojure.string :as str] [clojure.set :as set] #_[clj-async-profiler.core :as profiler])) (set! *warn-on-reflection* true) (set! *print-namespace-maps* false) (def...
null
https://raw.githubusercontent.com/tonsky/advent-of-code/5ea8149e70d4af3b02b14272cbc3bcdc49078e4e/src/advent_of_code/year2021/day9.clj
clojure
(ns advent-of-code.year2021.day9 (:require [advent-of-code.core :refer [cond+]] [clojure.java.io :as io] [clojure.java.math :as math] [clojure.string :as str] [clojure.set :as set] #_[clj-async-profiler.core :as profiler])) (set! *warn-on-reflection* true) (set! *print-namespace-maps* false) (def...
6c22c48b07b2bfff150bc86e9c2fdf2be8a867f07b5fdcf170352f9ed8d2c185
fmthoma/vty-workshop
Opponent.hs
module Pong.Opponent where import Lens.Micro import Lens.Micro.Extras import Pong.Motions import Pong.Types -- | Simple computer opponent. -- -- This opponent will always try to keep the paddle level with the ball, but is -- limited in its motion speed. mvOpponent :: GameState...
null
https://raw.githubusercontent.com/fmthoma/vty-workshop/7e39ee78e059009a3caa1c4924e4517bda428902/code/src/Pong/Opponent.hs
haskell
| Simple computer opponent. This opponent will always try to keep the paddle level with the ball, but is limited in its motion speed.
module Pong.Opponent where import Lens.Micro import Lens.Micro.Extras import Pong.Motions import Pong.Types mvOpponent :: GameState -> GameState mvOpponent gameState | ballPos < paddleCenter - paddleHeight / 6 = mvRPlayer (- 1) gameState | ballPos > paddleCenter + padd...
ea89678d006fd6fdc2a5fed3818c2f3cdb27fd2aea6927f1d3894861c8dae340
nikivazou/verified_string_matching
PmconcatEquivalence.hs
{-# LANGUAGE CPP #-} #ifdef MainCall type Monoid a = SM a #else {-# LANGUAGE KindSignatures #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE GADTs # {-# LANGUAGE Deriv...
null
https://raw.githubusercontent.com/nikivazou/verified_string_matching/abdd611a0758467f776c59c3d6c9e4705d36a3a0/src/AutoProofs/PmconcatEquivalence.hs
haskell
# LANGUAGE CPP # # LANGUAGE KindSignatures # # LANGUAGE DataKinds # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE DeriveTraversable # @ LIQUID "--higherorder" @ @ LIQUID "--totality" @ @ LIQUID "--exactdc" @ @ LIQUID "--trus...
#ifdef MainCall type Monoid a = SM a #else # LANGUAGE ScopedTypeVariables # # LANGUAGE GADTs # # LANGUAGE CPP # import Language.Haskell.Liquid.ProofCombinators import Prelude hiding ( mempty, mappend, mconcat, map, Monoid , take, drop ...
571d3a7bae3ad4b3ab749071e62ff52880a1179d4bd56a9d1b9303bb04dd5634
pixlsus/registry.gimp.org_static
blurmap.scm
; GIMP Blur Map Copyright ( c ) 2007 ; ; --------------------------------------------------------------------- ; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 ...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/blurmap.scm
scheme
GIMP Blur Map --------------------------------------------------------------------- This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright ( c ) 2007 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (define (script-fu-blur-map img drawabl...
6e4c083fee7ad40a21b5e55f488b98b55cc2b957cd193ef59a71b3d5b21714ac
travelping/gen_netlink
netlink.erl
Copyright 2010 - 2017 , Travelping GmbH < > %% Permission is hereby granted, free of charge, to any person obtaining a %% copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation %% the rights to use, copy, modify, merge,...
null
https://raw.githubusercontent.com/travelping/gen_netlink/90247a76c39884061e87bb65a7d54a9856132b69/src/netlink.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Software is furnished to do so, subject to the following conditions: The above copyright notice...
Copyright 2010 - 2017 , Travelping GmbH < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KI...
20d956e79996b3777e5026aad8102bddd6a959de8af81d8e344c329931a93055
rd--/hsc3
specFlatness.help.hs
specFlatness let z = soundIn 0 g = 1 {- gain, set as required -} a = pollExt 1 (X.wAmp kr z 0.05) 0 (label "a") f = fft' (localBufId 'α' 2048 1) z c = pollExt 1 (specCentroid kr f) 0 (label "c") w = pollExt 1 (specFlatness kr f) 0 (label "w") in bpf (pinkNoiseId 'a' ar) c w * a * g
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/specFlatness.help.hs
haskell
gain, set as required
specFlatness let z = soundIn 0 a = pollExt 1 (X.wAmp kr z 0.05) 0 (label "a") f = fft' (localBufId 'α' 2048 1) z c = pollExt 1 (specCentroid kr f) 0 (label "c") w = pollExt 1 (specFlatness kr f) 0 (label "w") in bpf (pinkNoiseId 'a' ar) c w * a * g
cba42c5170ed0db0981cbc63d5c095a24f3f34a9db88e67a05827b59eaedc75f
triffon/fp-2022-23
04.prime-acc.rkt
#lang racket (require rackunit) (require rackunit/text-ui) (require "common.03.rkt") # # # Зад 4 Имплементирайте ` prime ? ` чрез ` accumulate ` или ` accumulate - i ` . (define (prime?-acc n) (define (term i) (not (= 0 (remainder n i)))) (if (< n 2) #f (accumulate (lambda (m l) (and m l)) #t 2 ...
null
https://raw.githubusercontent.com/triffon/fp-2022-23/0c6f1c2b47bc67494f4ca6d004e0f6cf4de17be7/exercises/cs2/03.scheme.hof-accumulate/solutions/04.prime-acc.rkt
racket
#lang racket (require rackunit) (require rackunit/text-ui) (require "common.03.rkt") # # # Зад 4 Имплементирайте ` prime ? ` чрез ` accumulate ` или ` accumulate - i ` . (define (prime?-acc n) (define (term i) (not (= 0 (remainder n i)))) (if (< n 2) #f (accumulate (lambda (m l) (and m l)) #t 2 ...
df0bbb6f3600dc60d1f7f46c4d24a829aab11a19e4481a436d9a768257b606fd
UnixJunkie/rankers
bstree.ml
Copyright ( C ) 2019 , laboratory , Department of Bioscience and Bioinformatics , Faculty of Computer Science and Systems Engineering , Kyushu Institute of Technology , 680 - 4 Kawazu , Iizuka , Fukuoka , 820 - 8502 , Japan . Yamanishi laboratory, Department of Bioscience and Bioin...
null
https://raw.githubusercontent.com/UnixJunkie/rankers/46772a75192c83e1b911d25a49753cdd3c7ca4ed/src/bstree.ml
ocaml
Copyright ( C ) 2019 , laboratory , Department of Bioscience and Bioinformatics , Faculty of Computer Science and Systems Engineering , Kyushu Institute of Technology , 680 - 4 Kawazu , Iizuka , Fukuoka , 820 - 8502 , Japan . Yamanishi laboratory, Department of Bioscience and Bioin...
2022c165313c251add8e0db183378df6181f245428ae2c05c0e66e3b43600d7c
kdltr/chicken-core
posixwin.scm
posixwin.scm - Miscellaneous file- and process - handling routines , available on Windows ; Copyright ( c ) 2008 - 2021 , The CHICKEN Team Copyright ( c ) 2000 - 2007 , ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without modification, are permitted provided that the fo...
null
https://raw.githubusercontent.com/kdltr/chicken-core/b2e6c5243dd469064bec947cb3b49dafaa1514e5/posixwin.scm
scheme
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistribution...
posixwin.scm - Miscellaneous file- and process - handling routines , available on Windows Copyright ( c ) 2008 - 2021 , The CHICKEN Team Copyright ( c ) 2000 - 2007 , THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRE...
87af2733ee55f79dc45849a77af45b056194d0967d9b26af479918fb4f0e5db6
pallet/learn-pallet
jclouds_aws.clj
(defsection jclouds-aws :dependencies [[com.palletops/pallet-jclouds "1.5.3"] [org.jclouds.provider/aws-ec2 "1.5.5"] [org.jclouds.driver/jclouds-slf4j "1.5.5"] [org.jclouds.driver/jclouds-sshj "1.5.5"]]) (ns jclouds-aws (:require [pallet.api :as api] [...
null
https://raw.githubusercontent.com/pallet/learn-pallet/7cbd3b353e523dd079151a6c3d680f528efbc6e2/src/jclouds_aws.clj
clojure
create the basic compute service To list the current nodes in the account to list the images available (caution, this will list ~11K images!) AWS offers by default all of the available of images via it's API (~11K at the time of writing this), and this can make communication with AWS quite slow in some instances....
(defsection jclouds-aws :dependencies [[com.palletops/pallet-jclouds "1.5.3"] [org.jclouds.provider/aws-ec2 "1.5.5"] [org.jclouds.driver/jclouds-slf4j "1.5.5"] [org.jclouds.driver/jclouds-sshj "1.5.5"]]) (ns jclouds-aws (:require [pallet.api :as api] [...
980921fff13fd62138471268d4691d4b5f8322305b5a639121ad461230dbff80
slagyr/gaeshi
types_spec.clj
(ns gaeshi.datastore.types-spec (:use [speclj.core] [gaeshi.datastore.types] [gaeshi.spec-helpers.datastore]) (:import [com.google.appengine.api.datastore Key KeyFactory ShortBlob Blob Category Email GeoPt Link IMHandle IMHandle$Scheme PostalAddress Rating PhoneNumber Text] [com.google...
null
https://raw.githubusercontent.com/slagyr/gaeshi/a5677ed1c8d9269d412f07a7ab33bbc40aa7011a/gaeshi/spec/gaeshi/datastore/types_spec.clj
clojure
(ns gaeshi.datastore.types-spec (:use [speclj.core] [gaeshi.datastore.types] [gaeshi.spec-helpers.datastore]) (:import [com.google.appengine.api.datastore Key KeyFactory ShortBlob Blob Category Email GeoPt Link IMHandle IMHandle$Scheme PostalAddress Rating PhoneNumber Text] [com.google...
9e52354b1ef2beb3edbb06d9bd6c445894d08d33a2487be4cd53d3de6933093c
haskell-opengl/OpenGLRaw
ClientStorage.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.APPLE.ClientStorage Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- ----------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/APPLE/ClientStorage.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.APPLE.ClientStorage License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.APPLE.ClientStorage ( glGetAPPLEClientStorage, gl_APPLE_client_storage, pattern GL_UNPACK_CLIENT_STORAGE_APPLE ) where import Graphics.GL.ExtensionPredicates import Graphics.GL.Tokens
b6a2b18848e469b486580be949014969ed8036aa2064597ee3ae10aee545c0df
sampou-org/pfad
Code21.hs
module Code21 where data Tree a = Leaf a | Node [Tree a] deriving (Show) instance Functor Tree where fmap f (Leaf x) = Leaf (f x) fmap f (Node ts) = Node (map (fmap f) ts) fold1 :: (Either a [b] -> b) -> Tree a -> b fold1 f t = case t of Leaf x -> f (Left x) ...
null
https://raw.githubusercontent.com/sampou-org/pfad/3c2e0847bea9eac80672e1fbccb86ca5a6b09415/Code/Code21.hs
haskell
Building a nexus (1) h = split Why build the nexus? case: h = minors optimal bracketing for Countdown
module Code21 where data Tree a = Leaf a | Node [Tree a] deriving (Show) instance Functor Tree where fmap f (Leaf x) = Leaf (f x) fmap f (Node ts) = Node (map (fmap f) ts) fold1 :: (Either a [b] -> b) -> Tree a -> b fold1 f t = case t of Leaf x -> f (Left x) ...
d043313532188d89596b0f67be64dc2c997ec0ae0aad5504456b3ed34dec5c6c
swarm-game/swarm
World.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE TypeFamilies # -- | SPDX - License - Identifier : BSD-3 - Clause -- -- A /world/ refers to the grid on which the game takes place, and the -- things in it (besides robots). A world has a base, immutable -- /terrain/ layer, where each cell contains a terrain type, and a -- ...
null
https://raw.githubusercontent.com/swarm-game/swarm/affc8668b77b7e85d3d23c182a5159df36d17306/src/Swarm/Game/World.hs
haskell
| A /world/ refers to the grid on which the game takes place, and the things in it (besides robots). A world has a base, immutable /terrain/ layer, where each cell contains a terrain type, and a mutable /entity/ layer, with at most one entity per cell. A world is technically finite but practically infinite (wor...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE TypeFamilies # SPDX - License - Identifier : BSD-3 - Clause indexed by 64 - bit signed integers , so they correspond to a \ ( 2^{64 } \times 2^{64 } \ ) torus ) . module Swarm.Game.World ( Coords (..), locToCoords, coordsToLoc, WorldFun (..), worldFunFromArr...
008a154904cfa9d30e64daafd6ca09e8b9b54047b33ac2df22355ae2a5af506e
casperschipper/ocaml-cisp
cisp1.ml
open Cisp open Seq let timer = st 0.25 let values = seq [11;12;13] |> map Int.to_float let timer2 = st 0.25 let values2 = seq [11;12;13] |> map Int.to_float let () = let threads = Lwt.join [ ( OscStream.play "127.0.0.1" 56789 "/par1" timer values ); ( OscStream.play "127.0.0.1" 56789 "/par2" timer...
null
https://raw.githubusercontent.com/casperschipper/ocaml-cisp/571ffb8e508c5427d01e407ba5e91ff2a4604f40/examples/cisp_backup/oscOut/cisp1.ml
ocaml
open Cisp open Seq let timer = st 0.25 let values = seq [11;12;13] |> map Int.to_float let timer2 = st 0.25 let values2 = seq [11;12;13] |> map Int.to_float let () = let threads = Lwt.join [ ( OscStream.play "127.0.0.1" 56789 "/par1" timer values ); ( OscStream.play "127.0.0.1" 56789 "/par2" timer...
5691008288c3930e05ea666d7a95375e724b738a9bf4d5419d7b83bc9b4e8ce8
mransan/btree
btree_unix_perf.ml
module Encoding = Dbtlk_encoding module String10 = Encoding.MakeFixedLengthString(struct let length = 10 end) module S8BT = Btree_unix.Make(String10)(String10) let make_test_key_val i = (Printf.sprintf "%010i" i, Printf.sprintf "%010i" i) let run ~m () = let filename = Printf.sprintf "%04i.data" m in ...
null
https://raw.githubusercontent.com/mransan/btree/530cadca4d1569fc0a638d9fdbb1bd962fd8e171/tests/btree_unix_perf.ml
ocaml
module Encoding = Dbtlk_encoding module String10 = Encoding.MakeFixedLengthString(struct let length = 10 end) module S8BT = Btree_unix.Make(String10)(String10) let make_test_key_val i = (Printf.sprintf "%010i" i, Printf.sprintf "%010i" i) let run ~m () = let filename = Printf.sprintf "%04i.data" m in ...
bf835e3b2e071988d82f5b02b733ea8736288e171149a4ace4ffc21e2a34c61d
susisu/est-ocaml
printer.ml
open Core module type Printer_intf = sig module Config : sig type options type t val options_of_sexp : Sexp.t -> options val empty_options : options val merge_options : options -> options -> options val of_options : default:t -> options -> t end val print_to_channel : Config.t -> Out_cha...
null
https://raw.githubusercontent.com/susisu/est-ocaml/e610d07b166a51e5763aa4f7b12449ec0438071c/src/printer.ml
ocaml
open Core module type Printer_intf = sig module Config : sig type options type t val options_of_sexp : Sexp.t -> options val empty_options : options val merge_options : options -> options -> options val of_options : default:t -> options -> t end val print_to_channel : Config.t -> Out_cha...
0d40d6986d2f2789980eec1edb8b02a5dfcbdf0a2a04cc72ef7dda523754d33f
shirok/Gauche
f64.scm
(define-module srfi.160.f64 (extend gauche.uvector.f64))
null
https://raw.githubusercontent.com/shirok/Gauche/ecaf82f72e2e946f62d99ed8febe0df8960d20c4/lib/srfi/160/f64.scm
scheme
(define-module srfi.160.f64 (extend gauche.uvector.f64))
1b6410c7e760ede8715de60fda4426a495327c4dcb1e6f171f2639b8a4ad20f0
gtk2hs/gtk2hs
GtkChap6-4.hs
import Graphics.UI.Gtk main :: IO () main = do initGUI window <- windowNew set window [windowTitle := "Paned Window", containerBorderWidth := 10, windowDefaultWidth := 400, windowDefaultHeight := 400 ] pw <- vPanedNew panedSetPosition pw 250 containerAdd window pw a...
null
https://raw.githubusercontent.com/gtk2hs/gtk2hs/0f90caa1dae319a0f4bbab76ed1a84f17c730adf/docs/tutorial/Tutorial_Port/Example_Code/GtkChap6-4.hs
haskell
import Graphics.UI.Gtk main :: IO () main = do initGUI window <- windowNew set window [windowTitle := "Paned Window", containerBorderWidth := 10, windowDefaultWidth := 400, windowDefaultHeight := 400 ] pw <- vPanedNew panedSetPosition pw 250 containerAdd window pw a...
97a733ac958ea1ffe38d7c81ef607d6b20487279821f5bb0ce2b104e559cb19f
clj-kafka/franzy
results.clj
(ns franzy.clients.consumer.results "Kafka result set (ConsumerRecords) implementations." (:require [franzy.clients.codec :as codec] [franzy.clients.consumer.protocols :as proto]) (:import (clojure.lang IReduceInit Seqable) (org.apache.kafka.clients.consumer ConsumerRecords))) (defn consum...
null
https://raw.githubusercontent.com/clj-kafka/franzy/6c2e2e65ad137d2bcbc04ff6e671f97ea8c0e380/core/src/franzy/clients/consumer/results.clj
clojure
TODO: iterator-seq or just use java iterator? Need to make sure this is safe and may not want to hang on to this iterator here.
(ns franzy.clients.consumer.results "Kafka result set (ConsumerRecords) implementations." (:require [franzy.clients.codec :as codec] [franzy.clients.consumer.protocols :as proto]) (:import (clojure.lang IReduceInit Seqable) (org.apache.kafka.clients.consumer ConsumerRecords))) (defn consum...
00e30c4b52fb88915c53c37a4a904ca0fea54f1429ee7f9d0d605223064e955e
CSCfi/rems
language_switcher.cljs
(ns rems.language-switcher (:require [clojure.string :as str] [re-frame.core :as rf] [rems.guide-util :refer [component-info example]] [rems.text :refer [text-format]])) (defn lang-link-classes [current-language language] (if (= current-language language) "btn btn-link activ...
null
https://raw.githubusercontent.com/CSCfi/rems/644ef6df4518b8e382cdfeadd7719e29508a26f0/src/cljs/rems/language_switcher.cljs
clojure
(ns rems.language-switcher (:require [clojure.string :as str] [re-frame.core :as rf] [rems.guide-util :refer [component-info example]] [rems.text :refer [text-format]])) (defn lang-link-classes [current-language language] (if (= current-language language) "btn btn-link activ...
4aa60b69f67b6ec1fcce0d564076f71acc30ec9259e436d4da14909d45941e17
coccinelle/coccinelle
cpp_analysis_c.mli
val extract_dangerous_macros: (Common.filename * (string * Cpp_token_c.define_def) list) list -> (Common.filename * (string * Cpp_token_c.define_def) list) list
null
https://raw.githubusercontent.com/coccinelle/coccinelle/57cbff0c5768e22bb2d8c20e8dae74294515c6b3/parsing_c/cpp_analysis_c.mli
ocaml
val extract_dangerous_macros: (Common.filename * (string * Cpp_token_c.define_def) list) list -> (Common.filename * (string * Cpp_token_c.define_def) list) list
2bd4e1254fb0cf9376001f9f09c5ad955e4ed901c47eaf796395eb9e0ff50a8e
Decentralized-Pictures/T4L3NT
sapling_helpers.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2020 - 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_alpha/lib_protocol/test/helpers/sapling_helpers.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2020 - 2021 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN ...
509dac26646f2c369c3b68701cd459af5ac105358e95e886b681d6cef94f81be
ayamada/copy-of-svn.tir.jp
expiry.scm
;;; coding: euc-jp ;;; -*- scheme -*- ;;; vim:set ft=scheme ts=8 sts=2 sw=2 et: $ Id$ ;;; 概要: ;;; 時間取得は(sys-time)による為、新たな環境依存を起こす事に注意する事。 保存形式 : ;;; dbmのkeyとしてsidを、valとして'(data timestamp-epoch)を保存する。 ;;; よって、内部構造的には、val自体は#fにはならない。 ;;; また、この保存形式の為、元のdbm種別と互換性が無くなる。 ;;; (つまり、混合して使えなくなる。) ;;; 実装: ;;; あらゆるdbmクラ...
null
https://raw.githubusercontent.com/ayamada/copy-of-svn.tir.jp/101cd00d595ee7bb96348df54f49707295e9e263/Gauche-tir/trunk/lib/tir04/dbm/expiry.scm
scheme
coding: euc-jp -*- scheme -*- vim:set ft=scheme ts=8 sts=2 sw=2 et: 概要: 時間取得は(sys-time)による為、新たな環境依存を起こす事に注意する事。 dbmのkeyとしてsidを、valとして'(data timestamp-epoch)を保存する。 よって、内部構造的には、val自体は#fにはならない。 また、この保存形式の為、元のdbm種別と互換性が無くなる。 (つまり、混合して使えなくなる。) 実装: あらゆるdbmクラスに対応する為に、委譲による実装とする。 ToDo: <fsdbm>の場合のみ、実際のファイルタイムスタンプを見...
$ Id$ 保存形式 : (define-module tir04.dbm.expiry (use srfi-1) (use srfi-2) (extend dbm) (export <dbm-expiry> 強制的にgcを呼ぶ )) (select-module tir04.dbm.expiry) (define *not-found* (gensym)) (define-class <dbm-expiry-meta> (<dbm-meta>) ()) (define-class <dbm-expiry> (<dbm>) ( (dbm-ty...
4abeedac383c579fb987c773e42400da59905360f57928178b59c63f071b2302
JacobGabrielson/cl-rogue
chase.lisp
Code for one object to chase another @(#)chase.c 3.17 ( Berkeley ) 6/15/81 (in-package :cl-rogue) (define-resettable ch-ret (make-coord)) ; where chasing takes you (defun runners (&optional arg) "Make all the running monsters move." (declare (ignore arg)) (dolist (tp mlist) (when (and (off tp ISHELD...
null
https://raw.githubusercontent.com/JacobGabrielson/cl-rogue/ecc0eba9224313cbc7f8003c15e35dbb0d2b57eb/chase.lisp
lisp
where chasing takes you room of chaser, room of chasee t means we are there temporary destination for chaser We don't count doors as inside rooms for this routine If the object of our desire is in a different room than we are, and we are not in a corridor, run to the door nearest to our goal. loop through ...
Code for one object to chase another @(#)chase.c 3.17 ( Berkeley ) 6/15/81 (in-package :cl-rogue) (defun runners (&optional arg) "Make all the running monsters move." (declare (ignore arg)) (dolist (tp mlist) (when (and (off tp ISHELD) (on tp ISRUN)) (unless (and (or (off tp ISS...
a4a4bf7c022e252a3c939a582b4757f9b9e20c209b342d62542e8a0b0cde5f40
helium/blockchain-core
blockchain_hotspot_transfer_v2_SUITE.erl
-module(blockchain_hotspot_transfer_v2_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -include("blockchain_vars.hrl"). -include("blockchain.hrl"). -export([all/0, init_per_testcase/2, end_per_testcase/2]). -export([ basic_validity_test/1, bad_owner_signature_test...
null
https://raw.githubusercontent.com/helium/blockchain-core/2e5a2d1f7d7baa79500b09c70c2a9af9b9577eab/test/blockchain_hotspot_transfer_v2_SUITE.erl
erlang
-------------------------------------------------------------------- Test group setup -------------------------------------------------------------------- -------------------------------------------------------------------- group teardown -------------------------------------------------------------------- ----------...
-module(blockchain_hotspot_transfer_v2_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -include("blockchain_vars.hrl"). -include("blockchain.hrl"). -export([all/0, init_per_testcase/2, end_per_testcase/2]). -export([ basic_validity_test/1, bad_owner_signature_test...
bf17d2f78286a7039954e207769880b52c97b05be8f5f5f5ba5ef0db3eba0f96
acieroid/scala-am
race5.scm
(letrec ((counter 0) (inc (lambda () (set! counter (+ counter 1)))) (dec (lambda () (set! counter (- counter 1)))) (t1 (fork (inc))) (t2 (fork (dec))) (t3 (fork (inc))) (t4 (fork (dec))) (t5 (fork (inc)))) (join t1) (join...
null
https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/concurrentScheme/threads/variations/race5.scm
scheme
(letrec ((counter 0) (inc (lambda () (set! counter (+ counter 1)))) (dec (lambda () (set! counter (- counter 1)))) (t1 (fork (inc))) (t2 (fork (dec))) (t3 (fork (inc))) (t4 (fork (dec))) (t5 (fork (inc)))) (join t1) (join...
bcc8352022b076ef800a0242136dfe54f3bc9307412be2e4d7e45fdd795477fe
kelamg/HtDP2e-workthrough
ex94.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex94) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Fixed-size-Data/ex94.rkt
racket
about the language level of this file in a form that our tools can easily process. space invaders starter scenery tank ufo
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex94) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/image) (define WIDTH 350) (define HEIGHT 500) (de...
6c98f6659b9b187a832f13a84332843a391ab4255fe8afcf9b0f7111ba22b9d8
mtesseract/nakadi-client
Test.hs
# LANGUAGE DuplicateRecordFields # {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE ScopedTypeVariables #-} module Network.Nakadi.Examples.ListEventTypes.Test ( testListEventTypes ) where import ClassyPrelude import Control.Lens import Control.Monad.Logger import qualified Netwo...
null
https://raw.githubusercontent.com/mtesseract/nakadi-client/f8eef3ac215459081b01b0b48f0b430ae7701f52/tests/Network/Nakadi/Examples/ListEventTypes/Test.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables #
# LANGUAGE DuplicateRecordFields # module Network.Nakadi.Examples.ListEventTypes.Test ( testListEventTypes ) where import ClassyPrelude import Control.Lens import Control.Monad.Logger import qualified Network.Nakadi as Nakadi import qualified Network.Nakadi.Lenses as L testLi...
00912fa9751479a1b64602eb36f209f15ca751b87d9a2e3ee99534feaaae7f15
themattchan/lamb
Types.hs
# LANGUAGE DeriveFunctor # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE FlexibleInstances # module Language.Lamb.Types ( -- * Re-Export SourceSpans module Language.Lamb.UX -- * Abstract syntax of (a small subset of) x86 assembly instructions , Instruction (..) , Arg (..) , Reg (..) ,...
null
https://raw.githubusercontent.com/themattchan/lamb/26d7e0176ab642fe47d3f000f2f3c4e48519e669/lib/Language/Lamb/Types.hs
haskell
# LANGUAGE TypeSynonymInstances # * Re-Export SourceSpans * Abstract syntax of (a small subset of) x86 assembly instructions * Aliases for various identifiers * Abstract syntax of the Adder language * Destructors * Labels * Environments , insertEnv * Dynamic Errors * Code Labels * Abstract Text Type | Contr...
# LANGUAGE DeriveFunctor # # LANGUAGE FlexibleInstances # module Language.Lamb.Types ( module Language.Lamb.UX , Instruction (..) , Arg (..) , Reg (..) , Size (..) , Id , Tag , Program (..), BareProgram , AnfProgram , Decl (..) , BareDecl , AnfDecl , Bind (..) , BareBind ...
4667f710c0ddeb6c1a47154366876cf0c8e4a5cfc6774780d298c31d2f0b6722
RolfRolles/PandemicML
test-faulting-sequence.ml
#use "c:\\paframework\\Projects\\Nxcroticism\\ProbabilisticCandidateGeneration.ml";; mov byte ptr ds:[eax], dl ret let _ = let open X86 in let faulting_sequence = { pref = []; instr = (Xor,[Memexpr(Md(Mem32(DS,Some(Edi),None,None)));GeneralReg(Gd(Esi))]);}:: { pref = []; instr = (Or, [GeneralReg(Gb(Bh))...
null
https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/Projects/Nxcroticism/Notes/test-faulting-sequence.ml
ocaml
#use "c:\\paframework\\Projects\\Nxcroticism\\ProbabilisticCandidateGeneration.ml";; mov byte ptr ds:[eax], dl ret let _ = let open X86 in let faulting_sequence = { pref = []; instr = (Xor,[Memexpr(Md(Mem32(DS,Some(Edi),None,None)));GeneralReg(Gd(Esi))]);}:: { pref = []; instr = (Or, [GeneralReg(Gb(Bh))...
25975be92ca0853e1b48904250586ff6997ee7dd9535946207b773f8d0b097d3
janestreet/memtrace_viewer_with_deps
todo.mli
module Model : sig type t val cutoff : t -> t -> bool val empty : t end include Incr_dom.App_intf.S with module Model := Model
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/incr_dom/example/todo_mvc/app/js/todo.mli
ocaml
module Model : sig type t val cutoff : t -> t -> bool val empty : t end include Incr_dom.App_intf.S with module Model := Model
3ba385164f23a206d9886686e22dcfe19b3f4c0e7cef019923ea4d36274bae72
dalaing/little-languages
STLC.hs
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} # LANGUAGE FlexibleContexts # module Component.STLC ( stlcErrors ,...
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/modular/stlc-lang/src/Component/STLC.hs
haskell
genTypeInput genTermInput
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} # LANGUAGE FlexibleContexts # module Component.STLC ( stlcErrors ,...
a5763cdbae84e88b746a246fa7548348e4858f825f544db6de6422d05840d27f
janestreet/ppx_accessor
common.ml
open! Base open! Import let gen_symbol prefix ~loc = let sym = gen_symbol ~prefix () in pvar ~loc sym, evar ~loc sym ;; let map_with_context list ~f = let rec loop prefix suffix acc = match suffix with | [] -> List.rev acc | x :: suffix -> loop (x :: prefix) suffix (f x ~context:(List.rev_appe...
null
https://raw.githubusercontent.com/janestreet/ppx_accessor/e5b9fbec2c91e8fced2dddee9d40fc9985307518/src/common.ml
ocaml
open! Base open! Import let gen_symbol prefix ~loc = let sym = gen_symbol ~prefix () in pvar ~loc sym, evar ~loc sym ;; let map_with_context list ~f = let rec loop prefix suffix acc = match suffix with | [] -> List.rev acc | x :: suffix -> loop (x :: prefix) suffix (f x ~context:(List.rev_appe...
46841aa06884ed8f65afbbc8cd1fe2324de88a0f0c538a62afdec90d791d1646
PJK/haskell-pattern-matching
ThreeInts.hs
f :: Int -> Int -> Int f 0 1 = 1 f 1 2 = 2
null
https://raw.githubusercontent.com/PJK/haskell-pattern-matching/7ef4a45731beba92ee01614ae563df65be36e8ba/data/exact/ThreeInts.hs
haskell
f :: Int -> Int -> Int f 0 1 = 1 f 1 2 = 2
3f3c31454ea51f2903f1fda27f7792680383031bb4a2832fb9221b5c7524e6f9
neeraj9/hello-erlang-rump
helloer_sup.erl
%%%------------------------------------------------------------------- @author nsharma ( C ) 2016 , %%% @doc %%% %%% @end Copyright ( c ) 2016 , < > . %%% All rights reserved. %%% %%% Redistribution and use in source and binary forms, with or without %%% modification, are permitted provided that the followi...
null
https://raw.githubusercontent.com/neeraj9/hello-erlang-rump/304d2f0faaef64677de22d9a3495297e08d90a3f/apps/helloer/src/helloer_sup.erl
erlang
------------------------------------------------------------------- @doc @end All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright ...
@author nsharma ( C ) 2016 , Copyright ( c ) 2016 , < > . " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVI...
995eaec1c273668b058521bb0b27ec4883e62de4dcba0d47185d892019d9161e
EFanZh/EOPL-Exercises
exercise-5.11-test.rkt
#lang racket/base (require rackunit) (require "../solutions/exercise-5.x-implicit-refs-lang.rkt") (check-equal? (run "begin 2 end") (num-val 2)) (check-equal? (run "let x = 3 in begin set x = 5; x end") ...
null
https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/tests/exercise-5.11-test.rkt
racket
#lang racket/base (require rackunit) (require "../solutions/exercise-5.x-implicit-refs-lang.rkt") (check-equal? (run "begin 2 end") (num-val 2)) (check-equal? (run "let x = 3 x end") (num-val 5)) (check-equal? (run "...
4de9dd78e9247efbd7457e85de68bd55834fcb05c3af7cf75ab8cb3e16033998
erlang/otp
openssl_npn_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2019 - 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/daccb908c6d46bef5b1129fac66e1cdacb5e0568/lib/ssl/test/openssl_npn_SUITE.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2019 - 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(openssl_npn_SUITE). -include_lib("common_test/include/ct.hrl"). -export([all/0, groups/0, ...
e608198b97c2d0ce6e041ac81d3bc39e719d5a60dbfb85aa05061581b5d3c669
nikodemus/SBCL
gc.impure.lisp
;;;; gc tests This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; While most of SBCL is derived from the CMU CL system , the test ;;;; files (like this one) were written from scratch after the fork from CMU CL . ;;; ;;;; This software is in the public domain and is prov...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/tests/gc.impure.lisp
lisp
gc tests more information. files (like this one) were written from scratch after the fork This software is in the public domain and is provided with absoluely no warranty. See the COPYING and CREDITS files for more information. check that WITHOUT-INTERRUPTS doesn't block the gc trigger check that WITHOUT-GCIN...
This software is part of the SBCL system . See the README file for While most of SBCL is derived from the CMU CL system , the test from CMU CL . (in-package :cl-user) (defparameter *x* ()) (defun cons-madly () (loop repeat 10000 do (setq *x* (make-string 100000)))) (sb-sys:without-interrupts (cons-...
c52f294f94cd983bab591e06b10b8e968453b55119d4ba6d94eafbcd9cfdecd2
ConsenSys/constellation
Enclave.hs
module Main ( main ) where import Constellation.Enclave.Main (defaultMain) main :: IO () main = defaultMain
null
https://raw.githubusercontent.com/ConsenSys/constellation/8fcd2d38b097da5242f511d2fb2149a9764f2f7b/bin/Enclave.hs
haskell
module Main ( main ) where import Constellation.Enclave.Main (defaultMain) main :: IO () main = defaultMain
2ffd7a45e5295df1d53549e2e4f8337d781a1617e7e0055d8a3776aa4b4c764d
oakes/play-clj
html.clj
(ns play-clj-doclet.html (:require [clojure.java.io :as io] [clojure.string :as string] [hiccup.core :refer :all])) (defn str->filename [ns s] (-> (subs ns (+ (.lastIndexOf ns ".") 1)) (str "." s) (string/replace "?" "_q") (string/replace "->" "_") (string/replace ...
null
https://raw.githubusercontent.com/oakes/play-clj/aea03800071e13a6cbf1a925906e408b26138edd/doclet/src/clojure/play_clj_doclet/html.clj
clojure
(ns play-clj-doclet.html (:require [clojure.java.io :as io] [clojure.string :as string] [hiccup.core :refer :all])) (defn str->filename [ns s] (-> (subs ns (+ (.lastIndexOf ns ".") 1)) (str "." s) (string/replace "?" "_q") (string/replace "->" "_") (string/replace ...
e7395850b47af7dbe1241ff0c850a1a4c08926f541f0077529ca4359d3ea1f59
threatgrid/redismq
core_test.clj
(ns redismq.core-test (:require [clojure.test :refer :all] [clojure.data :refer [diff]] [redismq.core :refer :all])) (defn mq-conn-spec [] {:host (or (System/getenv "REDIS_HOST") "localhost") :post (or (System/getenv "REDIS_PORT") "6379")}) (defn make-test-queue [& [options]] (make-...
null
https://raw.githubusercontent.com/threatgrid/redismq/6096f48b15a351449b893814c7a3290eed441b24/test/redismq/core_test.clj
clojure
we need to sleep a bit longer than the timeout to make sure the thread dies
(ns redismq.core-test (:require [clojure.test :refer :all] [clojure.data :refer [diff]] [redismq.core :refer :all])) (defn mq-conn-spec [] {:host (or (System/getenv "REDIS_HOST") "localhost") :post (or (System/getenv "REDIS_PORT") "6379")}) (defn make-test-queue [& [options]] (make-...
fc6dfbbdfd54343ee4d4b064e3b111c19b4eafd4fc519ac3e0962fc4f7d2ae7b
bragful/ephp
ephp_lib_string.erl
-module(ephp_lib_string). -author(''). -behaviour(ephp_lib). -export([init_func/0, init_config/0, init_const/0, handle_error/3, bin2hex/3, hex2bin/3, strlen/3, ord/3, chr/3, implode/3, implode/4, explode/4, explode/5, print/3, printf/3, sprintf/3, vprintf/4, vsprintf/4, str_replace/5, str_replace/6...
null
https://raw.githubusercontent.com/bragful/ephp/e8597786dacec66e790b38493de0028a4b12bee1/src/ephp_lib_string.erl
erlang
TODO: automatic validation for implode is not possible because it has an overloading not supported by default by PHP FIXME: split is deprecated, should be removed? @doc handle error messages. @doc retrieve the length of the string. @doc obtain the number of the character passed as a param. @doc obtain the ...
-module(ephp_lib_string). -author(''). -behaviour(ephp_lib). -export([init_func/0, init_config/0, init_const/0, handle_error/3, bin2hex/3, hex2bin/3, strlen/3, ord/3, chr/3, implode/3, implode/4, explode/4, explode/5, print/3, printf/3, sprintf/3, vprintf/4, vsprintf/4, str_replace/5, str_replace/6...
07b0acfc9198bd6368554ce659ff6ce7d879c78b14863e09edf370e2527cc127
clojurebook/ClojureProgramming
hello_world.clj
(ns com.clojurebook.hello-world (:use [ring.util.servlet :only (defservice)] [compojure.core :only (GET)]) (:gen-class :extends javax.servlet.http.HttpServlet)) (defservice (GET "*" {:keys [uri]} (format "<html> URL requested: %s <p> <a href=\"...
null
https://raw.githubusercontent.com/clojurebook/ClojureProgramming/bcc7c58862982a5793e22788fc11a9ed7ffc548f/ch17-webapp-maven/src/main/clojure/com/clojurebook/hello_world.clj
clojure
(ns com.clojurebook.hello-world (:use [ring.util.servlet :only (defservice)] [compojure.core :only (GET)]) (:gen-class :extends javax.servlet.http.HttpServlet)) (defservice (GET "*" {:keys [uri]} (format "<html> URL requested: %s <p> <a href=\"...
03e16984a3c292b8586196d340202d6f25d67451feee0f7e8e6f98136eb2397b
monadbobo/ocaml-core
shutdown.mli
open Core.Std open Import * [ shutdown ? force status ] initiates shutdown , which runs all the [ at_shutdown ] functions , waits for them to finish , and then exits with the supplied status . The [ at_shutdown ] functions can block -- one can use [ ~force ] to forcibly exit ( with status 1 ) if th...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/async/unix/lib/shutdown.mli
ocaml
* [shutting_down ()] reports whether we are currently shutting down, and if so, with what status. * [shutdown_and_raise ?force status] initiates shutdown and immediately raises. * [at_shutdown f] causes [f ()] to be run when [shutdown] is called, and for [shutdown] to wait until the returned deferred finishes...
open Core.Std open Import * [ shutdown ? force status ] initiates shutdown , which runs all the [ at_shutdown ] functions , waits for them to finish , and then exits with the supplied status . The [ at_shutdown ] functions can block -- one can use [ ~force ] to forcibly exit ( with status 1 ) if th...
28ee975e8a0f9fa22ad88708dc253e6ceb3298a836072cd074383b90f4f9aa05
cram2/cram
poisson.lisp
Regression test POISSON for GSLL , automatically generated ;; Copyright 2009 Distributed under the terms of the GNU General Public License ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Founda...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_3rdparty/gsll/src/tests/poisson.lisp
lisp
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Publi...
Regression test POISSON for GSLL , automatically generated Copyright 2009 Distributed under the terms of the GNU General Public License it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy ...
ac575f50b3d7f5d634a70d500bba807d4242a43704a4524d6b45011fffdb7738
goldfirere/singletons
T209.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DerivingStrategies # module T209 where import Data.Singletons.TH $(singletons [d| class C a b where m :: a -> b -> Bool -> Bool m _ _ x = x data Hm = Hm deriving anyclass (C Bool) deriving anyclass instance C a a => C a (Maybe a) |])
null
https://raw.githubusercontent.com/goldfirere/singletons/a169d3f6c0c8e962ea2983f60ed74e507bca9b2b/singletons-base/tests/compile-and-dump/Singletons/T209.hs
haskell
# LANGUAGE DeriveAnyClass #
# LANGUAGE DerivingStrategies # module T209 where import Data.Singletons.TH $(singletons [d| class C a b where m :: a -> b -> Bool -> Bool m _ _ x = x data Hm = Hm deriving anyclass (C Bool) deriving anyclass instance C a a => C a (Maybe a) |])
010bcc0e16f54c1b132fa3bc911d8decacba6577bc2864804133ebf1fe30d3ff
jfeser/castor
db_test.ml
open Db open Relation let conn = Test_util.tpch_conn |> Lazy.force let%expect_test "" = Db.all_relations conn |> List.sort ~compare:[%compare: Relation.t] |> List.iter ~f:(fun r -> Option.iter r.r_schema ~f:(fun s -> [%sexp_of: (string * Prim_type.t) list] s |> print_s)); [%expect {|...
null
https://raw.githubusercontent.com/jfeser/castor/e9f394e9c0984300f71dc77b5a457ae4e4faa226/test/lib/db_test.ml
ocaml
open Db open Relation let conn = Test_util.tpch_conn |> Lazy.force let%expect_test "" = Db.all_relations conn |> List.sort ~compare:[%compare: Relation.t] |> List.iter ~f:(fun r -> Option.iter r.r_schema ~f:(fun s -> [%sexp_of: (string * Prim_type.t) list] s |> print_s)); [%expect {|...
d19e83687955c7ff1c984041056a95c2ea05cd05893c745de735c374c259980e
sol/doctest
PackageDBsSpec.hs
module PackageDBsSpec (main, spec) where import Prelude () import Prelude.Compat import qualified Control.Exception as E import Data.List (intercalate) import PackageDBs import System.Environment.Compat import System.FilePath ...
null
https://raw.githubusercontent.com/sol/doctest/ec6498542986b659f50e961b02144923f6f41eba/test/PackageDBsSpec.hs
haskell
module PackageDBsSpec (main, spec) where import Prelude () import Prelude.Compat import qualified Control.Exception as E import Data.List (intercalate) import PackageDBs import System.Environment.Compat import System.FilePath ...
cc2f5e12b7e2a19717865eeb57e28d946c55568e3158ac41bb567a297e26e809
incoherentsoftware/defect-process
Flail.hs
module Configs.All.Enemy.Flail ( FlailEnemyConfig(..) ) where import Data.Aeson.Types (FromJSON, genericParseJSON, parseJSON) import GHC.Generics (Generic) import Attack.Util import Enemy.DeathEffectData.Types import Enemy.HurtEffectData.Types import Enemy.SpawnEffectData.Types import Util import Window.G...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/14ec46dec2c48135bc4e5965b7b75532ef19268e/src/Configs/All/Enemy/Flail.hs
haskell
module Configs.All.Enemy.Flail ( FlailEnemyConfig(..) ) where import Data.Aeson.Types (FromJSON, genericParseJSON, parseJSON) import GHC.Generics (Generic) import Attack.Util import Enemy.DeathEffectData.Types import Enemy.HurtEffectData.Types import Enemy.SpawnEffectData.Types import Util import Window.G...
f0dc87a1a2ecb932113248b58545dc8e29dec25faed7f88c51820b0661bb5c2d
bhaskara/programmable-reinforcement-learning
alisp-subroutine.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; alisp/alisp-subroutine.lisp ;; code relating to alisp subroutines ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package alisp) (defun lookup-alisp-subroutine (fn-name) "lookup-alisp-subroutine FN-NAME. Returns list of para...
null
https://raw.githubusercontent.com/bhaskara/programmable-reinforcement-learning/8afc98116a8f78163b3f86076498d84b3f596217/lisp/alisp/alisp-subroutine.lisp
lisp
alisp/alisp-subroutine.lisp code relating to alisp subroutines
(in-package alisp) (defun lookup-alisp-subroutine (fn-name) "lookup-alisp-subroutine FN-NAME. Returns list of param names for FN-NAME." (multiple-value-bind (val pres) (gethash fn-name *subroutine-description-table*) (assert pres nil "Subroutine ~a not found in table" fn-name) val)) ...
e8d7e04f4dd68b67de6f962e845a76f1d260ee4739f22c1f22819c703e3a22e5
lancelet/wgpu-hs
WGPUCreatePipelineAsyncStatus.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE NoImplicitPrelude # -- This file was generated by wgpu-raw-hs-codegen on: 2021 - 08 - 25T10:02:03.522705 -- Using wgpu-native git hash: b10496e7eed9349f0fd541e6dfe5029cb436de74 wgpu - native ( ) m...
null
https://raw.githubusercontent.com/lancelet/wgpu-hs/42d7931cdd793970bf4844906b382d908bbb196f/wgpu-raw-hs/src/WGPU/Raw/Generated/Enum/WGPUCreatePipelineAsyncStatus.hs
haskell
This file was generated by wgpu-raw-hs-codegen on: Using wgpu-native git hash:
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE NoImplicitPrelude # 2021 - 08 - 25T10:02:03.522705 b10496e7eed9349f0fd541e6dfe5029cb436de74 wgpu - native ( ) module WGPU.Raw.Generated.Enum.WGPUCreatePipelineAsyncStatus where import Data.Word (...
a19c3e71457b34910b2af90e0d8045df1a4603b481c396b04cc084898b807ccf
jwhitbeck/hyperloglog
algorithm.clj
(ns hyperloglog.algorithm (:require [clojure.core.reducers :as r] [clojure.math.numeric-tower :as math])) (set! *warn-on-reflection* true) (defn standard-error "Returns the asymptotic standard-error, defined a sqrt(variance(estimate))/num-samples. See Flajolet et al. 2007 for full discussion." [n...
null
https://raw.githubusercontent.com/jwhitbeck/hyperloglog/d2dbed23d87b79d6c2dd093cb1fe328417eba8ba/src/hyperloglog/algorithm.clj
clojure
(ns hyperloglog.algorithm (:require [clojure.core.reducers :as r] [clojure.math.numeric-tower :as math])) (set! *warn-on-reflection* true) (defn standard-error "Returns the asymptotic standard-error, defined a sqrt(variance(estimate))/num-samples. See Flajolet et al. 2007 for full discussion." [n...
db925e68161f6c5da5f90d87d5973acaa909e50b751c2df6be704013420b53ee
danlarkin/subrosa
rooms.clj
(ns subrosa.test.rooms (:require [clojure.test :refer :all] [clojure.string :refer [join]] [subrosa.test.expect :refer :all])) (use-fixtures :each run-test-server) (deftest basic-join (with-connection s (transmit s "NICK dan") (transmit s "USER dan 0 * :Dan Larkin") (transmit s...
null
https://raw.githubusercontent.com/danlarkin/subrosa/b8e554ffc1b83572acbbb8f50704d3db44b3770f/test/subrosa/test/rooms.clj
clojure
Give dan1 a chance to authenticate Give dan1 a chance to authenticate Give dan1 a chance to authenticate Give dan1 a chance to authenticate Give dan1 a chance to authenticate Give dan1 a chance to authenticate give time for all rooms to be created
(ns subrosa.test.rooms (:require [clojure.test :refer :all] [clojure.string :refer [join]] [subrosa.test.expect :refer :all])) (use-fixtures :each run-test-server) (deftest basic-join (with-connection s (transmit s "NICK dan") (transmit s "USER dan 0 * :Dan Larkin") (transmit s...
c3ca09ebe29ea0ae04d1bb94b6fde663c7b78bebd237e45d3ce37a2923af9fe5
hanssv/ec_utils
ecu_secp256k1.erl
%%% File : ecu_secp256k1.erl Author : Description : Trying to whip together a pure Erlang secp256k1 %%% Just for usage when speed isn't crucial... Created : 22 Dec 2021 by -module(ecu_secp256k1). -define(P, 16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F). ...
null
https://raw.githubusercontent.com/hanssv/ec_utils/3cee7296b2a7776ed5e8dc6a1520321878833f8d/src/ecu_secp256k1.erl
erlang
File : ecu_secp256k1.erl Just for usage when speed isn't crucial... y^2 = x^3 + 7 Arithmetics in prime field P Arithmetics in curve group order N curve() -> #{ p => 16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F, a => 16#00, b => 16#07, x => 16#79BE667EF9DC...
Author : Description : Trying to whip together a pure Erlang secp256k1 Created : 22 Dec 2021 by -module(ecu_secp256k1). -define(P, 16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F). -define(A, 16#00). -define(B, 16#07). -define(X, 16#79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE2...
74768e6b98847b566925bcfdaef1467b584696f45c42eb3f2b4792692475f1cc
funcool/suricatta
alpha.clj
Copyright ( c ) 2019 < > ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; ;; * Redistributions of source code must retain the above copyright notice, this ;; list of conditions and th...
null
https://raw.githubusercontent.com/funcool/suricatta/58e5d2080815aee19ee0893f8ed1b04043525c81/src/suricatta/dsl/alpha.clj
clojure
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions ...
Copyright ( c ) 2019 < > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY ...
e646808a299a8672307197d641b6dc8b1a8107f6315057ec6e72fbf5e5287b5a
jackfirth/resyntax
string-indent.rkt
#lang racket/base (require racket/contract/base) (provide (contract-out [string-indent (-> string? #:amount exact-nonnegative-integer? (and/c string? immutable?))])) (require racket/string) ;@---------------------------------------------------------------------------------------------------- (define (strin...
null
https://raw.githubusercontent.com/jackfirth/resyntax/fd05e555affc61b62c8b4e5e65ade1c10941d555/private/string-indent.rkt
racket
@----------------------------------------------------------------------------------------------------
#lang racket/base (require racket/contract/base) (provide (contract-out [string-indent (-> string? #:amount exact-nonnegative-integer? (and/c string? immutable?))])) (require racket/string) (define (string-indent s #:amount amount) (define lines (for/list ([line (in-lines (open-input-string s))]) ...
801573b0363ae51c9c097751a2625269f7b98a88fc1f056753b4494155e474c9
lachenmayer/arrowsmith
Substitute.hs
# OPTIONS_GHC -Wall # module Transform.Substitute (subst) where import Control.Arrow (second, (***)) import qualified Data.Set as Set import AST.Annotation import AST.Expression.General (Expr'(..), PortImpl(..)) import qualified AST.Expression.Canonical as Canonical import qualified AST.Pattern as Pattern import qual...
null
https://raw.githubusercontent.com/lachenmayer/arrowsmith/34b6bdeddddb2d8b9c6f41002e87ec65ce8a701a/elm-compiler/src/Transform/Substitute.hs
haskell
# OPTIONS_GHC -Wall # module Transform.Substitute (subst) where import Control.Arrow (second, (***)) import qualified Data.Set as Set import AST.Annotation import AST.Expression.General (Expr'(..), PortImpl(..)) import qualified AST.Expression.Canonical as Canonical import qualified AST.Pattern as Pattern import qual...
b8d0d0dd1c10ce9f4c19d7e19059c7974def78c75e2d1e83e3738fdf665cafc1
bradparker/servant-beam-realworld-example-app
DatabaseSpec.hs
module RealWorld.Conduit.Articles.DatabaseSpec ( spec ) where import Database.Beam (primaryKey) import qualified RealWorld.Conduit.Articles.Article as Article import RealWorld.Conduit.Articles.Database (create, update) import RealWorld.Conduit.Articles.Article.Attributes ( Attributes(Attributes) ) import quali...
null
https://raw.githubusercontent.com/bradparker/servant-beam-realworld-example-app/d4a0d79d9dbc7e5b8987b367ac32f99ac3cc20e7/spec/RealWorld/Conduit/Articles/DatabaseSpec.hs
haskell
module RealWorld.Conduit.Articles.DatabaseSpec ( spec ) where import Database.Beam (primaryKey) import qualified RealWorld.Conduit.Articles.Article as Article import RealWorld.Conduit.Articles.Database (create, update) import RealWorld.Conduit.Articles.Article.Attributes ( Attributes(Attributes) ) import quali...
1eac73a467e40d2cebd55dd759cdbaa4f7c588f0210a57ca6e039b8078865efe
metabase/metabase
markdown.clj
(ns metabase.pulse.markdown (:require [clojure.edn :as edn] [clojure.java.io :as io] [clojure.string :as str] [clojure.walk :as walk] [metabase.public-settings :as public-settings] [metabase.util :as u]) (:import (com.vladsch.flexmark.ast AutoLink BlockQuote BulletList BulletListItem Code Empha...
null
https://raw.githubusercontent.com/metabase/metabase/7e3048bf73f6cb7527579446166d054292166163/src/metabase/pulse/markdown.clj
clojure
+----------------------------------------------------------------------------------------------------------------+ | Markdown parsing | +--------------------------------------------------------------------------------------...
(ns metabase.pulse.markdown (:require [clojure.edn :as edn] [clojure.java.io :as io] [clojure.string :as str] [clojure.walk :as walk] [metabase.public-settings :as public-settings] [metabase.util :as u]) (:import (com.vladsch.flexmark.ast AutoLink BlockQuote BulletList BulletListItem Code Empha...
1ac9e084d96b59cbf939297583a90da4c8e23764c52126bbd29242996bb8b511
cedlemo/OCaml-GI-ctypes-bindings-generator
Print_pages.ml
open Ctypes open Foreign type t = All | Current | Ranges | Selection let of_value v = if v = Unsigned.UInt32.of_int 0 then All else if v = Unsigned.UInt32.of_int 1 then Current else if v = Unsigned.UInt32.of_int 2 then Ranges else if v = Unsigned.UInt32.of_int 3 then Selection else raise (Invalid_argument "...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Print_pages.ml
ocaml
open Ctypes open Foreign type t = All | Current | Ranges | Selection let of_value v = if v = Unsigned.UInt32.of_int 0 then All else if v = Unsigned.UInt32.of_int 1 then Current else if v = Unsigned.UInt32.of_int 2 then Ranges else if v = Unsigned.UInt32.of_int 3 then Selection else raise (Invalid_argument "...
3749c1d9be06ec0bb1a7e6d3f5a20d401377886e0938ac88a4637b08ad5fda7f
aantron/lambdasoup
lambdasoup.mli
include module type of Soup val parse : string -> soup node [@@ocaml.deprecated "The module name Lambdasoup is deprecated. Use Soup instead."]
null
https://raw.githubusercontent.com/aantron/lambdasoup/d7c9e5e894bf16278e1229630dd7ed4d2639e12d/src/lambdasoup.mli
ocaml
include module type of Soup val parse : string -> soup node [@@ocaml.deprecated "The module name Lambdasoup is deprecated. Use Soup instead."]
cb6ffd4b247f913394497da27fdb7c8f130d67460f8b2c850a319cac90a22a90
slipstream/SlipStreamServer
callback_create_user_mitreid.clj
(ns com.sixsq.slipstream.ssclj.resources.callback-create-user-mitreid "Creates a new MITREid user resource presumably after external authentication has succeeded." (:require [clojure.tools.logging :as log] [com.sixsq.slipstream.auth.external :as ex] [com.sixsq.slipstream.auth.oidc :as auth-oidc] [co...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/src/com/sixsq/slipstream/ssclj/resources/callback_create_user_mitreid.clj
clojure
(ns com.sixsq.slipstream.ssclj.resources.callback-create-user-mitreid "Creates a new MITREid user resource presumably after external authentication has succeeded." (:require [clojure.tools.logging :as log] [com.sixsq.slipstream.auth.external :as ex] [com.sixsq.slipstream.auth.oidc :as auth-oidc] [co...
2b456b75c9c5be207cdcd9c0b51220d023ff5c850bed8b6599a5e0c34641d991
manuel-serrano/bigloo
new_body.scm
;*=====================================================================*/ * ... /project / bigloo / / comptime / Globalize / new_body.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : Mon...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/fdeac39af72d5119d01818815b0f395f2907d6da/comptime/Globalize/new_body.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * For each globalized function, we set its new body. */ *===========================...
* ... /project / bigloo / / comptime / Globalize / new_body.scm * / * Author : * / * Creation : Mon Jan 30 09:25:08 1995 * / * Last change : We d Jun 16 16:02:27 2021 ( serrano ) * / * Copyright ...
c39229bcfde2a4bbe76a877a496e8de987736cd5df5373f8589f8e22b10d96e1
ocsigen/ojquery
ojquery.ml
open JavaScript let alloc_args nb = Array.make nb (Ops.constant "undefined"), ref [] let push_arg args arg = snd args := arg :: !(snd args) let set_arg args idx arg = (fst args).(idx) <- arg let get_arg args idx = (fst args).(idx) let build_args args = Array.concat [ fst args ; Array.of_list (Lis...
null
https://raw.githubusercontent.com/ocsigen/ojquery/46c2ea5d5c6dd954e756aa81c77ec0b253faea97/src/ojquery.ml
ocaml
open JavaScript let alloc_args nb = Array.make nb (Ops.constant "undefined"), ref [] let push_arg args arg = snd args := arg :: !(snd args) let set_arg args idx arg = (fst args).(idx) <- arg let get_arg args idx = (fst args).(idx) let build_args args = Array.concat [ fst args ; Array.of_list (Lis...
82c67bcd872d30854a6b08e125f49a91a60d28bc8014da58e2508e273688d577
ArtichOwO/r86
log.ml
let blue = Printf.sprintf "\027[0;34m%s\027[0m" and red = Printf.sprintf "\027[0;31m%s\027[0m" and yellow = Printf.sprintf "\027[0;33m%s\027[0m" and magenta = Printf.sprintf "\027[0;35m%s\027[0m" and cyan = Printf.sprintf "\027[0;36m%s\027[0m" type msg = | Log of string | SysError of string | Error of string...
null
https://raw.githubusercontent.com/ArtichOwO/r86/863b778a5bb1cb8725dc9119e13a83ae812ff3e1/lib/log.ml
ocaml
let blue = Printf.sprintf "\027[0;34m%s\027[0m" and red = Printf.sprintf "\027[0;31m%s\027[0m" and yellow = Printf.sprintf "\027[0;33m%s\027[0m" and magenta = Printf.sprintf "\027[0;35m%s\027[0m" and cyan = Printf.sprintf "\027[0;36m%s\027[0m" type msg = | Log of string | SysError of string | Error of string...
0e6beefe5d9ab164bb6fe87cf5220374ce56cb371292e605a85cdece297ab71a
audreyt/openafp
FND.hs
module OpenAFP.Records.AFP.FND where import OpenAFP.Types import OpenAFP.Internals data FND = FND { fnd_Type :: !N3 ,fnd_ :: !N3 ,fnd :: !NStr } deriving (Show, Typeable)
null
https://raw.githubusercontent.com/audreyt/openafp/178e0dd427479ac7b8b461e05c263e52dd614b73/src/OpenAFP/Records/AFP/FND.hs
haskell
module OpenAFP.Records.AFP.FND where import OpenAFP.Types import OpenAFP.Internals data FND = FND { fnd_Type :: !N3 ,fnd_ :: !N3 ,fnd :: !NStr } deriving (Show, Typeable)
580e9a983bd47a1a5528ad7bc9e088389810b1fae106d26141cb9006125d1ed1
f-f/dhall-clj
import.clj
(ns dhall-clj.import (:require [dhall-clj.ast :refer :all] [medley.core :refer [map-vals]] [digest :refer [sha-256]] [me.raynes.fs :as fs] [qbits.ex :as ex] [clojure.java.io :as io] [clojure.data.finger-tree :refer [double-list conjl]] ...
null
https://raw.githubusercontent.com/f-f/dhall-clj/05d25d2464972bbeae46d828b478b4cfd59836dc/src/dhall_clj/import.clj
clojure
TODO Remote parents? TODO Remote parents? Resolving imports Here we try to get the cached expression. TODO: (check for referentially opaque once we import http) This `dynamic-expr` might still have imports Cache the expression here contain free variables TODO: save to local cache here
(ns dhall-clj.import (:require [dhall-clj.ast :refer :all] [medley.core :refer [map-vals]] [digest :refer [sha-256]] [me.raynes.fs :as fs] [qbits.ex :as ex] [clojure.java.io :as io] [clojure.data.finger-tree :refer [double-list conjl]] ...
6ddee185de0e6962ff71d43153102f3543e67b7704e3640e53a04a71a40213f6
TristeFigure/shuriken
umeta.clj
(ns shuriken.umeta "### Universal metadata that can hang onto any Object, not just implementors of clojure.lang.IMeta" (:import java.util.Collections clojure.lang.IObj WeakIdentityHashMap)) (def clone-method (doto (.getDeclaredMethod Object "clone" nil) (.setAccessible true))) (d...
null
https://raw.githubusercontent.com/TristeFigure/shuriken/cd36dd2a4005c85260125d89d5a3f475d248e6e4/src/shuriken/umeta.clj
clojure
(ns shuriken.umeta "### Universal metadata that can hang onto any Object, not just implementors of clojure.lang.IMeta" (:import java.util.Collections clojure.lang.IObj WeakIdentityHashMap)) (def clone-method (doto (.getDeclaredMethod Object "clone" nil) (.setAccessible true))) (d...
9296e5bdb5629665edee9da32e737c6c47db7abd227a4bff324b23c22c4e1a6c
Risto-Stevcev/bs-declaredom
Html_Attributes.ml
type t = Declaredom.property Js.Dict.t module LinkType = struct module Link = struct type t = [ `alternate | `author | `help | `icon | `license | `next | `prev | `search | `stylesheet ] [@@bs.deriving jsConverter] let show = tToJs end module Hyperlink = struct type t = [ `al...
null
https://raw.githubusercontent.com/Risto-Stevcev/bs-declaredom/6e2eb1f0daa32a7253caadbdd6392f3371807c88/src/html/Html_Attributes.ml
ocaml
type t = Declaredom.property Js.Dict.t module LinkType = struct module Link = struct type t = [ `alternate | `author | `help | `icon | `license | `next | `prev | `search | `stylesheet ] [@@bs.deriving jsConverter] let show = tToJs end module Hyperlink = struct type t = [ `al...
25d32c0c185846fbb507601779e7165d65eedbefbcce6e14ae3a94b11cec0a7d
Glue42/gateway-modules
messages.cljc
(ns gateway.common.context.spec.messages (:require [clojure.spec.alpha :as s] [gateway.common.spec.messages :refer [message-body] :as messages] [gateway.state.spec.common :as common] [gateway.state.spec.context :as context] [gateway.common.context.spec.requests :as requ...
null
https://raw.githubusercontent.com/Glue42/gateway-modules/be48a132134b5f9f41fd6a6067800da6be5e6eca/common/src/gateway/common/context/spec/messages.cljc
clojure
(ns gateway.common.context.spec.messages (:require [clojure.spec.alpha :as s] [gateway.common.spec.messages :refer [message-body] :as messages] [gateway.state.spec.common :as common] [gateway.state.spec.context :as context] [gateway.common.context.spec.requests :as requ...
6f022b36e40b6e7570286629ac56e6da0c2e3e53ac44c10d4bf288478ad629a4
GrammaticalFramework/gf-core
PGFtoProlog.hs
---------------------------------------------------------------------- -- | Module : PGFtoProlog Maintainer : -- exports a GF grammar into a Prolog module ----------------------------------------------------------------------------- module GF.Compile.PGFtoProlog (grammar2prolog) where import PGF(mkCId...
null
https://raw.githubusercontent.com/GrammaticalFramework/gf-core/9b4f2dd18b64b770aaebfa1885085e8e3447f119/src/compiler/GF/Compile/PGFtoProlog.hs
haskell
-------------------------------------------------------------------- | --------------------------------------------------------------------------- -------------------------------------------------------------------- abstract syntax -------------------------------------------------------------------- concrete syntax...
Module : PGFtoProlog Maintainer : exports a GF grammar into a Prolog module module GF.Compile.PGFtoProlog (grammar2prolog) where import PGF(mkCId,wildCId,showCId) import PGF.Internal import PGF.Macros import GF.Data.Operations import qualified Data.Array.IArray as Array import qualified Data.Set as ...
64dcd7e9a2ae794b9d3b0a3167babab554a702ccd49afeb97f43bd0a1750d4e4
anoma/juvix
Extra.hs
module Juvix.Compiler.Core.Extra ( module Juvix.Compiler.Core.Extra.Utils, module Juvix.Compiler.Core.Extra.IdentDependencyInfo, ) where import Juvix.Compiler.Core.Extra.IdentDependencyInfo import Juvix.Compiler.Core.Extra.Utils
null
https://raw.githubusercontent.com/anoma/juvix/26424b13384540a5351667dcb0c4965336bb61b2/src/Juvix/Compiler/Core/Extra.hs
haskell
module Juvix.Compiler.Core.Extra ( module Juvix.Compiler.Core.Extra.Utils, module Juvix.Compiler.Core.Extra.IdentDependencyInfo, ) where import Juvix.Compiler.Core.Extra.IdentDependencyInfo import Juvix.Compiler.Core.Extra.Utils
287bf93dd7a25585448bf62786050bfab8472690dbd36c4394d03c580526dc29
jhund/re-frame-and-reagent-and-slatejs
project.clj
(defproject rrs "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.9.0"] [org.clojure/clojurescript "1.10.339"] [re-frame "0.10.6"] [reagent "0.8.1" :exclusions [cljsjs/react cljsjs/react-dom cljsjs/react-dom-server]]] :plugins [[lein-cljsbuild "1.1.7"]] :...
null
https://raw.githubusercontent.com/jhund/re-frame-and-reagent-and-slatejs/75593b626d9a31b8069daf16eef2a23e9aa19ec7/project.clj
clojure
(defproject rrs "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.9.0"] [org.clojure/clojurescript "1.10.339"] [re-frame "0.10.6"] [reagent "0.8.1" :exclusions [cljsjs/react cljsjs/react-dom cljsjs/react-dom-server]]] :plugins [[lein-cljsbuild "1.1.7"]] :...
68092443c2620677c60a09223226bbb99875efa761fb9624a7d567d4a2e51ef4
ConsenSys/constellation
Node.hs
module Main ( main ) where import Constellation.Node.Main (defaultMain) main :: IO () main = defaultMain
null
https://raw.githubusercontent.com/ConsenSys/constellation/8fcd2d38b097da5242f511d2fb2149a9764f2f7b/bin/Node.hs
haskell
module Main ( main ) where import Constellation.Node.Main (defaultMain) main :: IO () main = defaultMain
27eed622f76652c1adee0970526f3fc01a9fc9e0e2a0a4d63f5d11779b69b549
yesodweb/yesod
SIO.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # # LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # # LANGUAGE ImplicitParams # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # | The ' SIO '...
null
https://raw.githubusercontent.com/yesodweb/yesod/4f962c90731fd17dc0a940c7ad29fa00f7362ae3/yesod-test/Yesod/Test/Internal/SIO.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE ConstraintKinds # environment between requests and assertions. This module is internal. Breaking changes to this module will not be reflected in the major version of this package. | State + IO Equivalent to 'MS.get' Equivalent to 'MS.put', but the value is evaluated...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # # LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # # LANGUAGE ImplicitParams # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # | The ' SIO ' type is used by " Yesod . Test " to provide exception - safe @sin...
4a12256dafd2d364be41d5b2694ebba972775d726ceb3bac01e1d5654e956218
y-taka-23/miso-vue-example
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import qualified Data.Map as M import Miso import Miso.String (ms) import qualified Miso.Svg as Svg main :: IO () main = do startApp App { initialAction = NoOp , model = initialModel , update = updateModel , view = v...
null
https://raw.githubusercontent.com/y-taka-23/miso-vue-example/4d3fe5a129fa8e126ed4aa786db58c454e79add4/elastic-header/Main.hs
haskell
# LANGUAGE OverloadedStrings # Todo: onMouseLeave event doen't fire
module Main where import qualified Data.Map as M import Miso import Miso.String (ms) import qualified Miso.Svg as Svg main :: IO () main = do startApp App { initialAction = NoOp , model = initialModel , update = updateModel , view = viewModel , subs = [ mouseSub Se...