_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
2fc8ce6b0379fc85b8dbbfe16cd497d0d2f81de4009a85f9b2c5aa0047615e96
sneeuwballen/zipperposition
clauseQueue.mli
This file is free software , part of Zipperposition . See file " license " for more details . * { 1 Priority Queue of clauses } * Heuristic selection of clauses , using a priority queue . Only one queue is used , but the priority of a clause is determined by a combination of criteria that { b should } ...
null
https://raw.githubusercontent.com/sneeuwballen/zipperposition/333c4a5b0f8a726f414db901a77ca30921178da5/src/prover/clauseQueue.mli
ocaml
* @raise Invalid_argument if the string is not recognized
This file is free software , part of Zipperposition . See file " license " for more details . * { 1 Priority Queue of clauses } * Heuristic selection of clauses , using a priority queue . Only one queue is used , but the priority of a clause is determined by a combination of criteria that { b should } ...
d17eb8edf5d431e8d67f2bf6711812c33ddf8ca9170141eebd4abd3f956fa78f
exoscale/clojure-kubernetes-client
v1_volume_attachment_list.clj
(ns clojure-kubernetes-client.specs.v1-volume-attachment-list (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-volume-attachment :refer :all] [clojure-kubernetes-client.specs.v1-list-meta :refer :all] ) (:import (j...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_volume_attachment_list.clj
clojure
(ns clojure-kubernetes-client.specs.v1-volume-attachment-list (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-volume-attachment :refer :all] [clojure-kubernetes-client.specs.v1-list-meta :refer :all] ) (:import (j...
9655ee77c7523eceb39a908ffc5dfaee21ae97f17a90ec7f17040ed032fd1308
sangkilc/ofuzz
uniformtime.ml
(* ofuzz - ocaml fuzzing platform *) * uniform - time scheduling @author < sangkil.cha\@gmail.com > @since 2014 - 03 - 19 @author Sang Kil Cha <sangkil.cha\@gmail.com> @since 2014-03-19 *) Copyright ( c ) 2014 , All rights reserved . Redistribution and use in source and bin...
null
https://raw.githubusercontent.com/sangkilc/ofuzz/ba53cc90cc06512eb90459a7159772d75ebe954f/src/scheduling/uniformtime.ml
ocaml
ofuzz - ocaml fuzzing platform give a uniform time (timeout) for each conf: therefore, effectively no scheduling
* uniform - time scheduling @author < sangkil.cha\@gmail.com > @since 2014 - 03 - 19 @author Sang Kil Cha <sangkil.cha\@gmail.com> @since 2014-03-19 *) Copyright ( c ) 2014 , All rights reserved . Redistribution and use in source and binary forms , with or without modific...
2a090dc2be3805bc0aeecb0e82879ff949aaeaacef02139079ee28f4a86d589d
haskell-servant/servant
Router.hs
# LANGUAGE CPP # {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} module Servant.Server.Internal.Router where import Prelude () import Prelude.Compat import Data.Function (on) import Data.Li...
null
https://raw.githubusercontent.com/haskell-servant/servant/6392dce4bfee915341c62848237cab49141c73f4/servant-server/src/Servant/Server/Internal/Router.hs
haskell
# LANGUAGE DeriveFunctor # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # | Holds information about pieces of url that are captured as variables. ^ Holds the name of the captured variable ^ Holds the type of the captured variable | Internal representation of a router. expected as extra input by...
# LANGUAGE CPP # module Servant.Server.Internal.Router where import Prelude () import Prelude.Compat import Data.Function (on) import Data.List (nub) import Data.Map (Map) import qualified Data.Map ...
742644f7b86ca5d0d1f9c074e8f57c79f571ff1ab687add218154f7bc7551ce3
exercism/haskell
Say.hs
module Say (inEnglish) where import Data.Array (Array, listArray, (!)) smallNumbers :: Array Int String smallNumbers = listArray (1, 19) [ "one", "two", "three", "four", "five", "six", "seven", "eight" , "nine", "ten", "eleven", "twelve", "thirteen", "fourteen" , "fifteen"...
null
https://raw.githubusercontent.com/exercism/haskell/ae17e9fc5ca736a228db6dda5e3f3b057fa6f3d0/exercises/practice/say/.meta/examples/success-standard/src/Say.hs
haskell
module Say (inEnglish) where import Data.Array (Array, listArray, (!)) smallNumbers :: Array Int String smallNumbers = listArray (1, 19) [ "one", "two", "three", "four", "five", "six", "seven", "eight" , "nine", "ten", "eleven", "twelve", "thirteen", "fourteen" , "fifteen"...
0c8a7fb48d60db3400cc5b0f98cbd95d1651f5dbd47dfd43e6f41b02fed99e72
facebookarchive/pfff
generic_vcs.ml
* * Copyright ( C ) 2013 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file licens...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/h_version-control/generic_vcs.ml
ocaml
*************************************************************************** Prelude *************************************************************************** *************************************************************************** Types **************************************************************************...
* * Copyright ( C ) 2013 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file licens...
9310cfa6a46d3be83024fb4f1b0c6764adb7ab63f41e42c3a3e13a54ae11bdac
patrikja/AFPcourse
Proof.hs
module Problem2.Proof where import Problem2.Prod I present the proof " in " just to be able to check the types -- of the steps - this is not required. type EqProof = [] -- Poor man's equality proofs - a list of (supposedly) equal expression " proving " the equality of the first and the last -- expression by a se...
null
https://raw.githubusercontent.com/patrikja/AFPcourse/1a079ae80ba2dbb36f3f79f0fc96a502c0f670b6/exam/2010-03/Problem2/Proof.hs
haskell
of the steps - this is not required. Poor man's equality proofs - a list of (supposedly) equal expression by a series of motivated steps -------------- def. of return def. of (>>=) LeftId law for m and for n def. of composition Inverses -------------- inverses surjectivePairing def. of (>>=), return -- comm...
module Problem2.Proof where import Problem2.Prod I present the proof " in " just to be able to check the types type EqProof = [] expression " proving " the equality of the first and the last proofLeftId :: (Monad m, Monad n) => a -> (a -> Prod m n b) -> EqProof (Prod m n b) proofLeftId a f = [ return a >>= (\...
abe604e398f9881525060009f3ac72cbff6cf00aed94fd585929dd5eb90ad99c
YoshikuniJujo/test_haskell
Middle.hs
# OPTIONS_GHC -Wall -fno - warn - tabs # module Gpu.Vulkan.Ext.DebugUtils.Middle ( -- * Name extensionName, -- * Data Structures Label(..), ObjectNameInfo(..) ) where import Gpu.Vulkan.Ext.DebugUtils.Middle.Internal
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/6694c28f444b99915e7e88dd3b5c38ed44d36466/themes/gui/vulkan/try-vulkan-middle-ext-debug-utils/src/Gpu/Vulkan/Ext/DebugUtils/Middle.hs
haskell
* Name * Data Structures
# OPTIONS_GHC -Wall -fno - warn - tabs # module Gpu.Vulkan.Ext.DebugUtils.Middle ( extensionName, Label(..), ObjectNameInfo(..) ) where import Gpu.Vulkan.Ext.DebugUtils.Middle.Internal
ca88df0149d4f563f464e37c47ab3eed0e18f2f0cab883f94c02cf5404be413e
r0man/google-maps-clj
static.clj
(ns google.maps.test.static (:use clojure.test google.maps.static)) (def location {:latitude 52.523 :longitude 13.411}) (deftest test-static-map-bytes (is (= (first (static-map-bytes location)) -17)) (is (= (first (static-map-bytes location :zoom 4 :width 400 :height 300)) -17))) (deftest test-static-map-image...
null
https://raw.githubusercontent.com/r0man/google-maps-clj/75467cd366fad1250ac78f07e4796c254d09f36a/test/google/maps/test/static.clj
clojure
(ns google.maps.test.static (:use clojure.test google.maps.static)) (def location {:latitude 52.523 :longitude 13.411}) (deftest test-static-map-bytes (is (= (first (static-map-bytes location)) -17)) (is (= (first (static-map-bytes location :zoom 4 :width 400 :height 300)) -17))) (deftest test-static-map-image...
221e666e437d835dbeb5c33b6b67021d05b7c3edd84962c0c73a5fad206e19c7
erlang/otp
erl_types_prop.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2020 - 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/d5ee0b4e6f436041b82f76ca5e24e39d8b153f66/lib/dialyzer/test/property_test/erl_types_prop.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 2020 - 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(erl_types_prop). -compile([export_all, nowarn_export_all]). This module only supports proper , as we use ...
bc80867471624c32aa36f918478db6219b3a9db1921edc2c8bc923cc25242476
synrc/nitro
element_command.erl
-module(element_command). -author('Vladimir Galunshchikov'). -include_lib("nitro/include/nitro.hrl"). -compile(export_all). render_element(Record) when Record#command.show_if==false -> [<<>>]; render_element(Record) -> List = [ %global {<<"accesskey">>, Record#command.accesskey}, {<<"class">>, Re...
null
https://raw.githubusercontent.com/synrc/nitro/753b543626add2c014584546ec50870808a2eb90/src/elements/interactive/element_command.erl
erlang
global spec
-module(element_command). -author('Vladimir Galunshchikov'). -include_lib("nitro/include/nitro.hrl"). -compile(export_all). render_element(Record) when Record#command.show_if==false -> [<<>>]; render_element(Record) -> List = [ {<<"accesskey">>, Record#command.accesskey}, {<<"class">>, Record#command.c...
2799e06741bfef3cb66083025f4623eb6578612a931be1e524d7b0effe8600ce
duct-framework/core
env_test.clj
(ns duct.env-test (:require [clojure.test :refer :all] [duct.core.env :as env]) (:import (clojure.lang ExceptionInfo))) (deftest coerce (are [a b c] (= (env/coerce a b) c) "a" 'Str "a" 12 'Str "12" "123" 'Int 123 "1.2" 'Double 1.2 "true" 'Bool true "TruE" '...
null
https://raw.githubusercontent.com/duct-framework/core/2816b7273011ca0d119141210fb7fe1c9599176b/test/duct/env_test.clj
clojure
(ns duct.env-test (:require [clojure.test :refer :all] [duct.core.env :as env]) (:import (clojure.lang ExceptionInfo))) (deftest coerce (are [a b c] (= (env/coerce a b) c) "a" 'Str "a" 12 'Str "12" "123" 'Int 123 "1.2" 'Double 1.2 "true" 'Bool true "TruE" '...
8575de471c06f20f9379aa4a8a148aedf7cb2c7c5bcc3efe95a6f76e7f72f27a
racket/web-server
timer.rkt
#lang racket/base (require racket/contract racket/match) Timeout plan ;; ============ ;; ;; For each connection: ;; * start timeout on connection startup. ;; ;; For each request on a connection: ;; * reset timeout when request data comes in, ;; * reset timeout before the response is handled by the ap...
null
https://raw.githubusercontent.com/racket/web-server/39f49dade5edab758ed9c00f35e5093bc5a69da5/web-server-lib/web-server/private/timer.rkt
racket
============ For each connection: * start timeout on connection startup. For each request on a connection: * reset timeout when request data comes in, * reset timeout before the response is handled by the application, * reset timeout after the application hands the response back, * reset timeout for...
#lang racket/base (require racket/contract racket/match) Timeout plan (define-logger web-server/timer) (struct timer-manager (thd)) (struct timer (tm [deadline #:mutable] [action #:mutable]) #:extra-constructor-name make-timer) (define (start-timer-manager) (define thd (thread (lambda () ...
3d17c729b6afd0518ddaa5024057122a135a882481a9fc3c19fbd976017a5ec8
may-liu/qtalk
http_get_user_nick.erl
%% Feel free to use, reuse and abuse the code in this file. -module(http_get_user_nick). -export([init/3]). -export([handle/2]). -export([terminate/3]). -include("logger.hrl"). -include("http_req.hrl"). -include("ejb_http_server.hrl"). init(_Transport, Req, []) -> {ok, Req, undefined}. handle(Req, State) -> ...
null
https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/scripts/ejb_http_server/src/http_get_user_nick.erl
erlang
Feel free to use, reuse and abuse the code in this file.
-module(http_get_user_nick). -export([init/3]). -export([handle/2]). -export([terminate/3]). -include("logger.hrl"). -include("http_req.hrl"). -include("ejb_http_server.hrl"). init(_Transport, Req, []) -> {ok, Req, undefined}. handle(Req, State) -> handle(Req , State , iplimit_util : ) ) . catch ejb_mon...
a4f3b8c9db4e5263ac4702d3d7418875eaea8f0811ddf2d441ee759099056aad
haskell/cabal
ConfigureScript.hs
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE RankNTypes #-} # LANGUAGE LambdaCase # # LANGUAGE CPP # ----------------------------------------------------------------------------- -- | -- Module : Distribution.Simple.ConfigureScript Copyright : 2003 - 2005 -- License : ...
null
https://raw.githubusercontent.com/haskell/cabal/ab24689731e9fb45efa6277f290624622a6c214f/Cabal/src/Distribution/Simple/ConfigureScript.hs
haskell
# LANGUAGE RankNTypes # --------------------------------------------------------------------------- | Module : Distribution.Simple.ConfigureScript License : BSD3 Maintainer : Portability : portable local Base The C compiler's compilation and linker flags (e.g. been merged into ccFlags, so we s...
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE LambdaCase # # LANGUAGE CPP # Copyright : 2003 - 2005 # OPTIONS_GHC -fno - warn - deprecations # module Distribution.Simple.ConfigureScript ( runConfigureScript ) where import Prelude () import Distribution.Compat.Prelude import...
ba959b055e3e320b6df48fc7b4e7761d9db3df0ec80fd264fdd94c9801abebc2
SamB/coq
ring.ml
(************************************************************************) 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/contrib/ring/ring.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Ring theory Ring normalize Ring...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ Id$ ML part of the R...
73b5258835f1679b1c859edcbff2efc08ebe87c564bf4ebb5977d8a852ec4f51
kmi/irs
tutorial.lisp
(defpackage :tutorial-iswc-2007 (:use :common-lisp :cl-who :irs)) (in-package #:tutorial-iswc-2007) (defmethod initialise-application ((app (eql :tutorial-iswc-2007))) (webonto:require-ontologies '(:goal-get-license :ws-get-license :wg-get-license ...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/apps/tutorial-iswc-2007/tutorial.lisp
lisp
(defpackage :tutorial-iswc-2007 (:use :common-lisp :cl-who :irs)) (in-package #:tutorial-iswc-2007) (defmethod initialise-application ((app (eql :tutorial-iswc-2007))) (webonto:require-ontologies '(:goal-get-license :ws-get-license :wg-get-license ...
5ef3b4110995a5dc1b6f16b25001a7410516baf95af70a90118e178b851aca50
huangz1990/SICP-answers
p181-queue.scm
;;; p181-queue.scm ; ptr (define (front-ptr queue) (car queue)) (define (rear-ptr queue) (cdr queue)) (define (set-front-ptr! queue item) (set-car! queue item)) (define (set-rear-ptr! queue item) (set-cdr! queue item)) ; queue (define (empty-queue? queue) (null? (front-ptr queue))) (define (...
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp3/code/p181-queue.scm
scheme
p181-queue.scm ptr queue
(define (front-ptr queue) (car queue)) (define (rear-ptr queue) (cdr queue)) (define (set-front-ptr! queue item) (set-car! queue item)) (define (set-rear-ptr! queue item) (set-cdr! queue item)) (define (empty-queue? queue) (null? (front-ptr queue))) (define (make-queue) (cons '() '())) ...
d6f1c041707fd0f512315c66ac254b9fe863224bd14763299505da0decd83929
twosigma/waiter
service.clj
;; Copyright ( c ) Two Sigma Open Source , LLC ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to in writing, software...
null
https://raw.githubusercontent.com/twosigma/waiter/fa1d028f61f92c8be15ddb45cfa743b92eeb4058/waiter/src/waiter/service.clj
clojure
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 permi...
Copyright ( c ) Two Sigma Open Source , LLC distributed under the License is distributed on an " AS IS " BASIS , (ns waiter.service (:require [clj-time.core :as t] [clojure.core.async :as async] [clojure.tools.logging :as log] [metrics.counters :as counters] [metric...
cc73618c52d610af4c10e8a10ed2b3293173de466df1baf797ee57dbf958196f
janegca/htdp2e
SP-move-right.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname SP-move-right) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor re...
null
https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/03-Intermezzo-Scope/SP-move-right.rkt
racket
about the language level of this file in a form that our tools can easily process. Sample Problem: Use match to design the function move-right. The latter consumes a list of It adds the latter to each x coordinate, which represents an rightward movement of these objects. [List-of Posn] -> [List-of Posn] moves ...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname SP-move-right) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ()))) Posns , which represent the positions of objects...
1cbccf36c04a57727a62fa67fa8f372669f4214bd6ff42d38153882ab66bdf5b
rm-hull/project-euler
euler081.clj
EULER # 081 ;; ========== In the 5 by 5 matrix below , the minimal path sum from the top left to ;; the bottom right, by only moving to the right and down, is indicated in brackets and is equal to 2427 . ;; [ 131 ] 673 234 103 18 [ 201 ] [ 96][342 ] 965 150 630 803 [ 746][422 ] 111 5...
null
https://raw.githubusercontent.com/rm-hull/project-euler/04e689e87a1844cfd83229bb4628051e3ac6a325/src/euler081.clj
clojure
========== the bottom right, by only moving to the right and down, is indicated by only moving right and down.
EULER # 081 In the 5 by 5 matrix below , the minimal path sum from the top left to in brackets and is equal to 2427 . [ 131 ] 673 234 103 18 [ 201 ] [ 96][342 ] 965 150 630 803 [ 746][422 ] 111 537 699 497 [ 121 ] 956 805 732 524 [ 37][331 ] Find the minimal path sum ,...
670aae23febd89688e6a460738ce866bdc1e37b75b11ab59b1f996141d1ec8fd
dzen-dhall/dzen-dhall
Plug.hs
module DzenDhall.Commands.Plug where import DzenDhall.App import DzenDhall.Config import DzenDhall.Extra import DzenDhall.Runtime.Data import DzenDhall.Arguments (PlugCommand (..), ConfirmPlug(..)) import Control.Applicative import Control.Exceptio...
null
https://raw.githubusercontent.com/dzen-dhall/dzen-dhall/ee43b74272d6776ce57adfd7b7d85650580a6cbb/src/DzenDhall/Commands/Plug.hs
haskell
^ Load from @-dhall/plugins@ by name. ^ Load from URL | Load plugin from URL and validate it by parsing. | Try parsing a file. | Try to load plugin meta by inserting a plugin into the current environment (using 'inputWithSettings'). A dirty hack - we just access the `meta` field, discarding `main` so that there...
module DzenDhall.Commands.Plug where import DzenDhall.App import DzenDhall.Config import DzenDhall.Extra import DzenDhall.Runtime.Data import DzenDhall.Arguments (PlugCommand (..), ConfirmPlug(..)) import Control.Applicative import Control.Exceptio...
0a157df4bb166ba37b18b885cea2aad9f1f4229fb611ca5d852fe2f083237eb4
JHU-PL-Lab/jaylang
file_utils.ml
open! Core let jayil_exts = [ "jil"; "odefa" ] let jay_exts = [ "jay"; "natodefa" ] let bluejay_exts = [ "bjy"; "tnat" ] let check_jayil_ext s = List.exists jayil_exts ~f:(Filename.check_suffix s) let check_jay_ext s = List.exists jay_exts ~f:(Filename.check_suffix s) let check_bluejay_ext s = List.exists bluejay_exts...
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/484b3876986a515fb57b11768a1b3b50418cde0c/src/dj-common/utils/file_utils.ml
ocaml
for users
open! Core let jayil_exts = [ "jil"; "odefa" ] let jay_exts = [ "jay"; "natodefa" ] let bluejay_exts = [ "bjy"; "tnat" ] let check_jayil_ext s = List.exists jayil_exts ~f:(Filename.check_suffix s) let check_jay_ext s = List.exists jay_exts ~f:(Filename.check_suffix s) let check_bluejay_ext s = List.exists bluejay_exts...
20b4b1afe994bda7bacbdb8e60e9a607161d406b3542cf61a435a2c87250398b
tomhanika/conexp-clj
optimize.clj
;; Copyright ⓒ the conexp-clj developers; 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 LICENSE at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bou...
null
https://raw.githubusercontent.com/tomhanika/conexp-clj/5e4c15697f06446f925f53d1d143528155d7dd3a/src/main/clojure/conexp/math/optimize.clj
clojure
Copyright ⓒ the conexp-clj developers; all rights reserved. The use and distribution terms for this software are covered by the which can be found in the file 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 re...
Eclipse Public License 1.0 ( -1.0.php ) (ns conexp.math.optimize (:require [conexp.math.util :refer :all]) (:import [org.apache.commons.math.optimization DifferentiableMultivariateRealOptimizer GoalType RealConvergenceChecker RealPointValuePair] [org.apache.commons.math.optimization.direct DirectSearc...
e3b485188eb60ae718d2e5826c317ebe0a58c3bb871589e98ac73dbc98df67bc
bnoordhuis/chicken-core
module-tests-2.scm
module-tests-2.scm (module oo (output-of) (import scheme chicken ports) (define-syntax output-of (syntax-rules () ((_ exp) (with-output-to-string (lambda () exp))))) ) (module mscheme (lambda) (import (rename scheme (lambda s:lambda)) chicken) (reexport (except scheme lambda)) (define-synta...
null
https://raw.githubusercontent.com/bnoordhuis/chicken-core/56d30e3be095b6abe1bddcfe10505fa726a43bb5/tests/module-tests-2.scm
scheme
should use standard lambda should be our lambda standard lambda our lambda should use new lambda (but should be folded by compiler) local define should work even with redefined define
module-tests-2.scm (module oo (output-of) (import scheme chicken ports) (define-syntax output-of (syntax-rules () ((_ exp) (with-output-to-string (lambda () exp))))) ) (module mscheme (lambda) (import (rename scheme (lambda s:lambda)) chicken) (reexport (except scheme lambda)) (define-synta...
c52833a7a0688052ccbe76c013b3f9ee4a624464a073f8939b9477a52a17f57a
nrepl/weasel
project.clj
(defproject weasel "0.7.1" :description "websocket REPL environment for ClojureScript" :url "" :license {:name "Unlicense" :url "" :distribution :repo} :scm {:name "git" :url ""} :dependencies [[org.clojure/clojure "1.10.0"] [org.clojure/clojurescript "1.10.52...
null
https://raw.githubusercontent.com/nrepl/weasel/338109d3504fa96b8a15b6892fb8c4aceeb90857/project.clj
clojure
(defproject weasel "0.7.1" :description "websocket REPL environment for ClojureScript" :url "" :license {:name "Unlicense" :url "" :distribution :repo} :scm {:name "git" :url ""} :dependencies [[org.clojure/clojure "1.10.0"] [org.clojure/clojurescript "1.10.52...
8d38dcb0d0299ecf8996d21a51dfffd368876705c424a7d0db7e331576cfebaa
gedge-platform/gedge-platform
rabbit_amqp1_0_reader.erl
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 /. %% Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_amqp1_0_reader). Transitional s...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_amqp1_0/src/rabbit_amqp1_0_reader.erl
erlang
use the now recommended try/catch syntax for obtaining the stack trace. -------------------------------------------------------------------------- -------------------------------------------------------------------------- The atom doesn't match anything, it's just "not 0-9-1". --------------------------------------...
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 /. Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_amqp1_0_reader). Transitional step un...
c35e4d4f14408eab9ef4deccd67e4af8cb91cc6189998763e5baaee5f0f6a375
wargrey/w3s
tokenizer.rkt
#lang typed/racket/base (provide (all-defined-out)) (provide syn-token-port-location syn-token-skip-whitespace) (require digimon/token) (require "digicore.rkt") (require "tokenizer/delimiter.rkt") (require "tokenizer/port.rkt") (require (for-syntax racket/base)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/wargrey/w3s/ce6ef2f019b32be6b458cfd8aca2b48ecbf7a5b5/sgml/digitama/tokenizer.rkt
racket
close delimiter for empty Elements not an close delimiter not an open delimiter
#lang typed/racket/base (provide (all-defined-out)) (provide syn-token-port-location syn-token-skip-whitespace) (require digimon/token) (require "digicore.rkt") (require "tokenizer/delimiter.rkt") (require "tokenizer/port.rkt") (require (for-syntax racket/base)) (define-syntax (xml-make-token stx) (syntax-case ...
e622f01422f547fb3d8614dbf3d6cde5d6142ba1e249e45ae6c1ec08adb42928
elastic/eui-cljs
padding.cljs
(ns eui.global.padding (:require ["@elastic/eui/lib/global_styling/mixins/_padding.js" :as eui])) (def useEuiPaddingSize eui/useEuiPaddingSize) (def euiPaddingSize eui/euiPaddingSize) (def PADDING_SIZES eui/PADDING_SIZES) (def useEuiPaddingCSS eui/useEuiPaddingCSS)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/global/padding.cljs
clojure
(ns eui.global.padding (:require ["@elastic/eui/lib/global_styling/mixins/_padding.js" :as eui])) (def useEuiPaddingSize eui/useEuiPaddingSize) (def euiPaddingSize eui/euiPaddingSize) (def PADDING_SIZES eui/PADDING_SIZES) (def useEuiPaddingCSS eui/useEuiPaddingCSS)
898fe8ac9ab6883a6028ce170df994346c79e361b6830ef74a78d380ff74dc24
tisnik/clojure-examples
details.clj
{:aliases {"downgrade" "upgrade"}, :checkout-deps-shares [:source-paths :test-paths :resource-paths :compile-path "#'leiningen.core.classpath/checkout-deps-paths"], :clean-targets [:target-path], :compile-path "/home/ptisnovs/src/clojure/clojure-examples/async11/target/default/classes", :dependencies ([o...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/bb0b3b9132aa14ef2448e278e95825404ec2aad7/async11/doc/details.clj
clojure
{:aliases {"downgrade" "upgrade"}, :checkout-deps-shares [:source-paths :test-paths :resource-paths :compile-path "#'leiningen.core.classpath/checkout-deps-paths"], :clean-targets [:target-path], :compile-path "/home/ptisnovs/src/clojure/clojure-examples/async11/target/default/classes", :dependencies ([o...
df692a829811944c954d806df2e24616db46f2b6c312e0fb2a0b434fab53f809
erlang/rebar3
rebar_issue1_app.erl
%%%------------------------------------------------------------------- %% @doc rebar_issue1 public API %% @end %%%------------------------------------------------------------------- -module(rebar_issue1_app). -behaviour(application). %% Application callbacks -export([start/2, stop/1]). %%===========================...
null
https://raw.githubusercontent.com/erlang/rebar3/048412ed4593e19097f4fa91747593aac6706afb/apps/rebar/test/rebar_xref_SUITE_data/recursive/apps/rebar_issue1/src/rebar_issue1_app.erl
erlang
------------------------------------------------------------------- @doc rebar_issue1 public API @end ------------------------------------------------------------------- Application callbacks ==================================================================== API ===================================================...
-module(rebar_issue1_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> rebar_issue1_sup:start_link(). stop(_State) -> ok. Internal functions
bcb56e3cf704fe3d0aec8c1ce34d713fe567a7f523eb56a54b4917123721f74c
ConferOpenSource/composite
Ekg.hs
module Composite.Ekg (EkgMetric(ekgMetric)) where import Composite.Record ((:->)(Val), Rec((:&), RNil), Record) import Data.Char (isUpper, toLower) import Data.Functor.Identity (Identity(Identity)) import qualified Data.Text as Text import Data.Proxy (Proxy(Proxy)) import Data.Text (Text, pack) import GHC.TypeLits (Kn...
null
https://raw.githubusercontent.com/ConferOpenSource/composite/4be75266b5293516b225030c207c4e08b35c1df2/composite-ekg/src/Composite/Ekg.hs
haskell
|Type class for constructing a configured EKG metric store for record type of named fields For example, given: > type FActiveUsers = "activeUsers" :-> Gauge > type FResponseTimes = "endpointResponseTimes" :-> Distribution And then used in: > configureMetrics = do > metrics <- ekgMetric "myapp...
module Composite.Ekg (EkgMetric(ekgMetric)) where import Composite.Record ((:->)(Val), Rec((:&), RNil), Record) import Data.Char (isUpper, toLower) import Data.Functor.Identity (Identity(Identity)) import qualified Data.Text as Text import Data.Proxy (Proxy(Proxy)) import Data.Text (Text, pack) import GHC.TypeLits (Kn...
6ee26f5ca983205c3ea09eb08eb48a991e1b0b913a0df61e3b918fc350ff0813
onyx-platform/onyx-examples
core.clj
(ns flow-short-circuit.core (:require [clojure.core.async :refer [chan >!! <!! close!]] [onyx.plugin.core-async :refer [take-segments!]] [onyx.api]) (:gen-class)) (def workflow [[:in :identity] [:identity :out]]) (defn my-identity [{:keys [n] :as segment}] segment) (def capacity 10...
null
https://raw.githubusercontent.com/onyx-platform/onyx-examples/668fddd26bc6b692a478fb8dc0e6d3d329879396/flow-short-circuit/src/flow_short_circuit/core.clj
clojure
(ns flow-short-circuit.core (:require [clojure.core.async :refer [chan >!! <!! close!]] [onyx.plugin.core-async :refer [take-segments!]] [onyx.api]) (:gen-class)) (def workflow [[:in :identity] [:identity :out]]) (defn my-identity [{:keys [n] :as segment}] segment) (def capacity 10...
b0a83a01ed2542dec4f6caece7cd9b6b6c7cbcb223836a1d082355243ff18f8f
PacktPublishing/Mastering-Clojure
project.clj
(defproject m-clj "0.1" :description "Code for Mastering Clojure" :uberjar-name "m-clj.jar" :java-agents [[co.paralleluniverse/quasar-core "0.7.3"]] :jvm-opts ["-Dco.paralleluniverse.pulsar.instrument.auto=all"] :test-paths ["spec" "test"] :plugins [[lein-cljsbuild "1.1.1"] [lein-midje "3.1.3"...
null
https://raw.githubusercontent.com/PacktPublishing/Mastering-Clojure/5364ad907056c1c84c759491b17d45d06f4d7cdc/project.clj
clojure
tests
(defproject m-clj "0.1" :description "Code for Mastering Clojure" :uberjar-name "m-clj.jar" :java-agents [[co.paralleluniverse/quasar-core "0.7.3"]] :jvm-opts ["-Dco.paralleluniverse.pulsar.instrument.auto=all"] :test-paths ["spec" "test"] :plugins [[lein-cljsbuild "1.1.1"] [lein-midje "3.1.3"...
b5183cba192be6b9e6512d1313c685fd16f5e7763d75f85a40d16868c5acdf30
rtoy/cmucl
gray-streams.lisp
;;; ;;; ********************************************************************** This code was written by and has been placed in ;;; the Public domain, and is provided 'as is'. ;;; (file-comment "$Header: src/pcl/gray-streams.lisp $") ;;; ;;; ********************************************************************** ...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/pcl/gray-streams.lisp
lisp
********************************************************************** the Public domain, and is provided 'as is'. ********************************************************************** Bootstrapping hack. Character input streams. A character input stream can be created by defining a class that includes FU...
This code was written by and has been placed in (file-comment "$Header: src/pcl/gray-streams.lisp $") Gray streams implementation for CMUCL . Based on the stream - definition - by - user proposal by . (in-package "LISP") (intl:textdomain "cmucl") (fmakunbound 'stream-element-type) (defgeneric strea...
9db3480977fa70d7ee916fe8d9ec0b07ebf37f1f1496035140b3c0a2c70d6feb
nasa/Common-Metadata-Repository
tool_association_permission_test.clj
(ns cmr.system-int-test.search.tool.tool-association-permission-test "This tests associating tools with collections." (:require [clojure.test :refer :all] [cmr.mock-echo.client.echo-util :as echo-util] [cmr.system-int-test.data2.core :as data-core] [cmr.system-int-test.data2.umm-spec-collection :as data...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/a9eff0ad57a5a7630124a7f60a3e13d62bb14816/system-int-test/test/cmr/system_int_test/search/tool/tool_association_permission_test.clj
clojure
PROV1 has :grant-all-ingest? set to false, meaning no one has update permission on INGEST_MANAGEMENT_ACL. create a guest token to be used for association. PROV1 has :grant-all-ingest? set to false, meaning no one has update permission on INGEST_MANAGEMENT_ACL. create a guest token to be used for dissociation. toke...
(ns cmr.system-int-test.search.tool.tool-association-permission-test "This tests associating tools with collections." (:require [clojure.test :refer :all] [cmr.mock-echo.client.echo-util :as echo-util] [cmr.system-int-test.data2.core :as data-core] [cmr.system-int-test.data2.umm-spec-collection :as data...
eea2bd738f3e4b4997364c48f1bbf5a16ff0fbf256f2bf2578bbcc016d4bfc66
gwkkwg/cl-graph
tests-in-progress.lisp
(in-package cl-graph) (defun foo () (let ((graph (cl-graph:make-graph 'cl-graph:graph-container :vertex-test #'equal))) (cl-graph:add-vertex graph "a") (cl-graph:add-vertex graph "b") (cl-graph:add-vertex graph "c") (cl-graph:add-vertex graph "d") (cl-graph:add-vertex graph "e") (cl-...
null
https://raw.githubusercontent.com/gwkkwg/cl-graph/3cb786797b24883d784b7350e7372e8b1e743508/unit-tests/tests-in-progress.lisp
lisp
(in-package cl-graph) (defun foo () (let ((graph (cl-graph:make-graph 'cl-graph:graph-container :vertex-test #'equal))) (cl-graph:add-vertex graph "a") (cl-graph:add-vertex graph "b") (cl-graph:add-vertex graph "c") (cl-graph:add-vertex graph "d") (cl-graph:add-vertex graph "e") (cl-...
59d08b4f40f29949e5e5940cccca4f3228b5c55c2f5c8d277abe3d048d70fd16
emedia-project/paris
paris_router.erl
-module(paris_router). -export([ routes/1 ]). -export([ init/3, handle/2, terminate/3 ]). -export([ websocket_init/3, websocket_handle/3, websocket_info/3, websocket_terminate/3 ]). % ------------------------------------- % Common % ------------------------------------- routes(App) -> CustomRoute...
null
https://raw.githubusercontent.com/emedia-project/paris/7ba24bcb76f8ab31b78d49e1a9f9c7643bfca80c/src/paris_router.erl
erlang
------------------------------------- Common ------------------------------------- ------------------------------------- REST ------------------------------------- ------------------------------------- Websocket ------------------------------------- ------------------------------------- Private ------------...
-module(paris_router). -export([ routes/1 ]). -export([ init/3, handle/2, terminate/3 ]). -export([ websocket_init/3, websocket_handle/3, websocket_info/3, websocket_terminate/3 ]). routes(App) -> CustomRoutes = case application:get_env(App, routes) of {ok, Routes} -> lists:map( ...
737039dd736aec9d4d63a947d2a2cd9e58a4091a810cacaff652d3ae81141cf3
ghilesZ/geoml
line.mli
(** This module provides basic operation over the linear equation type *) type t = private | X of float | Y of float * float (** the linear equation type *) val print : Format.formatter -> t -> unit (** printer *) val to_string : t -> string (** to string *) type error = | Parallel of t * t | Same_coordina...
null
https://raw.githubusercontent.com/ghilesZ/geoml/6729b74b2d93c483d4893649e7aea66e8b95a61f/src/line.mli
ocaml
* This module provides basic operation over the linear equation type * the linear equation type * printer * to string * the type of errors * the type of exceptions concerning this module * error printer * [make a b c] builds a line of equation: ax + by + c = 0. Raises an error if [a = b = 0.] in which case th...
type t = private | X of float val print : Format.formatter -> t -> unit val to_string : t -> string type error = | Parallel of t * t exception Error of error val print_error : Format.formatter -> error -> unit val make : float -> float -> float -> t val make_x : float -> t val make_y : float -> float -> t ...
17bebb99f0b5f6924f5bdcf9d1f18c7429ff3c67bd41ba24d4b61c8cd9883550
jeapostrophe/racket-android
xp.rkt
#lang racket/base (require "xprize/app.rkt") (provide (all-from-out "xprize/app.rkt")) (module+ main (require (submod "xprize/app.rkt" main)))
null
https://raw.githubusercontent.com/jeapostrophe/racket-android/fd2c14ff6c292f62902e7577615c4b4278923fb5/rkt/xp.rkt
racket
#lang racket/base (require "xprize/app.rkt") (provide (all-from-out "xprize/app.rkt")) (module+ main (require (submod "xprize/app.rkt" main)))
b2dce75d1ca676c803bec3e9b60bf13aeb4f1c699f95d7cb5cc6e04b24186dbd
mmontone/cl-forms
renderers.lisp
(in-package :forms.test) (hunchentoot:define-easy-handler (demo-renderers :uri "/renderers") () (flet ((render () (forms:with-form-renderer :who (who:with-html-output (forms.who:*html*) (:h2 "CL-WHO") (:p (who:str "Render via CL-WHO and whole form with RENDER-FORM.")) (forms:...
null
https://raw.githubusercontent.com/mmontone/cl-forms/b2701defe2867a529d2d3a237f7ba0c4d08ffb23/test/demo/renderers.lisp
lisp
(in-package :forms.test) (hunchentoot:define-easy-handler (demo-renderers :uri "/renderers") () (flet ((render () (forms:with-form-renderer :who (who:with-html-output (forms.who:*html*) (:h2 "CL-WHO") (:p (who:str "Render via CL-WHO and whole form with RENDER-FORM.")) (forms:...
6d3fa92d15bc898748dc0855531d37be61adcbe23bd0240f96346cb7e6b8c796
input-output-hk/ouroboros-network
Util.hs
{-# LANGUAGE DeriveFunctor #-} # LANGUAGE RecordWildCards # -- | Support for defining 'BlockchainTime' instances module Ouroboros.Consensus.BlockchainTime.WallClock.Util ( -- * Tracing TraceBlockchainTimeEvent (..) -- * Exceptions , SystemClockMovedBackException (..) ) where import Control...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/c82309f403e99d916a76bb4d96d6812fb0a9db81/ouroboros-consensus/src/Ouroboros/Consensus/BlockchainTime/WallClock/Util.hs
haskell
# LANGUAGE DeriveFunctor # | Support for defining 'BlockchainTime' instances * Tracing * Exceptions ------------------------------------------------------------------------------ Tracing ------------------------------------------------------------------------------ | Time related tracing | The start time of t...
# LANGUAGE RecordWildCards # module Ouroboros.Consensus.BlockchainTime.WallClock.Util ( TraceBlockchainTimeEvent (..) , SystemClockMovedBackException (..) ) where import Control.Exception (Exception) import Data.Time (NominalDiffTime) import Ouroboros.Consensus.Block import ...
c0cb05831ec8ec20aa74d22c2ee28fe123a4567f1303a5fa4ae9918fd1850505
meain/evil-textobj-tree-sitter
textobjects.scm
TODO : supported by official - sitter if ( _ ) * is more than one node Neovim : will only match if ( _ ) is exactly one node ;(function_definition ;body: (compound_statement ( " { " ( _ ) * " } " ) ) ? ) @function.outer (declaration declarator: (function_declarator)) @function.outer (function_definition ...
null
https://raw.githubusercontent.com/meain/evil-textobj-tree-sitter/02f8253034042d8f171bc0ef93e3538b71a29153/queries/c/textobjects.scm
scheme
(function_definition body: (compound_statement conditional loops Statements (expression_statement ;; this is what we actually want to capture in most cases (";" is missing) probably ; the other statement like node type is declaration but declaration has a " ; "
TODO : supported by official - sitter if ( _ ) * is more than one node Neovim : will only match if ( _ ) is exactly one node ( " { " ( _ ) * " } " ) ) ? ) @function.outer (declaration declarator: (function_declarator)) @function.outer (function_definition body: (compound_statement)) @function.outer (func...
c0d6a0242e33853c20be9b38975b9f9f3da9d246ecf659628ba2f1081935f964
PLTools/OCanren
main.ml
let () = Format.printf "%b\n%!" Lib.TestNestedOption.(test reify) let () = Format.printf "%b\n%!" (Lib.TestNat.test ())
null
https://raw.githubusercontent.com/PLTools/OCanren/1ead64bde16b0eb339a6bf790ea871e19bbaccd0/test_eucpp/main.ml
ocaml
let () = Format.printf "%b\n%!" Lib.TestNestedOption.(test reify) let () = Format.printf "%b\n%!" (Lib.TestNat.test ())
321f2c71f1a1c9098400eae2d0ec5e4d2cf576df0f345c30b82b05d3d1770dee
zellige/hastile
Security.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Hastile.Types.Layer.Security where import qualified Data.Aeson as Aeson import qualified Data.Aeson.Types as AesonTypes import qualified Data.Text as DataText data LayerSecurity = Public | Private deriving (Eq) data LayerAuthoris...
null
https://raw.githubusercontent.com/zellige/hastile/4dabe66bd997e91128ab4136b6f40da51c204a2b/src/Hastile/Types/Layer/Security.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # module Hastile.Types.Layer.Security where import qualified Data.Aeson as Aeson import qualified Data.Aeson.Types as AesonTypes import qualified Data.Text as DataText data LayerSecurity = Public | Private deriving (Eq) data LayerAuthorisation = Authorised | Unauthorised d...
e83018ccaa8124654a5862835d635b72023bd5ddf62ba79a8d070dd3b2043f82
acl2/acl2
symbolic-computation-states.lisp
C Library ; Copyright ( C ) 2023 Kestrel Institute ( ) Copyright ( C ) 2023 Kestrel Technology LLC ( ) ; License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . ; Author : ( ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package "C") (i...
null
https://raw.githubusercontent.com/acl2/acl2/ea1669961a650700f6be7befe7c8b61423e4b281/books/kestrel/c/atc/symbolic-computation-states.lisp
lisp
it does not look in other frames.")
C Library Copyright ( C ) 2023 Kestrel Institute ( ) Copyright ( C ) 2023 Kestrel Technology LLC ( ) License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . Author : ( ) (in-package "C") (include-book "../language/computation-states") (local (include-book "kestrel/built-ins/...
56446779aad6810d8c96a1a8e78c3c27b54a63f11b0feeb0d3197b0b0b6ec189
scrintal/heroicons-reagent
squares_2x2.cljs
(ns com.scrintal.heroicons.mini.squares-2x2) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M4.25 2A2.25 2.25 0 002 4.25v2.5A2.25 2.25 0 004.25 9h2.5A2.25 2.25 0 009 6.75v...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/squares_2x2.cljs
clojure
(ns com.scrintal.heroicons.mini.squares-2x2) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M4.25 2A2.25 2.25 0 002 4.25v2.5A2.25 2.25 0 004.25 9h2.5A2.25 2.25 0 009 6.75v...
59397a7863db1eafbbc9437e3dcd1f268c37ffd45c1cff0c4498a8c6243c4c12
acl2/acl2
jvm-facts0@useless-runes.lsp
(JVM::ASSOC-EQUAL-BIND (402 36 (:REWRITE CONSP-FROM-LEN-CHEAP)) (130 65 (:REWRITE EQUAL-OF-BOOLEANS-CHEAP)) (98 14 (:REWRITE LEN-OF-CDR)) (65 65 (:TYPE-PRESCRIPTION BOOLEANP)) (65 65 (:REWRITE JVM::NOT-EQUAL-CONSTANT-WHEN-CDR-WRONG)) (65 65 (:REWRITE JVM::NOT-EQUAL-CONSTANT-WHEN-CAR-WRONG)) (65 65 (:REWRITE EQUA...
null
https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/kestrel/jvm/.sys/jvm-facts0%40useless-runes.lsp
lisp
(JVM::ASSOC-EQUAL-BIND (402 36 (:REWRITE CONSP-FROM-LEN-CHEAP)) (130 65 (:REWRITE EQUAL-OF-BOOLEANS-CHEAP)) (98 14 (:REWRITE LEN-OF-CDR)) (65 65 (:TYPE-PRESCRIPTION BOOLEANP)) (65 65 (:REWRITE JVM::NOT-EQUAL-CONSTANT-WHEN-CDR-WRONG)) (65 65 (:REWRITE JVM::NOT-EQUAL-CONSTANT-WHEN-CAR-WRONG)) (65 65 (:REWRITE EQUA...
d8e11d88a2519f73b17e625bb56e4cd569fc75fa97e7a2de35e27df26f1670d6
startalkIM/ejabberd
glc_lib.erl
Copyright ( c ) 2012 , < > %% %% 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 DISCLAIMS A...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/deps/goldrush/src/glc_lib.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 ) 2012 , < > 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(glc_lib). -export([ reduce/1, matches/2, ...
050d36fdfb4876c08b7133a50379c808863f9cdf7577c10442fa3685818d6e33
fmthoma/vgrep
Type.hs
module Vgrep.Ansi.Type ( Formatted (..) , AnsiFormatted -- * Smart constructors , emptyFormatted , bare , format , cat -- * Modifying the underlying text , mapText , mapTextWithPos , takeFormatted , dropFormatted , padFormatted -- * Internal helpers , fuse ) where import Data....
null
https://raw.githubusercontent.com/fmthoma/vgrep/f3b140bf3150a3699234469c34ff8c13a298998e/src/Vgrep/Ansi/Type.hs
haskell
* Smart constructors * Modifying the underlying text * Internal helpers | A representattion of formatted 'Text'. The attribute is usually a 'Monoid' so that different formattings can be combined by nesting them. ^ An empty block ^ A bare (unformatted) text node ^ Adds formatting to a block | Type alias for Tex...
module Vgrep.Ansi.Type ( Formatted (..) , AnsiFormatted , emptyFormatted , bare , format , cat , mapText , mapTextWithPos , takeFormatted , dropFormatted , padFormatted , fuse ) where import Data.Foldable (foldl') import Data.Text (Text) import qualified Data.Text ...
e9236915d395f7fbd9670936d7552ca3ebec1a899f7e0b684ad29dc07c114b16
ds-wizard/engine-backend
PackageBundleFileJM.hs
module Wizard.Api.Resource.PackageBundle.PackageBundleFileJM where import qualified Data.Text as T import Servant.Multipart import Wizard.Api.Resource.PackageBundle.PackageBundleFileDTO instance FromMultipart Mem PackageBundleFileDTO where fromMultipart form = PackageBundleFileDTO <$> fmap (T.unpack . fd...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/src/Wizard/Api/Resource/PackageBundle/PackageBundleFileJM.hs
haskell
module Wizard.Api.Resource.PackageBundle.PackageBundleFileJM where import qualified Data.Text as T import Servant.Multipart import Wizard.Api.Resource.PackageBundle.PackageBundleFileDTO instance FromMultipart Mem PackageBundleFileDTO where fromMultipart form = PackageBundleFileDTO <$> fmap (T.unpack . fd...
fb7fb1de12f18854e3f9234e75a1c9a4dd65d3a809d6eb9c5dd80deab760ffac
rems-project/cerberus
core_to_mucore.ml
module Print = Pp open Cerb_frontend open Lem_pervasives open Ctype open Milicore module CF = Cerb_frontend module CA = Cabs_to_ail module CAE = Cabs_to_ail_effect module Pmap = struct include Pmap let filter_map compare f map = Pmap.fold (fun key value acc -> match f key value with | Some va...
null
https://raw.githubusercontent.com/rems-project/cerberus/adc6b9c505cd63990f8b928cac5fb8557167b357/backend/cn/core_to_mucore.ml
ocaml
This rewrite should happen after some partial evaluation and rewrites that remove expressions passing ctypes and function pointers as values. The embedding into mucore then is partial in those places. type bty = core_base_type type 'bty pexprs = ('bty pexpr) list type annot = Annot.annot type annots =...
module Print = Pp open Cerb_frontend open Lem_pervasives open Ctype open Milicore module CF = Cerb_frontend module CA = Cabs_to_ail module CAE = Cabs_to_ail_effect module Pmap = struct include Pmap let filter_map compare f map = Pmap.fold (fun key value acc -> match f key value with | Some va...
f9e865ecc11d62692befee51784076015d9e88e96a6be356d6bc745caf70d6e2
tisnik/clojure-examples
core.clj
(ns carmine2.core (:require [taoensso.carmine :as carmine :refer (wcar)])) (def redis-connection { :pool {} :spec { :host "127.0.0.1" :port 6379}}) (defmacro wcar* [& body] `(carmine/wcar redis-connection ~@body)) (defn -main [& args] (println "Pinging Redis") (println (wcar* (ca...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/1ab1fd7b766a2712717e0d5d91bbe96f360f4d94/carmine2/src/carmine2/core.clj
clojure
(ns carmine2.core (:require [taoensso.carmine :as carmine :refer (wcar)])) (def redis-connection { :pool {} :spec { :host "127.0.0.1" :port 6379}}) (defmacro wcar* [& body] `(carmine/wcar redis-connection ~@body)) (defn -main [& args] (println "Pinging Redis") (println (wcar* (ca...
84ab6b60287f54b035722bc39700d1f35f2612c103e677a04d1c74fc768042d9
nominolo/lambdachine
Basic0001.hs
# LANGUAGE NoImplicitPrelude , MagicHash , UnboxedTuples # -- RUN: %bc module Test.Basic0001 where import GHC.Prim -- A simple top-level closure. data X = X
null
https://raw.githubusercontent.com/nominolo/lambdachine/49d97cf7a367a650ab421f7aa19feb90bfe14731/tests/Test/Basic0001.hs
haskell
RUN: %bc A simple top-level closure.
# LANGUAGE NoImplicitPrelude , MagicHash , UnboxedTuples # module Test.Basic0001 where import GHC.Prim data X = X
15dc761a8e843b92354b5bcfae4943eb5ba1356e2a9b8b6a18f04754c1b02a3c
shann09/ztree
project.clj
(defproject ztree "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.7.228"] ] :plugins [[lein-cljsbuild "1.1.1"] ...
null
https://raw.githubusercontent.com/shann09/ztree/86adb7891bc8983b9ab5e6665db392050b1d1f3c/project.clj
clojure
lein cljsbuild auto dev 导出的主js文件 使用gcc的高级压缩模式编译出生产环境用的js,只编译lib lein clean;lein cljsbuild once min; 深度遍历目录下的所有的cljs文件,并编译这些文件 导出的主js文件
(defproject ztree "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.7.228"] ] :plugins [[lein-cljsbuild "1.1.1"] ...
8045492f2b777e74ca31592cc2b03eecbb1b7a792f583084f9cc52bc4f581663
krukow/calabash-script
utils.cljs
(ns calabash-script.utils) (defn target [] (.localTarget js/UIATarget)) (defn app [] (.frontMostApp (target))) (defn windows [] (seq (.toArray (.windows (app))))) (defn window [] (let [main (.mainWindow (app))] (if (.hitpoint main) main (first (filter #(.hitpoint %) (windows)))))) ...
null
https://raw.githubusercontent.com/krukow/calabash-script/7e54beab5aa83087c7b52a55eca3d1828d2d0f36/src/cljs/calabash_script/utils.cljs
clojure
(ns calabash-script.utils) (defn target [] (.localTarget js/UIATarget)) (defn app [] (.frontMostApp (target))) (defn windows [] (seq (.toArray (.windows (app))))) (defn window [] (let [main (.mainWindow (app))] (if (.hitpoint main) main (first (filter #(.hitpoint %) (windows)))))) ...
559617abd17e1a3599e038fa7f8bdf2baa4c2ff14b47af1cd2f7d85bd31299c3
craigl64/clim-ccl
xm-funs.lisp
;; See the file LICENSE for the full license governing this code. ;; ;; ;; This file contains compile time only code -- put in clim-debug.fasl. ;; (in-package :tk) (def-foreign-call (xm_string_create_localized "XmStringCreateLocalized") ((text :foreign-address)) :returning :foreign-address :call-direct t) (...
null
https://raw.githubusercontent.com/craigl64/clim-ccl/301efbd770745b429f2b00b4e8ca6624de9d9ea9/tk/xm-funs.lisp
lisp
See the file LICENSE for the full license governing this code. This file contains compile time only code -- put in clim-debug.fasl. New method to support Motif2.1
(in-package :tk) (def-foreign-call (xm_string_create_localized "XmStringCreateLocalized") ((text :foreign-address)) :returning :foreign-address :call-direct t) (def-foreign-call (xm_string_create_l_to_r "XmStringCreateLtoR") ((x :foreign-address) (y :foreign-address)) :returning :foreign-address :ca...
e66dbe0fb37caa927ebb326eb3c8e87f2d730206229eaaeaf1fbf52296ae311d
ocurrent/ocaml-multicore-ci
cluster_build.mli
type t val config : ?timeout:int64 -> [ `Submission_f4e8a768b32a7c42 ] Capnp_rpc_lwt.Sturdy_ref.t -> t val v : t -> platforms:Platform.t list Current.t -> repo:string Current.t -> ?test_repo:string -> ?compiler_commit:Current_git.Commit_id.t Current.t -> ?sandmark_package:string -> spec:Spec.t Cur...
null
https://raw.githubusercontent.com/ocurrent/ocaml-multicore-ci/d46eecaf7269283a4b95ee40d2a9d6c7ec34a7bf/lib/cluster_build.mli
ocaml
type t val config : ?timeout:int64 -> [ `Submission_f4e8a768b32a7c42 ] Capnp_rpc_lwt.Sturdy_ref.t -> t val v : t -> platforms:Platform.t list Current.t -> repo:string Current.t -> ?test_repo:string -> ?compiler_commit:Current_git.Commit_id.t Current.t -> ?sandmark_package:string -> spec:Spec.t Cur...
76144a16c0c3b7b95fbd7a8a1fa266b8dcbbb3f1b0d7d180fab0cedaa8bd4674
OlafChitil/hat
SExp.hs
-- Pretty printing of an ART expression with a sub-expression highlit. First convert a value ( basically a FileNode ) into an S - expression , -- then convert the S-expression to a Doc for pretty printing. module SExp ( SExp(..) , SFixity(..), transFixity -- used only in module Pattern , Label , QName(..), sh...
null
https://raw.githubusercontent.com/OlafChitil/hat/8840a480c076f9f01e58ce24b346850169498be2/tools/SExp.hs
haskell
Pretty printing of an ART expression with a sub-expression highlit. then convert the S-expression to a Doc for pretty printing. used only in module Pattern a unique string, and the file pointer. The former enables unique highlighting, and the latter enables highlighting of sharing. an identifier (variable or con...
First convert a value ( basically a FileNode ) into an S - expression , module SExp ( SExp(..) , Label , QName(..), showQN , fileNode2SExp , optParens , schemeParens , notCondParens , sExp2Doc , arity, child, label, children, rebuild, parent, prune , funId, funLabel , prettyExpression , pretty...
297623fb25cc49dffcf7332290d46b680c2a6db14be05960d98db37424228c53
Drup/dowsing
Cell.mli
type t val update : Longident.t -> Info.t -> t Option.t -> t val iter : t -> Info.t Iter.t
null
https://raw.githubusercontent.com/Drup/dowsing/6a7b6a9d1206689da45f7030c700c58a0b3c3d8a/lib/index/Cell.mli
ocaml
type t val update : Longident.t -> Info.t -> t Option.t -> t val iter : t -> Info.t Iter.t
56b77794f6fedab91aa5eb7618cd690e45ee47decc16cb8fcff3e8818353a14e
dustin/environ
temp_listener_app.erl
%% %% %% -module(temp_listener_app). -behavior(application). % Supervisor functions. -export([start/0, start/2, stop/1, config_change/3, start_phase/3, prep_stop/1]). % easy start start() -> application:start(temp_listener). % application stuff start(Type, Args) -> error_logger:info_msg("Starting temp_listener ...
null
https://raw.githubusercontent.com/dustin/environ/a45e714752a38e0b67ebd7e8d0bf8fb0c74d7945/src/temp_listener_app.erl
erlang
Supervisor functions. easy start application stuff
-module(temp_listener_app). -behavior(application). -export([start/0, start/2, stop/1, config_change/3, start_phase/3, prep_stop/1]). start() -> application:start(temp_listener). start(Type, Args) -> error_logger:info_msg("Starting temp_listener (~p, ~p)~n", [Type, Args]), supervisor:start_link(gen_sup, [ {...
115272a64406a985767f37fa3d51cfefc10876f74943c46ca7810438f556bd3b
AndrasKovacs/setoidtt
L.hs
module Data.Ref.L where import GHC.Prim import GHC.Types import Data.Unlifted import IO import Data.Array.UndefElem type role Ref representational data Ref a = Ref (MutVar# RealWorld a) instance Unlifted (Ref a) where type Rep (Ref a) = MutVar# RealWorld a to# (Ref r) = r # inline to # # from# r = Ref r # in...
null
https://raw.githubusercontent.com/AndrasKovacs/setoidtt/621aef2c4ae5a6acb418fa1153575b21e2dc48d2/setoidtt/primdata/Data/Ref/L.hs
haskell
# inline new # # inline write # # inline read # # inline modify # # inline modify' #
module Data.Ref.L where import GHC.Prim import GHC.Types import Data.Unlifted import IO import Data.Array.UndefElem type role Ref representational data Ref a = Ref (MutVar# RealWorld a) instance Unlifted (Ref a) where type Rep (Ref a) = MutVar# RealWorld a to# (Ref r) = r # inline to # # from# r = Ref r # in...
26a1027e6a3193f0a5e439aa4dac2cf82289dd918a8039796708eda8391a5b25
camlp4/camlp4
Camlp4Ast.partial.ml
(****************************************************************************) (* *) (* OCaml *) (* *) (* ...
null
https://raw.githubusercontent.com/camlp4/camlp4/9b3314ea63288decb857239bd94f0c3342136844/camlp4/Camlp4/Camlp4Ast.partial.ml
ocaml
************************************************************************** OCaml ...
Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with the special Note : when you modify these types you must increment ast magic numbers def...
f9f6f312db31090fa4ecb67707428ddf135252f3b9823571dcea262cf1b39eac
bgusach/exercises-htdp2e
ex-255.rkt
#lang htdp/isl # # # Functions ; [List-of Number] [Number -> Number] -> [List-of Number] (define (map-n lon fn) lon ) ; [List-of String] [String -> String] -> [List-of String] (define (map-s los fn) los ) ; [A] [List-of A] [A -> A] -> [List-of A] ; Alternatively, there is a more abstract and useful sign...
null
https://raw.githubusercontent.com/bgusach/exercises-htdp2e/c4fd33f28fb0427862a2777a1fde8bf6432a7690/3-abstraction/ex-255.rkt
racket
[List-of Number] [Number -> Number] -> [List-of Number] [List-of String] [String -> String] -> [List-of String] [A] [List-of A] [A -> A] -> [List-of A] Alternatively, there is a more abstract and useful signature that does not force the type of elements to be the same: [A B] [List-of A] [A -> B] -> [List-of B]
#lang htdp/isl # # # Functions (define (map-n lon fn) lon ) (define (map-s los fn) los ) (define (map-abs l fn) l )
9bcb8cf241a78de9d0176c49383921bb459c51792f11eb6565e7a1ed4ddd9e0e
vincenthz/cabal-db
Printing.hs
module Printing ( col , Color(..) , ppLine ) where import qualified Text.PrettyPrint.ANSI.Leijen as PP data Color = Green | Yellow | Red | Blue | Magenta col :: Color -> String -> PP.Doc col Green txt = PP.green $ PP.text txt col Yellow txt = PP.yellow $ PP.text txt col Red txt = PP.red $ PP.t...
null
https://raw.githubusercontent.com/vincenthz/cabal-db/03484a70434427daf4afb713f9c7cd4fb60ab441/Src/Printing.hs
haskell
ppKV :: String -> PP.Doc -> IO ()
module Printing ( col , Color(..) , ppLine ) where import qualified Text.PrettyPrint.ANSI.Leijen as PP data Color = Green | Yellow | Red | Blue | Magenta col :: Color -> String -> PP.Doc col Green txt = PP.green $ PP.text txt col Yellow txt = PP.yellow $ PP.text txt col Red txt = PP.red $ PP.t...
a7ca1da0d4514f738c3276324053d38a12f4af9598816331439c57d6b04ddd78
jeffshrager/biobike
upload.lisp
;;; -*- mode: Lisp; Syntax: Common-Lisp; Package: bio; -*- (in-package :bio) ;;; +=========================================================================+ | Copyright ( c ) 2002 , 2003 , 2004 JP , , | ;;; | | ;;; | Permission is here...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Organisms/upload.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; Package: bio; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and as...
(in-package :bio) | Copyright ( c ) 2002 , 2003 , 2004 JP , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subject to ...
4a00a69d99ec0f7de568f2ce83c76a9daacfe30e5721f31b4fe80084d8712a82
esl/MongooseIM
mongoose_graphql_private_user_query.erl
-module(mongoose_graphql_private_user_query). -behaviour(mongoose_graphql). -export([execute/4]). -ignore_xref([execute/4]). -include("../mongoose_graphql_types.hrl"). -import(mongoose_graphql_helper, [make_error/2, format_result/2]). execute(#{user := CallerJID}, _Obj, <<"getPrivate">>, #{<<"element">> :=...
null
https://raw.githubusercontent.com/esl/MongooseIM/fbd64b6b25c0a0e41723feff5fc50be6c59477cf/src/graphql/user/mongoose_graphql_private_user_query.erl
erlang
-module(mongoose_graphql_private_user_query). -behaviour(mongoose_graphql). -export([execute/4]). -ignore_xref([execute/4]). -include("../mongoose_graphql_types.hrl"). -import(mongoose_graphql_helper, [make_error/2, format_result/2]). execute(#{user := CallerJID}, _Obj, <<"getPrivate">>, #{<<"element">> :=...
d2dd5c517661a3927c00d14d2991c64c176a8c6f07af9b57cf310e5d6e0e96b8
bos/rwh
csv9.hs
{-- snippet all --} -- ch17/csv9.hs import Text.ParserCombinators.Parsec csvFile = endBy line eol line = sepBy cell (char ',') cell = quotedCell <|> many (noneOf ",\n\r") quotedCell = do char '"' content <- many quotedChar char '"' <?> "quote at end of cell" return content quotedChar = ...
null
https://raw.githubusercontent.com/bos/rwh/7fd1e467d54aef832f5476ebf5f4f6a898a895d1/examples/ch17/csv9.hs
haskell
- snippet all - ch17/csv9.hs - /snippet all -
import Text.ParserCombinators.Parsec csvFile = endBy line eol line = sepBy cell (char ',') cell = quotedCell <|> many (noneOf ",\n\r") quotedCell = do char '"' content <- many quotedChar char '"' <?> "quote at end of cell" return content quotedChar = noneOf "\"" <|> try (string...
4f82e8b1db5bdb3832e6bbacbe6884a0d90e11003ca0a6f074b747778bff9b19
Feldspar/feldspar-language
RegressionTests.hs
# LANGUAGE CPP # {-# LANGUAGE GADTs #-} # LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE KindSignatures # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE TemplateHaskell # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wall # FIXME : Unshadow compl...
null
https://raw.githubusercontent.com/Feldspar/feldspar-language/499e4e42d462f436a5267ddf0c2f73d5741a8248/tests/RegressionTests.hs
haskell
# LANGUAGE GADTs # # LANGUAGE ConstraintKinds # # OPTIONS_GHC -Wno-name-shadowing # to keep the total runtime for tests as short as possible. The main function for this module is just "main = defaultMain tests" but it is situated near the end of the module to avoid compilation errors about splices. | Read the he...
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE KindSignatures # # LANGUAGE TemplateHaskell # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wall # FIXME : Unshadow complexWhileCond and remove this | Top level module to tes...
97993a63a2b9422f2146bb9bdc950cabb9dc36812adffe88acaf7ca312c1b433
data61/Mirza
GenerateUtils.hs
# LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # -- | Utility functions to generate test data using -- each service's client module Mirza.OrgRegistry.GenerateUtils where import Mirza.Common.Utils (mockURI) import Mirza.OrgRegistry.Types as ORT import Data.GS1.EPC impor...
null
https://raw.githubusercontent.com/data61/Mirza/24e5ccddfc307cceebcc5ce26d35e91020b8ee10/projects/or_scs/src/Mirza/OrgRegistry/GenerateUtils.hs
haskell
| Utility functions to generate test data using each service's client
# LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # module Mirza.OrgRegistry.GenerateUtils where import Mirza.Common.Utils (mockURI) import Mirza.OrgRegistry.Types as ORT import Data.GS1.EPC import qualified Data.Text as T dummyOrg :: T.Text -> NewOrg dumm...
2001e0b322a534fe36958305629b2d31b23a25d6dbaae19d21b83ef63a9169e5
theodormoroianu/SecondYearCourses
HaskellChurchMonad_20210415122905.hs
module HaskellChurchMonad where A boolean is any way to choose between two alternatives newtype CBool t = CBool {cIf :: t -> t -> t} An instance to show as regular Booleans instance Show (CBool Bool) where show b = show $ cIf b True False The boolean constant true always chooses the first alternative cTrue ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurchMonad_20210415122905.hs
haskell
The boolean negation switches the alternatives The boolean conjunction can be built as a conditional The boolean disjunction can be built as a conditional a pair is a way to compute something based on the values contained within the pair. a function to be applied on the values, it will apply it on them. A natural nu...
module HaskellChurchMonad where A boolean is any way to choose between two alternatives newtype CBool t = CBool {cIf :: t -> t -> t} An instance to show as regular Booleans instance Show (CBool Bool) where show b = show $ cIf b True False The boolean constant true always chooses the first alternative cTrue ...
455482d58c8562f42fee94ff49b5f9e3b2df73dc6176860f076a77721d5eec45
racket/errortrace
info.rkt
#lang info (define collection 'multi) (define deps '("errortrace-lib" "errortrace-doc")) (define implies '("errortrace-lib" "errortrace-doc")) (define pkg-desc "Instrumentation tools for debugging") (define pkg-authors '(mflatt robby florence)) (define version "1.1") (define licen...
null
https://raw.githubusercontent.com/racket/errortrace/6e89c54a5f9de8b925ad668888aa241722e5bbfc/errortrace/info.rkt
racket
#lang info (define collection 'multi) (define deps '("errortrace-lib" "errortrace-doc")) (define implies '("errortrace-lib" "errortrace-doc")) (define pkg-desc "Instrumentation tools for debugging") (define pkg-authors '(mflatt robby florence)) (define version "1.1") (define licen...
aa1b885e3277e5cd2ff089190f506b46c1508fdc3044017fcec58456c76d4c83
jrm-code-project/LISP-Machine
cpstuff.lisp
-*- Mode : LISP ; -*- stuff to move to archive on MOE . (defvar *dirs1* '( BENCHMARKS diag EXP-FORD HYPER HYPERCALC HYPERWINDOW KHS LCOMP LFILE-COPY MLY QL RELEASE SYSTEM TEST WIRELIST XREF YAPS) ) (defu...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/gjc/cpstuff.lisp
lisp
-*-
stuff to move to archive on MOE . (defvar *dirs1* '( BENCHMARKS diag EXP-FORD HYPER HYPERCALC HYPERWINDOW KHS LCOMP LFILE-COPY MLY QL RELEASE SYSTEM TEST WIRELIST XREF YAPS) ) (defun move-dirs1 () (dolist...
f58464900c54ed552ccd779389731fa107a1d8eecc8e0450defaa51b027f64e6
REPROSEC/dolev-yao-star
Vale_X64_Decls.ml
open Prims type vale_heap = Vale_Arch_HeapImpl.vale_heap type vale_full_heap = Vale_Arch_HeapImpl.vale_full_heap type heaplet_id = Vale_Arch_HeapImpl.heaplet_id type quad32 = Vale_Def_Types_s.quad32 let (cf : Vale_X64_Flags.t -> Prims.bool) = fun flags -> match Vale_X64_Lemmas.cf flags with | FStar_Pervasiv...
null
https://raw.githubusercontent.com/REPROSEC/dolev-yao-star/d97a8dd4d07f2322437f186e4db6a1f4d5ee9230/concrete/hacl-star-snapshot/ml/Vale_X64_Decls.ml
ocaml
open Prims type vale_heap = Vale_Arch_HeapImpl.vale_heap type vale_full_heap = Vale_Arch_HeapImpl.vale_full_heap type heaplet_id = Vale_Arch_HeapImpl.heaplet_id type quad32 = Vale_Def_Types_s.quad32 let (cf : Vale_X64_Flags.t -> Prims.bool) = fun flags -> match Vale_X64_Lemmas.cf flags with | FStar_Pervasiv...
f664296a35e3de6c89f8e5370ec77fdec2eea0851d2c577e090b2b410f009e90
herbelin/coq-hh
goptions.mli
(************************************************************************) 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/library/goptions.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * This module manages customization ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Two kinds of things are ma...
edaccf47c8cfc74afd8566e3250a0a0996820f4df176a4f1d910e13e69a6bbbc
bozsahin/ceng444
symbol-table.lisp
;; this is a simple hash implementation of symbol tables. It makes use of the idea that 's hashtables are collision - free ;; so that the same identifier in the same scope twice is an override ;; of same value, for which we will signal an error rather than allow ;; the override. -cem bozsahin , 2018 ;; it is impl...
null
https://raw.githubusercontent.com/bozsahin/ceng444/aa93c5a18f25c5ba68942029ac78516f880454b7/lab-material/old_material/lalr-material/symbol-table.lisp
lisp
this is a simple hash implementation of symbol tables. so that the same identifier in the same scope twice is an override of same value, for which we will signal an error rather than allow the override. it is implemented with a set of mk- (make) functions and get- functions top level use: (demo-make-st) (...
It makes use of the idea that 's hashtables are collision - free -cem bozsahin , 2018 (defun mk-key (id index) "makes a list for key of the hashtable. Index is a list, key is consed to that to make a flat list." (cons id index)) (defun mk-val (typ blockno) (list typ blockno)) (defun mk-symbol-table (...
aee6cfc5345036f335fa43ef8f934e1c340fd7d9191fff702a13cf1e0b37d171
yrashk/erlang
prettypr.erl
%% ===================================================================== %% This library is free software; you can redistribute it and/or modify %% it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2 of the %% License, or (at your option) any lat...
null
https://raw.githubusercontent.com/yrashk/erlang/e1282325ed75e52a98d58f5bd9fb0fa27896173f/lib/syntax_tools/src/prettypr.erl
erlang
===================================================================== This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as License, or (at your option) any later version. This library is distributed in the hope that it will be useful, ...
published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 59 Temple Place , Suite 330 , Boston , MA 02111 - 1307 USA $ Id$ 2000 - 2006 @author < > strict - style context passing implementation of algo...
9c0fe9d3cb2aa5272ee560acd54fd2f4ccd0add394f9620a6ae17d42449a9739
camlp5/camlp5
asttypes.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/camlp5/camlp5/15e03f56f55b2856dafe7dd3ca232799069f5dda/ocaml_stuff/4.03.0/parsing/asttypes.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . Auxiliary a.s.t . types used by parse...
367ca80f9b0162e5d31810f32adf7f74ce1f6fa4758aeb6705ca4e25900c2c68
jabber-at/ejabberd-contrib
test_utils.erl
%%%============================================================================= ( C ) 1999 - 2013 , Erlang Solutions Ltd @author < > %%% @doc %%% @end %%%============================================================================= -module(test_utils). -copyright("2013, Erlang Solutions Ltd."). -export([start...
null
https://raw.githubusercontent.com/jabber-at/ejabberd-contrib/d5eb036b786c822d9fd56f881d27e31688ec6e91/ejabberd_auth_http/deps/fusco/test/test_utils.erl
erlang
============================================================================= @doc @end =============================================================================
( C ) 1999 - 2013 , Erlang Solutions Ltd @author < > -module(test_utils). -copyright("2013, Erlang Solutions Ltd."). -export([start_listener/1, start_listener/2, send_message/1, stop_listener/1]). start_listener(Msg) -> start_listener(Msg, close). start_listener({fragmented, Msg}, ConnectionState) ...
f0a604db694b70a6f01f0988b89e52db0871e7b66b0b0d68ee644d8686dfae58
gabebw/haskell-upenn-cs194
HW06.hs
# LANGUAGE DeriveGeneric , OverloadedStrings # module HW06 where import Data.Aeson import Data.Monoid import GHC.Generics import Data.List (sort) import qualified Data.ByteString.Lazy.Char8 as B import qualified Data.Text as T import qualified Data.Text.IO as T import qualified Data.Vector as V import qualified Data....
null
https://raw.githubusercontent.com/gabebw/haskell-upenn-cs194/94a27807de77df43f38ad8d044666548e9c849d4/fall-2014/hw6-io/HW06.hs
haskell
Exercise 1: ynToBool Convert "Y" to True and "N" to False, inside aeson Take a ByteString of JSON and decode it, processing with ynToBool x is longitude y is latitude Pull out [Market], failing if we can't And yes, `either fail id` is gross around Maybe) that keeps the list ordered. Try it with a List monoid: ...
# LANGUAGE DeriveGeneric , OverloadedStrings # module HW06 where import Data.Aeson import Data.Monoid import GHC.Generics import Data.List (sort) import qualified Data.ByteString.Lazy.Char8 as B import qualified Data.Text as T import qualified Data.Text.IO as T import qualified Data.Vector as V import qualified Data....
618c1a11a34db73c6806725962a54dc6f8bd19298639541d640d7e73e5fe56cf
onyx-platform/onyx-datomic
input_datoms_components_test.clj
(ns onyx.plugin.input-datoms-components-test (:require [aero.core :refer [read-config]] [clojure.test :refer [deftest is]] [onyx api [job :refer [add-task]] [test-helper :refer [with-test-env]]] [onyx.datomic.api :as d] [onyx.plugin datomic ...
null
https://raw.githubusercontent.com/onyx-platform/onyx-datomic/85b8c1dcaab9e86b9661c2f181fe08d5795f9607/test/onyx/plugin/input_datoms_components_test.clj
clojure
(ns onyx.plugin.input-datoms-components-test (:require [aero.core :refer [read-config]] [clojure.test :refer [deftest is]] [onyx api [job :refer [add-task]] [test-helper :refer [with-test-env]]] [onyx.datomic.api :as d] [onyx.plugin datomic ...
60e275a2b3952cb82441425c104c5ea3012b19f25ab93b57e1e6a271ad73a9e1
onedata/op-worker
acl_req.erl
%%%-------------------------------------------------------------------- @author ( C ) 2016 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%-------------------------------------------------------------------- %%% @doc %%% This module is responsible for h...
null
https://raw.githubusercontent.com/onedata/op-worker/99748b05d58eb808a2043cb85d6076f81d703a10/src/modules/fslogic/operations/acl_req.erl
erlang
-------------------------------------------------------------------- @end -------------------------------------------------------------------- @doc This module is responsible for handing requests operating on file access control lists. Note: this module operates on referenced uuids - all operations on hardlinks b...
@author ( C ) 2016 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . are treated as operations on original file . Thus , acls are shared -module(acl_req). -author("Tomasz Lichon"). -include("modules/fslogic/data_access_control.hrl"). -include("modules/fslogic/fslo...
23238ec9ac90a0f3d3b15064637bb1a340849b32270d0acdb985631342c0603f
huiqing/percept2
percept2_dist.erl
-module(percept2_dist). -compile(export_all). -include("../include/percept2.hrl"). -type nodes()::atom() | [atom()] | all | existing | new. -type procs()::all | existing | new. %% should be able to accept more flags. -type flag()::send|'receive'|s_group. @see ttb for possible values for Opts . -spec...
null
https://raw.githubusercontent.com/huiqing/percept2/fa796a730d6727210a71f185e6a39a960c2dcb90/src/percept2_dist.erl
erlang
should be able to accept more flags.
-module(percept2_dist). -compile(export_all). -include("../include/percept2.hrl"). -type nodes()::atom() | [atom()] | all | existing | new. -type procs()::all | existing | new. -type flag()::send|'receive'|s_group. @see ttb for possible values for Opts . -spec(start(Nodes::nodes(), Procs::procs(), Fl...
c58ec6250a934c29794cf6811d2752d6b830904de1b29197615a6feba083a3ac
BranchTaken/Hemlock
test_bit_and_bit_or_bit_xor.ml
open! Basis.Rudiments open! Basis open I8 let test () = let rec test_pairs = function | [] -> () | (x, y) :: pairs' -> begin File.Fmt.stdout |> Fmt.fmt "bit_{and,or,xor} " |> fmt ~alt:true ~zpad:true ~width:2L ~radix:Radix.Hex ~pretty:true x |> Fmt.fmt " " |> fmt ~alt:...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/a07e362d66319108c1478a4cbebab765c1808b1a/bootstrap/test/basis/i8/test_bit_and_bit_or_bit_xor.ml
ocaml
open! Basis.Rudiments open! Basis open I8 let test () = let rec test_pairs = function | [] -> () | (x, y) :: pairs' -> begin File.Fmt.stdout |> Fmt.fmt "bit_{and,or,xor} " |> fmt ~alt:true ~zpad:true ~width:2L ~radix:Radix.Hex ~pretty:true x |> Fmt.fmt " " |> fmt ~alt:...
38af155b41266f43a4b03a77b5818f4a699415fddda200a93bc68a5f96a4d832
takikawa/racket-ppa
binding.rkt
#lang racket/base (require "../common/set.rkt" "../compile/serialize-property.rkt" "../compile/serialize-state.rkt" "../common/memo.rkt" "syntax.rkt" "property.rkt" "scope.rkt" "../common/phase.rkt" "full-binding.rkt" "module-binding.rkt" ...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/src/expander/syntax/binding.rkt
racket
---------------------------------------- By tradition, equate "unbound" with "bound at the top level" the same nominal info (i.e., claim to be required through the same immediate path): ---------------------------------------- Helper to add a `free-identifier=?` equivance to a binding ---------------------------...
#lang racket/base (require "../common/set.rkt" "../compile/serialize-property.rkt" "../compile/serialize-state.rkt" "../common/memo.rkt" "syntax.rkt" "property.rkt" "scope.rkt" "../common/phase.rkt" "full-binding.rkt" "module-binding.rkt" ...
079bbdcaf61474da8a06fdd9d6677684b70c84972cd9a61e581683f4b98b22b4
TerrorJack/ghc-alter
TypeNats.hs
# LANGUAGE Trustworthy # # LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE ExistentialQuantification # {-# LANGUAGE RankNTypes #...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/GHC/TypeNats.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE RankNTypes # * Linking type and value level * Functions on type literals ------------------------------------------------------------------------------ | This class gives the integer associated with a type-level natural. @since 4.7.0.0 | This type represents unknown type-le...
# LANGUAGE Trustworthy # # LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE ExistentialQuantification # # LANGUAGE UndecidableInstances # # LANGUAGE NoImplicitPre...
681eeee635d541972dc4178fde4663c415569ea7e354cbf3960dbd643b02fe16
brendanhay/amazonka
MatchFieldType.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # {-# LANGUAGE StrictData #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-waf-regional/gen/Amazonka/WAFRegional/Types/MatchFieldType.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.WAFRegional.Types.MatchFieldType Stability : auto-generated
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service descriptions , licensed under Apache 2.0 . Copyright : (...
041ee602f50e8242982815076f481c1f49b5dc322c2f0bb241165a57bae52068
gowthamk/ocaml-irmin
test1.ml
(* Utility functions *) U is a module with two functions module U = struct let string_of_list f l = "[ " ^ List.fold_left (fun a b -> a ^ (f b) ^ "; ") "" l ^ "]" let print_header h = Printf.printf "%s" ("\n" ^ h ^ "\n") end let _ = U.print_header "Heap-LeftList"; let module MkConfig (Vars: sig val root: st...
null
https://raw.githubusercontent.com/gowthamk/ocaml-irmin/54775f6c3012e87d2d0308f37a2ec7b27477e887/heap_leftist/mem/test1.ml
ocaml
Utility functions
U is a module with two functions module U = struct let string_of_list f l = "[ " ^ List.fold_left (fun a b -> a ^ (f b) ^ "; ") "" l ^ "]" let print_header h = Printf.printf "%s" ("\n" ^ h ^ "\n") end let _ = U.print_header "Heap-LeftList"; let module MkConfig (Vars: sig val root: string end) : Iheap_leftli...
2116a04d8a06e54a903e8c539c04ccc0bf73042f691415e4abbddf3c36f9bd1b
dgiot/dgiot
dgiot_product_knova.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_device/src/utils/dgiot_product_knova.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_product_knova). -author("kenneth"). -include("dgiot_device.hrl"). -include_lib("...
c4ee22c43ba65dc75b293f07a03d572415f32820c86bb303aa01062c0841d16c
auser/alice
config.erl
-module (config). -include ("alice.hrl"). -compile (export_all). %%-------------------------------------------------------------------- %% Function: Read the config file () -> {ok, Config} | %% {error, Reason} %% Description: Read the configuration data %%-------------------------...
null
https://raw.githubusercontent.com/auser/alice/e0f867071ede99f451d09053608bd6719c72d1c9/src/utils/config.erl
erlang
-------------------------------------------------------------------- Function: Read the config file () -> {ok, Config} | {error, Reason} Description: Read the configuration data -------------------------------------------------------------------- --------------------------------...
-module (config). -include ("alice.hrl"). -compile (export_all). read() -> case read_1(?CONFIG_FILE) of {ok, C} -> {ok, C}; {error, enoent} -> {error}; Err -> Err end. read_1(Location) -> case file:consult(Location) of {ok, C} -> C; O -> O end. get(Key) -> get(Key, read()). get(_Key, []) ...
96827d5c7dcb66ce28950b29826a7603913d7ce52851a55610a8a34dceb4cfc3
taffybar/taffybar
MPRIS2.hs
# LANGUAGE TemplateHaskell # module System.Taffybar.DBus.Client.MPRIS2 where import System.Taffybar.DBus.Client.Util import System.FilePath import System.Taffybar.DBus.Client.Params generateClientFromFile defaultRecordGenerationParams playerGenerationParams False $ "dbus-xml" </> "org.mpris.Med...
null
https://raw.githubusercontent.com/taffybar/taffybar/4d3227e9cd8308c1e43846496a8a7ab417ef8e5b/src/System/Taffybar/DBus/Client/MPRIS2.hs
haskell
# LANGUAGE TemplateHaskell # module System.Taffybar.DBus.Client.MPRIS2 where import System.Taffybar.DBus.Client.Util import System.FilePath import System.Taffybar.DBus.Client.Params generateClientFromFile defaultRecordGenerationParams playerGenerationParams False $ "dbus-xml" </> "org.mpris.Med...
1e0d9590638f2c02dc9285ee5b0fbc733c6a222ba72449ee171251aea7f1a04b
orionsbelt-battlegrounds/obb-rules
translator_test.cljc
(ns obb-rules.translator-test (:require [obb-rules.translator :as translator] [obb-rules.unit :as unit] [obb-rules.element :as element] [obb-rules.board :as board] #?(:clj [clojure.test :refer [deftest testing is]] :cljs [cljs.test :refer-macros [deftest testing is]]))) (def unit (unit/get...
null
https://raw.githubusercontent.com/orionsbelt-battlegrounds/obb-rules/97fad6506eb81142f74f4722aca58b80d618bf45/test/obb_rules/translator_test.cljc
clojure
(ns obb-rules.translator-test (:require [obb-rules.translator :as translator] [obb-rules.unit :as unit] [obb-rules.element :as element] [obb-rules.board :as board] #?(:clj [clojure.test :refer [deftest testing is]] :cljs [cljs.test :refer-macros [deftest testing is]]))) (def unit (unit/get...
e6d9ac59cab8e9bd3f87687ea5dac447ddc93efd1028721771e7a59e720c394d
LastStar/showrum
parser_test.cljs
(ns showrum.parser-test (:require-macros [cljs.test :refer [deftest testing is are]]) (:require [cljs.test :as t] [cljs.spec.alpha :as s] [showrum.spec.decks] [showrum.parser :as parser])) (deftest test-preamble-parsing [] (let [preamble "---\nauthor: Pepe\ndate: 2016-12-12\nt...
null
https://raw.githubusercontent.com/LastStar/showrum/fb73e9612e4525e32b6b936179d901be50019fb5/test/cljs/showrum/parser_test.cljs
clojure
(ns showrum.parser-test (:require-macros [cljs.test :refer [deftest testing is are]]) (:require [cljs.test :as t] [cljs.spec.alpha :as s] [showrum.spec.decks] [showrum.parser :as parser])) (deftest test-preamble-parsing [] (let [preamble "---\nauthor: Pepe\ndate: 2016-12-12\nt...
2a568043352f90de1eb0e8f1ce3dce5b3e02b71e0e18dcec64c8768a7e088ef3
Ericson2314/lighthouse
LocalTime.hs
{-# OPTIONS -Wall -Werror #-} module Data.Time.LocalTime ( module Data.Time.LocalTime.TimeZone, module Data.Time.LocalTime.TimeOfDay, module Data.Time.LocalTime.LocalTime ) where import Data.Time.LocalTime.TimeZone import Data.Time.LocalTime.TimeOfDay import Data.Time.LocalTime.LocalTime
null
https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/time/Data/Time/LocalTime.hs
haskell
# OPTIONS -Wall -Werror #
module Data.Time.LocalTime ( module Data.Time.LocalTime.TimeZone, module Data.Time.LocalTime.TimeOfDay, module Data.Time.LocalTime.LocalTime ) where import Data.Time.LocalTime.TimeZone import Data.Time.LocalTime.TimeOfDay import Data.Time.LocalTime.LocalTime
f996b3c1566342af6eccaee05600977205842f5b46e5da2f9730260a830c27da
input-output-hk/io-sim
TQueue.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-} # LANGUAGE ExplicitNamespaces # {-# LANGUAGE GADTs #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE TypeOperators #-} -- | This module corresponds to `Control.Concurrent.STM.TQueue` in "stm" package -- module Control.Concurre...
null
https://raw.githubusercontent.com/input-output-hk/io-sim/5efc4b97cb6e861967508ae41e57d197c2a407af/strict-stm/src/Control/Concurrent/Class/MonadSTM/Strict/TQueue.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE CPP # # LANGUAGE GADTs # # LANGUAGE NamedFieldPuns # # LANGUAGE TypeOperators # | This module corresponds to `Control.Concurrent.STM.TQueue` in "stm" package * MonadSTM * MonadLabelledSTM
# LANGUAGE ExplicitNamespaces # module Control.Concurrent.Class.MonadSTM.Strict.TQueue StrictTQueue , LazyTQueue , toLazyTQueue , fromLazyTQueue , castStrictTQueue , newTQueue , newTQueueIO , readTQueue , tryReadTQueue , peekTQueue , tryPeekTQueue , flushTQueue , writeTQueue , unGetTQueue...
5a3bc9359104d00d51aa5ba8acd1515cffdbdc0305471e23b63a475c82f2f9ae
biocaml/biocaml
biocaml_app_common.ml
(** This module is a “standard library” for all the components of the [biocaml] command line application *) open Core.Std open Biocaml_internal_utils open Flow open Biocaml module Sam = Biocaml_sam_deprecated let failf fmt = ksprintf (fun s -> error (`failure s)) fmt let common_error_to_string = function | Ok () -...
null
https://raw.githubusercontent.com/biocaml/biocaml/ac619539fed348747d686b8f628e80c1bb8bfc59/src/app/biocaml_app_common.ml
ocaml
* This module is a “standard library” for all the components of the [biocaml] command line application * This module contains global configuration variables and their usage/access functions. * [input_buffer_size] and [output_buffer_size] are the buffer-sizes used for [Lwt] channels. In the future we m...
open Core.Std open Biocaml_internal_utils open Flow open Biocaml module Sam = Biocaml_sam_deprecated let failf fmt = ksprintf (fun s -> error (`failure s)) fmt let common_error_to_string = function | Ok () -> return () | Error (`failure c) -> error c | Error (`lwt_exn e) -> error (sprintf "Lwt-exn: %s" (Exn.to...
0c37587a6e71c33f19d2959b71c25fd3d3789338bfa1d4d3ae4a78a80ac0e9c7
haskell-CI/haskell-ci
ParsecUtils.hs
module HaskellCI.ParsecUtils where import HaskellCI.Prelude import System.Directory (doesFileExist) import System.Exit (exitFailure) import System.IO (hPutStr, stderr) import qualified Data.ByteString as BS import qualified Distribution.Fields as C import qualified Distribution....
null
https://raw.githubusercontent.com/haskell-CI/haskell-ci/0ced97ba21a174b342320e07c5f5724832f0708c/src/HaskellCI/ParsecUtils.hs
haskell
^ File fields to final value parser ^ File to read
module HaskellCI.ParsecUtils where import HaskellCI.Prelude import System.Directory (doesFileExist) import System.Exit (exitFailure) import System.IO (hPutStr, stderr) import qualified Data.ByteString as BS import qualified Distribution.Fields as C import qualified Distribution....
6ebf7f24f1f373c0ccda436e847dfb415f3e738f385d3ab92ba23ec996298e73
haskell-works/hw-json
PartialValue.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # {-# LANGUAGE ScopedTypeVariables #-} module HaskellWorks.Data.Json.PartialValue ( JsonPartialValue(..) , JsonPartialValueAt(..) , asInteger , asString , asText ...
null
https://raw.githubusercontent.com/haskell-works/hw-json/371d20c836dba90271d62d736f2b51b9cf418ea6/src/HaskellWorks/Data/Json/PartialValue.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # | Partial JSON type. This data type has an additional 'JsonPartialError' data constructor to indicate parsing errors. This allows parsing to be more lazy because parsing errors may now be expressed anywhere in the parsed document so the parser ...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # module HaskellWorks.Data.Json.PartialValue ( JsonPartialValue(..) , JsonPartialValueAt(..) , asInteger , asString , asText , castAsInteger , entry , hasKey , hasKV , item , jsonKeys , json...
c31e21874adf01eb97d7a17a9e47c7e55c8209e8b2744de683915f49cc7a3751
cmsc430/www
test-runner.rkt
#lang racket (provide test-runner test-runner-io) (require rackunit) (define (test-runner run) ;; Abscond examples (check-equal? (run 7) 7) (check-equal? (run -8) -8) examples (check-equal? (run '(add1 (add1 7))) 9) (check-equal? (run '(add1 (sub1 7))) 7) ;; Con examples (check-equal? (run '(if (zer...
null
https://raw.githubusercontent.com/cmsc430/www/fc3165545c81d4da3d0aaae33a1e5f8f8cafe0e6/langs/outlaw/test/test-runner.rkt
racket
Abscond examples Con examples Fraud examples Hoax examples Iniquity tests Knock examples Loot examples Mug examples Outlaw examples Evildoer examples Fraud examples Iniquity examples Outlaw examples
#lang racket (provide test-runner test-runner-io) (require rackunit) (define (test-runner run) (check-equal? (run 7) 7) (check-equal? (run -8) -8) examples (check-equal? (run '(add1 (add1 7))) 9) (check-equal? (run '(add1 (sub1 7))) 7) (check-equal? (run '(if (zero? 0) 1 2)) 1) (check-equal? (run '(if...
66439beba3966d302f2c60d5c7b192eb6a4f9b8053a402ca7b8fbd19e051c843
urbanslug/graphite
graph.rkt
#lang racket (require racket/serialize) (require file/sha1) (require "../algorithms/utils.rkt") (provide empty-graph node node? node-offset node-segment node-edges node-id) (define (shorten-segment s) (if (< (string-length s) 20) s (substring s 0 ...
null
https://raw.githubusercontent.com/urbanslug/graphite/bcac6bd61172c52d1cc89c0bd0abe8ad3c6a6576/graphite/structures/graph.rkt
racket
TODO: add info on stable sequence
#lang racket (require racket/serialize) (require file/sha1) (require "../algorithms/utils.rkt") (provide empty-graph node node? node-offset node-segment node-edges node-id) (define (shorten-segment s) (if (< (string-length s) 20) s (substring s 0 ...